Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
search_stats.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/constraint_solver/search_stats.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 {
28
29inline constexpr SubSolverStatistics::Impl_::Impl_(
30 ::_pbi::ConstantInitialized) noexcept
31 : _cached_size_{0},
32 num_glop_calls_in_lp_scheduling_{::int64_t{0}},
33 num_cp_sat_calls_in_lp_scheduling_{::int64_t{0}},
34 num_min_cost_flow_calls_{::int64_t{0}} {}
35
36template <typename>
37PROTOBUF_CONSTEXPR SubSolverStatistics::SubSolverStatistics(::_pbi::ConstantInitialized)
38#if defined(PROTOBUF_CUSTOM_VTABLE)
39 : ::google::protobuf::Message(SubSolverStatistics_class_data_.base()),
40#else // PROTOBUF_CUSTOM_VTABLE
41 : ::google::protobuf::Message(),
42#endif // PROTOBUF_CUSTOM_VTABLE
43 _impl_(::_pbi::ConstantInitialized()) {
44}
52
53PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
55
56inline constexpr LocalSearchStatistics_LocalSearchOperatorStatistics::Impl_::Impl_(
57 ::_pbi::ConstantInitialized) noexcept
58 : _cached_size_{0},
59 local_search_operator_(
60 &::google::protobuf::internal::fixed_address_empty_string,
61 ::_pbi::ConstantInitialized()),
62 num_neighbors_{::int64_t{0}},
63 num_filtered_neighbors_{::int64_t{0}},
64 num_accepted_neighbors_{::int64_t{0}},
65 duration_seconds_{0},
66 make_next_neighbor_duration_seconds_{0},
67 accept_neighbor_duration_seconds_{0} {}
68
69template <typename>
71#if defined(PROTOBUF_CUSTOM_VTABLE)
72 : ::google::protobuf::Message(LocalSearchStatistics_LocalSearchOperatorStatistics_class_data_.base()),
73#else // PROTOBUF_CUSTOM_VTABLE
74 : ::google::protobuf::Message(),
75#endif // PROTOBUF_CUSTOM_VTABLE
76 _impl_(::_pbi::ConstantInitialized()) {
77}
85
86PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
88
89inline constexpr LocalSearchStatistics_LocalSearchFilterStatistics::Impl_::Impl_(
90 ::_pbi::ConstantInitialized) noexcept
91 : _cached_size_{0},
92 local_search_filter_(
93 &::google::protobuf::internal::fixed_address_empty_string,
94 ::_pbi::ConstantInitialized()),
95 context_(
96 &::google::protobuf::internal::fixed_address_empty_string,
97 ::_pbi::ConstantInitialized()),
98 num_calls_{::int64_t{0}},
99 num_rejects_{::int64_t{0}},
100 duration_seconds_{0},
101 num_rejects_per_second_{0} {}
102
103template <typename>
105#if defined(PROTOBUF_CUSTOM_VTABLE)
106 : ::google::protobuf::Message(LocalSearchStatistics_LocalSearchFilterStatistics_class_data_.base()),
107#else // PROTOBUF_CUSTOM_VTABLE
108 : ::google::protobuf::Message(),
109#endif // PROTOBUF_CUSTOM_VTABLE
110 _impl_(::_pbi::ConstantInitialized()) {
111}
119
120PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
122
123inline constexpr LocalSearchStatistics_FirstSolutionStatistics::Impl_::Impl_(
124 ::_pbi::ConstantInitialized) noexcept
125 : _cached_size_{0},
126 strategy_(
127 &::google::protobuf::internal::fixed_address_empty_string,
128 ::_pbi::ConstantInitialized()),
129 duration_seconds_{0} {}
130
131template <typename>
133#if defined(PROTOBUF_CUSTOM_VTABLE)
134 : ::google::protobuf::Message(LocalSearchStatistics_FirstSolutionStatistics_class_data_.base()),
135#else // PROTOBUF_CUSTOM_VTABLE
136 : ::google::protobuf::Message(),
137#endif // PROTOBUF_CUSTOM_VTABLE
138 _impl_(::_pbi::ConstantInitialized()) {
139}
147
148PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
150
151inline constexpr ConstraintSolverStatistics::Impl_::Impl_(
152 ::_pbi::ConstantInitialized) noexcept
153 : _cached_size_{0},
154 num_branches_{::int64_t{0}},
155 num_failures_{::int64_t{0}},
156 num_solutions_{::int64_t{0}},
157 bytes_used_{::int64_t{0}},
158 duration_seconds_{0} {}
159
160template <typename>
161PROTOBUF_CONSTEXPR ConstraintSolverStatistics::ConstraintSolverStatistics(::_pbi::ConstantInitialized)
162#if defined(PROTOBUF_CUSTOM_VTABLE)
163 : ::google::protobuf::Message(ConstraintSolverStatistics_class_data_.base()),
164#else // PROTOBUF_CUSTOM_VTABLE
165 : ::google::protobuf::Message(),
166#endif // PROTOBUF_CUSTOM_VTABLE
167 _impl_(::_pbi::ConstantInitialized()) {
168}
176
177PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
179
180inline constexpr LocalSearchStatistics::Impl_::Impl_(
181 ::_pbi::ConstantInitialized) noexcept
182 : _cached_size_{0},
183 local_search_operator_statistics_{},
184 local_search_filter_statistics_{},
185 first_solution_statistics_{},
186 total_num_neighbors_{::int64_t{0}},
187 total_num_filtered_neighbors_{::int64_t{0}},
188 total_num_accepted_neighbors_{::int64_t{0}} {}
189
190template <typename>
191PROTOBUF_CONSTEXPR LocalSearchStatistics::LocalSearchStatistics(::_pbi::ConstantInitialized)
192#if defined(PROTOBUF_CUSTOM_VTABLE)
193 : ::google::protobuf::Message(LocalSearchStatistics_class_data_.base()),
194#else // PROTOBUF_CUSTOM_VTABLE
195 : ::google::protobuf::Message(),
196#endif // PROTOBUF_CUSTOM_VTABLE
197 _impl_(::_pbi::ConstantInitialized()) {
198}
206
207PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
209
210inline constexpr SearchStatistics::Impl_::Impl_(
211 ::_pbi::ConstantInitialized) noexcept
212 : _cached_size_{0},
213 local_search_statistics_{},
214 constraint_solver_statistics_{},
215 sub_solver_statistics_{} {}
216
217template <typename>
218PROTOBUF_CONSTEXPR SearchStatistics::SearchStatistics(::_pbi::ConstantInitialized)
219#if defined(PROTOBUF_CUSTOM_VTABLE)
220 : ::google::protobuf::Message(SearchStatistics_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} // namespace operations_research
237static constexpr const ::_pb::EnumDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
239static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
241const ::uint32_t
243 protodesc_cold) = {
244 0x081, // bitmap
245 PROTOBUF_FIELD_OFFSET(::operations_research::LocalSearchStatistics_FirstSolutionStatistics, _impl_._has_bits_),
246 5, // hasbit index offset
247 PROTOBUF_FIELD_OFFSET(::operations_research::LocalSearchStatistics_FirstSolutionStatistics, _impl_.strategy_),
248 PROTOBUF_FIELD_OFFSET(::operations_research::LocalSearchStatistics_FirstSolutionStatistics, _impl_.duration_seconds_),
249 0,
250 1,
251 0x081, // bitmap
253 10, // hasbit index offset
254 PROTOBUF_FIELD_OFFSET(::operations_research::LocalSearchStatistics_LocalSearchOperatorStatistics, _impl_.local_search_operator_),
255 PROTOBUF_FIELD_OFFSET(::operations_research::LocalSearchStatistics_LocalSearchOperatorStatistics, _impl_.num_neighbors_),
256 PROTOBUF_FIELD_OFFSET(::operations_research::LocalSearchStatistics_LocalSearchOperatorStatistics, _impl_.num_filtered_neighbors_),
257 PROTOBUF_FIELD_OFFSET(::operations_research::LocalSearchStatistics_LocalSearchOperatorStatistics, _impl_.num_accepted_neighbors_),
258 PROTOBUF_FIELD_OFFSET(::operations_research::LocalSearchStatistics_LocalSearchOperatorStatistics, _impl_.duration_seconds_),
259 PROTOBUF_FIELD_OFFSET(::operations_research::LocalSearchStatistics_LocalSearchOperatorStatistics, _impl_.make_next_neighbor_duration_seconds_),
260 PROTOBUF_FIELD_OFFSET(::operations_research::LocalSearchStatistics_LocalSearchOperatorStatistics, _impl_.accept_neighbor_duration_seconds_),
261 0,
262 1,
263 2,
264 3,
265 4,
266 5,
267 6,
268 0x081, // bitmap
269 PROTOBUF_FIELD_OFFSET(::operations_research::LocalSearchStatistics_LocalSearchFilterStatistics, _impl_._has_bits_),
270 9, // hasbit index offset
271 PROTOBUF_FIELD_OFFSET(::operations_research::LocalSearchStatistics_LocalSearchFilterStatistics, _impl_.local_search_filter_),
272 PROTOBUF_FIELD_OFFSET(::operations_research::LocalSearchStatistics_LocalSearchFilterStatistics, _impl_.num_calls_),
273 PROTOBUF_FIELD_OFFSET(::operations_research::LocalSearchStatistics_LocalSearchFilterStatistics, _impl_.num_rejects_),
274 PROTOBUF_FIELD_OFFSET(::operations_research::LocalSearchStatistics_LocalSearchFilterStatistics, _impl_.duration_seconds_),
275 PROTOBUF_FIELD_OFFSET(::operations_research::LocalSearchStatistics_LocalSearchFilterStatistics, _impl_.num_rejects_per_second_),
277 0,
278 2,
279 3,
280 4,
281 5,
282 1,
283 0x081, // bitmap
284 PROTOBUF_FIELD_OFFSET(::operations_research::LocalSearchStatistics, _impl_._has_bits_),
285 9, // hasbit index offset
286 PROTOBUF_FIELD_OFFSET(::operations_research::LocalSearchStatistics, _impl_.first_solution_statistics_),
287 PROTOBUF_FIELD_OFFSET(::operations_research::LocalSearchStatistics, _impl_.local_search_operator_statistics_),
288 PROTOBUF_FIELD_OFFSET(::operations_research::LocalSearchStatistics, _impl_.total_num_neighbors_),
289 PROTOBUF_FIELD_OFFSET(::operations_research::LocalSearchStatistics, _impl_.total_num_filtered_neighbors_),
290 PROTOBUF_FIELD_OFFSET(::operations_research::LocalSearchStatistics, _impl_.total_num_accepted_neighbors_),
291 PROTOBUF_FIELD_OFFSET(::operations_research::LocalSearchStatistics, _impl_.local_search_filter_statistics_),
292 2,
293 0,
294 3,
295 4,
296 5,
297 1,
298 0x081, // bitmap
299 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverStatistics, _impl_._has_bits_),
300 8, // hasbit index offset
301 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverStatistics, _impl_.num_branches_),
302 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverStatistics, _impl_.num_failures_),
303 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverStatistics, _impl_.num_solutions_),
304 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverStatistics, _impl_.bytes_used_),
305 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverStatistics, _impl_.duration_seconds_),
306 0,
307 1,
308 2,
309 3,
310 4,
311 0x081, // bitmap
312 PROTOBUF_FIELD_OFFSET(::operations_research::SubSolverStatistics, _impl_._has_bits_),
313 6, // hasbit index offset
314 PROTOBUF_FIELD_OFFSET(::operations_research::SubSolverStatistics, _impl_.num_glop_calls_in_lp_scheduling_),
315 PROTOBUF_FIELD_OFFSET(::operations_research::SubSolverStatistics, _impl_.num_cp_sat_calls_in_lp_scheduling_),
316 PROTOBUF_FIELD_OFFSET(::operations_research::SubSolverStatistics, _impl_.num_min_cost_flow_calls_),
317 0,
318 1,
319 2,
320 0x081, // bitmap
321 PROTOBUF_FIELD_OFFSET(::operations_research::SearchStatistics, _impl_._has_bits_),
322 6, // hasbit index offset
323 PROTOBUF_FIELD_OFFSET(::operations_research::SearchStatistics, _impl_.local_search_statistics_),
324 PROTOBUF_FIELD_OFFSET(::operations_research::SearchStatistics, _impl_.constraint_solver_statistics_),
325 PROTOBUF_FIELD_OFFSET(::operations_research::SearchStatistics, _impl_.sub_solver_statistics_),
326 0,
327 1,
328 2,
329};
330
331static const ::_pbi::MigrationSchema
332 schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
340};
350const char descriptor_table_protodef_ortools_2fconstraint_5fsolver_2fsearch_5fstats_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
351 protodesc_cold) = {
352 "\n,ortools/constraint_solver/search_stats"
353 ".proto\022\023operations_research\"\313\007\n\025LocalSea"
354 "rchStatistics\022e\n\031first_solution_statisti"
355 "cs\030\006 \003(\0132B.operations_research.LocalSear"
356 "chStatistics.FirstSolutionStatistics\022r\n "
357 "local_search_operator_statistics\030\001 \003(\0132H"
358 ".operations_research.LocalSearchStatisti"
359 "cs.LocalSearchOperatorStatistics\022\033\n\023tota"
360 "l_num_neighbors\030\003 \001(\003\022$\n\034total_num_filte"
361 "red_neighbors\030\004 \001(\003\022$\n\034total_num_accepte"
362 "d_neighbors\030\005 \001(\003\022n\n\036local_search_filter"
363 "_statistics\030\002 \003(\0132F.operations_research."
364 "LocalSearchStatistics.LocalSearchFilterS"
365 "tatistics\032E\n\027FirstSolutionStatistics\022\020\n\010"
366 "strategy\030\001 \001(\t\022\030\n\020duration_seconds\030\002 \001(\001"
367 "\032\206\002\n\035LocalSearchOperatorStatistics\022\035\n\025lo"
368 "cal_search_operator\030\001 \001(\t\022\025\n\rnum_neighbo"
369 "rs\030\002 \001(\003\022\036\n\026num_filtered_neighbors\030\003 \001(\003"
370 "\022\036\n\026num_accepted_neighbors\030\004 \001(\003\022\030\n\020dura"
371 "tion_seconds\030\005 \001(\001\022+\n#make_next_neighbor"
372 "_duration_seconds\030\006 \001(\001\022(\n accept_neighb"
373 "or_duration_seconds\030\007 \001(\001\032\255\001\n\033LocalSearc"
374 "hFilterStatistics\022\033\n\023local_search_filter"
375 "\030\001 \001(\t\022\021\n\tnum_calls\030\002 \001(\003\022\023\n\013num_rejects"
376 "\030\003 \001(\003\022\030\n\020duration_seconds\030\004 \001(\001\022\036\n\026num_"
377 "rejects_per_second\030\005 \001(\001\022\017\n\007context\030\006 \001("
378 "\t\"\215\001\n\032ConstraintSolverStatistics\022\024\n\014num_"
379 "branches\030\001 \001(\003\022\024\n\014num_failures\030\002 \001(\003\022\025\n\r"
380 "num_solutions\030\003 \001(\003\022\022\n\nbytes_used\030\004 \001(\003\022"
381 "\030\n\020duration_seconds\030\005 \001(\001\"\212\001\n\023SubSolverS"
382 "tatistics\022\'\n\037num_glop_calls_in_lp_schedu"
383 "ling\030\001 \001(\003\022)\n!num_cp_sat_calls_in_lp_sch"
384 "eduling\030\002 \001(\003\022\037\n\027num_min_cost_flow_calls"
385 "\030\003 \001(\003\"\377\001\n\020SearchStatistics\022K\n\027local_sea"
386 "rch_statistics\030\001 \003(\0132*.operations_resear"
387 "ch.LocalSearchStatistics\022U\n\034constraint_s"
388 "olver_statistics\030\002 \003(\0132/.operations_rese"
389 "arch.ConstraintSolverStatistics\022G\n\025sub_s"
390 "olver_statistics\030\003 \003(\0132(.operations_rese"
391 "arch.SubSolverStatisticsBI\n#com.google.o"
392 "rtools.constraintsolverP\001\252\002\037Google.OrToo"
393 "ls.ConstraintSolverb\006proto3"
394};
396PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_ortools_2fconstraint_5fsolver_2fsearch_5fstats_2eproto = {
397 false,
398 false,
399 1667,
400 descriptor_table_protodef_ortools_2fconstraint_5fsolver_2fsearch_5fstats_2eproto,
401 "ortools/constraint_solver/search_stats.proto",
403 nullptr,
404 0,
405 7,
406 schemas,
411};
412namespace operations_research {
413// ===================================================================
414
416 public:
417 using HasBits =
418 decltype(::std::declval<LocalSearchStatistics_FirstSolutionStatistics>()._impl_._has_bits_);
419 static constexpr ::int32_t kHasBitsOffset =
420 8 * PROTOBUF_FIELD_OFFSET(LocalSearchStatistics_FirstSolutionStatistics, _impl_._has_bits_);
421};
422
424#if defined(PROTOBUF_CUSTOM_VTABLE)
425 : ::google::protobuf::Message(arena, LocalSearchStatistics_FirstSolutionStatistics_class_data_.base()) {
426#else // PROTOBUF_CUSTOM_VTABLE
427 : ::google::protobuf::Message(arena) {
428#endif // PROTOBUF_CUSTOM_VTABLE
429 SharedCtor(arena);
430 // @@protoc_insertion_point(arena_constructor:operations_research.LocalSearchStatistics.FirstSolutionStatistics)
431}
432PROTOBUF_NDEBUG_INLINE LocalSearchStatistics_FirstSolutionStatistics::Impl_::Impl_(
433 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
434 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
435 [[maybe_unused]] const ::operations_research::LocalSearchStatistics_FirstSolutionStatistics& from_msg)
436 : _has_bits_{from._has_bits_},
437 _cached_size_{0},
438 strategy_(arena, from.strategy_) {}
439
441 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
443#if defined(PROTOBUF_CUSTOM_VTABLE)
444 : ::google::protobuf::Message(arena, LocalSearchStatistics_FirstSolutionStatistics_class_data_.base()) {
445#else // PROTOBUF_CUSTOM_VTABLE
446 : ::google::protobuf::Message(arena) {
447#endif // PROTOBUF_CUSTOM_VTABLE
449 (void)_this;
450 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
451 from._internal_metadata_);
452 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
453 _impl_.duration_seconds_ = from._impl_.duration_seconds_;
454
455 // @@protoc_insertion_point(copy_constructor:operations_research.LocalSearchStatistics.FirstSolutionStatistics)
456}
457PROTOBUF_NDEBUG_INLINE LocalSearchStatistics_FirstSolutionStatistics::Impl_::Impl_(
458 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
459 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
460 : _cached_size_{0},
461 strategy_(arena) {}
462
463inline void LocalSearchStatistics_FirstSolutionStatistics::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
464 new (&_impl_) Impl_(internal_visibility(), arena);
465 _impl_.duration_seconds_ = {};
466}
468 // @@protoc_insertion_point(destructor:operations_research.LocalSearchStatistics.FirstSolutionStatistics)
469 SharedDtor(*this);
470}
471inline void LocalSearchStatistics_FirstSolutionStatistics::SharedDtor(MessageLite& self) {
473 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
474 this_.CheckHasBitConsistency();
475 }
476 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
477 ABSL_DCHECK(this_.GetArena() == nullptr);
478 this_._impl_.strategy_.Destroy();
479 this_._impl_.~Impl_();
480}
481
482inline void* PROTOBUF_NONNULL LocalSearchStatistics_FirstSolutionStatistics::PlacementNew_(
483 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
484 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
485 return ::new (mem) LocalSearchStatistics_FirstSolutionStatistics(arena);
486}
487constexpr auto LocalSearchStatistics_FirstSolutionStatistics::InternalNewImpl_() {
488 return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(LocalSearchStatistics_FirstSolutionStatistics),
490}
492 return ::google::protobuf::internal::ClassDataFull{
493 ::google::protobuf::internal::ClassData{
495 &_table_.header,
496 nullptr, // OnDemandRegisterArenaDtor
497 nullptr, // IsInitialized
498 &LocalSearchStatistics_FirstSolutionStatistics::MergeImpl,
499 ::google::protobuf::Message::GetNewImpl<LocalSearchStatistics_FirstSolutionStatistics>(),
500#if defined(PROTOBUF_CUSTOM_VTABLE)
501 &LocalSearchStatistics_FirstSolutionStatistics::SharedDtor,
502 ::google::protobuf::Message::GetClearImpl<LocalSearchStatistics_FirstSolutionStatistics>(), &LocalSearchStatistics_FirstSolutionStatistics::ByteSizeLong,
504#endif // PROTOBUF_CUSTOM_VTABLE
505 PROTOBUF_FIELD_OFFSET(LocalSearchStatistics_FirstSolutionStatistics, _impl_._cached_size_),
506 false,
507 },
508 &LocalSearchStatistics_FirstSolutionStatistics::kDescriptorMethods,
510 nullptr, // tracker
511 };
512}
513
514PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
515 ::google::protobuf::internal::ClassDataFull LocalSearchStatistics_FirstSolutionStatistics_class_data_ =
517
518PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
519LocalSearchStatistics_FirstSolutionStatistics::GetClassData() const {
520 ::google::protobuf::internal::PrefetchToLocalCache(&LocalSearchStatistics_FirstSolutionStatistics_class_data_);
521 ::google::protobuf::internal::PrefetchToLocalCache(LocalSearchStatistics_FirstSolutionStatistics_class_data_.tc_table);
523}
524PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
525const ::_pbi::TcParseTable<1, 2, 0, 82, 2>
526LocalSearchStatistics_FirstSolutionStatistics::_table_ = {
527 {
528 PROTOBUF_FIELD_OFFSET(LocalSearchStatistics_FirstSolutionStatistics, _impl_._has_bits_),
529 0, // no _extensions_
530 2, 8, // max_field_number, fast_idx_mask
531 offsetof(decltype(_table_), field_lookup_table),
532 4294967292, // skipmap
533 offsetof(decltype(_table_), field_entries),
534 2, // num_field_entries
535 0, // num_aux_entries
536 offsetof(decltype(_table_), field_names), // no aux_entries
538 nullptr, // post_loop_handler
539 ::_pbi::TcParser::GenericFallback, // fallback
540 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
541 ::_pbi::TcParser::GetTable<::operations_research::LocalSearchStatistics_FirstSolutionStatistics>(), // to_prefetch
542 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
543 }, {{
544 // double duration_seconds = 2;
545 {::_pbi::TcParser::FastF64S1,
546 {17, 1, 0,
547 PROTOBUF_FIELD_OFFSET(LocalSearchStatistics_FirstSolutionStatistics, _impl_.duration_seconds_)}},
548 // string strategy = 1;
549 {::_pbi::TcParser::FastUS1,
550 {10, 0, 0,
551 PROTOBUF_FIELD_OFFSET(LocalSearchStatistics_FirstSolutionStatistics, _impl_.strategy_)}},
552 }}, {{
553 65535, 65535
554 }}, {{
555 // string strategy = 1;
556 {PROTOBUF_FIELD_OFFSET(LocalSearchStatistics_FirstSolutionStatistics, _impl_.strategy_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
557 // double duration_seconds = 2;
558 {PROTOBUF_FIELD_OFFSET(LocalSearchStatistics_FirstSolutionStatistics, _impl_.duration_seconds_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
559 }},
560 // no aux_entries
561 {{
562 "\101\10\0\0\0\0\0\0"
563 "operations_research.LocalSearchStatistics.FirstSolutionStatistics"
564 "strategy"
565 }},
566};
568// @@protoc_insertion_point(message_clear_start:operations_research.LocalSearchStatistics.FirstSolutionStatistics)
569 ::google::protobuf::internal::TSanWrite(&_impl_);
570 ::uint32_t cached_has_bits = 0;
571 // Prevent compiler warnings about cached_has_bits being unused
572 (void) cached_has_bits;
573
574 cached_has_bits = _impl_._has_bits_[0];
575 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
576 _impl_.strategy_.ClearNonDefaultToEmpty();
577 }
578 _impl_.duration_seconds_ = 0;
579 _impl_._has_bits_.Clear();
580 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
581}
582
583#if defined(PROTOBUF_CUSTOM_VTABLE)
585 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
586 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
588#else // PROTOBUF_CUSTOM_VTABLE
590 ::uint8_t* PROTOBUF_NONNULL target,
591 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
593#endif // PROTOBUF_CUSTOM_VTABLE
594 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
595 this_.CheckHasBitConsistency();
596 }
597 // @@protoc_insertion_point(serialize_to_array_start:operations_research.LocalSearchStatistics.FirstSolutionStatistics)
598 ::uint32_t cached_has_bits = 0;
599 (void)cached_has_bits;
600
601 cached_has_bits = this_._impl_._has_bits_[0];
602 // string strategy = 1;
603 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
604 if (!this_._internal_strategy().empty()) {
605 const ::std::string& _s = this_._internal_strategy();
606 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
607 _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "operations_research.LocalSearchStatistics.FirstSolutionStatistics.strategy");
608 target = stream->WriteStringMaybeAliased(1, _s, target);
609 }
610 }
611
612 // double duration_seconds = 2;
613 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
614 if (::absl::bit_cast<::uint64_t>(this_._internal_duration_seconds()) != 0) {
615 target = stream->EnsureSpace(target);
616 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
617 2, this_._internal_duration_seconds(), target);
618 }
619 }
620
621 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
622 target =
623 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
624 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
625 }
626 // @@protoc_insertion_point(serialize_to_array_end:operations_research.LocalSearchStatistics.FirstSolutionStatistics)
627 return target;
628}
629
630#if defined(PROTOBUF_CUSTOM_VTABLE)
633#else // PROTOBUF_CUSTOM_VTABLE
636#endif // PROTOBUF_CUSTOM_VTABLE
637 // @@protoc_insertion_point(message_byte_size_start:operations_research.LocalSearchStatistics.FirstSolutionStatistics)
638 ::size_t total_size = 0;
639
640 ::uint32_t cached_has_bits = 0;
641 // Prevent compiler warnings about cached_has_bits being unused
642 (void)cached_has_bits;
643
644 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
645 cached_has_bits = this_._impl_._has_bits_[0];
646 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
647 // string strategy = 1;
648 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
649 if (!this_._internal_strategy().empty()) {
650 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
651 this_._internal_strategy());
652 }
653 }
654 // double duration_seconds = 2;
655 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
656 if (::absl::bit_cast<::uint64_t>(this_._internal_duration_seconds()) != 0) {
657 total_size += 9;
658 }
659 }
660 }
661 return this_.MaybeComputeUnknownFieldsSize(total_size,
662 &this_._impl_._cached_size_);
663}
664
665void LocalSearchStatistics_FirstSolutionStatistics::MergeImpl(::google::protobuf::MessageLite& to_msg,
666 const ::google::protobuf::MessageLite& from_msg) {
667 auto* const _this =
669 auto& from = static_cast<const LocalSearchStatistics_FirstSolutionStatistics&>(from_msg);
670 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
671 from.CheckHasBitConsistency();
672 }
673 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.LocalSearchStatistics.FirstSolutionStatistics)
674 ABSL_DCHECK_NE(&from, _this);
675 ::uint32_t cached_has_bits = 0;
676 (void)cached_has_bits;
677
678 cached_has_bits = from._impl_._has_bits_[0];
679 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
680 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
681 if (!from._internal_strategy().empty()) {
682 _this->_internal_set_strategy(from._internal_strategy());
683 } else {
684 if (_this->_impl_.strategy_.IsDefault()) {
685 _this->_internal_set_strategy("");
686 }
687 }
688 }
689 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
690 if (::absl::bit_cast<::uint64_t>(from._internal_duration_seconds()) != 0) {
691 _this->_impl_.duration_seconds_ = from._impl_.duration_seconds_;
692 }
693 }
694 }
695 _this->_impl_._has_bits_[0] |= cached_has_bits;
696 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
697 from._internal_metadata_);
698}
699
701 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.LocalSearchStatistics.FirstSolutionStatistics)
702 if (&from == this) return;
703 Clear();
704 MergeFrom(from);
705}
706
707
708void LocalSearchStatistics_FirstSolutionStatistics::InternalSwap(LocalSearchStatistics_FirstSolutionStatistics* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
709 using ::std::swap;
710 auto* arena = GetArena();
711 ABSL_DCHECK_EQ(arena, other->GetArena());
712 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
713 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
714 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.strategy_, &other->_impl_.strategy_, arena);
715 swap(_impl_.duration_seconds_, other->_impl_.duration_seconds_);
716}
717
718::google::protobuf::Metadata LocalSearchStatistics_FirstSolutionStatistics::GetMetadata() const {
719 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
720}
721// ===================================================================
722
724 public:
725 using HasBits =
726 decltype(::std::declval<LocalSearchStatistics_LocalSearchOperatorStatistics>()._impl_._has_bits_);
727 static constexpr ::int32_t kHasBitsOffset =
728 8 * PROTOBUF_FIELD_OFFSET(LocalSearchStatistics_LocalSearchOperatorStatistics, _impl_._has_bits_);
730
732#if defined(PROTOBUF_CUSTOM_VTABLE)
733 : ::google::protobuf::Message(arena, LocalSearchStatistics_LocalSearchOperatorStatistics_class_data_.base()) {
734#else // PROTOBUF_CUSTOM_VTABLE
735 : ::google::protobuf::Message(arena) {
736#endif // PROTOBUF_CUSTOM_VTABLE
737 SharedCtor(arena);
738 // @@protoc_insertion_point(arena_constructor:operations_research.LocalSearchStatistics.LocalSearchOperatorStatistics)
739}
740PROTOBUF_NDEBUG_INLINE LocalSearchStatistics_LocalSearchOperatorStatistics::Impl_::Impl_(
741 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
742 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
743 [[maybe_unused]] const ::operations_research::LocalSearchStatistics_LocalSearchOperatorStatistics& from_msg)
744 : _has_bits_{from._has_bits_},
745 _cached_size_{0},
746 local_search_operator_(arena, from.local_search_operator_) {}
747
749 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
751#if defined(PROTOBUF_CUSTOM_VTABLE)
752 : ::google::protobuf::Message(arena, LocalSearchStatistics_LocalSearchOperatorStatistics_class_data_.base()) {
753#else // PROTOBUF_CUSTOM_VTABLE
754 : ::google::protobuf::Message(arena) {
755#endif // PROTOBUF_CUSTOM_VTABLE
757 (void)_this;
758 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
759 from._internal_metadata_);
760 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
761 ::memcpy(reinterpret_cast<char*>(&_impl_) +
762 offsetof(Impl_, num_neighbors_),
763 reinterpret_cast<const char*>(&from._impl_) +
764 offsetof(Impl_, num_neighbors_),
765 offsetof(Impl_, accept_neighbor_duration_seconds_) -
766 offsetof(Impl_, num_neighbors_) +
767 sizeof(Impl_::accept_neighbor_duration_seconds_));
768
769 // @@protoc_insertion_point(copy_constructor:operations_research.LocalSearchStatistics.LocalSearchOperatorStatistics)
770}
771PROTOBUF_NDEBUG_INLINE LocalSearchStatistics_LocalSearchOperatorStatistics::Impl_::Impl_(
772 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
773 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
774 : _cached_size_{0},
775 local_search_operator_(arena) {}
776
777inline void LocalSearchStatistics_LocalSearchOperatorStatistics::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
778 new (&_impl_) Impl_(internal_visibility(), arena);
779 ::memset(reinterpret_cast<char*>(&_impl_) +
780 offsetof(Impl_, num_neighbors_),
781 0,
782 offsetof(Impl_, accept_neighbor_duration_seconds_) -
783 offsetof(Impl_, num_neighbors_) +
784 sizeof(Impl_::accept_neighbor_duration_seconds_));
785}
787 // @@protoc_insertion_point(destructor:operations_research.LocalSearchStatistics.LocalSearchOperatorStatistics)
788 SharedDtor(*this);
789}
790inline void LocalSearchStatistics_LocalSearchOperatorStatistics::SharedDtor(MessageLite& self) {
792 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
793 this_.CheckHasBitConsistency();
794 }
795 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
796 ABSL_DCHECK(this_.GetArena() == nullptr);
797 this_._impl_.local_search_operator_.Destroy();
798 this_._impl_.~Impl_();
799}
800
801inline void* PROTOBUF_NONNULL LocalSearchStatistics_LocalSearchOperatorStatistics::PlacementNew_(
802 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
803 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
805}
806constexpr auto LocalSearchStatistics_LocalSearchOperatorStatistics::InternalNewImpl_() {
807 return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(LocalSearchStatistics_LocalSearchOperatorStatistics),
809}
811 return ::google::protobuf::internal::ClassDataFull{
812 ::google::protobuf::internal::ClassData{
814 &_table_.header,
815 nullptr, // OnDemandRegisterArenaDtor
816 nullptr, // IsInitialized
817 &LocalSearchStatistics_LocalSearchOperatorStatistics::MergeImpl,
818 ::google::protobuf::Message::GetNewImpl<LocalSearchStatistics_LocalSearchOperatorStatistics>(),
819#if defined(PROTOBUF_CUSTOM_VTABLE)
820 &LocalSearchStatistics_LocalSearchOperatorStatistics::SharedDtor,
821 ::google::protobuf::Message::GetClearImpl<LocalSearchStatistics_LocalSearchOperatorStatistics>(), &LocalSearchStatistics_LocalSearchOperatorStatistics::ByteSizeLong,
823#endif // PROTOBUF_CUSTOM_VTABLE
824 PROTOBUF_FIELD_OFFSET(LocalSearchStatistics_LocalSearchOperatorStatistics, _impl_._cached_size_),
825 false,
826 },
827 &LocalSearchStatistics_LocalSearchOperatorStatistics::kDescriptorMethods,
829 nullptr, // tracker
830 };
831}
832
833PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
834 ::google::protobuf::internal::ClassDataFull LocalSearchStatistics_LocalSearchOperatorStatistics_class_data_ =
837PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
838LocalSearchStatistics_LocalSearchOperatorStatistics::GetClassData() const {
839 ::google::protobuf::internal::PrefetchToLocalCache(&LocalSearchStatistics_LocalSearchOperatorStatistics_class_data_);
840 ::google::protobuf::internal::PrefetchToLocalCache(LocalSearchStatistics_LocalSearchOperatorStatistics_class_data_.tc_table);
842}
843PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
844const ::_pbi::TcParseTable<3, 7, 0, 101, 2>
845LocalSearchStatistics_LocalSearchOperatorStatistics::_table_ = {
846 {
847 PROTOBUF_FIELD_OFFSET(LocalSearchStatistics_LocalSearchOperatorStatistics, _impl_._has_bits_),
848 0, // no _extensions_
849 7, 56, // max_field_number, fast_idx_mask
850 offsetof(decltype(_table_), field_lookup_table),
851 4294967168, // skipmap
852 offsetof(decltype(_table_), field_entries),
853 7, // num_field_entries
854 0, // num_aux_entries
855 offsetof(decltype(_table_), field_names), // no aux_entries
857 nullptr, // post_loop_handler
858 ::_pbi::TcParser::GenericFallback, // fallback
859 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
860 ::_pbi::TcParser::GetTable<::operations_research::LocalSearchStatistics_LocalSearchOperatorStatistics>(), // to_prefetch
861 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
862 }, {{
863 {::_pbi::TcParser::MiniParse, {}},
864 // string local_search_operator = 1;
865 {::_pbi::TcParser::FastUS1,
866 {10, 0, 0,
867 PROTOBUF_FIELD_OFFSET(LocalSearchStatistics_LocalSearchOperatorStatistics, _impl_.local_search_operator_)}},
868 // int64 num_neighbors = 2;
869 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(LocalSearchStatistics_LocalSearchOperatorStatistics, _impl_.num_neighbors_), 1>(),
870 {16, 1, 0,
871 PROTOBUF_FIELD_OFFSET(LocalSearchStatistics_LocalSearchOperatorStatistics, _impl_.num_neighbors_)}},
872 // int64 num_filtered_neighbors = 3;
873 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(LocalSearchStatistics_LocalSearchOperatorStatistics, _impl_.num_filtered_neighbors_), 2>(),
874 {24, 2, 0,
875 PROTOBUF_FIELD_OFFSET(LocalSearchStatistics_LocalSearchOperatorStatistics, _impl_.num_filtered_neighbors_)}},
876 // int64 num_accepted_neighbors = 4;
877 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(LocalSearchStatistics_LocalSearchOperatorStatistics, _impl_.num_accepted_neighbors_), 3>(),
878 {32, 3, 0,
879 PROTOBUF_FIELD_OFFSET(LocalSearchStatistics_LocalSearchOperatorStatistics, _impl_.num_accepted_neighbors_)}},
880 // double duration_seconds = 5;
881 {::_pbi::TcParser::FastF64S1,
882 {41, 4, 0,
883 PROTOBUF_FIELD_OFFSET(LocalSearchStatistics_LocalSearchOperatorStatistics, _impl_.duration_seconds_)}},
884 // double make_next_neighbor_duration_seconds = 6;
885 {::_pbi::TcParser::FastF64S1,
886 {49, 5, 0,
887 PROTOBUF_FIELD_OFFSET(LocalSearchStatistics_LocalSearchOperatorStatistics, _impl_.make_next_neighbor_duration_seconds_)}},
888 // double accept_neighbor_duration_seconds = 7;
889 {::_pbi::TcParser::FastF64S1,
890 {57, 6, 0,
891 PROTOBUF_FIELD_OFFSET(LocalSearchStatistics_LocalSearchOperatorStatistics, _impl_.accept_neighbor_duration_seconds_)}},
892 }}, {{
893 65535, 65535
894 }}, {{
895 // string local_search_operator = 1;
896 {PROTOBUF_FIELD_OFFSET(LocalSearchStatistics_LocalSearchOperatorStatistics, _impl_.local_search_operator_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
897 // int64 num_neighbors = 2;
898 {PROTOBUF_FIELD_OFFSET(LocalSearchStatistics_LocalSearchOperatorStatistics, _impl_.num_neighbors_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
899 // int64 num_filtered_neighbors = 3;
900 {PROTOBUF_FIELD_OFFSET(LocalSearchStatistics_LocalSearchOperatorStatistics, _impl_.num_filtered_neighbors_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
901 // int64 num_accepted_neighbors = 4;
902 {PROTOBUF_FIELD_OFFSET(LocalSearchStatistics_LocalSearchOperatorStatistics, _impl_.num_accepted_neighbors_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
903 // double duration_seconds = 5;
904 {PROTOBUF_FIELD_OFFSET(LocalSearchStatistics_LocalSearchOperatorStatistics, _impl_.duration_seconds_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
905 // double make_next_neighbor_duration_seconds = 6;
906 {PROTOBUF_FIELD_OFFSET(LocalSearchStatistics_LocalSearchOperatorStatistics, _impl_.make_next_neighbor_duration_seconds_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
907 // double accept_neighbor_duration_seconds = 7;
908 {PROTOBUF_FIELD_OFFSET(LocalSearchStatistics_LocalSearchOperatorStatistics, _impl_.accept_neighbor_duration_seconds_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
909 }},
910 // no aux_entries
911 {{
912 "\107\25\0\0\0\0\0\0"
913 "operations_research.LocalSearchStatistics.LocalSearchOperatorStatistics"
914 "local_search_operator"
915 }},
916};
918// @@protoc_insertion_point(message_clear_start:operations_research.LocalSearchStatistics.LocalSearchOperatorStatistics)
919 ::google::protobuf::internal::TSanWrite(&_impl_);
920 ::uint32_t cached_has_bits = 0;
921 // Prevent compiler warnings about cached_has_bits being unused
922 (void) cached_has_bits;
923
924 cached_has_bits = _impl_._has_bits_[0];
925 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
926 _impl_.local_search_operator_.ClearNonDefaultToEmpty();
927 }
928 if (BatchCheckHasBit(cached_has_bits, 0x0000007eU)) {
929 ::memset(&_impl_.num_neighbors_, 0, static_cast<::size_t>(
930 reinterpret_cast<char*>(&_impl_.accept_neighbor_duration_seconds_) -
931 reinterpret_cast<char*>(&_impl_.num_neighbors_)) + sizeof(_impl_.accept_neighbor_duration_seconds_));
932 }
933 _impl_._has_bits_.Clear();
934 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
935}
936
937#if defined(PROTOBUF_CUSTOM_VTABLE)
939 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
940 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
942#else // PROTOBUF_CUSTOM_VTABLE
944 ::uint8_t* PROTOBUF_NONNULL target,
945 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
947#endif // PROTOBUF_CUSTOM_VTABLE
948 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
949 this_.CheckHasBitConsistency();
950 }
951 // @@protoc_insertion_point(serialize_to_array_start:operations_research.LocalSearchStatistics.LocalSearchOperatorStatistics)
952 ::uint32_t cached_has_bits = 0;
953 (void)cached_has_bits;
954
955 cached_has_bits = this_._impl_._has_bits_[0];
956 // string local_search_operator = 1;
957 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
958 if (!this_._internal_local_search_operator().empty()) {
959 const ::std::string& _s = this_._internal_local_search_operator();
960 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
961 _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "operations_research.LocalSearchStatistics.LocalSearchOperatorStatistics.local_search_operator");
962 target = stream->WriteStringMaybeAliased(1, _s, target);
963 }
964 }
965
966 // int64 num_neighbors = 2;
967 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
968 if (this_._internal_num_neighbors() != 0) {
969 target =
970 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
971 stream, this_._internal_num_neighbors(), target);
972 }
973 }
974
975 // int64 num_filtered_neighbors = 3;
976 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
977 if (this_._internal_num_filtered_neighbors() != 0) {
978 target =
979 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>(
980 stream, this_._internal_num_filtered_neighbors(), target);
981 }
982 }
983
984 // int64 num_accepted_neighbors = 4;
985 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
986 if (this_._internal_num_accepted_neighbors() != 0) {
987 target =
988 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<4>(
989 stream, this_._internal_num_accepted_neighbors(), target);
990 }
991 }
992
993 // double duration_seconds = 5;
994 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
995 if (::absl::bit_cast<::uint64_t>(this_._internal_duration_seconds()) != 0) {
996 target = stream->EnsureSpace(target);
997 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
998 5, this_._internal_duration_seconds(), target);
999 }
1000 }
1001
1002 // double make_next_neighbor_duration_seconds = 6;
1003 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
1004 if (::absl::bit_cast<::uint64_t>(this_._internal_make_next_neighbor_duration_seconds()) != 0) {
1005 target = stream->EnsureSpace(target);
1006 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
1007 6, this_._internal_make_next_neighbor_duration_seconds(), target);
1008 }
1009 }
1010
1011 // double accept_neighbor_duration_seconds = 7;
1012 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
1013 if (::absl::bit_cast<::uint64_t>(this_._internal_accept_neighbor_duration_seconds()) != 0) {
1014 target = stream->EnsureSpace(target);
1015 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
1016 7, this_._internal_accept_neighbor_duration_seconds(), target);
1017 }
1018 }
1019
1020 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1021 target =
1022 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1023 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1024 }
1025 // @@protoc_insertion_point(serialize_to_array_end:operations_research.LocalSearchStatistics.LocalSearchOperatorStatistics)
1026 return target;
1027}
1028
1029#if defined(PROTOBUF_CUSTOM_VTABLE)
1032#else // PROTOBUF_CUSTOM_VTABLE
1035#endif // PROTOBUF_CUSTOM_VTABLE
1036 // @@protoc_insertion_point(message_byte_size_start:operations_research.LocalSearchStatistics.LocalSearchOperatorStatistics)
1037 ::size_t total_size = 0;
1038
1039 ::uint32_t cached_has_bits = 0;
1040 // Prevent compiler warnings about cached_has_bits being unused
1041 (void)cached_has_bits;
1042
1043 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1044 cached_has_bits = this_._impl_._has_bits_[0];
1045 if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) {
1046 // string local_search_operator = 1;
1047 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1048 if (!this_._internal_local_search_operator().empty()) {
1049 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
1050 this_._internal_local_search_operator());
1051 }
1052 }
1053 // int64 num_neighbors = 2;
1054 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1055 if (this_._internal_num_neighbors() != 0) {
1056 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
1057 this_._internal_num_neighbors());
1058 }
1059 }
1060 // int64 num_filtered_neighbors = 3;
1061 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1062 if (this_._internal_num_filtered_neighbors() != 0) {
1063 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
1064 this_._internal_num_filtered_neighbors());
1065 }
1066 }
1067 // int64 num_accepted_neighbors = 4;
1068 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1069 if (this_._internal_num_accepted_neighbors() != 0) {
1070 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
1071 this_._internal_num_accepted_neighbors());
1072 }
1073 }
1074 // double duration_seconds = 5;
1075 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
1076 if (::absl::bit_cast<::uint64_t>(this_._internal_duration_seconds()) != 0) {
1077 total_size += 9;
1078 }
1079 }
1080 // double make_next_neighbor_duration_seconds = 6;
1081 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
1082 if (::absl::bit_cast<::uint64_t>(this_._internal_make_next_neighbor_duration_seconds()) != 0) {
1083 total_size += 9;
1084 }
1085 }
1086 // double accept_neighbor_duration_seconds = 7;
1087 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
1088 if (::absl::bit_cast<::uint64_t>(this_._internal_accept_neighbor_duration_seconds()) != 0) {
1089 total_size += 9;
1090 }
1091 }
1092 }
1093 return this_.MaybeComputeUnknownFieldsSize(total_size,
1094 &this_._impl_._cached_size_);
1095}
1096
1097void LocalSearchStatistics_LocalSearchOperatorStatistics::MergeImpl(::google::protobuf::MessageLite& to_msg,
1098 const ::google::protobuf::MessageLite& from_msg) {
1099 auto* const _this =
1101 auto& from = static_cast<const LocalSearchStatistics_LocalSearchOperatorStatistics&>(from_msg);
1102 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1103 from.CheckHasBitConsistency();
1104 }
1105 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.LocalSearchStatistics.LocalSearchOperatorStatistics)
1106 ABSL_DCHECK_NE(&from, _this);
1107 ::uint32_t cached_has_bits = 0;
1108 (void)cached_has_bits;
1109
1110 cached_has_bits = from._impl_._has_bits_[0];
1111 if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) {
1112 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1113 if (!from._internal_local_search_operator().empty()) {
1114 _this->_internal_set_local_search_operator(from._internal_local_search_operator());
1115 } else {
1116 if (_this->_impl_.local_search_operator_.IsDefault()) {
1117 _this->_internal_set_local_search_operator("");
1118 }
1119 }
1120 }
1121 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1122 if (from._internal_num_neighbors() != 0) {
1123 _this->_impl_.num_neighbors_ = from._impl_.num_neighbors_;
1124 }
1125 }
1126 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1127 if (from._internal_num_filtered_neighbors() != 0) {
1128 _this->_impl_.num_filtered_neighbors_ = from._impl_.num_filtered_neighbors_;
1129 }
1130 }
1131 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1132 if (from._internal_num_accepted_neighbors() != 0) {
1133 _this->_impl_.num_accepted_neighbors_ = from._impl_.num_accepted_neighbors_;
1134 }
1135 }
1136 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
1137 if (::absl::bit_cast<::uint64_t>(from._internal_duration_seconds()) != 0) {
1138 _this->_impl_.duration_seconds_ = from._impl_.duration_seconds_;
1139 }
1140 }
1141 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
1142 if (::absl::bit_cast<::uint64_t>(from._internal_make_next_neighbor_duration_seconds()) != 0) {
1143 _this->_impl_.make_next_neighbor_duration_seconds_ = from._impl_.make_next_neighbor_duration_seconds_;
1144 }
1145 }
1146 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
1147 if (::absl::bit_cast<::uint64_t>(from._internal_accept_neighbor_duration_seconds()) != 0) {
1148 _this->_impl_.accept_neighbor_duration_seconds_ = from._impl_.accept_neighbor_duration_seconds_;
1149 }
1150 }
1151 }
1152 _this->_impl_._has_bits_[0] |= cached_has_bits;
1153 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1154 from._internal_metadata_);
1155}
1156
1158 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.LocalSearchStatistics.LocalSearchOperatorStatistics)
1159 if (&from == this) return;
1160 Clear();
1161 MergeFrom(from);
1162}
1163
1164
1165void LocalSearchStatistics_LocalSearchOperatorStatistics::InternalSwap(LocalSearchStatistics_LocalSearchOperatorStatistics* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1166 using ::std::swap;
1167 auto* arena = GetArena();
1168 ABSL_DCHECK_EQ(arena, other->GetArena());
1169 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1170 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1171 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.local_search_operator_, &other->_impl_.local_search_operator_, arena);
1172 ::google::protobuf::internal::memswap<
1173 PROTOBUF_FIELD_OFFSET(LocalSearchStatistics_LocalSearchOperatorStatistics, _impl_.accept_neighbor_duration_seconds_)
1174 + sizeof(LocalSearchStatistics_LocalSearchOperatorStatistics::_impl_.accept_neighbor_duration_seconds_)
1175 - PROTOBUF_FIELD_OFFSET(LocalSearchStatistics_LocalSearchOperatorStatistics, _impl_.num_neighbors_)>(
1176 reinterpret_cast<char*>(&_impl_.num_neighbors_),
1177 reinterpret_cast<char*>(&other->_impl_.num_neighbors_));
1178}
1179
1180::google::protobuf::Metadata LocalSearchStatistics_LocalSearchOperatorStatistics::GetMetadata() const {
1181 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1183// ===================================================================
1184
1186 public:
1187 using HasBits =
1188 decltype(::std::declval<LocalSearchStatistics_LocalSearchFilterStatistics>()._impl_._has_bits_);
1189 static constexpr ::int32_t kHasBitsOffset =
1190 8 * PROTOBUF_FIELD_OFFSET(LocalSearchStatistics_LocalSearchFilterStatistics, _impl_._has_bits_);
1191};
1194#if defined(PROTOBUF_CUSTOM_VTABLE)
1195 : ::google::protobuf::Message(arena, LocalSearchStatistics_LocalSearchFilterStatistics_class_data_.base()) {
1196#else // PROTOBUF_CUSTOM_VTABLE
1197 : ::google::protobuf::Message(arena) {
1198#endif // PROTOBUF_CUSTOM_VTABLE
1199 SharedCtor(arena);
1200 // @@protoc_insertion_point(arena_constructor:operations_research.LocalSearchStatistics.LocalSearchFilterStatistics)
1201}
1202PROTOBUF_NDEBUG_INLINE LocalSearchStatistics_LocalSearchFilterStatistics::Impl_::Impl_(
1203 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1204 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
1205 [[maybe_unused]] const ::operations_research::LocalSearchStatistics_LocalSearchFilterStatistics& from_msg)
1206 : _has_bits_{from._has_bits_},
1207 _cached_size_{0},
1208 local_search_filter_(arena, from.local_search_filter_),
1209 context_(arena, from.context_) {}
1210
1212 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1214#if defined(PROTOBUF_CUSTOM_VTABLE)
1215 : ::google::protobuf::Message(arena, LocalSearchStatistics_LocalSearchFilterStatistics_class_data_.base()) {
1216#else // PROTOBUF_CUSTOM_VTABLE
1217 : ::google::protobuf::Message(arena) {
1218#endif // PROTOBUF_CUSTOM_VTABLE
1220 (void)_this;
1221 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1222 from._internal_metadata_);
1223 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1224 ::memcpy(reinterpret_cast<char*>(&_impl_) +
1225 offsetof(Impl_, num_calls_),
1226 reinterpret_cast<const char*>(&from._impl_) +
1227 offsetof(Impl_, num_calls_),
1228 offsetof(Impl_, num_rejects_per_second_) -
1229 offsetof(Impl_, num_calls_) +
1230 sizeof(Impl_::num_rejects_per_second_));
1231
1232 // @@protoc_insertion_point(copy_constructor:operations_research.LocalSearchStatistics.LocalSearchFilterStatistics)
1233}
1234PROTOBUF_NDEBUG_INLINE LocalSearchStatistics_LocalSearchFilterStatistics::Impl_::Impl_(
1235 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1236 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1237 : _cached_size_{0},
1238 local_search_filter_(arena),
1239 context_(arena) {}
1240
1241inline void LocalSearchStatistics_LocalSearchFilterStatistics::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1242 new (&_impl_) Impl_(internal_visibility(), arena);
1243 ::memset(reinterpret_cast<char*>(&_impl_) +
1244 offsetof(Impl_, num_calls_),
1245 0,
1246 offsetof(Impl_, num_rejects_per_second_) -
1247 offsetof(Impl_, num_calls_) +
1248 sizeof(Impl_::num_rejects_per_second_));
1249}
1251 // @@protoc_insertion_point(destructor:operations_research.LocalSearchStatistics.LocalSearchFilterStatistics)
1252 SharedDtor(*this);
1254inline void LocalSearchStatistics_LocalSearchFilterStatistics::SharedDtor(MessageLite& self) {
1256 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1257 this_.CheckHasBitConsistency();
1258 }
1259 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1260 ABSL_DCHECK(this_.GetArena() == nullptr);
1261 this_._impl_.local_search_filter_.Destroy();
1262 this_._impl_.context_.Destroy();
1263 this_._impl_.~Impl_();
1264}
1265
1266inline void* PROTOBUF_NONNULL LocalSearchStatistics_LocalSearchFilterStatistics::PlacementNew_(
1267 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1268 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1269 return ::new (mem) LocalSearchStatistics_LocalSearchFilterStatistics(arena);
1270}
1271constexpr auto LocalSearchStatistics_LocalSearchFilterStatistics::InternalNewImpl_() {
1272 return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(LocalSearchStatistics_LocalSearchFilterStatistics),
1273 alignof(LocalSearchStatistics_LocalSearchFilterStatistics));
1274}
1276 return ::google::protobuf::internal::ClassDataFull{
1277 ::google::protobuf::internal::ClassData{
1279 &_table_.header,
1280 nullptr, // OnDemandRegisterArenaDtor
1281 nullptr, // IsInitialized
1282 &LocalSearchStatistics_LocalSearchFilterStatistics::MergeImpl,
1283 ::google::protobuf::Message::GetNewImpl<LocalSearchStatistics_LocalSearchFilterStatistics>(),
1284#if defined(PROTOBUF_CUSTOM_VTABLE)
1285 &LocalSearchStatistics_LocalSearchFilterStatistics::SharedDtor,
1286 ::google::protobuf::Message::GetClearImpl<LocalSearchStatistics_LocalSearchFilterStatistics>(), &LocalSearchStatistics_LocalSearchFilterStatistics::ByteSizeLong,
1288#endif // PROTOBUF_CUSTOM_VTABLE
1289 PROTOBUF_FIELD_OFFSET(LocalSearchStatistics_LocalSearchFilterStatistics, _impl_._cached_size_),
1290 false,
1291 },
1292 &LocalSearchStatistics_LocalSearchFilterStatistics::kDescriptorMethods,
1294 nullptr, // tracker
1295 };
1296}
1297
1298PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1299 ::google::protobuf::internal::ClassDataFull LocalSearchStatistics_LocalSearchFilterStatistics_class_data_ =
1301
1302PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1303LocalSearchStatistics_LocalSearchFilterStatistics::GetClassData() const {
1304 ::google::protobuf::internal::PrefetchToLocalCache(&LocalSearchStatistics_LocalSearchFilterStatistics_class_data_);
1305 ::google::protobuf::internal::PrefetchToLocalCache(LocalSearchStatistics_LocalSearchFilterStatistics_class_data_.tc_table);
1307}
1308PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1309const ::_pbi::TcParseTable<3, 6, 0, 104, 2>
1310LocalSearchStatistics_LocalSearchFilterStatistics::_table_ = {
1311 {
1312 PROTOBUF_FIELD_OFFSET(LocalSearchStatistics_LocalSearchFilterStatistics, _impl_._has_bits_),
1313 0, // no _extensions_
1314 6, 56, // max_field_number, fast_idx_mask
1315 offsetof(decltype(_table_), field_lookup_table),
1316 4294967232, // skipmap
1317 offsetof(decltype(_table_), field_entries),
1318 6, // num_field_entries
1319 0, // num_aux_entries
1320 offsetof(decltype(_table_), field_names), // no aux_entries
1322 nullptr, // post_loop_handler
1323 ::_pbi::TcParser::GenericFallback, // fallback
1324 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1325 ::_pbi::TcParser::GetTable<::operations_research::LocalSearchStatistics_LocalSearchFilterStatistics>(), // to_prefetch
1326 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
1327 }, {{
1328 {::_pbi::TcParser::MiniParse, {}},
1329 // string local_search_filter = 1;
1330 {::_pbi::TcParser::FastUS1,
1331 {10, 0, 0,
1332 PROTOBUF_FIELD_OFFSET(LocalSearchStatistics_LocalSearchFilterStatistics, _impl_.local_search_filter_)}},
1333 // int64 num_calls = 2;
1334 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(LocalSearchStatistics_LocalSearchFilterStatistics, _impl_.num_calls_), 2>(),
1335 {16, 2, 0,
1336 PROTOBUF_FIELD_OFFSET(LocalSearchStatistics_LocalSearchFilterStatistics, _impl_.num_calls_)}},
1337 // int64 num_rejects = 3;
1338 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(LocalSearchStatistics_LocalSearchFilterStatistics, _impl_.num_rejects_), 3>(),
1339 {24, 3, 0,
1340 PROTOBUF_FIELD_OFFSET(LocalSearchStatistics_LocalSearchFilterStatistics, _impl_.num_rejects_)}},
1341 // double duration_seconds = 4;
1342 {::_pbi::TcParser::FastF64S1,
1343 {33, 4, 0,
1344 PROTOBUF_FIELD_OFFSET(LocalSearchStatistics_LocalSearchFilterStatistics, _impl_.duration_seconds_)}},
1345 // double num_rejects_per_second = 5;
1346 {::_pbi::TcParser::FastF64S1,
1347 {41, 5, 0,
1348 PROTOBUF_FIELD_OFFSET(LocalSearchStatistics_LocalSearchFilterStatistics, _impl_.num_rejects_per_second_)}},
1349 // string context = 6;
1350 {::_pbi::TcParser::FastUS1,
1351 {50, 1, 0,
1352 PROTOBUF_FIELD_OFFSET(LocalSearchStatistics_LocalSearchFilterStatistics, _impl_.context_)}},
1353 {::_pbi::TcParser::MiniParse, {}},
1354 }}, {{
1355 65535, 65535
1356 }}, {{
1357 // string local_search_filter = 1;
1358 {PROTOBUF_FIELD_OFFSET(LocalSearchStatistics_LocalSearchFilterStatistics, _impl_.local_search_filter_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
1359 // int64 num_calls = 2;
1360 {PROTOBUF_FIELD_OFFSET(LocalSearchStatistics_LocalSearchFilterStatistics, _impl_.num_calls_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
1361 // int64 num_rejects = 3;
1362 {PROTOBUF_FIELD_OFFSET(LocalSearchStatistics_LocalSearchFilterStatistics, _impl_.num_rejects_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
1363 // double duration_seconds = 4;
1364 {PROTOBUF_FIELD_OFFSET(LocalSearchStatistics_LocalSearchFilterStatistics, _impl_.duration_seconds_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
1365 // double num_rejects_per_second = 5;
1366 {PROTOBUF_FIELD_OFFSET(LocalSearchStatistics_LocalSearchFilterStatistics, _impl_.num_rejects_per_second_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
1367 // string context = 6;
1368 {PROTOBUF_FIELD_OFFSET(LocalSearchStatistics_LocalSearchFilterStatistics, _impl_.context_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
1369 }},
1370 // no aux_entries
1371 {{
1372 "\105\23\0\0\0\0\7\0"
1373 "operations_research.LocalSearchStatistics.LocalSearchFilterStatistics"
1374 "local_search_filter"
1375 "context"
1376 }},
1377};
1379// @@protoc_insertion_point(message_clear_start:operations_research.LocalSearchStatistics.LocalSearchFilterStatistics)
1380 ::google::protobuf::internal::TSanWrite(&_impl_);
1381 ::uint32_t cached_has_bits = 0;
1382 // Prevent compiler warnings about cached_has_bits being unused
1383 (void) cached_has_bits;
1384
1385 cached_has_bits = _impl_._has_bits_[0];
1386 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
1387 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1388 _impl_.local_search_filter_.ClearNonDefaultToEmpty();
1389 }
1390 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1391 _impl_.context_.ClearNonDefaultToEmpty();
1392 }
1393 }
1394 if (BatchCheckHasBit(cached_has_bits, 0x0000003cU)) {
1395 ::memset(&_impl_.num_calls_, 0, static_cast<::size_t>(
1396 reinterpret_cast<char*>(&_impl_.num_rejects_per_second_) -
1397 reinterpret_cast<char*>(&_impl_.num_calls_)) + sizeof(_impl_.num_rejects_per_second_));
1398 }
1399 _impl_._has_bits_.Clear();
1400 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1401}
1402
1403#if defined(PROTOBUF_CUSTOM_VTABLE)
1405 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1406 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1407 const LocalSearchStatistics_LocalSearchFilterStatistics& this_ = static_cast<const LocalSearchStatistics_LocalSearchFilterStatistics&>(base);
1408#else // PROTOBUF_CUSTOM_VTABLE
1410 ::uint8_t* PROTOBUF_NONNULL target,
1411 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1413#endif // PROTOBUF_CUSTOM_VTABLE
1414 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1415 this_.CheckHasBitConsistency();
1416 }
1417 // @@protoc_insertion_point(serialize_to_array_start:operations_research.LocalSearchStatistics.LocalSearchFilterStatistics)
1418 ::uint32_t cached_has_bits = 0;
1419 (void)cached_has_bits;
1420
1421 cached_has_bits = this_._impl_._has_bits_[0];
1422 // string local_search_filter = 1;
1423 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1424 if (!this_._internal_local_search_filter().empty()) {
1425 const ::std::string& _s = this_._internal_local_search_filter();
1426 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1427 _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "operations_research.LocalSearchStatistics.LocalSearchFilterStatistics.local_search_filter");
1428 target = stream->WriteStringMaybeAliased(1, _s, target);
1429 }
1430 }
1431
1432 // int64 num_calls = 2;
1433 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1434 if (this_._internal_num_calls() != 0) {
1435 target =
1436 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
1437 stream, this_._internal_num_calls(), target);
1438 }
1439 }
1440
1441 // int64 num_rejects = 3;
1442 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1443 if (this_._internal_num_rejects() != 0) {
1444 target =
1445 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>(
1446 stream, this_._internal_num_rejects(), target);
1447 }
1448 }
1449
1450 // double duration_seconds = 4;
1451 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
1452 if (::absl::bit_cast<::uint64_t>(this_._internal_duration_seconds()) != 0) {
1453 target = stream->EnsureSpace(target);
1454 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
1455 4, this_._internal_duration_seconds(), target);
1456 }
1457 }
1458
1459 // double num_rejects_per_second = 5;
1460 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
1461 if (::absl::bit_cast<::uint64_t>(this_._internal_num_rejects_per_second()) != 0) {
1462 target = stream->EnsureSpace(target);
1463 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
1464 5, this_._internal_num_rejects_per_second(), target);
1465 }
1466 }
1467
1468 // string context = 6;
1469 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1470 if (!this_._internal_context().empty()) {
1471 const ::std::string& _s = this_._internal_context();
1472 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1473 _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "operations_research.LocalSearchStatistics.LocalSearchFilterStatistics.context");
1474 target = stream->WriteStringMaybeAliased(6, _s, target);
1475 }
1476 }
1477
1478 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1479 target =
1480 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1481 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1482 }
1483 // @@protoc_insertion_point(serialize_to_array_end:operations_research.LocalSearchStatistics.LocalSearchFilterStatistics)
1484 return target;
1485}
1486
1487#if defined(PROTOBUF_CUSTOM_VTABLE)
1489 const LocalSearchStatistics_LocalSearchFilterStatistics& this_ = static_cast<const LocalSearchStatistics_LocalSearchFilterStatistics&>(base);
1490#else // PROTOBUF_CUSTOM_VTABLE
1492 const LocalSearchStatistics_LocalSearchFilterStatistics& this_ = *this;
1493#endif // PROTOBUF_CUSTOM_VTABLE
1494 // @@protoc_insertion_point(message_byte_size_start:operations_research.LocalSearchStatistics.LocalSearchFilterStatistics)
1495 ::size_t total_size = 0;
1496
1497 ::uint32_t cached_has_bits = 0;
1498 // Prevent compiler warnings about cached_has_bits being unused
1499 (void)cached_has_bits;
1500
1501 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1502 cached_has_bits = this_._impl_._has_bits_[0];
1503 if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) {
1504 // string local_search_filter = 1;
1505 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1506 if (!this_._internal_local_search_filter().empty()) {
1507 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
1508 this_._internal_local_search_filter());
1509 }
1510 }
1511 // string context = 6;
1512 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1513 if (!this_._internal_context().empty()) {
1514 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
1515 this_._internal_context());
1516 }
1517 }
1518 // int64 num_calls = 2;
1519 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1520 if (this_._internal_num_calls() != 0) {
1521 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
1522 this_._internal_num_calls());
1523 }
1524 }
1525 // int64 num_rejects = 3;
1526 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1527 if (this_._internal_num_rejects() != 0) {
1528 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
1529 this_._internal_num_rejects());
1530 }
1531 }
1532 // double duration_seconds = 4;
1533 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
1534 if (::absl::bit_cast<::uint64_t>(this_._internal_duration_seconds()) != 0) {
1535 total_size += 9;
1536 }
1537 }
1538 // double num_rejects_per_second = 5;
1539 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
1540 if (::absl::bit_cast<::uint64_t>(this_._internal_num_rejects_per_second()) != 0) {
1541 total_size += 9;
1542 }
1543 }
1544 }
1545 return this_.MaybeComputeUnknownFieldsSize(total_size,
1546 &this_._impl_._cached_size_);
1547}
1548
1549void LocalSearchStatistics_LocalSearchFilterStatistics::MergeImpl(::google::protobuf::MessageLite& to_msg,
1550 const ::google::protobuf::MessageLite& from_msg) {
1551 auto* const _this =
1552 static_cast<LocalSearchStatistics_LocalSearchFilterStatistics*>(&to_msg);
1553 auto& from = static_cast<const LocalSearchStatistics_LocalSearchFilterStatistics&>(from_msg);
1554 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1555 from.CheckHasBitConsistency();
1556 }
1557 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.LocalSearchStatistics.LocalSearchFilterStatistics)
1558 ABSL_DCHECK_NE(&from, _this);
1559 ::uint32_t cached_has_bits = 0;
1560 (void)cached_has_bits;
1561
1562 cached_has_bits = from._impl_._has_bits_[0];
1563 if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) {
1564 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1565 if (!from._internal_local_search_filter().empty()) {
1566 _this->_internal_set_local_search_filter(from._internal_local_search_filter());
1567 } else {
1568 if (_this->_impl_.local_search_filter_.IsDefault()) {
1569 _this->_internal_set_local_search_filter("");
1570 }
1571 }
1572 }
1573 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1574 if (!from._internal_context().empty()) {
1575 _this->_internal_set_context(from._internal_context());
1576 } else {
1577 if (_this->_impl_.context_.IsDefault()) {
1578 _this->_internal_set_context("");
1579 }
1580 }
1581 }
1582 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1583 if (from._internal_num_calls() != 0) {
1584 _this->_impl_.num_calls_ = from._impl_.num_calls_;
1585 }
1586 }
1587 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1588 if (from._internal_num_rejects() != 0) {
1589 _this->_impl_.num_rejects_ = from._impl_.num_rejects_;
1590 }
1591 }
1592 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
1593 if (::absl::bit_cast<::uint64_t>(from._internal_duration_seconds()) != 0) {
1594 _this->_impl_.duration_seconds_ = from._impl_.duration_seconds_;
1595 }
1596 }
1597 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
1598 if (::absl::bit_cast<::uint64_t>(from._internal_num_rejects_per_second()) != 0) {
1599 _this->_impl_.num_rejects_per_second_ = from._impl_.num_rejects_per_second_;
1600 }
1601 }
1602 }
1603 _this->_impl_._has_bits_[0] |= cached_has_bits;
1604 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1605 from._internal_metadata_);
1606}
1607
1608void LocalSearchStatistics_LocalSearchFilterStatistics::CopyFrom(const LocalSearchStatistics_LocalSearchFilterStatistics& from) {
1609 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.LocalSearchStatistics.LocalSearchFilterStatistics)
1610 if (&from == this) return;
1612 MergeFrom(from);
1613}
1614
1615
1616void LocalSearchStatistics_LocalSearchFilterStatistics::InternalSwap(LocalSearchStatistics_LocalSearchFilterStatistics* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1617 using ::std::swap;
1618 auto* arena = GetArena();
1619 ABSL_DCHECK_EQ(arena, other->GetArena());
1620 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1621 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1622 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.local_search_filter_, &other->_impl_.local_search_filter_, arena);
1623 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.context_, &other->_impl_.context_, arena);
1624 ::google::protobuf::internal::memswap<
1625 PROTOBUF_FIELD_OFFSET(LocalSearchStatistics_LocalSearchFilterStatistics, _impl_.num_rejects_per_second_)
1626 + sizeof(LocalSearchStatistics_LocalSearchFilterStatistics::_impl_.num_rejects_per_second_)
1627 - PROTOBUF_FIELD_OFFSET(LocalSearchStatistics_LocalSearchFilterStatistics, _impl_.num_calls_)>(
1628 reinterpret_cast<char*>(&_impl_.num_calls_),
1629 reinterpret_cast<char*>(&other->_impl_.num_calls_));
1630}
1631
1632::google::protobuf::Metadata LocalSearchStatistics_LocalSearchFilterStatistics::GetMetadata() const {
1633 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1634}
1635// ===================================================================
1636
1638 public:
1639 using HasBits =
1640 decltype(::std::declval<LocalSearchStatistics>()._impl_._has_bits_);
1641 static constexpr ::int32_t kHasBitsOffset =
1642 8 * PROTOBUF_FIELD_OFFSET(LocalSearchStatistics, _impl_._has_bits_);
1644
1645LocalSearchStatistics::LocalSearchStatistics(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1646#if defined(PROTOBUF_CUSTOM_VTABLE)
1647 : ::google::protobuf::Message(arena, LocalSearchStatistics_class_data_.base()) {
1648#else // PROTOBUF_CUSTOM_VTABLE
1649 : ::google::protobuf::Message(arena) {
1650#endif // PROTOBUF_CUSTOM_VTABLE
1651 SharedCtor(arena);
1652 // @@protoc_insertion_point(arena_constructor:operations_research.LocalSearchStatistics)
1653}
1654PROTOBUF_NDEBUG_INLINE LocalSearchStatistics::Impl_::Impl_(
1655 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1656 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
1657 [[maybe_unused]] const ::operations_research::LocalSearchStatistics& from_msg)
1658 : _has_bits_{from._has_bits_},
1659 _cached_size_{0},
1660 local_search_operator_statistics_{visibility, arena, from.local_search_operator_statistics_},
1661 local_search_filter_statistics_{visibility, arena, from.local_search_filter_statistics_},
1662 first_solution_statistics_{visibility, arena, from.first_solution_statistics_} {}
1663
1665 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1666 const LocalSearchStatistics& from)
1667#if defined(PROTOBUF_CUSTOM_VTABLE)
1668 : ::google::protobuf::Message(arena, LocalSearchStatistics_class_data_.base()) {
1669#else // PROTOBUF_CUSTOM_VTABLE
1670 : ::google::protobuf::Message(arena) {
1671#endif // PROTOBUF_CUSTOM_VTABLE
1672 LocalSearchStatistics* const _this = this;
1673 (void)_this;
1674 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1675 from._internal_metadata_);
1676 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1677 ::memcpy(reinterpret_cast<char*>(&_impl_) +
1678 offsetof(Impl_, total_num_neighbors_),
1679 reinterpret_cast<const char*>(&from._impl_) +
1680 offsetof(Impl_, total_num_neighbors_),
1681 offsetof(Impl_, total_num_accepted_neighbors_) -
1682 offsetof(Impl_, total_num_neighbors_) +
1683 sizeof(Impl_::total_num_accepted_neighbors_));
1684
1685 // @@protoc_insertion_point(copy_constructor:operations_research.LocalSearchStatistics)
1686}
1687PROTOBUF_NDEBUG_INLINE LocalSearchStatistics::Impl_::Impl_(
1688 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1689 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1690 : _cached_size_{0},
1691 local_search_operator_statistics_{visibility, arena},
1692 local_search_filter_statistics_{visibility, arena},
1693 first_solution_statistics_{visibility, arena} {}
1694
1695inline void LocalSearchStatistics::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1696 new (&_impl_) Impl_(internal_visibility(), arena);
1697 ::memset(reinterpret_cast<char*>(&_impl_) +
1698 offsetof(Impl_, total_num_neighbors_),
1699 0,
1700 offsetof(Impl_, total_num_accepted_neighbors_) -
1701 offsetof(Impl_, total_num_neighbors_) +
1702 sizeof(Impl_::total_num_accepted_neighbors_));
1703}
1705 // @@protoc_insertion_point(destructor:operations_research.LocalSearchStatistics)
1706 SharedDtor(*this);
1707}
1708inline void LocalSearchStatistics::SharedDtor(MessageLite& self) {
1709 LocalSearchStatistics& this_ = static_cast<LocalSearchStatistics&>(self);
1710 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1711 this_.CheckHasBitConsistency();
1712 }
1713 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1714 ABSL_DCHECK(this_.GetArena() == nullptr);
1715 this_._impl_.~Impl_();
1716}
1717
1718inline void* PROTOBUF_NONNULL LocalSearchStatistics::PlacementNew_(
1719 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1720 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1721 return ::new (mem) LocalSearchStatistics(arena);
1722}
1723constexpr auto LocalSearchStatistics::InternalNewImpl_() {
1724 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
1725 PROTOBUF_FIELD_OFFSET(LocalSearchStatistics, _impl_.first_solution_statistics_) +
1726 decltype(LocalSearchStatistics::_impl_.first_solution_statistics_)::
1727 InternalGetArenaOffset(
1728 ::google::protobuf::Message::internal_visibility()),
1729 PROTOBUF_FIELD_OFFSET(LocalSearchStatistics, _impl_.local_search_operator_statistics_) +
1730 decltype(LocalSearchStatistics::_impl_.local_search_operator_statistics_)::
1731 InternalGetArenaOffset(
1732 ::google::protobuf::Message::internal_visibility()),
1733 PROTOBUF_FIELD_OFFSET(LocalSearchStatistics, _impl_.local_search_filter_statistics_) +
1734 decltype(LocalSearchStatistics::_impl_.local_search_filter_statistics_)::
1735 InternalGetArenaOffset(
1736 ::google::protobuf::Message::internal_visibility()),
1737 });
1738 if (arena_bits.has_value()) {
1739 return ::google::protobuf::internal::MessageCreator::ZeroInit(
1740 sizeof(LocalSearchStatistics), alignof(LocalSearchStatistics), *arena_bits);
1741 } else {
1742 return ::google::protobuf::internal::MessageCreator(&LocalSearchStatistics::PlacementNew_,
1743 sizeof(LocalSearchStatistics),
1744 alignof(LocalSearchStatistics));
1745 }
1746}
1748 return ::google::protobuf::internal::ClassDataFull{
1749 ::google::protobuf::internal::ClassData{
1751 &_table_.header,
1752 nullptr, // OnDemandRegisterArenaDtor
1753 nullptr, // IsInitialized
1754 &LocalSearchStatistics::MergeImpl,
1755 ::google::protobuf::Message::GetNewImpl<LocalSearchStatistics>(),
1756#if defined(PROTOBUF_CUSTOM_VTABLE)
1757 &LocalSearchStatistics::SharedDtor,
1758 ::google::protobuf::Message::GetClearImpl<LocalSearchStatistics>(), &LocalSearchStatistics::ByteSizeLong,
1760#endif // PROTOBUF_CUSTOM_VTABLE
1761 PROTOBUF_FIELD_OFFSET(LocalSearchStatistics, _impl_._cached_size_),
1762 false,
1763 },
1764 &LocalSearchStatistics::kDescriptorMethods,
1766 nullptr, // tracker
1767 };
1768}
1769
1770PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1771 ::google::protobuf::internal::ClassDataFull LocalSearchStatistics_class_data_ =
1773
1774PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1775LocalSearchStatistics::GetClassData() const {
1776 ::google::protobuf::internal::PrefetchToLocalCache(&LocalSearchStatistics_class_data_);
1777 ::google::protobuf::internal::PrefetchToLocalCache(LocalSearchStatistics_class_data_.tc_table);
1779}
1780PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1781const ::_pbi::TcParseTable<3, 6, 3, 0, 2>
1782LocalSearchStatistics::_table_ = {
1783 {
1784 PROTOBUF_FIELD_OFFSET(LocalSearchStatistics, _impl_._has_bits_),
1785 0, // no _extensions_
1786 6, 56, // max_field_number, fast_idx_mask
1787 offsetof(decltype(_table_), field_lookup_table),
1788 4294967232, // skipmap
1789 offsetof(decltype(_table_), field_entries),
1790 6, // num_field_entries
1791 3, // num_aux_entries
1792 offsetof(decltype(_table_), aux_entries),
1794 nullptr, // post_loop_handler
1795 ::_pbi::TcParser::GenericFallback, // fallback
1796 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1797 ::_pbi::TcParser::GetTable<::operations_research::LocalSearchStatistics>(), // to_prefetch
1798 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
1799 }, {{
1800 {::_pbi::TcParser::MiniParse, {}},
1801 // repeated .operations_research.LocalSearchStatistics.LocalSearchOperatorStatistics local_search_operator_statistics = 1;
1802 {::_pbi::TcParser::FastMtR1,
1803 {10, 0, 0,
1804 PROTOBUF_FIELD_OFFSET(LocalSearchStatistics, _impl_.local_search_operator_statistics_)}},
1805 // repeated .operations_research.LocalSearchStatistics.LocalSearchFilterStatistics local_search_filter_statistics = 2;
1806 {::_pbi::TcParser::FastMtR1,
1807 {18, 1, 1,
1808 PROTOBUF_FIELD_OFFSET(LocalSearchStatistics, _impl_.local_search_filter_statistics_)}},
1809 // int64 total_num_neighbors = 3;
1810 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(LocalSearchStatistics, _impl_.total_num_neighbors_), 3>(),
1811 {24, 3, 0,
1812 PROTOBUF_FIELD_OFFSET(LocalSearchStatistics, _impl_.total_num_neighbors_)}},
1813 // int64 total_num_filtered_neighbors = 4;
1814 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(LocalSearchStatistics, _impl_.total_num_filtered_neighbors_), 4>(),
1815 {32, 4, 0,
1816 PROTOBUF_FIELD_OFFSET(LocalSearchStatistics, _impl_.total_num_filtered_neighbors_)}},
1817 // int64 total_num_accepted_neighbors = 5;
1818 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(LocalSearchStatistics, _impl_.total_num_accepted_neighbors_), 5>(),
1819 {40, 5, 0,
1820 PROTOBUF_FIELD_OFFSET(LocalSearchStatistics, _impl_.total_num_accepted_neighbors_)}},
1821 // repeated .operations_research.LocalSearchStatistics.FirstSolutionStatistics first_solution_statistics = 6;
1822 {::_pbi::TcParser::FastMtR1,
1823 {50, 2, 2,
1824 PROTOBUF_FIELD_OFFSET(LocalSearchStatistics, _impl_.first_solution_statistics_)}},
1825 {::_pbi::TcParser::MiniParse, {}},
1826 }}, {{
1827 65535, 65535
1828 }}, {{
1829 // repeated .operations_research.LocalSearchStatistics.LocalSearchOperatorStatistics local_search_operator_statistics = 1;
1830 {PROTOBUF_FIELD_OFFSET(LocalSearchStatistics, _impl_.local_search_operator_statistics_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
1831 // repeated .operations_research.LocalSearchStatistics.LocalSearchFilterStatistics local_search_filter_statistics = 2;
1832 {PROTOBUF_FIELD_OFFSET(LocalSearchStatistics, _impl_.local_search_filter_statistics_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
1833 // int64 total_num_neighbors = 3;
1834 {PROTOBUF_FIELD_OFFSET(LocalSearchStatistics, _impl_.total_num_neighbors_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
1835 // int64 total_num_filtered_neighbors = 4;
1836 {PROTOBUF_FIELD_OFFSET(LocalSearchStatistics, _impl_.total_num_filtered_neighbors_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
1837 // int64 total_num_accepted_neighbors = 5;
1838 {PROTOBUF_FIELD_OFFSET(LocalSearchStatistics, _impl_.total_num_accepted_neighbors_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
1839 // repeated .operations_research.LocalSearchStatistics.FirstSolutionStatistics first_solution_statistics = 6;
1840 {PROTOBUF_FIELD_OFFSET(LocalSearchStatistics, _impl_.first_solution_statistics_), _Internal::kHasBitsOffset + 2, 2, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
1841 }},
1842 {{
1843 {::_pbi::TcParser::GetTable<::operations_research::LocalSearchStatistics_LocalSearchOperatorStatistics>()},
1844 {::_pbi::TcParser::GetTable<::operations_research::LocalSearchStatistics_LocalSearchFilterStatistics>()},
1845 {::_pbi::TcParser::GetTable<::operations_research::LocalSearchStatistics_FirstSolutionStatistics>()},
1846 }},
1847 {{
1848 }},
1849};
1850PROTOBUF_NOINLINE void LocalSearchStatistics::Clear() {
1851// @@protoc_insertion_point(message_clear_start:operations_research.LocalSearchStatistics)
1852 ::google::protobuf::internal::TSanWrite(&_impl_);
1853 ::uint32_t cached_has_bits = 0;
1854 // Prevent compiler warnings about cached_has_bits being unused
1855 (void) cached_has_bits;
1856
1857 cached_has_bits = _impl_._has_bits_[0];
1858 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
1859 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1860 _impl_.local_search_operator_statistics_.Clear();
1861 }
1862 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1863 _impl_.local_search_filter_statistics_.Clear();
1864 }
1865 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
1866 _impl_.first_solution_statistics_.Clear();
1867 }
1868 }
1869 if (BatchCheckHasBit(cached_has_bits, 0x00000038U)) {
1870 ::memset(&_impl_.total_num_neighbors_, 0, static_cast<::size_t>(
1871 reinterpret_cast<char*>(&_impl_.total_num_accepted_neighbors_) -
1872 reinterpret_cast<char*>(&_impl_.total_num_neighbors_)) + sizeof(_impl_.total_num_accepted_neighbors_));
1873 }
1874 _impl_._has_bits_.Clear();
1875 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1876}
1877
1878#if defined(PROTOBUF_CUSTOM_VTABLE)
1879::uint8_t* PROTOBUF_NONNULL LocalSearchStatistics::_InternalSerialize(
1880 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1881 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1882 const LocalSearchStatistics& this_ = static_cast<const LocalSearchStatistics&>(base);
1883#else // PROTOBUF_CUSTOM_VTABLE
1884::uint8_t* PROTOBUF_NONNULL LocalSearchStatistics::_InternalSerialize(
1885 ::uint8_t* PROTOBUF_NONNULL target,
1886 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1887 const LocalSearchStatistics& this_ = *this;
1888#endif // PROTOBUF_CUSTOM_VTABLE
1889 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1890 this_.CheckHasBitConsistency();
1891 }
1892 // @@protoc_insertion_point(serialize_to_array_start:operations_research.LocalSearchStatistics)
1893 ::uint32_t cached_has_bits = 0;
1894 (void)cached_has_bits;
1895
1896 cached_has_bits = this_._impl_._has_bits_[0];
1897 // repeated .operations_research.LocalSearchStatistics.LocalSearchOperatorStatistics local_search_operator_statistics = 1;
1898 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1899 for (unsigned i = 0, n = static_cast<unsigned>(
1900 this_._internal_local_search_operator_statistics_size());
1901 i < n; i++) {
1902 const auto& repfield = this_._internal_local_search_operator_statistics().Get(i);
1903 target =
1904 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1905 1, repfield, repfield.GetCachedSize(),
1906 target, stream);
1907 }
1908 }
1909
1910 // repeated .operations_research.LocalSearchStatistics.LocalSearchFilterStatistics local_search_filter_statistics = 2;
1911 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1912 for (unsigned i = 0, n = static_cast<unsigned>(
1913 this_._internal_local_search_filter_statistics_size());
1914 i < n; i++) {
1915 const auto& repfield = this_._internal_local_search_filter_statistics().Get(i);
1916 target =
1917 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1918 2, repfield, repfield.GetCachedSize(),
1919 target, stream);
1920 }
1921 }
1922
1923 // int64 total_num_neighbors = 3;
1924 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1925 if (this_._internal_total_num_neighbors() != 0) {
1926 target =
1927 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>(
1928 stream, this_._internal_total_num_neighbors(), target);
1929 }
1930 }
1931
1932 // int64 total_num_filtered_neighbors = 4;
1933 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
1934 if (this_._internal_total_num_filtered_neighbors() != 0) {
1935 target =
1936 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<4>(
1937 stream, this_._internal_total_num_filtered_neighbors(), target);
1938 }
1939 }
1940
1941 // int64 total_num_accepted_neighbors = 5;
1942 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
1943 if (this_._internal_total_num_accepted_neighbors() != 0) {
1944 target =
1945 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<5>(
1946 stream, this_._internal_total_num_accepted_neighbors(), target);
1947 }
1948 }
1949
1950 // repeated .operations_research.LocalSearchStatistics.FirstSolutionStatistics first_solution_statistics = 6;
1951 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
1952 for (unsigned i = 0, n = static_cast<unsigned>(
1953 this_._internal_first_solution_statistics_size());
1954 i < n; i++) {
1955 const auto& repfield = this_._internal_first_solution_statistics().Get(i);
1956 target =
1957 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1958 6, repfield, repfield.GetCachedSize(),
1959 target, stream);
1960 }
1961 }
1962
1963 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1964 target =
1965 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1966 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1967 }
1968 // @@protoc_insertion_point(serialize_to_array_end:operations_research.LocalSearchStatistics)
1969 return target;
1970}
1971
1972#if defined(PROTOBUF_CUSTOM_VTABLE)
1974 const LocalSearchStatistics& this_ = static_cast<const LocalSearchStatistics&>(base);
1975#else // PROTOBUF_CUSTOM_VTABLE
1976::size_t LocalSearchStatistics::ByteSizeLong() const {
1977 const LocalSearchStatistics& this_ = *this;
1978#endif // PROTOBUF_CUSTOM_VTABLE
1979 // @@protoc_insertion_point(message_byte_size_start:operations_research.LocalSearchStatistics)
1980 ::size_t total_size = 0;
1981
1982 ::uint32_t cached_has_bits = 0;
1983 // Prevent compiler warnings about cached_has_bits being unused
1984 (void)cached_has_bits;
1985
1986 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1987 cached_has_bits = this_._impl_._has_bits_[0];
1988 if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) {
1989 // repeated .operations_research.LocalSearchStatistics.LocalSearchOperatorStatistics local_search_operator_statistics = 1;
1990 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1991 total_size += 1UL * this_._internal_local_search_operator_statistics_size();
1992 for (const auto& msg : this_._internal_local_search_operator_statistics()) {
1993 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
1994 }
1995 }
1996 // repeated .operations_research.LocalSearchStatistics.LocalSearchFilterStatistics local_search_filter_statistics = 2;
1997 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1998 total_size += 1UL * this_._internal_local_search_filter_statistics_size();
1999 for (const auto& msg : this_._internal_local_search_filter_statistics()) {
2000 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
2001 }
2002 }
2003 // repeated .operations_research.LocalSearchStatistics.FirstSolutionStatistics first_solution_statistics = 6;
2004 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
2005 total_size += 1UL * this_._internal_first_solution_statistics_size();
2006 for (const auto& msg : this_._internal_first_solution_statistics()) {
2007 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
2008 }
2009 }
2010 // int64 total_num_neighbors = 3;
2011 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
2012 if (this_._internal_total_num_neighbors() != 0) {
2013 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
2014 this_._internal_total_num_neighbors());
2015 }
2016 }
2017 // int64 total_num_filtered_neighbors = 4;
2018 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
2019 if (this_._internal_total_num_filtered_neighbors() != 0) {
2020 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
2021 this_._internal_total_num_filtered_neighbors());
2022 }
2023 }
2024 // int64 total_num_accepted_neighbors = 5;
2025 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
2026 if (this_._internal_total_num_accepted_neighbors() != 0) {
2027 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
2028 this_._internal_total_num_accepted_neighbors());
2029 }
2030 }
2031 }
2032 return this_.MaybeComputeUnknownFieldsSize(total_size,
2033 &this_._impl_._cached_size_);
2034}
2035
2036void LocalSearchStatistics::MergeImpl(::google::protobuf::MessageLite& to_msg,
2037 const ::google::protobuf::MessageLite& from_msg) {
2038 auto* const _this =
2039 static_cast<LocalSearchStatistics*>(&to_msg);
2040 auto& from = static_cast<const LocalSearchStatistics&>(from_msg);
2041 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2042 from.CheckHasBitConsistency();
2043 }
2044 ::google::protobuf::Arena* arena = _this->GetArena();
2045 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.LocalSearchStatistics)
2046 ABSL_DCHECK_NE(&from, _this);
2047 ::uint32_t cached_has_bits = 0;
2048 (void)cached_has_bits;
2049
2050 cached_has_bits = from._impl_._has_bits_[0];
2051 if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) {
2052 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
2053 _this->_internal_mutable_local_search_operator_statistics()->InternalMergeFromWithArena(
2054 ::google::protobuf::MessageLite::internal_visibility(), arena,
2055 from._internal_local_search_operator_statistics());
2056 }
2057 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
2058 _this->_internal_mutable_local_search_filter_statistics()->InternalMergeFromWithArena(
2059 ::google::protobuf::MessageLite::internal_visibility(), arena,
2060 from._internal_local_search_filter_statistics());
2061 }
2062 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
2063 _this->_internal_mutable_first_solution_statistics()->InternalMergeFromWithArena(
2064 ::google::protobuf::MessageLite::internal_visibility(), arena,
2065 from._internal_first_solution_statistics());
2066 }
2067 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
2068 if (from._internal_total_num_neighbors() != 0) {
2069 _this->_impl_.total_num_neighbors_ = from._impl_.total_num_neighbors_;
2070 }
2071 }
2072 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
2073 if (from._internal_total_num_filtered_neighbors() != 0) {
2074 _this->_impl_.total_num_filtered_neighbors_ = from._impl_.total_num_filtered_neighbors_;
2075 }
2076 }
2077 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
2078 if (from._internal_total_num_accepted_neighbors() != 0) {
2079 _this->_impl_.total_num_accepted_neighbors_ = from._impl_.total_num_accepted_neighbors_;
2080 }
2081 }
2082 }
2083 _this->_impl_._has_bits_[0] |= cached_has_bits;
2084 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
2085 from._internal_metadata_);
2086}
2087
2088void LocalSearchStatistics::CopyFrom(const LocalSearchStatistics& from) {
2089 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.LocalSearchStatistics)
2090 if (&from == this) return;
2091 Clear();
2093}
2094
2095
2096void LocalSearchStatistics::InternalSwap(LocalSearchStatistics* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
2097 using ::std::swap;
2098 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2099 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2100 _impl_.local_search_operator_statistics_.InternalSwap(&other->_impl_.local_search_operator_statistics_);
2101 _impl_.local_search_filter_statistics_.InternalSwap(&other->_impl_.local_search_filter_statistics_);
2102 _impl_.first_solution_statistics_.InternalSwap(&other->_impl_.first_solution_statistics_);
2103 ::google::protobuf::internal::memswap<
2104 PROTOBUF_FIELD_OFFSET(LocalSearchStatistics, _impl_.total_num_accepted_neighbors_)
2105 + sizeof(LocalSearchStatistics::_impl_.total_num_accepted_neighbors_)
2106 - PROTOBUF_FIELD_OFFSET(LocalSearchStatistics, _impl_.total_num_neighbors_)>(
2107 reinterpret_cast<char*>(&_impl_.total_num_neighbors_),
2108 reinterpret_cast<char*>(&other->_impl_.total_num_neighbors_));
2109}
2110
2111::google::protobuf::Metadata LocalSearchStatistics::GetMetadata() const {
2112 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
2113}
2114// ===================================================================
2118 using HasBits =
2119 decltype(::std::declval<ConstraintSolverStatistics>()._impl_._has_bits_);
2120 static constexpr ::int32_t kHasBitsOffset =
2121 8 * PROTOBUF_FIELD_OFFSET(ConstraintSolverStatistics, _impl_._has_bits_);
2122};
2124ConstraintSolverStatistics::ConstraintSolverStatistics(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
2125#if defined(PROTOBUF_CUSTOM_VTABLE)
2126 : ::google::protobuf::Message(arena, ConstraintSolverStatistics_class_data_.base()) {
2127#else // PROTOBUF_CUSTOM_VTABLE
2128 : ::google::protobuf::Message(arena) {
2129#endif // PROTOBUF_CUSTOM_VTABLE
2130 SharedCtor(arena);
2131 // @@protoc_insertion_point(arena_constructor:operations_research.ConstraintSolverStatistics)
2132}
2134 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ConstraintSolverStatistics& from)
2135#if defined(PROTOBUF_CUSTOM_VTABLE)
2136 : ::google::protobuf::Message(arena, ConstraintSolverStatistics_class_data_.base()),
2137#else // PROTOBUF_CUSTOM_VTABLE
2138 : ::google::protobuf::Message(arena),
2139#endif // PROTOBUF_CUSTOM_VTABLE
2140 _impl_(from._impl_) {
2141 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
2142 from._internal_metadata_);
2143}
2144PROTOBUF_NDEBUG_INLINE ConstraintSolverStatistics::Impl_::Impl_(
2145 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
2146 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
2147 : _cached_size_{0} {}
2148
2149inline void ConstraintSolverStatistics::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
2150 new (&_impl_) Impl_(internal_visibility(), arena);
2151 ::memset(reinterpret_cast<char*>(&_impl_) +
2152 offsetof(Impl_, num_branches_),
2153 0,
2154 offsetof(Impl_, duration_seconds_) -
2155 offsetof(Impl_, num_branches_) +
2156 sizeof(Impl_::duration_seconds_));
2157}
2159 // @@protoc_insertion_point(destructor:operations_research.ConstraintSolverStatistics)
2160 SharedDtor(*this);
2161}
2162inline void ConstraintSolverStatistics::SharedDtor(MessageLite& self) {
2164 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2165 this_.CheckHasBitConsistency();
2166 }
2167 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
2168 ABSL_DCHECK(this_.GetArena() == nullptr);
2169 this_._impl_.~Impl_();
2170}
2171
2172inline void* PROTOBUF_NONNULL ConstraintSolverStatistics::PlacementNew_(
2173 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
2174 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
2175 return ::new (mem) ConstraintSolverStatistics(arena);
2176}
2177constexpr auto ConstraintSolverStatistics::InternalNewImpl_() {
2178 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ConstraintSolverStatistics),
2179 alignof(ConstraintSolverStatistics));
2180}
2182 return ::google::protobuf::internal::ClassDataFull{
2183 ::google::protobuf::internal::ClassData{
2185 &_table_.header,
2186 nullptr, // OnDemandRegisterArenaDtor
2187 nullptr, // IsInitialized
2188 &ConstraintSolverStatistics::MergeImpl,
2189 ::google::protobuf::Message::GetNewImpl<ConstraintSolverStatistics>(),
2190#if defined(PROTOBUF_CUSTOM_VTABLE)
2191 &ConstraintSolverStatistics::SharedDtor,
2192 ::google::protobuf::Message::GetClearImpl<ConstraintSolverStatistics>(), &ConstraintSolverStatistics::ByteSizeLong,
2194#endif // PROTOBUF_CUSTOM_VTABLE
2195 PROTOBUF_FIELD_OFFSET(ConstraintSolverStatistics, _impl_._cached_size_),
2196 false,
2197 },
2198 &ConstraintSolverStatistics::kDescriptorMethods,
2200 nullptr, // tracker
2201 };
2202}
2203
2204PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
2205 ::google::protobuf::internal::ClassDataFull ConstraintSolverStatistics_class_data_ =
2207
2208PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
2209ConstraintSolverStatistics::GetClassData() const {
2210 ::google::protobuf::internal::PrefetchToLocalCache(&ConstraintSolverStatistics_class_data_);
2211 ::google::protobuf::internal::PrefetchToLocalCache(ConstraintSolverStatistics_class_data_.tc_table);
2213}
2214PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
2215const ::_pbi::TcParseTable<3, 5, 0, 0, 2>
2216ConstraintSolverStatistics::_table_ = {
2217 {
2218 PROTOBUF_FIELD_OFFSET(ConstraintSolverStatistics, _impl_._has_bits_),
2219 0, // no _extensions_
2220 5, 56, // max_field_number, fast_idx_mask
2221 offsetof(decltype(_table_), field_lookup_table),
2222 4294967264, // skipmap
2223 offsetof(decltype(_table_), field_entries),
2224 5, // num_field_entries
2225 0, // num_aux_entries
2226 offsetof(decltype(_table_), field_names), // no aux_entries
2228 nullptr, // post_loop_handler
2229 ::_pbi::TcParser::GenericFallback, // fallback
2230 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
2231 ::_pbi::TcParser::GetTable<::operations_research::ConstraintSolverStatistics>(), // to_prefetch
2232 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
2233 }, {{
2234 {::_pbi::TcParser::MiniParse, {}},
2235 // int64 num_branches = 1;
2236 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ConstraintSolverStatistics, _impl_.num_branches_), 0>(),
2237 {8, 0, 0,
2238 PROTOBUF_FIELD_OFFSET(ConstraintSolverStatistics, _impl_.num_branches_)}},
2239 // int64 num_failures = 2;
2240 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ConstraintSolverStatistics, _impl_.num_failures_), 1>(),
2241 {16, 1, 0,
2242 PROTOBUF_FIELD_OFFSET(ConstraintSolverStatistics, _impl_.num_failures_)}},
2243 // int64 num_solutions = 3;
2244 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ConstraintSolverStatistics, _impl_.num_solutions_), 2>(),
2245 {24, 2, 0,
2246 PROTOBUF_FIELD_OFFSET(ConstraintSolverStatistics, _impl_.num_solutions_)}},
2247 // int64 bytes_used = 4;
2248 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ConstraintSolverStatistics, _impl_.bytes_used_), 3>(),
2249 {32, 3, 0,
2250 PROTOBUF_FIELD_OFFSET(ConstraintSolverStatistics, _impl_.bytes_used_)}},
2251 // double duration_seconds = 5;
2252 {::_pbi::TcParser::FastF64S1,
2253 {41, 4, 0,
2254 PROTOBUF_FIELD_OFFSET(ConstraintSolverStatistics, _impl_.duration_seconds_)}},
2255 {::_pbi::TcParser::MiniParse, {}},
2256 {::_pbi::TcParser::MiniParse, {}},
2257 }}, {{
2258 65535, 65535
2259 }}, {{
2260 // int64 num_branches = 1;
2261 {PROTOBUF_FIELD_OFFSET(ConstraintSolverStatistics, _impl_.num_branches_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
2262 // int64 num_failures = 2;
2263 {PROTOBUF_FIELD_OFFSET(ConstraintSolverStatistics, _impl_.num_failures_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
2264 // int64 num_solutions = 3;
2265 {PROTOBUF_FIELD_OFFSET(ConstraintSolverStatistics, _impl_.num_solutions_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
2266 // int64 bytes_used = 4;
2267 {PROTOBUF_FIELD_OFFSET(ConstraintSolverStatistics, _impl_.bytes_used_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
2268 // double duration_seconds = 5;
2269 {PROTOBUF_FIELD_OFFSET(ConstraintSolverStatistics, _impl_.duration_seconds_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
2270 }},
2271 // no aux_entries
2272 {{
2273 }},
2274};
2275PROTOBUF_NOINLINE void ConstraintSolverStatistics::Clear() {
2276// @@protoc_insertion_point(message_clear_start:operations_research.ConstraintSolverStatistics)
2277 ::google::protobuf::internal::TSanWrite(&_impl_);
2278 ::uint32_t cached_has_bits = 0;
2279 // Prevent compiler warnings about cached_has_bits being unused
2280 (void) cached_has_bits;
2281
2282 cached_has_bits = _impl_._has_bits_[0];
2283 if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
2284 ::memset(&_impl_.num_branches_, 0, static_cast<::size_t>(
2285 reinterpret_cast<char*>(&_impl_.duration_seconds_) -
2286 reinterpret_cast<char*>(&_impl_.num_branches_)) + sizeof(_impl_.duration_seconds_));
2287 }
2288 _impl_._has_bits_.Clear();
2289 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
2290}
2291
2292#if defined(PROTOBUF_CUSTOM_VTABLE)
2293::uint8_t* PROTOBUF_NONNULL ConstraintSolverStatistics::_InternalSerialize(
2294 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
2295 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
2296 const ConstraintSolverStatistics& this_ = static_cast<const ConstraintSolverStatistics&>(base);
2297#else // PROTOBUF_CUSTOM_VTABLE
2298::uint8_t* PROTOBUF_NONNULL ConstraintSolverStatistics::_InternalSerialize(
2299 ::uint8_t* PROTOBUF_NONNULL target,
2300 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
2301 const ConstraintSolverStatistics& this_ = *this;
2302#endif // PROTOBUF_CUSTOM_VTABLE
2303 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2304 this_.CheckHasBitConsistency();
2305 }
2306 // @@protoc_insertion_point(serialize_to_array_start:operations_research.ConstraintSolverStatistics)
2307 ::uint32_t cached_has_bits = 0;
2308 (void)cached_has_bits;
2309
2310 cached_has_bits = this_._impl_._has_bits_[0];
2311 // int64 num_branches = 1;
2312 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
2313 if (this_._internal_num_branches() != 0) {
2314 target =
2315 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
2316 stream, this_._internal_num_branches(), target);
2317 }
2318 }
2319
2320 // int64 num_failures = 2;
2321 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
2322 if (this_._internal_num_failures() != 0) {
2323 target =
2324 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
2325 stream, this_._internal_num_failures(), target);
2326 }
2327 }
2328
2329 // int64 num_solutions = 3;
2330 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
2331 if (this_._internal_num_solutions() != 0) {
2332 target =
2333 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>(
2334 stream, this_._internal_num_solutions(), target);
2335 }
2336 }
2337
2338 // int64 bytes_used = 4;
2339 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
2340 if (this_._internal_bytes_used() != 0) {
2341 target =
2342 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<4>(
2343 stream, this_._internal_bytes_used(), target);
2344 }
2345 }
2346
2347 // double duration_seconds = 5;
2348 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
2349 if (::absl::bit_cast<::uint64_t>(this_._internal_duration_seconds()) != 0) {
2350 target = stream->EnsureSpace(target);
2351 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
2352 5, this_._internal_duration_seconds(), target);
2353 }
2354 }
2355
2356 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
2357 target =
2358 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2359 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
2360 }
2361 // @@protoc_insertion_point(serialize_to_array_end:operations_research.ConstraintSolverStatistics)
2362 return target;
2363}
2364
2365#if defined(PROTOBUF_CUSTOM_VTABLE)
2367 const ConstraintSolverStatistics& this_ = static_cast<const ConstraintSolverStatistics&>(base);
2368#else // PROTOBUF_CUSTOM_VTABLE
2370 const ConstraintSolverStatistics& this_ = *this;
2371#endif // PROTOBUF_CUSTOM_VTABLE
2372 // @@protoc_insertion_point(message_byte_size_start:operations_research.ConstraintSolverStatistics)
2373 ::size_t total_size = 0;
2375 ::uint32_t cached_has_bits = 0;
2376 // Prevent compiler warnings about cached_has_bits being unused
2377 (void)cached_has_bits;
2378
2379 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
2380 cached_has_bits = this_._impl_._has_bits_[0];
2381 if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
2382 // int64 num_branches = 1;
2383 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
2384 if (this_._internal_num_branches() != 0) {
2385 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
2386 this_._internal_num_branches());
2387 }
2388 }
2389 // int64 num_failures = 2;
2390 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
2391 if (this_._internal_num_failures() != 0) {
2392 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
2393 this_._internal_num_failures());
2394 }
2395 }
2396 // int64 num_solutions = 3;
2397 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
2398 if (this_._internal_num_solutions() != 0) {
2399 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
2400 this_._internal_num_solutions());
2401 }
2402 }
2403 // int64 bytes_used = 4;
2404 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
2405 if (this_._internal_bytes_used() != 0) {
2406 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
2407 this_._internal_bytes_used());
2408 }
2409 }
2410 // double duration_seconds = 5;
2411 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
2412 if (::absl::bit_cast<::uint64_t>(this_._internal_duration_seconds()) != 0) {
2413 total_size += 9;
2414 }
2415 }
2416 }
2417 return this_.MaybeComputeUnknownFieldsSize(total_size,
2418 &this_._impl_._cached_size_);
2419}
2420
2421void ConstraintSolverStatistics::MergeImpl(::google::protobuf::MessageLite& to_msg,
2422 const ::google::protobuf::MessageLite& from_msg) {
2423 auto* const _this =
2424 static_cast<ConstraintSolverStatistics*>(&to_msg);
2425 auto& from = static_cast<const ConstraintSolverStatistics&>(from_msg);
2426 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2427 from.CheckHasBitConsistency();
2428 }
2429 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.ConstraintSolverStatistics)
2430 ABSL_DCHECK_NE(&from, _this);
2431 ::uint32_t cached_has_bits = 0;
2432 (void)cached_has_bits;
2433
2434 cached_has_bits = from._impl_._has_bits_[0];
2435 if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
2436 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
2437 if (from._internal_num_branches() != 0) {
2438 _this->_impl_.num_branches_ = from._impl_.num_branches_;
2439 }
2440 }
2441 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
2442 if (from._internal_num_failures() != 0) {
2443 _this->_impl_.num_failures_ = from._impl_.num_failures_;
2444 }
2445 }
2446 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
2447 if (from._internal_num_solutions() != 0) {
2448 _this->_impl_.num_solutions_ = from._impl_.num_solutions_;
2449 }
2450 }
2451 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
2452 if (from._internal_bytes_used() != 0) {
2453 _this->_impl_.bytes_used_ = from._impl_.bytes_used_;
2454 }
2455 }
2456 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
2457 if (::absl::bit_cast<::uint64_t>(from._internal_duration_seconds()) != 0) {
2458 _this->_impl_.duration_seconds_ = from._impl_.duration_seconds_;
2459 }
2460 }
2461 }
2462 _this->_impl_._has_bits_[0] |= cached_has_bits;
2463 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
2464 from._internal_metadata_);
2465}
2466
2467void ConstraintSolverStatistics::CopyFrom(const ConstraintSolverStatistics& from) {
2468 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.ConstraintSolverStatistics)
2469 if (&from == this) return;
2470 Clear();
2471 MergeFrom(from);
2473
2474
2475void ConstraintSolverStatistics::InternalSwap(ConstraintSolverStatistics* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
2476 using ::std::swap;
2477 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2478 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2479 ::google::protobuf::internal::memswap<
2480 PROTOBUF_FIELD_OFFSET(ConstraintSolverStatistics, _impl_.duration_seconds_)
2481 + sizeof(ConstraintSolverStatistics::_impl_.duration_seconds_)
2482 - PROTOBUF_FIELD_OFFSET(ConstraintSolverStatistics, _impl_.num_branches_)>(
2483 reinterpret_cast<char*>(&_impl_.num_branches_),
2484 reinterpret_cast<char*>(&other->_impl_.num_branches_));
2485}
2486
2487::google::protobuf::Metadata ConstraintSolverStatistics::GetMetadata() const {
2488 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
2489}
2490// ===================================================================
2491
2493 public:
2494 using HasBits =
2495 decltype(::std::declval<SubSolverStatistics>()._impl_._has_bits_);
2496 static constexpr ::int32_t kHasBitsOffset =
2497 8 * PROTOBUF_FIELD_OFFSET(SubSolverStatistics, _impl_._has_bits_);
2499
2500SubSolverStatistics::SubSolverStatistics(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
2501#if defined(PROTOBUF_CUSTOM_VTABLE)
2502 : ::google::protobuf::Message(arena, SubSolverStatistics_class_data_.base()) {
2503#else // PROTOBUF_CUSTOM_VTABLE
2504 : ::google::protobuf::Message(arena) {
2505#endif // PROTOBUF_CUSTOM_VTABLE
2506 SharedCtor(arena);
2507 // @@protoc_insertion_point(arena_constructor:operations_research.SubSolverStatistics)
2508}
2510 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SubSolverStatistics& from)
2511#if defined(PROTOBUF_CUSTOM_VTABLE)
2512 : ::google::protobuf::Message(arena, SubSolverStatistics_class_data_.base()),
2513#else // PROTOBUF_CUSTOM_VTABLE
2514 : ::google::protobuf::Message(arena),
2515#endif // PROTOBUF_CUSTOM_VTABLE
2516 _impl_(from._impl_) {
2517 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
2518 from._internal_metadata_);
2519}
2520PROTOBUF_NDEBUG_INLINE SubSolverStatistics::Impl_::Impl_(
2521 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
2522 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
2523 : _cached_size_{0} {}
2524
2525inline void SubSolverStatistics::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
2526 new (&_impl_) Impl_(internal_visibility(), arena);
2527 ::memset(reinterpret_cast<char*>(&_impl_) +
2528 offsetof(Impl_, num_glop_calls_in_lp_scheduling_),
2529 0,
2530 offsetof(Impl_, num_min_cost_flow_calls_) -
2531 offsetof(Impl_, num_glop_calls_in_lp_scheduling_) +
2532 sizeof(Impl_::num_min_cost_flow_calls_));
2533}
2535 // @@protoc_insertion_point(destructor:operations_research.SubSolverStatistics)
2536 SharedDtor(*this);
2537}
2538inline void SubSolverStatistics::SharedDtor(MessageLite& self) {
2539 SubSolverStatistics& this_ = static_cast<SubSolverStatistics&>(self);
2540 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2541 this_.CheckHasBitConsistency();
2542 }
2543 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
2544 ABSL_DCHECK(this_.GetArena() == nullptr);
2545 this_._impl_.~Impl_();
2546}
2547
2548inline void* PROTOBUF_NONNULL SubSolverStatistics::PlacementNew_(
2549 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
2550 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
2551 return ::new (mem) SubSolverStatistics(arena);
2552}
2553constexpr auto SubSolverStatistics::InternalNewImpl_() {
2554 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SubSolverStatistics),
2555 alignof(SubSolverStatistics));
2556}
2558 return ::google::protobuf::internal::ClassDataFull{
2559 ::google::protobuf::internal::ClassData{
2561 &_table_.header,
2562 nullptr, // OnDemandRegisterArenaDtor
2563 nullptr, // IsInitialized
2564 &SubSolverStatistics::MergeImpl,
2565 ::google::protobuf::Message::GetNewImpl<SubSolverStatistics>(),
2566#if defined(PROTOBUF_CUSTOM_VTABLE)
2567 &SubSolverStatistics::SharedDtor,
2568 ::google::protobuf::Message::GetClearImpl<SubSolverStatistics>(), &SubSolverStatistics::ByteSizeLong,
2570#endif // PROTOBUF_CUSTOM_VTABLE
2571 PROTOBUF_FIELD_OFFSET(SubSolverStatistics, _impl_._cached_size_),
2572 false,
2573 },
2574 &SubSolverStatistics::kDescriptorMethods,
2576 nullptr, // tracker
2577 };
2578}
2579
2580PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
2581 ::google::protobuf::internal::ClassDataFull SubSolverStatistics_class_data_ =
2583
2584PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
2585SubSolverStatistics::GetClassData() const {
2586 ::google::protobuf::internal::PrefetchToLocalCache(&SubSolverStatistics_class_data_);
2587 ::google::protobuf::internal::PrefetchToLocalCache(SubSolverStatistics_class_data_.tc_table);
2588 return SubSolverStatistics_class_data_.base();
2589}
2590PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
2591const ::_pbi::TcParseTable<2, 3, 0, 0, 2>
2592SubSolverStatistics::_table_ = {
2593 {
2594 PROTOBUF_FIELD_OFFSET(SubSolverStatistics, _impl_._has_bits_),
2595 0, // no _extensions_
2596 3, 24, // max_field_number, fast_idx_mask
2597 offsetof(decltype(_table_), field_lookup_table),
2598 4294967288, // skipmap
2599 offsetof(decltype(_table_), field_entries),
2600 3, // num_field_entries
2601 0, // num_aux_entries
2602 offsetof(decltype(_table_), field_names), // no aux_entries
2604 nullptr, // post_loop_handler
2605 ::_pbi::TcParser::GenericFallback, // fallback
2606 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
2607 ::_pbi::TcParser::GetTable<::operations_research::SubSolverStatistics>(), // to_prefetch
2608 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
2609 }, {{
2610 {::_pbi::TcParser::MiniParse, {}},
2611 // int64 num_glop_calls_in_lp_scheduling = 1;
2612 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(SubSolverStatistics, _impl_.num_glop_calls_in_lp_scheduling_), 0>(),
2613 {8, 0, 0,
2614 PROTOBUF_FIELD_OFFSET(SubSolverStatistics, _impl_.num_glop_calls_in_lp_scheduling_)}},
2615 // int64 num_cp_sat_calls_in_lp_scheduling = 2;
2616 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(SubSolverStatistics, _impl_.num_cp_sat_calls_in_lp_scheduling_), 1>(),
2617 {16, 1, 0,
2618 PROTOBUF_FIELD_OFFSET(SubSolverStatistics, _impl_.num_cp_sat_calls_in_lp_scheduling_)}},
2619 // int64 num_min_cost_flow_calls = 3;
2620 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(SubSolverStatistics, _impl_.num_min_cost_flow_calls_), 2>(),
2621 {24, 2, 0,
2622 PROTOBUF_FIELD_OFFSET(SubSolverStatistics, _impl_.num_min_cost_flow_calls_)}},
2623 }}, {{
2624 65535, 65535
2625 }}, {{
2626 // int64 num_glop_calls_in_lp_scheduling = 1;
2627 {PROTOBUF_FIELD_OFFSET(SubSolverStatistics, _impl_.num_glop_calls_in_lp_scheduling_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
2628 // int64 num_cp_sat_calls_in_lp_scheduling = 2;
2629 {PROTOBUF_FIELD_OFFSET(SubSolverStatistics, _impl_.num_cp_sat_calls_in_lp_scheduling_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
2630 // int64 num_min_cost_flow_calls = 3;
2631 {PROTOBUF_FIELD_OFFSET(SubSolverStatistics, _impl_.num_min_cost_flow_calls_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
2632 }},
2633 // no aux_entries
2634 {{
2635 }},
2636};
2637PROTOBUF_NOINLINE void SubSolverStatistics::Clear() {
2638// @@protoc_insertion_point(message_clear_start:operations_research.SubSolverStatistics)
2639 ::google::protobuf::internal::TSanWrite(&_impl_);
2640 ::uint32_t cached_has_bits = 0;
2641 // Prevent compiler warnings about cached_has_bits being unused
2642 (void) cached_has_bits;
2644 cached_has_bits = _impl_._has_bits_[0];
2645 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
2646 ::memset(&_impl_.num_glop_calls_in_lp_scheduling_, 0, static_cast<::size_t>(
2647 reinterpret_cast<char*>(&_impl_.num_min_cost_flow_calls_) -
2648 reinterpret_cast<char*>(&_impl_.num_glop_calls_in_lp_scheduling_)) + sizeof(_impl_.num_min_cost_flow_calls_));
2649 }
2650 _impl_._has_bits_.Clear();
2651 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
2652}
2653
2654#if defined(PROTOBUF_CUSTOM_VTABLE)
2655::uint8_t* PROTOBUF_NONNULL SubSolverStatistics::_InternalSerialize(
2656 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
2657 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
2658 const SubSolverStatistics& this_ = static_cast<const SubSolverStatistics&>(base);
2659#else // PROTOBUF_CUSTOM_VTABLE
2660::uint8_t* PROTOBUF_NONNULL SubSolverStatistics::_InternalSerialize(
2661 ::uint8_t* PROTOBUF_NONNULL target,
2662 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
2663 const SubSolverStatistics& this_ = *this;
2664#endif // PROTOBUF_CUSTOM_VTABLE
2665 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2666 this_.CheckHasBitConsistency();
2667 }
2668 // @@protoc_insertion_point(serialize_to_array_start:operations_research.SubSolverStatistics)
2669 ::uint32_t cached_has_bits = 0;
2670 (void)cached_has_bits;
2671
2672 cached_has_bits = this_._impl_._has_bits_[0];
2673 // int64 num_glop_calls_in_lp_scheduling = 1;
2674 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
2675 if (this_._internal_num_glop_calls_in_lp_scheduling() != 0) {
2676 target =
2677 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
2678 stream, this_._internal_num_glop_calls_in_lp_scheduling(), target);
2679 }
2680 }
2681
2682 // int64 num_cp_sat_calls_in_lp_scheduling = 2;
2683 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
2684 if (this_._internal_num_cp_sat_calls_in_lp_scheduling() != 0) {
2685 target =
2686 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
2687 stream, this_._internal_num_cp_sat_calls_in_lp_scheduling(), target);
2688 }
2689 }
2690
2691 // int64 num_min_cost_flow_calls = 3;
2692 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
2693 if (this_._internal_num_min_cost_flow_calls() != 0) {
2694 target =
2695 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>(
2696 stream, this_._internal_num_min_cost_flow_calls(), target);
2697 }
2698 }
2699
2700 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
2701 target =
2702 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2703 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
2704 }
2705 // @@protoc_insertion_point(serialize_to_array_end:operations_research.SubSolverStatistics)
2706 return target;
2707}
2708
2709#if defined(PROTOBUF_CUSTOM_VTABLE)
2710::size_t SubSolverStatistics::ByteSizeLong(const MessageLite& base) {
2711 const SubSolverStatistics& this_ = static_cast<const SubSolverStatistics&>(base);
2712#else // PROTOBUF_CUSTOM_VTABLE
2713::size_t SubSolverStatistics::ByteSizeLong() const {
2714 const SubSolverStatistics& this_ = *this;
2715#endif // PROTOBUF_CUSTOM_VTABLE
2716 // @@protoc_insertion_point(message_byte_size_start:operations_research.SubSolverStatistics)
2717 ::size_t total_size = 0;
2718
2719 ::uint32_t cached_has_bits = 0;
2720 // Prevent compiler warnings about cached_has_bits being unused
2721 (void)cached_has_bits;
2722
2723 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
2724 cached_has_bits = this_._impl_._has_bits_[0];
2725 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
2726 // int64 num_glop_calls_in_lp_scheduling = 1;
2727 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
2728 if (this_._internal_num_glop_calls_in_lp_scheduling() != 0) {
2729 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
2730 this_._internal_num_glop_calls_in_lp_scheduling());
2731 }
2732 }
2733 // int64 num_cp_sat_calls_in_lp_scheduling = 2;
2734 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
2735 if (this_._internal_num_cp_sat_calls_in_lp_scheduling() != 0) {
2736 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
2737 this_._internal_num_cp_sat_calls_in_lp_scheduling());
2738 }
2739 }
2740 // int64 num_min_cost_flow_calls = 3;
2741 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
2742 if (this_._internal_num_min_cost_flow_calls() != 0) {
2743 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
2744 this_._internal_num_min_cost_flow_calls());
2745 }
2746 }
2747 }
2748 return this_.MaybeComputeUnknownFieldsSize(total_size,
2749 &this_._impl_._cached_size_);
2750}
2751
2752void SubSolverStatistics::MergeImpl(::google::protobuf::MessageLite& to_msg,
2753 const ::google::protobuf::MessageLite& from_msg) {
2754 auto* const _this =
2755 static_cast<SubSolverStatistics*>(&to_msg);
2756 auto& from = static_cast<const SubSolverStatistics&>(from_msg);
2757 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2758 from.CheckHasBitConsistency();
2759 }
2760 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.SubSolverStatistics)
2761 ABSL_DCHECK_NE(&from, _this);
2762 ::uint32_t cached_has_bits = 0;
2763 (void)cached_has_bits;
2764
2765 cached_has_bits = from._impl_._has_bits_[0];
2766 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
2767 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
2768 if (from._internal_num_glop_calls_in_lp_scheduling() != 0) {
2769 _this->_impl_.num_glop_calls_in_lp_scheduling_ = from._impl_.num_glop_calls_in_lp_scheduling_;
2770 }
2771 }
2772 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
2773 if (from._internal_num_cp_sat_calls_in_lp_scheduling() != 0) {
2774 _this->_impl_.num_cp_sat_calls_in_lp_scheduling_ = from._impl_.num_cp_sat_calls_in_lp_scheduling_;
2775 }
2776 }
2777 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
2778 if (from._internal_num_min_cost_flow_calls() != 0) {
2779 _this->_impl_.num_min_cost_flow_calls_ = from._impl_.num_min_cost_flow_calls_;
2780 }
2781 }
2782 }
2783 _this->_impl_._has_bits_[0] |= cached_has_bits;
2784 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
2785 from._internal_metadata_);
2786}
2787
2788void SubSolverStatistics::CopyFrom(const SubSolverStatistics& from) {
2789 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.SubSolverStatistics)
2790 if (&from == this) return;
2791 Clear();
2792 MergeFrom(from);
2793}
2795
2796void SubSolverStatistics::InternalSwap(SubSolverStatistics* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
2797 using ::std::swap;
2798 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2799 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2800 ::google::protobuf::internal::memswap<
2801 PROTOBUF_FIELD_OFFSET(SubSolverStatistics, _impl_.num_min_cost_flow_calls_)
2802 + sizeof(SubSolverStatistics::_impl_.num_min_cost_flow_calls_)
2803 - PROTOBUF_FIELD_OFFSET(SubSolverStatistics, _impl_.num_glop_calls_in_lp_scheduling_)>(
2804 reinterpret_cast<char*>(&_impl_.num_glop_calls_in_lp_scheduling_),
2805 reinterpret_cast<char*>(&other->_impl_.num_glop_calls_in_lp_scheduling_));
2806}
2807
2808::google::protobuf::Metadata SubSolverStatistics::GetMetadata() const {
2809 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
2810}
2811// ===================================================================
2812
2813class SearchStatistics::_Internal {
2814 public:
2815 using HasBits =
2816 decltype(::std::declval<SearchStatistics>()._impl_._has_bits_);
2817 static constexpr ::int32_t kHasBitsOffset =
2818 8 * PROTOBUF_FIELD_OFFSET(SearchStatistics, _impl_._has_bits_);
2819};
2821SearchStatistics::SearchStatistics(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
2822#if defined(PROTOBUF_CUSTOM_VTABLE)
2823 : ::google::protobuf::Message(arena, SearchStatistics_class_data_.base()) {
2824#else // PROTOBUF_CUSTOM_VTABLE
2825 : ::google::protobuf::Message(arena) {
2826#endif // PROTOBUF_CUSTOM_VTABLE
2827 SharedCtor(arena);
2828 // @@protoc_insertion_point(arena_constructor:operations_research.SearchStatistics)
2829}
2830PROTOBUF_NDEBUG_INLINE SearchStatistics::Impl_::Impl_(
2831 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
2832 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
2833 [[maybe_unused]] const ::operations_research::SearchStatistics& from_msg)
2834 : _has_bits_{from._has_bits_},
2835 _cached_size_{0},
2836 local_search_statistics_{visibility, arena, from.local_search_statistics_},
2837 constraint_solver_statistics_{visibility, arena, from.constraint_solver_statistics_},
2838 sub_solver_statistics_{visibility, arena, from.sub_solver_statistics_} {}
2839
2841 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
2842 const SearchStatistics& from)
2843#if defined(PROTOBUF_CUSTOM_VTABLE)
2844 : ::google::protobuf::Message(arena, SearchStatistics_class_data_.base()) {
2845#else // PROTOBUF_CUSTOM_VTABLE
2846 : ::google::protobuf::Message(arena) {
2847#endif // PROTOBUF_CUSTOM_VTABLE
2848 SearchStatistics* const _this = this;
2849 (void)_this;
2850 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
2851 from._internal_metadata_);
2852 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
2853
2854 // @@protoc_insertion_point(copy_constructor:operations_research.SearchStatistics)
2855}
2856PROTOBUF_NDEBUG_INLINE SearchStatistics::Impl_::Impl_(
2857 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
2858 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
2859 : _cached_size_{0},
2860 local_search_statistics_{visibility, arena},
2861 constraint_solver_statistics_{visibility, arena},
2862 sub_solver_statistics_{visibility, arena} {}
2863
2864inline void SearchStatistics::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
2865 new (&_impl_) Impl_(internal_visibility(), arena);
2866}
2868 // @@protoc_insertion_point(destructor:operations_research.SearchStatistics)
2869 SharedDtor(*this);
2870}
2871inline void SearchStatistics::SharedDtor(MessageLite& self) {
2872 SearchStatistics& this_ = static_cast<SearchStatistics&>(self);
2873 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2874 this_.CheckHasBitConsistency();
2875 }
2876 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
2877 ABSL_DCHECK(this_.GetArena() == nullptr);
2878 this_._impl_.~Impl_();
2879}
2880
2881inline void* PROTOBUF_NONNULL SearchStatistics::PlacementNew_(
2882 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
2883 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
2884 return ::new (mem) SearchStatistics(arena);
2885}
2886constexpr auto SearchStatistics::InternalNewImpl_() {
2887 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
2888 PROTOBUF_FIELD_OFFSET(SearchStatistics, _impl_.local_search_statistics_) +
2889 decltype(SearchStatistics::_impl_.local_search_statistics_)::
2890 InternalGetArenaOffset(
2891 ::google::protobuf::Message::internal_visibility()),
2892 PROTOBUF_FIELD_OFFSET(SearchStatistics, _impl_.constraint_solver_statistics_) +
2893 decltype(SearchStatistics::_impl_.constraint_solver_statistics_)::
2894 InternalGetArenaOffset(
2895 ::google::protobuf::Message::internal_visibility()),
2896 PROTOBUF_FIELD_OFFSET(SearchStatistics, _impl_.sub_solver_statistics_) +
2897 decltype(SearchStatistics::_impl_.sub_solver_statistics_)::
2898 InternalGetArenaOffset(
2899 ::google::protobuf::Message::internal_visibility()),
2900 });
2901 if (arena_bits.has_value()) {
2902 return ::google::protobuf::internal::MessageCreator::ZeroInit(
2903 sizeof(SearchStatistics), alignof(SearchStatistics), *arena_bits);
2904 } else {
2905 return ::google::protobuf::internal::MessageCreator(&SearchStatistics::PlacementNew_,
2906 sizeof(SearchStatistics),
2907 alignof(SearchStatistics));
2908 }
2909}
2911 return ::google::protobuf::internal::ClassDataFull{
2912 ::google::protobuf::internal::ClassData{
2914 &_table_.header,
2915 nullptr, // OnDemandRegisterArenaDtor
2916 nullptr, // IsInitialized
2917 &SearchStatistics::MergeImpl,
2918 ::google::protobuf::Message::GetNewImpl<SearchStatistics>(),
2919#if defined(PROTOBUF_CUSTOM_VTABLE)
2920 &SearchStatistics::SharedDtor,
2921 ::google::protobuf::Message::GetClearImpl<SearchStatistics>(), &SearchStatistics::ByteSizeLong,
2923#endif // PROTOBUF_CUSTOM_VTABLE
2924 PROTOBUF_FIELD_OFFSET(SearchStatistics, _impl_._cached_size_),
2925 false,
2926 },
2927 &SearchStatistics::kDescriptorMethods,
2929 nullptr, // tracker
2930 };
2931}
2932
2933PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
2934 ::google::protobuf::internal::ClassDataFull SearchStatistics_class_data_ =
2936
2937PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
2938SearchStatistics::GetClassData() const {
2939 ::google::protobuf::internal::PrefetchToLocalCache(&SearchStatistics_class_data_);
2940 ::google::protobuf::internal::PrefetchToLocalCache(SearchStatistics_class_data_.tc_table);
2942}
2943PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
2944const ::_pbi::TcParseTable<2, 3, 3, 0, 2>
2945SearchStatistics::_table_ = {
2946 {
2947 PROTOBUF_FIELD_OFFSET(SearchStatistics, _impl_._has_bits_),
2948 0, // no _extensions_
2949 3, 24, // max_field_number, fast_idx_mask
2950 offsetof(decltype(_table_), field_lookup_table),
2951 4294967288, // skipmap
2952 offsetof(decltype(_table_), field_entries),
2953 3, // num_field_entries
2954 3, // num_aux_entries
2955 offsetof(decltype(_table_), aux_entries),
2957 nullptr, // post_loop_handler
2958 ::_pbi::TcParser::GenericFallback, // fallback
2959 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
2960 ::_pbi::TcParser::GetTable<::operations_research::SearchStatistics>(), // to_prefetch
2961 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
2962 }, {{
2963 {::_pbi::TcParser::MiniParse, {}},
2964 // repeated .operations_research.LocalSearchStatistics local_search_statistics = 1;
2965 {::_pbi::TcParser::FastMtR1,
2966 {10, 0, 0,
2967 PROTOBUF_FIELD_OFFSET(SearchStatistics, _impl_.local_search_statistics_)}},
2968 // repeated .operations_research.ConstraintSolverStatistics constraint_solver_statistics = 2;
2969 {::_pbi::TcParser::FastMtR1,
2970 {18, 1, 1,
2971 PROTOBUF_FIELD_OFFSET(SearchStatistics, _impl_.constraint_solver_statistics_)}},
2972 // repeated .operations_research.SubSolverStatistics sub_solver_statistics = 3;
2973 {::_pbi::TcParser::FastMtR1,
2974 {26, 2, 2,
2975 PROTOBUF_FIELD_OFFSET(SearchStatistics, _impl_.sub_solver_statistics_)}},
2976 }}, {{
2977 65535, 65535
2978 }}, {{
2979 // repeated .operations_research.LocalSearchStatistics local_search_statistics = 1;
2980 {PROTOBUF_FIELD_OFFSET(SearchStatistics, _impl_.local_search_statistics_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
2981 // repeated .operations_research.ConstraintSolverStatistics constraint_solver_statistics = 2;
2982 {PROTOBUF_FIELD_OFFSET(SearchStatistics, _impl_.constraint_solver_statistics_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
2983 // repeated .operations_research.SubSolverStatistics sub_solver_statistics = 3;
2984 {PROTOBUF_FIELD_OFFSET(SearchStatistics, _impl_.sub_solver_statistics_), _Internal::kHasBitsOffset + 2, 2, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
2985 }},
2986 {{
2987 {::_pbi::TcParser::GetTable<::operations_research::LocalSearchStatistics>()},
2988 {::_pbi::TcParser::GetTable<::operations_research::ConstraintSolverStatistics>()},
2989 {::_pbi::TcParser::GetTable<::operations_research::SubSolverStatistics>()},
2990 }},
2991 {{
2992 }},
2993};
2994PROTOBUF_NOINLINE void SearchStatistics::Clear() {
2995// @@protoc_insertion_point(message_clear_start:operations_research.SearchStatistics)
2996 ::google::protobuf::internal::TSanWrite(&_impl_);
2997 ::uint32_t cached_has_bits = 0;
2998 // Prevent compiler warnings about cached_has_bits being unused
2999 (void) cached_has_bits;
3000
3001 cached_has_bits = _impl_._has_bits_[0];
3002 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
3003 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
3004 _impl_.local_search_statistics_.Clear();
3005 }
3006 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
3007 _impl_.constraint_solver_statistics_.Clear();
3008 }
3009 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
3010 _impl_.sub_solver_statistics_.Clear();
3011 }
3012 }
3013 _impl_._has_bits_.Clear();
3014 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
3015}
3016
3017#if defined(PROTOBUF_CUSTOM_VTABLE)
3018::uint8_t* PROTOBUF_NONNULL SearchStatistics::_InternalSerialize(
3019 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
3020 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
3021 const SearchStatistics& this_ = static_cast<const SearchStatistics&>(base);
3022#else // PROTOBUF_CUSTOM_VTABLE
3023::uint8_t* PROTOBUF_NONNULL SearchStatistics::_InternalSerialize(
3024 ::uint8_t* PROTOBUF_NONNULL target,
3025 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
3026 const SearchStatistics& this_ = *this;
3027#endif // PROTOBUF_CUSTOM_VTABLE
3028 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
3029 this_.CheckHasBitConsistency();
3031 // @@protoc_insertion_point(serialize_to_array_start:operations_research.SearchStatistics)
3032 ::uint32_t cached_has_bits = 0;
3033 (void)cached_has_bits;
3034
3035 cached_has_bits = this_._impl_._has_bits_[0];
3036 // repeated .operations_research.LocalSearchStatistics local_search_statistics = 1;
3037 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
3038 for (unsigned i = 0, n = static_cast<unsigned>(
3039 this_._internal_local_search_statistics_size());
3040 i < n; i++) {
3041 const auto& repfield = this_._internal_local_search_statistics().Get(i);
3042 target =
3043 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
3044 1, repfield, repfield.GetCachedSize(),
3045 target, stream);
3046 }
3047 }
3048
3049 // repeated .operations_research.ConstraintSolverStatistics constraint_solver_statistics = 2;
3050 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
3051 for (unsigned i = 0, n = static_cast<unsigned>(
3052 this_._internal_constraint_solver_statistics_size());
3053 i < n; i++) {
3054 const auto& repfield = this_._internal_constraint_solver_statistics().Get(i);
3055 target =
3056 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
3057 2, repfield, repfield.GetCachedSize(),
3058 target, stream);
3059 }
3060 }
3061
3062 // repeated .operations_research.SubSolverStatistics sub_solver_statistics = 3;
3063 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
3064 for (unsigned i = 0, n = static_cast<unsigned>(
3065 this_._internal_sub_solver_statistics_size());
3066 i < n; i++) {
3067 const auto& repfield = this_._internal_sub_solver_statistics().Get(i);
3068 target =
3069 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
3070 3, repfield, repfield.GetCachedSize(),
3071 target, stream);
3072 }
3073 }
3074
3075 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
3076 target =
3077 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
3078 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
3079 }
3080 // @@protoc_insertion_point(serialize_to_array_end:operations_research.SearchStatistics)
3081 return target;
3082}
3083
3084#if defined(PROTOBUF_CUSTOM_VTABLE)
3085::size_t SearchStatistics::ByteSizeLong(const MessageLite& base) {
3086 const SearchStatistics& this_ = static_cast<const SearchStatistics&>(base);
3087#else // PROTOBUF_CUSTOM_VTABLE
3088::size_t SearchStatistics::ByteSizeLong() const {
3089 const SearchStatistics& this_ = *this;
3090#endif // PROTOBUF_CUSTOM_VTABLE
3091 // @@protoc_insertion_point(message_byte_size_start:operations_research.SearchStatistics)
3092 ::size_t total_size = 0;
3093
3094 ::uint32_t cached_has_bits = 0;
3095 // Prevent compiler warnings about cached_has_bits being unused
3096 (void)cached_has_bits;
3097
3098 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
3099 cached_has_bits = this_._impl_._has_bits_[0];
3100 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
3101 // repeated .operations_research.LocalSearchStatistics local_search_statistics = 1;
3102 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
3103 total_size += 1UL * this_._internal_local_search_statistics_size();
3104 for (const auto& msg : this_._internal_local_search_statistics()) {
3105 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
3106 }
3107 }
3108 // repeated .operations_research.ConstraintSolverStatistics constraint_solver_statistics = 2;
3109 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
3110 total_size += 1UL * this_._internal_constraint_solver_statistics_size();
3111 for (const auto& msg : this_._internal_constraint_solver_statistics()) {
3112 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
3113 }
3114 }
3115 // repeated .operations_research.SubSolverStatistics sub_solver_statistics = 3;
3116 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
3117 total_size += 1UL * this_._internal_sub_solver_statistics_size();
3118 for (const auto& msg : this_._internal_sub_solver_statistics()) {
3119 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
3120 }
3121 }
3122 }
3123 return this_.MaybeComputeUnknownFieldsSize(total_size,
3124 &this_._impl_._cached_size_);
3125}
3126
3127void SearchStatistics::MergeImpl(::google::protobuf::MessageLite& to_msg,
3128 const ::google::protobuf::MessageLite& from_msg) {
3129 auto* const _this =
3130 static_cast<SearchStatistics*>(&to_msg);
3131 auto& from = static_cast<const SearchStatistics&>(from_msg);
3132 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
3133 from.CheckHasBitConsistency();
3134 }
3135 ::google::protobuf::Arena* arena = _this->GetArena();
3136 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.SearchStatistics)
3137 ABSL_DCHECK_NE(&from, _this);
3138 ::uint32_t cached_has_bits = 0;
3139 (void)cached_has_bits;
3140
3141 cached_has_bits = from._impl_._has_bits_[0];
3142 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
3143 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
3144 _this->_internal_mutable_local_search_statistics()->InternalMergeFromWithArena(
3145 ::google::protobuf::MessageLite::internal_visibility(), arena,
3146 from._internal_local_search_statistics());
3147 }
3148 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
3149 _this->_internal_mutable_constraint_solver_statistics()->InternalMergeFromWithArena(
3150 ::google::protobuf::MessageLite::internal_visibility(), arena,
3151 from._internal_constraint_solver_statistics());
3152 }
3153 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
3154 _this->_internal_mutable_sub_solver_statistics()->InternalMergeFromWithArena(
3155 ::google::protobuf::MessageLite::internal_visibility(), arena,
3156 from._internal_sub_solver_statistics());
3157 }
3158 }
3159 _this->_impl_._has_bits_[0] |= cached_has_bits;
3160 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
3161 from._internal_metadata_);
3162}
3163
3165 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.SearchStatistics)
3166 if (&from == this) return;
3167 Clear();
3168 MergeFrom(from);
3169}
3170
3172void SearchStatistics::InternalSwap(SearchStatistics* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
3173 using ::std::swap;
3174 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
3175 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
3176 _impl_.local_search_statistics_.InternalSwap(&other->_impl_.local_search_statistics_);
3177 _impl_.constraint_solver_statistics_.InternalSwap(&other->_impl_.constraint_solver_statistics_);
3178 _impl_.sub_solver_statistics_.InternalSwap(&other->_impl_.sub_solver_statistics_);
3179}
3180
3181::google::protobuf::Metadata SearchStatistics::GetMetadata() const {
3182 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
3183}
3184// @@protoc_insertion_point(namespace_scope)
3185} // namespace operations_research
3186namespace google {
3187namespace protobuf {
3188} // namespace protobuf
3189} // namespace google
3190// @@protoc_insertion_point(global_scope)
3191PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
3192 _static_init2_ [[maybe_unused]] =
3194 ::std::false_type{});
3195#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_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
friend class ::google::protobuf::MessageLite
::google::protobuf::Metadata GetMetadata() const
void CopyFrom(const ConstraintSolverStatistics &from)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
decltype(::std::declval< LocalSearchStatistics_FirstSolutionStatistics >()._impl_._has_bits_) HasBits
friend void swap(LocalSearchStatistics_FirstSolutionStatistics &a, LocalSearchStatistics_FirstSolutionStatistics &b)
void MergeFrom(const LocalSearchStatistics_FirstSolutionStatistics &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 LocalSearchStatistics_FirstSolutionStatistics &from)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void CopyFrom(const LocalSearchStatistics_LocalSearchFilterStatistics &from)
void MergeFrom(const LocalSearchStatistics_LocalSearchFilterStatistics &from)
decltype(::std::declval< LocalSearchStatistics_LocalSearchOperatorStatistics >()._impl_._has_bits_) HasBits
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void CopyFrom(const LocalSearchStatistics_LocalSearchOperatorStatistics &from)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
friend void swap(LocalSearchStatistics_LocalSearchOperatorStatistics &a, LocalSearchStatistics_LocalSearchOperatorStatistics &b)
void MergeFrom(const LocalSearchStatistics_LocalSearchOperatorStatistics &from)
friend class ::google::protobuf::MessageLite
void MergeFrom(const LocalSearchStatistics &from)
::google::protobuf::Metadata GetMetadata() const
void CopyFrom(const LocalSearchStatistics &from)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
friend class ::google::protobuf::MessageLite
void MergeFrom(const SearchStatistics &from)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
::google::protobuf::Metadata GetMetadata() const
static constexpr auto InternalGenerateClassData_()
friend void swap(SearchStatistics &a, SearchStatistics &b)
friend class ::google::protobuf::Arena
void CopyFrom(const SearchStatistics &from)
friend class ::google::protobuf::MessageLite
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void CopyFrom(const SubSolverStatistics &from)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
::google::protobuf::Metadata GetMetadata() const
static constexpr auto InternalGenerateClassData_()
static constexpr ::_pbi::MigrationSchema *PROTOBUF_NULLABLE schemas
OR-Tools root namespace.
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubSolverStatisticsDefaultTypeInternal _SubSolverStatistics_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SearchStatistics_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SubSolverStatistics_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull LocalSearchStatistics_LocalSearchOperatorStatistics_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LocalSearchStatistics_LocalSearchFilterStatisticsDefaultTypeInternal _LocalSearchStatistics_LocalSearchFilterStatistics_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LocalSearchStatistics_FirstSolutionStatisticsDefaultTypeInternal _LocalSearchStatistics_FirstSolutionStatistics_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull LocalSearchStatistics_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SearchStatisticsDefaultTypeInternal _SearchStatistics_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LocalSearchStatisticsDefaultTypeInternal _LocalSearchStatistics_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull LocalSearchStatistics_FirstSolutionStatistics_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull LocalSearchStatistics_LocalSearchFilterStatistics_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConstraintSolverStatisticsDefaultTypeInternal _ConstraintSolverStatistics_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull ConstraintSolverStatistics_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LocalSearchStatistics_LocalSearchOperatorStatisticsDefaultTypeInternal _LocalSearchStatistics_LocalSearchOperatorStatistics_default_instance_
const ::uint32_t TableStruct_ortools_2fconstraint_5fsolver_2fsearch_5fstats_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold)
static constexprconst ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_service_descriptors_ortools_2fconstraint_5fsolver_2fsearch_5fstats_2eproto
::absl::once_flag descriptor_table_ortools_2fconstraint_5fsolver_2fsearch_5fstats_2eproto_once
static constexprconst ::_pb::EnumDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_enum_descriptors_ortools_2fconstraint_5fsolver_2fsearch_5fstats_2eproto
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fconstraint_5fsolver_2fsearch_5fstats_2eproto