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)
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 if (!from._internal_profile_file().empty()) {
194 profile_file_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_profile_file(),
195 GetArenaForAllocation());
197 ::memcpy(&compress_trail_, &from.compress_trail_,
198 static_cast<size_t>(
reinterpret_cast<char*
>(&skip_locally_optimal_paths_) -
199 reinterpret_cast<char*
>(&compress_trail_)) +
sizeof(skip_locally_optimal_paths_));
203void ConstraintSolverParameters::SharedCtor() {
204profile_file_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
205::memset(
reinterpret_cast<char*
>(
this) +
static_cast<size_t>(
206 reinterpret_cast<char*
>(&compress_trail_) -
reinterpret_cast<char*
>(
this)),
207 0,
static_cast<size_t>(
reinterpret_cast<char*
>(&skip_locally_optimal_paths_) -
208 reinterpret_cast<char*
>(&compress_trail_)) +
sizeof(skip_locally_optimal_paths_));
213 if (GetArenaForAllocation() !=
nullptr)
return;
215 _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
218inline void ConstraintSolverParameters::SharedDtor() {
219 GOOGLE_DCHECK(GetArenaForAllocation() ==
nullptr);
220 profile_file_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
223void ConstraintSolverParameters::ArenaDtor(
void*
object) {
227void ConstraintSolverParameters::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
229void ConstraintSolverParameters::SetCachedSize(
int size)
const {
230 _cached_size_.Set(size);
235 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
237 (void) cached_has_bits;
239 profile_file_.ClearToEmpty();
240 ::memset(&compress_trail_, 0,
static_cast<size_t>(
241 reinterpret_cast<char*
>(&skip_locally_optimal_paths_) -
242 reinterpret_cast<char*
>(&compress_trail_)) +
sizeof(skip_locally_optimal_paths_));
243 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
247#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
248 while (!ctx->Done(&ptr)) {
249 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
250 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
254 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 8)) {
255 ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
263 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 16)) {
264 trail_block_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
271 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 24)) {
272 array_split_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
279 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 32)) {
280 store_names_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
287 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 40)) {
288 name_cast_variables_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
295 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 48)) {
296 name_all_variables_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
303 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 56)) {
304 profile_propagation_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
311 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 66)) {
312 auto str = _internal_mutable_profile_file();
313 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
314 CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str,
"operations_research.ConstraintSolverParameters.profile_file"));
321 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 72)) {
322 trace_propagation_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
329 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 80)) {
330 trace_search_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
337 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 88)) {
338 print_model_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
345 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 96)) {
346 print_model_stats_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
353 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 104)) {
354 print_added_constraints_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
361 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 120)) {
362 disable_solve_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
369 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 128)) {
370 profile_local_search_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
377 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 136)) {
378 print_local_search_profile_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
385 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 40)) {
386 use_small_table_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
393 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 72)) {
394 use_cumulative_edge_finder_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
401 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 80)) {
402 use_cumulative_time_table_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
409 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 88)) {
410 use_sequence_high_demand_tasks_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
417 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 96)) {
418 use_all_possible_disjunctions_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
425 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 104)) {
426 max_edge_finder_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
433 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 112)) {
434 diffn_use_cumulative_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
441 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 120)) {
442 use_element_rmq_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
449 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 128)) {
450 use_cumulative_time_table_sync_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
457 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 136)) {
458 skip_locally_optimal_paths_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
465 if (PROTOBUF_PREDICT_TRUE(
static_cast<::PROTOBUF_NAMESPACE_ID::uint8
>(tag) == 144)) {
466 check_solution_period_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
475 if ((tag == 0) || ((tag & 7) == 4)) {
477 ctx->SetLastTag(tag);
480 ptr = UnknownFieldParse(
482 _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
484 CHK_(ptr !=
nullptr);
495 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream)
const {
497 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
498 (void) cached_has_bits;
501 if (this->_internal_compress_trail() != 0) {
502 target = stream->EnsureSpace(target);
503 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
504 1, this->_internal_compress_trail(), target);
508 if (this->_internal_trail_block_size() != 0) {
509 target = stream->EnsureSpace(target);
510 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_trail_block_size(), target);
514 if (this->_internal_array_split_size() != 0) {
515 target = stream->EnsureSpace(target);
516 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_array_split_size(), target);
520 if (this->_internal_store_names() != 0) {
521 target = stream->EnsureSpace(target);
522 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(4, this->_internal_store_names(), target);
526 if (this->_internal_name_cast_variables() != 0) {
527 target = stream->EnsureSpace(target);
528 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(5, this->_internal_name_cast_variables(), target);
532 if (this->_internal_name_all_variables() != 0) {
533 target = stream->EnsureSpace(target);
534 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(6, this->_internal_name_all_variables(), target);
538 if (this->_internal_profile_propagation() != 0) {
539 target = stream->EnsureSpace(target);
540 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(7, this->_internal_profile_propagation(), target);
544 if (!this->_internal_profile_file().empty()) {
545 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
546 this->_internal_profile_file().data(),
static_cast<int>(this->_internal_profile_file().length()),
547 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
548 "operations_research.ConstraintSolverParameters.profile_file");
549 target = stream->WriteStringMaybeAliased(
550 8, this->_internal_profile_file(), target);
554 if (this->_internal_trace_propagation() != 0) {
555 target = stream->EnsureSpace(target);
556 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(9, this->_internal_trace_propagation(), target);
560 if (this->_internal_trace_search() != 0) {
561 target = stream->EnsureSpace(target);
562 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(10, this->_internal_trace_search(), target);
566 if (this->_internal_print_model() != 0) {
567 target = stream->EnsureSpace(target);
568 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(11, this->_internal_print_model(), target);
572 if (this->_internal_print_model_stats() != 0) {
573 target = stream->EnsureSpace(target);
574 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(12, this->_internal_print_model_stats(), target);
578 if (this->_internal_print_added_constraints() != 0) {
579 target = stream->EnsureSpace(target);
580 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(13, this->_internal_print_added_constraints(), target);
584 if (this->_internal_disable_solve() != 0) {
585 target = stream->EnsureSpace(target);
586 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(15, this->_internal_disable_solve(), target);
590 if (this->_internal_profile_local_search() != 0) {
591 target = stream->EnsureSpace(target);
592 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(16, this->_internal_profile_local_search(), target);
596 if (this->_internal_print_local_search_profile() != 0) {
597 target = stream->EnsureSpace(target);
598 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(17, this->_internal_print_local_search_profile(), target);
602 if (this->_internal_use_small_table() != 0) {
603 target = stream->EnsureSpace(target);
604 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(101, this->_internal_use_small_table(), target);
608 if (this->_internal_use_cumulative_edge_finder() != 0) {
609 target = stream->EnsureSpace(target);
610 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(105, this->_internal_use_cumulative_edge_finder(), target);
614 if (this->_internal_use_cumulative_time_table() != 0) {
615 target = stream->EnsureSpace(target);
616 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(106, this->_internal_use_cumulative_time_table(), target);
620 if (this->_internal_use_sequence_high_demand_tasks() != 0) {
621 target = stream->EnsureSpace(target);
622 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(107, this->_internal_use_sequence_high_demand_tasks(), target);
626 if (this->_internal_use_all_possible_disjunctions() != 0) {
627 target = stream->EnsureSpace(target);
628 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(108, this->_internal_use_all_possible_disjunctions(), target);
632 if (this->_internal_max_edge_finder_size() != 0) {
633 target = stream->EnsureSpace(target);
634 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(109, this->_internal_max_edge_finder_size(), target);
638 if (this->_internal_diffn_use_cumulative() != 0) {
639 target = stream->EnsureSpace(target);
640 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(110, this->_internal_diffn_use_cumulative(), target);
644 if (this->_internal_use_element_rmq() != 0) {
645 target = stream->EnsureSpace(target);
646 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(111, this->_internal_use_element_rmq(), target);
650 if (this->_internal_use_cumulative_time_table_sync() != 0) {
651 target = stream->EnsureSpace(target);
652 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(112, this->_internal_use_cumulative_time_table_sync(), target);
656 if (this->_internal_skip_locally_optimal_paths() != 0) {
657 target = stream->EnsureSpace(target);
658 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(113, this->_internal_skip_locally_optimal_paths(), target);
662 if (this->_internal_check_solution_period() != 0) {
663 target = stream->EnsureSpace(target);
664 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(114, this->_internal_check_solution_period(), target);
667 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
668 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
669 _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
677 size_t total_size = 0;
679 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
681 (void) cached_has_bits;
684 if (!this->_internal_profile_file().empty()) {
686 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
687 this->_internal_profile_file());
691 if (this->_internal_compress_trail() != 0) {
693 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_compress_trail());
697 if (this->_internal_trail_block_size() != 0) {
698 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_trail_block_size());
702 if (this->_internal_array_split_size() != 0) {
703 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_array_split_size());
707 if (this->_internal_store_names() != 0) {
712 if (this->_internal_name_cast_variables() != 0) {
717 if (this->_internal_name_all_variables() != 0) {
722 if (this->_internal_profile_propagation() != 0) {
727 if (this->_internal_print_model() != 0) {
732 if (this->_internal_print_model_stats() != 0) {
737 if (this->_internal_print_added_constraints() != 0) {
742 if (this->_internal_disable_solve() != 0) {
747 if (this->_internal_profile_local_search() != 0) {
752 if (this->_internal_print_local_search_profile() != 0) {
757 if (this->_internal_trace_propagation() != 0) {
762 if (this->_internal_trace_search() != 0) {
767 if (this->_internal_check_solution_period() != 0) {
769 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
770 this->_internal_check_solution_period());
774 if (this->_internal_use_small_table() != 0) {
779 if (this->_internal_use_cumulative_edge_finder() != 0) {
784 if (this->_internal_use_cumulative_time_table() != 0) {
789 if (this->_internal_use_cumulative_time_table_sync() != 0) {
794 if (this->_internal_max_edge_finder_size() != 0) {
796 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
797 this->_internal_max_edge_finder_size());
801 if (this->_internal_use_sequence_high_demand_tasks() != 0) {
806 if (this->_internal_use_all_possible_disjunctions() != 0) {
811 if (this->_internal_diffn_use_cumulative() != 0) {
816 if (this->_internal_use_element_rmq() != 0) {
821 if (this->_internal_skip_locally_optimal_paths() != 0) {
825 return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
829 ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
830 ConstraintSolverParameters::MergeImpl
834void ConstraintSolverParameters::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
835 const ::PROTOBUF_NAMESPACE_ID::Message& from) {
843 GOOGLE_DCHECK_NE(&from,
this);
844 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
845 (void) cached_has_bits;
847 if (!from._internal_profile_file().empty()) {
848 _internal_set_profile_file(from._internal_profile_file());
850 if (from._internal_compress_trail() != 0) {
851 _internal_set_compress_trail(from._internal_compress_trail());
853 if (from._internal_trail_block_size() != 0) {
854 _internal_set_trail_block_size(from._internal_trail_block_size());
856 if (from._internal_array_split_size() != 0) {
857 _internal_set_array_split_size(from._internal_array_split_size());
859 if (from._internal_store_names() != 0) {
860 _internal_set_store_names(from._internal_store_names());
862 if (from._internal_name_cast_variables() != 0) {
863 _internal_set_name_cast_variables(from._internal_name_cast_variables());
865 if (from._internal_name_all_variables() != 0) {
866 _internal_set_name_all_variables(from._internal_name_all_variables());
868 if (from._internal_profile_propagation() != 0) {
869 _internal_set_profile_propagation(from._internal_profile_propagation());
871 if (from._internal_print_model() != 0) {
872 _internal_set_print_model(from._internal_print_model());
874 if (from._internal_print_model_stats() != 0) {
875 _internal_set_print_model_stats(from._internal_print_model_stats());
877 if (from._internal_print_added_constraints() != 0) {
878 _internal_set_print_added_constraints(from._internal_print_added_constraints());
880 if (from._internal_disable_solve() != 0) {
881 _internal_set_disable_solve(from._internal_disable_solve());
883 if (from._internal_profile_local_search() != 0) {
884 _internal_set_profile_local_search(from._internal_profile_local_search());
886 if (from._internal_print_local_search_profile() != 0) {
887 _internal_set_print_local_search_profile(from._internal_print_local_search_profile());
889 if (from._internal_trace_propagation() != 0) {
890 _internal_set_trace_propagation(from._internal_trace_propagation());
892 if (from._internal_trace_search() != 0) {
893 _internal_set_trace_search(from._internal_trace_search());
895 if (from._internal_check_solution_period() != 0) {
896 _internal_set_check_solution_period(from._internal_check_solution_period());
898 if (from._internal_use_small_table() != 0) {
899 _internal_set_use_small_table(from._internal_use_small_table());
901 if (from._internal_use_cumulative_edge_finder() != 0) {
902 _internal_set_use_cumulative_edge_finder(from._internal_use_cumulative_edge_finder());
904 if (from._internal_use_cumulative_time_table() != 0) {
905 _internal_set_use_cumulative_time_table(from._internal_use_cumulative_time_table());
907 if (from._internal_use_cumulative_time_table_sync() != 0) {
908 _internal_set_use_cumulative_time_table_sync(from._internal_use_cumulative_time_table_sync());
910 if (from._internal_max_edge_finder_size() != 0) {
911 _internal_set_max_edge_finder_size(from._internal_max_edge_finder_size());
913 if (from._internal_use_sequence_high_demand_tasks() != 0) {
914 _internal_set_use_sequence_high_demand_tasks(from._internal_use_sequence_high_demand_tasks());
916 if (from._internal_use_all_possible_disjunctions() != 0) {
917 _internal_set_use_all_possible_disjunctions(from._internal_use_all_possible_disjunctions());
919 if (from._internal_diffn_use_cumulative() != 0) {
920 _internal_set_diffn_use_cumulative(from._internal_diffn_use_cumulative());
922 if (from._internal_use_element_rmq() != 0) {
923 _internal_set_use_element_rmq(from._internal_use_element_rmq());
925 if (from._internal_skip_locally_optimal_paths() != 0) {
926 _internal_set_skip_locally_optimal_paths(from._internal_skip_locally_optimal_paths());
928 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
933 if (&from ==
this)
return;
944 auto* lhs_arena = GetArenaForAllocation();
945 auto* rhs_arena = other->GetArenaForAllocation();
946 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
947 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
948 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
949 &profile_file_, lhs_arena,
950 &other->profile_file_, rhs_arena
952 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
954 +
sizeof(ConstraintSolverParameters::skip_locally_optimal_paths_)
956 reinterpret_cast<char*
>(&compress_trail_),
957 reinterpret_cast<char*
>(&other->compress_trail_));
961 return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
968PROTOBUF_NAMESPACE_OPEN
970 return Arena::CreateMessageInternal< ::operations_research::ConstraintSolverParameters >(arena);
972PROTOBUF_NAMESPACE_CLOSE
975#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
size_t ByteSizeLong() const final
::PROTOBUF_NAMESPACE_ID::uint8 * _InternalSerialize(::PROTOBUF_NAMESPACE_ID::uint8 *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) 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]
const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
::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
PROTOBUF_NAMESPACE_OPEN PROTOBUF_NOINLINE::operations_research::ConstraintSolverParameters * Arena::CreateMaybeMessage< ::operations_research::ConstraintSolverParameters >(Arena *arena)
~ConstraintSolverParametersDefaultTypeInternal()
constexpr ConstraintSolverParametersDefaultTypeInternal()
ConstraintSolverParameters _instance