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