10#include "google/protobuf/io/coded_stream.h"
11#include "google/protobuf/generated_message_tctable_impl.h"
12#include "google/protobuf/extension_set.h"
13#include "google/protobuf/generated_message_util.h"
14#include "google/protobuf/wire_format_lite.h"
15#include "google/protobuf/descriptor.h"
16#include "google/protobuf/generated_message_reflection.h"
17#include "google/protobuf/reflection_ops.h"
18#include "google/protobuf/wire_format.h"
22#include "google/protobuf/port_def.inc"
23PROTOBUF_PRAGMA_INIT_SEG
26namespace _fl = ::google::protobuf::internal::field_layout;
29inline constexpr ConstraintSolverParameters::Impl_::Impl_(
30 ::_pbi::ConstantInitialized) noexcept
33 &::google::protobuf::internal::fixed_address_empty_string,
34 ::_pbi::ConstantInitialized()),
39 name_cast_variables_{
false},
40 name_all_variables_{
false},
41 profile_propagation_{
false},
42 trace_propagation_{
false},
45 print_model_stats_{
false},
46 print_added_constraints_{
false},
47 disable_solve_{
false},
48 profile_local_search_{
false},
49 print_local_search_profile_{
false},
50 use_small_table_{
false},
51 use_cumulative_edge_finder_{
false},
52 use_cumulative_time_table_{
false},
53 use_sequence_high_demand_tasks_{
false},
54 max_edge_finder_size_{0},
55 use_all_possible_disjunctions_{
false},
56 diffn_use_cumulative_{
false},
57 use_element_rmq_{
false},
58 use_cumulative_time_table_sync_{
false},
59 skip_locally_optimal_paths_{
false},
60 check_solution_period_{0} {}
64#if defined(PROTOBUF_CUSTOM_VTABLE)
67 : ::google::protobuf::Message(),
69 _impl_(::_pbi::ConstantInitialized()) {
79PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
82static const ::_pb::EnumDescriptor* PROTOBUF_NONNULL
84static constexpr const ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE
148static const ::_pbi::MigrationSchema
157 "\n1ortools/constraint_solver/solver_param"
158 "eters.proto\022\023operations_research\"\315\007\n\032Con"
159 "straintSolverParameters\022X\n\016compress_trai"
160 "l\030\001 \001(\0162@.operations_research.Constraint"
161 "SolverParameters.TrailCompression\022\030\n\020tra"
162 "il_block_size\030\002 \001(\005\022\030\n\020array_split_size\030"
163 "\003 \001(\005\022\023\n\013store_names\030\004 \001(\010\022\033\n\023name_cast_"
164 "variables\030\005 \001(\010\022\032\n\022name_all_variables\030\006 "
165 "\001(\010\022\033\n\023profile_propagation\030\007 \001(\010\022\024\n\014prof"
166 "ile_file\030\010 \001(\t\022\034\n\024profile_local_search\030\020"
167 " \001(\010\022\"\n\032print_local_search_profile\030\021 \001(\010"
168 "\022\031\n\021trace_propagation\030\t \001(\010\022\024\n\014trace_sea"
169 "rch\030\n \001(\010\022\023\n\013print_model\030\013 \001(\010\022\031\n\021print_"
170 "model_stats\030\014 \001(\010\022\037\n\027print_added_constra"
171 "ints\030\r \001(\010\022\025\n\rdisable_solve\030\017 \001(\010\022\027\n\017use"
172 "_small_table\030e \001(\010\022\"\n\032use_cumulative_edg"
173 "e_finder\030i \001(\010\022!\n\031use_cumulative_time_ta"
174 "ble\030j \001(\010\022&\n\036use_cumulative_time_table_s"
175 "ync\030p \001(\010\022&\n\036use_sequence_high_demand_ta"
176 "sks\030k \001(\010\022%\n\035use_all_possible_disjunctio"
177 "ns\030l \001(\010\022\034\n\024max_edge_finder_size\030m \001(\005\022\034"
178 "\n\024diffn_use_cumulative\030n \001(\010\022\027\n\017use_elem"
179 "ent_rmq\030o \001(\010\022\"\n\032skip_locally_optimal_pa"
180 "ths\030q \001(\010\022\035\n\025check_solution_period\030r \001(\005"
181 "\">\n\020TrailCompression\022\022\n\016NO_COMPRESSION\020\000"
182 "\022\026\n\022COMPRESS_WITH_ZLIB\020\001J\004\010d\020eJ\004\010f\020gJ\004\010g"
183 "\020hJ\004\010h\020iBI\n#com.google.ortools.constrain"
184 "tsolverP\001\252\002\037Google.OrTools.ConstraintSol"
192 descriptor_table_protodef_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto,
193 "ortools/constraint_solver/solver_parameters.proto",
213class ConstraintSolverParameters::_Internal {
216 decltype(::std::declval<ConstraintSolverParameters>()._impl_._has_bits_);
222#if defined(PROTOBUF_CUSTOM_VTABLE)
225 : ::google::protobuf::Message(arena) {
230PROTOBUF_NDEBUG_INLINE ConstraintSolverParameters::Impl_::Impl_(
231 ::google::protobuf::internal::InternalVisibility visibility,
232 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
233 const ::operations_research::ConstraintSolverParameters& from_msg)
234 : _has_bits_{from._has_bits_},
236 profile_file_(arena, from.profile_file_) {}
239 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
241#if defined(PROTOBUF_CUSTOM_VTABLE)
244 : ::google::protobuf::Message(arena) {
248 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
249 from._internal_metadata_);
250 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
251 ::memcpy(
reinterpret_cast<char *
>(&
_impl_) +
252 offsetof(Impl_, compress_trail_),
253 reinterpret_cast<const char *
>(&from._impl_) +
254 offsetof(Impl_, compress_trail_),
255 offsetof(Impl_, check_solution_period_) -
256 offsetof(Impl_, compress_trail_) +
257 sizeof(Impl_::check_solution_period_));
261PROTOBUF_NDEBUG_INLINE ConstraintSolverParameters::Impl_::Impl_(
262 ::google::protobuf::internal::InternalVisibility visibility,
263 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
265 profile_file_(arena) {}
267inline void ConstraintSolverParameters::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
268 new (&
_impl_) Impl_(internal_visibility(), arena);
269 ::memset(
reinterpret_cast<char *
>(&
_impl_) +
270 offsetof(Impl_, compress_trail_),
272 offsetof(Impl_, check_solution_period_) -
273 offsetof(Impl_, compress_trail_) +
274 sizeof(Impl_::check_solution_period_));
280inline void ConstraintSolverParameters::SharedDtor(MessageLite& self) {
282 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
283 ABSL_DCHECK(this_.GetArena() ==
nullptr);
284 this_.
_impl_.profile_file_.Destroy();
289 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
290 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
298 return ::google::protobuf::internal::ClassDataFull{
299 ::google::protobuf::internal::ClassData{
304 &ConstraintSolverParameters::MergeImpl,
305 ::google::protobuf::Message::GetNewImpl<ConstraintSolverParameters>(),
306#if defined(PROTOBUF_CUSTOM_VTABLE)
307 &ConstraintSolverParameters::SharedDtor,
314 &ConstraintSolverParameters::kDescriptorMethods,
320PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
324PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
330PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
331const ::_pbi::TcParseTable<5, 27, 0, 91, 7>
332ConstraintSolverParameters::_table_ = {
337 offsetof(
decltype(_table_), field_lookup_table),
339 offsetof(
decltype(_table_), field_entries),
342 offsetof(
decltype(_table_), field_names),
345 ::_pbi::TcParser::GenericFallback,
346 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
347 ::_pbi::TcParser::GetTable<::operations_research::ConstraintSolverParameters>(),
350 {::_pbi::TcParser::MiniParse, {}},
373 {::_pbi::TcParser::FastUS1,
390 {::_pbi::TcParser::MiniParse, {}},
395 {::_pbi::TcParser::FastV8S2,
398 {::_pbi::TcParser::FastV8S2,
401 {::_pbi::TcParser::FastV32S2,
403 {::_pbi::TcParser::MiniParse, {}},
404 {::_pbi::TcParser::MiniParse, {}},
406 {::_pbi::TcParser::FastV8S2,
408 {::_pbi::TcParser::MiniParse, {}},
409 {::_pbi::TcParser::MiniParse, {}},
410 {::_pbi::TcParser::MiniParse, {}},
412 {::_pbi::TcParser::FastV8S2,
415 {::_pbi::TcParser::FastV8S2,
418 {::_pbi::TcParser::FastV8S2,
421 {::_pbi::TcParser::FastV8S2,
424 {::_pbi::TcParser::FastV32S2,
427 {::_pbi::TcParser::FastV8S2,
430 {::_pbi::TcParser::FastV8S2,
439 (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
442 (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
445 (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
448 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
451 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
454 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
457 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
460 (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
463 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
466 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
469 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
472 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
475 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
478 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
481 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
484 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
487 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
490 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
493 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
495 {PROTOBUF_FIELD_OFFSET(
ConstraintSolverParameters, _impl_.use_sequence_high_demand_tasks_), _Internal::kHasBitsOffset + 19, 0,
496 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
499 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
502 (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
505 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
508 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
510 {PROTOBUF_FIELD_OFFSET(
ConstraintSolverParameters, _impl_.use_cumulative_time_table_sync_), _Internal::kHasBitsOffset + 24, 0,
511 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
514 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
517 (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
521 "\56\0\0\0\0\0\0\0\14\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
522 "operations_research.ConstraintSolverParameters"
528 ::google::protobuf::internal::TSanWrite(&
_impl_);
529 ::uint32_t cached_has_bits = 0;
531 (void) cached_has_bits;
533 cached_has_bits =
_impl_._has_bits_[0];
534 if ((cached_has_bits & 0x00000001u) != 0) {
535 _impl_.profile_file_.ClearNonDefaultToEmpty();
537 if ((cached_has_bits & 0x000000feu) != 0) {
538 ::memset(&
_impl_.compress_trail_, 0,
static_cast<::
size_t>(
539 reinterpret_cast<char*
>(&
_impl_.profile_propagation_) -
540 reinterpret_cast<char*
>(&
_impl_.compress_trail_)) +
sizeof(
_impl_.profile_propagation_));
542 if ((cached_has_bits & 0x0000ff00u) != 0) {
543 ::memset(&
_impl_.trace_propagation_, 0,
static_cast<::
size_t>(
544 reinterpret_cast<char*
>(&
_impl_.print_local_search_profile_) -
545 reinterpret_cast<char*
>(&
_impl_.trace_propagation_)) +
sizeof(
_impl_.print_local_search_profile_));
547 if ((cached_has_bits & 0x00ff0000u) != 0) {
548 ::memset(&
_impl_.use_small_table_, 0,
static_cast<::
size_t>(
549 reinterpret_cast<char*
>(&
_impl_.use_element_rmq_) -
550 reinterpret_cast<char*
>(&
_impl_.use_small_table_)) +
sizeof(
_impl_.use_element_rmq_));
552 if ((cached_has_bits & 0x07000000u) != 0) {
553 ::memset(&
_impl_.use_cumulative_time_table_sync_, 0,
static_cast<::
size_t>(
554 reinterpret_cast<char*
>(&
_impl_.check_solution_period_) -
555 reinterpret_cast<char*
>(&
_impl_.use_cumulative_time_table_sync_)) +
sizeof(
_impl_.check_solution_period_));
557 _impl_._has_bits_.Clear();
558 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
561#if defined(PROTOBUF_CUSTOM_VTABLE)
563 const ::google::protobuf::MessageLite&
base, ::uint8_t* PROTOBUF_NONNULL target,
564 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
568 ::uint8_t* PROTOBUF_NONNULL target,
569 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
573 ::uint32_t cached_has_bits = 0;
574 (void)cached_has_bits;
577 if ((this_.
_impl_._has_bits_[0] & 0x00000002u) != 0) {
578 if (this_._internal_compress_trail() != 0) {
579 target = stream->EnsureSpace(target);
580 target = ::_pbi::WireFormatLite::WriteEnumToArray(
581 1, this_._internal_compress_trail(), target);
586 if ((this_.
_impl_._has_bits_[0] & 0x00000004u) != 0) {
587 if (this_._internal_trail_block_size() != 0) {
589 ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>(
590 stream, this_._internal_trail_block_size(), target);
595 if ((this_.
_impl_._has_bits_[0] & 0x00000008u) != 0) {
596 if (this_._internal_array_split_size() != 0) {
598 ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>(
599 stream, this_._internal_array_split_size(), target);
604 if ((this_.
_impl_._has_bits_[0] & 0x00000010u) != 0) {
605 if (this_._internal_store_names() != 0) {
606 target = stream->EnsureSpace(target);
607 target = ::_pbi::WireFormatLite::WriteBoolToArray(
608 4, this_._internal_store_names(), target);
613 if ((this_.
_impl_._has_bits_[0] & 0x00000020u) != 0) {
614 if (this_._internal_name_cast_variables() != 0) {
615 target = stream->EnsureSpace(target);
616 target = ::_pbi::WireFormatLite::WriteBoolToArray(
617 5, this_._internal_name_cast_variables(), target);
622 if ((this_.
_impl_._has_bits_[0] & 0x00000040u) != 0) {
623 if (this_._internal_name_all_variables() != 0) {
624 target = stream->EnsureSpace(target);
625 target = ::_pbi::WireFormatLite::WriteBoolToArray(
626 6, this_._internal_name_all_variables(), target);
631 if ((this_.
_impl_._has_bits_[0] & 0x00000080u) != 0) {
632 if (this_._internal_profile_propagation() != 0) {
633 target = stream->EnsureSpace(target);
634 target = ::_pbi::WireFormatLite::WriteBoolToArray(
635 7, this_._internal_profile_propagation(), target);
640 if ((this_.
_impl_._has_bits_[0] & 0x00000001u) != 0) {
641 if (!this_._internal_profile_file().empty()) {
642 const ::std::string& _s = this_._internal_profile_file();
643 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
644 _s.data(),
static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE,
"operations_research.ConstraintSolverParameters.profile_file");
645 target = stream->WriteStringMaybeAliased(8, _s, target);
650 if ((this_.
_impl_._has_bits_[0] & 0x00000100u) != 0) {
651 if (this_._internal_trace_propagation() != 0) {
652 target = stream->EnsureSpace(target);
653 target = ::_pbi::WireFormatLite::WriteBoolToArray(
654 9, this_._internal_trace_propagation(), target);
659 if ((this_.
_impl_._has_bits_[0] & 0x00000200u) != 0) {
660 if (this_._internal_trace_search() != 0) {
661 target = stream->EnsureSpace(target);
662 target = ::_pbi::WireFormatLite::WriteBoolToArray(
663 10, this_._internal_trace_search(), target);
668 if ((this_.
_impl_._has_bits_[0] & 0x00000400u) != 0) {
669 if (this_._internal_print_model() != 0) {
670 target = stream->EnsureSpace(target);
671 target = ::_pbi::WireFormatLite::WriteBoolToArray(
672 11, this_._internal_print_model(), target);
677 if ((this_.
_impl_._has_bits_[0] & 0x00000800u) != 0) {
678 if (this_._internal_print_model_stats() != 0) {
679 target = stream->EnsureSpace(target);
680 target = ::_pbi::WireFormatLite::WriteBoolToArray(
681 12, this_._internal_print_model_stats(), target);
686 if ((this_.
_impl_._has_bits_[0] & 0x00001000u) != 0) {
687 if (this_._internal_print_added_constraints() != 0) {
688 target = stream->EnsureSpace(target);
689 target = ::_pbi::WireFormatLite::WriteBoolToArray(
690 13, this_._internal_print_added_constraints(), target);
695 if ((this_.
_impl_._has_bits_[0] & 0x00002000u) != 0) {
696 if (this_._internal_disable_solve() != 0) {
697 target = stream->EnsureSpace(target);
698 target = ::_pbi::WireFormatLite::WriteBoolToArray(
699 15, this_._internal_disable_solve(), target);
704 if ((this_.
_impl_._has_bits_[0] & 0x00004000u) != 0) {
705 if (this_._internal_profile_local_search() != 0) {
706 target = stream->EnsureSpace(target);
707 target = ::_pbi::WireFormatLite::WriteBoolToArray(
708 16, this_._internal_profile_local_search(), target);
713 if ((this_.
_impl_._has_bits_[0] & 0x00008000u) != 0) {
714 if (this_._internal_print_local_search_profile() != 0) {
715 target = stream->EnsureSpace(target);
716 target = ::_pbi::WireFormatLite::WriteBoolToArray(
717 17, this_._internal_print_local_search_profile(), target);
722 if ((this_.
_impl_._has_bits_[0] & 0x00010000u) != 0) {
723 if (this_._internal_use_small_table() != 0) {
724 target = stream->EnsureSpace(target);
725 target = ::_pbi::WireFormatLite::WriteBoolToArray(
726 101, this_._internal_use_small_table(), target);
731 if ((this_.
_impl_._has_bits_[0] & 0x00020000u) != 0) {
732 if (this_._internal_use_cumulative_edge_finder() != 0) {
733 target = stream->EnsureSpace(target);
734 target = ::_pbi::WireFormatLite::WriteBoolToArray(
735 105, this_._internal_use_cumulative_edge_finder(), target);
740 if ((this_.
_impl_._has_bits_[0] & 0x00040000u) != 0) {
741 if (this_._internal_use_cumulative_time_table() != 0) {
742 target = stream->EnsureSpace(target);
743 target = ::_pbi::WireFormatLite::WriteBoolToArray(
744 106, this_._internal_use_cumulative_time_table(), target);
749 if ((this_.
_impl_._has_bits_[0] & 0x00080000u) != 0) {
750 if (this_._internal_use_sequence_high_demand_tasks() != 0) {
751 target = stream->EnsureSpace(target);
752 target = ::_pbi::WireFormatLite::WriteBoolToArray(
753 107, this_._internal_use_sequence_high_demand_tasks(), target);
758 if ((this_.
_impl_._has_bits_[0] & 0x00200000u) != 0) {
759 if (this_._internal_use_all_possible_disjunctions() != 0) {
760 target = stream->EnsureSpace(target);
761 target = ::_pbi::WireFormatLite::WriteBoolToArray(
762 108, this_._internal_use_all_possible_disjunctions(), target);
767 if ((this_.
_impl_._has_bits_[0] & 0x00100000u) != 0) {
768 if (this_._internal_max_edge_finder_size() != 0) {
769 target = stream->EnsureSpace(target);
770 target = ::_pbi::WireFormatLite::WriteInt32ToArray(
771 109, this_._internal_max_edge_finder_size(), target);
776 if ((this_.
_impl_._has_bits_[0] & 0x00400000u) != 0) {
777 if (this_._internal_diffn_use_cumulative() != 0) {
778 target = stream->EnsureSpace(target);
779 target = ::_pbi::WireFormatLite::WriteBoolToArray(
780 110, this_._internal_diffn_use_cumulative(), target);
785 if ((this_.
_impl_._has_bits_[0] & 0x00800000u) != 0) {
786 if (this_._internal_use_element_rmq() != 0) {
787 target = stream->EnsureSpace(target);
788 target = ::_pbi::WireFormatLite::WriteBoolToArray(
789 111, this_._internal_use_element_rmq(), target);
794 if ((this_.
_impl_._has_bits_[0] & 0x01000000u) != 0) {
795 if (this_._internal_use_cumulative_time_table_sync() != 0) {
796 target = stream->EnsureSpace(target);
797 target = ::_pbi::WireFormatLite::WriteBoolToArray(
798 112, this_._internal_use_cumulative_time_table_sync(), target);
803 if ((this_.
_impl_._has_bits_[0] & 0x02000000u) != 0) {
804 if (this_._internal_skip_locally_optimal_paths() != 0) {
805 target = stream->EnsureSpace(target);
806 target = ::_pbi::WireFormatLite::WriteBoolToArray(
807 113, this_._internal_skip_locally_optimal_paths(), target);
812 if ((this_.
_impl_._has_bits_[0] & 0x04000000u) != 0) {
813 if (this_._internal_check_solution_period() != 0) {
814 target = stream->EnsureSpace(target);
815 target = ::_pbi::WireFormatLite::WriteInt32ToArray(
816 114, this_._internal_check_solution_period(), target);
820 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
822 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
823 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
829#if defined(PROTOBUF_CUSTOM_VTABLE)
837 ::size_t total_size = 0;
839 ::uint32_t cached_has_bits = 0;
841 (void)cached_has_bits;
843 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
844 cached_has_bits = this_.
_impl_._has_bits_[0];
845 if ((cached_has_bits & 0x000000ffu) != 0) {
847 if ((cached_has_bits & 0x00000001u) != 0) {
848 if (!this_._internal_profile_file().empty()) {
849 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
850 this_._internal_profile_file());
854 if ((cached_has_bits & 0x00000002u) != 0) {
855 if (this_._internal_compress_trail() != 0) {
857 ::_pbi::WireFormatLite::EnumSize(this_._internal_compress_trail());
861 if ((cached_has_bits & 0x00000004u) != 0) {
862 if (this_._internal_trail_block_size() != 0) {
863 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
864 this_._internal_trail_block_size());
868 if ((cached_has_bits & 0x00000008u) != 0) {
869 if (this_._internal_array_split_size() != 0) {
870 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
871 this_._internal_array_split_size());
875 if ((cached_has_bits & 0x00000010u) != 0) {
876 if (this_._internal_store_names() != 0) {
881 if ((cached_has_bits & 0x00000020u) != 0) {
882 if (this_._internal_name_cast_variables() != 0) {
887 if ((cached_has_bits & 0x00000040u) != 0) {
888 if (this_._internal_name_all_variables() != 0) {
893 if ((cached_has_bits & 0x00000080u) != 0) {
894 if (this_._internal_profile_propagation() != 0) {
899 if ((cached_has_bits & 0x0000ff00u) != 0) {
901 if ((cached_has_bits & 0x00000100u) != 0) {
902 if (this_._internal_trace_propagation() != 0) {
907 if ((cached_has_bits & 0x00000200u) != 0) {
908 if (this_._internal_trace_search() != 0) {
913 if ((cached_has_bits & 0x00000400u) != 0) {
914 if (this_._internal_print_model() != 0) {
919 if ((cached_has_bits & 0x00000800u) != 0) {
920 if (this_._internal_print_model_stats() != 0) {
925 if ((cached_has_bits & 0x00001000u) != 0) {
926 if (this_._internal_print_added_constraints() != 0) {
931 if ((cached_has_bits & 0x00002000u) != 0) {
932 if (this_._internal_disable_solve() != 0) {
937 if ((cached_has_bits & 0x00004000u) != 0) {
938 if (this_._internal_profile_local_search() != 0) {
943 if ((cached_has_bits & 0x00008000u) != 0) {
944 if (this_._internal_print_local_search_profile() != 0) {
949 if ((cached_has_bits & 0x00ff0000u) != 0) {
951 if ((cached_has_bits & 0x00010000u) != 0) {
952 if (this_._internal_use_small_table() != 0) {
957 if ((cached_has_bits & 0x00020000u) != 0) {
958 if (this_._internal_use_cumulative_edge_finder() != 0) {
963 if ((cached_has_bits & 0x00040000u) != 0) {
964 if (this_._internal_use_cumulative_time_table() != 0) {
969 if ((cached_has_bits & 0x00080000u) != 0) {
970 if (this_._internal_use_sequence_high_demand_tasks() != 0) {
975 if ((cached_has_bits & 0x00100000u) != 0) {
976 if (this_._internal_max_edge_finder_size() != 0) {
977 total_size += 2 + ::_pbi::WireFormatLite::Int32Size(
978 this_._internal_max_edge_finder_size());
982 if ((cached_has_bits & 0x00200000u) != 0) {
983 if (this_._internal_use_all_possible_disjunctions() != 0) {
988 if ((cached_has_bits & 0x00400000u) != 0) {
989 if (this_._internal_diffn_use_cumulative() != 0) {
994 if ((cached_has_bits & 0x00800000u) != 0) {
995 if (this_._internal_use_element_rmq() != 0) {
1000 if ((cached_has_bits & 0x07000000u) != 0) {
1002 if ((cached_has_bits & 0x01000000u) != 0) {
1003 if (this_._internal_use_cumulative_time_table_sync() != 0) {
1008 if ((cached_has_bits & 0x02000000u) != 0) {
1009 if (this_._internal_skip_locally_optimal_paths() != 0) {
1014 if ((cached_has_bits & 0x04000000u) != 0) {
1015 if (this_._internal_check_solution_period() != 0) {
1016 total_size += 2 + ::_pbi::WireFormatLite::Int32Size(
1017 this_._internal_check_solution_period());
1021 return this_.MaybeComputeUnknownFieldsSize(total_size,
1022 &this_.
_impl_._cached_size_);
1025void ConstraintSolverParameters::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
1029 ABSL_DCHECK_NE(&from, _this);
1030 ::uint32_t cached_has_bits = 0;
1031 (void) cached_has_bits;
1033 cached_has_bits = from._impl_._has_bits_[0];
1034 if ((cached_has_bits & 0x000000ffu) != 0) {
1035 if ((cached_has_bits & 0x00000001u) != 0) {
1036 if (!from._internal_profile_file().empty()) {
1037 _this->_internal_set_profile_file(from._internal_profile_file());
1039 if (_this->_impl_.profile_file_.IsDefault()) {
1040 _this->_internal_set_profile_file(
"");
1044 if ((cached_has_bits & 0x00000002u) != 0) {
1045 if (from._internal_compress_trail() != 0) {
1046 _this->_impl_.compress_trail_ = from._impl_.compress_trail_;
1049 if ((cached_has_bits & 0x00000004u) != 0) {
1050 if (from._internal_trail_block_size() != 0) {
1051 _this->_impl_.trail_block_size_ = from._impl_.trail_block_size_;
1054 if ((cached_has_bits & 0x00000008u) != 0) {
1055 if (from._internal_array_split_size() != 0) {
1056 _this->_impl_.array_split_size_ = from._impl_.array_split_size_;
1059 if ((cached_has_bits & 0x00000010u) != 0) {
1060 if (from._internal_store_names() != 0) {
1061 _this->_impl_.store_names_ = from._impl_.store_names_;
1064 if ((cached_has_bits & 0x00000020u) != 0) {
1065 if (from._internal_name_cast_variables() != 0) {
1066 _this->_impl_.name_cast_variables_ = from._impl_.name_cast_variables_;
1069 if ((cached_has_bits & 0x00000040u) != 0) {
1070 if (from._internal_name_all_variables() != 0) {
1071 _this->_impl_.name_all_variables_ = from._impl_.name_all_variables_;
1074 if ((cached_has_bits & 0x00000080u) != 0) {
1075 if (from._internal_profile_propagation() != 0) {
1076 _this->_impl_.profile_propagation_ = from._impl_.profile_propagation_;
1080 if ((cached_has_bits & 0x0000ff00u) != 0) {
1081 if ((cached_has_bits & 0x00000100u) != 0) {
1082 if (from._internal_trace_propagation() != 0) {
1083 _this->_impl_.trace_propagation_ = from._impl_.trace_propagation_;
1086 if ((cached_has_bits & 0x00000200u) != 0) {
1087 if (from._internal_trace_search() != 0) {
1088 _this->_impl_.trace_search_ = from._impl_.trace_search_;
1091 if ((cached_has_bits & 0x00000400u) != 0) {
1092 if (from._internal_print_model() != 0) {
1093 _this->_impl_.print_model_ = from._impl_.print_model_;
1096 if ((cached_has_bits & 0x00000800u) != 0) {
1097 if (from._internal_print_model_stats() != 0) {
1098 _this->_impl_.print_model_stats_ = from._impl_.print_model_stats_;
1101 if ((cached_has_bits & 0x00001000u) != 0) {
1102 if (from._internal_print_added_constraints() != 0) {
1103 _this->_impl_.print_added_constraints_ = from._impl_.print_added_constraints_;
1106 if ((cached_has_bits & 0x00002000u) != 0) {
1107 if (from._internal_disable_solve() != 0) {
1108 _this->_impl_.disable_solve_ = from._impl_.disable_solve_;
1111 if ((cached_has_bits & 0x00004000u) != 0) {
1112 if (from._internal_profile_local_search() != 0) {
1113 _this->_impl_.profile_local_search_ = from._impl_.profile_local_search_;
1116 if ((cached_has_bits & 0x00008000u) != 0) {
1117 if (from._internal_print_local_search_profile() != 0) {
1118 _this->_impl_.print_local_search_profile_ = from._impl_.print_local_search_profile_;
1122 if ((cached_has_bits & 0x00ff0000u) != 0) {
1123 if ((cached_has_bits & 0x00010000u) != 0) {
1124 if (from._internal_use_small_table() != 0) {
1125 _this->_impl_.use_small_table_ = from._impl_.use_small_table_;
1128 if ((cached_has_bits & 0x00020000u) != 0) {
1129 if (from._internal_use_cumulative_edge_finder() != 0) {
1130 _this->_impl_.use_cumulative_edge_finder_ = from._impl_.use_cumulative_edge_finder_;
1133 if ((cached_has_bits & 0x00040000u) != 0) {
1134 if (from._internal_use_cumulative_time_table() != 0) {
1135 _this->_impl_.use_cumulative_time_table_ = from._impl_.use_cumulative_time_table_;
1138 if ((cached_has_bits & 0x00080000u) != 0) {
1139 if (from._internal_use_sequence_high_demand_tasks() != 0) {
1140 _this->_impl_.use_sequence_high_demand_tasks_ = from._impl_.use_sequence_high_demand_tasks_;
1143 if ((cached_has_bits & 0x00100000u) != 0) {
1144 if (from._internal_max_edge_finder_size() != 0) {
1145 _this->_impl_.max_edge_finder_size_ = from._impl_.max_edge_finder_size_;
1148 if ((cached_has_bits & 0x00200000u) != 0) {
1149 if (from._internal_use_all_possible_disjunctions() != 0) {
1150 _this->_impl_.use_all_possible_disjunctions_ = from._impl_.use_all_possible_disjunctions_;
1153 if ((cached_has_bits & 0x00400000u) != 0) {
1154 if (from._internal_diffn_use_cumulative() != 0) {
1155 _this->_impl_.diffn_use_cumulative_ = from._impl_.diffn_use_cumulative_;
1158 if ((cached_has_bits & 0x00800000u) != 0) {
1159 if (from._internal_use_element_rmq() != 0) {
1160 _this->_impl_.use_element_rmq_ = from._impl_.use_element_rmq_;
1164 if ((cached_has_bits & 0x07000000u) != 0) {
1165 if ((cached_has_bits & 0x01000000u) != 0) {
1166 if (from._internal_use_cumulative_time_table_sync() != 0) {
1167 _this->_impl_.use_cumulative_time_table_sync_ = from._impl_.use_cumulative_time_table_sync_;
1170 if ((cached_has_bits & 0x02000000u) != 0) {
1171 if (from._internal_skip_locally_optimal_paths() != 0) {
1172 _this->_impl_.skip_locally_optimal_paths_ = from._impl_.skip_locally_optimal_paths_;
1175 if ((cached_has_bits & 0x04000000u) != 0) {
1176 if (from._internal_check_solution_period() != 0) {
1177 _this->_impl_.check_solution_period_ = from._impl_.check_solution_period_;
1181 _this->_impl_._has_bits_[0] |= cached_has_bits;
1182 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
1187 if (&from ==
this)
return;
1195 auto* arena = GetArena();
1196 ABSL_DCHECK_EQ(arena, other->GetArena());
1197 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1198 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1199 ::_pbi::ArenaStringPtr::InternalSwap(&
_impl_.profile_file_, &other->_impl_.profile_file_, arena);
1200 ::google::protobuf::internal::memswap<
1204 reinterpret_cast<char*
>(&
_impl_.compress_trail_),
1205 reinterpret_cast<char*
>(&other->_impl_.compress_trail_));
1209 return ::google::protobuf::Message::GetMetadataImpl(
GetClassData()->full());
1218PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
1221 ::std::false_type{});
1222#include "google/protobuf/port_undef.inc"
static PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::std::false_type _static_init2_
@protoc_insertion_point(global_scope)
static const ::_pb::Message *PROTOBUF_NONNULL const file_default_instances[]
static constexpr ::int32_t kHasBitsOffset
decltype(::std::declval< ConstraintSolverParameters >()._impl_._has_bits_) HasBits
friend class ::google::protobuf::MessageLite
::size_t ByteSizeLong() const final
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
ConstraintSolverParameters()
~ConstraintSolverParameters() PROTOBUF_FINAL
::google::protobuf::Metadata GetMetadata() const
static constexpr auto InternalNewImpl_()
friend void swap(ConstraintSolverParameters &a, ConstraintSolverParameters &b)
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
static constexpr auto InternalGenerateClassData_()
void CopyFrom(const ConstraintSolverParameters &from)
void MergeFrom(const ConstraintSolverParameters &from)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
In SWIG mode, we don't want anything besides these top-level includes.
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConstraintSolverParametersDefaultTypeInternal _ConstraintSolverParameters_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull ConstraintSolverParameters_class_data_
ConstraintSolverParameters_TrailCompression
const ::google::protobuf::EnumDescriptor *PROTOBUF_NONNULL ConstraintSolverParameters_TrailCompression_descriptor()
PROTOBUF_CONSTINIT const uint32_t ConstraintSolverParameters_TrailCompression_internal_data_[]
static constexpr ::_pbi::MigrationSchema *PROTOBUF_NULLABLE schemas
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto
static const ::_pb::EnumDescriptor *PROTOBUF_NONNULL file_level_enum_descriptors_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto[1]
static constexprconst ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_service_descriptors_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto
const ::uint32_t TableStruct_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold)
::absl::once_flag descriptor_table_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto_once
~ConstraintSolverParametersDefaultTypeInternal()
ConstraintSolverParameters _instance
PROTOBUF_CONSTEXPR ConstraintSolverParametersDefaultTypeInternal()