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
20 constexpr ConstraintSolverParameters::ConstraintSolverParameters(
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){}
52 : _instance(::PROTOBUF_NAMESPACE_ID::
internal::ConstantInitialized{}) {}
66 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, _internal_metadata_),
70 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, compress_trail_),
71 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, trail_block_size_),
72 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, array_split_size_),
73 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, store_names_),
74 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, name_cast_variables_),
75 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, name_all_variables_),
76 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, profile_propagation_),
77 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, profile_file_),
78 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, profile_local_search_),
79 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, print_local_search_profile_),
80 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, trace_propagation_),
81 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, trace_search_),
82 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, print_model_),
83 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, print_model_stats_),
84 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, print_added_constraints_),
85 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, disable_solve_),
86 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, use_small_table_),
87 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, use_cumulative_edge_finder_),
88 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, use_cumulative_time_table_),
89 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, use_cumulative_time_table_sync_),
90 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, use_sequence_high_demand_tasks_),
91 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, use_all_possible_disjunctions_),
92 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, max_edge_finder_size_),
93 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, diffn_use_cumulative_),
94 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, use_element_rmq_),
95 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, skip_locally_optimal_paths_),
96 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, check_solution_period_),
99 { 0, -1,
sizeof(::operations_research::ConstraintSolverParameters)},
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",
144 PROTOBUF_ATTRIBUTE_WEAK ::PROTOBUF_NAMESPACE_ID::Metadata
167 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
172 constexpr
int ConstraintSolverParameters::TrailCompression_ARRAYSIZE;
181 ConstraintSolverParameters::ConstraintSolverParameters(::PROTOBUF_NAMESPACE_ID::Arena* arena)
182 : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
184 RegisterArenaDtor(arena);
187 ConstraintSolverParameters::ConstraintSolverParameters(
const ConstraintSolverParameters& from)
188 : ::PROTOBUF_NAMESPACE_ID::Message() {
189 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
190 profile_file_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
191 if (!from._internal_profile_file().empty()) {
192 profile_file_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_profile_file(),
195 ::memcpy(&compress_trail_, &from.compress_trail_,
196 static_cast<size_t>(
reinterpret_cast<char*
>(&skip_locally_optimal_paths_) -
197 reinterpret_cast<char*
>(&compress_trail_)) +
sizeof(skip_locally_optimal_paths_));
201 void ConstraintSolverParameters::SharedCtor() {
202 profile_file_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
203 ::memset(
reinterpret_cast<char*
>(
this) +
static_cast<size_t>(
204 reinterpret_cast<char*
>(&compress_trail_) -
reinterpret_cast<char*
>(
this)),
205 0,
static_cast<size_t>(
reinterpret_cast<char*
>(&skip_locally_optimal_paths_) -
206 reinterpret_cast<char*
>(&compress_trail_)) +
sizeof(skip_locally_optimal_paths_));
209 ConstraintSolverParameters::~ConstraintSolverParameters() {
212 _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
215 void ConstraintSolverParameters::SharedDtor() {
216 GOOGLE_DCHECK(GetArena() ==
nullptr);
217 profile_file_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
220 void ConstraintSolverParameters::ArenaDtor(
void*
object) {
221 ConstraintSolverParameters* _this =
reinterpret_cast< ConstraintSolverParameters*
>(object);
224 void ConstraintSolverParameters::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
226 void ConstraintSolverParameters::SetCachedSize(
int size)
const {
227 _cached_size_.Set(size);
230 void ConstraintSolverParameters::Clear() {
232 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
234 (void) cached_has_bits;
236 profile_file_.ClearToEmpty();
237 ::memset(&compress_trail_, 0,
static_cast<size_t>(
238 reinterpret_cast<char*
>(&skip_locally_optimal_paths_) -
239 reinterpret_cast<char*
>(&compress_trail_)) +
sizeof(skip_locally_optimal_paths_));
240 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
243 const char* ConstraintSolverParameters::_InternalParse(
const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
244 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
245 while (!ctx->Done(&ptr)) {
246 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
247 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
252 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 8)) {
253 ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
256 }
else goto handle_unusual;
260 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 16)) {
261 trail_block_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
263 }
else goto handle_unusual;
267 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 24)) {
268 array_split_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
270 }
else goto handle_unusual;
274 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 32)) {
275 store_names_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
277 }
else goto handle_unusual;
281 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 40)) {
282 name_cast_variables_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
284 }
else goto handle_unusual;
288 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 48)) {
289 name_all_variables_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
291 }
else goto handle_unusual;
295 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 56)) {
296 profile_propagation_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
298 }
else goto handle_unusual;
302 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 66)) {
303 auto str = _internal_mutable_profile_file();
304 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
305 CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str,
"operations_research.ConstraintSolverParameters.profile_file"));
307 }
else goto handle_unusual;
311 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 72)) {
312 trace_propagation_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
314 }
else goto handle_unusual;
318 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 80)) {
319 trace_search_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
321 }
else goto handle_unusual;
325 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 88)) {
326 print_model_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
328 }
else goto handle_unusual;
332 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 96)) {
333 print_model_stats_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
335 }
else goto handle_unusual;
339 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 104)) {
340 print_added_constraints_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
342 }
else goto handle_unusual;
346 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 120)) {
347 disable_solve_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
349 }
else goto handle_unusual;
353 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 128)) {
354 profile_local_search_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
356 }
else goto handle_unusual;
360 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 136)) {
361 print_local_search_profile_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
363 }
else goto handle_unusual;
367 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 40)) {
368 use_small_table_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
370 }
else goto handle_unusual;
374 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 72)) {
375 use_cumulative_edge_finder_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
377 }
else goto handle_unusual;
381 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 80)) {
382 use_cumulative_time_table_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
384 }
else goto handle_unusual;
388 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 88)) {
389 use_sequence_high_demand_tasks_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
391 }
else goto handle_unusual;
395 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 96)) {
396 use_all_possible_disjunctions_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
398 }
else goto handle_unusual;
402 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 104)) {
403 max_edge_finder_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
405 }
else goto handle_unusual;
409 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 112)) {
410 diffn_use_cumulative_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
412 }
else goto handle_unusual;
416 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 120)) {
417 use_element_rmq_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
419 }
else goto handle_unusual;
423 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 128)) {
424 use_cumulative_time_table_sync_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
426 }
else goto handle_unusual;
430 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 136)) {
431 skip_locally_optimal_paths_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
433 }
else goto handle_unusual;
437 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 144)) {
438 check_solution_period_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
440 }
else goto handle_unusual;
444 if ((tag & 7) == 4 || tag == 0) {
445 ctx->SetLastTag(tag);
448 ptr = UnknownFieldParse(tag,
449 _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
451 CHK_(ptr !=
nullptr);
464 ::PROTOBUF_NAMESPACE_ID::uint8* ConstraintSolverParameters::_InternalSerialize(
465 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream)
const {
467 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
468 (void) cached_has_bits;
471 if (this->compress_trail() != 0) {
472 target = stream->EnsureSpace(target);
473 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
474 1, this->_internal_compress_trail(), target);
478 if (this->trail_block_size() != 0) {
479 target = stream->EnsureSpace(target);
480 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_trail_block_size(), target);
484 if (this->array_split_size() != 0) {
485 target = stream->EnsureSpace(target);
486 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_array_split_size(), target);
490 if (this->store_names() != 0) {
491 target = stream->EnsureSpace(target);
492 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(4, this->_internal_store_names(), target);
496 if (this->name_cast_variables() != 0) {
497 target = stream->EnsureSpace(target);
498 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(5, this->_internal_name_cast_variables(), target);
502 if (this->name_all_variables() != 0) {
503 target = stream->EnsureSpace(target);
504 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(6, this->_internal_name_all_variables(), target);
508 if (this->profile_propagation() != 0) {
509 target = stream->EnsureSpace(target);
510 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(7, this->_internal_profile_propagation(), target);
514 if (this->profile_file().size() > 0) {
515 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
516 this->_internal_profile_file().data(),
static_cast<int>(this->_internal_profile_file().length()),
517 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
518 "operations_research.ConstraintSolverParameters.profile_file");
519 target = stream->WriteStringMaybeAliased(
520 8, this->_internal_profile_file(), target);
524 if (this->trace_propagation() != 0) {
525 target = stream->EnsureSpace(target);
526 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(9, this->_internal_trace_propagation(), target);
530 if (this->trace_search() != 0) {
531 target = stream->EnsureSpace(target);
532 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(10, this->_internal_trace_search(), target);
536 if (this->print_model() != 0) {
537 target = stream->EnsureSpace(target);
538 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(11, this->_internal_print_model(), target);
542 if (this->print_model_stats() != 0) {
543 target = stream->EnsureSpace(target);
544 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(12, this->_internal_print_model_stats(), target);
548 if (this->print_added_constraints() != 0) {
549 target = stream->EnsureSpace(target);
550 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(13, this->_internal_print_added_constraints(), target);
554 if (this->disable_solve() != 0) {
555 target = stream->EnsureSpace(target);
556 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(15, this->_internal_disable_solve(), target);
560 if (this->profile_local_search() != 0) {
561 target = stream->EnsureSpace(target);
562 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(16, this->_internal_profile_local_search(), target);
566 if (this->print_local_search_profile() != 0) {
567 target = stream->EnsureSpace(target);
568 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(17, this->_internal_print_local_search_profile(), target);
572 if (this->use_small_table() != 0) {
573 target = stream->EnsureSpace(target);
574 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(101, this->_internal_use_small_table(), target);
578 if (this->use_cumulative_edge_finder() != 0) {
579 target = stream->EnsureSpace(target);
580 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(105, this->_internal_use_cumulative_edge_finder(), target);
584 if (this->use_cumulative_time_table() != 0) {
585 target = stream->EnsureSpace(target);
586 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(106, this->_internal_use_cumulative_time_table(), target);
590 if (this->use_sequence_high_demand_tasks() != 0) {
591 target = stream->EnsureSpace(target);
592 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(107, this->_internal_use_sequence_high_demand_tasks(), target);
596 if (this->use_all_possible_disjunctions() != 0) {
597 target = stream->EnsureSpace(target);
598 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(108, this->_internal_use_all_possible_disjunctions(), target);
602 if (this->max_edge_finder_size() != 0) {
603 target = stream->EnsureSpace(target);
604 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(109, this->_internal_max_edge_finder_size(), target);
608 if (this->diffn_use_cumulative() != 0) {
609 target = stream->EnsureSpace(target);
610 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(110, this->_internal_diffn_use_cumulative(), target);
614 if (this->use_element_rmq() != 0) {
615 target = stream->EnsureSpace(target);
616 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(111, this->_internal_use_element_rmq(), target);
620 if (this->use_cumulative_time_table_sync() != 0) {
621 target = stream->EnsureSpace(target);
622 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(112, this->_internal_use_cumulative_time_table_sync(), target);
626 if (this->skip_locally_optimal_paths() != 0) {
627 target = stream->EnsureSpace(target);
628 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(113, this->_internal_skip_locally_optimal_paths(), target);
632 if (this->check_solution_period() != 0) {
633 target = stream->EnsureSpace(target);
634 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(114, this->_internal_check_solution_period(), target);
637 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
638 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
639 _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
645 size_t ConstraintSolverParameters::ByteSizeLong()
const {
647 size_t total_size = 0;
649 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
651 (void) cached_has_bits;
654 if (this->profile_file().size() > 0) {
656 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
657 this->_internal_profile_file());
661 if (this->compress_trail() != 0) {
663 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_compress_trail());
667 if (this->trail_block_size() != 0) {
669 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
670 this->_internal_trail_block_size());
674 if (this->array_split_size() != 0) {
676 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
677 this->_internal_array_split_size());
681 if (this->store_names() != 0) {
686 if (this->name_cast_variables() != 0) {
691 if (this->name_all_variables() != 0) {
696 if (this->profile_propagation() != 0) {
701 if (this->print_model() != 0) {
706 if (this->print_model_stats() != 0) {
711 if (this->print_added_constraints() != 0) {
716 if (this->disable_solve() != 0) {
721 if (this->profile_local_search() != 0) {
726 if (this->print_local_search_profile() != 0) {
731 if (this->trace_propagation() != 0) {
736 if (this->trace_search() != 0) {
741 if (this->check_solution_period() != 0) {
743 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
744 this->_internal_check_solution_period());
748 if (this->use_small_table() != 0) {
753 if (this->use_cumulative_edge_finder() != 0) {
758 if (this->use_cumulative_time_table() != 0) {
763 if (this->use_cumulative_time_table_sync() != 0) {
768 if (this->max_edge_finder_size() != 0) {
770 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
771 this->_internal_max_edge_finder_size());
775 if (this->use_sequence_high_demand_tasks() != 0) {
780 if (this->use_all_possible_disjunctions() != 0) {
785 if (this->diffn_use_cumulative() != 0) {
790 if (this->use_element_rmq() != 0) {
795 if (this->skip_locally_optimal_paths() != 0) {
799 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
800 return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
801 _internal_metadata_, total_size, &_cached_size_);
803 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
804 SetCachedSize(cached_size);
808 void ConstraintSolverParameters::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
810 GOOGLE_DCHECK_NE(&from,
this);
811 const ConstraintSolverParameters* source =
812 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ConstraintSolverParameters>(
814 if (source ==
nullptr) {
816 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from,
this);
823 void ConstraintSolverParameters::MergeFrom(
const ConstraintSolverParameters& from) {
825 GOOGLE_DCHECK_NE(&from,
this);
826 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
827 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
828 (void) cached_has_bits;
830 if (from.profile_file().size() > 0) {
831 _internal_set_profile_file(from._internal_profile_file());
833 if (from.compress_trail() != 0) {
834 _internal_set_compress_trail(from._internal_compress_trail());
836 if (from.trail_block_size() != 0) {
837 _internal_set_trail_block_size(from._internal_trail_block_size());
839 if (from.array_split_size() != 0) {
840 _internal_set_array_split_size(from._internal_array_split_size());
842 if (from.store_names() != 0) {
843 _internal_set_store_names(from._internal_store_names());
845 if (from.name_cast_variables() != 0) {
846 _internal_set_name_cast_variables(from._internal_name_cast_variables());
848 if (from.name_all_variables() != 0) {
849 _internal_set_name_all_variables(from._internal_name_all_variables());
851 if (from.profile_propagation() != 0) {
852 _internal_set_profile_propagation(from._internal_profile_propagation());
854 if (from.print_model() != 0) {
855 _internal_set_print_model(from._internal_print_model());
857 if (from.print_model_stats() != 0) {
858 _internal_set_print_model_stats(from._internal_print_model_stats());
860 if (from.print_added_constraints() != 0) {
861 _internal_set_print_added_constraints(from._internal_print_added_constraints());
863 if (from.disable_solve() != 0) {
864 _internal_set_disable_solve(from._internal_disable_solve());
866 if (from.profile_local_search() != 0) {
867 _internal_set_profile_local_search(from._internal_profile_local_search());
869 if (from.print_local_search_profile() != 0) {
870 _internal_set_print_local_search_profile(from._internal_print_local_search_profile());
872 if (from.trace_propagation() != 0) {
873 _internal_set_trace_propagation(from._internal_trace_propagation());
875 if (from.trace_search() != 0) {
876 _internal_set_trace_search(from._internal_trace_search());
878 if (from.check_solution_period() != 0) {
879 _internal_set_check_solution_period(from._internal_check_solution_period());
881 if (from.use_small_table() != 0) {
882 _internal_set_use_small_table(from._internal_use_small_table());
884 if (from.use_cumulative_edge_finder() != 0) {
885 _internal_set_use_cumulative_edge_finder(from._internal_use_cumulative_edge_finder());
887 if (from.use_cumulative_time_table() != 0) {
888 _internal_set_use_cumulative_time_table(from._internal_use_cumulative_time_table());
890 if (from.use_cumulative_time_table_sync() != 0) {
891 _internal_set_use_cumulative_time_table_sync(from._internal_use_cumulative_time_table_sync());
893 if (from.max_edge_finder_size() != 0) {
894 _internal_set_max_edge_finder_size(from._internal_max_edge_finder_size());
896 if (from.use_sequence_high_demand_tasks() != 0) {
897 _internal_set_use_sequence_high_demand_tasks(from._internal_use_sequence_high_demand_tasks());
899 if (from.use_all_possible_disjunctions() != 0) {
900 _internal_set_use_all_possible_disjunctions(from._internal_use_all_possible_disjunctions());
902 if (from.diffn_use_cumulative() != 0) {
903 _internal_set_diffn_use_cumulative(from._internal_diffn_use_cumulative());
905 if (from.use_element_rmq() != 0) {
906 _internal_set_use_element_rmq(from._internal_use_element_rmq());
908 if (from.skip_locally_optimal_paths() != 0) {
909 _internal_set_skip_locally_optimal_paths(from._internal_skip_locally_optimal_paths());
913 void ConstraintSolverParameters::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
915 if (&from ==
this)
return;
920 void ConstraintSolverParameters::CopyFrom(
const ConstraintSolverParameters& from) {
922 if (&from ==
this)
return;
927 bool ConstraintSolverParameters::IsInitialized()
const {
931 void ConstraintSolverParameters::InternalSwap(ConstraintSolverParameters* other) {
933 _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
934 profile_file_.Swap(&other->profile_file_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
935 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
936 PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, skip_locally_optimal_paths_)
937 +
sizeof(ConstraintSolverParameters::skip_locally_optimal_paths_)
938 - PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, compress_trail_)>(
939 reinterpret_cast<char*
>(&compress_trail_),
940 reinterpret_cast<char*
>(&other->compress_trail_));
943 ::PROTOBUF_NAMESPACE_ID::Metadata ConstraintSolverParameters::GetMetadata()
const {
944 return GetMetadataStatic();
950 PROTOBUF_NAMESPACE_OPEN
952 return Arena::CreateMessageInternal< ::operations_research::ConstraintSolverParameters >(arena);
954 PROTOBUF_NAMESPACE_CLOSE
957 #include <google/protobuf/port_undef.inc>
void swap(IdMap< K, V > &a, IdMap< K, V > &b)
Collection of objects used to extend the Constraint Solver library.
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT 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 constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const ** file_level_service_descriptors_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::internal::DescriptorTable descriptor_table_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto
const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
PROTOBUF_ATTRIBUTE_WEAK ::PROTOBUF_NAMESPACE_ID::Metadata descriptor_table_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto_metadata_getter(int index)
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
~ConstraintSolverParametersDefaultTypeInternal()
constexpr ConstraintSolverParametersDefaultTypeInternal()
ConstraintSolverParameters _instance