OR-Tools  9.0
solver_parameters.pb.cc
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ortools/constraint_solver/solver_parameters.proto
3 
5 
6 #include <algorithm>
7 
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>
15 // @@protoc_insertion_point(includes)
16 #include <google/protobuf/port_def.inc>
17 
18 PROTOBUF_PRAGMA_INIT_SEG
19 namespace operations_research {
20 constexpr ConstraintSolverParameters::ConstraintSolverParameters(
21  ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
22  : profile_file_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
23  , compress_trail_(0)
24 
25  , trail_block_size_(0)
26  , array_split_size_(0)
27  , store_names_(false)
28  , name_cast_variables_(false)
29  , name_all_variables_(false)
30  , profile_propagation_(false)
31  , print_model_(false)
32  , print_model_stats_(false)
33  , print_added_constraints_(false)
34  , disable_solve_(false)
35  , profile_local_search_(false)
36  , print_local_search_profile_(false)
37  , trace_propagation_(false)
38  , trace_search_(false)
39  , check_solution_period_(0)
40  , use_small_table_(false)
41  , use_cumulative_edge_finder_(false)
42  , use_cumulative_time_table_(false)
43  , use_cumulative_time_table_sync_(false)
44  , max_edge_finder_size_(0)
45  , use_sequence_high_demand_tasks_(false)
46  , use_all_possible_disjunctions_(false)
47  , diffn_use_cumulative_(false)
48  , use_element_rmq_(false)
49  , skip_locally_optimal_paths_(false){}
52  : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
54  union {
55  ConstraintSolverParameters _instance;
56  };
57 };
59 } // namespace operations_research
61 static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto[1];
62 static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto = nullptr;
63 
65  ~0u, // no _has_bits_
66  PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, _internal_metadata_),
67  ~0u, // no _extensions_
68  ~0u, // no _oneof_case_
69  ~0u, // no _weak_field_map_
70  PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, compress_trail_),
71  PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, trail_block_size_),
72  PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, array_split_size_),
73  PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, store_names_),
74  PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, name_cast_variables_),
75  PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, name_all_variables_),
76  PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, profile_propagation_),
77  PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, profile_file_),
78  PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, profile_local_search_),
79  PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, print_local_search_profile_),
80  PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, trace_propagation_),
81  PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, trace_search_),
82  PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, print_model_),
83  PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, print_model_stats_),
84  PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, print_added_constraints_),
85  PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, disable_solve_),
86  PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, use_small_table_),
87  PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, use_cumulative_edge_finder_),
88  PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, use_cumulative_time_table_),
89  PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, use_cumulative_time_table_sync_),
90  PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, use_sequence_high_demand_tasks_),
91  PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, use_all_possible_disjunctions_),
92  PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, max_edge_finder_size_),
93  PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, diffn_use_cumulative_),
94  PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, use_element_rmq_),
95  PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, skip_locally_optimal_paths_),
96  PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintSolverParameters, check_solution_period_),
97 };
98 static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
99  { 0, -1, sizeof(::operations_research::ConstraintSolverParameters)},
100 };
101 
102 static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
103  reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::operations_research::_ConstraintSolverParameters_default_instance_),
104 };
105 
106 const char descriptor_table_protodef_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
107  "\n1ortools/constraint_solver/solver_param"
108  "eters.proto\022\023operations_research\"\315\007\n\032Con"
109  "straintSolverParameters\022X\n\016compress_trai"
110  "l\030\001 \001(\0162@.operations_research.Constraint"
111  "SolverParameters.TrailCompression\022\030\n\020tra"
112  "il_block_size\030\002 \001(\005\022\030\n\020array_split_size\030"
113  "\003 \001(\005\022\023\n\013store_names\030\004 \001(\010\022\033\n\023name_cast_"
114  "variables\030\005 \001(\010\022\032\n\022name_all_variables\030\006 "
115  "\001(\010\022\033\n\023profile_propagation\030\007 \001(\010\022\024\n\014prof"
116  "ile_file\030\010 \001(\t\022\034\n\024profile_local_search\030\020"
117  " \001(\010\022\"\n\032print_local_search_profile\030\021 \001(\010"
118  "\022\031\n\021trace_propagation\030\t \001(\010\022\024\n\014trace_sea"
119  "rch\030\n \001(\010\022\023\n\013print_model\030\013 \001(\010\022\031\n\021print_"
120  "model_stats\030\014 \001(\010\022\037\n\027print_added_constra"
121  "ints\030\r \001(\010\022\025\n\rdisable_solve\030\017 \001(\010\022\027\n\017use"
122  "_small_table\030e \001(\010\022\"\n\032use_cumulative_edg"
123  "e_finder\030i \001(\010\022!\n\031use_cumulative_time_ta"
124  "ble\030j \001(\010\022&\n\036use_cumulative_time_table_s"
125  "ync\030p \001(\010\022&\n\036use_sequence_high_demand_ta"
126  "sks\030k \001(\010\022%\n\035use_all_possible_disjunctio"
127  "ns\030l \001(\010\022\034\n\024max_edge_finder_size\030m \001(\005\022\034"
128  "\n\024diffn_use_cumulative\030n \001(\010\022\027\n\017use_elem"
129  "ent_rmq\030o \001(\010\022\"\n\032skip_locally_optimal_pa"
130  "ths\030q \001(\010\022\035\n\025check_solution_period\030r \001(\005"
131  "\">\n\020TrailCompression\022\022\n\016NO_COMPRESSION\020\000"
132  "\022\026\n\022COMPRESS_WITH_ZLIB\020\001J\004\010d\020eJ\004\010f\020gJ\004\010g"
133  "\020hJ\004\010h\020iBI\n#com.google.ortools.constrain"
134  "tsolverP\001\252\002\037Google.OrTools.ConstraintSol"
135  "verb\006proto3"
136  ;
138 const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto = {
139  false, false, 1131, descriptor_table_protodef_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto, "ortools/constraint_solver/solver_parameters.proto",
143 };
144 PROTOBUF_ATTRIBUTE_WEAK ::PROTOBUF_NAMESPACE_ID::Metadata
146  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto);
148 }
149 
150 // Force running AddDescriptors() at dynamic initialization time.
151 PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto(&descriptor_table_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto);
152 namespace operations_research {
153 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ConstraintSolverParameters_TrailCompression_descriptor() {
154  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto);
156 }
158  switch (value) {
159  case 0:
160  case 1:
161  return true;
162  default:
163  return false;
164  }
165 }
166 
167 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
168 constexpr ConstraintSolverParameters_TrailCompression ConstraintSolverParameters::NO_COMPRESSION;
169 constexpr ConstraintSolverParameters_TrailCompression ConstraintSolverParameters::COMPRESS_WITH_ZLIB;
170 constexpr ConstraintSolverParameters_TrailCompression ConstraintSolverParameters::TrailCompression_MIN;
171 constexpr ConstraintSolverParameters_TrailCompression ConstraintSolverParameters::TrailCompression_MAX;
172 constexpr int ConstraintSolverParameters::TrailCompression_ARRAYSIZE;
173 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
174 
175 // ===================================================================
176 
178  public:
179 };
180 
181 ConstraintSolverParameters::ConstraintSolverParameters(::PROTOBUF_NAMESPACE_ID::Arena* arena)
182  : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
183  SharedCtor();
184  RegisterArenaDtor(arena);
185  // @@protoc_insertion_point(arena_constructor:operations_research.ConstraintSolverParameters)
186 }
187 ConstraintSolverParameters::ConstraintSolverParameters(const ConstraintSolverParameters& from)
188  : ::PROTOBUF_NAMESPACE_ID::Message() {
189  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
190  profile_file_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
191  if (!from._internal_profile_file().empty()) {
192  profile_file_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_profile_file(),
193  GetArena());
194  }
195  ::memcpy(&compress_trail_, &from.compress_trail_,
196  static_cast<size_t>(reinterpret_cast<char*>(&skip_locally_optimal_paths_) -
197  reinterpret_cast<char*>(&compress_trail_)) + sizeof(skip_locally_optimal_paths_));
198  // @@protoc_insertion_point(copy_constructor:operations_research.ConstraintSolverParameters)
199 }
200 
201 void ConstraintSolverParameters::SharedCtor() {
202 profile_file_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
203 ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
204  reinterpret_cast<char*>(&compress_trail_) - reinterpret_cast<char*>(this)),
205  0, static_cast<size_t>(reinterpret_cast<char*>(&skip_locally_optimal_paths_) -
206  reinterpret_cast<char*>(&compress_trail_)) + sizeof(skip_locally_optimal_paths_));
207 }
208 
209 ConstraintSolverParameters::~ConstraintSolverParameters() {
210  // @@protoc_insertion_point(destructor:operations_research.ConstraintSolverParameters)
211  SharedDtor();
212  _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
213 }
214 
215 void ConstraintSolverParameters::SharedDtor() {
216  GOOGLE_DCHECK(GetArena() == nullptr);
217  profile_file_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
218 }
219 
220 void ConstraintSolverParameters::ArenaDtor(void* object) {
221  ConstraintSolverParameters* _this = reinterpret_cast< ConstraintSolverParameters* >(object);
222  (void)_this;
223 }
224 void ConstraintSolverParameters::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
225 }
226 void ConstraintSolverParameters::SetCachedSize(int size) const {
227  _cached_size_.Set(size);
228 }
229 
230 void ConstraintSolverParameters::Clear() {
231 // @@protoc_insertion_point(message_clear_start:operations_research.ConstraintSolverParameters)
232  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
233  // Prevent compiler warnings about cached_has_bits being unused
234  (void) cached_has_bits;
235 
236  profile_file_.ClearToEmpty();
237  ::memset(&compress_trail_, 0, static_cast<size_t>(
238  reinterpret_cast<char*>(&skip_locally_optimal_paths_) -
239  reinterpret_cast<char*>(&compress_trail_)) + sizeof(skip_locally_optimal_paths_));
240  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
241 }
242 
243 const char* ConstraintSolverParameters::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
244 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
245  while (!ctx->Done(&ptr)) {
246  ::PROTOBUF_NAMESPACE_ID::uint32 tag;
247  ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
248  CHK_(ptr);
249  switch (tag >> 3) {
250  // .operations_research.ConstraintSolverParameters.TrailCompression compress_trail = 1;
251  case 1:
252  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
253  ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
254  CHK_(ptr);
255  _internal_set_compress_trail(static_cast<::operations_research::ConstraintSolverParameters_TrailCompression>(val));
256  } else goto handle_unusual;
257  continue;
258  // int32 trail_block_size = 2;
259  case 2:
260  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
261  trail_block_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
262  CHK_(ptr);
263  } else goto handle_unusual;
264  continue;
265  // int32 array_split_size = 3;
266  case 3:
267  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
268  array_split_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
269  CHK_(ptr);
270  } else goto handle_unusual;
271  continue;
272  // bool store_names = 4;
273  case 4:
274  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
275  store_names_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
276  CHK_(ptr);
277  } else goto handle_unusual;
278  continue;
279  // bool name_cast_variables = 5;
280  case 5:
281  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
282  name_cast_variables_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
283  CHK_(ptr);
284  } else goto handle_unusual;
285  continue;
286  // bool name_all_variables = 6;
287  case 6:
288  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) {
289  name_all_variables_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
290  CHK_(ptr);
291  } else goto handle_unusual;
292  continue;
293  // bool profile_propagation = 7;
294  case 7:
295  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) {
296  profile_propagation_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
297  CHK_(ptr);
298  } else goto handle_unusual;
299  continue;
300  // string profile_file = 8;
301  case 8:
302  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) {
303  auto str = _internal_mutable_profile_file();
304  ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
305  CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "operations_research.ConstraintSolverParameters.profile_file"));
306  CHK_(ptr);
307  } else goto handle_unusual;
308  continue;
309  // bool trace_propagation = 9;
310  case 9:
311  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) {
312  trace_propagation_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
313  CHK_(ptr);
314  } else goto handle_unusual;
315  continue;
316  // bool trace_search = 10;
317  case 10:
318  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) {
319  trace_search_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
320  CHK_(ptr);
321  } else goto handle_unusual;
322  continue;
323  // bool print_model = 11;
324  case 11:
325  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 88)) {
326  print_model_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
327  CHK_(ptr);
328  } else goto handle_unusual;
329  continue;
330  // bool print_model_stats = 12;
331  case 12:
332  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 96)) {
333  print_model_stats_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
334  CHK_(ptr);
335  } else goto handle_unusual;
336  continue;
337  // bool print_added_constraints = 13;
338  case 13:
339  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 104)) {
340  print_added_constraints_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
341  CHK_(ptr);
342  } else goto handle_unusual;
343  continue;
344  // bool disable_solve = 15;
345  case 15:
346  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 120)) {
347  disable_solve_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
348  CHK_(ptr);
349  } else goto handle_unusual;
350  continue;
351  // bool profile_local_search = 16;
352  case 16:
353  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 128)) {
354  profile_local_search_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
355  CHK_(ptr);
356  } else goto handle_unusual;
357  continue;
358  // bool print_local_search_profile = 17;
359  case 17:
360  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 136)) {
361  print_local_search_profile_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
362  CHK_(ptr);
363  } else goto handle_unusual;
364  continue;
365  // bool use_small_table = 101;
366  case 101:
367  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
368  use_small_table_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
369  CHK_(ptr);
370  } else goto handle_unusual;
371  continue;
372  // bool use_cumulative_edge_finder = 105;
373  case 105:
374  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) {
375  use_cumulative_edge_finder_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
376  CHK_(ptr);
377  } else goto handle_unusual;
378  continue;
379  // bool use_cumulative_time_table = 106;
380  case 106:
381  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) {
382  use_cumulative_time_table_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
383  CHK_(ptr);
384  } else goto handle_unusual;
385  continue;
386  // bool use_sequence_high_demand_tasks = 107;
387  case 107:
388  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 88)) {
389  use_sequence_high_demand_tasks_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
390  CHK_(ptr);
391  } else goto handle_unusual;
392  continue;
393  // bool use_all_possible_disjunctions = 108;
394  case 108:
395  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 96)) {
396  use_all_possible_disjunctions_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
397  CHK_(ptr);
398  } else goto handle_unusual;
399  continue;
400  // int32 max_edge_finder_size = 109;
401  case 109:
402  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 104)) {
403  max_edge_finder_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
404  CHK_(ptr);
405  } else goto handle_unusual;
406  continue;
407  // bool diffn_use_cumulative = 110;
408  case 110:
409  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 112)) {
410  diffn_use_cumulative_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
411  CHK_(ptr);
412  } else goto handle_unusual;
413  continue;
414  // bool use_element_rmq = 111;
415  case 111:
416  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 120)) {
417  use_element_rmq_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
418  CHK_(ptr);
419  } else goto handle_unusual;
420  continue;
421  // bool use_cumulative_time_table_sync = 112;
422  case 112:
423  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 128)) {
424  use_cumulative_time_table_sync_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
425  CHK_(ptr);
426  } else goto handle_unusual;
427  continue;
428  // bool skip_locally_optimal_paths = 113;
429  case 113:
430  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 136)) {
431  skip_locally_optimal_paths_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
432  CHK_(ptr);
433  } else goto handle_unusual;
434  continue;
435  // int32 check_solution_period = 114;
436  case 114:
437  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 144)) {
438  check_solution_period_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
439  CHK_(ptr);
440  } else goto handle_unusual;
441  continue;
442  default: {
443  handle_unusual:
444  if ((tag & 7) == 4 || tag == 0) {
445  ctx->SetLastTag(tag);
446  goto success;
447  }
448  ptr = UnknownFieldParse(tag,
449  _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
450  ptr, ctx);
451  CHK_(ptr != nullptr);
452  continue;
453  }
454  } // switch
455  } // while
456 success:
457  return ptr;
458 failure:
459  ptr = nullptr;
460  goto success;
461 #undef CHK_
462 }
463 
464 ::PROTOBUF_NAMESPACE_ID::uint8* ConstraintSolverParameters::_InternalSerialize(
465  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
466  // @@protoc_insertion_point(serialize_to_array_start:operations_research.ConstraintSolverParameters)
467  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
468  (void) cached_has_bits;
469 
470  // .operations_research.ConstraintSolverParameters.TrailCompression compress_trail = 1;
471  if (this->compress_trail() != 0) {
472  target = stream->EnsureSpace(target);
473  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
474  1, this->_internal_compress_trail(), target);
475  }
476 
477  // int32 trail_block_size = 2;
478  if (this->trail_block_size() != 0) {
479  target = stream->EnsureSpace(target);
480  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_trail_block_size(), target);
481  }
482 
483  // int32 array_split_size = 3;
484  if (this->array_split_size() != 0) {
485  target = stream->EnsureSpace(target);
486  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_array_split_size(), target);
487  }
488 
489  // bool store_names = 4;
490  if (this->store_names() != 0) {
491  target = stream->EnsureSpace(target);
492  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(4, this->_internal_store_names(), target);
493  }
494 
495  // bool name_cast_variables = 5;
496  if (this->name_cast_variables() != 0) {
497  target = stream->EnsureSpace(target);
498  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(5, this->_internal_name_cast_variables(), target);
499  }
500 
501  // bool name_all_variables = 6;
502  if (this->name_all_variables() != 0) {
503  target = stream->EnsureSpace(target);
504  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(6, this->_internal_name_all_variables(), target);
505  }
506 
507  // bool profile_propagation = 7;
508  if (this->profile_propagation() != 0) {
509  target = stream->EnsureSpace(target);
510  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(7, this->_internal_profile_propagation(), target);
511  }
512 
513  // string profile_file = 8;
514  if (this->profile_file().size() > 0) {
515  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
516  this->_internal_profile_file().data(), static_cast<int>(this->_internal_profile_file().length()),
517  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
518  "operations_research.ConstraintSolverParameters.profile_file");
519  target = stream->WriteStringMaybeAliased(
520  8, this->_internal_profile_file(), target);
521  }
522 
523  // bool trace_propagation = 9;
524  if (this->trace_propagation() != 0) {
525  target = stream->EnsureSpace(target);
526  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(9, this->_internal_trace_propagation(), target);
527  }
528 
529  // bool trace_search = 10;
530  if (this->trace_search() != 0) {
531  target = stream->EnsureSpace(target);
532  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(10, this->_internal_trace_search(), target);
533  }
534 
535  // bool print_model = 11;
536  if (this->print_model() != 0) {
537  target = stream->EnsureSpace(target);
538  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(11, this->_internal_print_model(), target);
539  }
540 
541  // bool print_model_stats = 12;
542  if (this->print_model_stats() != 0) {
543  target = stream->EnsureSpace(target);
544  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(12, this->_internal_print_model_stats(), target);
545  }
546 
547  // bool print_added_constraints = 13;
548  if (this->print_added_constraints() != 0) {
549  target = stream->EnsureSpace(target);
550  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(13, this->_internal_print_added_constraints(), target);
551  }
552 
553  // bool disable_solve = 15;
554  if (this->disable_solve() != 0) {
555  target = stream->EnsureSpace(target);
556  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(15, this->_internal_disable_solve(), target);
557  }
558 
559  // bool profile_local_search = 16;
560  if (this->profile_local_search() != 0) {
561  target = stream->EnsureSpace(target);
562  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(16, this->_internal_profile_local_search(), target);
563  }
564 
565  // bool print_local_search_profile = 17;
566  if (this->print_local_search_profile() != 0) {
567  target = stream->EnsureSpace(target);
568  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(17, this->_internal_print_local_search_profile(), target);
569  }
570 
571  // bool use_small_table = 101;
572  if (this->use_small_table() != 0) {
573  target = stream->EnsureSpace(target);
574  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(101, this->_internal_use_small_table(), target);
575  }
576 
577  // bool use_cumulative_edge_finder = 105;
578  if (this->use_cumulative_edge_finder() != 0) {
579  target = stream->EnsureSpace(target);
580  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(105, this->_internal_use_cumulative_edge_finder(), target);
581  }
582 
583  // bool use_cumulative_time_table = 106;
584  if (this->use_cumulative_time_table() != 0) {
585  target = stream->EnsureSpace(target);
586  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(106, this->_internal_use_cumulative_time_table(), target);
587  }
588 
589  // bool use_sequence_high_demand_tasks = 107;
590  if (this->use_sequence_high_demand_tasks() != 0) {
591  target = stream->EnsureSpace(target);
592  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(107, this->_internal_use_sequence_high_demand_tasks(), target);
593  }
594 
595  // bool use_all_possible_disjunctions = 108;
596  if (this->use_all_possible_disjunctions() != 0) {
597  target = stream->EnsureSpace(target);
598  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(108, this->_internal_use_all_possible_disjunctions(), target);
599  }
600 
601  // int32 max_edge_finder_size = 109;
602  if (this->max_edge_finder_size() != 0) {
603  target = stream->EnsureSpace(target);
604  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(109, this->_internal_max_edge_finder_size(), target);
605  }
606 
607  // bool diffn_use_cumulative = 110;
608  if (this->diffn_use_cumulative() != 0) {
609  target = stream->EnsureSpace(target);
610  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(110, this->_internal_diffn_use_cumulative(), target);
611  }
612 
613  // bool use_element_rmq = 111;
614  if (this->use_element_rmq() != 0) {
615  target = stream->EnsureSpace(target);
616  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(111, this->_internal_use_element_rmq(), target);
617  }
618 
619  // bool use_cumulative_time_table_sync = 112;
620  if (this->use_cumulative_time_table_sync() != 0) {
621  target = stream->EnsureSpace(target);
622  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(112, this->_internal_use_cumulative_time_table_sync(), target);
623  }
624 
625  // bool skip_locally_optimal_paths = 113;
626  if (this->skip_locally_optimal_paths() != 0) {
627  target = stream->EnsureSpace(target);
628  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(113, this->_internal_skip_locally_optimal_paths(), target);
629  }
630 
631  // int32 check_solution_period = 114;
632  if (this->check_solution_period() != 0) {
633  target = stream->EnsureSpace(target);
634  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(114, this->_internal_check_solution_period(), target);
635  }
636 
637  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
638  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
639  _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
640  }
641  // @@protoc_insertion_point(serialize_to_array_end:operations_research.ConstraintSolverParameters)
642  return target;
643 }
644 
645 size_t ConstraintSolverParameters::ByteSizeLong() const {
646 // @@protoc_insertion_point(message_byte_size_start:operations_research.ConstraintSolverParameters)
647  size_t total_size = 0;
648 
649  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
650  // Prevent compiler warnings about cached_has_bits being unused
651  (void) cached_has_bits;
652 
653  // string profile_file = 8;
654  if (this->profile_file().size() > 0) {
655  total_size += 1 +
656  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
657  this->_internal_profile_file());
658  }
659 
660  // .operations_research.ConstraintSolverParameters.TrailCompression compress_trail = 1;
661  if (this->compress_trail() != 0) {
662  total_size += 1 +
663  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_compress_trail());
664  }
665 
666  // int32 trail_block_size = 2;
667  if (this->trail_block_size() != 0) {
668  total_size += 1 +
669  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
670  this->_internal_trail_block_size());
671  }
672 
673  // int32 array_split_size = 3;
674  if (this->array_split_size() != 0) {
675  total_size += 1 +
676  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
677  this->_internal_array_split_size());
678  }
679 
680  // bool store_names = 4;
681  if (this->store_names() != 0) {
682  total_size += 1 + 1;
683  }
684 
685  // bool name_cast_variables = 5;
686  if (this->name_cast_variables() != 0) {
687  total_size += 1 + 1;
688  }
689 
690  // bool name_all_variables = 6;
691  if (this->name_all_variables() != 0) {
692  total_size += 1 + 1;
693  }
694 
695  // bool profile_propagation = 7;
696  if (this->profile_propagation() != 0) {
697  total_size += 1 + 1;
698  }
699 
700  // bool print_model = 11;
701  if (this->print_model() != 0) {
702  total_size += 1 + 1;
703  }
704 
705  // bool print_model_stats = 12;
706  if (this->print_model_stats() != 0) {
707  total_size += 1 + 1;
708  }
709 
710  // bool print_added_constraints = 13;
711  if (this->print_added_constraints() != 0) {
712  total_size += 1 + 1;
713  }
714 
715  // bool disable_solve = 15;
716  if (this->disable_solve() != 0) {
717  total_size += 1 + 1;
718  }
719 
720  // bool profile_local_search = 16;
721  if (this->profile_local_search() != 0) {
722  total_size += 2 + 1;
723  }
724 
725  // bool print_local_search_profile = 17;
726  if (this->print_local_search_profile() != 0) {
727  total_size += 2 + 1;
728  }
729 
730  // bool trace_propagation = 9;
731  if (this->trace_propagation() != 0) {
732  total_size += 1 + 1;
733  }
734 
735  // bool trace_search = 10;
736  if (this->trace_search() != 0) {
737  total_size += 1 + 1;
738  }
739 
740  // int32 check_solution_period = 114;
741  if (this->check_solution_period() != 0) {
742  total_size += 2 +
743  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
744  this->_internal_check_solution_period());
745  }
746 
747  // bool use_small_table = 101;
748  if (this->use_small_table() != 0) {
749  total_size += 2 + 1;
750  }
751 
752  // bool use_cumulative_edge_finder = 105;
753  if (this->use_cumulative_edge_finder() != 0) {
754  total_size += 2 + 1;
755  }
756 
757  // bool use_cumulative_time_table = 106;
758  if (this->use_cumulative_time_table() != 0) {
759  total_size += 2 + 1;
760  }
761 
762  // bool use_cumulative_time_table_sync = 112;
763  if (this->use_cumulative_time_table_sync() != 0) {
764  total_size += 2 + 1;
765  }
766 
767  // int32 max_edge_finder_size = 109;
768  if (this->max_edge_finder_size() != 0) {
769  total_size += 2 +
770  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
771  this->_internal_max_edge_finder_size());
772  }
773 
774  // bool use_sequence_high_demand_tasks = 107;
775  if (this->use_sequence_high_demand_tasks() != 0) {
776  total_size += 2 + 1;
777  }
778 
779  // bool use_all_possible_disjunctions = 108;
780  if (this->use_all_possible_disjunctions() != 0) {
781  total_size += 2 + 1;
782  }
783 
784  // bool diffn_use_cumulative = 110;
785  if (this->diffn_use_cumulative() != 0) {
786  total_size += 2 + 1;
787  }
788 
789  // bool use_element_rmq = 111;
790  if (this->use_element_rmq() != 0) {
791  total_size += 2 + 1;
792  }
793 
794  // bool skip_locally_optimal_paths = 113;
795  if (this->skip_locally_optimal_paths() != 0) {
796  total_size += 2 + 1;
797  }
798 
799  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
800  return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
801  _internal_metadata_, total_size, &_cached_size_);
802  }
803  int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
804  SetCachedSize(cached_size);
805  return total_size;
806 }
807 
808 void ConstraintSolverParameters::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
809 // @@protoc_insertion_point(generalized_merge_from_start:operations_research.ConstraintSolverParameters)
810  GOOGLE_DCHECK_NE(&from, this);
811  const ConstraintSolverParameters* source =
812  ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ConstraintSolverParameters>(
813  &from);
814  if (source == nullptr) {
815  // @@protoc_insertion_point(generalized_merge_from_cast_fail:operations_research.ConstraintSolverParameters)
816  ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
817  } else {
818  // @@protoc_insertion_point(generalized_merge_from_cast_success:operations_research.ConstraintSolverParameters)
819  MergeFrom(*source);
820  }
821 }
822 
823 void ConstraintSolverParameters::MergeFrom(const ConstraintSolverParameters& from) {
824 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.ConstraintSolverParameters)
825  GOOGLE_DCHECK_NE(&from, this);
826  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
827  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
828  (void) cached_has_bits;
829 
830  if (from.profile_file().size() > 0) {
831  _internal_set_profile_file(from._internal_profile_file());
832  }
833  if (from.compress_trail() != 0) {
834  _internal_set_compress_trail(from._internal_compress_trail());
835  }
836  if (from.trail_block_size() != 0) {
837  _internal_set_trail_block_size(from._internal_trail_block_size());
838  }
839  if (from.array_split_size() != 0) {
840  _internal_set_array_split_size(from._internal_array_split_size());
841  }
842  if (from.store_names() != 0) {
843  _internal_set_store_names(from._internal_store_names());
844  }
845  if (from.name_cast_variables() != 0) {
846  _internal_set_name_cast_variables(from._internal_name_cast_variables());
847  }
848  if (from.name_all_variables() != 0) {
849  _internal_set_name_all_variables(from._internal_name_all_variables());
850  }
851  if (from.profile_propagation() != 0) {
852  _internal_set_profile_propagation(from._internal_profile_propagation());
853  }
854  if (from.print_model() != 0) {
855  _internal_set_print_model(from._internal_print_model());
856  }
857  if (from.print_model_stats() != 0) {
858  _internal_set_print_model_stats(from._internal_print_model_stats());
859  }
860  if (from.print_added_constraints() != 0) {
861  _internal_set_print_added_constraints(from._internal_print_added_constraints());
862  }
863  if (from.disable_solve() != 0) {
864  _internal_set_disable_solve(from._internal_disable_solve());
865  }
866  if (from.profile_local_search() != 0) {
867  _internal_set_profile_local_search(from._internal_profile_local_search());
868  }
869  if (from.print_local_search_profile() != 0) {
870  _internal_set_print_local_search_profile(from._internal_print_local_search_profile());
871  }
872  if (from.trace_propagation() != 0) {
873  _internal_set_trace_propagation(from._internal_trace_propagation());
874  }
875  if (from.trace_search() != 0) {
876  _internal_set_trace_search(from._internal_trace_search());
877  }
878  if (from.check_solution_period() != 0) {
879  _internal_set_check_solution_period(from._internal_check_solution_period());
880  }
881  if (from.use_small_table() != 0) {
882  _internal_set_use_small_table(from._internal_use_small_table());
883  }
884  if (from.use_cumulative_edge_finder() != 0) {
885  _internal_set_use_cumulative_edge_finder(from._internal_use_cumulative_edge_finder());
886  }
887  if (from.use_cumulative_time_table() != 0) {
888  _internal_set_use_cumulative_time_table(from._internal_use_cumulative_time_table());
889  }
890  if (from.use_cumulative_time_table_sync() != 0) {
891  _internal_set_use_cumulative_time_table_sync(from._internal_use_cumulative_time_table_sync());
892  }
893  if (from.max_edge_finder_size() != 0) {
894  _internal_set_max_edge_finder_size(from._internal_max_edge_finder_size());
895  }
896  if (from.use_sequence_high_demand_tasks() != 0) {
897  _internal_set_use_sequence_high_demand_tasks(from._internal_use_sequence_high_demand_tasks());
898  }
899  if (from.use_all_possible_disjunctions() != 0) {
900  _internal_set_use_all_possible_disjunctions(from._internal_use_all_possible_disjunctions());
901  }
902  if (from.diffn_use_cumulative() != 0) {
903  _internal_set_diffn_use_cumulative(from._internal_diffn_use_cumulative());
904  }
905  if (from.use_element_rmq() != 0) {
906  _internal_set_use_element_rmq(from._internal_use_element_rmq());
907  }
908  if (from.skip_locally_optimal_paths() != 0) {
909  _internal_set_skip_locally_optimal_paths(from._internal_skip_locally_optimal_paths());
910  }
911 }
912 
913 void ConstraintSolverParameters::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
914 // @@protoc_insertion_point(generalized_copy_from_start:operations_research.ConstraintSolverParameters)
915  if (&from == this) return;
916  Clear();
917  MergeFrom(from);
918 }
919 
920 void ConstraintSolverParameters::CopyFrom(const ConstraintSolverParameters& from) {
921 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.ConstraintSolverParameters)
922  if (&from == this) return;
923  Clear();
924  MergeFrom(from);
925 }
926 
927 bool ConstraintSolverParameters::IsInitialized() const {
928  return true;
929 }
930 
931 void ConstraintSolverParameters::InternalSwap(ConstraintSolverParameters* other) {
932  using std::swap;
933  _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
934  profile_file_.Swap(&other->profile_file_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
935  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
936  PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, skip_locally_optimal_paths_)
937  + sizeof(ConstraintSolverParameters::skip_locally_optimal_paths_)
938  - PROTOBUF_FIELD_OFFSET(ConstraintSolverParameters, compress_trail_)>(
939  reinterpret_cast<char*>(&compress_trail_),
940  reinterpret_cast<char*>(&other->compress_trail_));
941 }
942 
943 ::PROTOBUF_NAMESPACE_ID::Metadata ConstraintSolverParameters::GetMetadata() const {
944  return GetMetadataStatic();
945 }
946 
947 
948 // @@protoc_insertion_point(namespace_scope)
949 } // namespace operations_research
950 PROTOBUF_NAMESPACE_OPEN
951 template<> PROTOBUF_NOINLINE ::operations_research::ConstraintSolverParameters* Arena::CreateMaybeMessage< ::operations_research::ConstraintSolverParameters >(Arena* arena) {
952  return Arena::CreateMessageInternal< ::operations_research::ConstraintSolverParameters >(arena);
953 }
954 PROTOBUF_NAMESPACE_CLOSE
955 
956 // @@protoc_insertion_point(global_scope)
957 #include <google/protobuf/port_undef.inc>
int64_t value
void swap(IdMap< K, V > &a, IdMap< K, V > &b)
Definition: id_map.h:263
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()
static constexpr ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema * schemas
int index
Definition: pack.cc:509
#define CHK_(x)
static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const ** file_level_service_descriptors_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto
PROTOBUF_NAMESPACE_OPEN PROTOBUF_NOINLINE ::operations_research::ConstraintSolverParameters * Arena::CreateMaybeMessage< ::operations_research::ConstraintSolverParameters >(Arena *arena)
::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto[1]
::PROTOBUF_NAMESPACE_ID::Message const *const file_default_instances[]
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto
const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
PROTOBUF_ATTRIBUTE_WEAK ::PROTOBUF_NAMESPACE_ID::Metadata descriptor_table_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto_metadata_getter(int index)
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * file_level_enum_descriptors_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto[1]
::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_ortools_2fconstraint_5fsolver_2fsolver_5fparameters_2eproto_once