OR-Tools  8.0
demon_profiler.pb.cc
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ortools/constraint_solver/demon_profiler.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_2fconstraint_5fsolver_2fdemon_5fprofiler_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DemonRuns_ortools_2fconstraint_5fsolver_2fdemon_5fprofiler_2eproto;
18 namespace operations_research {
20  public:
21  ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<DemonRuns> _instance;
24  public:
25  ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ConstraintRuns> _instance;
27 } // namespace operations_research
29  GOOGLE_PROTOBUF_VERIFY_VERSION;
30 
31  {
34  ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
35  }
36  ::operations_research::ConstraintRuns::InitAsDefaultInstance();
37 }
38 
40  {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_ConstraintRuns_ortools_2fconstraint_5fsolver_2fdemon_5fprofiler_2eproto}, {
42 
44  GOOGLE_PROTOBUF_VERIFY_VERSION;
45 
46  {
48  new (ptr) ::operations_research::DemonRuns();
49  ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
50  }
51  ::operations_research::DemonRuns::InitAsDefaultInstance();
52 }
53 
55  {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_DemonRuns_ortools_2fconstraint_5fsolver_2fdemon_5fprofiler_2eproto}, {}};
56 
58 static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_ortools_2fconstraint_5fsolver_2fdemon_5fprofiler_2eproto = nullptr;
59 static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_ortools_2fconstraint_5fsolver_2fdemon_5fprofiler_2eproto = nullptr;
60 
62  ~0u, // no _has_bits_
63  PROTOBUF_FIELD_OFFSET(::operations_research::DemonRuns, _internal_metadata_),
64  ~0u, // no _extensions_
65  ~0u, // no _oneof_case_
66  ~0u, // no _weak_field_map_
67  PROTOBUF_FIELD_OFFSET(::operations_research::DemonRuns, demon_id_),
68  PROTOBUF_FIELD_OFFSET(::operations_research::DemonRuns, start_time_),
69  PROTOBUF_FIELD_OFFSET(::operations_research::DemonRuns, end_time_),
70  PROTOBUF_FIELD_OFFSET(::operations_research::DemonRuns, failures_),
71  ~0u, // no _has_bits_
72  PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintRuns, _internal_metadata_),
73  ~0u, // no _extensions_
74  ~0u, // no _oneof_case_
75  ~0u, // no _weak_field_map_
76  PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintRuns, constraint_id_),
77  PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintRuns, initial_propagation_start_time_),
78  PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintRuns, initial_propagation_end_time_),
79  PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintRuns, failures_),
80  PROTOBUF_FIELD_OFFSET(::operations_research::ConstraintRuns, demons_),
81 };
82 static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
83  { 0, -1, sizeof(::operations_research::DemonRuns)},
84  { 9, -1, sizeof(::operations_research::ConstraintRuns)},
85 };
86 
87 static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
88  reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::operations_research::_DemonRuns_default_instance_),
89  reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::operations_research::_ConstraintRuns_default_instance_),
90 };
91 
92 const char descriptor_table_protodef_ortools_2fconstraint_5fsolver_2fdemon_5fprofiler_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
93  "\n.ortools/constraint_solver/demon_profil"
94  "er.proto\022\023operations_research\"U\n\tDemonRu"
95  "ns\022\020\n\010demon_id\030\001 \001(\t\022\022\n\nstart_time\030\002 \003(\003"
96  "\022\020\n\010end_time\030\003 \003(\003\022\020\n\010failures\030\004 \001(\003\"\267\001\n"
97  "\016ConstraintRuns\022\025\n\rconstraint_id\030\001 \001(\t\022&"
98  "\n\036initial_propagation_start_time\030\002 \003(\003\022$"
99  "\n\034initial_propagation_end_time\030\003 \003(\003\022\020\n\010"
100  "failures\030\004 \001(\003\022.\n\006demons\030\005 \003(\0132\036.operati"
101  "ons_research.DemonRunsb\006proto3"
102  ;
103 static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_ortools_2fconstraint_5fsolver_2fdemon_5fprofiler_2eproto_deps[1] = {
104 };
105 static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_ortools_2fconstraint_5fsolver_2fdemon_5fprofiler_2eproto_sccs[2] = {
108 };
109 static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_ortools_2fconstraint_5fsolver_2fdemon_5fprofiler_2eproto_once;
110 const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ortools_2fconstraint_5fsolver_2fdemon_5fprofiler_2eproto = {
111  false, false, descriptor_table_protodef_ortools_2fconstraint_5fsolver_2fdemon_5fprofiler_2eproto, "ortools/constraint_solver/demon_profiler.proto", 350,
115 };
116 
117 // Force running AddDescriptors() at dynamic initialization time.
119 namespace operations_research {
120 
121 // ===================================================================
122 
123 void DemonRuns::InitAsDefaultInstance() {
124 }
126  public:
127 };
128 
129 DemonRuns::DemonRuns(::PROTOBUF_NAMESPACE_ID::Arena* arena)
130  : ::PROTOBUF_NAMESPACE_ID::Message(arena),
131  start_time_(arena),
132  end_time_(arena) {
133  SharedCtor();
134  RegisterArenaDtor(arena);
135  // @@protoc_insertion_point(arena_constructor:operations_research.DemonRuns)
136 }
137 DemonRuns::DemonRuns(const DemonRuns& from)
138  : ::PROTOBUF_NAMESPACE_ID::Message(),
139  start_time_(from.start_time_),
140  end_time_(from.end_time_) {
141  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
142  demon_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
143  if (!from._internal_demon_id().empty()) {
144  demon_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_demon_id(),
145  GetArena());
146  }
147  failures_ = from.failures_;
148  // @@protoc_insertion_point(copy_constructor:operations_research.DemonRuns)
149 }
150 
151 void DemonRuns::SharedCtor() {
152  ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DemonRuns_ortools_2fconstraint_5fsolver_2fdemon_5fprofiler_2eproto.base);
153  demon_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
154  failures_ = PROTOBUF_LONGLONG(0);
155 }
156 
157 DemonRuns::~DemonRuns() {
158  // @@protoc_insertion_point(destructor:operations_research.DemonRuns)
159  SharedDtor();
160  _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
161 }
162 
163 void DemonRuns::SharedDtor() {
164  GOOGLE_DCHECK(GetArena() == nullptr);
165  demon_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
166 }
167 
168 void DemonRuns::ArenaDtor(void* object) {
169  DemonRuns* _this = reinterpret_cast< DemonRuns* >(object);
170  (void)_this;
171 }
172 void DemonRuns::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
173 }
174 void DemonRuns::SetCachedSize(int size) const {
175  _cached_size_.Set(size);
176 }
177 const DemonRuns& DemonRuns::default_instance() {
178  ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DemonRuns_ortools_2fconstraint_5fsolver_2fdemon_5fprofiler_2eproto.base);
179  return *internal_default_instance();
180 }
181 
182 
183 void DemonRuns::Clear() {
184 // @@protoc_insertion_point(message_clear_start:operations_research.DemonRuns)
185  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
186  // Prevent compiler warnings about cached_has_bits being unused
187  (void) cached_has_bits;
188 
189  start_time_.Clear();
190  end_time_.Clear();
191  demon_id_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
192  failures_ = PROTOBUF_LONGLONG(0);
193  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
194 }
195 
196 const char* DemonRuns::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
197 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
198  ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
199  while (!ctx->Done(&ptr)) {
201  ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
202  CHK_(ptr);
203  switch (tag >> 3) {
204  // string demon_id = 1;
205  case 1:
206  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
207  auto str = _internal_mutable_demon_id();
208  ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
209  CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "operations_research.DemonRuns.demon_id"));
210  CHK_(ptr);
211  } else goto handle_unusual;
212  continue;
213  // repeated int64 start_time = 2;
214  case 2:
215  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
216  ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(_internal_mutable_start_time(), ptr, ctx);
217  CHK_(ptr);
218  } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16) {
219  _internal_add_start_time(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr));
220  CHK_(ptr);
221  } else goto handle_unusual;
222  continue;
223  // repeated int64 end_time = 3;
224  case 3:
225  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
226  ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(_internal_mutable_end_time(), ptr, ctx);
227  CHK_(ptr);
228  } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24) {
229  _internal_add_end_time(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr));
230  CHK_(ptr);
231  } else goto handle_unusual;
232  continue;
233  // int64 failures = 4;
234  case 4:
235  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
236  failures_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
237  CHK_(ptr);
238  } else goto handle_unusual;
239  continue;
240  default: {
241  handle_unusual:
242  if ((tag & 7) == 4 || tag == 0) {
243  ctx->SetLastTag(tag);
244  goto success;
245  }
246  ptr = UnknownFieldParse(tag,
247  _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
248  ptr, ctx);
249  CHK_(ptr != nullptr);
250  continue;
251  }
252  } // switch
253  } // while
254 success:
255  return ptr;
256 failure:
257  ptr = nullptr;
258  goto success;
259 #undef CHK_
260 }
261 
262 ::PROTOBUF_NAMESPACE_ID::uint8* DemonRuns::_InternalSerialize(
263  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
264  // @@protoc_insertion_point(serialize_to_array_start:operations_research.DemonRuns)
265  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
266  (void) cached_has_bits;
267 
268  // string demon_id = 1;
269  if (this->demon_id().size() > 0) {
270  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
271  this->_internal_demon_id().data(), static_cast<int>(this->_internal_demon_id().length()),
272  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
273  "operations_research.DemonRuns.demon_id");
274  target = stream->WriteStringMaybeAliased(
275  1, this->_internal_demon_id(), target);
276  }
277 
278  // repeated int64 start_time = 2;
279  {
280  int byte_size = _start_time_cached_byte_size_.load(std::memory_order_relaxed);
281  if (byte_size > 0) {
282  target = stream->WriteInt64Packed(
283  2, _internal_start_time(), byte_size, target);
284  }
285  }
286 
287  // repeated int64 end_time = 3;
288  {
289  int byte_size = _end_time_cached_byte_size_.load(std::memory_order_relaxed);
290  if (byte_size > 0) {
291  target = stream->WriteInt64Packed(
292  3, _internal_end_time(), byte_size, target);
293  }
294  }
295 
296  // int64 failures = 4;
297  if (this->failures() != 0) {
298  target = stream->EnsureSpace(target);
299  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->_internal_failures(), target);
300  }
301 
302  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
303  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
304  _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
305  }
306  // @@protoc_insertion_point(serialize_to_array_end:operations_research.DemonRuns)
307  return target;
308 }
309 
310 size_t DemonRuns::ByteSizeLong() const {
311 // @@protoc_insertion_point(message_byte_size_start:operations_research.DemonRuns)
312  size_t total_size = 0;
313 
314  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
315  // Prevent compiler warnings about cached_has_bits being unused
316  (void) cached_has_bits;
317 
318  // repeated int64 start_time = 2;
319  {
320  size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
321  Int64Size(this->start_time_);
322  if (data_size > 0) {
323  total_size += 1 +
324  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
325  static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
326  }
327  int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
328  _start_time_cached_byte_size_.store(cached_size,
329  std::memory_order_relaxed);
330  total_size += data_size;
331  }
332 
333  // repeated int64 end_time = 3;
334  {
335  size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
336  Int64Size(this->end_time_);
337  if (data_size > 0) {
338  total_size += 1 +
339  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
340  static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
341  }
342  int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
343  _end_time_cached_byte_size_.store(cached_size,
344  std::memory_order_relaxed);
345  total_size += data_size;
346  }
347 
348  // string demon_id = 1;
349  if (this->demon_id().size() > 0) {
350  total_size += 1 +
351  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
352  this->_internal_demon_id());
353  }
354 
355  // int64 failures = 4;
356  if (this->failures() != 0) {
357  total_size += 1 +
358  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
359  this->_internal_failures());
360  }
361 
362  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
363  return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
364  _internal_metadata_, total_size, &_cached_size_);
365  }
366  int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
367  SetCachedSize(cached_size);
368  return total_size;
369 }
370 
371 void DemonRuns::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
372 // @@protoc_insertion_point(generalized_merge_from_start:operations_research.DemonRuns)
373  GOOGLE_DCHECK_NE(&from, this);
374  const DemonRuns* source =
375  ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<DemonRuns>(
376  &from);
377  if (source == nullptr) {
378  // @@protoc_insertion_point(generalized_merge_from_cast_fail:operations_research.DemonRuns)
379  ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
380  } else {
381  // @@protoc_insertion_point(generalized_merge_from_cast_success:operations_research.DemonRuns)
382  MergeFrom(*source);
383  }
384 }
385 
386 void DemonRuns::MergeFrom(const DemonRuns& from) {
387 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.DemonRuns)
388  GOOGLE_DCHECK_NE(&from, this);
389  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
390  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
391  (void) cached_has_bits;
392 
393  start_time_.MergeFrom(from.start_time_);
394  end_time_.MergeFrom(from.end_time_);
395  if (from.demon_id().size() > 0) {
396  _internal_set_demon_id(from._internal_demon_id());
397  }
398  if (from.failures() != 0) {
399  _internal_set_failures(from._internal_failures());
400  }
401 }
402 
403 void DemonRuns::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
404 // @@protoc_insertion_point(generalized_copy_from_start:operations_research.DemonRuns)
405  if (&from == this) return;
406  Clear();
407  MergeFrom(from);
408 }
409 
410 void DemonRuns::CopyFrom(const DemonRuns& from) {
411 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.DemonRuns)
412  if (&from == this) return;
413  Clear();
414  MergeFrom(from);
415 }
416 
417 bool DemonRuns::IsInitialized() const {
418  return true;
419 }
420 
421 void DemonRuns::InternalSwap(DemonRuns* other) {
422  using std::swap;
423  _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
424  start_time_.InternalSwap(&other->start_time_);
425  end_time_.InternalSwap(&other->end_time_);
426  demon_id_.Swap(&other->demon_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
427  swap(failures_, other->failures_);
428 }
429 
430 ::PROTOBUF_NAMESPACE_ID::Metadata DemonRuns::GetMetadata() const {
431  return GetMetadataStatic();
432 }
433 
434 
435 // ===================================================================
436 
437 void ConstraintRuns::InitAsDefaultInstance() {
438 }
440  public:
441 };
442 
443 ConstraintRuns::ConstraintRuns(::PROTOBUF_NAMESPACE_ID::Arena* arena)
444  : ::PROTOBUF_NAMESPACE_ID::Message(arena),
445  initial_propagation_start_time_(arena),
446  initial_propagation_end_time_(arena),
447  demons_(arena) {
448  SharedCtor();
449  RegisterArenaDtor(arena);
450  // @@protoc_insertion_point(arena_constructor:operations_research.ConstraintRuns)
451 }
452 ConstraintRuns::ConstraintRuns(const ConstraintRuns& from)
453  : ::PROTOBUF_NAMESPACE_ID::Message(),
454  initial_propagation_start_time_(from.initial_propagation_start_time_),
455  initial_propagation_end_time_(from.initial_propagation_end_time_),
456  demons_(from.demons_) {
457  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
458  constraint_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
459  if (!from._internal_constraint_id().empty()) {
460  constraint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_constraint_id(),
461  GetArena());
462  }
463  failures_ = from.failures_;
464  // @@protoc_insertion_point(copy_constructor:operations_research.ConstraintRuns)
465 }
466 
467 void ConstraintRuns::SharedCtor() {
468  ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ConstraintRuns_ortools_2fconstraint_5fsolver_2fdemon_5fprofiler_2eproto.base);
469  constraint_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
470  failures_ = PROTOBUF_LONGLONG(0);
471 }
472 
473 ConstraintRuns::~ConstraintRuns() {
474  // @@protoc_insertion_point(destructor:operations_research.ConstraintRuns)
475  SharedDtor();
476  _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
477 }
478 
479 void ConstraintRuns::SharedDtor() {
480  GOOGLE_DCHECK(GetArena() == nullptr);
481  constraint_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
482 }
483 
484 void ConstraintRuns::ArenaDtor(void* object) {
485  ConstraintRuns* _this = reinterpret_cast< ConstraintRuns* >(object);
486  (void)_this;
487 }
488 void ConstraintRuns::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
489 }
490 void ConstraintRuns::SetCachedSize(int size) const {
491  _cached_size_.Set(size);
492 }
493 const ConstraintRuns& ConstraintRuns::default_instance() {
494  ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ConstraintRuns_ortools_2fconstraint_5fsolver_2fdemon_5fprofiler_2eproto.base);
495  return *internal_default_instance();
496 }
497 
498 
499 void ConstraintRuns::Clear() {
500 // @@protoc_insertion_point(message_clear_start:operations_research.ConstraintRuns)
501  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
502  // Prevent compiler warnings about cached_has_bits being unused
503  (void) cached_has_bits;
504 
505  initial_propagation_start_time_.Clear();
506  initial_propagation_end_time_.Clear();
507  demons_.Clear();
508  constraint_id_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
509  failures_ = PROTOBUF_LONGLONG(0);
510  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
511 }
512 
513 const char* ConstraintRuns::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
514 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
515  ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
516  while (!ctx->Done(&ptr)) {
518  ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
519  CHK_(ptr);
520  switch (tag >> 3) {
521  // string constraint_id = 1;
522  case 1:
523  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
524  auto str = _internal_mutable_constraint_id();
525  ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
526  CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "operations_research.ConstraintRuns.constraint_id"));
527  CHK_(ptr);
528  } else goto handle_unusual;
529  continue;
530  // repeated int64 initial_propagation_start_time = 2;
531  case 2:
532  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
533  ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(_internal_mutable_initial_propagation_start_time(), ptr, ctx);
534  CHK_(ptr);
535  } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16) {
536  _internal_add_initial_propagation_start_time(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr));
537  CHK_(ptr);
538  } else goto handle_unusual;
539  continue;
540  // repeated int64 initial_propagation_end_time = 3;
541  case 3:
542  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
543  ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(_internal_mutable_initial_propagation_end_time(), ptr, ctx);
544  CHK_(ptr);
545  } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24) {
546  _internal_add_initial_propagation_end_time(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr));
547  CHK_(ptr);
548  } else goto handle_unusual;
549  continue;
550  // int64 failures = 4;
551  case 4:
552  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
553  failures_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
554  CHK_(ptr);
555  } else goto handle_unusual;
556  continue;
557  // repeated .operations_research.DemonRuns demons = 5;
558  case 5:
559  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
560  ptr -= 1;
561  do {
562  ptr += 1;
563  ptr = ctx->ParseMessage(_internal_add_demons(), ptr);
564  CHK_(ptr);
565  if (!ctx->DataAvailable(ptr)) break;
566  } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr));
567  } else goto handle_unusual;
568  continue;
569  default: {
570  handle_unusual:
571  if ((tag & 7) == 4 || tag == 0) {
572  ctx->SetLastTag(tag);
573  goto success;
574  }
575  ptr = UnknownFieldParse(tag,
576  _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
577  ptr, ctx);
578  CHK_(ptr != nullptr);
579  continue;
580  }
581  } // switch
582  } // while
583 success:
584  return ptr;
585 failure:
586  ptr = nullptr;
587  goto success;
588 #undef CHK_
589 }
590 
591 ::PROTOBUF_NAMESPACE_ID::uint8* ConstraintRuns::_InternalSerialize(
592  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
593  // @@protoc_insertion_point(serialize_to_array_start:operations_research.ConstraintRuns)
594  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
595  (void) cached_has_bits;
596 
597  // string constraint_id = 1;
598  if (this->constraint_id().size() > 0) {
599  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
600  this->_internal_constraint_id().data(), static_cast<int>(this->_internal_constraint_id().length()),
601  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
602  "operations_research.ConstraintRuns.constraint_id");
603  target = stream->WriteStringMaybeAliased(
604  1, this->_internal_constraint_id(), target);
605  }
606 
607  // repeated int64 initial_propagation_start_time = 2;
608  {
609  int byte_size = _initial_propagation_start_time_cached_byte_size_.load(std::memory_order_relaxed);
610  if (byte_size > 0) {
611  target = stream->WriteInt64Packed(
612  2, _internal_initial_propagation_start_time(), byte_size, target);
613  }
614  }
615 
616  // repeated int64 initial_propagation_end_time = 3;
617  {
618  int byte_size = _initial_propagation_end_time_cached_byte_size_.load(std::memory_order_relaxed);
619  if (byte_size > 0) {
620  target = stream->WriteInt64Packed(
621  3, _internal_initial_propagation_end_time(), byte_size, target);
622  }
623  }
624 
625  // int64 failures = 4;
626  if (this->failures() != 0) {
627  target = stream->EnsureSpace(target);
628  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->_internal_failures(), target);
629  }
630 
631  // repeated .operations_research.DemonRuns demons = 5;
632  for (unsigned int i = 0,
633  n = static_cast<unsigned int>(this->_internal_demons_size()); i < n; i++) {
634  target = stream->EnsureSpace(target);
635  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
636  InternalWriteMessage(5, this->_internal_demons(i), target, stream);
637  }
638 
639  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
640  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
641  _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
642  }
643  // @@protoc_insertion_point(serialize_to_array_end:operations_research.ConstraintRuns)
644  return target;
645 }
646 
647 size_t ConstraintRuns::ByteSizeLong() const {
648 // @@protoc_insertion_point(message_byte_size_start:operations_research.ConstraintRuns)
649  size_t total_size = 0;
650 
651  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
652  // Prevent compiler warnings about cached_has_bits being unused
653  (void) cached_has_bits;
654 
655  // repeated int64 initial_propagation_start_time = 2;
656  {
657  size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
658  Int64Size(this->initial_propagation_start_time_);
659  if (data_size > 0) {
660  total_size += 1 +
661  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
662  static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
663  }
664  int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
665  _initial_propagation_start_time_cached_byte_size_.store(cached_size,
666  std::memory_order_relaxed);
667  total_size += data_size;
668  }
669 
670  // repeated int64 initial_propagation_end_time = 3;
671  {
672  size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
673  Int64Size(this->initial_propagation_end_time_);
674  if (data_size > 0) {
675  total_size += 1 +
676  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
677  static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
678  }
679  int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
680  _initial_propagation_end_time_cached_byte_size_.store(cached_size,
681  std::memory_order_relaxed);
682  total_size += data_size;
683  }
684 
685  // repeated .operations_research.DemonRuns demons = 5;
686  total_size += 1UL * this->_internal_demons_size();
687  for (const auto& msg : this->demons_) {
688  total_size +=
689  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
690  }
691 
692  // string constraint_id = 1;
693  if (this->constraint_id().size() > 0) {
694  total_size += 1 +
695  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
696  this->_internal_constraint_id());
697  }
698 
699  // int64 failures = 4;
700  if (this->failures() != 0) {
701  total_size += 1 +
702  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
703  this->_internal_failures());
704  }
705 
706  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
707  return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
708  _internal_metadata_, total_size, &_cached_size_);
709  }
710  int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
711  SetCachedSize(cached_size);
712  return total_size;
713 }
714 
715 void ConstraintRuns::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
716 // @@protoc_insertion_point(generalized_merge_from_start:operations_research.ConstraintRuns)
717  GOOGLE_DCHECK_NE(&from, this);
718  const ConstraintRuns* source =
719  ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ConstraintRuns>(
720  &from);
721  if (source == nullptr) {
722  // @@protoc_insertion_point(generalized_merge_from_cast_fail:operations_research.ConstraintRuns)
723  ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
724  } else {
725  // @@protoc_insertion_point(generalized_merge_from_cast_success:operations_research.ConstraintRuns)
726  MergeFrom(*source);
727  }
728 }
729 
730 void ConstraintRuns::MergeFrom(const ConstraintRuns& from) {
731 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.ConstraintRuns)
732  GOOGLE_DCHECK_NE(&from, this);
733  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
734  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
735  (void) cached_has_bits;
736 
737  initial_propagation_start_time_.MergeFrom(from.initial_propagation_start_time_);
738  initial_propagation_end_time_.MergeFrom(from.initial_propagation_end_time_);
739  demons_.MergeFrom(from.demons_);
740  if (from.constraint_id().size() > 0) {
741  _internal_set_constraint_id(from._internal_constraint_id());
742  }
743  if (from.failures() != 0) {
744  _internal_set_failures(from._internal_failures());
745  }
746 }
747 
748 void ConstraintRuns::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
749 // @@protoc_insertion_point(generalized_copy_from_start:operations_research.ConstraintRuns)
750  if (&from == this) return;
751  Clear();
752  MergeFrom(from);
753 }
754 
755 void ConstraintRuns::CopyFrom(const ConstraintRuns& from) {
756 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.ConstraintRuns)
757  if (&from == this) return;
758  Clear();
759  MergeFrom(from);
760 }
761 
762 bool ConstraintRuns::IsInitialized() const {
763  return true;
764 }
765 
766 void ConstraintRuns::InternalSwap(ConstraintRuns* other) {
767  using std::swap;
768  _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
769  initial_propagation_start_time_.InternalSwap(&other->initial_propagation_start_time_);
770  initial_propagation_end_time_.InternalSwap(&other->initial_propagation_end_time_);
771  demons_.InternalSwap(&other->demons_);
772  constraint_id_.Swap(&other->constraint_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
773  swap(failures_, other->failures_);
774 }
775 
776 ::PROTOBUF_NAMESPACE_ID::Metadata ConstraintRuns::GetMetadata() const {
777  return GetMetadataStatic();
778 }
779 
780 
781 // @@protoc_insertion_point(namespace_scope)
782 } // namespace operations_research
783 PROTOBUF_NAMESPACE_OPEN
784 template<> PROTOBUF_NOINLINE ::operations_research::DemonRuns* Arena::CreateMaybeMessage< ::operations_research::DemonRuns >(Arena* arena) {
785  return Arena::CreateMessageInternal< ::operations_research::DemonRuns >(arena);
786 }
787 template<> PROTOBUF_NOINLINE ::operations_research::ConstraintRuns* Arena::CreateMaybeMessage< ::operations_research::ConstraintRuns >(Arena* arena) {
788  return Arena::CreateMessageInternal< ::operations_research::ConstraintRuns >(arena);
789 }
790 PROTOBUF_NAMESPACE_CLOSE
791 
792 // @@protoc_insertion_point(global_scope)
793 #include <google/protobuf/port_undef.inc>
demon_profiler.pb.h
scc_info_ConstraintRuns_ortools_2fconstraint_5fsolver_2fdemon_5fprofiler_2eproto
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo< 1 > scc_info_ConstraintRuns_ortools_2fconstraint_5fsolver_2fdemon_5fprofiler_2eproto
Definition: demon_profiler.pb.cc:39
CreateMaybeMessage< ::operations_research::DemonRuns >
PROTOBUF_NAMESPACE_OPEN PROTOBUF_NOINLINE ::operations_research::DemonRuns * Arena::CreateMaybeMessage< ::operations_research::DemonRuns >(Arena *arena)
Definition: demon_profiler.pb.cc:784
CreateMaybeMessage< ::operations_research::ConstraintRuns >
PROTOBUF_NOINLINE ::operations_research::ConstraintRuns * Arena::CreateMaybeMessage< ::operations_research::ConstraintRuns >(Arena *arena)
Definition: demon_profiler.pb.cc:787
descriptor_table_ortools_2fconstraint_5fsolver_2fdemon_5fprofiler_2eproto_deps
static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable *const descriptor_table_ortools_2fconstraint_5fsolver_2fdemon_5fprofiler_2eproto_deps[1]
Definition: demon_profiler.pb.cc:103
descriptor_table_ortools_2fconstraint_5fsolver_2fdemon_5fprofiler_2eproto
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ortools_2fconstraint_5fsolver_2fdemon_5fprofiler_2eproto
Definition: demon_profiler.pb.cc:110
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
file_level_service_descriptors_ortools_2fconstraint_5fsolver_2fdemon_5fprofiler_2eproto
static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const ** file_level_service_descriptors_ortools_2fconstraint_5fsolver_2fdemon_5fprofiler_2eproto
Definition: demon_profiler.pb.cc:59
schemas
static constexpr ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema * schemas
Definition: optional_boolean.pb.cc:23
operations_research::DemonRuns::_Internal
Definition: demon_profiler.pb.cc:125
int32
int int32
Definition: integral_types.h:33
InitDefaultsscc_info_DemonRuns_ortools_2fconstraint_5fsolver_2fdemon_5fprofiler_2eproto
static void InitDefaultsscc_info_DemonRuns_ortools_2fconstraint_5fsolver_2fdemon_5fprofiler_2eproto()
Definition: demon_profiler.pb.cc:43
operations_research::ConstraintRuns::_Internal
Definition: demon_profiler.pb.cc:439
uint32
unsigned int uint32
Definition: integral_types.h:38
descriptor_table_ortools_2fconstraint_5fsolver_2fdemon_5fprofiler_2eproto_once
::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_ortools_2fconstraint_5fsolver_2fdemon_5fprofiler_2eproto_once
Definition: demon_profiler.pb.cc:109
TableStruct_ortools_2fconstraint_5fsolver_2fdemon_5fprofiler_2eproto::offsets
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
Definition: demon_profiler.pb.h:54
operations_research::ConstraintRunsDefaultTypeInternal::_instance
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed< ConstraintRuns > _instance
Definition: demon_profiler.pb.cc:25
operations_research::ConstraintRuns
operations_research::_ConstraintRuns_default_instance_
class operations_research::ConstraintRunsDefaultTypeInternal _ConstraintRuns_default_instance_
Definition: demon_profiler.pb.h:59
operations_research::ConstraintRunsDefaultTypeInternal
Definition: demon_profiler.pb.cc:23
operations_research::DemonRunsDefaultTypeInternal::_instance
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed< DemonRuns > _instance
Definition: demon_profiler.pb.cc:21
file_default_instances
::PROTOBUF_NAMESPACE_ID::Message const *const file_default_instances[]
Definition: demon_profiler.pb.cc:87
operations_research::_DemonRuns_default_instance_
class operations_research::DemonRunsDefaultTypeInternal _DemonRuns_default_instance_
Definition: demon_profiler.pb.h:62
uint8
unsigned char uint8
Definition: integral_types.h:36
InitDefaultsscc_info_ConstraintRuns_ortools_2fconstraint_5fsolver_2fdemon_5fprofiler_2eproto
static void InitDefaultsscc_info_ConstraintRuns_ortools_2fconstraint_5fsolver_2fdemon_5fprofiler_2eproto()
Definition: demon_profiler.pb.cc:28
scc_info_DemonRuns_ortools_2fconstraint_5fsolver_2fdemon_5fprofiler_2eproto
PROTOBUF_INTERNAL_EXPORT_ortools_2fconstraint_5fsolver_2fdemon_5fprofiler_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo< 0 > scc_info_DemonRuns_ortools_2fconstraint_5fsolver_2fdemon_5fprofiler_2eproto
Definition: demon_profiler.pb.cc:54
operations_research::DemonRunsDefaultTypeInternal
Definition: demon_profiler.pb.cc:19
operations_research::DemonRuns
file_level_metadata_ortools_2fconstraint_5fsolver_2fdemon_5fprofiler_2eproto
::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_ortools_2fconstraint_5fsolver_2fdemon_5fprofiler_2eproto[2]
Definition: demon_profiler.pb.cc:57
CHK_
#define CHK_(x)
descriptor_table_ortools_2fconstraint_5fsolver_2fdemon_5fprofiler_2eproto_sccs
::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase *const descriptor_table_ortools_2fconstraint_5fsolver_2fdemon_5fprofiler_2eproto_sccs[2]
Definition: demon_profiler.pb.cc:105
dynamic_init_dummy_ortools_2fconstraint_5fsolver_2fdemon_5fprofiler_2eproto
static bool dynamic_init_dummy_ortools_2fconstraint_5fsolver_2fdemon_5fprofiler_2eproto
Definition: demon_profiler.pb.cc:118
file_level_enum_descriptors_ortools_2fconstraint_5fsolver_2fdemon_5fprofiler_2eproto
static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const ** file_level_enum_descriptors_ortools_2fconstraint_5fsolver_2fdemon_5fprofiler_2eproto
Definition: demon_profiler.pb.cc:58
PROTOBUF_SECTION_VARIABLE
const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_ortools_2fconstraint_5fsolver_2fdemon_5fprofiler_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)