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>
20 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ConstraintSolverParameters>
_instance;
24 GOOGLE_PROTOBUF_VERIFY_VERSION;
28 new (ptr) ::operations_research::ConstraintSolverParameters();
29 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
42 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, _internal_metadata_),
46 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, compress_trail_),
47 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, trail_block_size_),
48 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, array_split_size_),
49 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, store_names_),
50 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, name_cast_variables_),
51 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, name_all_variables_),
52 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, profile_propagation_),
53 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, profile_file_),
54 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, profile_local_search_),
55 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, print_local_search_profile_),
56 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, trace_propagation_),
57 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, trace_search_),
58 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, print_model_),
59 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, print_model_stats_),
60 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, print_added_constraints_),
61 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, disable_solve_),
62 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, use_small_table_),
63 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, use_cumulative_edge_finder_),
64 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, use_cumulative_time_table_),
65 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, use_cumulative_time_table_sync_),
66 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, use_sequence_high_demand_tasks_),
67 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, use_all_possible_disjunctions_),
68 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, max_edge_finder_size_),
69 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, diffn_use_cumulative_),
70 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, use_element_rmq_),
71 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, skip_locally_optimal_paths_),
72 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, check_solution_period_),
75 { 0, -1,
sizeof(::operations_research::ConstraintSolverParameters)},
82 const char descriptor_table_protodef_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto[]
PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
83 "\n1ortools/constraint_solver/solver_param"
84 "eters.proto\022\023operations_research\"\315\007\n\032Con"
85 "straintSolverParameters\022X\n\016compress_trai"
86 "l\030\001 \001(\0162@.operations_research.Constraint"
87 "SolverParameters.TrailCompression\022\030\n\020tra"
88 "il_block_size\030\002 \001(\005\022\030\n\020array_split_size\030"
89 "\003 \001(\005\022\023\n\013store_names\030\004 \001(\010\022\033\n\023name_cast_"
90 "variables\030\005 \001(\010\022\032\n\022name_all_variables\030\006 "
91 "\001(\010\022\033\n\023profile_propagation\030\007 \001(\010\022\024\n\014prof"
92 "ile_file\030\010 \001(\t\022\034\n\024profile_local_search\030\020"
93 " \001(\010\022\"\n\032print_local_search_profile\030\021 \001(\010"
94 "\022\031\n\021trace_propagation\030\t \001(\010\022\024\n\014trace_sea"
95 "rch\030\n \001(\010\022\023\n\013print_model\030\013 \001(\010\022\031\n\021print_"
96 "model_stats\030\014 \001(\010\022\037\n\027print_added_constra"
97 "ints\030\r \001(\010\022\025\n\rdisable_solve\030\017 \001(\010\022\027\n\017use"
98 "_small_table\030e \001(\010\022\"\n\032use_cumulative_edg"
99 "e_finder\030i \001(\010\022!\n\031use_cumulative_time_ta"
100 "ble\030j \001(\010\022&\n\036use_cumulative_time_table_s"
101 "ync\030p \001(\010\022&\n\036use_sequence_high_demand_ta"
102 "sks\030k \001(\010\022%\n\035use_all_possible_disjunctio"
103 "ns\030l \001(\010\022\034\n\024max_edge_finder_size\030m \001(\005\022\034"
104 "\n\024diffn_use_cumulative\030n \001(\010\022\027\n\017use_elem"
105 "ent_rmq\030o \001(\010\022\"\n\032skip_locally_optimal_pa"
106 "ths\030q \001(\010\022\035\n\025check_solution_period\030r \001(\005"
107 "\">\n\020TrailCompression\022\022\n\016NO_COMPRESSION\020\000"
108 "\022\026\n\022COMPRESS_WITH_ZLIB\020\001J\004\010d\020eJ\004\010f\020gJ\004\010g"
109 "\020hJ\004\010h\020iBI\n#com.google.ortools.constrain"
110 "tsolverP\001\252\002\037Google.OrTools.ConstraintSol"
120 false,
false, descriptor_table_protodef_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto,
"ortools/constraint_solver/solver_parameters.proto", 1131,
143 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
148 constexpr
int ConstraintSolverParameters::TrailCompression_ARRAYSIZE;
157 ConstraintSolverParameters::ConstraintSolverParameters(::PROTOBUF_NAMESPACE_ID::Arena* arena)
158 : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
160 RegisterArenaDtor(arena);
163 ConstraintSolverParameters::ConstraintSolverParameters(
const ConstraintSolverParameters& from)
164 : ::PROTOBUF_NAMESPACE_ID::Message() {
165 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
166 profile_file_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
167 if (!from._internal_profile_file().empty()) {
168 profile_file_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_profile_file(),
171 ::memcpy(&compress_trail_, &from.compress_trail_,
172 static_cast<size_t>(
reinterpret_cast<char*
>(&skip_locally_optimal_paths_) -
173 reinterpret_cast<char*
>(&compress_trail_)) +
sizeof(skip_locally_optimal_paths_));
177 void ConstraintSolverParameters::SharedCtor() {
179 profile_file_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
180 ::memset(
reinterpret_cast<char*
>(
this) +
static_cast<size_t>(
181 reinterpret_cast<char*
>(&compress_trail_) -
reinterpret_cast<char*
>(
this)),
182 0,
static_cast<size_t>(
reinterpret_cast<char*
>(&skip_locally_optimal_paths_) -
183 reinterpret_cast<char*
>(&compress_trail_)) +
sizeof(skip_locally_optimal_paths_));
186 ConstraintSolverParameters::~ConstraintSolverParameters() {
189 _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
192 void ConstraintSolverParameters::SharedDtor() {
193 GOOGLE_DCHECK(GetArena() ==
nullptr);
194 profile_file_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
197 void ConstraintSolverParameters::ArenaDtor(
void*
object) {
198 ConstraintSolverParameters* _this =
reinterpret_cast< ConstraintSolverParameters*
>(object);
201 void ConstraintSolverParameters::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
203 void ConstraintSolverParameters::SetCachedSize(
int size)
const {
204 _cached_size_.Set(size);
206 const ConstraintSolverParameters& ConstraintSolverParameters::default_instance() {
208 return *internal_default_instance();
212 void ConstraintSolverParameters::Clear() {
216 (void) cached_has_bits;
218 profile_file_.ClearToEmpty();
219 ::memset(&compress_trail_, 0,
static_cast<size_t>(
220 reinterpret_cast<char*
>(&skip_locally_optimal_paths_) -
221 reinterpret_cast<char*
>(&compress_trail_)) +
sizeof(skip_locally_optimal_paths_));
222 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
225 const char* ConstraintSolverParameters::_InternalParse(
const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
226 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
227 while (!ctx->Done(&ptr)) {
229 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
238 }
else goto handle_unusual;
243 trail_block_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
245 }
else goto handle_unusual;
250 array_split_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
252 }
else goto handle_unusual;
257 store_names_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
259 }
else goto handle_unusual;
264 name_cast_variables_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
266 }
else goto handle_unusual;
271 name_all_variables_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
273 }
else goto handle_unusual;
278 profile_propagation_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
280 }
else goto handle_unusual;
285 auto str = _internal_mutable_profile_file();
286 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
287 CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str,
"operations_research.ConstraintSolverParameters.profile_file"));
289 }
else goto handle_unusual;
294 trace_propagation_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
296 }
else goto handle_unusual;
301 trace_search_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
303 }
else goto handle_unusual;
308 print_model_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
310 }
else goto handle_unusual;
315 print_model_stats_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
317 }
else goto handle_unusual;
322 print_added_constraints_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
324 }
else goto handle_unusual;
329 disable_solve_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
331 }
else goto handle_unusual;
336 profile_local_search_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
338 }
else goto handle_unusual;
343 print_local_search_profile_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
345 }
else goto handle_unusual;
350 use_small_table_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
352 }
else goto handle_unusual;
357 use_cumulative_edge_finder_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
359 }
else goto handle_unusual;
364 use_cumulative_time_table_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
366 }
else goto handle_unusual;
371 use_sequence_high_demand_tasks_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
373 }
else goto handle_unusual;
378 use_all_possible_disjunctions_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
380 }
else goto handle_unusual;
385 max_edge_finder_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
387 }
else goto handle_unusual;
392 diffn_use_cumulative_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
394 }
else goto handle_unusual;
399 use_element_rmq_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
401 }
else goto handle_unusual;
406 use_cumulative_time_table_sync_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
408 }
else goto handle_unusual;
413 skip_locally_optimal_paths_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
415 }
else goto handle_unusual;
420 check_solution_period_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
422 }
else goto handle_unusual;
426 if ((tag & 7) == 4 || tag == 0) {
427 ctx->SetLastTag(tag);
430 ptr = UnknownFieldParse(tag,
431 _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
433 CHK_(ptr !=
nullptr);
450 (void) cached_has_bits;
453 if (this->compress_trail() != 0) {
454 target = stream->EnsureSpace(target);
455 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
456 1, this->_internal_compress_trail(), target);
460 if (this->trail_block_size() != 0) {
461 target = stream->EnsureSpace(target);
462 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_trail_block_size(), target);
466 if (this->array_split_size() != 0) {
467 target = stream->EnsureSpace(target);
468 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_array_split_size(), target);
472 if (this->store_names() != 0) {
473 target = stream->EnsureSpace(target);
474 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(4, this->_internal_store_names(), target);
478 if (this->name_cast_variables() != 0) {
479 target = stream->EnsureSpace(target);
480 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(5, this->_internal_name_cast_variables(), target);
484 if (this->name_all_variables() != 0) {
485 target = stream->EnsureSpace(target);
486 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(6, this->_internal_name_all_variables(), target);
490 if (this->profile_propagation() != 0) {
491 target = stream->EnsureSpace(target);
492 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(7, this->_internal_profile_propagation(), target);
496 if (this->profile_file().size() > 0) {
497 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
498 this->_internal_profile_file().data(),
static_cast<int>(this->_internal_profile_file().length()),
499 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
500 "operations_research.ConstraintSolverParameters.profile_file");
501 target = stream->WriteStringMaybeAliased(
502 8, this->_internal_profile_file(), target);
506 if (this->trace_propagation() != 0) {
507 target = stream->EnsureSpace(target);
508 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(9, this->_internal_trace_propagation(), target);
512 if (this->trace_search() != 0) {
513 target = stream->EnsureSpace(target);
514 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(10, this->_internal_trace_search(), target);
518 if (this->print_model() != 0) {
519 target = stream->EnsureSpace(target);
520 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(11, this->_internal_print_model(), target);
524 if (this->print_model_stats() != 0) {
525 target = stream->EnsureSpace(target);
526 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(12, this->_internal_print_model_stats(), target);
530 if (this->print_added_constraints() != 0) {
531 target = stream->EnsureSpace(target);
532 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(13, this->_internal_print_added_constraints(), target);
536 if (this->disable_solve() != 0) {
537 target = stream->EnsureSpace(target);
538 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(15, this->_internal_disable_solve(), target);
542 if (this->profile_local_search() != 0) {
543 target = stream->EnsureSpace(target);
544 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(16, this->_internal_profile_local_search(), target);
548 if (this->print_local_search_profile() != 0) {
549 target = stream->EnsureSpace(target);
550 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(17, this->_internal_print_local_search_profile(), target);
554 if (this->use_small_table() != 0) {
555 target = stream->EnsureSpace(target);
556 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(101, this->_internal_use_small_table(), target);
560 if (this->use_cumulative_edge_finder() != 0) {
561 target = stream->EnsureSpace(target);
562 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(105, this->_internal_use_cumulative_edge_finder(), target);
566 if (this->use_cumulative_time_table() != 0) {
567 target = stream->EnsureSpace(target);
568 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(106, this->_internal_use_cumulative_time_table(), target);
572 if (this->use_sequence_high_demand_tasks() != 0) {
573 target = stream->EnsureSpace(target);
574 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(107, this->_internal_use_sequence_high_demand_tasks(), target);
578 if (this->use_all_possible_disjunctions() != 0) {
579 target = stream->EnsureSpace(target);
580 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(108, this->_internal_use_all_possible_disjunctions(), target);
584 if (this->max_edge_finder_size() != 0) {
585 target = stream->EnsureSpace(target);
586 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(109, this->_internal_max_edge_finder_size(), target);
590 if (this->diffn_use_cumulative() != 0) {
591 target = stream->EnsureSpace(target);
592 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(110, this->_internal_diffn_use_cumulative(), target);
596 if (this->use_element_rmq() != 0) {
597 target = stream->EnsureSpace(target);
598 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(111, this->_internal_use_element_rmq(), target);
602 if (this->use_cumulative_time_table_sync() != 0) {
603 target = stream->EnsureSpace(target);
604 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(112, this->_internal_use_cumulative_time_table_sync(), target);
608 if (this->skip_locally_optimal_paths() != 0) {
609 target = stream->EnsureSpace(target);
610 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(113, this->_internal_skip_locally_optimal_paths(), target);
614 if (this->check_solution_period() != 0) {
615 target = stream->EnsureSpace(target);
616 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(114, this->_internal_check_solution_period(), target);
619 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
620 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
621 _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
627 size_t ConstraintSolverParameters::ByteSizeLong()
const {
629 size_t total_size = 0;
633 (void) cached_has_bits;
636 if (this->profile_file().size() > 0) {
638 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
639 this->_internal_profile_file());
643 if (this->compress_trail() != 0) {
645 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_compress_trail());
649 if (this->trail_block_size() != 0) {
651 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
652 this->_internal_trail_block_size());
656 if (this->array_split_size() != 0) {
658 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
659 this->_internal_array_split_size());
663 if (this->store_names() != 0) {
668 if (this->name_cast_variables() != 0) {
673 if (this->name_all_variables() != 0) {
678 if (this->profile_propagation() != 0) {
683 if (this->print_model() != 0) {
688 if (this->print_model_stats() != 0) {
693 if (this->print_added_constraints() != 0) {
698 if (this->disable_solve() != 0) {
703 if (this->profile_local_search() != 0) {
708 if (this->print_local_search_profile() != 0) {
713 if (this->trace_propagation() != 0) {
718 if (this->trace_search() != 0) {
723 if (this->check_solution_period() != 0) {
725 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
726 this->_internal_check_solution_period());
730 if (this->use_small_table() != 0) {
735 if (this->use_cumulative_edge_finder() != 0) {
740 if (this->use_cumulative_time_table() != 0) {
745 if (this->use_cumulative_time_table_sync() != 0) {
750 if (this->max_edge_finder_size() != 0) {
752 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
753 this->_internal_max_edge_finder_size());
757 if (this->use_sequence_high_demand_tasks() != 0) {
762 if (this->use_all_possible_disjunctions() != 0) {
767 if (this->diffn_use_cumulative() != 0) {
772 if (this->use_element_rmq() != 0) {
777 if (this->skip_locally_optimal_paths() != 0) {
781 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
782 return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
783 _internal_metadata_, total_size, &_cached_size_);
785 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
786 SetCachedSize(cached_size);
790 void ConstraintSolverParameters::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
792 GOOGLE_DCHECK_NE(&from,
this);
793 const ConstraintSolverParameters* source =
794 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ConstraintSolverParameters>(
796 if (source ==
nullptr) {
798 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from,
this);
805 void ConstraintSolverParameters::MergeFrom(
const ConstraintSolverParameters& from) {
807 GOOGLE_DCHECK_NE(&from,
this);
808 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
810 (void) cached_has_bits;
812 if (from.profile_file().size() > 0) {
813 _internal_set_profile_file(from._internal_profile_file());
815 if (from.compress_trail() != 0) {
816 _internal_set_compress_trail(from._internal_compress_trail());
818 if (from.trail_block_size() != 0) {
819 _internal_set_trail_block_size(from._internal_trail_block_size());
821 if (from.array_split_size() != 0) {
822 _internal_set_array_split_size(from._internal_array_split_size());
824 if (from.store_names() != 0) {
825 _internal_set_store_names(from._internal_store_names());
827 if (from.name_cast_variables() != 0) {
828 _internal_set_name_cast_variables(from._internal_name_cast_variables());
830 if (from.name_all_variables() != 0) {
831 _internal_set_name_all_variables(from._internal_name_all_variables());
833 if (from.profile_propagation() != 0) {
834 _internal_set_profile_propagation(from._internal_profile_propagation());
836 if (from.print_model() != 0) {
837 _internal_set_print_model(from._internal_print_model());
839 if (from.print_model_stats() != 0) {
840 _internal_set_print_model_stats(from._internal_print_model_stats());
842 if (from.print_added_constraints() != 0) {
843 _internal_set_print_added_constraints(from._internal_print_added_constraints());
845 if (from.disable_solve() != 0) {
846 _internal_set_disable_solve(from._internal_disable_solve());
848 if (from.profile_local_search() != 0) {
849 _internal_set_profile_local_search(from._internal_profile_local_search());
851 if (from.print_local_search_profile() != 0) {
852 _internal_set_print_local_search_profile(from._internal_print_local_search_profile());
854 if (from.trace_propagation() != 0) {
855 _internal_set_trace_propagation(from._internal_trace_propagation());
857 if (from.trace_search() != 0) {
858 _internal_set_trace_search(from._internal_trace_search());
860 if (from.check_solution_period() != 0) {
861 _internal_set_check_solution_period(from._internal_check_solution_period());
863 if (from.use_small_table() != 0) {
864 _internal_set_use_small_table(from._internal_use_small_table());
866 if (from.use_cumulative_edge_finder() != 0) {
867 _internal_set_use_cumulative_edge_finder(from._internal_use_cumulative_edge_finder());
869 if (from.use_cumulative_time_table() != 0) {
870 _internal_set_use_cumulative_time_table(from._internal_use_cumulative_time_table());
872 if (from.use_cumulative_time_table_sync() != 0) {
873 _internal_set_use_cumulative_time_table_sync(from._internal_use_cumulative_time_table_sync());
875 if (from.max_edge_finder_size() != 0) {
876 _internal_set_max_edge_finder_size(from._internal_max_edge_finder_size());
878 if (from.use_sequence_high_demand_tasks() != 0) {
879 _internal_set_use_sequence_high_demand_tasks(from._internal_use_sequence_high_demand_tasks());
881 if (from.use_all_possible_disjunctions() != 0) {
882 _internal_set_use_all_possible_disjunctions(from._internal_use_all_possible_disjunctions());
884 if (from.diffn_use_cumulative() != 0) {
885 _internal_set_diffn_use_cumulative(from._internal_diffn_use_cumulative());
887 if (from.use_element_rmq() != 0) {
888 _internal_set_use_element_rmq(from._internal_use_element_rmq());
890 if (from.skip_locally_optimal_paths() != 0) {
891 _internal_set_skip_locally_optimal_paths(from._internal_skip_locally_optimal_paths());
895 void ConstraintSolverParameters::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
897 if (&from ==
this)
return;
902 void ConstraintSolverParameters::CopyFrom(
const ConstraintSolverParameters& from) {
904 if (&from ==
this)
return;
909 bool ConstraintSolverParameters::IsInitialized()
const {
913 void ConstraintSolverParameters::InternalSwap(ConstraintSolverParameters* other) {
915 _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
916 profile_file_.Swap(&other->profile_file_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
917 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
918 PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, skip_locally_optimal_paths_)
919 +
sizeof(ConstraintSolverParameters::skip_locally_optimal_paths_)
920 - PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, compress_trail_)>(
921 reinterpret_cast<char*
>(&compress_trail_),
922 reinterpret_cast<char*
>(&other->compress_trail_));
925 ::PROTOBUF_NAMESPACE_ID::Metadata ConstraintSolverParameters::GetMetadata()
const {
926 return GetMetadataStatic();
932 PROTOBUF_NAMESPACE_OPEN
934 return Arena::CreateMessageInternal< ::operations_research::ConstraintSolverParameters >(arena);
936 PROTOBUF_NAMESPACE_CLOSE
939 #include <google/protobuf/port_undef.inc>
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed< ConstraintSolverParameters > _instance
The vehicle routing library lets one model and solve generic vehicle routing problems ranging from th...
class operations_research::ConstraintSolverParametersDefaultTypeInternal _ConstraintSolverParameters_default_instance_
bool ConstraintSolverParameters_TrailCompression_IsValid(int value)
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * ConstraintSolverParameters_TrailCompression_descriptor()
ConstraintSolverParameters_TrailCompression
static constexpr ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema * schemas
static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable *const descriptor_table_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto_deps[1]
static bool dynamic_init_dummy_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo< 0 > scc_info_ConstraintSolverParameters_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto
static void InitDefaultsscc_info_ConstraintSolverParameters_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto()
static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const ** file_level_service_descriptors_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto
PROTOBUF_NAMESPACE_OPEN PROTOBUF_NOINLINE ::operations_research::ConstraintSolverParameters * Arena::CreateMaybeMessage< ::operations_research::ConstraintSolverParameters >(Arena *arena)
::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto[1]
::PROTOBUF_NAMESPACE_ID::Message const *const file_default_instances[]
const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * file_level_enum_descriptors_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto[1]
::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto_once
::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase *const descriptor_table_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto_sccs[1]