8 #include <google/protobuf/io/coded_stream.h> 9 #include <google/protobuf/extension_set.h> 10 #include <google/protobuf/wire_format_lite.h> 11 #include <google/protobuf/descriptor.h> 12 #include <google/protobuf/generated_message_reflection.h> 13 #include <google/protobuf/reflection_ops.h> 14 #include <google/protobuf/wire_format.h> 16 #include <google/protobuf/port_def.inc> 18 PROTOBUF_PRAGMA_INIT_SEG
21 ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
22 : profile_file_(&::PROTOBUF_NAMESPACE_ID::
internal::fixed_address_empty_string)
25 , trail_block_size_(0)
26 , array_split_size_(0)
28 , name_cast_variables_(false)
29 , name_all_variables_(false)
30 , profile_propagation_(false)
32 , print_model_stats_(false)
33 , print_added_constraints_(false)
34 , disable_solve_(false)
35 , profile_local_search_(false)
36 , print_local_search_profile_(false)
37 , trace_propagation_(false)
38 , trace_search_(false)
39 , check_solution_period_(0)
40 , use_small_table_(false)
41 , use_cumulative_edge_finder_(false)
42 , use_cumulative_time_table_(false)
43 , use_cumulative_time_table_sync_(false)
44 , max_edge_finder_size_(0)
45 , use_sequence_high_demand_tasks_(false)
46 , use_all_possible_disjunctions_(false)
47 , diffn_use_cumulative_(false)
48 , use_element_rmq_(false)
49 , skip_locally_optimal_paths_(false){}
106 const char descriptor_table_protodef_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto[]
PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
107 "\n1ortools/constraint_solver/solver_param" 108 "eters.proto\022\023operations_research\"\315\007\n\032Con" 109 "straintSolverParameters\022X\n\016compress_trai" 110 "l\030\001 \001(\0162@.operations_research.Constraint" 111 "SolverParameters.TrailCompression\022\030\n\020tra" 112 "il_block_size\030\002 \001(\005\022\030\n\020array_split_size\030" 113 "\003 \001(\005\022\023\n\013store_names\030\004 \001(\010\022\033\n\023name_cast_" 114 "variables\030\005 \001(\010\022\032\n\022name_all_variables\030\006 " 115 "\001(\010\022\033\n\023profile_propagation\030\007 \001(\010\022\024\n\014prof" 116 "ile_file\030\010 \001(\t\022\034\n\024profile_local_search\030\020" 117 " \001(\010\022\"\n\032print_local_search_profile\030\021 \001(\010" 118 "\022\031\n\021trace_propagation\030\t \001(\010\022\024\n\014trace_sea" 119 "rch\030\n \001(\010\022\023\n\013print_model\030\013 \001(\010\022\031\n\021print_" 120 "model_stats\030\014 \001(\010\022\037\n\027print_added_constra" 121 "ints\030\r \001(\010\022\025\n\rdisable_solve\030\017 \001(\010\022\027\n\017use" 122 "_small_table\030e \001(\010\022\"\n\032use_cumulative_edg" 123 "e_finder\030i \001(\010\022!\n\031use_cumulative_time_ta" 124 "ble\030j \001(\010\022&\n\036use_cumulative_time_table_s" 125 "ync\030p \001(\010\022&\n\036use_sequence_high_demand_ta" 126 "sks\030k \001(\010\022%\n\035use_all_possible_disjunctio" 127 "ns\030l \001(\010\022\034\n\024max_edge_finder_size\030m \001(\005\022\034" 128 "\n\024diffn_use_cumulative\030n \001(\010\022\027\n\017use_elem" 129 "ent_rmq\030o \001(\010\022\"\n\032skip_locally_optimal_pa" 130 "ths\030q \001(\010\022\035\n\025check_solution_period\030r \001(\005" 131 "\">\n\020TrailCompression\022\022\n\016NO_COMPRESSION\020\000" 132 "\022\026\n\022COMPRESS_WITH_ZLIB\020\001J\004\010d\020eJ\004\010f\020gJ\004\010g" 133 "\020hJ\004\010h\020iBI\n#com.google.ortools.constrain" 134 "tsolverP\001\252\002\037Google.OrTools.ConstraintSol" 139 false,
false, 1131, descriptor_table_protodef_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto,
"ortools/constraint_solver/solver_parameters.proto",
165 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) 171 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) 180 bool is_message_owned)
181 : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
183 if (!is_message_owned) {
184 RegisterArenaDtor(arena);
189 : ::PROTOBUF_NAMESPACE_ID::Message() {
190 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
191 profile_file_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
192 if (!from._internal_profile_file().empty()) {
193 profile_file_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_profile_file(),
194 GetArenaForAllocation());
196 ::memcpy(&compress_trail_, &from.compress_trail_,
197 static_cast<size_t>(reinterpret_cast<char*>(&skip_locally_optimal_paths_) -
198 reinterpret_cast<char*>(&compress_trail_)) +
sizeof(skip_locally_optimal_paths_));
202 inline void ConstraintSolverParameters::SharedCtor() {
203 profile_file_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
204 ::memset(reinterpret_cast<char*>(
this) + static_cast<size_t>(
205 reinterpret_cast<char*>(&compress_trail_) - reinterpret_cast<char*>(
this)),
206 0, static_cast<size_t>(reinterpret_cast<char*>(&skip_locally_optimal_paths_) -
207 reinterpret_cast<char*>(&compress_trail_)) +
sizeof(skip_locally_optimal_paths_));
212 if (GetArenaForAllocation() !=
nullptr)
return;
214 _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
217 inline void ConstraintSolverParameters::SharedDtor() {
218 GOOGLE_DCHECK(GetArenaForAllocation() ==
nullptr);
219 profile_file_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
222 void ConstraintSolverParameters::ArenaDtor(
void*
object) {
226 void ConstraintSolverParameters::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
228 void ConstraintSolverParameters::SetCachedSize(
int size)
const {
229 _cached_size_.Set(size);
234 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
236 (void) cached_has_bits;
238 profile_file_.ClearToEmpty();
239 ::memset(&compress_trail_, 0, static_cast<size_t>(
240 reinterpret_cast<char*>(&skip_locally_optimal_paths_) -
241 reinterpret_cast<char*>(&compress_trail_)) +
sizeof(skip_locally_optimal_paths_));
242 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
246 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure 247 while (!ctx->Done(&ptr)) {
248 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
249 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
253 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
254 ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
256 _internal_set_compress_trail(static_cast<::operations_research::ConstraintSolverParameters_TrailCompression>(val));
257 }
else goto handle_unusual;
261 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
262 trail_block_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
264 }
else goto handle_unusual;
268 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
269 array_split_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
271 }
else goto handle_unusual;
275 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
276 store_names_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
278 }
else goto handle_unusual;
282 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
283 name_cast_variables_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
285 }
else goto handle_unusual;
289 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) {
290 name_all_variables_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
292 }
else goto handle_unusual;
296 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) {
297 profile_propagation_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
299 }
else goto handle_unusual;
303 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) {
304 auto str = _internal_mutable_profile_file();
305 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
306 CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str,
"operations_research.ConstraintSolverParameters.profile_file"));
308 }
else goto handle_unusual;
312 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) {
313 trace_propagation_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
315 }
else goto handle_unusual;
319 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) {
320 trace_search_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
322 }
else goto handle_unusual;
326 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 88)) {
327 print_model_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
329 }
else goto handle_unusual;
333 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 96)) {
334 print_model_stats_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
336 }
else goto handle_unusual;
340 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 104)) {
341 print_added_constraints_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
343 }
else goto handle_unusual;
347 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 120)) {
348 disable_solve_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
350 }
else goto handle_unusual;
354 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 128)) {
355 profile_local_search_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
357 }
else goto handle_unusual;
361 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 136)) {
362 print_local_search_profile_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
364 }
else goto handle_unusual;
368 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
369 use_small_table_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
371 }
else goto handle_unusual;
375 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) {
376 use_cumulative_edge_finder_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
378 }
else goto handle_unusual;
382 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) {
383 use_cumulative_time_table_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
385 }
else goto handle_unusual;
389 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 88)) {
390 use_sequence_high_demand_tasks_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
392 }
else goto handle_unusual;
396 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 96)) {
397 use_all_possible_disjunctions_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
399 }
else goto handle_unusual;
403 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 104)) {
404 max_edge_finder_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
406 }
else goto handle_unusual;
410 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 112)) {
411 diffn_use_cumulative_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
413 }
else goto handle_unusual;
417 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 120)) {
418 use_element_rmq_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
420 }
else goto handle_unusual;
424 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 128)) {
425 use_cumulative_time_table_sync_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
427 }
else goto handle_unusual;
431 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 136)) {
432 skip_locally_optimal_paths_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
434 }
else goto handle_unusual;
438 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 144)) {
439 check_solution_period_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
441 }
else goto handle_unusual;
445 if ((tag == 0) || ((tag & 7) == 4)) {
447 ctx->SetLastTag(tag);
450 ptr = UnknownFieldParse(tag,
451 _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
453 CHK_(ptr !=
nullptr);
467 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream)
const {
469 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
470 (void) cached_has_bits;
473 if (this->_internal_compress_trail() != 0) {
474 target = stream->EnsureSpace(target);
475 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
476 1, this->_internal_compress_trail(), target);
480 if (this->_internal_trail_block_size() != 0) {
481 target = stream->EnsureSpace(target);
482 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_trail_block_size(), target);
486 if (this->_internal_array_split_size() != 0) {
487 target = stream->EnsureSpace(target);
488 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_array_split_size(), target);
492 if (this->_internal_store_names() != 0) {
493 target = stream->EnsureSpace(target);
494 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(4, this->_internal_store_names(), target);
498 if (this->_internal_name_cast_variables() != 0) {
499 target = stream->EnsureSpace(target);
500 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(5, this->_internal_name_cast_variables(), target);
504 if (this->_internal_name_all_variables() != 0) {
505 target = stream->EnsureSpace(target);
506 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(6, this->_internal_name_all_variables(), target);
510 if (this->_internal_profile_propagation() != 0) {
511 target = stream->EnsureSpace(target);
512 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(7, this->_internal_profile_propagation(), target);
516 if (!this->_internal_profile_file().empty()) {
517 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
518 this->_internal_profile_file().data(), static_cast<int>(this->_internal_profile_file().length()),
519 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
520 "operations_research.ConstraintSolverParameters.profile_file");
521 target = stream->WriteStringMaybeAliased(
522 8, this->_internal_profile_file(), target);
526 if (this->_internal_trace_propagation() != 0) {
527 target = stream->EnsureSpace(target);
528 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(9, this->_internal_trace_propagation(), target);
532 if (this->_internal_trace_search() != 0) {
533 target = stream->EnsureSpace(target);
534 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(10, this->_internal_trace_search(), target);
538 if (this->_internal_print_model() != 0) {
539 target = stream->EnsureSpace(target);
540 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(11, this->_internal_print_model(), target);
544 if (this->_internal_print_model_stats() != 0) {
545 target = stream->EnsureSpace(target);
546 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(12, this->_internal_print_model_stats(), target);
550 if (this->_internal_print_added_constraints() != 0) {
551 target = stream->EnsureSpace(target);
552 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(13, this->_internal_print_added_constraints(), target);
556 if (this->_internal_disable_solve() != 0) {
557 target = stream->EnsureSpace(target);
558 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(15, this->_internal_disable_solve(), target);
562 if (this->_internal_profile_local_search() != 0) {
563 target = stream->EnsureSpace(target);
564 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(16, this->_internal_profile_local_search(), target);
568 if (this->_internal_print_local_search_profile() != 0) {
569 target = stream->EnsureSpace(target);
570 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(17, this->_internal_print_local_search_profile(), target);
574 if (this->_internal_use_small_table() != 0) {
575 target = stream->EnsureSpace(target);
576 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(101, this->_internal_use_small_table(), target);
580 if (this->_internal_use_cumulative_edge_finder() != 0) {
581 target = stream->EnsureSpace(target);
582 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(105, this->_internal_use_cumulative_edge_finder(), target);
586 if (this->_internal_use_cumulative_time_table() != 0) {
587 target = stream->EnsureSpace(target);
588 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(106, this->_internal_use_cumulative_time_table(), target);
592 if (this->_internal_use_sequence_high_demand_tasks() != 0) {
593 target = stream->EnsureSpace(target);
594 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(107, this->_internal_use_sequence_high_demand_tasks(), target);
598 if (this->_internal_use_all_possible_disjunctions() != 0) {
599 target = stream->EnsureSpace(target);
600 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(108, this->_internal_use_all_possible_disjunctions(), target);
604 if (this->_internal_max_edge_finder_size() != 0) {
605 target = stream->EnsureSpace(target);
606 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(109, this->_internal_max_edge_finder_size(), target);
610 if (this->_internal_diffn_use_cumulative() != 0) {
611 target = stream->EnsureSpace(target);
612 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(110, this->_internal_diffn_use_cumulative(), target);
616 if (this->_internal_use_element_rmq() != 0) {
617 target = stream->EnsureSpace(target);
618 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(111, this->_internal_use_element_rmq(), target);
622 if (this->_internal_use_cumulative_time_table_sync() != 0) {
623 target = stream->EnsureSpace(target);
624 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(112, this->_internal_use_cumulative_time_table_sync(), target);
628 if (this->_internal_skip_locally_optimal_paths() != 0) {
629 target = stream->EnsureSpace(target);
630 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(113, this->_internal_skip_locally_optimal_paths(), target);
634 if (this->_internal_check_solution_period() != 0) {
635 target = stream->EnsureSpace(target);
636 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(114, this->_internal_check_solution_period(), target);
639 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
640 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
641 _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
649 size_t total_size = 0;
651 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
653 (void) cached_has_bits;
656 if (!this->_internal_profile_file().empty()) {
658 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
659 this->_internal_profile_file());
663 if (this->_internal_compress_trail() != 0) {
665 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_compress_trail());
669 if (this->_internal_trail_block_size() != 0) {
671 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
672 this->_internal_trail_block_size());
676 if (this->_internal_array_split_size() != 0) {
678 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
679 this->_internal_array_split_size());
683 if (this->_internal_store_names() != 0) {
688 if (this->_internal_name_cast_variables() != 0) {
693 if (this->_internal_name_all_variables() != 0) {
698 if (this->_internal_profile_propagation() != 0) {
703 if (this->_internal_print_model() != 0) {
708 if (this->_internal_print_model_stats() != 0) {
713 if (this->_internal_print_added_constraints() != 0) {
718 if (this->_internal_disable_solve() != 0) {
723 if (this->_internal_profile_local_search() != 0) {
728 if (this->_internal_print_local_search_profile() != 0) {
733 if (this->_internal_trace_propagation() != 0) {
738 if (this->_internal_trace_search() != 0) {
743 if (this->_internal_check_solution_period() != 0) {
745 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
746 this->_internal_check_solution_period());
750 if (this->_internal_use_small_table() != 0) {
755 if (this->_internal_use_cumulative_edge_finder() != 0) {
760 if (this->_internal_use_cumulative_time_table() != 0) {
765 if (this->_internal_use_cumulative_time_table_sync() != 0) {
770 if (this->_internal_max_edge_finder_size() != 0) {
772 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
773 this->_internal_max_edge_finder_size());
777 if (this->_internal_use_sequence_high_demand_tasks() != 0) {
782 if (this->_internal_use_all_possible_disjunctions() != 0) {
787 if (this->_internal_diffn_use_cumulative() != 0) {
792 if (this->_internal_use_element_rmq() != 0) {
797 if (this->_internal_skip_locally_optimal_paths() != 0) {
801 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
802 return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
803 _internal_metadata_, total_size, &_cached_size_);
805 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
806 SetCachedSize(cached_size);
811 ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
812 ConstraintSolverParameters::MergeImpl
816 void ConstraintSolverParameters::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message*to,
817 const ::PROTOBUF_NAMESPACE_ID::Message&from) {
818 static_cast<ConstraintSolverParameters *>(to)->MergeFrom(
819 static_cast<const ConstraintSolverParameters &>(from));
825 GOOGLE_DCHECK_NE(&from,
this);
826 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
827 (void) cached_has_bits;
829 if (!from._internal_profile_file().empty()) {
830 _internal_set_profile_file(from._internal_profile_file());
832 if (from._internal_compress_trail() != 0) {
833 _internal_set_compress_trail(from._internal_compress_trail());
835 if (from._internal_trail_block_size() != 0) {
836 _internal_set_trail_block_size(from._internal_trail_block_size());
838 if (from._internal_array_split_size() != 0) {
839 _internal_set_array_split_size(from._internal_array_split_size());
841 if (from._internal_store_names() != 0) {
842 _internal_set_store_names(from._internal_store_names());
844 if (from._internal_name_cast_variables() != 0) {
845 _internal_set_name_cast_variables(from._internal_name_cast_variables());
847 if (from._internal_name_all_variables() != 0) {
848 _internal_set_name_all_variables(from._internal_name_all_variables());
850 if (from._internal_profile_propagation() != 0) {
851 _internal_set_profile_propagation(from._internal_profile_propagation());
853 if (from._internal_print_model() != 0) {
854 _internal_set_print_model(from._internal_print_model());
856 if (from._internal_print_model_stats() != 0) {
857 _internal_set_print_model_stats(from._internal_print_model_stats());
859 if (from._internal_print_added_constraints() != 0) {
860 _internal_set_print_added_constraints(from._internal_print_added_constraints());
862 if (from._internal_disable_solve() != 0) {
863 _internal_set_disable_solve(from._internal_disable_solve());
865 if (from._internal_profile_local_search() != 0) {
866 _internal_set_profile_local_search(from._internal_profile_local_search());
868 if (from._internal_print_local_search_profile() != 0) {
869 _internal_set_print_local_search_profile(from._internal_print_local_search_profile());
871 if (from._internal_trace_propagation() != 0) {
872 _internal_set_trace_propagation(from._internal_trace_propagation());
874 if (from._internal_trace_search() != 0) {
875 _internal_set_trace_search(from._internal_trace_search());
877 if (from._internal_check_solution_period() != 0) {
878 _internal_set_check_solution_period(from._internal_check_solution_period());
880 if (from._internal_use_small_table() != 0) {
881 _internal_set_use_small_table(from._internal_use_small_table());
883 if (from._internal_use_cumulative_edge_finder() != 0) {
884 _internal_set_use_cumulative_edge_finder(from._internal_use_cumulative_edge_finder());
886 if (from._internal_use_cumulative_time_table() != 0) {
887 _internal_set_use_cumulative_time_table(from._internal_use_cumulative_time_table());
889 if (from._internal_use_cumulative_time_table_sync() != 0) {
890 _internal_set_use_cumulative_time_table_sync(from._internal_use_cumulative_time_table_sync());
892 if (from._internal_max_edge_finder_size() != 0) {
893 _internal_set_max_edge_finder_size(from._internal_max_edge_finder_size());
895 if (from._internal_use_sequence_high_demand_tasks() != 0) {
896 _internal_set_use_sequence_high_demand_tasks(from._internal_use_sequence_high_demand_tasks());
898 if (from._internal_use_all_possible_disjunctions() != 0) {
899 _internal_set_use_all_possible_disjunctions(from._internal_use_all_possible_disjunctions());
901 if (from._internal_diffn_use_cumulative() != 0) {
902 _internal_set_diffn_use_cumulative(from._internal_diffn_use_cumulative());
904 if (from._internal_use_element_rmq() != 0) {
905 _internal_set_use_element_rmq(from._internal_use_element_rmq());
907 if (from._internal_skip_locally_optimal_paths() != 0) {
908 _internal_set_skip_locally_optimal_paths(from._internal_skip_locally_optimal_paths());
910 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
915 if (&from ==
this)
return;
926 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
927 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
928 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
929 &profile_file_, GetArenaForAllocation(),
930 &other->profile_file_, other->GetArenaForAllocation()
932 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
934 +
sizeof(ConstraintSolverParameters::skip_locally_optimal_paths_)
936 reinterpret_cast<char*>(&compress_trail_),
937 reinterpret_cast<char*>(&other->compress_trail_));
941 return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
948 PROTOBUF_NAMESPACE_OPEN
950 return Arena::CreateMessageInternal< ::operations_research::ConstraintSolverParameters >(arena);
952 PROTOBUF_NAMESPACE_CLOSE
955 #include <google/protobuf/port_undef.inc> void CopyFrom(const ConstraintSolverParameters &from)
constexpr ConstraintSolverParametersDefaultTypeInternal()
~ConstraintSolverParametersDefaultTypeInternal()
const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto::offsets [] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
bool IsInitialized() const final
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void swap(IdMap< K, V > &a, IdMap< K, V > &b)
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto
::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto_once
PROTOBUF_ATTRIBUTE_WEAKconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable * descriptor_table_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto_getter()
ConstraintSolverParameters()
::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto[1]
static constexpr TrailCompression NO_COMPRESSION
::PROTOBUF_NAMESPACE_ID::uint8 * _InternalSerialize(::PROTOBUF_NAMESPACE_ID::uint8 *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const ** file_level_service_descriptors_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto
static constexpr int TrailCompression_ARRAYSIZE
ConstraintSolverParameters_TrailCompression
static constexpr TrailCompression TrailCompression_MAX
bool ConstraintSolverParameters_TrailCompression_IsValid(int value)
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ConstraintSolverParametersDefaultTypeInternal _ConstraintSolverParameters_default_instance_
~ConstraintSolverParameters() override
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * ConstraintSolverParameters_TrailCompression_descriptor()
void MergeFrom(const ConstraintSolverParameters &from)
size_t ByteSizeLong() const final
static const ClassData _class_data_
Collection of objects used to extend the Constraint Solver library.
ConstraintSolverParameters _instance
PROTOBUF_NAMESPACE_OPEN PROTOBUF_NOINLINE ::operations_research::ConstraintSolverParameters * Arena::CreateMaybeMessage< ::operations_research::ConstraintSolverParameters >(Arena *arena)
static constexpr ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema * schemas
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
::PROTOBUF_NAMESPACE_ID::Message const *const file_default_instances[]
static constexpr TrailCompression COMPRESS_WITH_ZLIB
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * file_level_enum_descriptors_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto[1]
static constexpr TrailCompression TrailCompression_MIN