Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
solver_parameters.pb.cc
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// NO CHECKED-IN PROTOBUF GENCODE
3// source: ortools/constraint_solver/solver_parameters.proto
4// Protobuf C++ Version: 6.31.1
5
7
8#include <algorithm>
9#include <type_traits>
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"
19// @@protoc_insertion_point(includes)
20
21// Must be included last.
22#include "google/protobuf/port_def.inc"
23PROTOBUF_PRAGMA_INIT_SEG
24namespace _pb = ::google::protobuf;
26namespace _fl = ::google::protobuf::internal::field_layout;
27namespace operations_research {
28
29inline constexpr ConstraintSolverParameters::Impl_::Impl_(
30 ::_pbi::ConstantInitialized) noexcept
31 : _cached_size_{0},
32 profile_file_(
33 &::google::protobuf::internal::fixed_address_empty_string,
34 ::_pbi::ConstantInitialized()),
36 trail_block_size_{0},
37 array_split_size_{0},
38 store_names_{false},
39 name_cast_variables_{false},
40 name_all_variables_{false},
41 profile_propagation_{false},
42 trace_propagation_{false},
43 trace_search_{false},
44 print_model_{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} {}
61
62template <typename>
63PROTOBUF_CONSTEXPR ConstraintSolverParameters::ConstraintSolverParameters(::_pbi::ConstantInitialized)
64#if defined(PROTOBUF_CUSTOM_VTABLE)
65 : ::google::protobuf::Message(ConstraintSolverParameters_class_data_.base()),
66#else // PROTOBUF_CUSTOM_VTABLE
67 : ::google::protobuf::Message(),
68#endif // PROTOBUF_CUSTOM_VTABLE
69 _impl_(::_pbi::ConstantInitialized()) {
70}
78
79PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
81} // namespace operations_research
82static const ::_pb::EnumDescriptor* PROTOBUF_NONNULL
84static constexpr const ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE
86const ::uint32_t
88 protodesc_cold) = {
89 0x081, // bitmap
90 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, _impl_._has_bits_),
91 30, // hasbit index offset
92 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, _impl_.compress_trail_),
93 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, _impl_.trail_block_size_),
94 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, _impl_.array_split_size_),
95 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, _impl_.store_names_),
96 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, _impl_.name_cast_variables_),
97 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, _impl_.name_all_variables_),
98 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, _impl_.profile_propagation_),
99 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, _impl_.profile_file_),
100 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, _impl_.profile_local_search_),
101 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, _impl_.print_local_search_profile_),
102 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, _impl_.trace_propagation_),
103 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, _impl_.trace_search_),
104 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, _impl_.print_model_),
105 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, _impl_.print_model_stats_),
106 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, _impl_.print_added_constraints_),
107 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, _impl_.disable_solve_),
108 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, _impl_.use_small_table_),
109 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, _impl_.use_cumulative_edge_finder_),
110 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, _impl_.use_cumulative_time_table_),
111 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, _impl_.use_cumulative_time_table_sync_),
112 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, _impl_.use_sequence_high_demand_tasks_),
113 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, _impl_.use_all_possible_disjunctions_),
114 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, _impl_.max_edge_finder_size_),
115 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, _impl_.diffn_use_cumulative_),
116 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, _impl_.use_element_rmq_),
117 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, _impl_.skip_locally_optimal_paths_),
118 PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, _impl_.check_solution_period_),
119 1,
120 2,
121 3,
122 4,
123 5,
124 6,
125 7,
126 0,
127 14,
128 15,
129 8,
130 9,
131 10,
132 11,
133 12,
134 13,
135 16,
136 17,
137 18,
138 24,
139 19,
140 21,
141 20,
142 22,
143 23,
144 25,
145 26,
146};
147
148static const ::_pbi::MigrationSchema
149 schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
151};
152static const ::_pb::Message* PROTOBUF_NONNULL const file_default_instances[] = {
154};
155const char descriptor_table_protodef_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
156 protodesc_cold) = {
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"
185 "verb\006proto3"
186};
189 false,
190 false,
191 1131,
192 descriptor_table_protodef_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto,
193 "ortools/constraint_solver/solver_parameters.proto",
195 nullptr,
196 0,
197 1,
198 schemas,
203};
204namespace operations_research {
210 131072u, 0u, };
211// ===================================================================
212
213class ConstraintSolverParameters::_Internal {
214 public:
215 using HasBits =
216 decltype(::std::declval<ConstraintSolverParameters>()._impl_._has_bits_);
217 static constexpr ::int32_t kHasBitsOffset =
218 8 * PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_._has_bits_);
219};
220
221ConstraintSolverParameters::ConstraintSolverParameters(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
222#if defined(PROTOBUF_CUSTOM_VTABLE)
223 : ::google::protobuf::Message(arena, ConstraintSolverParameters_class_data_.base()) {
224#else // PROTOBUF_CUSTOM_VTABLE
225 : ::google::protobuf::Message(arena) {
226#endif // PROTOBUF_CUSTOM_VTABLE
227 SharedCtor(arena);
228 // @@protoc_insertion_point(arena_constructor:operations_research.ConstraintSolverParameters)
229}
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_},
235 _cached_size_{0},
236 profile_file_(arena, from.profile_file_) {}
237
239 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
240 const ConstraintSolverParameters& from)
241#if defined(PROTOBUF_CUSTOM_VTABLE)
242 : ::google::protobuf::Message(arena, ConstraintSolverParameters_class_data_.base()) {
243#else // PROTOBUF_CUSTOM_VTABLE
244 : ::google::protobuf::Message(arena) {
245#endif // PROTOBUF_CUSTOM_VTABLE
246 ConstraintSolverParameters* const _this = this;
247 (void)_this;
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_));
258
259 // @@protoc_insertion_point(copy_constructor:operations_research.ConstraintSolverParameters)
260}
261PROTOBUF_NDEBUG_INLINE ConstraintSolverParameters::Impl_::Impl_(
262 ::google::protobuf::internal::InternalVisibility visibility,
263 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
264 : _cached_size_{0},
265 profile_file_(arena) {}
266
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_),
271 0,
272 offsetof(Impl_, check_solution_period_) -
273 offsetof(Impl_, compress_trail_) +
274 sizeof(Impl_::check_solution_period_));
275}
277 // @@protoc_insertion_point(destructor:operations_research.ConstraintSolverParameters)
278 SharedDtor(*this);
279}
280inline void ConstraintSolverParameters::SharedDtor(MessageLite& self) {
281 ConstraintSolverParameters& this_ = static_cast<ConstraintSolverParameters&>(self);
282 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
283 ABSL_DCHECK(this_.GetArena() == nullptr);
284 this_._impl_.profile_file_.Destroy();
285 this_._impl_.~Impl_();
286}
287
288inline void* PROTOBUF_NONNULL ConstraintSolverParameters::PlacementNew_(
289 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
290 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
291 return ::new (mem) ConstraintSolverParameters(arena);
292}
294 return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ConstraintSolverParameters),
296}
298 return ::google::protobuf::internal::ClassDataFull{
299 ::google::protobuf::internal::ClassData{
301 &_table_.header,
302 nullptr, // OnDemandRegisterArenaDtor
303 nullptr, // IsInitialized
304 &ConstraintSolverParameters::MergeImpl,
305 ::google::protobuf::Message::GetNewImpl<ConstraintSolverParameters>(),
306#if defined(PROTOBUF_CUSTOM_VTABLE)
307 &ConstraintSolverParameters::SharedDtor,
308 ::google::protobuf::Message::GetClearImpl<ConstraintSolverParameters>(), &ConstraintSolverParameters::ByteSizeLong,
310#endif // PROTOBUF_CUSTOM_VTABLE
311 PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_._cached_size_),
312 false,
313 },
314 &ConstraintSolverParameters::kDescriptorMethods,
316 nullptr, // tracker
317 };
318}
319
320PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
321 ::google::protobuf::internal::ClassDataFull ConstraintSolverParameters_class_data_ =
323
324PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
326 ::google::protobuf::internal::PrefetchToLocalCache(&ConstraintSolverParameters_class_data_);
327 ::google::protobuf::internal::PrefetchToLocalCache(ConstraintSolverParameters_class_data_.tc_table);
329}
330PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
331const ::_pbi::TcParseTable<5, 27, 0, 91, 7>
332ConstraintSolverParameters::_table_ = {
333 {
334 PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_._has_bits_),
335 0, // no _extensions_
336 114, 248, // max_field_number, fast_idx_mask
337 offsetof(decltype(_table_), field_lookup_table),
338 4294844416, // skipmap
339 offsetof(decltype(_table_), field_entries),
340 27, // num_field_entries
341 0, // num_aux_entries
342 offsetof(decltype(_table_), field_names), // no aux_entries
344 nullptr, // post_loop_handler
345 ::_pbi::TcParser::GenericFallback, // fallback
346 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
347 ::_pbi::TcParser::GetTable<::operations_research::ConstraintSolverParameters>(), // to_prefetch
348 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
349 }, {{
350 {::_pbi::TcParser::MiniParse, {}},
351 // .operations_research.ConstraintSolverParameters.TrailCompression compress_trail = 1;
352 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ConstraintSolverParameters, _impl_.compress_trail_), 1>(),
353 {8, 1, 0, PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.compress_trail_)}},
354 // int32 trail_block_size = 2;
355 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ConstraintSolverParameters, _impl_.trail_block_size_), 2>(),
356 {16, 2, 0, PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.trail_block_size_)}},
357 // int32 array_split_size = 3;
358 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ConstraintSolverParameters, _impl_.array_split_size_), 3>(),
359 {24, 3, 0, PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.array_split_size_)}},
360 // bool store_names = 4;
361 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(ConstraintSolverParameters, _impl_.store_names_), 4>(),
362 {32, 4, 0, PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.store_names_)}},
363 // bool name_cast_variables = 5;
364 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(ConstraintSolverParameters, _impl_.name_cast_variables_), 5>(),
365 {40, 5, 0, PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.name_cast_variables_)}},
366 // bool name_all_variables = 6;
367 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(ConstraintSolverParameters, _impl_.name_all_variables_), 6>(),
368 {48, 6, 0, PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.name_all_variables_)}},
369 // bool profile_propagation = 7;
370 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(ConstraintSolverParameters, _impl_.profile_propagation_), 7>(),
371 {56, 7, 0, PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.profile_propagation_)}},
372 // string profile_file = 8;
373 {::_pbi::TcParser::FastUS1,
374 {66, 0, 0, PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.profile_file_)}},
375 // bool trace_propagation = 9;
376 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(ConstraintSolverParameters, _impl_.trace_propagation_), 8>(),
377 {72, 8, 0, PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.trace_propagation_)}},
378 // bool trace_search = 10;
379 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(ConstraintSolverParameters, _impl_.trace_search_), 9>(),
380 {80, 9, 0, PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.trace_search_)}},
381 // bool print_model = 11;
382 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(ConstraintSolverParameters, _impl_.print_model_), 10>(),
383 {88, 10, 0, PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.print_model_)}},
384 // bool print_model_stats = 12;
385 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(ConstraintSolverParameters, _impl_.print_model_stats_), 11>(),
386 {96, 11, 0, PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.print_model_stats_)}},
387 // bool print_added_constraints = 13;
388 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(ConstraintSolverParameters, _impl_.print_added_constraints_), 12>(),
389 {104, 12, 0, PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.print_added_constraints_)}},
390 {::_pbi::TcParser::MiniParse, {}},
391 // bool disable_solve = 15;
392 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(ConstraintSolverParameters, _impl_.disable_solve_), 13>(),
393 {120, 13, 0, PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.disable_solve_)}},
394 // bool profile_local_search = 16;
395 {::_pbi::TcParser::FastV8S2,
396 {384, 14, 0, PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.profile_local_search_)}},
397 // bool print_local_search_profile = 17;
398 {::_pbi::TcParser::FastV8S2,
399 {392, 15, 0, PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.print_local_search_profile_)}},
400 // int32 check_solution_period = 114;
401 {::_pbi::TcParser::FastV32S2,
402 {1936, 26, 0, PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.check_solution_period_)}},
403 {::_pbi::TcParser::MiniParse, {}},
404 {::_pbi::TcParser::MiniParse, {}},
405 // bool use_small_table = 101;
406 {::_pbi::TcParser::FastV8S2,
407 {1704, 16, 0, PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.use_small_table_)}},
408 {::_pbi::TcParser::MiniParse, {}},
409 {::_pbi::TcParser::MiniParse, {}},
410 {::_pbi::TcParser::MiniParse, {}},
411 // bool use_cumulative_edge_finder = 105;
412 {::_pbi::TcParser::FastV8S2,
413 {1736, 17, 0, PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.use_cumulative_edge_finder_)}},
414 // bool use_cumulative_time_table = 106;
415 {::_pbi::TcParser::FastV8S2,
416 {1744, 18, 0, PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.use_cumulative_time_table_)}},
417 // bool use_sequence_high_demand_tasks = 107;
418 {::_pbi::TcParser::FastV8S2,
419 {1752, 19, 0, PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.use_sequence_high_demand_tasks_)}},
420 // bool use_all_possible_disjunctions = 108;
421 {::_pbi::TcParser::FastV8S2,
422 {1760, 21, 0, PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.use_all_possible_disjunctions_)}},
423 // int32 max_edge_finder_size = 109;
424 {::_pbi::TcParser::FastV32S2,
425 {1768, 20, 0, PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.max_edge_finder_size_)}},
426 // bool diffn_use_cumulative = 110;
427 {::_pbi::TcParser::FastV8S2,
428 {1776, 22, 0, PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.diffn_use_cumulative_)}},
429 // bool use_element_rmq = 111;
430 {::_pbi::TcParser::FastV8S2,
431 {1784, 23, 0, PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.use_element_rmq_)}},
432 }}, {{
433 101, 0, 1,
434 49166, 16,
435 65535, 65535
436 }}, {{
437 // .operations_research.ConstraintSolverParameters.TrailCompression compress_trail = 1;
438 {PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.compress_trail_), _Internal::kHasBitsOffset + 1, 0,
439 (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
440 // int32 trail_block_size = 2;
441 {PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.trail_block_size_), _Internal::kHasBitsOffset + 2, 0,
442 (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
443 // int32 array_split_size = 3;
444 {PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.array_split_size_), _Internal::kHasBitsOffset + 3, 0,
445 (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
446 // bool store_names = 4;
447 {PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.store_names_), _Internal::kHasBitsOffset + 4, 0,
448 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
449 // bool name_cast_variables = 5;
450 {PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.name_cast_variables_), _Internal::kHasBitsOffset + 5, 0,
451 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
452 // bool name_all_variables = 6;
453 {PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.name_all_variables_), _Internal::kHasBitsOffset + 6, 0,
454 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
455 // bool profile_propagation = 7;
456 {PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.profile_propagation_), _Internal::kHasBitsOffset + 7, 0,
457 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
458 // string profile_file = 8;
459 {PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.profile_file_), _Internal::kHasBitsOffset + 0, 0,
460 (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
461 // bool trace_propagation = 9;
462 {PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.trace_propagation_), _Internal::kHasBitsOffset + 8, 0,
463 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
464 // bool trace_search = 10;
465 {PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.trace_search_), _Internal::kHasBitsOffset + 9, 0,
466 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
467 // bool print_model = 11;
468 {PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.print_model_), _Internal::kHasBitsOffset + 10, 0,
469 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
470 // bool print_model_stats = 12;
471 {PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.print_model_stats_), _Internal::kHasBitsOffset + 11, 0,
472 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
473 // bool print_added_constraints = 13;
474 {PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.print_added_constraints_), _Internal::kHasBitsOffset + 12, 0,
475 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
476 // bool disable_solve = 15;
477 {PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.disable_solve_), _Internal::kHasBitsOffset + 13, 0,
478 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
479 // bool profile_local_search = 16;
480 {PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.profile_local_search_), _Internal::kHasBitsOffset + 14, 0,
481 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
482 // bool print_local_search_profile = 17;
483 {PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.print_local_search_profile_), _Internal::kHasBitsOffset + 15, 0,
484 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
485 // bool use_small_table = 101;
486 {PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.use_small_table_), _Internal::kHasBitsOffset + 16, 0,
487 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
488 // bool use_cumulative_edge_finder = 105;
489 {PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.use_cumulative_edge_finder_), _Internal::kHasBitsOffset + 17, 0,
490 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
491 // bool use_cumulative_time_table = 106;
492 {PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.use_cumulative_time_table_), _Internal::kHasBitsOffset + 18, 0,
493 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
494 // bool use_sequence_high_demand_tasks = 107;
495 {PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.use_sequence_high_demand_tasks_), _Internal::kHasBitsOffset + 19, 0,
496 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
497 // bool use_all_possible_disjunctions = 108;
498 {PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.use_all_possible_disjunctions_), _Internal::kHasBitsOffset + 21, 0,
499 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
500 // int32 max_edge_finder_size = 109;
501 {PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.max_edge_finder_size_), _Internal::kHasBitsOffset + 20, 0,
502 (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
503 // bool diffn_use_cumulative = 110;
504 {PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.diffn_use_cumulative_), _Internal::kHasBitsOffset + 22, 0,
505 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
506 // bool use_element_rmq = 111;
507 {PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.use_element_rmq_), _Internal::kHasBitsOffset + 23, 0,
508 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
509 // bool use_cumulative_time_table_sync = 112;
510 {PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.use_cumulative_time_table_sync_), _Internal::kHasBitsOffset + 24, 0,
511 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
512 // bool skip_locally_optimal_paths = 113;
513 {PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.skip_locally_optimal_paths_), _Internal::kHasBitsOffset + 25, 0,
514 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
515 // int32 check_solution_period = 114;
516 {PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.check_solution_period_), _Internal::kHasBitsOffset + 26, 0,
517 (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
518 }},
519 // no aux_entries
520 {{
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"
523 "profile_file"
524 }},
525};
526PROTOBUF_NOINLINE void ConstraintSolverParameters::Clear() {
527// @@protoc_insertion_point(message_clear_start:operations_research.ConstraintSolverParameters)
528 ::google::protobuf::internal::TSanWrite(&_impl_);
529 ::uint32_t cached_has_bits = 0;
530 // Prevent compiler warnings about cached_has_bits being unused
531 (void) cached_has_bits;
532
533 cached_has_bits = _impl_._has_bits_[0];
534 if ((cached_has_bits & 0x00000001u) != 0) {
535 _impl_.profile_file_.ClearNonDefaultToEmpty();
536 }
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_));
541 }
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_));
546 }
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_));
551 }
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_));
556 }
557 _impl_._has_bits_.Clear();
558 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
559}
560
561#if defined(PROTOBUF_CUSTOM_VTABLE)
562::uint8_t* PROTOBUF_NONNULL ConstraintSolverParameters::_InternalSerialize(
563 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
564 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
565 const ConstraintSolverParameters& this_ = static_cast<const ConstraintSolverParameters&>(base);
566#else // PROTOBUF_CUSTOM_VTABLE
567::uint8_t* PROTOBUF_NONNULL ConstraintSolverParameters::_InternalSerialize(
568 ::uint8_t* PROTOBUF_NONNULL target,
569 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
570 const ConstraintSolverParameters& this_ = *this;
571#endif // PROTOBUF_CUSTOM_VTABLE
572 // @@protoc_insertion_point(serialize_to_array_start:operations_research.ConstraintSolverParameters)
573 ::uint32_t cached_has_bits = 0;
574 (void)cached_has_bits;
575
576 // .operations_research.ConstraintSolverParameters.TrailCompression compress_trail = 1;
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);
582 }
583 }
584
585 // int32 trail_block_size = 2;
586 if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) {
587 if (this_._internal_trail_block_size() != 0) {
588 target =
589 ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>(
590 stream, this_._internal_trail_block_size(), target);
591 }
592 }
593
594 // int32 array_split_size = 3;
595 if ((this_._impl_._has_bits_[0] & 0x00000008u) != 0) {
596 if (this_._internal_array_split_size() != 0) {
597 target =
598 ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>(
599 stream, this_._internal_array_split_size(), target);
600 }
601 }
602
603 // bool store_names = 4;
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);
609 }
610 }
611
612 // bool name_cast_variables = 5;
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);
618 }
619 }
620
621 // bool name_all_variables = 6;
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);
627 }
628 }
629
630 // bool profile_propagation = 7;
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);
636 }
637 }
638
639 // string profile_file = 8;
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);
646 }
647 }
648
649 // bool trace_propagation = 9;
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);
655 }
656 }
657
658 // bool trace_search = 10;
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);
664 }
665 }
666
667 // bool print_model = 11;
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);
673 }
674 }
675
676 // bool print_model_stats = 12;
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);
682 }
683 }
684
685 // bool print_added_constraints = 13;
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);
691 }
692 }
693
694 // bool disable_solve = 15;
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);
700 }
701 }
702
703 // bool profile_local_search = 16;
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);
709 }
710 }
711
712 // bool print_local_search_profile = 17;
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);
718 }
719 }
720
721 // bool use_small_table = 101;
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);
727 }
728 }
729
730 // bool use_cumulative_edge_finder = 105;
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);
736 }
737 }
738
739 // bool use_cumulative_time_table = 106;
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);
745 }
746 }
747
748 // bool use_sequence_high_demand_tasks = 107;
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);
754 }
755 }
756
757 // bool use_all_possible_disjunctions = 108;
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);
763 }
764 }
765
766 // int32 max_edge_finder_size = 109;
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);
772 }
773 }
774
775 // bool diffn_use_cumulative = 110;
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);
781 }
782 }
783
784 // bool use_element_rmq = 111;
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);
790 }
791 }
792
793 // bool use_cumulative_time_table_sync = 112;
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);
799 }
800 }
801
802 // bool skip_locally_optimal_paths = 113;
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);
808 }
809 }
810
811 // int32 check_solution_period = 114;
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);
817 }
818 }
819
820 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
821 target =
822 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
823 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
824 }
825 // @@protoc_insertion_point(serialize_to_array_end:operations_research.ConstraintSolverParameters)
826 return target;
827}
828
829#if defined(PROTOBUF_CUSTOM_VTABLE)
831 const ConstraintSolverParameters& this_ = static_cast<const ConstraintSolverParameters&>(base);
832#else // PROTOBUF_CUSTOM_VTABLE
834 const ConstraintSolverParameters& this_ = *this;
835#endif // PROTOBUF_CUSTOM_VTABLE
836 // @@protoc_insertion_point(message_byte_size_start:operations_research.ConstraintSolverParameters)
837 ::size_t total_size = 0;
838
839 ::uint32_t cached_has_bits = 0;
840 // Prevent compiler warnings about cached_has_bits being unused
841 (void)cached_has_bits;
842
843 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
844 cached_has_bits = this_._impl_._has_bits_[0];
845 if ((cached_has_bits & 0x000000ffu) != 0) {
846 // string profile_file = 8;
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());
851 }
852 }
853 // .operations_research.ConstraintSolverParameters.TrailCompression compress_trail = 1;
854 if ((cached_has_bits & 0x00000002u) != 0) {
855 if (this_._internal_compress_trail() != 0) {
856 total_size += 1 +
857 ::_pbi::WireFormatLite::EnumSize(this_._internal_compress_trail());
858 }
859 }
860 // int32 trail_block_size = 2;
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());
865 }
866 }
867 // int32 array_split_size = 3;
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());
872 }
873 }
874 // bool store_names = 4;
875 if ((cached_has_bits & 0x00000010u) != 0) {
876 if (this_._internal_store_names() != 0) {
877 total_size += 2;
878 }
879 }
880 // bool name_cast_variables = 5;
881 if ((cached_has_bits & 0x00000020u) != 0) {
882 if (this_._internal_name_cast_variables() != 0) {
883 total_size += 2;
884 }
885 }
886 // bool name_all_variables = 6;
887 if ((cached_has_bits & 0x00000040u) != 0) {
888 if (this_._internal_name_all_variables() != 0) {
889 total_size += 2;
890 }
891 }
892 // bool profile_propagation = 7;
893 if ((cached_has_bits & 0x00000080u) != 0) {
894 if (this_._internal_profile_propagation() != 0) {
895 total_size += 2;
896 }
897 }
898 }
899 if ((cached_has_bits & 0x0000ff00u) != 0) {
900 // bool trace_propagation = 9;
901 if ((cached_has_bits & 0x00000100u) != 0) {
902 if (this_._internal_trace_propagation() != 0) {
903 total_size += 2;
904 }
905 }
906 // bool trace_search = 10;
907 if ((cached_has_bits & 0x00000200u) != 0) {
908 if (this_._internal_trace_search() != 0) {
909 total_size += 2;
910 }
911 }
912 // bool print_model = 11;
913 if ((cached_has_bits & 0x00000400u) != 0) {
914 if (this_._internal_print_model() != 0) {
915 total_size += 2;
916 }
917 }
918 // bool print_model_stats = 12;
919 if ((cached_has_bits & 0x00000800u) != 0) {
920 if (this_._internal_print_model_stats() != 0) {
921 total_size += 2;
922 }
923 }
924 // bool print_added_constraints = 13;
925 if ((cached_has_bits & 0x00001000u) != 0) {
926 if (this_._internal_print_added_constraints() != 0) {
927 total_size += 2;
928 }
929 }
930 // bool disable_solve = 15;
931 if ((cached_has_bits & 0x00002000u) != 0) {
932 if (this_._internal_disable_solve() != 0) {
933 total_size += 2;
934 }
935 }
936 // bool profile_local_search = 16;
937 if ((cached_has_bits & 0x00004000u) != 0) {
938 if (this_._internal_profile_local_search() != 0) {
939 total_size += 3;
940 }
941 }
942 // bool print_local_search_profile = 17;
943 if ((cached_has_bits & 0x00008000u) != 0) {
944 if (this_._internal_print_local_search_profile() != 0) {
945 total_size += 3;
946 }
947 }
948 }
949 if ((cached_has_bits & 0x00ff0000u) != 0) {
950 // bool use_small_table = 101;
951 if ((cached_has_bits & 0x00010000u) != 0) {
952 if (this_._internal_use_small_table() != 0) {
953 total_size += 3;
954 }
955 }
956 // bool use_cumulative_edge_finder = 105;
957 if ((cached_has_bits & 0x00020000u) != 0) {
958 if (this_._internal_use_cumulative_edge_finder() != 0) {
959 total_size += 3;
960 }
961 }
962 // bool use_cumulative_time_table = 106;
963 if ((cached_has_bits & 0x00040000u) != 0) {
964 if (this_._internal_use_cumulative_time_table() != 0) {
965 total_size += 3;
966 }
967 }
968 // bool use_sequence_high_demand_tasks = 107;
969 if ((cached_has_bits & 0x00080000u) != 0) {
970 if (this_._internal_use_sequence_high_demand_tasks() != 0) {
971 total_size += 3;
972 }
973 }
974 // int32 max_edge_finder_size = 109;
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());
979 }
980 }
981 // bool use_all_possible_disjunctions = 108;
982 if ((cached_has_bits & 0x00200000u) != 0) {
983 if (this_._internal_use_all_possible_disjunctions() != 0) {
984 total_size += 3;
985 }
986 }
987 // bool diffn_use_cumulative = 110;
988 if ((cached_has_bits & 0x00400000u) != 0) {
989 if (this_._internal_diffn_use_cumulative() != 0) {
990 total_size += 3;
991 }
992 }
993 // bool use_element_rmq = 111;
994 if ((cached_has_bits & 0x00800000u) != 0) {
995 if (this_._internal_use_element_rmq() != 0) {
996 total_size += 3;
997 }
998 }
999 }
1000 if ((cached_has_bits & 0x07000000u) != 0) {
1001 // bool use_cumulative_time_table_sync = 112;
1002 if ((cached_has_bits & 0x01000000u) != 0) {
1003 if (this_._internal_use_cumulative_time_table_sync() != 0) {
1004 total_size += 3;
1005 }
1006 }
1007 // bool skip_locally_optimal_paths = 113;
1008 if ((cached_has_bits & 0x02000000u) != 0) {
1009 if (this_._internal_skip_locally_optimal_paths() != 0) {
1010 total_size += 3;
1011 }
1012 }
1013 // int32 check_solution_period = 114;
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());
1018 }
1019 }
1020 }
1021 return this_.MaybeComputeUnknownFieldsSize(total_size,
1022 &this_._impl_._cached_size_);
1023}
1024
1025void ConstraintSolverParameters::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
1026 auto* const _this = static_cast<ConstraintSolverParameters*>(&to_msg);
1027 auto& from = static_cast<const ConstraintSolverParameters&>(from_msg);
1028 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.ConstraintSolverParameters)
1029 ABSL_DCHECK_NE(&from, _this);
1030 ::uint32_t cached_has_bits = 0;
1031 (void) cached_has_bits;
1032
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());
1038 } else {
1039 if (_this->_impl_.profile_file_.IsDefault()) {
1040 _this->_internal_set_profile_file("");
1041 }
1042 }
1043 }
1044 if ((cached_has_bits & 0x00000002u) != 0) {
1045 if (from._internal_compress_trail() != 0) {
1046 _this->_impl_.compress_trail_ = from._impl_.compress_trail_;
1047 }
1048 }
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_;
1052 }
1053 }
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_;
1057 }
1058 }
1059 if ((cached_has_bits & 0x00000010u) != 0) {
1060 if (from._internal_store_names() != 0) {
1061 _this->_impl_.store_names_ = from._impl_.store_names_;
1062 }
1063 }
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_;
1067 }
1068 }
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_;
1072 }
1073 }
1074 if ((cached_has_bits & 0x00000080u) != 0) {
1075 if (from._internal_profile_propagation() != 0) {
1076 _this->_impl_.profile_propagation_ = from._impl_.profile_propagation_;
1077 }
1078 }
1079 }
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_;
1084 }
1085 }
1086 if ((cached_has_bits & 0x00000200u) != 0) {
1087 if (from._internal_trace_search() != 0) {
1088 _this->_impl_.trace_search_ = from._impl_.trace_search_;
1089 }
1090 }
1091 if ((cached_has_bits & 0x00000400u) != 0) {
1092 if (from._internal_print_model() != 0) {
1093 _this->_impl_.print_model_ = from._impl_.print_model_;
1094 }
1095 }
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_;
1099 }
1100 }
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_;
1104 }
1105 }
1106 if ((cached_has_bits & 0x00002000u) != 0) {
1107 if (from._internal_disable_solve() != 0) {
1108 _this->_impl_.disable_solve_ = from._impl_.disable_solve_;
1109 }
1110 }
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_;
1114 }
1115 }
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_;
1119 }
1120 }
1121 }
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_;
1126 }
1127 }
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_;
1131 }
1132 }
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_;
1136 }
1137 }
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_;
1141 }
1142 }
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_;
1146 }
1147 }
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_;
1151 }
1152 }
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_;
1156 }
1157 }
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_;
1161 }
1162 }
1163 }
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_;
1168 }
1169 }
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_;
1173 }
1174 }
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_;
1178 }
1179 }
1180 }
1181 _this->_impl_._has_bits_[0] |= cached_has_bits;
1182 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
1183}
1184
1186// @@protoc_insertion_point(class_specific_copy_from_start:operations_research.ConstraintSolverParameters)
1187 if (&from == this) return;
1188 Clear();
1189 MergeFrom(from);
1190}
1191
1192
1193void ConstraintSolverParameters::InternalSwap(ConstraintSolverParameters* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1194 using ::std::swap;
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<
1201 PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.check_solution_period_)
1202 + sizeof(ConstraintSolverParameters::_impl_.check_solution_period_)
1203 - PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, _impl_.compress_trail_)>(
1204 reinterpret_cast<char*>(&_impl_.compress_trail_),
1205 reinterpret_cast<char*>(&other->_impl_.compress_trail_));
1206}
1207
1208::google::protobuf::Metadata ConstraintSolverParameters::GetMetadata() const {
1209 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1210}
1211// @@protoc_insertion_point(namespace_scope)
1212} // namespace operations_research
1213namespace google {
1214namespace protobuf {
1215} // namespace protobuf
1216} // namespace google
1217// @@protoc_insertion_point(global_scope)
1218PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
1219 _static_init2_ [[maybe_unused]] =
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[]
decltype(::std::declval< ConstraintSolverParameters >()._impl_._has_bits_) HasBits
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
::google::protobuf::Metadata GetMetadata() const
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)
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_
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