OR-Tools  8.0
rcpsp.pb.cc
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ortools/data/rcpsp.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 extern PROTOBUF_INTERNAL_EXPORT_ortools_2fdata_2frcpsp_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PerRecipeDelays_ortools_2fdata_2frcpsp_2eproto;
18 extern PROTOBUF_INTERNAL_EXPORT_ortools_2fdata_2frcpsp_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_PerSuccessorDelays_ortools_2fdata_2frcpsp_2eproto;
19 extern PROTOBUF_INTERNAL_EXPORT_ortools_2fdata_2frcpsp_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Recipe_ortools_2fdata_2frcpsp_2eproto;
20 extern PROTOBUF_INTERNAL_EXPORT_ortools_2fdata_2frcpsp_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Resource_ortools_2fdata_2frcpsp_2eproto;
21 extern PROTOBUF_INTERNAL_EXPORT_ortools_2fdata_2frcpsp_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_Task_ortools_2fdata_2frcpsp_2eproto;
22 namespace operations_research {
23 namespace data {
24 namespace rcpsp {
26  public:
27  ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Resource> _instance;
30  public:
31  ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Recipe> _instance;
34  public:
35  ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<PerRecipeDelays> _instance;
38  public:
39  ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<PerSuccessorDelays> _instance;
42  public:
43  ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Task> _instance;
46  public:
47  ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<RcpspProblem> _instance;
49 } // namespace rcpsp
50 } // namespace data
51 } // namespace operations_research
53  GOOGLE_PROTOBUF_VERIFY_VERSION;
54 
55  {
58  ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
59  }
60  ::operations_research::data::rcpsp::PerRecipeDelays::InitAsDefaultInstance();
61 }
62 
63 ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PerRecipeDelays_ortools_2fdata_2frcpsp_2eproto =
64  {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_PerRecipeDelays_ortools_2fdata_2frcpsp_2eproto}, {}};
65 
67  GOOGLE_PROTOBUF_VERIFY_VERSION;
68 
69  {
72  ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
73  }
74  ::operations_research::data::rcpsp::PerSuccessorDelays::InitAsDefaultInstance();
75 }
76 
77 ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_PerSuccessorDelays_ortools_2fdata_2frcpsp_2eproto =
78  {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_PerSuccessorDelays_ortools_2fdata_2frcpsp_2eproto}, {
80 
82  GOOGLE_PROTOBUF_VERIFY_VERSION;
83 
84  {
87  ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
88  }
89  ::operations_research::data::rcpsp::RcpspProblem::InitAsDefaultInstance();
90 }
91 
92 ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_RcpspProblem_ortools_2fdata_2frcpsp_2eproto =
93  {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_RcpspProblem_ortools_2fdata_2frcpsp_2eproto}, {
96 
98  GOOGLE_PROTOBUF_VERIFY_VERSION;
99 
100  {
103  ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
104  }
105  ::operations_research::data::rcpsp::Recipe::InitAsDefaultInstance();
106 }
107 
108 ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Recipe_ortools_2fdata_2frcpsp_2eproto =
109  {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Recipe_ortools_2fdata_2frcpsp_2eproto}, {}};
110 
112  GOOGLE_PROTOBUF_VERIFY_VERSION;
113 
114  {
117  ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
118  }
119  ::operations_research::data::rcpsp::Resource::InitAsDefaultInstance();
120 }
121 
122 ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Resource_ortools_2fdata_2frcpsp_2eproto =
123  {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Resource_ortools_2fdata_2frcpsp_2eproto}, {}};
124 
126  GOOGLE_PROTOBUF_VERIFY_VERSION;
127 
128  {
131  ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
132  }
133  ::operations_research::data::rcpsp::Task::InitAsDefaultInstance();
134 }
135 
136 ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_Task_ortools_2fdata_2frcpsp_2eproto =
137  {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_Task_ortools_2fdata_2frcpsp_2eproto}, {
140 
141 static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_ortools_2fdata_2frcpsp_2eproto[6];
142 static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_ortools_2fdata_2frcpsp_2eproto = nullptr;
143 static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_ortools_2fdata_2frcpsp_2eproto = nullptr;
144 
146  ~0u, // no _has_bits_
147  PROTOBUF_FIELD_OFFSET(::operations_research::data::rcpsp::Resource, _internal_metadata_),
148  ~0u, // no _extensions_
149  ~0u, // no _oneof_case_
150  ~0u, // no _weak_field_map_
151  PROTOBUF_FIELD_OFFSET(::operations_research::data::rcpsp::Resource, max_capacity_),
152  PROTOBUF_FIELD_OFFSET(::operations_research::data::rcpsp::Resource, min_capacity_),
153  PROTOBUF_FIELD_OFFSET(::operations_research::data::rcpsp::Resource, renewable_),
154  PROTOBUF_FIELD_OFFSET(::operations_research::data::rcpsp::Resource, unit_cost_),
155  ~0u, // no _has_bits_
156  PROTOBUF_FIELD_OFFSET(::operations_research::data::rcpsp::Recipe, _internal_metadata_),
157  ~0u, // no _extensions_
158  ~0u, // no _oneof_case_
159  ~0u, // no _weak_field_map_
160  PROTOBUF_FIELD_OFFSET(::operations_research::data::rcpsp::Recipe, duration_),
161  PROTOBUF_FIELD_OFFSET(::operations_research::data::rcpsp::Recipe, demands_),
162  PROTOBUF_FIELD_OFFSET(::operations_research::data::rcpsp::Recipe, resources_),
163  ~0u, // no _has_bits_
164  PROTOBUF_FIELD_OFFSET(::operations_research::data::rcpsp::PerRecipeDelays, _internal_metadata_),
165  ~0u, // no _extensions_
166  ~0u, // no _oneof_case_
167  ~0u, // no _weak_field_map_
168  PROTOBUF_FIELD_OFFSET(::operations_research::data::rcpsp::PerRecipeDelays, min_delays_),
169  ~0u, // no _has_bits_
170  PROTOBUF_FIELD_OFFSET(::operations_research::data::rcpsp::PerSuccessorDelays, _internal_metadata_),
171  ~0u, // no _extensions_
172  ~0u, // no _oneof_case_
173  ~0u, // no _weak_field_map_
174  PROTOBUF_FIELD_OFFSET(::operations_research::data::rcpsp::PerSuccessorDelays, recipe_delays_),
175  ~0u, // no _has_bits_
176  PROTOBUF_FIELD_OFFSET(::operations_research::data::rcpsp::Task, _internal_metadata_),
177  ~0u, // no _extensions_
178  ~0u, // no _oneof_case_
179  ~0u, // no _weak_field_map_
180  PROTOBUF_FIELD_OFFSET(::operations_research::data::rcpsp::Task, successors_),
181  PROTOBUF_FIELD_OFFSET(::operations_research::data::rcpsp::Task, recipes_),
182  PROTOBUF_FIELD_OFFSET(::operations_research::data::rcpsp::Task, successor_delays_),
183  ~0u, // no _has_bits_
184  PROTOBUF_FIELD_OFFSET(::operations_research::data::rcpsp::RcpspProblem, _internal_metadata_),
185  ~0u, // no _extensions_
186  ~0u, // no _oneof_case_
187  ~0u, // no _weak_field_map_
188  PROTOBUF_FIELD_OFFSET(::operations_research::data::rcpsp::RcpspProblem, resources_),
189  PROTOBUF_FIELD_OFFSET(::operations_research::data::rcpsp::RcpspProblem, tasks_),
190  PROTOBUF_FIELD_OFFSET(::operations_research::data::rcpsp::RcpspProblem, is_consumer_producer_),
191  PROTOBUF_FIELD_OFFSET(::operations_research::data::rcpsp::RcpspProblem, is_resource_investment_),
192  PROTOBUF_FIELD_OFFSET(::operations_research::data::rcpsp::RcpspProblem, is_rcpsp_max_),
193  PROTOBUF_FIELD_OFFSET(::operations_research::data::rcpsp::RcpspProblem, deadline_),
194  PROTOBUF_FIELD_OFFSET(::operations_research::data::rcpsp::RcpspProblem, horizon_),
195  PROTOBUF_FIELD_OFFSET(::operations_research::data::rcpsp::RcpspProblem, release_date_),
196  PROTOBUF_FIELD_OFFSET(::operations_research::data::rcpsp::RcpspProblem, tardiness_cost_),
197  PROTOBUF_FIELD_OFFSET(::operations_research::data::rcpsp::RcpspProblem, mpm_time_),
198  PROTOBUF_FIELD_OFFSET(::operations_research::data::rcpsp::RcpspProblem, seed_),
199  PROTOBUF_FIELD_OFFSET(::operations_research::data::rcpsp::RcpspProblem, basedata_),
200  PROTOBUF_FIELD_OFFSET(::operations_research::data::rcpsp::RcpspProblem, due_date_),
201  PROTOBUF_FIELD_OFFSET(::operations_research::data::rcpsp::RcpspProblem, name_),
202 };
203 static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
204  { 0, -1, sizeof(::operations_research::data::rcpsp::Resource)},
205  { 9, -1, sizeof(::operations_research::data::rcpsp::Recipe)},
206  { 17, -1, sizeof(::operations_research::data::rcpsp::PerRecipeDelays)},
207  { 23, -1, sizeof(::operations_research::data::rcpsp::PerSuccessorDelays)},
208  { 29, -1, sizeof(::operations_research::data::rcpsp::Task)},
209  { 37, -1, sizeof(::operations_research::data::rcpsp::RcpspProblem)},
210 };
211 
212 static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
213  reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::operations_research::data::rcpsp::_Resource_default_instance_),
214  reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::operations_research::data::rcpsp::_Recipe_default_instance_),
215  reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::operations_research::data::rcpsp::_PerRecipeDelays_default_instance_),
216  reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::operations_research::data::rcpsp::_PerSuccessorDelays_default_instance_),
217  reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::operations_research::data::rcpsp::_Task_default_instance_),
218  reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::operations_research::data::rcpsp::_RcpspProblem_default_instance_),
219 };
220 
221 const char descriptor_table_protodef_ortools_2fdata_2frcpsp_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
222  "\n\030ortools/data/rcpsp.proto\022\036operations_r"
223  "esearch.data.rcpsp\"\\\n\010Resource\022\024\n\014max_ca"
224  "pacity\030\001 \001(\005\022\024\n\014min_capacity\030\002 \001(\005\022\021\n\tre"
225  "newable\030\003 \001(\010\022\021\n\tunit_cost\030\004 \001(\005\">\n\006Reci"
226  "pe\022\020\n\010duration\030\001 \001(\005\022\017\n\007demands\030\002 \003(\005\022\021\n"
227  "\tresources\030\003 \003(\005\"%\n\017PerRecipeDelays\022\022\n\nm"
228  "in_delays\030\001 \003(\005\"\\\n\022PerSuccessorDelays\022F\n"
229  "\rrecipe_delays\030\001 \003(\0132/.operations_resear"
230  "ch.data.rcpsp.PerRecipeDelays\"\241\001\n\004Task\022\022"
231  "\n\nsuccessors\030\001 \003(\005\0227\n\007recipes\030\002 \003(\0132&.op"
232  "erations_research.data.rcpsp.Recipe\022L\n\020s"
233  "uccessor_delays\030\003 \003(\01322.operations_resea"
234  "rch.data.rcpsp.PerSuccessorDelays\"\367\002\n\014Rc"
235  "pspProblem\022;\n\tresources\030\001 \003(\0132(.operatio"
236  "ns_research.data.rcpsp.Resource\0223\n\005tasks"
237  "\030\002 \003(\0132$.operations_research.data.rcpsp."
238  "Task\022\034\n\024is_consumer_producer\030\003 \001(\010\022\036\n\026is"
239  "_resource_investment\030\004 \001(\010\022\024\n\014is_rcpsp_m"
240  "ax\030\005 \001(\010\022\020\n\010deadline\030\006 \001(\005\022\017\n\007horizon\030\007 "
241  "\001(\005\022\024\n\014release_date\030\010 \001(\005\022\026\n\016tardiness_c"
242  "ost\030\t \001(\005\022\020\n\010mpm_time\030\n \001(\005\022\014\n\004seed\030\013 \001("
243  "\003\022\020\n\010basedata\030\014 \001(\t\022\020\n\010due_date\030\r \001(\005\022\014\n"
244  "\004name\030\016 \001(\tB=\n\035com.google.ortools.data.r"
245  "cpspP\001\252\002\031Google.OrTools.Data.Rcpspb\006prot"
246  "o3"
247  ;
248 static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_ortools_2fdata_2frcpsp_2eproto_deps[1] = {
249 };
250 static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_ortools_2fdata_2frcpsp_2eproto_sccs[6] = {
257 };
258 static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_ortools_2fdata_2frcpsp_2eproto_once;
259 const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ortools_2fdata_2frcpsp_2eproto = {
260  false, false, descriptor_table_protodef_ortools_2fdata_2frcpsp_2eproto, "ortools/data/rcpsp.proto", 962,
264 };
265 
266 // Force running AddDescriptors() at dynamic initialization time.
267 static bool dynamic_init_dummy_ortools_2fdata_2frcpsp_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_ortools_2fdata_2frcpsp_2eproto)), true);
268 namespace operations_research {
269 namespace data {
270 namespace rcpsp {
271 
272 // ===================================================================
273 
274 void Resource::InitAsDefaultInstance() {
275 }
277  public:
278 };
279 
280 Resource::Resource(::PROTOBUF_NAMESPACE_ID::Arena* arena)
281  : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
282  SharedCtor();
283  RegisterArenaDtor(arena);
284  // @@protoc_insertion_point(arena_constructor:operations_research.data.rcpsp.Resource)
285 }
286 Resource::Resource(const Resource& from)
287  : ::PROTOBUF_NAMESPACE_ID::Message() {
288  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
289  ::memcpy(&max_capacity_, &from.max_capacity_,
290  static_cast<size_t>(reinterpret_cast<char*>(&unit_cost_) -
291  reinterpret_cast<char*>(&max_capacity_)) + sizeof(unit_cost_));
292  // @@protoc_insertion_point(copy_constructor:operations_research.data.rcpsp.Resource)
293 }
294 
295 void Resource::SharedCtor() {
296  ::memset(&max_capacity_, 0, static_cast<size_t>(
297  reinterpret_cast<char*>(&unit_cost_) -
298  reinterpret_cast<char*>(&max_capacity_)) + sizeof(unit_cost_));
299 }
300 
301 Resource::~Resource() {
302  // @@protoc_insertion_point(destructor:operations_research.data.rcpsp.Resource)
303  SharedDtor();
304  _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
305 }
306 
307 void Resource::SharedDtor() {
308  GOOGLE_DCHECK(GetArena() == nullptr);
309 }
310 
311 void Resource::ArenaDtor(void* object) {
312  Resource* _this = reinterpret_cast< Resource* >(object);
313  (void)_this;
314 }
315 void Resource::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
316 }
317 void Resource::SetCachedSize(int size) const {
318  _cached_size_.Set(size);
319 }
320 const Resource& Resource::default_instance() {
321  ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Resource_ortools_2fdata_2frcpsp_2eproto.base);
322  return *internal_default_instance();
323 }
324 
325 
326 void Resource::Clear() {
327 // @@protoc_insertion_point(message_clear_start:operations_research.data.rcpsp.Resource)
328  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
329  // Prevent compiler warnings about cached_has_bits being unused
330  (void) cached_has_bits;
331 
332  ::memset(&max_capacity_, 0, static_cast<size_t>(
333  reinterpret_cast<char*>(&unit_cost_) -
334  reinterpret_cast<char*>(&max_capacity_)) + sizeof(unit_cost_));
335  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
336 }
337 
338 const char* Resource::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
339 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
340  ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
341  while (!ctx->Done(&ptr)) {
343  ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
344  CHK_(ptr);
345  switch (tag >> 3) {
346  // int32 max_capacity = 1;
347  case 1:
348  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
349  max_capacity_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
350  CHK_(ptr);
351  } else goto handle_unusual;
352  continue;
353  // int32 min_capacity = 2;
354  case 2:
355  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
356  min_capacity_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
357  CHK_(ptr);
358  } else goto handle_unusual;
359  continue;
360  // bool renewable = 3;
361  case 3:
362  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
363  renewable_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
364  CHK_(ptr);
365  } else goto handle_unusual;
366  continue;
367  // int32 unit_cost = 4;
368  case 4:
369  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
370  unit_cost_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
371  CHK_(ptr);
372  } else goto handle_unusual;
373  continue;
374  default: {
375  handle_unusual:
376  if ((tag & 7) == 4 || tag == 0) {
377  ctx->SetLastTag(tag);
378  goto success;
379  }
380  ptr = UnknownFieldParse(tag,
381  _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
382  ptr, ctx);
383  CHK_(ptr != nullptr);
384  continue;
385  }
386  } // switch
387  } // while
388 success:
389  return ptr;
390 failure:
391  ptr = nullptr;
392  goto success;
393 #undef CHK_
394 }
395 
396 ::PROTOBUF_NAMESPACE_ID::uint8* Resource::_InternalSerialize(
397  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
398  // @@protoc_insertion_point(serialize_to_array_start:operations_research.data.rcpsp.Resource)
399  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
400  (void) cached_has_bits;
401 
402  // int32 max_capacity = 1;
403  if (this->max_capacity() != 0) {
404  target = stream->EnsureSpace(target);
405  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_max_capacity(), target);
406  }
407 
408  // int32 min_capacity = 2;
409  if (this->min_capacity() != 0) {
410  target = stream->EnsureSpace(target);
411  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_min_capacity(), target);
412  }
413 
414  // bool renewable = 3;
415  if (this->renewable() != 0) {
416  target = stream->EnsureSpace(target);
417  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->_internal_renewable(), target);
418  }
419 
420  // int32 unit_cost = 4;
421  if (this->unit_cost() != 0) {
422  target = stream->EnsureSpace(target);
423  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_unit_cost(), target);
424  }
425 
426  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
427  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
428  _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
429  }
430  // @@protoc_insertion_point(serialize_to_array_end:operations_research.data.rcpsp.Resource)
431  return target;
432 }
433 
434 size_t Resource::ByteSizeLong() const {
435 // @@protoc_insertion_point(message_byte_size_start:operations_research.data.rcpsp.Resource)
436  size_t total_size = 0;
437 
438  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
439  // Prevent compiler warnings about cached_has_bits being unused
440  (void) cached_has_bits;
441 
442  // int32 max_capacity = 1;
443  if (this->max_capacity() != 0) {
444  total_size += 1 +
445  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
446  this->_internal_max_capacity());
447  }
448 
449  // int32 min_capacity = 2;
450  if (this->min_capacity() != 0) {
451  total_size += 1 +
452  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
453  this->_internal_min_capacity());
454  }
455 
456  // bool renewable = 3;
457  if (this->renewable() != 0) {
458  total_size += 1 + 1;
459  }
460 
461  // int32 unit_cost = 4;
462  if (this->unit_cost() != 0) {
463  total_size += 1 +
464  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
465  this->_internal_unit_cost());
466  }
467 
468  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
469  return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
470  _internal_metadata_, total_size, &_cached_size_);
471  }
472  int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
473  SetCachedSize(cached_size);
474  return total_size;
475 }
476 
477 void Resource::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
478 // @@protoc_insertion_point(generalized_merge_from_start:operations_research.data.rcpsp.Resource)
479  GOOGLE_DCHECK_NE(&from, this);
480  const Resource* source =
481  ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Resource>(
482  &from);
483  if (source == nullptr) {
484  // @@protoc_insertion_point(generalized_merge_from_cast_fail:operations_research.data.rcpsp.Resource)
485  ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
486  } else {
487  // @@protoc_insertion_point(generalized_merge_from_cast_success:operations_research.data.rcpsp.Resource)
488  MergeFrom(*source);
489  }
490 }
491 
492 void Resource::MergeFrom(const Resource& from) {
493 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.data.rcpsp.Resource)
494  GOOGLE_DCHECK_NE(&from, this);
495  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
496  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
497  (void) cached_has_bits;
498 
499  if (from.max_capacity() != 0) {
500  _internal_set_max_capacity(from._internal_max_capacity());
501  }
502  if (from.min_capacity() != 0) {
503  _internal_set_min_capacity(from._internal_min_capacity());
504  }
505  if (from.renewable() != 0) {
506  _internal_set_renewable(from._internal_renewable());
507  }
508  if (from.unit_cost() != 0) {
509  _internal_set_unit_cost(from._internal_unit_cost());
510  }
511 }
512 
513 void Resource::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
514 // @@protoc_insertion_point(generalized_copy_from_start:operations_research.data.rcpsp.Resource)
515  if (&from == this) return;
516  Clear();
517  MergeFrom(from);
518 }
519 
520 void Resource::CopyFrom(const Resource& from) {
521 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.data.rcpsp.Resource)
522  if (&from == this) return;
523  Clear();
524  MergeFrom(from);
525 }
526 
527 bool Resource::IsInitialized() const {
528  return true;
529 }
530 
531 void Resource::InternalSwap(Resource* other) {
532  using std::swap;
533  _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
534  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
535  PROTOBUF_FIELD_OFFSET(Resource, unit_cost_)
536  + sizeof(Resource::unit_cost_)
537  - PROTOBUF_FIELD_OFFSET(Resource, max_capacity_)>(
538  reinterpret_cast<char*>(&max_capacity_),
539  reinterpret_cast<char*>(&other->max_capacity_));
540 }
541 
542 ::PROTOBUF_NAMESPACE_ID::Metadata Resource::GetMetadata() const {
543  return GetMetadataStatic();
544 }
545 
546 
547 // ===================================================================
548 
549 void Recipe::InitAsDefaultInstance() {
550 }
552  public:
553 };
554 
555 Recipe::Recipe(::PROTOBUF_NAMESPACE_ID::Arena* arena)
556  : ::PROTOBUF_NAMESPACE_ID::Message(arena),
557  demands_(arena),
558  resources_(arena) {
559  SharedCtor();
560  RegisterArenaDtor(arena);
561  // @@protoc_insertion_point(arena_constructor:operations_research.data.rcpsp.Recipe)
562 }
563 Recipe::Recipe(const Recipe& from)
564  : ::PROTOBUF_NAMESPACE_ID::Message(),
565  demands_(from.demands_),
566  resources_(from.resources_) {
567  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
568  duration_ = from.duration_;
569  // @@protoc_insertion_point(copy_constructor:operations_research.data.rcpsp.Recipe)
570 }
571 
572 void Recipe::SharedCtor() {
573  duration_ = 0;
574 }
575 
576 Recipe::~Recipe() {
577  // @@protoc_insertion_point(destructor:operations_research.data.rcpsp.Recipe)
578  SharedDtor();
579  _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
580 }
581 
582 void Recipe::SharedDtor() {
583  GOOGLE_DCHECK(GetArena() == nullptr);
584 }
585 
586 void Recipe::ArenaDtor(void* object) {
587  Recipe* _this = reinterpret_cast< Recipe* >(object);
588  (void)_this;
589 }
590 void Recipe::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
591 }
592 void Recipe::SetCachedSize(int size) const {
593  _cached_size_.Set(size);
594 }
595 const Recipe& Recipe::default_instance() {
596  ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Recipe_ortools_2fdata_2frcpsp_2eproto.base);
597  return *internal_default_instance();
598 }
599 
600 
601 void Recipe::Clear() {
602 // @@protoc_insertion_point(message_clear_start:operations_research.data.rcpsp.Recipe)
603  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
604  // Prevent compiler warnings about cached_has_bits being unused
605  (void) cached_has_bits;
606 
607  demands_.Clear();
608  resources_.Clear();
609  duration_ = 0;
610  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
611 }
612 
613 const char* Recipe::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
614 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
615  ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
616  while (!ctx->Done(&ptr)) {
618  ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
619  CHK_(ptr);
620  switch (tag >> 3) {
621  // int32 duration = 1;
622  case 1:
623  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
624  duration_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
625  CHK_(ptr);
626  } else goto handle_unusual;
627  continue;
628  // repeated int32 demands = 2;
629  case 2:
630  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
631  ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_demands(), ptr, ctx);
632  CHK_(ptr);
633  } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16) {
634  _internal_add_demands(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr));
635  CHK_(ptr);
636  } else goto handle_unusual;
637  continue;
638  // repeated int32 resources = 3;
639  case 3:
640  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
641  ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_resources(), ptr, ctx);
642  CHK_(ptr);
643  } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24) {
644  _internal_add_resources(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr));
645  CHK_(ptr);
646  } else goto handle_unusual;
647  continue;
648  default: {
649  handle_unusual:
650  if ((tag & 7) == 4 || tag == 0) {
651  ctx->SetLastTag(tag);
652  goto success;
653  }
654  ptr = UnknownFieldParse(tag,
655  _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
656  ptr, ctx);
657  CHK_(ptr != nullptr);
658  continue;
659  }
660  } // switch
661  } // while
662 success:
663  return ptr;
664 failure:
665  ptr = nullptr;
666  goto success;
667 #undef CHK_
668 }
669 
670 ::PROTOBUF_NAMESPACE_ID::uint8* Recipe::_InternalSerialize(
671  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
672  // @@protoc_insertion_point(serialize_to_array_start:operations_research.data.rcpsp.Recipe)
673  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
674  (void) cached_has_bits;
675 
676  // int32 duration = 1;
677  if (this->duration() != 0) {
678  target = stream->EnsureSpace(target);
679  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_duration(), target);
680  }
681 
682  // repeated int32 demands = 2;
683  {
684  int byte_size = _demands_cached_byte_size_.load(std::memory_order_relaxed);
685  if (byte_size > 0) {
686  target = stream->WriteInt32Packed(
687  2, _internal_demands(), byte_size, target);
688  }
689  }
690 
691  // repeated int32 resources = 3;
692  {
693  int byte_size = _resources_cached_byte_size_.load(std::memory_order_relaxed);
694  if (byte_size > 0) {
695  target = stream->WriteInt32Packed(
696  3, _internal_resources(), byte_size, target);
697  }
698  }
699 
700  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
701  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
702  _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
703  }
704  // @@protoc_insertion_point(serialize_to_array_end:operations_research.data.rcpsp.Recipe)
705  return target;
706 }
707 
708 size_t Recipe::ByteSizeLong() const {
709 // @@protoc_insertion_point(message_byte_size_start:operations_research.data.rcpsp.Recipe)
710  size_t total_size = 0;
711 
712  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
713  // Prevent compiler warnings about cached_has_bits being unused
714  (void) cached_has_bits;
715 
716  // repeated int32 demands = 2;
717  {
718  size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
719  Int32Size(this->demands_);
720  if (data_size > 0) {
721  total_size += 1 +
722  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
723  static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
724  }
725  int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
726  _demands_cached_byte_size_.store(cached_size,
727  std::memory_order_relaxed);
728  total_size += data_size;
729  }
730 
731  // repeated int32 resources = 3;
732  {
733  size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
734  Int32Size(this->resources_);
735  if (data_size > 0) {
736  total_size += 1 +
737  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
738  static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
739  }
740  int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
741  _resources_cached_byte_size_.store(cached_size,
742  std::memory_order_relaxed);
743  total_size += data_size;
744  }
745 
746  // int32 duration = 1;
747  if (this->duration() != 0) {
748  total_size += 1 +
749  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
750  this->_internal_duration());
751  }
752 
753  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
754  return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
755  _internal_metadata_, total_size, &_cached_size_);
756  }
757  int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
758  SetCachedSize(cached_size);
759  return total_size;
760 }
761 
762 void Recipe::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
763 // @@protoc_insertion_point(generalized_merge_from_start:operations_research.data.rcpsp.Recipe)
764  GOOGLE_DCHECK_NE(&from, this);
765  const Recipe* source =
766  ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Recipe>(
767  &from);
768  if (source == nullptr) {
769  // @@protoc_insertion_point(generalized_merge_from_cast_fail:operations_research.data.rcpsp.Recipe)
770  ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
771  } else {
772  // @@protoc_insertion_point(generalized_merge_from_cast_success:operations_research.data.rcpsp.Recipe)
773  MergeFrom(*source);
774  }
775 }
776 
777 void Recipe::MergeFrom(const Recipe& from) {
778 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.data.rcpsp.Recipe)
779  GOOGLE_DCHECK_NE(&from, this);
780  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
781  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
782  (void) cached_has_bits;
783 
784  demands_.MergeFrom(from.demands_);
785  resources_.MergeFrom(from.resources_);
786  if (from.duration() != 0) {
787  _internal_set_duration(from._internal_duration());
788  }
789 }
790 
791 void Recipe::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
792 // @@protoc_insertion_point(generalized_copy_from_start:operations_research.data.rcpsp.Recipe)
793  if (&from == this) return;
794  Clear();
795  MergeFrom(from);
796 }
797 
798 void Recipe::CopyFrom(const Recipe& from) {
799 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.data.rcpsp.Recipe)
800  if (&from == this) return;
801  Clear();
802  MergeFrom(from);
803 }
804 
805 bool Recipe::IsInitialized() const {
806  return true;
807 }
808 
809 void Recipe::InternalSwap(Recipe* other) {
810  using std::swap;
811  _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
812  demands_.InternalSwap(&other->demands_);
813  resources_.InternalSwap(&other->resources_);
814  swap(duration_, other->duration_);
815 }
816 
817 ::PROTOBUF_NAMESPACE_ID::Metadata Recipe::GetMetadata() const {
818  return GetMetadataStatic();
819 }
820 
821 
822 // ===================================================================
823 
824 void PerRecipeDelays::InitAsDefaultInstance() {
825 }
827  public:
828 };
829 
830 PerRecipeDelays::PerRecipeDelays(::PROTOBUF_NAMESPACE_ID::Arena* arena)
831  : ::PROTOBUF_NAMESPACE_ID::Message(arena),
832  min_delays_(arena) {
833  SharedCtor();
834  RegisterArenaDtor(arena);
835  // @@protoc_insertion_point(arena_constructor:operations_research.data.rcpsp.PerRecipeDelays)
836 }
837 PerRecipeDelays::PerRecipeDelays(const PerRecipeDelays& from)
838  : ::PROTOBUF_NAMESPACE_ID::Message(),
839  min_delays_(from.min_delays_) {
840  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
841  // @@protoc_insertion_point(copy_constructor:operations_research.data.rcpsp.PerRecipeDelays)
842 }
843 
844 void PerRecipeDelays::SharedCtor() {
845 }
846 
847 PerRecipeDelays::~PerRecipeDelays() {
848  // @@protoc_insertion_point(destructor:operations_research.data.rcpsp.PerRecipeDelays)
849  SharedDtor();
850  _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
851 }
852 
853 void PerRecipeDelays::SharedDtor() {
854  GOOGLE_DCHECK(GetArena() == nullptr);
855 }
856 
857 void PerRecipeDelays::ArenaDtor(void* object) {
858  PerRecipeDelays* _this = reinterpret_cast< PerRecipeDelays* >(object);
859  (void)_this;
860 }
861 void PerRecipeDelays::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
862 }
863 void PerRecipeDelays::SetCachedSize(int size) const {
864  _cached_size_.Set(size);
865 }
866 const PerRecipeDelays& PerRecipeDelays::default_instance() {
867  ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PerRecipeDelays_ortools_2fdata_2frcpsp_2eproto.base);
868  return *internal_default_instance();
869 }
870 
871 
872 void PerRecipeDelays::Clear() {
873 // @@protoc_insertion_point(message_clear_start:operations_research.data.rcpsp.PerRecipeDelays)
874  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
875  // Prevent compiler warnings about cached_has_bits being unused
876  (void) cached_has_bits;
877 
878  min_delays_.Clear();
879  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
880 }
881 
882 const char* PerRecipeDelays::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
883 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
884  ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
885  while (!ctx->Done(&ptr)) {
887  ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
888  CHK_(ptr);
889  switch (tag >> 3) {
890  // repeated int32 min_delays = 1;
891  case 1:
892  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
893  ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_min_delays(), ptr, ctx);
894  CHK_(ptr);
895  } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8) {
896  _internal_add_min_delays(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr));
897  CHK_(ptr);
898  } else goto handle_unusual;
899  continue;
900  default: {
901  handle_unusual:
902  if ((tag & 7) == 4 || tag == 0) {
903  ctx->SetLastTag(tag);
904  goto success;
905  }
906  ptr = UnknownFieldParse(tag,
907  _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
908  ptr, ctx);
909  CHK_(ptr != nullptr);
910  continue;
911  }
912  } // switch
913  } // while
914 success:
915  return ptr;
916 failure:
917  ptr = nullptr;
918  goto success;
919 #undef CHK_
920 }
921 
922 ::PROTOBUF_NAMESPACE_ID::uint8* PerRecipeDelays::_InternalSerialize(
923  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
924  // @@protoc_insertion_point(serialize_to_array_start:operations_research.data.rcpsp.PerRecipeDelays)
925  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
926  (void) cached_has_bits;
927 
928  // repeated int32 min_delays = 1;
929  {
930  int byte_size = _min_delays_cached_byte_size_.load(std::memory_order_relaxed);
931  if (byte_size > 0) {
932  target = stream->WriteInt32Packed(
933  1, _internal_min_delays(), byte_size, target);
934  }
935  }
936 
937  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
938  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
939  _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
940  }
941  // @@protoc_insertion_point(serialize_to_array_end:operations_research.data.rcpsp.PerRecipeDelays)
942  return target;
943 }
944 
945 size_t PerRecipeDelays::ByteSizeLong() const {
946 // @@protoc_insertion_point(message_byte_size_start:operations_research.data.rcpsp.PerRecipeDelays)
947  size_t total_size = 0;
948 
949  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
950  // Prevent compiler warnings about cached_has_bits being unused
951  (void) cached_has_bits;
952 
953  // repeated int32 min_delays = 1;
954  {
955  size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
956  Int32Size(this->min_delays_);
957  if (data_size > 0) {
958  total_size += 1 +
959  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
960  static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
961  }
962  int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
963  _min_delays_cached_byte_size_.store(cached_size,
964  std::memory_order_relaxed);
965  total_size += data_size;
966  }
967 
968  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
969  return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
970  _internal_metadata_, total_size, &_cached_size_);
971  }
972  int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
973  SetCachedSize(cached_size);
974  return total_size;
975 }
976 
977 void PerRecipeDelays::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
978 // @@protoc_insertion_point(generalized_merge_from_start:operations_research.data.rcpsp.PerRecipeDelays)
979  GOOGLE_DCHECK_NE(&from, this);
980  const PerRecipeDelays* source =
981  ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<PerRecipeDelays>(
982  &from);
983  if (source == nullptr) {
984  // @@protoc_insertion_point(generalized_merge_from_cast_fail:operations_research.data.rcpsp.PerRecipeDelays)
985  ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
986  } else {
987  // @@protoc_insertion_point(generalized_merge_from_cast_success:operations_research.data.rcpsp.PerRecipeDelays)
988  MergeFrom(*source);
989  }
990 }
991 
992 void PerRecipeDelays::MergeFrom(const PerRecipeDelays& from) {
993 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.data.rcpsp.PerRecipeDelays)
994  GOOGLE_DCHECK_NE(&from, this);
995  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
996  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
997  (void) cached_has_bits;
998 
999  min_delays_.MergeFrom(from.min_delays_);
1000 }
1001 
1002 void PerRecipeDelays::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1003 // @@protoc_insertion_point(generalized_copy_from_start:operations_research.data.rcpsp.PerRecipeDelays)
1004  if (&from == this) return;
1005  Clear();
1006  MergeFrom(from);
1007 }
1008 
1009 void PerRecipeDelays::CopyFrom(const PerRecipeDelays& from) {
1010 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.data.rcpsp.PerRecipeDelays)
1011  if (&from == this) return;
1012  Clear();
1013  MergeFrom(from);
1014 }
1015 
1016 bool PerRecipeDelays::IsInitialized() const {
1017  return true;
1018 }
1019 
1020 void PerRecipeDelays::InternalSwap(PerRecipeDelays* other) {
1021  using std::swap;
1022  _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
1023  min_delays_.InternalSwap(&other->min_delays_);
1024 }
1025 
1026 ::PROTOBUF_NAMESPACE_ID::Metadata PerRecipeDelays::GetMetadata() const {
1027  return GetMetadataStatic();
1028 }
1029 
1030 
1031 // ===================================================================
1032 
1033 void PerSuccessorDelays::InitAsDefaultInstance() {
1034 }
1036  public:
1037 };
1038 
1039 PerSuccessorDelays::PerSuccessorDelays(::PROTOBUF_NAMESPACE_ID::Arena* arena)
1040  : ::PROTOBUF_NAMESPACE_ID::Message(arena),
1041  recipe_delays_(arena) {
1042  SharedCtor();
1043  RegisterArenaDtor(arena);
1044  // @@protoc_insertion_point(arena_constructor:operations_research.data.rcpsp.PerSuccessorDelays)
1045 }
1046 PerSuccessorDelays::PerSuccessorDelays(const PerSuccessorDelays& from)
1047  : ::PROTOBUF_NAMESPACE_ID::Message(),
1048  recipe_delays_(from.recipe_delays_) {
1049  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1050  // @@protoc_insertion_point(copy_constructor:operations_research.data.rcpsp.PerSuccessorDelays)
1051 }
1052 
1053 void PerSuccessorDelays::SharedCtor() {
1054  ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PerSuccessorDelays_ortools_2fdata_2frcpsp_2eproto.base);
1055 }
1056 
1057 PerSuccessorDelays::~PerSuccessorDelays() {
1058  // @@protoc_insertion_point(destructor:operations_research.data.rcpsp.PerSuccessorDelays)
1059  SharedDtor();
1060  _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1061 }
1062 
1063 void PerSuccessorDelays::SharedDtor() {
1064  GOOGLE_DCHECK(GetArena() == nullptr);
1065 }
1066 
1067 void PerSuccessorDelays::ArenaDtor(void* object) {
1068  PerSuccessorDelays* _this = reinterpret_cast< PerSuccessorDelays* >(object);
1069  (void)_this;
1070 }
1071 void PerSuccessorDelays::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
1072 }
1073 void PerSuccessorDelays::SetCachedSize(int size) const {
1074  _cached_size_.Set(size);
1075 }
1076 const PerSuccessorDelays& PerSuccessorDelays::default_instance() {
1077  ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PerSuccessorDelays_ortools_2fdata_2frcpsp_2eproto.base);
1078  return *internal_default_instance();
1079 }
1080 
1081 
1082 void PerSuccessorDelays::Clear() {
1083 // @@protoc_insertion_point(message_clear_start:operations_research.data.rcpsp.PerSuccessorDelays)
1084  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1085  // Prevent compiler warnings about cached_has_bits being unused
1086  (void) cached_has_bits;
1087 
1088  recipe_delays_.Clear();
1089  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1090 }
1091 
1092 const char* PerSuccessorDelays::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
1093 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1094  ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
1095  while (!ctx->Done(&ptr)) {
1097  ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
1098  CHK_(ptr);
1099  switch (tag >> 3) {
1100  // repeated .operations_research.data.rcpsp.PerRecipeDelays recipe_delays = 1;
1101  case 1:
1102  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
1103  ptr -= 1;
1104  do {
1105  ptr += 1;
1106  ptr = ctx->ParseMessage(_internal_add_recipe_delays(), ptr);
1107  CHK_(ptr);
1108  if (!ctx->DataAvailable(ptr)) break;
1109  } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
1110  } else goto handle_unusual;
1111  continue;
1112  default: {
1113  handle_unusual:
1114  if ((tag & 7) == 4 || tag == 0) {
1115  ctx->SetLastTag(tag);
1116  goto success;
1117  }
1118  ptr = UnknownFieldParse(tag,
1119  _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
1120  ptr, ctx);
1121  CHK_(ptr != nullptr);
1122  continue;
1123  }
1124  } // switch
1125  } // while
1126 success:
1127  return ptr;
1128 failure:
1129  ptr = nullptr;
1130  goto success;
1131 #undef CHK_
1132 }
1133 
1134 ::PROTOBUF_NAMESPACE_ID::uint8* PerSuccessorDelays::_InternalSerialize(
1135  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1136  // @@protoc_insertion_point(serialize_to_array_start:operations_research.data.rcpsp.PerSuccessorDelays)
1137  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1138  (void) cached_has_bits;
1139 
1140  // repeated .operations_research.data.rcpsp.PerRecipeDelays recipe_delays = 1;
1141  for (unsigned int i = 0,
1142  n = static_cast<unsigned int>(this->_internal_recipe_delays_size()); i < n; i++) {
1143  target = stream->EnsureSpace(target);
1144  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1145  InternalWriteMessage(1, this->_internal_recipe_delays(i), target, stream);
1146  }
1147 
1148  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1149  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
1150  _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
1151  }
1152  // @@protoc_insertion_point(serialize_to_array_end:operations_research.data.rcpsp.PerSuccessorDelays)
1153  return target;
1154 }
1155 
1156 size_t PerSuccessorDelays::ByteSizeLong() const {
1157 // @@protoc_insertion_point(message_byte_size_start:operations_research.data.rcpsp.PerSuccessorDelays)
1158  size_t total_size = 0;
1159 
1160  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1161  // Prevent compiler warnings about cached_has_bits being unused
1162  (void) cached_has_bits;
1163 
1164  // repeated .operations_research.data.rcpsp.PerRecipeDelays recipe_delays = 1;
1165  total_size += 1UL * this->_internal_recipe_delays_size();
1166  for (const auto& msg : this->recipe_delays_) {
1167  total_size +=
1168  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1169  }
1170 
1171  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1172  return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
1173  _internal_metadata_, total_size, &_cached_size_);
1174  }
1175  int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
1176  SetCachedSize(cached_size);
1177  return total_size;
1178 }
1179 
1180 void PerSuccessorDelays::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1181 // @@protoc_insertion_point(generalized_merge_from_start:operations_research.data.rcpsp.PerSuccessorDelays)
1182  GOOGLE_DCHECK_NE(&from, this);
1183  const PerSuccessorDelays* source =
1184  ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<PerSuccessorDelays>(
1185  &from);
1186  if (source == nullptr) {
1187  // @@protoc_insertion_point(generalized_merge_from_cast_fail:operations_research.data.rcpsp.PerSuccessorDelays)
1188  ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
1189  } else {
1190  // @@protoc_insertion_point(generalized_merge_from_cast_success:operations_research.data.rcpsp.PerSuccessorDelays)
1191  MergeFrom(*source);
1192  }
1193 }
1194 
1195 void PerSuccessorDelays::MergeFrom(const PerSuccessorDelays& from) {
1196 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.data.rcpsp.PerSuccessorDelays)
1197  GOOGLE_DCHECK_NE(&from, this);
1198  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1199  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1200  (void) cached_has_bits;
1201 
1202  recipe_delays_.MergeFrom(from.recipe_delays_);
1203 }
1204 
1205 void PerSuccessorDelays::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1206 // @@protoc_insertion_point(generalized_copy_from_start:operations_research.data.rcpsp.PerSuccessorDelays)
1207  if (&from == this) return;
1208  Clear();
1209  MergeFrom(from);
1210 }
1211 
1212 void PerSuccessorDelays::CopyFrom(const PerSuccessorDelays& from) {
1213 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.data.rcpsp.PerSuccessorDelays)
1214  if (&from == this) return;
1215  Clear();
1216  MergeFrom(from);
1217 }
1218 
1219 bool PerSuccessorDelays::IsInitialized() const {
1220  return true;
1221 }
1222 
1223 void PerSuccessorDelays::InternalSwap(PerSuccessorDelays* other) {
1224  using std::swap;
1225  _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
1226  recipe_delays_.InternalSwap(&other->recipe_delays_);
1227 }
1228 
1229 ::PROTOBUF_NAMESPACE_ID::Metadata PerSuccessorDelays::GetMetadata() const {
1230  return GetMetadataStatic();
1231 }
1232 
1233 
1234 // ===================================================================
1235 
1236 void Task::InitAsDefaultInstance() {
1237 }
1239  public:
1240 };
1241 
1242 Task::Task(::PROTOBUF_NAMESPACE_ID::Arena* arena)
1243  : ::PROTOBUF_NAMESPACE_ID::Message(arena),
1244  successors_(arena),
1245  recipes_(arena),
1246  successor_delays_(arena) {
1247  SharedCtor();
1248  RegisterArenaDtor(arena);
1249  // @@protoc_insertion_point(arena_constructor:operations_research.data.rcpsp.Task)
1250 }
1251 Task::Task(const Task& from)
1252  : ::PROTOBUF_NAMESPACE_ID::Message(),
1253  successors_(from.successors_),
1254  recipes_(from.recipes_),
1255  successor_delays_(from.successor_delays_) {
1256  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1257  // @@protoc_insertion_point(copy_constructor:operations_research.data.rcpsp.Task)
1258 }
1259 
1260 void Task::SharedCtor() {
1261  ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Task_ortools_2fdata_2frcpsp_2eproto.base);
1262 }
1263 
1264 Task::~Task() {
1265  // @@protoc_insertion_point(destructor:operations_research.data.rcpsp.Task)
1266  SharedDtor();
1267  _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1268 }
1269 
1270 void Task::SharedDtor() {
1271  GOOGLE_DCHECK(GetArena() == nullptr);
1272 }
1273 
1274 void Task::ArenaDtor(void* object) {
1275  Task* _this = reinterpret_cast< Task* >(object);
1276  (void)_this;
1277 }
1278 void Task::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
1279 }
1280 void Task::SetCachedSize(int size) const {
1281  _cached_size_.Set(size);
1282 }
1283 const Task& Task::default_instance() {
1284  ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Task_ortools_2fdata_2frcpsp_2eproto.base);
1285  return *internal_default_instance();
1286 }
1287 
1288 
1289 void Task::Clear() {
1290 // @@protoc_insertion_point(message_clear_start:operations_research.data.rcpsp.Task)
1291  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1292  // Prevent compiler warnings about cached_has_bits being unused
1293  (void) cached_has_bits;
1294 
1295  successors_.Clear();
1296  recipes_.Clear();
1297  successor_delays_.Clear();
1298  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1299 }
1300 
1301 const char* Task::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
1302 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1303  ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
1304  while (!ctx->Done(&ptr)) {
1306  ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
1307  CHK_(ptr);
1308  switch (tag >> 3) {
1309  // repeated int32 successors = 1;
1310  case 1:
1311  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
1312  ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_successors(), ptr, ctx);
1313  CHK_(ptr);
1314  } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8) {
1315  _internal_add_successors(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr));
1316  CHK_(ptr);
1317  } else goto handle_unusual;
1318  continue;
1319  // repeated .operations_research.data.rcpsp.Recipe recipes = 2;
1320  case 2:
1321  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
1322  ptr -= 1;
1323  do {
1324  ptr += 1;
1325  ptr = ctx->ParseMessage(_internal_add_recipes(), ptr);
1326  CHK_(ptr);
1327  if (!ctx->DataAvailable(ptr)) break;
1328  } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
1329  } else goto handle_unusual;
1330  continue;
1331  // repeated .operations_research.data.rcpsp.PerSuccessorDelays successor_delays = 3;
1332  case 3:
1333  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
1334  ptr -= 1;
1335  do {
1336  ptr += 1;
1337  ptr = ctx->ParseMessage(_internal_add_successor_delays(), ptr);
1338  CHK_(ptr);
1339  if (!ctx->DataAvailable(ptr)) break;
1340  } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
1341  } else goto handle_unusual;
1342  continue;
1343  default: {
1344  handle_unusual:
1345  if ((tag & 7) == 4 || tag == 0) {
1346  ctx->SetLastTag(tag);
1347  goto success;
1348  }
1349  ptr = UnknownFieldParse(tag,
1350  _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
1351  ptr, ctx);
1352  CHK_(ptr != nullptr);
1353  continue;
1354  }
1355  } // switch
1356  } // while
1357 success:
1358  return ptr;
1359 failure:
1360  ptr = nullptr;
1361  goto success;
1362 #undef CHK_
1363 }
1364 
1365 ::PROTOBUF_NAMESPACE_ID::uint8* Task::_InternalSerialize(
1366  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1367  // @@protoc_insertion_point(serialize_to_array_start:operations_research.data.rcpsp.Task)
1368  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1369  (void) cached_has_bits;
1370 
1371  // repeated int32 successors = 1;
1372  {
1373  int byte_size = _successors_cached_byte_size_.load(std::memory_order_relaxed);
1374  if (byte_size > 0) {
1375  target = stream->WriteInt32Packed(
1376  1, _internal_successors(), byte_size, target);
1377  }
1378  }
1379 
1380  // repeated .operations_research.data.rcpsp.Recipe recipes = 2;
1381  for (unsigned int i = 0,
1382  n = static_cast<unsigned int>(this->_internal_recipes_size()); i < n; i++) {
1383  target = stream->EnsureSpace(target);
1384  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1385  InternalWriteMessage(2, this->_internal_recipes(i), target, stream);
1386  }
1387 
1388  // repeated .operations_research.data.rcpsp.PerSuccessorDelays successor_delays = 3;
1389  for (unsigned int i = 0,
1390  n = static_cast<unsigned int>(this->_internal_successor_delays_size()); i < n; i++) {
1391  target = stream->EnsureSpace(target);
1392  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1393  InternalWriteMessage(3, this->_internal_successor_delays(i), target, stream);
1394  }
1395 
1396  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1397  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
1398  _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
1399  }
1400  // @@protoc_insertion_point(serialize_to_array_end:operations_research.data.rcpsp.Task)
1401  return target;
1402 }
1403 
1404 size_t Task::ByteSizeLong() const {
1405 // @@protoc_insertion_point(message_byte_size_start:operations_research.data.rcpsp.Task)
1406  size_t total_size = 0;
1407 
1408  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1409  // Prevent compiler warnings about cached_has_bits being unused
1410  (void) cached_has_bits;
1411 
1412  // repeated int32 successors = 1;
1413  {
1414  size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1415  Int32Size(this->successors_);
1416  if (data_size > 0) {
1417  total_size += 1 +
1418  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
1419  static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
1420  }
1421  int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
1422  _successors_cached_byte_size_.store(cached_size,
1423  std::memory_order_relaxed);
1424  total_size += data_size;
1425  }
1426 
1427  // repeated .operations_research.data.rcpsp.Recipe recipes = 2;
1428  total_size += 1UL * this->_internal_recipes_size();
1429  for (const auto& msg : this->recipes_) {
1430  total_size +=
1431  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1432  }
1433 
1434  // repeated .operations_research.data.rcpsp.PerSuccessorDelays successor_delays = 3;
1435  total_size += 1UL * this->_internal_successor_delays_size();
1436  for (const auto& msg : this->successor_delays_) {
1437  total_size +=
1438  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1439  }
1440 
1441  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1442  return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
1443  _internal_metadata_, total_size, &_cached_size_);
1444  }
1445  int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
1446  SetCachedSize(cached_size);
1447  return total_size;
1448 }
1449 
1450 void Task::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1451 // @@protoc_insertion_point(generalized_merge_from_start:operations_research.data.rcpsp.Task)
1452  GOOGLE_DCHECK_NE(&from, this);
1453  const Task* source =
1454  ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Task>(
1455  &from);
1456  if (source == nullptr) {
1457  // @@protoc_insertion_point(generalized_merge_from_cast_fail:operations_research.data.rcpsp.Task)
1458  ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
1459  } else {
1460  // @@protoc_insertion_point(generalized_merge_from_cast_success:operations_research.data.rcpsp.Task)
1461  MergeFrom(*source);
1462  }
1463 }
1464 
1465 void Task::MergeFrom(const Task& from) {
1466 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.data.rcpsp.Task)
1467  GOOGLE_DCHECK_NE(&from, this);
1468  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1469  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1470  (void) cached_has_bits;
1471 
1472  successors_.MergeFrom(from.successors_);
1473  recipes_.MergeFrom(from.recipes_);
1474  successor_delays_.MergeFrom(from.successor_delays_);
1475 }
1476 
1477 void Task::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1478 // @@protoc_insertion_point(generalized_copy_from_start:operations_research.data.rcpsp.Task)
1479  if (&from == this) return;
1480  Clear();
1481  MergeFrom(from);
1482 }
1483 
1484 void Task::CopyFrom(const Task& from) {
1485 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.data.rcpsp.Task)
1486  if (&from == this) return;
1487  Clear();
1488  MergeFrom(from);
1489 }
1490 
1491 bool Task::IsInitialized() const {
1492  return true;
1493 }
1494 
1495 void Task::InternalSwap(Task* other) {
1496  using std::swap;
1497  _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
1498  successors_.InternalSwap(&other->successors_);
1499  recipes_.InternalSwap(&other->recipes_);
1500  successor_delays_.InternalSwap(&other->successor_delays_);
1501 }
1502 
1503 ::PROTOBUF_NAMESPACE_ID::Metadata Task::GetMetadata() const {
1504  return GetMetadataStatic();
1505 }
1506 
1507 
1508 // ===================================================================
1509 
1510 void RcpspProblem::InitAsDefaultInstance() {
1511 }
1513  public:
1514 };
1515 
1516 RcpspProblem::RcpspProblem(::PROTOBUF_NAMESPACE_ID::Arena* arena)
1517  : ::PROTOBUF_NAMESPACE_ID::Message(arena),
1518  resources_(arena),
1519  tasks_(arena) {
1520  SharedCtor();
1521  RegisterArenaDtor(arena);
1522  // @@protoc_insertion_point(arena_constructor:operations_research.data.rcpsp.RcpspProblem)
1523 }
1524 RcpspProblem::RcpspProblem(const RcpspProblem& from)
1525  : ::PROTOBUF_NAMESPACE_ID::Message(),
1526  resources_(from.resources_),
1527  tasks_(from.tasks_) {
1528  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1529  basedata_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1530  if (!from._internal_basedata().empty()) {
1531  basedata_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_basedata(),
1532  GetArena());
1533  }
1534  name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1535  if (!from._internal_name().empty()) {
1536  name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_name(),
1537  GetArena());
1538  }
1539  ::memcpy(&is_consumer_producer_, &from.is_consumer_producer_,
1540  static_cast<size_t>(reinterpret_cast<char*>(&due_date_) -
1541  reinterpret_cast<char*>(&is_consumer_producer_)) + sizeof(due_date_));
1542  // @@protoc_insertion_point(copy_constructor:operations_research.data.rcpsp.RcpspProblem)
1543 }
1544 
1545 void RcpspProblem::SharedCtor() {
1546  ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_RcpspProblem_ortools_2fdata_2frcpsp_2eproto.base);
1547  basedata_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1548  name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1549  ::memset(&is_consumer_producer_, 0, static_cast<size_t>(
1550  reinterpret_cast<char*>(&due_date_) -
1551  reinterpret_cast<char*>(&is_consumer_producer_)) + sizeof(due_date_));
1552 }
1553 
1554 RcpspProblem::~RcpspProblem() {
1555  // @@protoc_insertion_point(destructor:operations_research.data.rcpsp.RcpspProblem)
1556  SharedDtor();
1557  _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1558 }
1559 
1560 void RcpspProblem::SharedDtor() {
1561  GOOGLE_DCHECK(GetArena() == nullptr);
1562  basedata_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1563  name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1564 }
1565 
1566 void RcpspProblem::ArenaDtor(void* object) {
1567  RcpspProblem* _this = reinterpret_cast< RcpspProblem* >(object);
1568  (void)_this;
1569 }
1570 void RcpspProblem::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
1571 }
1572 void RcpspProblem::SetCachedSize(int size) const {
1573  _cached_size_.Set(size);
1574 }
1575 const RcpspProblem& RcpspProblem::default_instance() {
1576  ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RcpspProblem_ortools_2fdata_2frcpsp_2eproto.base);
1577  return *internal_default_instance();
1578 }
1579 
1580 
1581 void RcpspProblem::Clear() {
1582 // @@protoc_insertion_point(message_clear_start:operations_research.data.rcpsp.RcpspProblem)
1583  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1584  // Prevent compiler warnings about cached_has_bits being unused
1585  (void) cached_has_bits;
1586 
1587  resources_.Clear();
1588  tasks_.Clear();
1589  basedata_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1590  name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1591  ::memset(&is_consumer_producer_, 0, static_cast<size_t>(
1592  reinterpret_cast<char*>(&due_date_) -
1593  reinterpret_cast<char*>(&is_consumer_producer_)) + sizeof(due_date_));
1594  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1595 }
1596 
1597 const char* RcpspProblem::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
1598 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1599  ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
1600  while (!ctx->Done(&ptr)) {
1602  ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
1603  CHK_(ptr);
1604  switch (tag >> 3) {
1605  // repeated .operations_research.data.rcpsp.Resource resources = 1;
1606  case 1:
1607  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
1608  ptr -= 1;
1609  do {
1610  ptr += 1;
1611  ptr = ctx->ParseMessage(_internal_add_resources(), ptr);
1612  CHK_(ptr);
1613  if (!ctx->DataAvailable(ptr)) break;
1614  } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
1615  } else goto handle_unusual;
1616  continue;
1617  // repeated .operations_research.data.rcpsp.Task tasks = 2;
1618  case 2:
1619  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
1620  ptr -= 1;
1621  do {
1622  ptr += 1;
1623  ptr = ctx->ParseMessage(_internal_add_tasks(), ptr);
1624  CHK_(ptr);
1625  if (!ctx->DataAvailable(ptr)) break;
1626  } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
1627  } else goto handle_unusual;
1628  continue;
1629  // bool is_consumer_producer = 3;
1630  case 3:
1631  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
1632  is_consumer_producer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1633  CHK_(ptr);
1634  } else goto handle_unusual;
1635  continue;
1636  // bool is_resource_investment = 4;
1637  case 4:
1638  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
1639  is_resource_investment_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1640  CHK_(ptr);
1641  } else goto handle_unusual;
1642  continue;
1643  // bool is_rcpsp_max = 5;
1644  case 5:
1645  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
1646  is_rcpsp_max_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1647  CHK_(ptr);
1648  } else goto handle_unusual;
1649  continue;
1650  // int32 deadline = 6;
1651  case 6:
1652  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) {
1653  deadline_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1654  CHK_(ptr);
1655  } else goto handle_unusual;
1656  continue;
1657  // int32 horizon = 7;
1658  case 7:
1659  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) {
1660  horizon_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1661  CHK_(ptr);
1662  } else goto handle_unusual;
1663  continue;
1664  // int32 release_date = 8;
1665  case 8:
1666  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) {
1667  release_date_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1668  CHK_(ptr);
1669  } else goto handle_unusual;
1670  continue;
1671  // int32 tardiness_cost = 9;
1672  case 9:
1673  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) {
1674  tardiness_cost_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1675  CHK_(ptr);
1676  } else goto handle_unusual;
1677  continue;
1678  // int32 mpm_time = 10;
1679  case 10:
1680  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) {
1681  mpm_time_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1682  CHK_(ptr);
1683  } else goto handle_unusual;
1684  continue;
1685  // int64 seed = 11;
1686  case 11:
1687  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 88)) {
1688  seed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1689  CHK_(ptr);
1690  } else goto handle_unusual;
1691  continue;
1692  // string basedata = 12;
1693  case 12:
1694  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 98)) {
1695  auto str = _internal_mutable_basedata();
1696  ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
1697  CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "operations_research.data.rcpsp.RcpspProblem.basedata"));
1698  CHK_(ptr);
1699  } else goto handle_unusual;
1700  continue;
1701  // int32 due_date = 13;
1702  case 13:
1703  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 104)) {
1704  due_date_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1705  CHK_(ptr);
1706  } else goto handle_unusual;
1707  continue;
1708  // string name = 14;
1709  case 14:
1710  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 114)) {
1711  auto str = _internal_mutable_name();
1712  ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
1713  CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "operations_research.data.rcpsp.RcpspProblem.name"));
1714  CHK_(ptr);
1715  } else goto handle_unusual;
1716  continue;
1717  default: {
1718  handle_unusual:
1719  if ((tag & 7) == 4 || tag == 0) {
1720  ctx->SetLastTag(tag);
1721  goto success;
1722  }
1723  ptr = UnknownFieldParse(tag,
1724  _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
1725  ptr, ctx);
1726  CHK_(ptr != nullptr);
1727  continue;
1728  }
1729  } // switch
1730  } // while
1731 success:
1732  return ptr;
1733 failure:
1734  ptr = nullptr;
1735  goto success;
1736 #undef CHK_
1737 }
1738 
1739 ::PROTOBUF_NAMESPACE_ID::uint8* RcpspProblem::_InternalSerialize(
1740  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1741  // @@protoc_insertion_point(serialize_to_array_start:operations_research.data.rcpsp.RcpspProblem)
1742  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1743  (void) cached_has_bits;
1744 
1745  // repeated .operations_research.data.rcpsp.Resource resources = 1;
1746  for (unsigned int i = 0,
1747  n = static_cast<unsigned int>(this->_internal_resources_size()); i < n; i++) {
1748  target = stream->EnsureSpace(target);
1749  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1750  InternalWriteMessage(1, this->_internal_resources(i), target, stream);
1751  }
1752 
1753  // repeated .operations_research.data.rcpsp.Task tasks = 2;
1754  for (unsigned int i = 0,
1755  n = static_cast<unsigned int>(this->_internal_tasks_size()); i < n; i++) {
1756  target = stream->EnsureSpace(target);
1757  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1758  InternalWriteMessage(2, this->_internal_tasks(i), target, stream);
1759  }
1760 
1761  // bool is_consumer_producer = 3;
1762  if (this->is_consumer_producer() != 0) {
1763  target = stream->EnsureSpace(target);
1764  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->_internal_is_consumer_producer(), target);
1765  }
1766 
1767  // bool is_resource_investment = 4;
1768  if (this->is_resource_investment() != 0) {
1769  target = stream->EnsureSpace(target);
1770  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(4, this->_internal_is_resource_investment(), target);
1771  }
1772 
1773  // bool is_rcpsp_max = 5;
1774  if (this->is_rcpsp_max() != 0) {
1775  target = stream->EnsureSpace(target);
1776  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(5, this->_internal_is_rcpsp_max(), target);
1777  }
1778 
1779  // int32 deadline = 6;
1780  if (this->deadline() != 0) {
1781  target = stream->EnsureSpace(target);
1782  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(6, this->_internal_deadline(), target);
1783  }
1784 
1785  // int32 horizon = 7;
1786  if (this->horizon() != 0) {
1787  target = stream->EnsureSpace(target);
1788  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(7, this->_internal_horizon(), target);
1789  }
1790 
1791  // int32 release_date = 8;
1792  if (this->release_date() != 0) {
1793  target = stream->EnsureSpace(target);
1794  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(8, this->_internal_release_date(), target);
1795  }
1796 
1797  // int32 tardiness_cost = 9;
1798  if (this->tardiness_cost() != 0) {
1799  target = stream->EnsureSpace(target);
1800  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(9, this->_internal_tardiness_cost(), target);
1801  }
1802 
1803  // int32 mpm_time = 10;
1804  if (this->mpm_time() != 0) {
1805  target = stream->EnsureSpace(target);
1806  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(10, this->_internal_mpm_time(), target);
1807  }
1808 
1809  // int64 seed = 11;
1810  if (this->seed() != 0) {
1811  target = stream->EnsureSpace(target);
1812  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(11, this->_internal_seed(), target);
1813  }
1814 
1815  // string basedata = 12;
1816  if (this->basedata().size() > 0) {
1817  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1818  this->_internal_basedata().data(), static_cast<int>(this->_internal_basedata().length()),
1819  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1820  "operations_research.data.rcpsp.RcpspProblem.basedata");
1821  target = stream->WriteStringMaybeAliased(
1822  12, this->_internal_basedata(), target);
1823  }
1824 
1825  // int32 due_date = 13;
1826  if (this->due_date() != 0) {
1827  target = stream->EnsureSpace(target);
1828  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(13, this->_internal_due_date(), target);
1829  }
1830 
1831  // string name = 14;
1832  if (this->name().size() > 0) {
1833  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1834  this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
1835  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1836  "operations_research.data.rcpsp.RcpspProblem.name");
1837  target = stream->WriteStringMaybeAliased(
1838  14, this->_internal_name(), target);
1839  }
1840 
1841  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1842  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
1843  _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
1844  }
1845  // @@protoc_insertion_point(serialize_to_array_end:operations_research.data.rcpsp.RcpspProblem)
1846  return target;
1847 }
1848 
1849 size_t RcpspProblem::ByteSizeLong() const {
1850 // @@protoc_insertion_point(message_byte_size_start:operations_research.data.rcpsp.RcpspProblem)
1851  size_t total_size = 0;
1852 
1853  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1854  // Prevent compiler warnings about cached_has_bits being unused
1855  (void) cached_has_bits;
1856 
1857  // repeated .operations_research.data.rcpsp.Resource resources = 1;
1858  total_size += 1UL * this->_internal_resources_size();
1859  for (const auto& msg : this->resources_) {
1860  total_size +=
1861  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1862  }
1863 
1864  // repeated .operations_research.data.rcpsp.Task tasks = 2;
1865  total_size += 1UL * this->_internal_tasks_size();
1866  for (const auto& msg : this->tasks_) {
1867  total_size +=
1868  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1869  }
1870 
1871  // string basedata = 12;
1872  if (this->basedata().size() > 0) {
1873  total_size += 1 +
1874  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1875  this->_internal_basedata());
1876  }
1877 
1878  // string name = 14;
1879  if (this->name().size() > 0) {
1880  total_size += 1 +
1881  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1882  this->_internal_name());
1883  }
1884 
1885  // bool is_consumer_producer = 3;
1886  if (this->is_consumer_producer() != 0) {
1887  total_size += 1 + 1;
1888  }
1889 
1890  // bool is_resource_investment = 4;
1891  if (this->is_resource_investment() != 0) {
1892  total_size += 1 + 1;
1893  }
1894 
1895  // bool is_rcpsp_max = 5;
1896  if (this->is_rcpsp_max() != 0) {
1897  total_size += 1 + 1;
1898  }
1899 
1900  // int32 deadline = 6;
1901  if (this->deadline() != 0) {
1902  total_size += 1 +
1903  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
1904  this->_internal_deadline());
1905  }
1906 
1907  // int32 horizon = 7;
1908  if (this->horizon() != 0) {
1909  total_size += 1 +
1910  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
1911  this->_internal_horizon());
1912  }
1913 
1914  // int32 release_date = 8;
1915  if (this->release_date() != 0) {
1916  total_size += 1 +
1917  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
1918  this->_internal_release_date());
1919  }
1920 
1921  // int32 tardiness_cost = 9;
1922  if (this->tardiness_cost() != 0) {
1923  total_size += 1 +
1924  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
1925  this->_internal_tardiness_cost());
1926  }
1927 
1928  // int32 mpm_time = 10;
1929  if (this->mpm_time() != 0) {
1930  total_size += 1 +
1931  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
1932  this->_internal_mpm_time());
1933  }
1934 
1935  // int64 seed = 11;
1936  if (this->seed() != 0) {
1937  total_size += 1 +
1938  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
1939  this->_internal_seed());
1940  }
1941 
1942  // int32 due_date = 13;
1943  if (this->due_date() != 0) {
1944  total_size += 1 +
1945  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
1946  this->_internal_due_date());
1947  }
1948 
1949  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1950  return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
1951  _internal_metadata_, total_size, &_cached_size_);
1952  }
1953  int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
1954  SetCachedSize(cached_size);
1955  return total_size;
1956 }
1957 
1958 void RcpspProblem::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1959 // @@protoc_insertion_point(generalized_merge_from_start:operations_research.data.rcpsp.RcpspProblem)
1960  GOOGLE_DCHECK_NE(&from, this);
1961  const RcpspProblem* source =
1962  ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<RcpspProblem>(
1963  &from);
1964  if (source == nullptr) {
1965  // @@protoc_insertion_point(generalized_merge_from_cast_fail:operations_research.data.rcpsp.RcpspProblem)
1966  ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
1967  } else {
1968  // @@protoc_insertion_point(generalized_merge_from_cast_success:operations_research.data.rcpsp.RcpspProblem)
1969  MergeFrom(*source);
1970  }
1971 }
1972 
1973 void RcpspProblem::MergeFrom(const RcpspProblem& from) {
1974 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.data.rcpsp.RcpspProblem)
1975  GOOGLE_DCHECK_NE(&from, this);
1976  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1977  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1978  (void) cached_has_bits;
1979 
1980  resources_.MergeFrom(from.resources_);
1981  tasks_.MergeFrom(from.tasks_);
1982  if (from.basedata().size() > 0) {
1983  _internal_set_basedata(from._internal_basedata());
1984  }
1985  if (from.name().size() > 0) {
1986  _internal_set_name(from._internal_name());
1987  }
1988  if (from.is_consumer_producer() != 0) {
1989  _internal_set_is_consumer_producer(from._internal_is_consumer_producer());
1990  }
1991  if (from.is_resource_investment() != 0) {
1992  _internal_set_is_resource_investment(from._internal_is_resource_investment());
1993  }
1994  if (from.is_rcpsp_max() != 0) {
1995  _internal_set_is_rcpsp_max(from._internal_is_rcpsp_max());
1996  }
1997  if (from.deadline() != 0) {
1998  _internal_set_deadline(from._internal_deadline());
1999  }
2000  if (from.horizon() != 0) {
2001  _internal_set_horizon(from._internal_horizon());
2002  }
2003  if (from.release_date() != 0) {
2004  _internal_set_release_date(from._internal_release_date());
2005  }
2006  if (from.tardiness_cost() != 0) {
2007  _internal_set_tardiness_cost(from._internal_tardiness_cost());
2008  }
2009  if (from.mpm_time() != 0) {
2010  _internal_set_mpm_time(from._internal_mpm_time());
2011  }
2012  if (from.seed() != 0) {
2013  _internal_set_seed(from._internal_seed());
2014  }
2015  if (from.due_date() != 0) {
2016  _internal_set_due_date(from._internal_due_date());
2017  }
2018 }
2019 
2020 void RcpspProblem::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2021 // @@protoc_insertion_point(generalized_copy_from_start:operations_research.data.rcpsp.RcpspProblem)
2022  if (&from == this) return;
2023  Clear();
2024  MergeFrom(from);
2025 }
2026 
2027 void RcpspProblem::CopyFrom(const RcpspProblem& from) {
2028 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.data.rcpsp.RcpspProblem)
2029  if (&from == this) return;
2030  Clear();
2031  MergeFrom(from);
2032 }
2033 
2034 bool RcpspProblem::IsInitialized() const {
2035  return true;
2036 }
2037 
2038 void RcpspProblem::InternalSwap(RcpspProblem* other) {
2039  using std::swap;
2040  _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
2041  resources_.InternalSwap(&other->resources_);
2042  tasks_.InternalSwap(&other->tasks_);
2043  basedata_.Swap(&other->basedata_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
2044  name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
2045  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
2046  PROTOBUF_FIELD_OFFSET(RcpspProblem, due_date_)
2047  + sizeof(RcpspProblem::due_date_)
2048  - PROTOBUF_FIELD_OFFSET(RcpspProblem, is_consumer_producer_)>(
2049  reinterpret_cast<char*>(&is_consumer_producer_),
2050  reinterpret_cast<char*>(&other->is_consumer_producer_));
2051 }
2052 
2053 ::PROTOBUF_NAMESPACE_ID::Metadata RcpspProblem::GetMetadata() const {
2054  return GetMetadataStatic();
2055 }
2056 
2057 
2058 // @@protoc_insertion_point(namespace_scope)
2059 } // namespace rcpsp
2060 } // namespace data
2061 } // namespace operations_research
2062 PROTOBUF_NAMESPACE_OPEN
2063 template<> PROTOBUF_NOINLINE ::operations_research::data::rcpsp::Resource* Arena::CreateMaybeMessage< ::operations_research::data::rcpsp::Resource >(Arena* arena) {
2064  return Arena::CreateMessageInternal< ::operations_research::data::rcpsp::Resource >(arena);
2065 }
2066 template<> PROTOBUF_NOINLINE ::operations_research::data::rcpsp::Recipe* Arena::CreateMaybeMessage< ::operations_research::data::rcpsp::Recipe >(Arena* arena) {
2067  return Arena::CreateMessageInternal< ::operations_research::data::rcpsp::Recipe >(arena);
2068 }
2069 template<> PROTOBUF_NOINLINE ::operations_research::data::rcpsp::PerRecipeDelays* Arena::CreateMaybeMessage< ::operations_research::data::rcpsp::PerRecipeDelays >(Arena* arena) {
2070  return Arena::CreateMessageInternal< ::operations_research::data::rcpsp::PerRecipeDelays >(arena);
2071 }
2072 template<> PROTOBUF_NOINLINE ::operations_research::data::rcpsp::PerSuccessorDelays* Arena::CreateMaybeMessage< ::operations_research::data::rcpsp::PerSuccessorDelays >(Arena* arena) {
2073  return Arena::CreateMessageInternal< ::operations_research::data::rcpsp::PerSuccessorDelays >(arena);
2074 }
2075 template<> PROTOBUF_NOINLINE ::operations_research::data::rcpsp::Task* Arena::CreateMaybeMessage< ::operations_research::data::rcpsp::Task >(Arena* arena) {
2076  return Arena::CreateMessageInternal< ::operations_research::data::rcpsp::Task >(arena);
2077 }
2078 template<> PROTOBUF_NOINLINE ::operations_research::data::rcpsp::RcpspProblem* Arena::CreateMaybeMessage< ::operations_research::data::rcpsp::RcpspProblem >(Arena* arena) {
2079  return Arena::CreateMessageInternal< ::operations_research::data::rcpsp::RcpspProblem >(arena);
2080 }
2081 PROTOBUF_NAMESPACE_CLOSE
2082 
2083 // @@protoc_insertion_point(global_scope)
2084 #include <google/protobuf/port_undef.inc>
file_level_metadata_ortools_2fdata_2frcpsp_2eproto
::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_ortools_2fdata_2frcpsp_2eproto[6]
Definition: rcpsp.pb.cc:141
TableStruct_ortools_2fdata_2frcpsp_2eproto::offsets
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
Definition: rcpsp.pb.h:54
scc_info_PerRecipeDelays_ortools_2fdata_2frcpsp_2eproto
PROTOBUF_INTERNAL_EXPORT_ortools_2fdata_2frcpsp_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo< 0 > scc_info_PerRecipeDelays_ortools_2fdata_2frcpsp_2eproto
Definition: rcpsp.pb.cc:63
operations_research::data::rcpsp::PerSuccessorDelays
CreateMaybeMessage< ::operations_research::data::rcpsp::PerSuccessorDelays >
PROTOBUF_NOINLINE ::operations_research::data::rcpsp::PerSuccessorDelays * Arena::CreateMaybeMessage< ::operations_research::data::rcpsp::PerSuccessorDelays >(Arena *arena)
Definition: rcpsp.pb.cc:2072
operations_research::data::rcpsp::_PerRecipeDelays_default_instance_
class operations_research::data::rcpsp::PerRecipeDelaysDefaultTypeInternal _PerRecipeDelays_default_instance_
Definition: rcpsp.pb.h:61
operations_research::data::rcpsp::ResourceDefaultTypeInternal
Definition: rcpsp.pb.cc:25
CreateMaybeMessage< ::operations_research::data::rcpsp::Task >
PROTOBUF_NOINLINE ::operations_research::data::rcpsp::Task * Arena::CreateMaybeMessage< ::operations_research::data::rcpsp::Task >(Arena *arena)
Definition: rcpsp.pb.cc:2075
CHK_
#define CHK_(x)
operations_research::data::rcpsp::Task::_Internal
Definition: rcpsp.pb.cc:1238
operations_research::data::rcpsp::Recipe::_Internal
Definition: rcpsp.pb.cc:551
operations_research::data::rcpsp::RcpspProblem::_Internal
Definition: rcpsp.pb.cc:1512
operations_research::data::rcpsp::PerSuccessorDelays::_Internal
Definition: rcpsp.pb.cc:1035
operations_research::data::rcpsp::PerSuccessorDelaysDefaultTypeInternal::_instance
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed< PerSuccessorDelays > _instance
Definition: rcpsp.pb.cc:39
scc_info_Resource_ortools_2fdata_2frcpsp_2eproto
PROTOBUF_INTERNAL_EXPORT_ortools_2fdata_2frcpsp_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo< 0 > scc_info_Resource_ortools_2fdata_2frcpsp_2eproto
Definition: rcpsp.pb.cc:122
CreateMaybeMessage< ::operations_research::data::rcpsp::Recipe >
PROTOBUF_NOINLINE ::operations_research::data::rcpsp::Recipe * Arena::CreateMaybeMessage< ::operations_research::data::rcpsp::Recipe >(Arena *arena)
Definition: rcpsp.pb.cc:2066
descriptor_table_ortools_2fdata_2frcpsp_2eproto
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ortools_2fdata_2frcpsp_2eproto
Definition: rcpsp.pb.cc:259
operations_research::data::rcpsp::_Recipe_default_instance_
class operations_research::data::rcpsp::RecipeDefaultTypeInternal _Recipe_default_instance_
Definition: rcpsp.pb.h:70
operations_research
The vehicle routing library lets one model and solve generic vehicle routing problems ranging from th...
Definition: dense_doubly_linked_list.h:21
InitDefaultsscc_info_Resource_ortools_2fdata_2frcpsp_2eproto
static void InitDefaultsscc_info_Resource_ortools_2fdata_2frcpsp_2eproto()
Definition: rcpsp.pb.cc:111
operations_research::data::rcpsp::Resource
descriptor_table_ortools_2fdata_2frcpsp_2eproto_deps
static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable *const descriptor_table_ortools_2fdata_2frcpsp_2eproto_deps[1]
Definition: rcpsp.pb.cc:248
operations_research::data::rcpsp::RcpspProblemDefaultTypeInternal::_instance
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed< RcpspProblem > _instance
Definition: rcpsp.pb.cc:47
CreateMaybeMessage< ::operations_research::data::rcpsp::PerRecipeDelays >
PROTOBUF_NOINLINE ::operations_research::data::rcpsp::PerRecipeDelays * Arena::CreateMaybeMessage< ::operations_research::data::rcpsp::PerRecipeDelays >(Arena *arena)
Definition: rcpsp.pb.cc:2069
file_level_service_descriptors_ortools_2fdata_2frcpsp_2eproto
static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const ** file_level_service_descriptors_ortools_2fdata_2frcpsp_2eproto
Definition: rcpsp.pb.cc:143
schemas
static constexpr ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema * schemas
Definition: optional_boolean.pb.cc:23
operations_research::data::rcpsp::RecipeDefaultTypeInternal
Definition: rcpsp.pb.cc:29
int32
int int32
Definition: integral_types.h:33
operations_research::data::rcpsp::RcpspProblemDefaultTypeInternal
Definition: rcpsp.pb.cc:45
operations_research::data::rcpsp::PerRecipeDelays
InitDefaultsscc_info_PerRecipeDelays_ortools_2fdata_2frcpsp_2eproto
static void InitDefaultsscc_info_PerRecipeDelays_ortools_2fdata_2frcpsp_2eproto()
Definition: rcpsp.pb.cc:52
operations_research::data::rcpsp::_Task_default_instance_
class operations_research::data::rcpsp::TaskDefaultTypeInternal _Task_default_instance_
Definition: rcpsp.pb.h:76
rcpsp.pb.h
InitDefaultsscc_info_Recipe_ortools_2fdata_2frcpsp_2eproto
static void InitDefaultsscc_info_Recipe_ortools_2fdata_2frcpsp_2eproto()
Definition: rcpsp.pb.cc:97
CreateMaybeMessage< ::operations_research::data::rcpsp::RcpspProblem >
PROTOBUF_NOINLINE ::operations_research::data::rcpsp::RcpspProblem * Arena::CreateMaybeMessage< ::operations_research::data::rcpsp::RcpspProblem >(Arena *arena)
Definition: rcpsp.pb.cc:2078
operations_research::data::rcpsp::Recipe
descriptor_table_ortools_2fdata_2frcpsp_2eproto_once
::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_ortools_2fdata_2frcpsp_2eproto_once
Definition: rcpsp.pb.cc:258
operations_research::data::rcpsp::PerSuccessorDelaysDefaultTypeInternal
Definition: rcpsp.pb.cc:37
uint32
unsigned int uint32
Definition: integral_types.h:38
descriptor_table_ortools_2fdata_2frcpsp_2eproto_sccs
::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase *const descriptor_table_ortools_2fdata_2frcpsp_2eproto_sccs[6]
Definition: rcpsp.pb.cc:250
operations_research::data::rcpsp::_Resource_default_instance_
class operations_research::data::rcpsp::ResourceDefaultTypeInternal _Resource_default_instance_
Definition: rcpsp.pb.h:73
operations_research::data::rcpsp::Resource::_Internal
Definition: rcpsp.pb.cc:276
operations_research::data::rcpsp::_PerSuccessorDelays_default_instance_
class operations_research::data::rcpsp::PerSuccessorDelaysDefaultTypeInternal _PerSuccessorDelays_default_instance_
Definition: rcpsp.pb.h:64
operations_research::data::rcpsp::TaskDefaultTypeInternal::_instance
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed< Task > _instance
Definition: rcpsp.pb.cc:43
scc_info_Task_ortools_2fdata_2frcpsp_2eproto
PROTOBUF_INTERNAL_EXPORT_ortools_2fdata_2frcpsp_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo< 2 > scc_info_Task_ortools_2fdata_2frcpsp_2eproto
Definition: rcpsp.pb.cc:136
scc_info_RcpspProblem_ortools_2fdata_2frcpsp_2eproto
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo< 2 > scc_info_RcpspProblem_ortools_2fdata_2frcpsp_2eproto
Definition: rcpsp.pb.cc:92
PROTOBUF_SECTION_VARIABLE
const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_ortools_2fdata_2frcpsp_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
operations_research::data::rcpsp::RecipeDefaultTypeInternal::_instance
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed< Recipe > _instance
Definition: rcpsp.pb.cc:31
scc_info_PerSuccessorDelays_ortools_2fdata_2frcpsp_2eproto
PROTOBUF_INTERNAL_EXPORT_ortools_2fdata_2frcpsp_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo< 1 > scc_info_PerSuccessorDelays_ortools_2fdata_2frcpsp_2eproto
Definition: rcpsp.pb.cc:77
InitDefaultsscc_info_RcpspProblem_ortools_2fdata_2frcpsp_2eproto
static void InitDefaultsscc_info_RcpspProblem_ortools_2fdata_2frcpsp_2eproto()
Definition: rcpsp.pb.cc:81
operations_research::data::rcpsp::PerRecipeDelaysDefaultTypeInternal::_instance
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed< PerRecipeDelays > _instance
Definition: rcpsp.pb.cc:35
scc_info_Recipe_ortools_2fdata_2frcpsp_2eproto
PROTOBUF_INTERNAL_EXPORT_ortools_2fdata_2frcpsp_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo< 0 > scc_info_Recipe_ortools_2fdata_2frcpsp_2eproto
Definition: rcpsp.pb.cc:108
uint8
unsigned char uint8
Definition: integral_types.h:36
InitDefaultsscc_info_Task_ortools_2fdata_2frcpsp_2eproto
static void InitDefaultsscc_info_Task_ortools_2fdata_2frcpsp_2eproto()
Definition: rcpsp.pb.cc:125
operations_research::data::rcpsp::_RcpspProblem_default_instance_
class operations_research::data::rcpsp::RcpspProblemDefaultTypeInternal _RcpspProblem_default_instance_
Definition: rcpsp.pb.h:67
InitDefaultsscc_info_PerSuccessorDelays_ortools_2fdata_2frcpsp_2eproto
static void InitDefaultsscc_info_PerSuccessorDelays_ortools_2fdata_2frcpsp_2eproto()
Definition: rcpsp.pb.cc:66
operations_research::data::rcpsp::Task
operations_research::data::rcpsp::ResourceDefaultTypeInternal::_instance
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed< Resource > _instance
Definition: rcpsp.pb.cc:27
file_level_enum_descriptors_ortools_2fdata_2frcpsp_2eproto
static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const ** file_level_enum_descriptors_ortools_2fdata_2frcpsp_2eproto
Definition: rcpsp.pb.cc:142
operations_research::data::rcpsp::TaskDefaultTypeInternal
Definition: rcpsp.pb.cc:41
operations_research::data::rcpsp::RcpspProblem
CreateMaybeMessage< ::operations_research::data::rcpsp::Resource >
PROTOBUF_NAMESPACE_OPEN PROTOBUF_NOINLINE ::operations_research::data::rcpsp::Resource * Arena::CreateMaybeMessage< ::operations_research::data::rcpsp::Resource >(Arena *arena)
Definition: rcpsp.pb.cc:2063
file_default_instances
::PROTOBUF_NAMESPACE_ID::Message const *const file_default_instances[]
Definition: rcpsp.pb.cc:212
operations_research::data::rcpsp::PerRecipeDelaysDefaultTypeInternal
Definition: rcpsp.pb.cc:33
dynamic_init_dummy_ortools_2fdata_2frcpsp_2eproto
static bool dynamic_init_dummy_ortools_2fdata_2frcpsp_2eproto
Definition: rcpsp.pb.cc:267
operations_research::data::rcpsp::PerRecipeDelays::_Internal
Definition: rcpsp.pb.cc:826
name
const std::string name
Definition: default_search.cc:807