Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
callback.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/callback.proto
4// Protobuf C++ Version: 6.33.1
5
7
8#include <algorithm>
9#include <type_traits>
10#include "google/protobuf/io/coded_stream.h"
11#include "google/protobuf/generated_message_tctable_impl.h"
12#include "google/protobuf/extension_set.h"
13#include "google/protobuf/generated_message_util.h"
14#include "google/protobuf/wire_format_lite.h"
15#include "google/protobuf/descriptor.h"
16#include "google/protobuf/generated_message_reflection.h"
17#include "google/protobuf/reflection_ops.h"
18#include "google/protobuf/wire_format.h"
19// @@protoc_insertion_point(includes)
20
21// Must be included last.
22#include "google/protobuf/port_def.inc"
23PROTOBUF_PRAGMA_INIT_SEG
24namespace _pb = ::google::protobuf;
26namespace _fl = ::google::protobuf::internal::field_layout;
27namespace operations_research {
28namespace math_opt {
29
30inline constexpr CallbackDataProto_SimplexStats::Impl_::Impl_(
31 ::_pbi::ConstantInitialized) noexcept
32 : _cached_size_{0},
33 iteration_count_{::int64_t{0}},
34 objective_value_{0},
35 primal_infeasibility_{0},
36 dual_infeasibility_{0},
37 is_pertubated_{false} {}
38
39template <typename>
40PROTOBUF_CONSTEXPR CallbackDataProto_SimplexStats::CallbackDataProto_SimplexStats(::_pbi::ConstantInitialized)
41#if defined(PROTOBUF_CUSTOM_VTABLE)
42 : ::google::protobuf::Message(CallbackDataProto_SimplexStats_class_data_.base()),
43#else // PROTOBUF_CUSTOM_VTABLE
44 : ::google::protobuf::Message(),
45#endif // PROTOBUF_CUSTOM_VTABLE
46 _impl_(::_pbi::ConstantInitialized()) {
47}
55
56PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
58
59inline constexpr CallbackDataProto_PresolveStats::Impl_::Impl_(
60 ::_pbi::ConstantInitialized) noexcept
61 : _cached_size_{0},
62 removed_variables_{::int64_t{0}},
63 removed_constraints_{::int64_t{0}},
64 bound_changes_{::int64_t{0}},
65 coefficient_changes_{::int64_t{0}} {}
66
67template <typename>
68PROTOBUF_CONSTEXPR CallbackDataProto_PresolveStats::CallbackDataProto_PresolveStats(::_pbi::ConstantInitialized)
69#if defined(PROTOBUF_CUSTOM_VTABLE)
70 : ::google::protobuf::Message(CallbackDataProto_PresolveStats_class_data_.base()),
71#else // PROTOBUF_CUSTOM_VTABLE
72 : ::google::protobuf::Message(),
73#endif // PROTOBUF_CUSTOM_VTABLE
74 _impl_(::_pbi::ConstantInitialized()) {
75}
83
84PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
86
87inline constexpr CallbackDataProto_MipStats::Impl_::Impl_(
88 ::_pbi::ConstantInitialized) noexcept
89 : _cached_size_{0},
90 primal_bound_{0},
91 dual_bound_{0},
92 explored_nodes_{::int64_t{0}},
93 open_nodes_{::int64_t{0}},
94 simplex_iterations_{::int64_t{0}},
95 number_of_solutions_found_{0},
96 cutting_planes_in_lp_{0} {}
97
98template <typename>
99PROTOBUF_CONSTEXPR CallbackDataProto_MipStats::CallbackDataProto_MipStats(::_pbi::ConstantInitialized)
100#if defined(PROTOBUF_CUSTOM_VTABLE)
101 : ::google::protobuf::Message(CallbackDataProto_MipStats_class_data_.base()),
102#else // PROTOBUF_CUSTOM_VTABLE
103 : ::google::protobuf::Message(),
104#endif // PROTOBUF_CUSTOM_VTABLE
105 _impl_(::_pbi::ConstantInitialized()) {
106}
114
115PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
117
118inline constexpr CallbackDataProto_BarrierStats::Impl_::Impl_(
119 ::_pbi::ConstantInitialized) noexcept
120 : _cached_size_{0},
121 primal_objective_{0},
122 dual_objective_{0},
123 complementarity_{0},
124 primal_infeasibility_{0},
125 dual_infeasibility_{0},
126 iteration_count_{0} {}
127
128template <typename>
129PROTOBUF_CONSTEXPR CallbackDataProto_BarrierStats::CallbackDataProto_BarrierStats(::_pbi::ConstantInitialized)
130#if defined(PROTOBUF_CUSTOM_VTABLE)
131 : ::google::protobuf::Message(CallbackDataProto_BarrierStats_class_data_.base()),
132#else // PROTOBUF_CUSTOM_VTABLE
133 : ::google::protobuf::Message(),
134#endif // PROTOBUF_CUSTOM_VTABLE
135 _impl_(::_pbi::ConstantInitialized()) {
136}
144
145PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
147
148inline constexpr CallbackResultProto_GeneratedLinearConstraint::Impl_::Impl_(
149 ::_pbi::ConstantInitialized) noexcept
150 : _cached_size_{0},
151 linear_expression_{nullptr},
152 lower_bound_{0},
153 upper_bound_{0},
154 is_lazy_{false} {}
155
156template <typename>
158#if defined(PROTOBUF_CUSTOM_VTABLE)
159 : ::google::protobuf::Message(CallbackResultProto_GeneratedLinearConstraint_class_data_.base()),
160#else // PROTOBUF_CUSTOM_VTABLE
161 : ::google::protobuf::Message(),
162#endif // PROTOBUF_CUSTOM_VTABLE
163 _impl_(::_pbi::ConstantInitialized()) {
164}
172
173PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
175
176inline constexpr CallbackRegistrationProto::Impl_::Impl_(
177 ::_pbi::ConstantInitialized) noexcept
178 : _cached_size_{0},
179 request_registration_{},
180 _request_registration_cached_byte_size_{0},
181 mip_solution_filter_{nullptr},
182 mip_node_filter_{nullptr},
183 add_cuts_{false},
184 add_lazy_constraints_{false} {}
185
186template <typename>
187PROTOBUF_CONSTEXPR CallbackRegistrationProto::CallbackRegistrationProto(::_pbi::ConstantInitialized)
188#if defined(PROTOBUF_CUSTOM_VTABLE)
189 : ::google::protobuf::Message(CallbackRegistrationProto_class_data_.base()),
190#else // PROTOBUF_CUSTOM_VTABLE
191 : ::google::protobuf::Message(),
192#endif // PROTOBUF_CUSTOM_VTABLE
193 _impl_(::_pbi::ConstantInitialized()) {
194}
202
203PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
205
206inline constexpr CallbackDataProto::Impl_::Impl_(
207 ::_pbi::ConstantInitialized) noexcept
208 : _cached_size_{0},
209 primal_solution_vector_{nullptr},
210 runtime_{nullptr},
211 presolve_stats_{nullptr},
212 simplex_stats_{nullptr},
213 barrier_stats_{nullptr},
214 mip_stats_{nullptr},
215 event_{static_cast< ::operations_research::math_opt::CallbackEventProto >(0)} {}
216
217template <typename>
218PROTOBUF_CONSTEXPR CallbackDataProto::CallbackDataProto(::_pbi::ConstantInitialized)
219#if defined(PROTOBUF_CUSTOM_VTABLE)
220 : ::google::protobuf::Message(CallbackDataProto_class_data_.base()),
221#else // PROTOBUF_CUSTOM_VTABLE
222 : ::google::protobuf::Message(),
223#endif // PROTOBUF_CUSTOM_VTABLE
224 _impl_(::_pbi::ConstantInitialized()) {
225}
233
234PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
236
237inline constexpr CallbackResultProto::Impl_::Impl_(
238 ::_pbi::ConstantInitialized) noexcept
239 : _cached_size_{0},
240 cuts_{},
241 terminate_{false},
242 suggested_solutions_{} {}
243
244template <typename>
245PROTOBUF_CONSTEXPR CallbackResultProto::CallbackResultProto(::_pbi::ConstantInitialized)
246#if defined(PROTOBUF_CUSTOM_VTABLE)
247 : ::google::protobuf::Message(CallbackResultProto_class_data_.base()),
248#else // PROTOBUF_CUSTOM_VTABLE
249 : ::google::protobuf::Message(),
250#endif // PROTOBUF_CUSTOM_VTABLE
251 _impl_(::_pbi::ConstantInitialized()) {
252}
260
261PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
263} // namespace math_opt
264} // namespace operations_research
265static const ::_pb::EnumDescriptor* PROTOBUF_NONNULL
267static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
269const ::uint32_t
271 protodesc_cold) = {
272 0x081, // bitmap
273 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::CallbackDataProto_PresolveStats, _impl_._has_bits_),
274 7, // hasbit index offset
275 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::CallbackDataProto_PresolveStats, _impl_.removed_variables_),
276 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::CallbackDataProto_PresolveStats, _impl_.removed_constraints_),
277 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::CallbackDataProto_PresolveStats, _impl_.bound_changes_),
278 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::CallbackDataProto_PresolveStats, _impl_.coefficient_changes_),
279 0,
280 1,
281 2,
282 3,
283 0x081, // bitmap
284 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::CallbackDataProto_SimplexStats, _impl_._has_bits_),
285 8, // hasbit index offset
286 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::CallbackDataProto_SimplexStats, _impl_.iteration_count_),
287 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::CallbackDataProto_SimplexStats, _impl_.objective_value_),
288 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::CallbackDataProto_SimplexStats, _impl_.primal_infeasibility_),
289 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::CallbackDataProto_SimplexStats, _impl_.dual_infeasibility_),
290 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::CallbackDataProto_SimplexStats, _impl_.is_pertubated_),
291 0,
292 1,
293 2,
294 3,
295 4,
296 0x081, // bitmap
297 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::CallbackDataProto_BarrierStats, _impl_._has_bits_),
298 9, // hasbit index offset
299 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::CallbackDataProto_BarrierStats, _impl_.iteration_count_),
300 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::CallbackDataProto_BarrierStats, _impl_.primal_objective_),
301 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::CallbackDataProto_BarrierStats, _impl_.dual_objective_),
302 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::CallbackDataProto_BarrierStats, _impl_.complementarity_),
303 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::CallbackDataProto_BarrierStats, _impl_.primal_infeasibility_),
304 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::CallbackDataProto_BarrierStats, _impl_.dual_infeasibility_),
305 5,
306 0,
307 1,
308 2,
309 3,
310 4,
311 0x081, // bitmap
312 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::CallbackDataProto_MipStats, _impl_._has_bits_),
313 10, // hasbit index offset
314 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::CallbackDataProto_MipStats, _impl_.primal_bound_),
315 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::CallbackDataProto_MipStats, _impl_.dual_bound_),
316 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::CallbackDataProto_MipStats, _impl_.explored_nodes_),
317 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::CallbackDataProto_MipStats, _impl_.open_nodes_),
318 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::CallbackDataProto_MipStats, _impl_.simplex_iterations_),
319 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::CallbackDataProto_MipStats, _impl_.number_of_solutions_found_),
320 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::CallbackDataProto_MipStats, _impl_.cutting_planes_in_lp_),
321 0,
322 1,
323 2,
324 3,
325 4,
326 5,
327 6,
328 0x081, // bitmap
329 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::CallbackDataProto, _impl_._has_bits_),
330 10, // hasbit index offset
331 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::CallbackDataProto, _impl_.event_),
332 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::CallbackDataProto, _impl_.primal_solution_vector_),
333 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::CallbackDataProto, _impl_.runtime_),
334 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::CallbackDataProto, _impl_.presolve_stats_),
335 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::CallbackDataProto, _impl_.simplex_stats_),
336 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::CallbackDataProto, _impl_.barrier_stats_),
337 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::CallbackDataProto, _impl_.mip_stats_),
338 6,
339 0,
340 1,
341 2,
342 3,
343 4,
344 5,
345 0x081, // bitmap
347 7, // hasbit index offset
348 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::CallbackResultProto_GeneratedLinearConstraint, _impl_.linear_expression_),
352 0,
353 1,
354 2,
355 3,
356 0x081, // bitmap
357 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::CallbackResultProto, _impl_._has_bits_),
358 6, // hasbit index offset
359 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::CallbackResultProto, _impl_.terminate_),
360 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::CallbackResultProto, _impl_.cuts_),
361 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::CallbackResultProto, _impl_.suggested_solutions_),
362 1,
363 0,
364 2,
365 0x081, // bitmap
366 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::CallbackRegistrationProto, _impl_._has_bits_),
367 8, // hasbit index offset
368 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::CallbackRegistrationProto, _impl_.request_registration_),
369 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::CallbackRegistrationProto, _impl_.mip_solution_filter_),
370 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::CallbackRegistrationProto, _impl_.mip_node_filter_),
371 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::CallbackRegistrationProto, _impl_.add_cuts_),
372 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::CallbackRegistrationProto, _impl_.add_lazy_constraints_),
373 0,
374 1,
375 2,
376 3,
377 4,
378};
379
380static const ::_pbi::MigrationSchema
381 schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
390};
401const char descriptor_table_protodef_ortools_2fmath_5fopt_2fcallback_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
402 protodesc_cold) = {
403 "\n\037ortools/math_opt/callback.proto\022\034opera"
404 "tions_research.math_opt\032\036google/protobuf"
405 "/duration.proto\032(ortools/math_opt/sparse"
406 "_containers.proto\"\346\r\n\021CallbackDataProto\022"
407 "\?\n\005event\030\001 \001(\01620.operations_research.mat"
408 "h_opt.CallbackEventProto\022U\n\026primal_solut"
409 "ion_vector\030\002 \001(\01325.operations_research.m"
410 "ath_opt.SparseDoubleVectorProto\022*\n\007runti"
411 "me\030\003 \001(\0132\031.google.protobuf.Duration\022U\n\016p"
412 "resolve_stats\030\004 \001(\0132=.operations_researc"
413 "h.math_opt.CallbackDataProto.PresolveSta"
414 "ts\022S\n\rsimplex_stats\030\005 \001(\0132<.operations_r"
415 "esearch.math_opt.CallbackDataProto.Simpl"
416 "exStats\022S\n\rbarrier_stats\030\006 \001(\0132<.operati"
417 "ons_research.math_opt.CallbackDataProto."
418 "BarrierStats\022K\n\tmip_stats\030\007 \001(\01328.operat"
419 "ions_research.math_opt.CallbackDataProto"
420 ".MipStats\032\347\001\n\rPresolveStats\022\036\n\021removed_v"
421 "ariables\030\001 \001(\003H\000\210\001\001\022 \n\023removed_constrain"
422 "ts\030\002 \001(\003H\001\210\001\001\022\032\n\rbound_changes\030\003 \001(\003H\002\210\001"
423 "\001\022 \n\023coefficient_changes\030\004 \001(\003H\003\210\001\001B\024\n\022_"
424 "removed_variablesB\026\n\024_removed_constraint"
425 "sB\020\n\016_bound_changesB\026\n\024_coefficient_chan"
426 "ges\032\224\002\n\014SimplexStats\022\034\n\017iteration_count\030"
427 "\001 \001(\003H\000\210\001\001\022\034\n\017objective_value\030\002 \001(\001H\001\210\001\001"
428 "\022!\n\024primal_infeasibility\030\003 \001(\001H\002\210\001\001\022\037\n\022d"
429 "ual_infeasibility\030\004 \001(\001H\003\210\001\001\022\032\n\ris_pertu"
430 "bated\030\005 \001(\010H\004\210\001\001B\022\n\020_iteration_countB\022\n\020"
431 "_objective_valueB\027\n\025_primal_infeasibilit"
432 "yB\025\n\023_dual_infeasibilityB\020\n\016_is_pertubat"
433 "ed\032\312\002\n\014BarrierStats\022\034\n\017iteration_count\030\001"
434 " \001(\005H\000\210\001\001\022\035\n\020primal_objective\030\002 \001(\001H\001\210\001\001"
435 "\022\033\n\016dual_objective\030\003 \001(\001H\002\210\001\001\022\034\n\017complem"
436 "entarity\030\004 \001(\001H\003\210\001\001\022!\n\024primal_infeasibil"
437 "ity\030\005 \001(\001H\004\210\001\001\022\037\n\022dual_infeasibility\030\006 \001"
438 "(\001H\005\210\001\001B\022\n\020_iteration_countB\023\n\021_primal_o"
439 "bjectiveB\021\n\017_dual_objectiveB\022\n\020_compleme"
440 "ntarityB\027\n\025_primal_infeasibilityB\025\n\023_dua"
441 "l_infeasibility\032\360\002\n\010MipStats\022\031\n\014primal_b"
442 "ound\030\001 \001(\001H\000\210\001\001\022\027\n\ndual_bound\030\002 \001(\001H\001\210\001\001"
443 "\022\033\n\016explored_nodes\030\003 \001(\003H\002\210\001\001\022\027\n\nopen_no"
444 "des\030\004 \001(\003H\003\210\001\001\022\037\n\022simplex_iterations\030\005 \001"
445 "(\003H\004\210\001\001\022&\n\031number_of_solutions_found\030\006 \001"
446 "(\005H\005\210\001\001\022!\n\024cutting_planes_in_lp\030\007 \001(\005H\006\210"
447 "\001\001B\017\n\r_primal_boundB\r\n\013_dual_boundB\021\n\017_e"
448 "xplored_nodesB\r\n\013_open_nodesB\025\n\023_simplex"
449 "_iterationsB\034\n\032_number_of_solutions_foun"
450 "dB\027\n\025_cutting_planes_in_lp\"\202\003\n\023CallbackR"
451 "esultProto\022\021\n\tterminate\030\001 \001(\010\022Y\n\004cuts\030\004 "
452 "\003(\0132K.operations_research.math_opt.Callb"
453 "ackResultProto.GeneratedLinearConstraint"
454 "\022R\n\023suggested_solutions\030\005 \003(\01325.operatio"
455 "ns_research.math_opt.SparseDoubleVectorP"
456 "roto\032\250\001\n\031GeneratedLinearConstraint\022P\n\021li"
457 "near_expression\030\001 \001(\01325.operations_resea"
458 "rch.math_opt.SparseDoubleVectorProto\022\023\n\013"
459 "lower_bound\030\002 \001(\001\022\023\n\013upper_bound\030\003 \001(\001\022\017"
460 "\n\007is_lazy\030\004 \001(\010\"\277\002\n\031CallbackRegistration"
461 "Proto\022N\n\024request_registration\030\001 \003(\01620.op"
462 "erations_research.math_opt.CallbackEvent"
463 "Proto\022R\n\023mip_solution_filter\030\002 \001(\01325.ope"
464 "rations_research.math_opt.SparseVectorFi"
465 "lterProto\022N\n\017mip_node_filter\030\003 \001(\01325.ope"
466 "rations_research.math_opt.SparseVectorFi"
467 "lterProto\022\020\n\010add_cuts\030\004 \001(\010\022\034\n\024add_lazy_"
468 "constraints\030\005 \001(\010*\337\001\n\022CallbackEventProto"
469 "\022\036\n\032CALLBACK_EVENT_UNSPECIFIED\020\000\022\033\n\027CALL"
470 "BACK_EVENT_PRESOLVE\020\001\022\032\n\026CALLBACK_EVENT_"
471 "SIMPLEX\020\002\022\026\n\022CALLBACK_EVENT_MIP\020\003\022\037\n\033CAL"
472 "LBACK_EVENT_MIP_SOLUTION\020\004\022\033\n\027CALLBACK_E"
473 "VENT_MIP_NODE\020\005\022\032\n\026CALLBACK_EVENT_BARRIE"
474 "R\020\006B\036\n\032com.google.ortools.mathoptP\001b\006pro"
475 "to3"
476};
477static const ::_pbi::DescriptorTable* PROTOBUF_NONNULL const
499namespace operations_research {
500namespace math_opt {
501const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL CallbackEventProto_descriptor() {
502 ::google::protobuf::internal::AssignDescriptors(&descriptor_table_ortools_2fmath_5fopt_2fcallback_2eproto);
504}
505PROTOBUF_CONSTINIT const uint32_t CallbackEventProto_internal_data_[] = {
506 458752u, 0u, };
507// ===================================================================
508
509class CallbackDataProto_PresolveStats::_Internal {
510 public:
511 using HasBits =
512 decltype(::std::declval<CallbackDataProto_PresolveStats>()._impl_._has_bits_);
513 static constexpr ::int32_t kHasBitsOffset =
514 8 * PROTOBUF_FIELD_OFFSET(CallbackDataProto_PresolveStats, _impl_._has_bits_);
515};
516
517CallbackDataProto_PresolveStats::CallbackDataProto_PresolveStats(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
518#if defined(PROTOBUF_CUSTOM_VTABLE)
519 : ::google::protobuf::Message(arena, CallbackDataProto_PresolveStats_class_data_.base()) {
520#else // PROTOBUF_CUSTOM_VTABLE
521 : ::google::protobuf::Message(arena) {
522#endif // PROTOBUF_CUSTOM_VTABLE
523 SharedCtor(arena);
524 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.CallbackDataProto.PresolveStats)
525}
527 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const CallbackDataProto_PresolveStats& from)
528#if defined(PROTOBUF_CUSTOM_VTABLE)
529 : ::google::protobuf::Message(arena, CallbackDataProto_PresolveStats_class_data_.base()),
530#else // PROTOBUF_CUSTOM_VTABLE
531 : ::google::protobuf::Message(arena),
532#endif // PROTOBUF_CUSTOM_VTABLE
533 _impl_(from._impl_) {
534 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
535 from._internal_metadata_);
536}
537PROTOBUF_NDEBUG_INLINE CallbackDataProto_PresolveStats::Impl_::Impl_(
538 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
539 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
540 : _cached_size_{0} {}
541
542inline void CallbackDataProto_PresolveStats::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
543 new (&_impl_) Impl_(internal_visibility(), arena);
544 ::memset(reinterpret_cast<char*>(&_impl_) +
545 offsetof(Impl_, removed_variables_),
546 0,
547 offsetof(Impl_, coefficient_changes_) -
548 offsetof(Impl_, removed_variables_) +
549 sizeof(Impl_::coefficient_changes_));
550}
552 // @@protoc_insertion_point(destructor:operations_research.math_opt.CallbackDataProto.PresolveStats)
553 SharedDtor(*this);
554}
555inline void CallbackDataProto_PresolveStats::SharedDtor(MessageLite& self) {
557 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
558 this_.CheckHasBitConsistency();
559 }
560 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
561 ABSL_DCHECK(this_.GetArena() == nullptr);
562 this_._impl_.~Impl_();
563}
564
565inline void* PROTOBUF_NONNULL CallbackDataProto_PresolveStats::PlacementNew_(
566 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
567 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
568 return ::new (mem) CallbackDataProto_PresolveStats(arena);
569}
570constexpr auto CallbackDataProto_PresolveStats::InternalNewImpl_() {
571 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(CallbackDataProto_PresolveStats),
573}
575 return ::google::protobuf::internal::ClassDataFull{
576 ::google::protobuf::internal::ClassData{
578 &_table_.header,
579 nullptr, // OnDemandRegisterArenaDtor
580 nullptr, // IsInitialized
581 &CallbackDataProto_PresolveStats::MergeImpl,
582 ::google::protobuf::Message::GetNewImpl<CallbackDataProto_PresolveStats>(),
583#if defined(PROTOBUF_CUSTOM_VTABLE)
584 &CallbackDataProto_PresolveStats::SharedDtor,
585 ::google::protobuf::Message::GetClearImpl<CallbackDataProto_PresolveStats>(), &CallbackDataProto_PresolveStats::ByteSizeLong,
587#endif // PROTOBUF_CUSTOM_VTABLE
588 PROTOBUF_FIELD_OFFSET(CallbackDataProto_PresolveStats, _impl_._cached_size_),
589 false,
590 },
591 &CallbackDataProto_PresolveStats::kDescriptorMethods,
593 nullptr, // tracker
594 };
595}
596
597PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
598 ::google::protobuf::internal::ClassDataFull CallbackDataProto_PresolveStats_class_data_ =
600
601PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
602CallbackDataProto_PresolveStats::GetClassData() const {
603 ::google::protobuf::internal::PrefetchToLocalCache(&CallbackDataProto_PresolveStats_class_data_);
604 ::google::protobuf::internal::PrefetchToLocalCache(CallbackDataProto_PresolveStats_class_data_.tc_table);
606}
607PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
608const ::_pbi::TcParseTable<2, 4, 0, 0, 2>
609CallbackDataProto_PresolveStats::_table_ = {
610 {
611 PROTOBUF_FIELD_OFFSET(CallbackDataProto_PresolveStats, _impl_._has_bits_),
612 0, // no _extensions_
613 4, 24, // max_field_number, fast_idx_mask
614 offsetof(decltype(_table_), field_lookup_table),
615 4294967280, // skipmap
616 offsetof(decltype(_table_), field_entries),
617 4, // num_field_entries
618 0, // num_aux_entries
619 offsetof(decltype(_table_), field_names), // no aux_entries
621 nullptr, // post_loop_handler
622 ::_pbi::TcParser::GenericFallback, // fallback
623 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
624 ::_pbi::TcParser::GetTable<::operations_research::math_opt::CallbackDataProto_PresolveStats>(), // to_prefetch
625 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
626 }, {{
627 // optional int64 coefficient_changes = 4;
628 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(CallbackDataProto_PresolveStats, _impl_.coefficient_changes_), 3>(),
629 {32, 3, 0,
630 PROTOBUF_FIELD_OFFSET(CallbackDataProto_PresolveStats, _impl_.coefficient_changes_)}},
631 // optional int64 removed_variables = 1;
632 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(CallbackDataProto_PresolveStats, _impl_.removed_variables_), 0>(),
633 {8, 0, 0,
634 PROTOBUF_FIELD_OFFSET(CallbackDataProto_PresolveStats, _impl_.removed_variables_)}},
635 // optional int64 removed_constraints = 2;
636 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(CallbackDataProto_PresolveStats, _impl_.removed_constraints_), 1>(),
637 {16, 1, 0,
638 PROTOBUF_FIELD_OFFSET(CallbackDataProto_PresolveStats, _impl_.removed_constraints_)}},
639 // optional int64 bound_changes = 3;
640 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(CallbackDataProto_PresolveStats, _impl_.bound_changes_), 2>(),
641 {24, 2, 0,
642 PROTOBUF_FIELD_OFFSET(CallbackDataProto_PresolveStats, _impl_.bound_changes_)}},
643 }}, {{
644 65535, 65535
645 }}, {{
646 // optional int64 removed_variables = 1;
647 {PROTOBUF_FIELD_OFFSET(CallbackDataProto_PresolveStats, _impl_.removed_variables_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
648 // optional int64 removed_constraints = 2;
649 {PROTOBUF_FIELD_OFFSET(CallbackDataProto_PresolveStats, _impl_.removed_constraints_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
650 // optional int64 bound_changes = 3;
651 {PROTOBUF_FIELD_OFFSET(CallbackDataProto_PresolveStats, _impl_.bound_changes_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
652 // optional int64 coefficient_changes = 4;
653 {PROTOBUF_FIELD_OFFSET(CallbackDataProto_PresolveStats, _impl_.coefficient_changes_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
654 }},
655 // no aux_entries
656 {{
657 }},
658};
659PROTOBUF_NOINLINE void CallbackDataProto_PresolveStats::Clear() {
660// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.CallbackDataProto.PresolveStats)
661 ::google::protobuf::internal::TSanWrite(&_impl_);
662 ::uint32_t cached_has_bits = 0;
663 // Prevent compiler warnings about cached_has_bits being unused
664 (void) cached_has_bits;
665
666 cached_has_bits = _impl_._has_bits_[0];
667 if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
668 ::memset(&_impl_.removed_variables_, 0, static_cast<::size_t>(
669 reinterpret_cast<char*>(&_impl_.coefficient_changes_) -
670 reinterpret_cast<char*>(&_impl_.removed_variables_)) + sizeof(_impl_.coefficient_changes_));
671 }
672 _impl_._has_bits_.Clear();
673 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
674}
675
676#if defined(PROTOBUF_CUSTOM_VTABLE)
678 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
679 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
680 const CallbackDataProto_PresolveStats& this_ = static_cast<const CallbackDataProto_PresolveStats&>(base);
681#else // PROTOBUF_CUSTOM_VTABLE
683 ::uint8_t* PROTOBUF_NONNULL target,
684 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
685 const CallbackDataProto_PresolveStats& this_ = *this;
686#endif // PROTOBUF_CUSTOM_VTABLE
687 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
688 this_.CheckHasBitConsistency();
689 }
690 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.CallbackDataProto.PresolveStats)
691 ::uint32_t cached_has_bits = 0;
692 (void)cached_has_bits;
693
694 cached_has_bits = this_._impl_._has_bits_[0];
695 // optional int64 removed_variables = 1;
696 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
697 target =
698 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
699 stream, this_._internal_removed_variables(), target);
700 }
701
702 // optional int64 removed_constraints = 2;
703 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
704 target =
705 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
706 stream, this_._internal_removed_constraints(), target);
707 }
708
709 // optional int64 bound_changes = 3;
710 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
711 target =
712 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>(
713 stream, this_._internal_bound_changes(), target);
714 }
715
716 // optional int64 coefficient_changes = 4;
717 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
718 target =
719 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<4>(
720 stream, this_._internal_coefficient_changes(), target);
721 }
722
723 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
724 target =
725 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
726 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
727 }
728 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.CallbackDataProto.PresolveStats)
729 return target;
730}
731
732#if defined(PROTOBUF_CUSTOM_VTABLE)
734 const CallbackDataProto_PresolveStats& this_ = static_cast<const CallbackDataProto_PresolveStats&>(base);
735#else // PROTOBUF_CUSTOM_VTABLE
738#endif // PROTOBUF_CUSTOM_VTABLE
739 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.CallbackDataProto.PresolveStats)
740 ::size_t total_size = 0;
741
742 ::uint32_t cached_has_bits = 0;
743 // Prevent compiler warnings about cached_has_bits being unused
744 (void)cached_has_bits;
745
746 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
747 cached_has_bits = this_._impl_._has_bits_[0];
748 if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
749 // optional int64 removed_variables = 1;
750 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
751 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
752 this_._internal_removed_variables());
753 }
754 // optional int64 removed_constraints = 2;
755 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
756 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
757 this_._internal_removed_constraints());
758 }
759 // optional int64 bound_changes = 3;
760 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
761 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
762 this_._internal_bound_changes());
763 }
764 // optional int64 coefficient_changes = 4;
765 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
766 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
767 this_._internal_coefficient_changes());
768 }
769 }
770 return this_.MaybeComputeUnknownFieldsSize(total_size,
771 &this_._impl_._cached_size_);
772}
773
774void CallbackDataProto_PresolveStats::MergeImpl(::google::protobuf::MessageLite& to_msg,
775 const ::google::protobuf::MessageLite& from_msg) {
776 auto* const _this =
777 static_cast<CallbackDataProto_PresolveStats*>(&to_msg);
778 auto& from = static_cast<const CallbackDataProto_PresolveStats&>(from_msg);
779 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
780 from.CheckHasBitConsistency();
781 }
782 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.CallbackDataProto.PresolveStats)
783 ABSL_DCHECK_NE(&from, _this);
784 ::uint32_t cached_has_bits = 0;
785 (void)cached_has_bits;
786
787 cached_has_bits = from._impl_._has_bits_[0];
788 if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
789 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
790 _this->_impl_.removed_variables_ = from._impl_.removed_variables_;
791 }
792 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
793 _this->_impl_.removed_constraints_ = from._impl_.removed_constraints_;
794 }
795 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
796 _this->_impl_.bound_changes_ = from._impl_.bound_changes_;
797 }
798 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
799 _this->_impl_.coefficient_changes_ = from._impl_.coefficient_changes_;
800 }
801 }
802 _this->_impl_._has_bits_[0] |= cached_has_bits;
803 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
804 from._internal_metadata_);
805}
806
808 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.CallbackDataProto.PresolveStats)
809 if (&from == this) return;
810 Clear();
811 MergeFrom(from);
812}
813
814
815void CallbackDataProto_PresolveStats::InternalSwap(CallbackDataProto_PresolveStats* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
816 using ::std::swap;
817 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
818 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
819 ::google::protobuf::internal::memswap<
820 PROTOBUF_FIELD_OFFSET(CallbackDataProto_PresolveStats, _impl_.coefficient_changes_)
821 + sizeof(CallbackDataProto_PresolveStats::_impl_.coefficient_changes_)
822 - PROTOBUF_FIELD_OFFSET(CallbackDataProto_PresolveStats, _impl_.removed_variables_)>(
823 reinterpret_cast<char*>(&_impl_.removed_variables_),
824 reinterpret_cast<char*>(&other->_impl_.removed_variables_));
825}
826
827::google::protobuf::Metadata CallbackDataProto_PresolveStats::GetMetadata() const {
828 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
829}
830// ===================================================================
831
833 public:
834 using HasBits =
835 decltype(::std::declval<CallbackDataProto_SimplexStats>()._impl_._has_bits_);
836 static constexpr ::int32_t kHasBitsOffset =
837 8 * PROTOBUF_FIELD_OFFSET(CallbackDataProto_SimplexStats, _impl_._has_bits_);
839
840CallbackDataProto_SimplexStats::CallbackDataProto_SimplexStats(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
841#if defined(PROTOBUF_CUSTOM_VTABLE)
842 : ::google::protobuf::Message(arena, CallbackDataProto_SimplexStats_class_data_.base()) {
843#else // PROTOBUF_CUSTOM_VTABLE
844 : ::google::protobuf::Message(arena) {
845#endif // PROTOBUF_CUSTOM_VTABLE
846 SharedCtor(arena);
847 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.CallbackDataProto.SimplexStats)
848}
850 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const CallbackDataProto_SimplexStats& from)
851#if defined(PROTOBUF_CUSTOM_VTABLE)
852 : ::google::protobuf::Message(arena, CallbackDataProto_SimplexStats_class_data_.base()),
853#else // PROTOBUF_CUSTOM_VTABLE
854 : ::google::protobuf::Message(arena),
855#endif // PROTOBUF_CUSTOM_VTABLE
856 _impl_(from._impl_) {
857 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
858 from._internal_metadata_);
859}
860PROTOBUF_NDEBUG_INLINE CallbackDataProto_SimplexStats::Impl_::Impl_(
861 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
862 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
863 : _cached_size_{0} {}
864
865inline void CallbackDataProto_SimplexStats::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
866 new (&_impl_) Impl_(internal_visibility(), arena);
867 ::memset(reinterpret_cast<char*>(&_impl_) +
868 offsetof(Impl_, iteration_count_),
869 0,
870 offsetof(Impl_, is_pertubated_) -
871 offsetof(Impl_, iteration_count_) +
872 sizeof(Impl_::is_pertubated_));
873}
875 // @@protoc_insertion_point(destructor:operations_research.math_opt.CallbackDataProto.SimplexStats)
876 SharedDtor(*this);
877}
878inline void CallbackDataProto_SimplexStats::SharedDtor(MessageLite& self) {
880 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
881 this_.CheckHasBitConsistency();
882 }
883 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
884 ABSL_DCHECK(this_.GetArena() == nullptr);
885 this_._impl_.~Impl_();
886}
887
888inline void* PROTOBUF_NONNULL CallbackDataProto_SimplexStats::PlacementNew_(
889 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
890 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
891 return ::new (mem) CallbackDataProto_SimplexStats(arena);
892}
893constexpr auto CallbackDataProto_SimplexStats::InternalNewImpl_() {
894 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(CallbackDataProto_SimplexStats),
896}
898 return ::google::protobuf::internal::ClassDataFull{
899 ::google::protobuf::internal::ClassData{
901 &_table_.header,
902 nullptr, // OnDemandRegisterArenaDtor
903 nullptr, // IsInitialized
904 &CallbackDataProto_SimplexStats::MergeImpl,
905 ::google::protobuf::Message::GetNewImpl<CallbackDataProto_SimplexStats>(),
906#if defined(PROTOBUF_CUSTOM_VTABLE)
907 &CallbackDataProto_SimplexStats::SharedDtor,
908 ::google::protobuf::Message::GetClearImpl<CallbackDataProto_SimplexStats>(), &CallbackDataProto_SimplexStats::ByteSizeLong,
910#endif // PROTOBUF_CUSTOM_VTABLE
911 PROTOBUF_FIELD_OFFSET(CallbackDataProto_SimplexStats, _impl_._cached_size_),
912 false,
913 },
914 &CallbackDataProto_SimplexStats::kDescriptorMethods,
916 nullptr, // tracker
917 };
918}
919
920PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
921 ::google::protobuf::internal::ClassDataFull CallbackDataProto_SimplexStats_class_data_ =
924PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
925CallbackDataProto_SimplexStats::GetClassData() const {
926 ::google::protobuf::internal::PrefetchToLocalCache(&CallbackDataProto_SimplexStats_class_data_);
927 ::google::protobuf::internal::PrefetchToLocalCache(CallbackDataProto_SimplexStats_class_data_.tc_table);
929}
930PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
931const ::_pbi::TcParseTable<3, 5, 0, 0, 2>
932CallbackDataProto_SimplexStats::_table_ = {
933 {
934 PROTOBUF_FIELD_OFFSET(CallbackDataProto_SimplexStats, _impl_._has_bits_),
935 0, // no _extensions_
936 5, 56, // max_field_number, fast_idx_mask
937 offsetof(decltype(_table_), field_lookup_table),
938 4294967264, // skipmap
939 offsetof(decltype(_table_), field_entries),
940 5, // num_field_entries
941 0, // num_aux_entries
942 offsetof(decltype(_table_), field_names), // no aux_entries
944 nullptr, // post_loop_handler
945 ::_pbi::TcParser::GenericFallback, // fallback
946 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
947 ::_pbi::TcParser::GetTable<::operations_research::math_opt::CallbackDataProto_SimplexStats>(), // to_prefetch
948 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
949 }, {{
950 {::_pbi::TcParser::MiniParse, {}},
951 // optional int64 iteration_count = 1;
952 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(CallbackDataProto_SimplexStats, _impl_.iteration_count_), 0>(),
953 {8, 0, 0,
954 PROTOBUF_FIELD_OFFSET(CallbackDataProto_SimplexStats, _impl_.iteration_count_)}},
955 // optional double objective_value = 2;
956 {::_pbi::TcParser::FastF64S1,
957 {17, 1, 0,
958 PROTOBUF_FIELD_OFFSET(CallbackDataProto_SimplexStats, _impl_.objective_value_)}},
959 // optional double primal_infeasibility = 3;
960 {::_pbi::TcParser::FastF64S1,
961 {25, 2, 0,
962 PROTOBUF_FIELD_OFFSET(CallbackDataProto_SimplexStats, _impl_.primal_infeasibility_)}},
963 // optional double dual_infeasibility = 4;
964 {::_pbi::TcParser::FastF64S1,
965 {33, 3, 0,
966 PROTOBUF_FIELD_OFFSET(CallbackDataProto_SimplexStats, _impl_.dual_infeasibility_)}},
967 // optional bool is_pertubated = 5;
968 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(CallbackDataProto_SimplexStats, _impl_.is_pertubated_), 4>(),
969 {40, 4, 0,
970 PROTOBUF_FIELD_OFFSET(CallbackDataProto_SimplexStats, _impl_.is_pertubated_)}},
971 {::_pbi::TcParser::MiniParse, {}},
972 {::_pbi::TcParser::MiniParse, {}},
973 }}, {{
974 65535, 65535
975 }}, {{
976 // optional int64 iteration_count = 1;
977 {PROTOBUF_FIELD_OFFSET(CallbackDataProto_SimplexStats, _impl_.iteration_count_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
978 // optional double objective_value = 2;
979 {PROTOBUF_FIELD_OFFSET(CallbackDataProto_SimplexStats, _impl_.objective_value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
980 // optional double primal_infeasibility = 3;
981 {PROTOBUF_FIELD_OFFSET(CallbackDataProto_SimplexStats, _impl_.primal_infeasibility_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
982 // optional double dual_infeasibility = 4;
983 {PROTOBUF_FIELD_OFFSET(CallbackDataProto_SimplexStats, _impl_.dual_infeasibility_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
984 // optional bool is_pertubated = 5;
985 {PROTOBUF_FIELD_OFFSET(CallbackDataProto_SimplexStats, _impl_.is_pertubated_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
986 }},
987 // no aux_entries
988 {{
989 }},
990};
991PROTOBUF_NOINLINE void CallbackDataProto_SimplexStats::Clear() {
992// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.CallbackDataProto.SimplexStats)
993 ::google::protobuf::internal::TSanWrite(&_impl_);
994 ::uint32_t cached_has_bits = 0;
995 // Prevent compiler warnings about cached_has_bits being unused
996 (void) cached_has_bits;
997
998 cached_has_bits = _impl_._has_bits_[0];
999 if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
1000 ::memset(&_impl_.iteration_count_, 0, static_cast<::size_t>(
1001 reinterpret_cast<char*>(&_impl_.is_pertubated_) -
1002 reinterpret_cast<char*>(&_impl_.iteration_count_)) + sizeof(_impl_.is_pertubated_));
1003 }
1004 _impl_._has_bits_.Clear();
1005 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1006}
1007
1008#if defined(PROTOBUF_CUSTOM_VTABLE)
1009::uint8_t* PROTOBUF_NONNULL CallbackDataProto_SimplexStats::_InternalSerialize(
1010 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1011 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1012 const CallbackDataProto_SimplexStats& this_ = static_cast<const CallbackDataProto_SimplexStats&>(base);
1013#else // PROTOBUF_CUSTOM_VTABLE
1014::uint8_t* PROTOBUF_NONNULL CallbackDataProto_SimplexStats::_InternalSerialize(
1015 ::uint8_t* PROTOBUF_NONNULL target,
1016 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1017 const CallbackDataProto_SimplexStats& this_ = *this;
1018#endif // PROTOBUF_CUSTOM_VTABLE
1019 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1020 this_.CheckHasBitConsistency();
1021 }
1022 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.CallbackDataProto.SimplexStats)
1023 ::uint32_t cached_has_bits = 0;
1024 (void)cached_has_bits;
1025
1026 cached_has_bits = this_._impl_._has_bits_[0];
1027 // optional int64 iteration_count = 1;
1028 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1029 target =
1030 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
1031 stream, this_._internal_iteration_count(), target);
1032 }
1033
1034 // optional double objective_value = 2;
1035 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1036 target = stream->EnsureSpace(target);
1037 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
1038 2, this_._internal_objective_value(), target);
1039 }
1040
1041 // optional double primal_infeasibility = 3;
1042 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1043 target = stream->EnsureSpace(target);
1044 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
1045 3, this_._internal_primal_infeasibility(), target);
1046 }
1047
1048 // optional double dual_infeasibility = 4;
1049 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1050 target = stream->EnsureSpace(target);
1051 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
1052 4, this_._internal_dual_infeasibility(), target);
1053 }
1054
1055 // optional bool is_pertubated = 5;
1056 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
1057 target = stream->EnsureSpace(target);
1058 target = ::_pbi::WireFormatLite::WriteBoolToArray(
1059 5, this_._internal_is_pertubated(), target);
1060 }
1061
1062 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1063 target =
1064 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1065 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1066 }
1067 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.CallbackDataProto.SimplexStats)
1068 return target;
1069}
1070
1071#if defined(PROTOBUF_CUSTOM_VTABLE)
1073 const CallbackDataProto_SimplexStats& this_ = static_cast<const CallbackDataProto_SimplexStats&>(base);
1074#else // PROTOBUF_CUSTOM_VTABLE
1076 const CallbackDataProto_SimplexStats& this_ = *this;
1077#endif // PROTOBUF_CUSTOM_VTABLE
1078 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.CallbackDataProto.SimplexStats)
1079 ::size_t total_size = 0;
1080
1081 ::uint32_t cached_has_bits = 0;
1082 // Prevent compiler warnings about cached_has_bits being unused
1083 (void)cached_has_bits;
1084
1085 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1086 cached_has_bits = this_._impl_._has_bits_[0];
1087 total_size += ::absl::popcount(0x0000000eU & cached_has_bits) * 9;
1088 total_size += static_cast<bool>(0x00000010U & cached_has_bits) * 2;
1089 {
1090 // optional int64 iteration_count = 1;
1091 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1092 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
1093 this_._internal_iteration_count());
1094 }
1095 }
1096 return this_.MaybeComputeUnknownFieldsSize(total_size,
1097 &this_._impl_._cached_size_);
1098}
1099
1100void CallbackDataProto_SimplexStats::MergeImpl(::google::protobuf::MessageLite& to_msg,
1101 const ::google::protobuf::MessageLite& from_msg) {
1102 auto* const _this =
1103 static_cast<CallbackDataProto_SimplexStats*>(&to_msg);
1104 auto& from = static_cast<const CallbackDataProto_SimplexStats&>(from_msg);
1105 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1106 from.CheckHasBitConsistency();
1107 }
1108 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.CallbackDataProto.SimplexStats)
1109 ABSL_DCHECK_NE(&from, _this);
1110 ::uint32_t cached_has_bits = 0;
1111 (void)cached_has_bits;
1112
1113 cached_has_bits = from._impl_._has_bits_[0];
1114 if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
1115 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1116 _this->_impl_.iteration_count_ = from._impl_.iteration_count_;
1117 }
1118 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1119 _this->_impl_.objective_value_ = from._impl_.objective_value_;
1120 }
1121 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1122 _this->_impl_.primal_infeasibility_ = from._impl_.primal_infeasibility_;
1123 }
1124 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1125 _this->_impl_.dual_infeasibility_ = from._impl_.dual_infeasibility_;
1126 }
1127 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
1128 _this->_impl_.is_pertubated_ = from._impl_.is_pertubated_;
1129 }
1130 }
1131 _this->_impl_._has_bits_[0] |= cached_has_bits;
1132 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1133 from._internal_metadata_);
1134}
1135
1137 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.CallbackDataProto.SimplexStats)
1138 if (&from == this) return;
1139 Clear();
1140 MergeFrom(from);
1141}
1142
1143
1144void CallbackDataProto_SimplexStats::InternalSwap(CallbackDataProto_SimplexStats* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1145 using ::std::swap;
1146 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1147 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1148 ::google::protobuf::internal::memswap<
1149 PROTOBUF_FIELD_OFFSET(CallbackDataProto_SimplexStats, _impl_.is_pertubated_)
1150 + sizeof(CallbackDataProto_SimplexStats::_impl_.is_pertubated_)
1151 - PROTOBUF_FIELD_OFFSET(CallbackDataProto_SimplexStats, _impl_.iteration_count_)>(
1152 reinterpret_cast<char*>(&_impl_.iteration_count_),
1153 reinterpret_cast<char*>(&other->_impl_.iteration_count_));
1154}
1155
1156::google::protobuf::Metadata CallbackDataProto_SimplexStats::GetMetadata() const {
1157 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1159// ===================================================================
1160
1162 public:
1163 using HasBits =
1164 decltype(::std::declval<CallbackDataProto_BarrierStats>()._impl_._has_bits_);
1165 static constexpr ::int32_t kHasBitsOffset =
1166 8 * PROTOBUF_FIELD_OFFSET(CallbackDataProto_BarrierStats, _impl_._has_bits_);
1167};
1169CallbackDataProto_BarrierStats::CallbackDataProto_BarrierStats(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1170#if defined(PROTOBUF_CUSTOM_VTABLE)
1171 : ::google::protobuf::Message(arena, CallbackDataProto_BarrierStats_class_data_.base()) {
1172#else // PROTOBUF_CUSTOM_VTABLE
1173 : ::google::protobuf::Message(arena) {
1174#endif // PROTOBUF_CUSTOM_VTABLE
1175 SharedCtor(arena);
1176 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.CallbackDataProto.BarrierStats)
1177}
1179 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const CallbackDataProto_BarrierStats& from)
1180#if defined(PROTOBUF_CUSTOM_VTABLE)
1181 : ::google::protobuf::Message(arena, CallbackDataProto_BarrierStats_class_data_.base()),
1182#else // PROTOBUF_CUSTOM_VTABLE
1183 : ::google::protobuf::Message(arena),
1184#endif // PROTOBUF_CUSTOM_VTABLE
1185 _impl_(from._impl_) {
1186 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1187 from._internal_metadata_);
1188}
1189PROTOBUF_NDEBUG_INLINE CallbackDataProto_BarrierStats::Impl_::Impl_(
1190 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1191 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1192 : _cached_size_{0} {}
1193
1194inline void CallbackDataProto_BarrierStats::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1195 new (&_impl_) Impl_(internal_visibility(), arena);
1196 ::memset(reinterpret_cast<char*>(&_impl_) +
1197 offsetof(Impl_, primal_objective_),
1198 0,
1199 offsetof(Impl_, iteration_count_) -
1200 offsetof(Impl_, primal_objective_) +
1201 sizeof(Impl_::iteration_count_));
1202}
1204 // @@protoc_insertion_point(destructor:operations_research.math_opt.CallbackDataProto.BarrierStats)
1205 SharedDtor(*this);
1207inline void CallbackDataProto_BarrierStats::SharedDtor(MessageLite& self) {
1209 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1210 this_.CheckHasBitConsistency();
1211 }
1212 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1213 ABSL_DCHECK(this_.GetArena() == nullptr);
1214 this_._impl_.~Impl_();
1215}
1216
1217inline void* PROTOBUF_NONNULL CallbackDataProto_BarrierStats::PlacementNew_(
1218 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1219 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1220 return ::new (mem) CallbackDataProto_BarrierStats(arena);
1221}
1222constexpr auto CallbackDataProto_BarrierStats::InternalNewImpl_() {
1223 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(CallbackDataProto_BarrierStats),
1224 alignof(CallbackDataProto_BarrierStats));
1225}
1227 return ::google::protobuf::internal::ClassDataFull{
1228 ::google::protobuf::internal::ClassData{
1230 &_table_.header,
1231 nullptr, // OnDemandRegisterArenaDtor
1232 nullptr, // IsInitialized
1233 &CallbackDataProto_BarrierStats::MergeImpl,
1234 ::google::protobuf::Message::GetNewImpl<CallbackDataProto_BarrierStats>(),
1235#if defined(PROTOBUF_CUSTOM_VTABLE)
1236 &CallbackDataProto_BarrierStats::SharedDtor,
1237 ::google::protobuf::Message::GetClearImpl<CallbackDataProto_BarrierStats>(), &CallbackDataProto_BarrierStats::ByteSizeLong,
1239#endif // PROTOBUF_CUSTOM_VTABLE
1240 PROTOBUF_FIELD_OFFSET(CallbackDataProto_BarrierStats, _impl_._cached_size_),
1241 false,
1242 },
1243 &CallbackDataProto_BarrierStats::kDescriptorMethods,
1245 nullptr, // tracker
1246 };
1247}
1248
1249PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1250 ::google::protobuf::internal::ClassDataFull CallbackDataProto_BarrierStats_class_data_ =
1252
1253PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1254CallbackDataProto_BarrierStats::GetClassData() const {
1255 ::google::protobuf::internal::PrefetchToLocalCache(&CallbackDataProto_BarrierStats_class_data_);
1256 ::google::protobuf::internal::PrefetchToLocalCache(CallbackDataProto_BarrierStats_class_data_.tc_table);
1258}
1259PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1260const ::_pbi::TcParseTable<3, 6, 0, 0, 2>
1261CallbackDataProto_BarrierStats::_table_ = {
1262 {
1263 PROTOBUF_FIELD_OFFSET(CallbackDataProto_BarrierStats, _impl_._has_bits_),
1264 0, // no _extensions_
1265 6, 56, // max_field_number, fast_idx_mask
1266 offsetof(decltype(_table_), field_lookup_table),
1267 4294967232, // skipmap
1268 offsetof(decltype(_table_), field_entries),
1269 6, // num_field_entries
1270 0, // num_aux_entries
1271 offsetof(decltype(_table_), field_names), // no aux_entries
1273 nullptr, // post_loop_handler
1274 ::_pbi::TcParser::GenericFallback, // fallback
1275 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1276 ::_pbi::TcParser::GetTable<::operations_research::math_opt::CallbackDataProto_BarrierStats>(), // to_prefetch
1277 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
1278 }, {{
1279 {::_pbi::TcParser::MiniParse, {}},
1280 // optional int32 iteration_count = 1;
1281 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CallbackDataProto_BarrierStats, _impl_.iteration_count_), 5>(),
1282 {8, 5, 0,
1283 PROTOBUF_FIELD_OFFSET(CallbackDataProto_BarrierStats, _impl_.iteration_count_)}},
1284 // optional double primal_objective = 2;
1285 {::_pbi::TcParser::FastF64S1,
1286 {17, 0, 0,
1287 PROTOBUF_FIELD_OFFSET(CallbackDataProto_BarrierStats, _impl_.primal_objective_)}},
1288 // optional double dual_objective = 3;
1289 {::_pbi::TcParser::FastF64S1,
1290 {25, 1, 0,
1291 PROTOBUF_FIELD_OFFSET(CallbackDataProto_BarrierStats, _impl_.dual_objective_)}},
1292 // optional double complementarity = 4;
1293 {::_pbi::TcParser::FastF64S1,
1294 {33, 2, 0,
1295 PROTOBUF_FIELD_OFFSET(CallbackDataProto_BarrierStats, _impl_.complementarity_)}},
1296 // optional double primal_infeasibility = 5;
1297 {::_pbi::TcParser::FastF64S1,
1298 {41, 3, 0,
1299 PROTOBUF_FIELD_OFFSET(CallbackDataProto_BarrierStats, _impl_.primal_infeasibility_)}},
1300 // optional double dual_infeasibility = 6;
1301 {::_pbi::TcParser::FastF64S1,
1302 {49, 4, 0,
1303 PROTOBUF_FIELD_OFFSET(CallbackDataProto_BarrierStats, _impl_.dual_infeasibility_)}},
1304 {::_pbi::TcParser::MiniParse, {}},
1305 }}, {{
1306 65535, 65535
1307 }}, {{
1308 // optional int32 iteration_count = 1;
1309 {PROTOBUF_FIELD_OFFSET(CallbackDataProto_BarrierStats, _impl_.iteration_count_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
1310 // optional double primal_objective = 2;
1311 {PROTOBUF_FIELD_OFFSET(CallbackDataProto_BarrierStats, _impl_.primal_objective_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
1312 // optional double dual_objective = 3;
1313 {PROTOBUF_FIELD_OFFSET(CallbackDataProto_BarrierStats, _impl_.dual_objective_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
1314 // optional double complementarity = 4;
1315 {PROTOBUF_FIELD_OFFSET(CallbackDataProto_BarrierStats, _impl_.complementarity_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
1316 // optional double primal_infeasibility = 5;
1317 {PROTOBUF_FIELD_OFFSET(CallbackDataProto_BarrierStats, _impl_.primal_infeasibility_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
1318 // optional double dual_infeasibility = 6;
1319 {PROTOBUF_FIELD_OFFSET(CallbackDataProto_BarrierStats, _impl_.dual_infeasibility_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
1320 }},
1321 // no aux_entries
1322 {{
1323 }},
1324};
1325PROTOBUF_NOINLINE void CallbackDataProto_BarrierStats::Clear() {
1326// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.CallbackDataProto.BarrierStats)
1327 ::google::protobuf::internal::TSanWrite(&_impl_);
1328 ::uint32_t cached_has_bits = 0;
1329 // Prevent compiler warnings about cached_has_bits being unused
1330 (void) cached_has_bits;
1331
1332 cached_has_bits = _impl_._has_bits_[0];
1333 if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) {
1334 ::memset(&_impl_.primal_objective_, 0, static_cast<::size_t>(
1335 reinterpret_cast<char*>(&_impl_.iteration_count_) -
1336 reinterpret_cast<char*>(&_impl_.primal_objective_)) + sizeof(_impl_.iteration_count_));
1337 }
1338 _impl_._has_bits_.Clear();
1339 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1340}
1341
1342#if defined(PROTOBUF_CUSTOM_VTABLE)
1343::uint8_t* PROTOBUF_NONNULL CallbackDataProto_BarrierStats::_InternalSerialize(
1344 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1345 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1346 const CallbackDataProto_BarrierStats& this_ = static_cast<const CallbackDataProto_BarrierStats&>(base);
1347#else // PROTOBUF_CUSTOM_VTABLE
1348::uint8_t* PROTOBUF_NONNULL CallbackDataProto_BarrierStats::_InternalSerialize(
1349 ::uint8_t* PROTOBUF_NONNULL target,
1350 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1352#endif // PROTOBUF_CUSTOM_VTABLE
1353 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1354 this_.CheckHasBitConsistency();
1355 }
1356 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.CallbackDataProto.BarrierStats)
1357 ::uint32_t cached_has_bits = 0;
1358 (void)cached_has_bits;
1359
1360 cached_has_bits = this_._impl_._has_bits_[0];
1361 // optional int32 iteration_count = 1;
1362 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
1363 target =
1364 ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>(
1365 stream, this_._internal_iteration_count(), target);
1366 }
1367
1368 // optional double primal_objective = 2;
1369 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1370 target = stream->EnsureSpace(target);
1371 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
1372 2, this_._internal_primal_objective(), target);
1373 }
1374
1375 // optional double dual_objective = 3;
1376 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1377 target = stream->EnsureSpace(target);
1378 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
1379 3, this_._internal_dual_objective(), target);
1380 }
1381
1382 // optional double complementarity = 4;
1383 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1384 target = stream->EnsureSpace(target);
1385 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
1386 4, this_._internal_complementarity(), target);
1387 }
1388
1389 // optional double primal_infeasibility = 5;
1390 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1391 target = stream->EnsureSpace(target);
1392 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
1393 5, this_._internal_primal_infeasibility(), target);
1394 }
1395
1396 // optional double dual_infeasibility = 6;
1397 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
1398 target = stream->EnsureSpace(target);
1399 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
1400 6, this_._internal_dual_infeasibility(), target);
1401 }
1402
1403 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1404 target =
1405 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1406 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1407 }
1408 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.CallbackDataProto.BarrierStats)
1409 return target;
1410}
1411
1412#if defined(PROTOBUF_CUSTOM_VTABLE)
1414 const CallbackDataProto_BarrierStats& this_ = static_cast<const CallbackDataProto_BarrierStats&>(base);
1415#else // PROTOBUF_CUSTOM_VTABLE
1417 const CallbackDataProto_BarrierStats& this_ = *this;
1418#endif // PROTOBUF_CUSTOM_VTABLE
1419 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.CallbackDataProto.BarrierStats)
1420 ::size_t total_size = 0;
1421
1422 ::uint32_t cached_has_bits = 0;
1423 // Prevent compiler warnings about cached_has_bits being unused
1424 (void)cached_has_bits;
1425
1426 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1427 cached_has_bits = this_._impl_._has_bits_[0];
1428 total_size += ::absl::popcount(0x0000001fU & cached_has_bits) * 9;
1429 {
1430 // optional int32 iteration_count = 1;
1431 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
1432 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
1433 this_._internal_iteration_count());
1434 }
1435 }
1436 return this_.MaybeComputeUnknownFieldsSize(total_size,
1437 &this_._impl_._cached_size_);
1438}
1439
1440void CallbackDataProto_BarrierStats::MergeImpl(::google::protobuf::MessageLite& to_msg,
1441 const ::google::protobuf::MessageLite& from_msg) {
1442 auto* const _this =
1443 static_cast<CallbackDataProto_BarrierStats*>(&to_msg);
1444 auto& from = static_cast<const CallbackDataProto_BarrierStats&>(from_msg);
1445 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1446 from.CheckHasBitConsistency();
1447 }
1448 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.CallbackDataProto.BarrierStats)
1449 ABSL_DCHECK_NE(&from, _this);
1450 ::uint32_t cached_has_bits = 0;
1451 (void)cached_has_bits;
1452
1453 cached_has_bits = from._impl_._has_bits_[0];
1454 if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) {
1455 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1456 _this->_impl_.primal_objective_ = from._impl_.primal_objective_;
1457 }
1458 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1459 _this->_impl_.dual_objective_ = from._impl_.dual_objective_;
1460 }
1461 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1462 _this->_impl_.complementarity_ = from._impl_.complementarity_;
1463 }
1464 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1465 _this->_impl_.primal_infeasibility_ = from._impl_.primal_infeasibility_;
1466 }
1467 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
1468 _this->_impl_.dual_infeasibility_ = from._impl_.dual_infeasibility_;
1469 }
1470 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
1471 _this->_impl_.iteration_count_ = from._impl_.iteration_count_;
1472 }
1473 }
1474 _this->_impl_._has_bits_[0] |= cached_has_bits;
1475 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1476 from._internal_metadata_);
1477}
1478
1479void CallbackDataProto_BarrierStats::CopyFrom(const CallbackDataProto_BarrierStats& from) {
1480 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.CallbackDataProto.BarrierStats)
1481 if (&from == this) return;
1483 MergeFrom(from);
1484}
1485
1486
1487void CallbackDataProto_BarrierStats::InternalSwap(CallbackDataProto_BarrierStats* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1488 using ::std::swap;
1489 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1490 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1491 ::google::protobuf::internal::memswap<
1492 PROTOBUF_FIELD_OFFSET(CallbackDataProto_BarrierStats, _impl_.iteration_count_)
1493 + sizeof(CallbackDataProto_BarrierStats::_impl_.iteration_count_)
1494 - PROTOBUF_FIELD_OFFSET(CallbackDataProto_BarrierStats, _impl_.primal_objective_)>(
1495 reinterpret_cast<char*>(&_impl_.primal_objective_),
1496 reinterpret_cast<char*>(&other->_impl_.primal_objective_));
1497}
1498
1499::google::protobuf::Metadata CallbackDataProto_BarrierStats::GetMetadata() const {
1500 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1501}
1502// ===================================================================
1503
1505 public:
1506 using HasBits =
1507 decltype(::std::declval<CallbackDataProto_MipStats>()._impl_._has_bits_);
1508 static constexpr ::int32_t kHasBitsOffset =
1509 8 * PROTOBUF_FIELD_OFFSET(CallbackDataProto_MipStats, _impl_._has_bits_);
1511
1512CallbackDataProto_MipStats::CallbackDataProto_MipStats(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1513#if defined(PROTOBUF_CUSTOM_VTABLE)
1514 : ::google::protobuf::Message(arena, CallbackDataProto_MipStats_class_data_.base()) {
1515#else // PROTOBUF_CUSTOM_VTABLE
1516 : ::google::protobuf::Message(arena) {
1517#endif // PROTOBUF_CUSTOM_VTABLE
1518 SharedCtor(arena);
1519 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.CallbackDataProto.MipStats)
1520}
1522 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const CallbackDataProto_MipStats& from)
1523#if defined(PROTOBUF_CUSTOM_VTABLE)
1524 : ::google::protobuf::Message(arena, CallbackDataProto_MipStats_class_data_.base()),
1525#else // PROTOBUF_CUSTOM_VTABLE
1526 : ::google::protobuf::Message(arena),
1527#endif // PROTOBUF_CUSTOM_VTABLE
1528 _impl_(from._impl_) {
1529 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1530 from._internal_metadata_);
1531}
1532PROTOBUF_NDEBUG_INLINE CallbackDataProto_MipStats::Impl_::Impl_(
1533 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1534 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1535 : _cached_size_{0} {}
1536
1537inline void CallbackDataProto_MipStats::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1538 new (&_impl_) Impl_(internal_visibility(), arena);
1539 ::memset(reinterpret_cast<char*>(&_impl_) +
1540 offsetof(Impl_, primal_bound_),
1541 0,
1542 offsetof(Impl_, cutting_planes_in_lp_) -
1543 offsetof(Impl_, primal_bound_) +
1544 sizeof(Impl_::cutting_planes_in_lp_));
1545}
1547 // @@protoc_insertion_point(destructor:operations_research.math_opt.CallbackDataProto.MipStats)
1548 SharedDtor(*this);
1549}
1550inline void CallbackDataProto_MipStats::SharedDtor(MessageLite& self) {
1551 CallbackDataProto_MipStats& this_ = static_cast<CallbackDataProto_MipStats&>(self);
1552 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1553 this_.CheckHasBitConsistency();
1554 }
1555 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1556 ABSL_DCHECK(this_.GetArena() == nullptr);
1557 this_._impl_.~Impl_();
1558}
1559
1560inline void* PROTOBUF_NONNULL CallbackDataProto_MipStats::PlacementNew_(
1561 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1562 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1563 return ::new (mem) CallbackDataProto_MipStats(arena);
1564}
1565constexpr auto CallbackDataProto_MipStats::InternalNewImpl_() {
1566 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(CallbackDataProto_MipStats),
1567 alignof(CallbackDataProto_MipStats));
1568}
1570 return ::google::protobuf::internal::ClassDataFull{
1571 ::google::protobuf::internal::ClassData{
1573 &_table_.header,
1574 nullptr, // OnDemandRegisterArenaDtor
1575 nullptr, // IsInitialized
1576 &CallbackDataProto_MipStats::MergeImpl,
1577 ::google::protobuf::Message::GetNewImpl<CallbackDataProto_MipStats>(),
1578#if defined(PROTOBUF_CUSTOM_VTABLE)
1579 &CallbackDataProto_MipStats::SharedDtor,
1580 ::google::protobuf::Message::GetClearImpl<CallbackDataProto_MipStats>(), &CallbackDataProto_MipStats::ByteSizeLong,
1582#endif // PROTOBUF_CUSTOM_VTABLE
1583 PROTOBUF_FIELD_OFFSET(CallbackDataProto_MipStats, _impl_._cached_size_),
1584 false,
1585 },
1586 &CallbackDataProto_MipStats::kDescriptorMethods,
1588 nullptr, // tracker
1589 };
1590}
1591
1592PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1593 ::google::protobuf::internal::ClassDataFull CallbackDataProto_MipStats_class_data_ =
1595
1596PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1597CallbackDataProto_MipStats::GetClassData() const {
1598 ::google::protobuf::internal::PrefetchToLocalCache(&CallbackDataProto_MipStats_class_data_);
1599 ::google::protobuf::internal::PrefetchToLocalCache(CallbackDataProto_MipStats_class_data_.tc_table);
1601}
1602PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1603const ::_pbi::TcParseTable<3, 7, 0, 0, 2>
1604CallbackDataProto_MipStats::_table_ = {
1605 {
1606 PROTOBUF_FIELD_OFFSET(CallbackDataProto_MipStats, _impl_._has_bits_),
1607 0, // no _extensions_
1608 7, 56, // max_field_number, fast_idx_mask
1609 offsetof(decltype(_table_), field_lookup_table),
1610 4294967168, // skipmap
1611 offsetof(decltype(_table_), field_entries),
1612 7, // num_field_entries
1613 0, // num_aux_entries
1614 offsetof(decltype(_table_), field_names), // no aux_entries
1616 nullptr, // post_loop_handler
1617 ::_pbi::TcParser::GenericFallback, // fallback
1618 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1619 ::_pbi::TcParser::GetTable<::operations_research::math_opt::CallbackDataProto_MipStats>(), // to_prefetch
1620 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
1621 }, {{
1622 {::_pbi::TcParser::MiniParse, {}},
1623 // optional double primal_bound = 1;
1624 {::_pbi::TcParser::FastF64S1,
1625 {9, 0, 0,
1626 PROTOBUF_FIELD_OFFSET(CallbackDataProto_MipStats, _impl_.primal_bound_)}},
1627 // optional double dual_bound = 2;
1628 {::_pbi::TcParser::FastF64S1,
1629 {17, 1, 0,
1630 PROTOBUF_FIELD_OFFSET(CallbackDataProto_MipStats, _impl_.dual_bound_)}},
1631 // optional int64 explored_nodes = 3;
1632 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(CallbackDataProto_MipStats, _impl_.explored_nodes_), 2>(),
1633 {24, 2, 0,
1634 PROTOBUF_FIELD_OFFSET(CallbackDataProto_MipStats, _impl_.explored_nodes_)}},
1635 // optional int64 open_nodes = 4;
1636 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(CallbackDataProto_MipStats, _impl_.open_nodes_), 3>(),
1637 {32, 3, 0,
1638 PROTOBUF_FIELD_OFFSET(CallbackDataProto_MipStats, _impl_.open_nodes_)}},
1639 // optional int64 simplex_iterations = 5;
1640 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(CallbackDataProto_MipStats, _impl_.simplex_iterations_), 4>(),
1641 {40, 4, 0,
1642 PROTOBUF_FIELD_OFFSET(CallbackDataProto_MipStats, _impl_.simplex_iterations_)}},
1643 // optional int32 number_of_solutions_found = 6;
1644 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CallbackDataProto_MipStats, _impl_.number_of_solutions_found_), 5>(),
1645 {48, 5, 0,
1646 PROTOBUF_FIELD_OFFSET(CallbackDataProto_MipStats, _impl_.number_of_solutions_found_)}},
1647 // optional int32 cutting_planes_in_lp = 7;
1648 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CallbackDataProto_MipStats, _impl_.cutting_planes_in_lp_), 6>(),
1649 {56, 6, 0,
1650 PROTOBUF_FIELD_OFFSET(CallbackDataProto_MipStats, _impl_.cutting_planes_in_lp_)}},
1651 }}, {{
1652 65535, 65535
1653 }}, {{
1654 // optional double primal_bound = 1;
1655 {PROTOBUF_FIELD_OFFSET(CallbackDataProto_MipStats, _impl_.primal_bound_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
1656 // optional double dual_bound = 2;
1657 {PROTOBUF_FIELD_OFFSET(CallbackDataProto_MipStats, _impl_.dual_bound_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
1658 // optional int64 explored_nodes = 3;
1659 {PROTOBUF_FIELD_OFFSET(CallbackDataProto_MipStats, _impl_.explored_nodes_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
1660 // optional int64 open_nodes = 4;
1661 {PROTOBUF_FIELD_OFFSET(CallbackDataProto_MipStats, _impl_.open_nodes_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
1662 // optional int64 simplex_iterations = 5;
1663 {PROTOBUF_FIELD_OFFSET(CallbackDataProto_MipStats, _impl_.simplex_iterations_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
1664 // optional int32 number_of_solutions_found = 6;
1665 {PROTOBUF_FIELD_OFFSET(CallbackDataProto_MipStats, _impl_.number_of_solutions_found_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
1666 // optional int32 cutting_planes_in_lp = 7;
1667 {PROTOBUF_FIELD_OFFSET(CallbackDataProto_MipStats, _impl_.cutting_planes_in_lp_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
1668 }},
1669 // no aux_entries
1670 {{
1671 }},
1672};
1673PROTOBUF_NOINLINE void CallbackDataProto_MipStats::Clear() {
1674// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.CallbackDataProto.MipStats)
1675 ::google::protobuf::internal::TSanWrite(&_impl_);
1676 ::uint32_t cached_has_bits = 0;
1677 // Prevent compiler warnings about cached_has_bits being unused
1678 (void) cached_has_bits;
1679
1680 cached_has_bits = _impl_._has_bits_[0];
1681 if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) {
1682 ::memset(&_impl_.primal_bound_, 0, static_cast<::size_t>(
1683 reinterpret_cast<char*>(&_impl_.cutting_planes_in_lp_) -
1684 reinterpret_cast<char*>(&_impl_.primal_bound_)) + sizeof(_impl_.cutting_planes_in_lp_));
1685 }
1686 _impl_._has_bits_.Clear();
1687 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1688}
1689
1690#if defined(PROTOBUF_CUSTOM_VTABLE)
1691::uint8_t* PROTOBUF_NONNULL CallbackDataProto_MipStats::_InternalSerialize(
1692 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1693 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1694 const CallbackDataProto_MipStats& this_ = static_cast<const CallbackDataProto_MipStats&>(base);
1695#else // PROTOBUF_CUSTOM_VTABLE
1696::uint8_t* PROTOBUF_NONNULL CallbackDataProto_MipStats::_InternalSerialize(
1697 ::uint8_t* PROTOBUF_NONNULL target,
1698 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1699 const CallbackDataProto_MipStats& this_ = *this;
1700#endif // PROTOBUF_CUSTOM_VTABLE
1701 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1702 this_.CheckHasBitConsistency();
1703 }
1704 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.CallbackDataProto.MipStats)
1705 ::uint32_t cached_has_bits = 0;
1706 (void)cached_has_bits;
1707
1708 cached_has_bits = this_._impl_._has_bits_[0];
1709 // optional double primal_bound = 1;
1710 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1711 target = stream->EnsureSpace(target);
1712 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
1713 1, this_._internal_primal_bound(), target);
1714 }
1715
1716 // optional double dual_bound = 2;
1717 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1718 target = stream->EnsureSpace(target);
1719 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
1720 2, this_._internal_dual_bound(), target);
1721 }
1722
1723 // optional int64 explored_nodes = 3;
1724 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1725 target =
1726 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>(
1727 stream, this_._internal_explored_nodes(), target);
1728 }
1729
1730 // optional int64 open_nodes = 4;
1731 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1732 target =
1733 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<4>(
1734 stream, this_._internal_open_nodes(), target);
1735 }
1736
1737 // optional int64 simplex_iterations = 5;
1738 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
1739 target =
1740 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<5>(
1741 stream, this_._internal_simplex_iterations(), target);
1742 }
1743
1744 // optional int32 number_of_solutions_found = 6;
1745 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
1746 target =
1747 ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<6>(
1748 stream, this_._internal_number_of_solutions_found(), target);
1749 }
1750
1751 // optional int32 cutting_planes_in_lp = 7;
1752 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
1753 target =
1754 ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<7>(
1755 stream, this_._internal_cutting_planes_in_lp(), target);
1756 }
1757
1758 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1759 target =
1760 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1761 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1762 }
1763 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.CallbackDataProto.MipStats)
1764 return target;
1765}
1766
1767#if defined(PROTOBUF_CUSTOM_VTABLE)
1769 const CallbackDataProto_MipStats& this_ = static_cast<const CallbackDataProto_MipStats&>(base);
1770#else // PROTOBUF_CUSTOM_VTABLE
1772 const CallbackDataProto_MipStats& this_ = *this;
1773#endif // PROTOBUF_CUSTOM_VTABLE
1774 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.CallbackDataProto.MipStats)
1775 ::size_t total_size = 0;
1776
1777 ::uint32_t cached_has_bits = 0;
1778 // Prevent compiler warnings about cached_has_bits being unused
1779 (void)cached_has_bits;
1780
1781 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1782 cached_has_bits = this_._impl_._has_bits_[0];
1783 total_size += ::absl::popcount(0x00000003U & cached_has_bits) * 9;
1784 if (BatchCheckHasBit(cached_has_bits, 0x0000007cU)) {
1785 // optional int64 explored_nodes = 3;
1786 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1787 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
1788 this_._internal_explored_nodes());
1789 }
1790 // optional int64 open_nodes = 4;
1791 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1792 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
1793 this_._internal_open_nodes());
1794 }
1795 // optional int64 simplex_iterations = 5;
1796 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
1797 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
1798 this_._internal_simplex_iterations());
1799 }
1800 // optional int32 number_of_solutions_found = 6;
1801 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
1802 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
1803 this_._internal_number_of_solutions_found());
1804 }
1805 // optional int32 cutting_planes_in_lp = 7;
1806 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
1807 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
1808 this_._internal_cutting_planes_in_lp());
1809 }
1810 }
1811 return this_.MaybeComputeUnknownFieldsSize(total_size,
1812 &this_._impl_._cached_size_);
1813}
1814
1815void CallbackDataProto_MipStats::MergeImpl(::google::protobuf::MessageLite& to_msg,
1816 const ::google::protobuf::MessageLite& from_msg) {
1817 auto* const _this =
1818 static_cast<CallbackDataProto_MipStats*>(&to_msg);
1819 auto& from = static_cast<const CallbackDataProto_MipStats&>(from_msg);
1820 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1821 from.CheckHasBitConsistency();
1822 }
1823 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.CallbackDataProto.MipStats)
1824 ABSL_DCHECK_NE(&from, _this);
1825 ::uint32_t cached_has_bits = 0;
1826 (void)cached_has_bits;
1827
1828 cached_has_bits = from._impl_._has_bits_[0];
1829 if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) {
1830 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1831 _this->_impl_.primal_bound_ = from._impl_.primal_bound_;
1832 }
1833 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1834 _this->_impl_.dual_bound_ = from._impl_.dual_bound_;
1835 }
1836 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1837 _this->_impl_.explored_nodes_ = from._impl_.explored_nodes_;
1838 }
1839 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1840 _this->_impl_.open_nodes_ = from._impl_.open_nodes_;
1841 }
1842 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
1843 _this->_impl_.simplex_iterations_ = from._impl_.simplex_iterations_;
1844 }
1845 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
1846 _this->_impl_.number_of_solutions_found_ = from._impl_.number_of_solutions_found_;
1847 }
1848 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
1849 _this->_impl_.cutting_planes_in_lp_ = from._impl_.cutting_planes_in_lp_;
1850 }
1851 }
1852 _this->_impl_._has_bits_[0] |= cached_has_bits;
1853 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1854 from._internal_metadata_);
1855}
1856
1857void CallbackDataProto_MipStats::CopyFrom(const CallbackDataProto_MipStats& from) {
1858 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.CallbackDataProto.MipStats)
1859 if (&from == this) return;
1860 Clear();
1862}
1863
1864
1865void CallbackDataProto_MipStats::InternalSwap(CallbackDataProto_MipStats* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1866 using ::std::swap;
1867 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1868 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1869 ::google::protobuf::internal::memswap<
1870 PROTOBUF_FIELD_OFFSET(CallbackDataProto_MipStats, _impl_.cutting_planes_in_lp_)
1871 + sizeof(CallbackDataProto_MipStats::_impl_.cutting_planes_in_lp_)
1872 - PROTOBUF_FIELD_OFFSET(CallbackDataProto_MipStats, _impl_.primal_bound_)>(
1873 reinterpret_cast<char*>(&_impl_.primal_bound_),
1874 reinterpret_cast<char*>(&other->_impl_.primal_bound_));
1875}
1876
1877::google::protobuf::Metadata CallbackDataProto_MipStats::GetMetadata() const {
1878 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1879}
1880// ===================================================================
1883 public:
1884 using HasBits =
1885 decltype(::std::declval<CallbackDataProto>()._impl_._has_bits_);
1886 static constexpr ::int32_t kHasBitsOffset =
1887 8 * PROTOBUF_FIELD_OFFSET(CallbackDataProto, _impl_._has_bits_);
1888};
1891 ::google::protobuf::internal::TSanWrite(&_impl_);
1892 if (_impl_.primal_solution_vector_ != nullptr) _impl_.primal_solution_vector_->Clear();
1893 ClearHasBit(_impl_._has_bits_[0],
1894 0x00000001U);
1897 ::google::protobuf::internal::TSanWrite(&_impl_);
1898 if (_impl_.runtime_ != nullptr) _impl_.runtime_->Clear();
1899 ClearHasBit(_impl_._has_bits_[0],
1900 0x00000002U);
1902CallbackDataProto::CallbackDataProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1903#if defined(PROTOBUF_CUSTOM_VTABLE)
1904 : ::google::protobuf::Message(arena, CallbackDataProto_class_data_.base()) {
1905#else // PROTOBUF_CUSTOM_VTABLE
1906 : ::google::protobuf::Message(arena) {
1907#endif // PROTOBUF_CUSTOM_VTABLE
1908 SharedCtor(arena);
1909 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.CallbackDataProto)
1910}
1911PROTOBUF_NDEBUG_INLINE CallbackDataProto::Impl_::Impl_(
1912 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1913 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
1914 [[maybe_unused]] const ::operations_research::math_opt::CallbackDataProto& from_msg)
1915 : _has_bits_{from._has_bits_},
1916 _cached_size_{0} {}
1917
1919 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1920 const CallbackDataProto& from)
1921#if defined(PROTOBUF_CUSTOM_VTABLE)
1922 : ::google::protobuf::Message(arena, CallbackDataProto_class_data_.base()) {
1923#else // PROTOBUF_CUSTOM_VTABLE
1924 : ::google::protobuf::Message(arena) {
1925#endif // PROTOBUF_CUSTOM_VTABLE
1926 CallbackDataProto* const _this = this;
1927 (void)_this;
1928 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1929 from._internal_metadata_);
1930 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1931 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
1932 _impl_.primal_solution_vector_ = (CheckHasBit(cached_has_bits, 0x00000001U))
1933 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.primal_solution_vector_)
1934 : nullptr;
1935 _impl_.runtime_ = (CheckHasBit(cached_has_bits, 0x00000002U))
1936 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.runtime_)
1937 : nullptr;
1938 _impl_.presolve_stats_ = (CheckHasBit(cached_has_bits, 0x00000004U))
1939 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.presolve_stats_)
1940 : nullptr;
1941 _impl_.simplex_stats_ = (CheckHasBit(cached_has_bits, 0x00000008U))
1942 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.simplex_stats_)
1943 : nullptr;
1944 _impl_.barrier_stats_ = (CheckHasBit(cached_has_bits, 0x00000010U))
1945 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.barrier_stats_)
1946 : nullptr;
1947 _impl_.mip_stats_ = (CheckHasBit(cached_has_bits, 0x00000020U))
1948 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.mip_stats_)
1949 : nullptr;
1950 _impl_.event_ = from._impl_.event_;
1951
1952 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.CallbackDataProto)
1953}
1954PROTOBUF_NDEBUG_INLINE CallbackDataProto::Impl_::Impl_(
1955 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1956 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1957 : _cached_size_{0} {}
1958
1959inline void CallbackDataProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1960 new (&_impl_) Impl_(internal_visibility(), arena);
1961 ::memset(reinterpret_cast<char*>(&_impl_) +
1962 offsetof(Impl_, primal_solution_vector_),
1963 0,
1964 offsetof(Impl_, event_) -
1965 offsetof(Impl_, primal_solution_vector_) +
1966 sizeof(Impl_::event_));
1967}
1969 // @@protoc_insertion_point(destructor:operations_research.math_opt.CallbackDataProto)
1970 SharedDtor(*this);
1971}
1972inline void CallbackDataProto::SharedDtor(MessageLite& self) {
1973 CallbackDataProto& this_ = static_cast<CallbackDataProto&>(self);
1974 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1975 this_.CheckHasBitConsistency();
1976 }
1977 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1978 ABSL_DCHECK(this_.GetArena() == nullptr);
1979 delete this_._impl_.primal_solution_vector_;
1980 delete this_._impl_.runtime_;
1981 delete this_._impl_.presolve_stats_;
1982 delete this_._impl_.simplex_stats_;
1983 delete this_._impl_.barrier_stats_;
1984 delete this_._impl_.mip_stats_;
1985 this_._impl_.~Impl_();
1986}
1987
1988inline void* PROTOBUF_NONNULL CallbackDataProto::PlacementNew_(
1989 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1990 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1991 return ::new (mem) CallbackDataProto(arena);
1992}
1993constexpr auto CallbackDataProto::InternalNewImpl_() {
1994 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(CallbackDataProto),
1995 alignof(CallbackDataProto));
1996}
1998 return ::google::protobuf::internal::ClassDataFull{
1999 ::google::protobuf::internal::ClassData{
2001 &_table_.header,
2002 nullptr, // OnDemandRegisterArenaDtor
2003 nullptr, // IsInitialized
2004 &CallbackDataProto::MergeImpl,
2005 ::google::protobuf::Message::GetNewImpl<CallbackDataProto>(),
2006#if defined(PROTOBUF_CUSTOM_VTABLE)
2007 &CallbackDataProto::SharedDtor,
2008 ::google::protobuf::Message::GetClearImpl<CallbackDataProto>(), &CallbackDataProto::ByteSizeLong,
2010#endif // PROTOBUF_CUSTOM_VTABLE
2011 PROTOBUF_FIELD_OFFSET(CallbackDataProto, _impl_._cached_size_),
2012 false,
2013 },
2014 &CallbackDataProto::kDescriptorMethods,
2016 nullptr, // tracker
2017 };
2018}
2019
2020PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
2021 ::google::protobuf::internal::ClassDataFull CallbackDataProto_class_data_ =
2023
2024PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
2025CallbackDataProto::GetClassData() const {
2026 ::google::protobuf::internal::PrefetchToLocalCache(&CallbackDataProto_class_data_);
2027 ::google::protobuf::internal::PrefetchToLocalCache(CallbackDataProto_class_data_.tc_table);
2028 return CallbackDataProto_class_data_.base();
2029}
2030PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
2031const ::_pbi::TcParseTable<3, 7, 6, 0, 2>
2032CallbackDataProto::_table_ = {
2033 {
2034 PROTOBUF_FIELD_OFFSET(CallbackDataProto, _impl_._has_bits_),
2035 0, // no _extensions_
2036 7, 56, // max_field_number, fast_idx_mask
2037 offsetof(decltype(_table_), field_lookup_table),
2038 4294967168, // skipmap
2039 offsetof(decltype(_table_), field_entries),
2040 7, // num_field_entries
2041 6, // num_aux_entries
2042 offsetof(decltype(_table_), aux_entries),
2044 nullptr, // post_loop_handler
2045 ::_pbi::TcParser::GenericFallback, // fallback
2046 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
2047 ::_pbi::TcParser::GetTable<::operations_research::math_opt::CallbackDataProto>(), // to_prefetch
2048 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
2049 }, {{
2050 {::_pbi::TcParser::MiniParse, {}},
2051 // .operations_research.math_opt.CallbackEventProto event = 1;
2052 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CallbackDataProto, _impl_.event_), 6>(),
2053 {8, 6, 0,
2054 PROTOBUF_FIELD_OFFSET(CallbackDataProto, _impl_.event_)}},
2055 // .operations_research.math_opt.SparseDoubleVectorProto primal_solution_vector = 2;
2056 {::_pbi::TcParser::FastMtS1,
2057 {18, 0, 0,
2058 PROTOBUF_FIELD_OFFSET(CallbackDataProto, _impl_.primal_solution_vector_)}},
2059 // .google.protobuf.Duration runtime = 3;
2060 {::_pbi::TcParser::FastMtS1,
2061 {26, 1, 1,
2062 PROTOBUF_FIELD_OFFSET(CallbackDataProto, _impl_.runtime_)}},
2063 // .operations_research.math_opt.CallbackDataProto.PresolveStats presolve_stats = 4;
2064 {::_pbi::TcParser::FastMtS1,
2065 {34, 2, 2,
2066 PROTOBUF_FIELD_OFFSET(CallbackDataProto, _impl_.presolve_stats_)}},
2067 // .operations_research.math_opt.CallbackDataProto.SimplexStats simplex_stats = 5;
2068 {::_pbi::TcParser::FastMtS1,
2069 {42, 3, 3,
2070 PROTOBUF_FIELD_OFFSET(CallbackDataProto, _impl_.simplex_stats_)}},
2071 // .operations_research.math_opt.CallbackDataProto.BarrierStats barrier_stats = 6;
2072 {::_pbi::TcParser::FastMtS1,
2073 {50, 4, 4,
2074 PROTOBUF_FIELD_OFFSET(CallbackDataProto, _impl_.barrier_stats_)}},
2075 // .operations_research.math_opt.CallbackDataProto.MipStats mip_stats = 7;
2076 {::_pbi::TcParser::FastMtS1,
2077 {58, 5, 5,
2078 PROTOBUF_FIELD_OFFSET(CallbackDataProto, _impl_.mip_stats_)}},
2079 }}, {{
2080 65535, 65535
2081 }}, {{
2082 // .operations_research.math_opt.CallbackEventProto event = 1;
2083 {PROTOBUF_FIELD_OFFSET(CallbackDataProto, _impl_.event_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
2084 // .operations_research.math_opt.SparseDoubleVectorProto primal_solution_vector = 2;
2085 {PROTOBUF_FIELD_OFFSET(CallbackDataProto, _impl_.primal_solution_vector_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
2086 // .google.protobuf.Duration runtime = 3;
2087 {PROTOBUF_FIELD_OFFSET(CallbackDataProto, _impl_.runtime_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
2088 // .operations_research.math_opt.CallbackDataProto.PresolveStats presolve_stats = 4;
2089 {PROTOBUF_FIELD_OFFSET(CallbackDataProto, _impl_.presolve_stats_), _Internal::kHasBitsOffset + 2, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
2090 // .operations_research.math_opt.CallbackDataProto.SimplexStats simplex_stats = 5;
2091 {PROTOBUF_FIELD_OFFSET(CallbackDataProto, _impl_.simplex_stats_), _Internal::kHasBitsOffset + 3, 3, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
2092 // .operations_research.math_opt.CallbackDataProto.BarrierStats barrier_stats = 6;
2093 {PROTOBUF_FIELD_OFFSET(CallbackDataProto, _impl_.barrier_stats_), _Internal::kHasBitsOffset + 4, 4, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
2094 // .operations_research.math_opt.CallbackDataProto.MipStats mip_stats = 7;
2095 {PROTOBUF_FIELD_OFFSET(CallbackDataProto, _impl_.mip_stats_), _Internal::kHasBitsOffset + 5, 5, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
2096 }},
2097 {{
2098 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleVectorProto>()},
2099 {::_pbi::TcParser::GetTable<::google::protobuf::Duration>()},
2100 {::_pbi::TcParser::GetTable<::operations_research::math_opt::CallbackDataProto_PresolveStats>()},
2101 {::_pbi::TcParser::GetTable<::operations_research::math_opt::CallbackDataProto_SimplexStats>()},
2102 {::_pbi::TcParser::GetTable<::operations_research::math_opt::CallbackDataProto_BarrierStats>()},
2103 {::_pbi::TcParser::GetTable<::operations_research::math_opt::CallbackDataProto_MipStats>()},
2104 }},
2105 {{
2106 }},
2107};
2108PROTOBUF_NOINLINE void CallbackDataProto::Clear() {
2109// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.CallbackDataProto)
2110 ::google::protobuf::internal::TSanWrite(&_impl_);
2111 ::uint32_t cached_has_bits = 0;
2112 // Prevent compiler warnings about cached_has_bits being unused
2113 (void) cached_has_bits;
2114
2115 cached_has_bits = _impl_._has_bits_[0];
2116 if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) {
2117 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
2118 ABSL_DCHECK(_impl_.primal_solution_vector_ != nullptr);
2119 _impl_.primal_solution_vector_->Clear();
2120 }
2121 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
2122 ABSL_DCHECK(_impl_.runtime_ != nullptr);
2123 _impl_.runtime_->Clear();
2124 }
2125 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
2126 ABSL_DCHECK(_impl_.presolve_stats_ != nullptr);
2127 _impl_.presolve_stats_->Clear();
2128 }
2129 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
2130 ABSL_DCHECK(_impl_.simplex_stats_ != nullptr);
2131 _impl_.simplex_stats_->Clear();
2132 }
2133 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
2134 ABSL_DCHECK(_impl_.barrier_stats_ != nullptr);
2135 _impl_.barrier_stats_->Clear();
2136 }
2137 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
2138 ABSL_DCHECK(_impl_.mip_stats_ != nullptr);
2139 _impl_.mip_stats_->Clear();
2140 }
2141 }
2142 _impl_.event_ = 0;
2143 _impl_._has_bits_.Clear();
2144 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
2145}
2146
2147#if defined(PROTOBUF_CUSTOM_VTABLE)
2148::uint8_t* PROTOBUF_NONNULL CallbackDataProto::_InternalSerialize(
2149 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
2150 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
2151 const CallbackDataProto& this_ = static_cast<const CallbackDataProto&>(base);
2152#else // PROTOBUF_CUSTOM_VTABLE
2153::uint8_t* PROTOBUF_NONNULL CallbackDataProto::_InternalSerialize(
2154 ::uint8_t* PROTOBUF_NONNULL target,
2155 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
2156 const CallbackDataProto& this_ = *this;
2157#endif // PROTOBUF_CUSTOM_VTABLE
2158 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2159 this_.CheckHasBitConsistency();
2160 }
2161 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.CallbackDataProto)
2162 ::uint32_t cached_has_bits = 0;
2163 (void)cached_has_bits;
2164
2165 cached_has_bits = this_._impl_._has_bits_[0];
2166 // .operations_research.math_opt.CallbackEventProto event = 1;
2167 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
2168 if (this_._internal_event() != 0) {
2169 target = stream->EnsureSpace(target);
2170 target = ::_pbi::WireFormatLite::WriteEnumToArray(
2171 1, this_._internal_event(), target);
2172 }
2173 }
2174
2175 // .operations_research.math_opt.SparseDoubleVectorProto primal_solution_vector = 2;
2176 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
2177 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2178 2, *this_._impl_.primal_solution_vector_, this_._impl_.primal_solution_vector_->GetCachedSize(), target,
2179 stream);
2180 }
2181
2182 // .google.protobuf.Duration runtime = 3;
2183 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
2184 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2185 3, *this_._impl_.runtime_, this_._impl_.runtime_->GetCachedSize(), target,
2186 stream);
2187 }
2188
2189 // .operations_research.math_opt.CallbackDataProto.PresolveStats presolve_stats = 4;
2190 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
2191 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2192 4, *this_._impl_.presolve_stats_, this_._impl_.presolve_stats_->GetCachedSize(), target,
2193 stream);
2194 }
2195
2196 // .operations_research.math_opt.CallbackDataProto.SimplexStats simplex_stats = 5;
2197 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
2198 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2199 5, *this_._impl_.simplex_stats_, this_._impl_.simplex_stats_->GetCachedSize(), target,
2200 stream);
2201 }
2202
2203 // .operations_research.math_opt.CallbackDataProto.BarrierStats barrier_stats = 6;
2204 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
2205 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2206 6, *this_._impl_.barrier_stats_, this_._impl_.barrier_stats_->GetCachedSize(), target,
2207 stream);
2208 }
2209
2210 // .operations_research.math_opt.CallbackDataProto.MipStats mip_stats = 7;
2211 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
2212 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2213 7, *this_._impl_.mip_stats_, this_._impl_.mip_stats_->GetCachedSize(), target,
2214 stream);
2215 }
2216
2217 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
2218 target =
2219 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2220 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
2221 }
2222 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.CallbackDataProto)
2223 return target;
2224}
2225
2226#if defined(PROTOBUF_CUSTOM_VTABLE)
2227::size_t CallbackDataProto::ByteSizeLong(const MessageLite& base) {
2228 const CallbackDataProto& this_ = static_cast<const CallbackDataProto&>(base);
2229#else // PROTOBUF_CUSTOM_VTABLE
2230::size_t CallbackDataProto::ByteSizeLong() const {
2231 const CallbackDataProto& this_ = *this;
2232#endif // PROTOBUF_CUSTOM_VTABLE
2233 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.CallbackDataProto)
2234 ::size_t total_size = 0;
2236 ::uint32_t cached_has_bits = 0;
2237 // Prevent compiler warnings about cached_has_bits being unused
2238 (void)cached_has_bits;
2239
2240 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
2241 cached_has_bits = this_._impl_._has_bits_[0];
2242 if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) {
2243 // .operations_research.math_opt.SparseDoubleVectorProto primal_solution_vector = 2;
2244 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
2245 total_size += 1 +
2246 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.primal_solution_vector_);
2247 }
2248 // .google.protobuf.Duration runtime = 3;
2249 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
2250 total_size += 1 +
2251 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.runtime_);
2252 }
2253 // .operations_research.math_opt.CallbackDataProto.PresolveStats presolve_stats = 4;
2254 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
2255 total_size += 1 +
2256 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.presolve_stats_);
2257 }
2258 // .operations_research.math_opt.CallbackDataProto.SimplexStats simplex_stats = 5;
2259 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
2260 total_size += 1 +
2261 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.simplex_stats_);
2262 }
2263 // .operations_research.math_opt.CallbackDataProto.BarrierStats barrier_stats = 6;
2264 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
2265 total_size += 1 +
2266 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.barrier_stats_);
2267 }
2268 // .operations_research.math_opt.CallbackDataProto.MipStats mip_stats = 7;
2269 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
2270 total_size += 1 +
2271 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.mip_stats_);
2272 }
2273 // .operations_research.math_opt.CallbackEventProto event = 1;
2274 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
2275 if (this_._internal_event() != 0) {
2276 total_size += 1 +
2277 ::_pbi::WireFormatLite::EnumSize(this_._internal_event());
2278 }
2279 }
2280 }
2281 return this_.MaybeComputeUnknownFieldsSize(total_size,
2282 &this_._impl_._cached_size_);
2283}
2284
2285void CallbackDataProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
2286 const ::google::protobuf::MessageLite& from_msg) {
2287 auto* const _this =
2288 static_cast<CallbackDataProto*>(&to_msg);
2289 auto& from = static_cast<const CallbackDataProto&>(from_msg);
2290 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2291 from.CheckHasBitConsistency();
2292 }
2293 ::google::protobuf::Arena* arena = _this->GetArena();
2294 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.CallbackDataProto)
2295 ABSL_DCHECK_NE(&from, _this);
2296 ::uint32_t cached_has_bits = 0;
2297 (void)cached_has_bits;
2298
2299 cached_has_bits = from._impl_._has_bits_[0];
2300 if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) {
2301 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
2302 ABSL_DCHECK(from._impl_.primal_solution_vector_ != nullptr);
2303 if (_this->_impl_.primal_solution_vector_ == nullptr) {
2304 _this->_impl_.primal_solution_vector_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.primal_solution_vector_);
2305 } else {
2306 _this->_impl_.primal_solution_vector_->MergeFrom(*from._impl_.primal_solution_vector_);
2307 }
2308 }
2309 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
2310 ABSL_DCHECK(from._impl_.runtime_ != nullptr);
2311 if (_this->_impl_.runtime_ == nullptr) {
2312 _this->_impl_.runtime_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.runtime_);
2313 } else {
2314 _this->_impl_.runtime_->MergeFrom(*from._impl_.runtime_);
2315 }
2316 }
2317 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
2318 ABSL_DCHECK(from._impl_.presolve_stats_ != nullptr);
2319 if (_this->_impl_.presolve_stats_ == nullptr) {
2320 _this->_impl_.presolve_stats_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.presolve_stats_);
2321 } else {
2322 _this->_impl_.presolve_stats_->MergeFrom(*from._impl_.presolve_stats_);
2323 }
2324 }
2325 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
2326 ABSL_DCHECK(from._impl_.simplex_stats_ != nullptr);
2327 if (_this->_impl_.simplex_stats_ == nullptr) {
2328 _this->_impl_.simplex_stats_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.simplex_stats_);
2329 } else {
2330 _this->_impl_.simplex_stats_->MergeFrom(*from._impl_.simplex_stats_);
2331 }
2332 }
2333 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
2334 ABSL_DCHECK(from._impl_.barrier_stats_ != nullptr);
2335 if (_this->_impl_.barrier_stats_ == nullptr) {
2336 _this->_impl_.barrier_stats_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.barrier_stats_);
2337 } else {
2338 _this->_impl_.barrier_stats_->MergeFrom(*from._impl_.barrier_stats_);
2339 }
2340 }
2341 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
2342 ABSL_DCHECK(from._impl_.mip_stats_ != nullptr);
2343 if (_this->_impl_.mip_stats_ == nullptr) {
2344 _this->_impl_.mip_stats_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.mip_stats_);
2345 } else {
2346 _this->_impl_.mip_stats_->MergeFrom(*from._impl_.mip_stats_);
2347 }
2348 }
2349 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
2350 if (from._internal_event() != 0) {
2351 _this->_impl_.event_ = from._impl_.event_;
2352 }
2353 }
2354 }
2355 _this->_impl_._has_bits_[0] |= cached_has_bits;
2356 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
2357 from._internal_metadata_);
2358}
2359
2361 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.CallbackDataProto)
2362 if (&from == this) return;
2363 Clear();
2364 MergeFrom(from);
2366
2367
2368void CallbackDataProto::InternalSwap(CallbackDataProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
2369 using ::std::swap;
2370 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2371 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2372 ::google::protobuf::internal::memswap<
2373 PROTOBUF_FIELD_OFFSET(CallbackDataProto, _impl_.event_)
2374 + sizeof(CallbackDataProto::_impl_.event_)
2375 - PROTOBUF_FIELD_OFFSET(CallbackDataProto, _impl_.primal_solution_vector_)>(
2376 reinterpret_cast<char*>(&_impl_.primal_solution_vector_),
2377 reinterpret_cast<char*>(&other->_impl_.primal_solution_vector_));
2378}
2379
2380::google::protobuf::Metadata CallbackDataProto::GetMetadata() const {
2381 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
2382}
2383// ===================================================================
2384
2386 public:
2387 using HasBits =
2388 decltype(::std::declval<CallbackResultProto_GeneratedLinearConstraint>()._impl_._has_bits_);
2389 static constexpr ::int32_t kHasBitsOffset =
2390 8 * PROTOBUF_FIELD_OFFSET(CallbackResultProto_GeneratedLinearConstraint, _impl_._has_bits_);
2392
2394 ::google::protobuf::internal::TSanWrite(&_impl_);
2395 if (_impl_.linear_expression_ != nullptr) _impl_.linear_expression_->Clear();
2396 ClearHasBit(_impl_._has_bits_[0],
2397 0x00000001U);
2398}
2400#if defined(PROTOBUF_CUSTOM_VTABLE)
2401 : ::google::protobuf::Message(arena, CallbackResultProto_GeneratedLinearConstraint_class_data_.base()) {
2402#else // PROTOBUF_CUSTOM_VTABLE
2403 : ::google::protobuf::Message(arena) {
2404#endif // PROTOBUF_CUSTOM_VTABLE
2405 SharedCtor(arena);
2406 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.CallbackResultProto.GeneratedLinearConstraint)
2407}
2408PROTOBUF_NDEBUG_INLINE CallbackResultProto_GeneratedLinearConstraint::Impl_::Impl_(
2409 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
2410 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
2411 [[maybe_unused]] const ::operations_research::math_opt::CallbackResultProto_GeneratedLinearConstraint& from_msg)
2412 : _has_bits_{from._has_bits_},
2413 _cached_size_{0} {}
2414
2416 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
2418#if defined(PROTOBUF_CUSTOM_VTABLE)
2419 : ::google::protobuf::Message(arena, CallbackResultProto_GeneratedLinearConstraint_class_data_.base()) {
2420#else // PROTOBUF_CUSTOM_VTABLE
2421 : ::google::protobuf::Message(arena) {
2422#endif // PROTOBUF_CUSTOM_VTABLE
2424 (void)_this;
2425 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
2426 from._internal_metadata_);
2427 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
2428 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
2429 _impl_.linear_expression_ = (CheckHasBit(cached_has_bits, 0x00000001U))
2430 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.linear_expression_)
2431 : nullptr;
2432 ::memcpy(reinterpret_cast<char*>(&_impl_) +
2433 offsetof(Impl_, lower_bound_),
2434 reinterpret_cast<const char*>(&from._impl_) +
2435 offsetof(Impl_, lower_bound_),
2436 offsetof(Impl_, is_lazy_) -
2437 offsetof(Impl_, lower_bound_) +
2438 sizeof(Impl_::is_lazy_));
2439
2440 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.CallbackResultProto.GeneratedLinearConstraint)
2441}
2442PROTOBUF_NDEBUG_INLINE CallbackResultProto_GeneratedLinearConstraint::Impl_::Impl_(
2443 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
2444 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
2445 : _cached_size_{0} {}
2446
2447inline void CallbackResultProto_GeneratedLinearConstraint::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
2448 new (&_impl_) Impl_(internal_visibility(), arena);
2449 ::memset(reinterpret_cast<char*>(&_impl_) +
2450 offsetof(Impl_, linear_expression_),
2451 0,
2452 offsetof(Impl_, is_lazy_) -
2453 offsetof(Impl_, linear_expression_) +
2454 sizeof(Impl_::is_lazy_));
2455}
2457 // @@protoc_insertion_point(destructor:operations_research.math_opt.CallbackResultProto.GeneratedLinearConstraint)
2458 SharedDtor(*this);
2459}
2460inline void CallbackResultProto_GeneratedLinearConstraint::SharedDtor(MessageLite& self) {
2462 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2463 this_.CheckHasBitConsistency();
2464 }
2465 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
2466 ABSL_DCHECK(this_.GetArena() == nullptr);
2467 delete this_._impl_.linear_expression_;
2468 this_._impl_.~Impl_();
2469}
2470
2471inline void* PROTOBUF_NONNULL CallbackResultProto_GeneratedLinearConstraint::PlacementNew_(
2472 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
2473 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
2474 return ::new (mem) CallbackResultProto_GeneratedLinearConstraint(arena);
2475}
2476constexpr auto CallbackResultProto_GeneratedLinearConstraint::InternalNewImpl_() {
2477 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(CallbackResultProto_GeneratedLinearConstraint),
2478 alignof(CallbackResultProto_GeneratedLinearConstraint));
2479}
2481 return ::google::protobuf::internal::ClassDataFull{
2482 ::google::protobuf::internal::ClassData{
2484 &_table_.header,
2485 nullptr, // OnDemandRegisterArenaDtor
2486 nullptr, // IsInitialized
2487 &CallbackResultProto_GeneratedLinearConstraint::MergeImpl,
2488 ::google::protobuf::Message::GetNewImpl<CallbackResultProto_GeneratedLinearConstraint>(),
2489#if defined(PROTOBUF_CUSTOM_VTABLE)
2490 &CallbackResultProto_GeneratedLinearConstraint::SharedDtor,
2491 ::google::protobuf::Message::GetClearImpl<CallbackResultProto_GeneratedLinearConstraint>(), &CallbackResultProto_GeneratedLinearConstraint::ByteSizeLong,
2493#endif // PROTOBUF_CUSTOM_VTABLE
2494 PROTOBUF_FIELD_OFFSET(CallbackResultProto_GeneratedLinearConstraint, _impl_._cached_size_),
2495 false,
2496 },
2497 &CallbackResultProto_GeneratedLinearConstraint::kDescriptorMethods,
2499 nullptr, // tracker
2500 };
2501}
2502
2503PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
2504 ::google::protobuf::internal::ClassDataFull CallbackResultProto_GeneratedLinearConstraint_class_data_ =
2506
2507PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
2508CallbackResultProto_GeneratedLinearConstraint::GetClassData() const {
2509 ::google::protobuf::internal::PrefetchToLocalCache(&CallbackResultProto_GeneratedLinearConstraint_class_data_);
2510 ::google::protobuf::internal::PrefetchToLocalCache(CallbackResultProto_GeneratedLinearConstraint_class_data_.tc_table);
2512}
2513PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
2514const ::_pbi::TcParseTable<2, 4, 1, 0, 2>
2515CallbackResultProto_GeneratedLinearConstraint::_table_ = {
2516 {
2517 PROTOBUF_FIELD_OFFSET(CallbackResultProto_GeneratedLinearConstraint, _impl_._has_bits_),
2518 0, // no _extensions_
2519 4, 24, // max_field_number, fast_idx_mask
2520 offsetof(decltype(_table_), field_lookup_table),
2521 4294967280, // skipmap
2522 offsetof(decltype(_table_), field_entries),
2523 4, // num_field_entries
2524 1, // num_aux_entries
2525 offsetof(decltype(_table_), aux_entries),
2527 nullptr, // post_loop_handler
2528 ::_pbi::TcParser::GenericFallback, // fallback
2529 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
2530 ::_pbi::TcParser::GetTable<::operations_research::math_opt::CallbackResultProto_GeneratedLinearConstraint>(), // to_prefetch
2531 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
2532 }, {{
2533 // bool is_lazy = 4;
2534 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(CallbackResultProto_GeneratedLinearConstraint, _impl_.is_lazy_), 3>(),
2535 {32, 3, 0,
2536 PROTOBUF_FIELD_OFFSET(CallbackResultProto_GeneratedLinearConstraint, _impl_.is_lazy_)}},
2537 // .operations_research.math_opt.SparseDoubleVectorProto linear_expression = 1;
2538 {::_pbi::TcParser::FastMtS1,
2539 {10, 0, 0,
2540 PROTOBUF_FIELD_OFFSET(CallbackResultProto_GeneratedLinearConstraint, _impl_.linear_expression_)}},
2541 // double lower_bound = 2;
2542 {::_pbi::TcParser::FastF64S1,
2543 {17, 1, 0,
2544 PROTOBUF_FIELD_OFFSET(CallbackResultProto_GeneratedLinearConstraint, _impl_.lower_bound_)}},
2545 // double upper_bound = 3;
2546 {::_pbi::TcParser::FastF64S1,
2547 {25, 2, 0,
2548 PROTOBUF_FIELD_OFFSET(CallbackResultProto_GeneratedLinearConstraint, _impl_.upper_bound_)}},
2549 }}, {{
2550 65535, 65535
2551 }}, {{
2552 // .operations_research.math_opt.SparseDoubleVectorProto linear_expression = 1;
2553 {PROTOBUF_FIELD_OFFSET(CallbackResultProto_GeneratedLinearConstraint, _impl_.linear_expression_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
2554 // double lower_bound = 2;
2555 {PROTOBUF_FIELD_OFFSET(CallbackResultProto_GeneratedLinearConstraint, _impl_.lower_bound_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
2556 // double upper_bound = 3;
2557 {PROTOBUF_FIELD_OFFSET(CallbackResultProto_GeneratedLinearConstraint, _impl_.upper_bound_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
2558 // bool is_lazy = 4;
2559 {PROTOBUF_FIELD_OFFSET(CallbackResultProto_GeneratedLinearConstraint, _impl_.is_lazy_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
2560 }},
2561 {{
2562 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleVectorProto>()},
2563 }},
2564 {{
2565 }},
2566};
2568// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.CallbackResultProto.GeneratedLinearConstraint)
2569 ::google::protobuf::internal::TSanWrite(&_impl_);
2570 ::uint32_t cached_has_bits = 0;
2571 // Prevent compiler warnings about cached_has_bits being unused
2572 (void) cached_has_bits;
2574 cached_has_bits = _impl_._has_bits_[0];
2575 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
2576 ABSL_DCHECK(_impl_.linear_expression_ != nullptr);
2577 _impl_.linear_expression_->Clear();
2578 }
2579 if (BatchCheckHasBit(cached_has_bits, 0x0000000eU)) {
2580 ::memset(&_impl_.lower_bound_, 0, static_cast<::size_t>(
2581 reinterpret_cast<char*>(&_impl_.is_lazy_) -
2582 reinterpret_cast<char*>(&_impl_.lower_bound_)) + sizeof(_impl_.is_lazy_));
2583 }
2584 _impl_._has_bits_.Clear();
2585 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
2586}
2587
2588#if defined(PROTOBUF_CUSTOM_VTABLE)
2590 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
2591 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
2592 const CallbackResultProto_GeneratedLinearConstraint& this_ = static_cast<const CallbackResultProto_GeneratedLinearConstraint&>(base);
2593#else // PROTOBUF_CUSTOM_VTABLE
2595 ::uint8_t* PROTOBUF_NONNULL target,
2596 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
2597 const CallbackResultProto_GeneratedLinearConstraint& this_ = *this;
2598#endif // PROTOBUF_CUSTOM_VTABLE
2599 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2600 this_.CheckHasBitConsistency();
2601 }
2602 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.CallbackResultProto.GeneratedLinearConstraint)
2603 ::uint32_t cached_has_bits = 0;
2604 (void)cached_has_bits;
2605
2606 cached_has_bits = this_._impl_._has_bits_[0];
2607 // .operations_research.math_opt.SparseDoubleVectorProto linear_expression = 1;
2608 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
2609 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2610 1, *this_._impl_.linear_expression_, this_._impl_.linear_expression_->GetCachedSize(), target,
2611 stream);
2612 }
2613
2614 // double lower_bound = 2;
2615 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
2616 if (::absl::bit_cast<::uint64_t>(this_._internal_lower_bound()) != 0) {
2617 target = stream->EnsureSpace(target);
2618 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
2619 2, this_._internal_lower_bound(), target);
2620 }
2621 }
2622
2623 // double upper_bound = 3;
2624 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
2625 if (::absl::bit_cast<::uint64_t>(this_._internal_upper_bound()) != 0) {
2626 target = stream->EnsureSpace(target);
2627 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
2628 3, this_._internal_upper_bound(), target);
2629 }
2630 }
2631
2632 // bool is_lazy = 4;
2633 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
2634 if (this_._internal_is_lazy() != 0) {
2635 target = stream->EnsureSpace(target);
2636 target = ::_pbi::WireFormatLite::WriteBoolToArray(
2637 4, this_._internal_is_lazy(), target);
2638 }
2639 }
2640
2641 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
2642 target =
2643 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2644 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
2645 }
2646 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.CallbackResultProto.GeneratedLinearConstraint)
2647 return target;
2648}
2649
2650#if defined(PROTOBUF_CUSTOM_VTABLE)
2652 const CallbackResultProto_GeneratedLinearConstraint& this_ = static_cast<const CallbackResultProto_GeneratedLinearConstraint&>(base);
2653#else // PROTOBUF_CUSTOM_VTABLE
2655 const CallbackResultProto_GeneratedLinearConstraint& this_ = *this;
2656#endif // PROTOBUF_CUSTOM_VTABLE
2657 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.CallbackResultProto.GeneratedLinearConstraint)
2658 ::size_t total_size = 0;
2659
2660 ::uint32_t cached_has_bits = 0;
2661 // Prevent compiler warnings about cached_has_bits being unused
2662 (void)cached_has_bits;
2663
2664 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
2665 cached_has_bits = this_._impl_._has_bits_[0];
2666 if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
2667 // .operations_research.math_opt.SparseDoubleVectorProto linear_expression = 1;
2668 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
2669 total_size += 1 +
2670 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.linear_expression_);
2671 }
2672 // double lower_bound = 2;
2673 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
2674 if (::absl::bit_cast<::uint64_t>(this_._internal_lower_bound()) != 0) {
2675 total_size += 9;
2676 }
2677 }
2678 // double upper_bound = 3;
2679 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
2680 if (::absl::bit_cast<::uint64_t>(this_._internal_upper_bound()) != 0) {
2681 total_size += 9;
2682 }
2683 }
2684 // bool is_lazy = 4;
2685 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
2686 if (this_._internal_is_lazy() != 0) {
2687 total_size += 2;
2688 }
2689 }
2690 }
2691 return this_.MaybeComputeUnknownFieldsSize(total_size,
2692 &this_._impl_._cached_size_);
2693}
2694
2695void CallbackResultProto_GeneratedLinearConstraint::MergeImpl(::google::protobuf::MessageLite& to_msg,
2696 const ::google::protobuf::MessageLite& from_msg) {
2697 auto* const _this =
2698 static_cast<CallbackResultProto_GeneratedLinearConstraint*>(&to_msg);
2699 auto& from = static_cast<const CallbackResultProto_GeneratedLinearConstraint&>(from_msg);
2700 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2701 from.CheckHasBitConsistency();
2702 }
2703 ::google::protobuf::Arena* arena = _this->GetArena();
2704 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.CallbackResultProto.GeneratedLinearConstraint)
2705 ABSL_DCHECK_NE(&from, _this);
2706 ::uint32_t cached_has_bits = 0;
2707 (void)cached_has_bits;
2708
2709 cached_has_bits = from._impl_._has_bits_[0];
2710 if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
2711 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
2712 ABSL_DCHECK(from._impl_.linear_expression_ != nullptr);
2713 if (_this->_impl_.linear_expression_ == nullptr) {
2714 _this->_impl_.linear_expression_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.linear_expression_);
2715 } else {
2716 _this->_impl_.linear_expression_->MergeFrom(*from._impl_.linear_expression_);
2717 }
2718 }
2719 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
2720 if (::absl::bit_cast<::uint64_t>(from._internal_lower_bound()) != 0) {
2721 _this->_impl_.lower_bound_ = from._impl_.lower_bound_;
2722 }
2723 }
2724 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
2725 if (::absl::bit_cast<::uint64_t>(from._internal_upper_bound()) != 0) {
2726 _this->_impl_.upper_bound_ = from._impl_.upper_bound_;
2727 }
2728 }
2729 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
2730 if (from._internal_is_lazy() != 0) {
2731 _this->_impl_.is_lazy_ = from._impl_.is_lazy_;
2732 }
2733 }
2734 }
2735 _this->_impl_._has_bits_[0] |= cached_has_bits;
2736 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
2737 from._internal_metadata_);
2738}
2739
2740void CallbackResultProto_GeneratedLinearConstraint::CopyFrom(const CallbackResultProto_GeneratedLinearConstraint& from) {
2741 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.CallbackResultProto.GeneratedLinearConstraint)
2742 if (&from == this) return;
2743 Clear();
2744 MergeFrom(from);
2745}
2747
2748void CallbackResultProto_GeneratedLinearConstraint::InternalSwap(CallbackResultProto_GeneratedLinearConstraint* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
2749 using ::std::swap;
2750 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2751 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2752 ::google::protobuf::internal::memswap<
2753 PROTOBUF_FIELD_OFFSET(CallbackResultProto_GeneratedLinearConstraint, _impl_.is_lazy_)
2755 - PROTOBUF_FIELD_OFFSET(CallbackResultProto_GeneratedLinearConstraint, _impl_.linear_expression_)>(
2756 reinterpret_cast<char*>(&_impl_.linear_expression_),
2757 reinterpret_cast<char*>(&other->_impl_.linear_expression_));
2758}
2759
2760::google::protobuf::Metadata CallbackResultProto_GeneratedLinearConstraint::GetMetadata() const {
2761 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
2762}
2763// ===================================================================
2764
2765class CallbackResultProto::_Internal {
2766 public:
2767 using HasBits =
2768 decltype(::std::declval<CallbackResultProto>()._impl_._has_bits_);
2769 static constexpr ::int32_t kHasBitsOffset =
2770 8 * PROTOBUF_FIELD_OFFSET(CallbackResultProto, _impl_._has_bits_);
2771};
2774 ::google::protobuf::internal::TSanWrite(&_impl_);
2775 _impl_.suggested_solutions_.Clear();
2776 ClearHasBitForRepeated(_impl_._has_bits_[0],
2777 0x00000004U);
2778}
2779CallbackResultProto::CallbackResultProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
2780#if defined(PROTOBUF_CUSTOM_VTABLE)
2781 : ::google::protobuf::Message(arena, CallbackResultProto_class_data_.base()) {
2782#else // PROTOBUF_CUSTOM_VTABLE
2783 : ::google::protobuf::Message(arena) {
2784#endif // PROTOBUF_CUSTOM_VTABLE
2785 SharedCtor(arena);
2786 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.CallbackResultProto)
2787}
2788PROTOBUF_NDEBUG_INLINE CallbackResultProto::Impl_::Impl_(
2789 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
2790 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
2791 [[maybe_unused]] const ::operations_research::math_opt::CallbackResultProto& from_msg)
2792 : _has_bits_{from._has_bits_},
2793 _cached_size_{0},
2794 cuts_{visibility, arena, from.cuts_},
2795 suggested_solutions_{visibility, arena, from.suggested_solutions_} {}
2796
2798 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
2799 const CallbackResultProto& from)
2800#if defined(PROTOBUF_CUSTOM_VTABLE)
2801 : ::google::protobuf::Message(arena, CallbackResultProto_class_data_.base()) {
2802#else // PROTOBUF_CUSTOM_VTABLE
2803 : ::google::protobuf::Message(arena) {
2804#endif // PROTOBUF_CUSTOM_VTABLE
2805 CallbackResultProto* const _this = this;
2806 (void)_this;
2807 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
2808 from._internal_metadata_);
2809 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
2810 _impl_.terminate_ = from._impl_.terminate_;
2811
2812 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.CallbackResultProto)
2813}
2814PROTOBUF_NDEBUG_INLINE CallbackResultProto::Impl_::Impl_(
2815 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
2816 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
2817 : _cached_size_{0},
2818 cuts_{visibility, arena},
2819 suggested_solutions_{visibility, arena} {}
2820
2821inline void CallbackResultProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
2822 new (&_impl_) Impl_(internal_visibility(), arena);
2823 _impl_.terminate_ = {};
2824}
2826 // @@protoc_insertion_point(destructor:operations_research.math_opt.CallbackResultProto)
2827 SharedDtor(*this);
2828}
2829inline void CallbackResultProto::SharedDtor(MessageLite& self) {
2830 CallbackResultProto& this_ = static_cast<CallbackResultProto&>(self);
2831 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2832 this_.CheckHasBitConsistency();
2833 }
2834 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
2835 ABSL_DCHECK(this_.GetArena() == nullptr);
2836 this_._impl_.~Impl_();
2837}
2838
2839inline void* PROTOBUF_NONNULL CallbackResultProto::PlacementNew_(
2840 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
2841 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
2842 return ::new (mem) CallbackResultProto(arena);
2843}
2844constexpr auto CallbackResultProto::InternalNewImpl_() {
2845 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
2846 PROTOBUF_FIELD_OFFSET(CallbackResultProto, _impl_.cuts_) +
2847 decltype(CallbackResultProto::_impl_.cuts_)::
2848 InternalGetArenaOffset(
2849 ::google::protobuf::Message::internal_visibility()),
2850 PROTOBUF_FIELD_OFFSET(CallbackResultProto, _impl_.suggested_solutions_) +
2851 decltype(CallbackResultProto::_impl_.suggested_solutions_)::
2852 InternalGetArenaOffset(
2853 ::google::protobuf::Message::internal_visibility()),
2854 });
2855 if (arena_bits.has_value()) {
2856 return ::google::protobuf::internal::MessageCreator::ZeroInit(
2857 sizeof(CallbackResultProto), alignof(CallbackResultProto), *arena_bits);
2858 } else {
2859 return ::google::protobuf::internal::MessageCreator(&CallbackResultProto::PlacementNew_,
2860 sizeof(CallbackResultProto),
2861 alignof(CallbackResultProto));
2862 }
2863}
2865 return ::google::protobuf::internal::ClassDataFull{
2866 ::google::protobuf::internal::ClassData{
2868 &_table_.header,
2869 nullptr, // OnDemandRegisterArenaDtor
2870 nullptr, // IsInitialized
2871 &CallbackResultProto::MergeImpl,
2872 ::google::protobuf::Message::GetNewImpl<CallbackResultProto>(),
2873#if defined(PROTOBUF_CUSTOM_VTABLE)
2874 &CallbackResultProto::SharedDtor,
2875 ::google::protobuf::Message::GetClearImpl<CallbackResultProto>(), &CallbackResultProto::ByteSizeLong,
2877#endif // PROTOBUF_CUSTOM_VTABLE
2878 PROTOBUF_FIELD_OFFSET(CallbackResultProto, _impl_._cached_size_),
2879 false,
2880 },
2881 &CallbackResultProto::kDescriptorMethods,
2883 nullptr, // tracker
2884 };
2885}
2886
2887PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
2888 ::google::protobuf::internal::ClassDataFull CallbackResultProto_class_data_ =
2890
2891PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
2892CallbackResultProto::GetClassData() const {
2893 ::google::protobuf::internal::PrefetchToLocalCache(&CallbackResultProto_class_data_);
2894 ::google::protobuf::internal::PrefetchToLocalCache(CallbackResultProto_class_data_.tc_table);
2896}
2897PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
2898const ::_pbi::TcParseTable<1, 3, 2, 0, 2>
2899CallbackResultProto::_table_ = {
2900 {
2901 PROTOBUF_FIELD_OFFSET(CallbackResultProto, _impl_._has_bits_),
2902 0, // no _extensions_
2903 5, 8, // max_field_number, fast_idx_mask
2904 offsetof(decltype(_table_), field_lookup_table),
2905 4294967270, // skipmap
2906 offsetof(decltype(_table_), field_entries),
2907 3, // num_field_entries
2908 2, // num_aux_entries
2909 offsetof(decltype(_table_), aux_entries),
2911 nullptr, // post_loop_handler
2912 ::_pbi::TcParser::GenericFallback, // fallback
2913 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
2914 ::_pbi::TcParser::GetTable<::operations_research::math_opt::CallbackResultProto>(), // to_prefetch
2915 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
2916 }, {{
2917 // repeated .operations_research.math_opt.CallbackResultProto.GeneratedLinearConstraint cuts = 4;
2918 {::_pbi::TcParser::FastMtR1,
2919 {34, 0, 0,
2920 PROTOBUF_FIELD_OFFSET(CallbackResultProto, _impl_.cuts_)}},
2921 // bool terminate = 1;
2922 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(CallbackResultProto, _impl_.terminate_), 1>(),
2923 {8, 1, 0,
2924 PROTOBUF_FIELD_OFFSET(CallbackResultProto, _impl_.terminate_)}},
2925 }}, {{
2926 65535, 65535
2927 }}, {{
2928 // bool terminate = 1;
2929 {PROTOBUF_FIELD_OFFSET(CallbackResultProto, _impl_.terminate_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
2930 // repeated .operations_research.math_opt.CallbackResultProto.GeneratedLinearConstraint cuts = 4;
2931 {PROTOBUF_FIELD_OFFSET(CallbackResultProto, _impl_.cuts_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
2932 // repeated .operations_research.math_opt.SparseDoubleVectorProto suggested_solutions = 5;
2933 {PROTOBUF_FIELD_OFFSET(CallbackResultProto, _impl_.suggested_solutions_), _Internal::kHasBitsOffset + 2, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
2934 }},
2935 {{
2936 {::_pbi::TcParser::GetTable<::operations_research::math_opt::CallbackResultProto_GeneratedLinearConstraint>()},
2937 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleVectorProto>()},
2938 }},
2939 {{
2940 }},
2941};
2942PROTOBUF_NOINLINE void CallbackResultProto::Clear() {
2943// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.CallbackResultProto)
2944 ::google::protobuf::internal::TSanWrite(&_impl_);
2945 ::uint32_t cached_has_bits = 0;
2946 // Prevent compiler warnings about cached_has_bits being unused
2947 (void) cached_has_bits;
2948
2949 cached_has_bits = _impl_._has_bits_[0];
2950 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
2951 _impl_.cuts_.Clear();
2952 }
2953 if (BatchCheckHasBit(cached_has_bits, 0x00000006U)) {
2954 _impl_.terminate_ = false;
2955 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
2956 _impl_.suggested_solutions_.Clear();
2957 }
2958 }
2959 _impl_._has_bits_.Clear();
2960 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
2961}
2962
2963#if defined(PROTOBUF_CUSTOM_VTABLE)
2964::uint8_t* PROTOBUF_NONNULL CallbackResultProto::_InternalSerialize(
2965 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
2966 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
2967 const CallbackResultProto& this_ = static_cast<const CallbackResultProto&>(base);
2968#else // PROTOBUF_CUSTOM_VTABLE
2969::uint8_t* PROTOBUF_NONNULL CallbackResultProto::_InternalSerialize(
2970 ::uint8_t* PROTOBUF_NONNULL target,
2971 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
2972 const CallbackResultProto& this_ = *this;
2973#endif // PROTOBUF_CUSTOM_VTABLE
2974 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2975 this_.CheckHasBitConsistency();
2977 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.CallbackResultProto)
2978 ::uint32_t cached_has_bits = 0;
2979 (void)cached_has_bits;
2980
2981 cached_has_bits = this_._impl_._has_bits_[0];
2982 // bool terminate = 1;
2983 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
2984 if (this_._internal_terminate() != 0) {
2985 target = stream->EnsureSpace(target);
2986 target = ::_pbi::WireFormatLite::WriteBoolToArray(
2987 1, this_._internal_terminate(), target);
2988 }
2989 }
2990
2991 // repeated .operations_research.math_opt.CallbackResultProto.GeneratedLinearConstraint cuts = 4;
2992 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
2993 for (unsigned i = 0, n = static_cast<unsigned>(
2994 this_._internal_cuts_size());
2995 i < n; i++) {
2996 const auto& repfield = this_._internal_cuts().Get(i);
2997 target =
2998 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2999 4, repfield, repfield.GetCachedSize(),
3000 target, stream);
3001 }
3002 }
3003
3004 // repeated .operations_research.math_opt.SparseDoubleVectorProto suggested_solutions = 5;
3005 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
3006 for (unsigned i = 0, n = static_cast<unsigned>(
3007 this_._internal_suggested_solutions_size());
3008 i < n; i++) {
3009 const auto& repfield = this_._internal_suggested_solutions().Get(i);
3010 target =
3011 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
3012 5, repfield, repfield.GetCachedSize(),
3013 target, stream);
3014 }
3015 }
3016
3017 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
3018 target =
3019 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
3020 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
3021 }
3022 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.CallbackResultProto)
3023 return target;
3024}
3025
3026#if defined(PROTOBUF_CUSTOM_VTABLE)
3027::size_t CallbackResultProto::ByteSizeLong(const MessageLite& base) {
3028 const CallbackResultProto& this_ = static_cast<const CallbackResultProto&>(base);
3029#else // PROTOBUF_CUSTOM_VTABLE
3030::size_t CallbackResultProto::ByteSizeLong() const {
3031 const CallbackResultProto& this_ = *this;
3032#endif // PROTOBUF_CUSTOM_VTABLE
3033 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.CallbackResultProto)
3034 ::size_t total_size = 0;
3035
3036 ::uint32_t cached_has_bits = 0;
3037 // Prevent compiler warnings about cached_has_bits being unused
3038 (void)cached_has_bits;
3039
3040 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
3041 cached_has_bits = this_._impl_._has_bits_[0];
3042 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
3043 // repeated .operations_research.math_opt.CallbackResultProto.GeneratedLinearConstraint cuts = 4;
3044 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
3045 total_size += 1UL * this_._internal_cuts_size();
3046 for (const auto& msg : this_._internal_cuts()) {
3047 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
3048 }
3049 }
3050 // bool terminate = 1;
3051 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
3052 if (this_._internal_terminate() != 0) {
3053 total_size += 2;
3054 }
3055 }
3056 // repeated .operations_research.math_opt.SparseDoubleVectorProto suggested_solutions = 5;
3057 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
3058 total_size += 1UL * this_._internal_suggested_solutions_size();
3059 for (const auto& msg : this_._internal_suggested_solutions()) {
3060 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
3061 }
3062 }
3063 }
3064 return this_.MaybeComputeUnknownFieldsSize(total_size,
3065 &this_._impl_._cached_size_);
3066}
3067
3068void CallbackResultProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
3069 const ::google::protobuf::MessageLite& from_msg) {
3070 auto* const _this =
3071 static_cast<CallbackResultProto*>(&to_msg);
3072 auto& from = static_cast<const CallbackResultProto&>(from_msg);
3073 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
3074 from.CheckHasBitConsistency();
3075 }
3076 ::google::protobuf::Arena* arena = _this->GetArena();
3077 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.CallbackResultProto)
3078 ABSL_DCHECK_NE(&from, _this);
3079 ::uint32_t cached_has_bits = 0;
3080 (void)cached_has_bits;
3081
3082 cached_has_bits = from._impl_._has_bits_[0];
3083 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
3084 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
3085 _this->_internal_mutable_cuts()->InternalMergeFromWithArena(
3086 ::google::protobuf::MessageLite::internal_visibility(), arena,
3087 from._internal_cuts());
3088 }
3089 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
3090 if (from._internal_terminate() != 0) {
3091 _this->_impl_.terminate_ = from._impl_.terminate_;
3092 }
3093 }
3094 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
3095 _this->_internal_mutable_suggested_solutions()->InternalMergeFromWithArena(
3096 ::google::protobuf::MessageLite::internal_visibility(), arena,
3097 from._internal_suggested_solutions());
3098 }
3099 }
3100 _this->_impl_._has_bits_[0] |= cached_has_bits;
3101 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
3102 from._internal_metadata_);
3103}
3104
3105void CallbackResultProto::CopyFrom(const CallbackResultProto& from) {
3106 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.CallbackResultProto)
3107 if (&from == this) return;
3108 Clear();
3109 MergeFrom(from);
3110}
3111
3113void CallbackResultProto::InternalSwap(CallbackResultProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
3114 using ::std::swap;
3115 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
3116 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
3117 _impl_.cuts_.InternalSwap(&other->_impl_.cuts_);
3118 swap(_impl_.terminate_, other->_impl_.terminate_);
3119 _impl_.suggested_solutions_.InternalSwap(&other->_impl_.suggested_solutions_);
3120}
3121
3122::google::protobuf::Metadata CallbackResultProto::GetMetadata() const {
3123 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
3124}
3125// ===================================================================
3126
3127class CallbackRegistrationProto::_Internal {
3128 public:
3129 using HasBits =
3130 decltype(::std::declval<CallbackRegistrationProto>()._impl_._has_bits_);
3131 static constexpr ::int32_t kHasBitsOffset =
3132 8 * PROTOBUF_FIELD_OFFSET(CallbackRegistrationProto, _impl_._has_bits_);
3133};
3134
3136 ::google::protobuf::internal::TSanWrite(&_impl_);
3137 if (_impl_.mip_solution_filter_ != nullptr) _impl_.mip_solution_filter_->Clear();
3138 ClearHasBit(_impl_._has_bits_[0],
3139 0x00000002U);
3140}
3142 ::google::protobuf::internal::TSanWrite(&_impl_);
3143 if (_impl_.mip_node_filter_ != nullptr) _impl_.mip_node_filter_->Clear();
3144 ClearHasBit(_impl_._has_bits_[0],
3145 0x00000004U);
3146}
3147CallbackRegistrationProto::CallbackRegistrationProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
3148#if defined(PROTOBUF_CUSTOM_VTABLE)
3149 : ::google::protobuf::Message(arena, CallbackRegistrationProto_class_data_.base()) {
3150#else // PROTOBUF_CUSTOM_VTABLE
3151 : ::google::protobuf::Message(arena) {
3152#endif // PROTOBUF_CUSTOM_VTABLE
3153 SharedCtor(arena);
3154 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.CallbackRegistrationProto)
3155}
3156PROTOBUF_NDEBUG_INLINE CallbackRegistrationProto::Impl_::Impl_(
3157 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
3158 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
3159 [[maybe_unused]] const ::operations_research::math_opt::CallbackRegistrationProto& from_msg)
3160 : _has_bits_{from._has_bits_},
3161 _cached_size_{0},
3162 request_registration_{visibility, arena, from.request_registration_},
3163 _request_registration_cached_byte_size_{0} {}
3164
3166 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
3167 const CallbackRegistrationProto& from)
3168#if defined(PROTOBUF_CUSTOM_VTABLE)
3169 : ::google::protobuf::Message(arena, CallbackRegistrationProto_class_data_.base()) {
3170#else // PROTOBUF_CUSTOM_VTABLE
3171 : ::google::protobuf::Message(arena) {
3172#endif // PROTOBUF_CUSTOM_VTABLE
3173 CallbackRegistrationProto* const _this = this;
3174 (void)_this;
3175 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
3176 from._internal_metadata_);
3177 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
3178 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
3179 _impl_.mip_solution_filter_ = (CheckHasBit(cached_has_bits, 0x00000002U))
3180 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.mip_solution_filter_)
3181 : nullptr;
3182 _impl_.mip_node_filter_ = (CheckHasBit(cached_has_bits, 0x00000004U))
3183 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.mip_node_filter_)
3184 : nullptr;
3185 ::memcpy(reinterpret_cast<char*>(&_impl_) +
3186 offsetof(Impl_, add_cuts_),
3187 reinterpret_cast<const char*>(&from._impl_) +
3188 offsetof(Impl_, add_cuts_),
3189 offsetof(Impl_, add_lazy_constraints_) -
3190 offsetof(Impl_, add_cuts_) +
3191 sizeof(Impl_::add_lazy_constraints_));
3192
3193 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.CallbackRegistrationProto)
3194}
3195PROTOBUF_NDEBUG_INLINE CallbackRegistrationProto::Impl_::Impl_(
3196 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
3197 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
3198 : _cached_size_{0},
3199 request_registration_{visibility, arena},
3200 _request_registration_cached_byte_size_{0} {}
3201
3202inline void CallbackRegistrationProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
3203 new (&_impl_) Impl_(internal_visibility(), arena);
3204 ::memset(reinterpret_cast<char*>(&_impl_) +
3205 offsetof(Impl_, mip_solution_filter_),
3206 0,
3207 offsetof(Impl_, add_lazy_constraints_) -
3208 offsetof(Impl_, mip_solution_filter_) +
3209 sizeof(Impl_::add_lazy_constraints_));
3210}
3212 // @@protoc_insertion_point(destructor:operations_research.math_opt.CallbackRegistrationProto)
3213 SharedDtor(*this);
3214}
3215inline void CallbackRegistrationProto::SharedDtor(MessageLite& self) {
3216 CallbackRegistrationProto& this_ = static_cast<CallbackRegistrationProto&>(self);
3217 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
3218 this_.CheckHasBitConsistency();
3220 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
3221 ABSL_DCHECK(this_.GetArena() == nullptr);
3222 delete this_._impl_.mip_solution_filter_;
3223 delete this_._impl_.mip_node_filter_;
3224 this_._impl_.~Impl_();
3225}
3226
3227inline void* PROTOBUF_NONNULL CallbackRegistrationProto::PlacementNew_(
3228 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
3229 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
3230 return ::new (mem) CallbackRegistrationProto(arena);
3231}
3232constexpr auto CallbackRegistrationProto::InternalNewImpl_() {
3233 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
3234 PROTOBUF_FIELD_OFFSET(CallbackRegistrationProto, _impl_.request_registration_) +
3235 decltype(CallbackRegistrationProto::_impl_.request_registration_)::
3236 InternalGetArenaOffset(
3237 ::google::protobuf::Message::internal_visibility()),
3238 });
3239 if (arena_bits.has_value()) {
3240 return ::google::protobuf::internal::MessageCreator::ZeroInit(
3241 sizeof(CallbackRegistrationProto), alignof(CallbackRegistrationProto), *arena_bits);
3242 } else {
3243 return ::google::protobuf::internal::MessageCreator(&CallbackRegistrationProto::PlacementNew_,
3244 sizeof(CallbackRegistrationProto),
3245 alignof(CallbackRegistrationProto));
3246 }
3247}
3249 return ::google::protobuf::internal::ClassDataFull{
3250 ::google::protobuf::internal::ClassData{
3252 &_table_.header,
3253 nullptr, // OnDemandRegisterArenaDtor
3254 nullptr, // IsInitialized
3255 &CallbackRegistrationProto::MergeImpl,
3256 ::google::protobuf::Message::GetNewImpl<CallbackRegistrationProto>(),
3257#if defined(PROTOBUF_CUSTOM_VTABLE)
3258 &CallbackRegistrationProto::SharedDtor,
3259 ::google::protobuf::Message::GetClearImpl<CallbackRegistrationProto>(), &CallbackRegistrationProto::ByteSizeLong,
3261#endif // PROTOBUF_CUSTOM_VTABLE
3262 PROTOBUF_FIELD_OFFSET(CallbackRegistrationProto, _impl_._cached_size_),
3263 false,
3264 },
3265 &CallbackRegistrationProto::kDescriptorMethods,
3267 nullptr, // tracker
3268 };
3269}
3270
3271PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
3272 ::google::protobuf::internal::ClassDataFull CallbackRegistrationProto_class_data_ =
3274
3275PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
3276CallbackRegistrationProto::GetClassData() const {
3277 ::google::protobuf::internal::PrefetchToLocalCache(&CallbackRegistrationProto_class_data_);
3278 ::google::protobuf::internal::PrefetchToLocalCache(CallbackRegistrationProto_class_data_.tc_table);
3281PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
3282const ::_pbi::TcParseTable<3, 5, 2, 0, 2>
3283CallbackRegistrationProto::_table_ = {
3284 {
3285 PROTOBUF_FIELD_OFFSET(CallbackRegistrationProto, _impl_._has_bits_),
3286 0, // no _extensions_
3287 5, 56, // max_field_number, fast_idx_mask
3288 offsetof(decltype(_table_), field_lookup_table),
3289 4294967264, // skipmap
3290 offsetof(decltype(_table_), field_entries),
3291 5, // num_field_entries
3292 2, // num_aux_entries
3293 offsetof(decltype(_table_), aux_entries),
3295 nullptr, // post_loop_handler
3296 ::_pbi::TcParser::GenericFallback, // fallback
3297 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
3298 ::_pbi::TcParser::GetTable<::operations_research::math_opt::CallbackRegistrationProto>(), // to_prefetch
3299 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
3300 }, {{
3301 {::_pbi::TcParser::MiniParse, {}},
3302 // repeated .operations_research.math_opt.CallbackEventProto request_registration = 1;
3303 {::_pbi::TcParser::FastV32P1,
3304 {10, 0, 0,
3305 PROTOBUF_FIELD_OFFSET(CallbackRegistrationProto, _impl_.request_registration_)}},
3306 // .operations_research.math_opt.SparseVectorFilterProto mip_solution_filter = 2;
3307 {::_pbi::TcParser::FastMtS1,
3308 {18, 1, 0,
3309 PROTOBUF_FIELD_OFFSET(CallbackRegistrationProto, _impl_.mip_solution_filter_)}},
3310 // .operations_research.math_opt.SparseVectorFilterProto mip_node_filter = 3;
3311 {::_pbi::TcParser::FastMtS1,
3312 {26, 2, 1,
3313 PROTOBUF_FIELD_OFFSET(CallbackRegistrationProto, _impl_.mip_node_filter_)}},
3314 // bool add_cuts = 4;
3315 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(CallbackRegistrationProto, _impl_.add_cuts_), 3>(),
3316 {32, 3, 0,
3317 PROTOBUF_FIELD_OFFSET(CallbackRegistrationProto, _impl_.add_cuts_)}},
3318 // bool add_lazy_constraints = 5;
3319 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(CallbackRegistrationProto, _impl_.add_lazy_constraints_), 4>(),
3320 {40, 4, 0,
3321 PROTOBUF_FIELD_OFFSET(CallbackRegistrationProto, _impl_.add_lazy_constraints_)}},
3322 {::_pbi::TcParser::MiniParse, {}},
3323 {::_pbi::TcParser::MiniParse, {}},
3324 }}, {{
3325 65535, 65535
3326 }}, {{
3327 // repeated .operations_research.math_opt.CallbackEventProto request_registration = 1;
3328 {PROTOBUF_FIELD_OFFSET(CallbackRegistrationProto, _impl_.request_registration_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedOpenEnum)},
3329 // .operations_research.math_opt.SparseVectorFilterProto mip_solution_filter = 2;
3330 {PROTOBUF_FIELD_OFFSET(CallbackRegistrationProto, _impl_.mip_solution_filter_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
3331 // .operations_research.math_opt.SparseVectorFilterProto mip_node_filter = 3;
3332 {PROTOBUF_FIELD_OFFSET(CallbackRegistrationProto, _impl_.mip_node_filter_), _Internal::kHasBitsOffset + 2, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
3333 // bool add_cuts = 4;
3334 {PROTOBUF_FIELD_OFFSET(CallbackRegistrationProto, _impl_.add_cuts_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
3335 // bool add_lazy_constraints = 5;
3336 {PROTOBUF_FIELD_OFFSET(CallbackRegistrationProto, _impl_.add_lazy_constraints_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
3337 }},
3338 {{
3339 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseVectorFilterProto>()},
3340 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseVectorFilterProto>()},
3341 }},
3342 {{
3343 }},
3344};
3345PROTOBUF_NOINLINE void CallbackRegistrationProto::Clear() {
3346// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.CallbackRegistrationProto)
3347 ::google::protobuf::internal::TSanWrite(&_impl_);
3348 ::uint32_t cached_has_bits = 0;
3349 // Prevent compiler warnings about cached_has_bits being unused
3350 (void) cached_has_bits;
3351
3352 cached_has_bits = _impl_._has_bits_[0];
3353 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
3354 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
3355 _impl_.request_registration_.Clear();
3356 }
3357 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
3358 ABSL_DCHECK(_impl_.mip_solution_filter_ != nullptr);
3359 _impl_.mip_solution_filter_->Clear();
3360 }
3361 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
3362 ABSL_DCHECK(_impl_.mip_node_filter_ != nullptr);
3363 _impl_.mip_node_filter_->Clear();
3364 }
3365 }
3366 ::memset(&_impl_.add_cuts_, 0, static_cast<::size_t>(
3367 reinterpret_cast<char*>(&_impl_.add_lazy_constraints_) -
3368 reinterpret_cast<char*>(&_impl_.add_cuts_)) + sizeof(_impl_.add_lazy_constraints_));
3369 _impl_._has_bits_.Clear();
3370 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
3371}
3372
3373#if defined(PROTOBUF_CUSTOM_VTABLE)
3374::uint8_t* PROTOBUF_NONNULL CallbackRegistrationProto::_InternalSerialize(
3375 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
3376 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
3377 const CallbackRegistrationProto& this_ = static_cast<const CallbackRegistrationProto&>(base);
3378#else // PROTOBUF_CUSTOM_VTABLE
3379::uint8_t* PROTOBUF_NONNULL CallbackRegistrationProto::_InternalSerialize(
3380 ::uint8_t* PROTOBUF_NONNULL target,
3381 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
3382 const CallbackRegistrationProto& this_ = *this;
3383#endif // PROTOBUF_CUSTOM_VTABLE
3384 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
3385 this_.CheckHasBitConsistency();
3386 }
3387 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.CallbackRegistrationProto)
3388 ::uint32_t cached_has_bits = 0;
3389 (void)cached_has_bits;
3390
3391 cached_has_bits = this_._impl_._has_bits_[0];
3392 // repeated .operations_research.math_opt.CallbackEventProto request_registration = 1;
3393 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
3394 {
3395 ::size_t byte_size = this_._impl_._request_registration_cached_byte_size_.Get();
3396 if (byte_size > 0) {
3397 target = stream->WriteEnumPacked(
3398 1, this_._internal_request_registration(), byte_size, target);
3399 }
3400 }
3401 }
3402
3403 // .operations_research.math_opt.SparseVectorFilterProto mip_solution_filter = 2;
3404 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
3405 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
3406 2, *this_._impl_.mip_solution_filter_, this_._impl_.mip_solution_filter_->GetCachedSize(), target,
3407 stream);
3408 }
3409
3410 // .operations_research.math_opt.SparseVectorFilterProto mip_node_filter = 3;
3411 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
3412 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
3413 3, *this_._impl_.mip_node_filter_, this_._impl_.mip_node_filter_->GetCachedSize(), target,
3414 stream);
3415 }
3416
3417 // bool add_cuts = 4;
3418 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
3419 if (this_._internal_add_cuts() != 0) {
3420 target = stream->EnsureSpace(target);
3421 target = ::_pbi::WireFormatLite::WriteBoolToArray(
3422 4, this_._internal_add_cuts(), target);
3423 }
3424 }
3425
3426 // bool add_lazy_constraints = 5;
3427 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
3428 if (this_._internal_add_lazy_constraints() != 0) {
3429 target = stream->EnsureSpace(target);
3430 target = ::_pbi::WireFormatLite::WriteBoolToArray(
3431 5, this_._internal_add_lazy_constraints(), target);
3432 }
3433 }
3434
3435 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
3436 target =
3437 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
3438 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
3439 }
3440 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.CallbackRegistrationProto)
3441 return target;
3442}
3443
3444#if defined(PROTOBUF_CUSTOM_VTABLE)
3446 const CallbackRegistrationProto& this_ = static_cast<const CallbackRegistrationProto&>(base);
3447#else // PROTOBUF_CUSTOM_VTABLE
3449 const CallbackRegistrationProto& this_ = *this;
3450#endif // PROTOBUF_CUSTOM_VTABLE
3451 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.CallbackRegistrationProto)
3452 ::size_t total_size = 0;
3453
3454 ::uint32_t cached_has_bits = 0;
3455 // Prevent compiler warnings about cached_has_bits being unused
3456 (void)cached_has_bits;
3457
3458 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
3459 cached_has_bits = this_._impl_._has_bits_[0];
3460 if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
3461 // repeated .operations_research.math_opt.CallbackEventProto request_registration = 1;
3462 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
3463 total_size += ::_pbi::WireFormatLite::EnumSizeWithPackedTagSize(
3464 this_._internal_request_registration(), 1, this_._impl_._request_registration_cached_byte_size_);
3465 }
3466 // .operations_research.math_opt.SparseVectorFilterProto mip_solution_filter = 2;
3467 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
3468 total_size += 1 +
3469 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.mip_solution_filter_);
3470 }
3471 // .operations_research.math_opt.SparseVectorFilterProto mip_node_filter = 3;
3472 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
3473 total_size += 1 +
3474 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.mip_node_filter_);
3475 }
3476 // bool add_cuts = 4;
3477 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
3478 if (this_._internal_add_cuts() != 0) {
3479 total_size += 2;
3480 }
3481 }
3482 // bool add_lazy_constraints = 5;
3483 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
3484 if (this_._internal_add_lazy_constraints() != 0) {
3485 total_size += 2;
3486 }
3487 }
3488 }
3489 return this_.MaybeComputeUnknownFieldsSize(total_size,
3490 &this_._impl_._cached_size_);
3491}
3492
3493void CallbackRegistrationProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
3494 const ::google::protobuf::MessageLite& from_msg) {
3495 auto* const _this =
3496 static_cast<CallbackRegistrationProto*>(&to_msg);
3497 auto& from = static_cast<const CallbackRegistrationProto&>(from_msg);
3498 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
3499 from.CheckHasBitConsistency();
3500 }
3501 ::google::protobuf::Arena* arena = _this->GetArena();
3502 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.CallbackRegistrationProto)
3503 ABSL_DCHECK_NE(&from, _this);
3504 ::uint32_t cached_has_bits = 0;
3505 (void)cached_has_bits;
3506
3507 cached_has_bits = from._impl_._has_bits_[0];
3508 if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
3509 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
3510 _this->_internal_mutable_request_registration()->MergeFrom(from._internal_request_registration());
3511 }
3512 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
3513 ABSL_DCHECK(from._impl_.mip_solution_filter_ != nullptr);
3514 if (_this->_impl_.mip_solution_filter_ == nullptr) {
3515 _this->_impl_.mip_solution_filter_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.mip_solution_filter_);
3516 } else {
3517 _this->_impl_.mip_solution_filter_->MergeFrom(*from._impl_.mip_solution_filter_);
3518 }
3519 }
3520 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
3521 ABSL_DCHECK(from._impl_.mip_node_filter_ != nullptr);
3522 if (_this->_impl_.mip_node_filter_ == nullptr) {
3523 _this->_impl_.mip_node_filter_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.mip_node_filter_);
3524 } else {
3525 _this->_impl_.mip_node_filter_->MergeFrom(*from._impl_.mip_node_filter_);
3526 }
3527 }
3528 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
3529 if (from._internal_add_cuts() != 0) {
3530 _this->_impl_.add_cuts_ = from._impl_.add_cuts_;
3531 }
3532 }
3533 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
3534 if (from._internal_add_lazy_constraints() != 0) {
3535 _this->_impl_.add_lazy_constraints_ = from._impl_.add_lazy_constraints_;
3536 }
3537 }
3538 }
3539 _this->_impl_._has_bits_[0] |= cached_has_bits;
3540 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
3541 from._internal_metadata_);
3542}
3543
3544void CallbackRegistrationProto::CopyFrom(const CallbackRegistrationProto& from) {
3545 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.CallbackRegistrationProto)
3546 if (&from == this) return;
3547 Clear();
3548 MergeFrom(from);
3549}
3550
3551
3552void CallbackRegistrationProto::InternalSwap(CallbackRegistrationProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
3553 using ::std::swap;
3554 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
3555 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
3556 _impl_.request_registration_.InternalSwap(&other->_impl_.request_registration_);
3557 ::google::protobuf::internal::memswap<
3558 PROTOBUF_FIELD_OFFSET(CallbackRegistrationProto, _impl_.add_lazy_constraints_)
3559 + sizeof(CallbackRegistrationProto::_impl_.add_lazy_constraints_)
3560 - PROTOBUF_FIELD_OFFSET(CallbackRegistrationProto, _impl_.mip_solution_filter_)>(
3561 reinterpret_cast<char*>(&_impl_.mip_solution_filter_),
3562 reinterpret_cast<char*>(&other->_impl_.mip_solution_filter_));
3563}
3564
3565::google::protobuf::Metadata CallbackRegistrationProto::GetMetadata() const {
3566 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
3567}
3568// @@protoc_insertion_point(namespace_scope)
3569} // namespace math_opt
3570} // namespace operations_research
3571namespace google {
3572namespace protobuf {
3573} // namespace protobuf
3574} // namespace google
3575// @@protoc_insertion_point(global_scope)
3576PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
3577 _static_init2_ [[maybe_unused]] =
3579 ::std::false_type{});
3580#include "google/protobuf/port_undef.inc"
static PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::std::false_type _static_init2_
static const ::_pb::Message *PROTOBUF_NONNULL const file_default_instances[]
::absl::once_flag descriptor_table_ortools_2fmath_5fopt_2fcallback_2eproto_once
static constexprconst ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_service_descriptors_ortools_2fmath_5fopt_2fcallback_2eproto
static const ::_pb::EnumDescriptor *PROTOBUF_NONNULL file_level_enum_descriptors_ortools_2fmath_5fopt_2fcallback_2eproto[1]
const ::uint32_t TableStruct_ortools_2fmath_5fopt_2fcallback_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold)
static const ::_pbi::DescriptorTable *PROTOBUF_NONNULL const descriptor_table_ortools_2fmath_5fopt_2fcallback_2eproto_deps[2]
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fcallback_2eproto
void CopyFrom(const CallbackDataProto_BarrierStats &from)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
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
void CopyFrom(const CallbackDataProto_MipStats &from)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
decltype(::std::declval< CallbackDataProto_PresolveStats >()._impl_._has_bits_) HasBits
friend void swap(CallbackDataProto_PresolveStats &a, CallbackDataProto_PresolveStats &b)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
void MergeFrom(const CallbackDataProto_PresolveStats &from)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void CopyFrom(const CallbackDataProto_PresolveStats &from)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
decltype(::std::declval< CallbackDataProto_SimplexStats >()._impl_._has_bits_) HasBits
void MergeFrom(const CallbackDataProto_SimplexStats &from)
void CopyFrom(const CallbackDataProto_SimplexStats &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
friend void swap(CallbackDataProto_SimplexStats &a, CallbackDataProto_SimplexStats &b)
friend class ::google::protobuf::MessageLite
friend void swap(CallbackDataProto &a, CallbackDataProto &b)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
void MergeFrom(const CallbackDataProto &from)
void CopyFrom(const CallbackDataProto &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
friend class ::google::protobuf::Arena
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
void MergeFrom(const CallbackRegistrationProto &from)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
::google::protobuf::Metadata GetMetadata() const
void CopyFrom(const CallbackRegistrationProto &from)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void CopyFrom(const CallbackResultProto_GeneratedLinearConstraint &from)
void MergeFrom(const CallbackResultProto_GeneratedLinearConstraint &from)
friend class ::google::protobuf::MessageLite
void CopyFrom(const CallbackResultProto &from)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
::google::protobuf::Metadata GetMetadata() const
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void MergeFrom(const CallbackResultProto &from)
static constexpr ::_pbi::MigrationSchema *PROTOBUF_NULLABLE schemas
PROTOBUF_CONSTINIT const uint32_t CallbackEventProto_internal_data_[]
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull CallbackRegistrationProto_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull CallbackDataProto_BarrierStats_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CallbackResultProtoDefaultTypeInternal _CallbackResultProto_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull CallbackDataProto_PresolveStats_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull CallbackResultProto_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull CallbackDataProto_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CallbackRegistrationProtoDefaultTypeInternal _CallbackRegistrationProto_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CallbackDataProto_SimplexStatsDefaultTypeInternal _CallbackDataProto_SimplexStats_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CallbackDataProtoDefaultTypeInternal _CallbackDataProto_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CallbackDataProto_PresolveStatsDefaultTypeInternal _CallbackDataProto_PresolveStats_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CallbackDataProto_MipStatsDefaultTypeInternal _CallbackDataProto_MipStats_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CallbackDataProto_BarrierStatsDefaultTypeInternal _CallbackDataProto_BarrierStats_default_instance_
const ::google::protobuf::EnumDescriptor *PROTOBUF_NONNULL CallbackEventProto_descriptor()
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull CallbackDataProto_MipStats_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull CallbackResultProto_GeneratedLinearConstraint_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CallbackResultProto_GeneratedLinearConstraintDefaultTypeInternal _CallbackResultProto_GeneratedLinearConstraint_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull CallbackDataProto_SimplexStats_class_data_
OR-Tools root namespace.
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fsparse_5fcontainers_2eproto