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>
18PROTOBUF_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){}
107const char descriptor_table_protodef_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto[]
PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
108 "\n1ortools/constraint_solver/solver_param"
109 "eters.proto\022\023operations_research\"\315\007\n\032Con"
110 "straintSolverParameters\022X\n\016compress_trai"
111 "l\030\001 \001(\0162@.operations_research.Constraint"
112 "SolverParameters.TrailCompression\022\030\n\020tra"
113 "il_block_size\030\002 \001(\005\022\030\n\020array_split_size\030"
114 "\003 \001(\005\022\023\n\013store_names\030\004 \001(\010\022\033\n\023name_cast_"
115 "variables\030\005 \001(\010\022\032\n\022name_all_variables\030\006 "
116 "\001(\010\022\033\n\023profile_propagation\030\007 \001(\010\022\024\n\014prof"
117 "ile_file\030\010 \001(\t\022\034\n\024profile_local_search\030\020"
118 " \001(\010\022\"\n\032print_local_search_profile\030\021 \001(\010"
119 "\022\031\n\021trace_propagation\030\t \001(\010\022\024\n\014trace_sea"
120 "rch\030\n \001(\010\022\023\n\013print_model\030\013 \001(\010\022\031\n\021print_"
121 "model_stats\030\014 \001(\010\022\037\n\027print_added_constra"
122 "ints\030\r \001(\010\022\025\n\rdisable_solve\030\017 \001(\010\022\027\n\017use"
123 "_small_table\030e \001(\010\022\"\n\032use_cumulative_edg"
124 "e_finder\030i \001(\010\022!\n\031use_cumulative_time_ta"
125 "ble\030j \001(\010\022&\n\036use_cumulative_time_table_s"
126 "ync\030p \001(\010\022&\n\036use_sequence_high_demand_ta"
127 "sks\030k \001(\010\022%\n\035use_all_possible_disjunctio"
128 "ns\030l \001(\010\022\034\n\024max_edge_finder_size\030m \001(\005\022\034"
129 "\n\024diffn_use_cumulative\030n \001(\010\022\027\n\017use_elem"
130 "ent_rmq\030o \001(\010\022\"\n\032skip_locally_optimal_pa"
131 "ths\030q \001(\010\022\035\n\025check_solution_period\030r \001(\005"
132 "\">\n\020TrailCompression\022\022\n\016NO_COMPRESSION\020\000"
133 "\022\026\n\022COMPRESS_WITH_ZLIB\020\001J\004\010d\020eJ\004\010f\020gJ\004\010g"
134 "\020hJ\004\010h\020iBI\n#com.google.ortools.constrain"
135 "tsolverP\001\252\002\037Google.OrTools.ConstraintSol"
140 false,
false, 1131, descriptor_table_protodef_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto,
"ortools/constraint_solver/solver_parameters.proto",
166#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
181 bool is_message_owned)
182 : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
184 if (!is_message_owned) {
185 RegisterArenaDtor(arena);
190 : ::PROTOBUF_NAMESPACE_ID::Message() {
191 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
192 profile_file_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
193 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
194 profile_file_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
"", GetArenaForAllocation());
196 if (!from._internal_profile_file().empty()) {
197 profile_file_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_profile_file(),
198 GetArenaForAllocation());
200 ::memcpy(&compress_trail_, &from.compress_trail_,
201 static_cast<size_t>(
reinterpret_cast<char*
>(&skip_locally_optimal_paths_) -
202 reinterpret_cast<char*
>(&compress_trail_)) +
sizeof(skip_locally_optimal_paths_));
206inline void ConstraintSolverParameters::SharedCtor() {
207profile_file_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
208#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
209 profile_file_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
"", GetArenaForAllocation());
211::memset(
reinterpret_cast<char*
>(
this) +
static_cast<size_t>(
212 reinterpret_cast<char*
>(&compress_trail_) -
reinterpret_cast<char*
>(
this)),
213 0,
static_cast<size_t>(
reinterpret_cast<char*
>(&skip_locally_optimal_paths_) -
214 reinterpret_cast<char*
>(&compress_trail_)) +
sizeof(skip_locally_optimal_paths_));
219 if (GetArenaForAllocation() !=
nullptr)
return;
221 _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
224inline void ConstraintSolverParameters::SharedDtor() {
225 GOOGLE_DCHECK(GetArenaForAllocation() ==
nullptr);
226 profile_file_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
229void ConstraintSolverParameters::ArenaDtor(
void*
object) {
233void ConstraintSolverParameters::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
235void ConstraintSolverParameters::SetCachedSize(
int size)
const {
236 _cached_size_.Set(size);
241 uint32_t cached_has_bits = 0;
243 (void) cached_has_bits;
245 profile_file_.ClearToEmpty();
246 ::memset(&compress_trail_, 0,
static_cast<size_t>(
247 reinterpret_cast<char*
>(&skip_locally_optimal_paths_) -
248 reinterpret_cast<char*
>(&compress_trail_)) +
sizeof(skip_locally_optimal_paths_));
249 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
253#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
254 while (!ctx->Done(&ptr)) {
256 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
260 if (PROTOBUF_PREDICT_TRUE(
static_cast<uint8_t
>(tag) == 8)) {
261 uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
269 if (PROTOBUF_PREDICT_TRUE(
static_cast<uint8_t
>(tag) == 16)) {
270 trail_block_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
277 if (PROTOBUF_PREDICT_TRUE(
static_cast<uint8_t
>(tag) == 24)) {
278 array_split_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
285 if (PROTOBUF_PREDICT_TRUE(
static_cast<uint8_t
>(tag) == 32)) {
286 store_names_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
293 if (PROTOBUF_PREDICT_TRUE(
static_cast<uint8_t
>(tag) == 40)) {
294 name_cast_variables_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
301 if (PROTOBUF_PREDICT_TRUE(
static_cast<uint8_t
>(tag) == 48)) {
302 name_all_variables_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
309 if (PROTOBUF_PREDICT_TRUE(
static_cast<uint8_t
>(tag) == 56)) {
310 profile_propagation_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
317 if (PROTOBUF_PREDICT_TRUE(
static_cast<uint8_t
>(tag) == 66)) {
318 auto str = _internal_mutable_profile_file();
319 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
320 CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str,
"operations_research.ConstraintSolverParameters.profile_file"));
327 if (PROTOBUF_PREDICT_TRUE(
static_cast<uint8_t
>(tag) == 72)) {
328 trace_propagation_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
335 if (PROTOBUF_PREDICT_TRUE(
static_cast<uint8_t
>(tag) == 80)) {
336 trace_search_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
343 if (PROTOBUF_PREDICT_TRUE(
static_cast<uint8_t
>(tag) == 88)) {
344 print_model_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
351 if (PROTOBUF_PREDICT_TRUE(
static_cast<uint8_t
>(tag) == 96)) {
352 print_model_stats_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
359 if (PROTOBUF_PREDICT_TRUE(
static_cast<uint8_t
>(tag) == 104)) {
360 print_added_constraints_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
367 if (PROTOBUF_PREDICT_TRUE(
static_cast<uint8_t
>(tag) == 120)) {
368 disable_solve_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
375 if (PROTOBUF_PREDICT_TRUE(
static_cast<uint8_t
>(tag) == 128)) {
376 profile_local_search_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
383 if (PROTOBUF_PREDICT_TRUE(
static_cast<uint8_t
>(tag) == 136)) {
384 print_local_search_profile_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
391 if (PROTOBUF_PREDICT_TRUE(
static_cast<uint8_t
>(tag) == 40)) {
392 use_small_table_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
399 if (PROTOBUF_PREDICT_TRUE(
static_cast<uint8_t
>(tag) == 72)) {
400 use_cumulative_edge_finder_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
407 if (PROTOBUF_PREDICT_TRUE(
static_cast<uint8_t
>(tag) == 80)) {
408 use_cumulative_time_table_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
415 if (PROTOBUF_PREDICT_TRUE(
static_cast<uint8_t
>(tag) == 88)) {
416 use_sequence_high_demand_tasks_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
423 if (PROTOBUF_PREDICT_TRUE(
static_cast<uint8_t
>(tag) == 96)) {
424 use_all_possible_disjunctions_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
431 if (PROTOBUF_PREDICT_TRUE(
static_cast<uint8_t
>(tag) == 104)) {
432 max_edge_finder_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
439 if (PROTOBUF_PREDICT_TRUE(
static_cast<uint8_t
>(tag) == 112)) {
440 diffn_use_cumulative_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
447 if (PROTOBUF_PREDICT_TRUE(
static_cast<uint8_t
>(tag) == 120)) {
448 use_element_rmq_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
455 if (PROTOBUF_PREDICT_TRUE(
static_cast<uint8_t
>(tag) == 128)) {
456 use_cumulative_time_table_sync_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
463 if (PROTOBUF_PREDICT_TRUE(
static_cast<uint8_t
>(tag) == 136)) {
464 skip_locally_optimal_paths_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
471 if (PROTOBUF_PREDICT_TRUE(
static_cast<uint8_t
>(tag) == 144)) {
472 check_solution_period_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
481 if ((tag == 0) || ((tag & 7) == 4)) {
483 ctx->SetLastTag(tag);
486 ptr = UnknownFieldParse(
488 _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
490 CHK_(ptr !=
nullptr);
501 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream)
const {
503 uint32_t cached_has_bits = 0;
504 (void) cached_has_bits;
507 if (this->_internal_compress_trail() != 0) {
508 target = stream->EnsureSpace(target);
509 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
510 1, this->_internal_compress_trail(), target);
514 if (this->_internal_trail_block_size() != 0) {
515 target = stream->EnsureSpace(target);
516 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_trail_block_size(), target);
520 if (this->_internal_array_split_size() != 0) {
521 target = stream->EnsureSpace(target);
522 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_array_split_size(), target);
526 if (this->_internal_store_names() != 0) {
527 target = stream->EnsureSpace(target);
528 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(4, this->_internal_store_names(), target);
532 if (this->_internal_name_cast_variables() != 0) {
533 target = stream->EnsureSpace(target);
534 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(5, this->_internal_name_cast_variables(), target);
538 if (this->_internal_name_all_variables() != 0) {
539 target = stream->EnsureSpace(target);
540 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(6, this->_internal_name_all_variables(), target);
544 if (this->_internal_profile_propagation() != 0) {
545 target = stream->EnsureSpace(target);
546 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(7, this->_internal_profile_propagation(), target);
550 if (!this->_internal_profile_file().empty()) {
551 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
552 this->_internal_profile_file().data(),
static_cast<int>(this->_internal_profile_file().length()),
553 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
554 "operations_research.ConstraintSolverParameters.profile_file");
555 target = stream->WriteStringMaybeAliased(
556 8, this->_internal_profile_file(), target);
560 if (this->_internal_trace_propagation() != 0) {
561 target = stream->EnsureSpace(target);
562 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(9, this->_internal_trace_propagation(), target);
566 if (this->_internal_trace_search() != 0) {
567 target = stream->EnsureSpace(target);
568 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(10, this->_internal_trace_search(), target);
572 if (this->_internal_print_model() != 0) {
573 target = stream->EnsureSpace(target);
574 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(11, this->_internal_print_model(), target);
578 if (this->_internal_print_model_stats() != 0) {
579 target = stream->EnsureSpace(target);
580 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(12, this->_internal_print_model_stats(), target);
584 if (this->_internal_print_added_constraints() != 0) {
585 target = stream->EnsureSpace(target);
586 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(13, this->_internal_print_added_constraints(), target);
590 if (this->_internal_disable_solve() != 0) {
591 target = stream->EnsureSpace(target);
592 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(15, this->_internal_disable_solve(), target);
596 if (this->_internal_profile_local_search() != 0) {
597 target = stream->EnsureSpace(target);
598 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(16, this->_internal_profile_local_search(), target);
602 if (this->_internal_print_local_search_profile() != 0) {
603 target = stream->EnsureSpace(target);
604 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(17, this->_internal_print_local_search_profile(), target);
608 if (this->_internal_use_small_table() != 0) {
609 target = stream->EnsureSpace(target);
610 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(101, this->_internal_use_small_table(), target);
614 if (this->_internal_use_cumulative_edge_finder() != 0) {
615 target = stream->EnsureSpace(target);
616 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(105, this->_internal_use_cumulative_edge_finder(), target);
620 if (this->_internal_use_cumulative_time_table() != 0) {
621 target = stream->EnsureSpace(target);
622 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(106, this->_internal_use_cumulative_time_table(), target);
626 if (this->_internal_use_sequence_high_demand_tasks() != 0) {
627 target = stream->EnsureSpace(target);
628 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(107, this->_internal_use_sequence_high_demand_tasks(), target);
632 if (this->_internal_use_all_possible_disjunctions() != 0) {
633 target = stream->EnsureSpace(target);
634 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(108, this->_internal_use_all_possible_disjunctions(), target);
638 if (this->_internal_max_edge_finder_size() != 0) {
639 target = stream->EnsureSpace(target);
640 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(109, this->_internal_max_edge_finder_size(), target);
644 if (this->_internal_diffn_use_cumulative() != 0) {
645 target = stream->EnsureSpace(target);
646 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(110, this->_internal_diffn_use_cumulative(), target);
650 if (this->_internal_use_element_rmq() != 0) {
651 target = stream->EnsureSpace(target);
652 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(111, this->_internal_use_element_rmq(), target);
656 if (this->_internal_use_cumulative_time_table_sync() != 0) {
657 target = stream->EnsureSpace(target);
658 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(112, this->_internal_use_cumulative_time_table_sync(), target);
662 if (this->_internal_skip_locally_optimal_paths() != 0) {
663 target = stream->EnsureSpace(target);
664 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(113, this->_internal_skip_locally_optimal_paths(), target);
668 if (this->_internal_check_solution_period() != 0) {
669 target = stream->EnsureSpace(target);
670 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(114, this->_internal_check_solution_period(), target);
673 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
674 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
675 _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
683 size_t total_size = 0;
685 uint32_t cached_has_bits = 0;
687 (void) cached_has_bits;
690 if (!this->_internal_profile_file().empty()) {
692 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
693 this->_internal_profile_file());
697 if (this->_internal_compress_trail() != 0) {
699 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_compress_trail());
703 if (this->_internal_trail_block_size() != 0) {
704 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_trail_block_size());
708 if (this->_internal_array_split_size() != 0) {
709 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_array_split_size());
713 if (this->_internal_store_names() != 0) {
718 if (this->_internal_name_cast_variables() != 0) {
723 if (this->_internal_name_all_variables() != 0) {
728 if (this->_internal_profile_propagation() != 0) {
733 if (this->_internal_print_model() != 0) {
738 if (this->_internal_print_model_stats() != 0) {
743 if (this->_internal_print_added_constraints() != 0) {
748 if (this->_internal_disable_solve() != 0) {
753 if (this->_internal_profile_local_search() != 0) {
758 if (this->_internal_print_local_search_profile() != 0) {
763 if (this->_internal_trace_propagation() != 0) {
768 if (this->_internal_trace_search() != 0) {
773 if (this->_internal_check_solution_period() != 0) {
775 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
776 this->_internal_check_solution_period());
780 if (this->_internal_use_small_table() != 0) {
785 if (this->_internal_use_cumulative_edge_finder() != 0) {
790 if (this->_internal_use_cumulative_time_table() != 0) {
795 if (this->_internal_use_cumulative_time_table_sync() != 0) {
800 if (this->_internal_max_edge_finder_size() != 0) {
802 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
803 this->_internal_max_edge_finder_size());
807 if (this->_internal_use_sequence_high_demand_tasks() != 0) {
812 if (this->_internal_use_all_possible_disjunctions() != 0) {
817 if (this->_internal_diffn_use_cumulative() != 0) {
822 if (this->_internal_use_element_rmq() != 0) {
827 if (this->_internal_skip_locally_optimal_paths() != 0) {
831 return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
835 ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
836 ConstraintSolverParameters::MergeImpl
840void ConstraintSolverParameters::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
841 const ::PROTOBUF_NAMESPACE_ID::Message& from) {
849 GOOGLE_DCHECK_NE(&from,
this);
850 uint32_t cached_has_bits = 0;
851 (void) cached_has_bits;
853 if (!from._internal_profile_file().empty()) {
854 _internal_set_profile_file(from._internal_profile_file());
856 if (from._internal_compress_trail() != 0) {
857 _internal_set_compress_trail(from._internal_compress_trail());
859 if (from._internal_trail_block_size() != 0) {
860 _internal_set_trail_block_size(from._internal_trail_block_size());
862 if (from._internal_array_split_size() != 0) {
863 _internal_set_array_split_size(from._internal_array_split_size());
865 if (from._internal_store_names() != 0) {
866 _internal_set_store_names(from._internal_store_names());
868 if (from._internal_name_cast_variables() != 0) {
869 _internal_set_name_cast_variables(from._internal_name_cast_variables());
871 if (from._internal_name_all_variables() != 0) {
872 _internal_set_name_all_variables(from._internal_name_all_variables());
874 if (from._internal_profile_propagation() != 0) {
875 _internal_set_profile_propagation(from._internal_profile_propagation());
877 if (from._internal_print_model() != 0) {
878 _internal_set_print_model(from._internal_print_model());
880 if (from._internal_print_model_stats() != 0) {
881 _internal_set_print_model_stats(from._internal_print_model_stats());
883 if (from._internal_print_added_constraints() != 0) {
884 _internal_set_print_added_constraints(from._internal_print_added_constraints());
886 if (from._internal_disable_solve() != 0) {
887 _internal_set_disable_solve(from._internal_disable_solve());
889 if (from._internal_profile_local_search() != 0) {
890 _internal_set_profile_local_search(from._internal_profile_local_search());
892 if (from._internal_print_local_search_profile() != 0) {
893 _internal_set_print_local_search_profile(from._internal_print_local_search_profile());
895 if (from._internal_trace_propagation() != 0) {
896 _internal_set_trace_propagation(from._internal_trace_propagation());
898 if (from._internal_trace_search() != 0) {
899 _internal_set_trace_search(from._internal_trace_search());
901 if (from._internal_check_solution_period() != 0) {
902 _internal_set_check_solution_period(from._internal_check_solution_period());
904 if (from._internal_use_small_table() != 0) {
905 _internal_set_use_small_table(from._internal_use_small_table());
907 if (from._internal_use_cumulative_edge_finder() != 0) {
908 _internal_set_use_cumulative_edge_finder(from._internal_use_cumulative_edge_finder());
910 if (from._internal_use_cumulative_time_table() != 0) {
911 _internal_set_use_cumulative_time_table(from._internal_use_cumulative_time_table());
913 if (from._internal_use_cumulative_time_table_sync() != 0) {
914 _internal_set_use_cumulative_time_table_sync(from._internal_use_cumulative_time_table_sync());
916 if (from._internal_max_edge_finder_size() != 0) {
917 _internal_set_max_edge_finder_size(from._internal_max_edge_finder_size());
919 if (from._internal_use_sequence_high_demand_tasks() != 0) {
920 _internal_set_use_sequence_high_demand_tasks(from._internal_use_sequence_high_demand_tasks());
922 if (from._internal_use_all_possible_disjunctions() != 0) {
923 _internal_set_use_all_possible_disjunctions(from._internal_use_all_possible_disjunctions());
925 if (from._internal_diffn_use_cumulative() != 0) {
926 _internal_set_diffn_use_cumulative(from._internal_diffn_use_cumulative());
928 if (from._internal_use_element_rmq() != 0) {
929 _internal_set_use_element_rmq(from._internal_use_element_rmq());
931 if (from._internal_skip_locally_optimal_paths() != 0) {
932 _internal_set_skip_locally_optimal_paths(from._internal_skip_locally_optimal_paths());
934 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
939 if (&from ==
this)
return;
950 auto* lhs_arena = GetArenaForAllocation();
951 auto* rhs_arena = other->GetArenaForAllocation();
952 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
953 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
954 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
955 &profile_file_, lhs_arena,
956 &other->profile_file_, rhs_arena
958 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
960 +
sizeof(ConstraintSolverParameters::skip_locally_optimal_paths_)
962 reinterpret_cast<char*
>(&compress_trail_),
963 reinterpret_cast<char*
>(&other->compress_trail_));
967 return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
974PROTOBUF_NAMESPACE_OPEN
976 return Arena::CreateMessageInternal< ::operations_research::ConstraintSolverParameters >(arena);
978PROTOBUF_NAMESPACE_CLOSE
981#include <google/protobuf/port_undef.inc>
ConstraintSolverParameters()
void CopyFrom(const ConstraintSolverParameters &from)
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
static const ClassData _class_data_
static constexpr int TrailCompression_ARRAYSIZE
bool IsInitialized() const final
static constexpr TrailCompression COMPRESS_WITH_ZLIB
~ConstraintSolverParameters() override
static constexpr TrailCompression TrailCompression_MAX
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void MergeFrom(const ConstraintSolverParameters &from)
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static constexpr TrailCompression TrailCompression_MIN
static constexpr TrailCompression NO_COMPRESSION
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
size_t ByteSizeLong() const final
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
PROTOBUF_ATTRIBUTE_WEAKconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable * descriptor_table_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto_getter()
::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
static constexpr::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const ** file_level_service_descriptors_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto
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
const uint32_t TableStruct_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
PROTOBUF_NAMESPACE_OPEN PROTOBUF_NOINLINE::operations_research::ConstraintSolverParameters * Arena::CreateMaybeMessage< ::operations_research::ConstraintSolverParameters >(Arena *arena)
~ConstraintSolverParametersDefaultTypeInternal()
constexpr ConstraintSolverParametersDefaultTypeInternal()
ConstraintSolverParameters _instance