Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
routes_support_graph.pb.cc
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// NO CHECKED-IN PROTOBUF GENCODE
3// source: ortools/sat/routes_support_graph.proto
4// Protobuf C++ Version: 6.31.1
5
7
8#include <algorithm>
9#include <type_traits>
10#include "google/protobuf/io/coded_stream.h"
11#include "google/protobuf/generated_message_tctable_impl.h"
12#include "google/protobuf/extension_set.h"
13#include "google/protobuf/generated_message_util.h"
14#include "google/protobuf/wire_format_lite.h"
15#include "google/protobuf/descriptor.h"
16#include "google/protobuf/generated_message_reflection.h"
17#include "google/protobuf/reflection_ops.h"
18#include "google/protobuf/wire_format.h"
19// @@protoc_insertion_point(includes)
20
21// Must be included last.
22#include "google/protobuf/port_def.inc"
23PROTOBUF_PRAGMA_INIT_SEG
24namespace _pb = ::google::protobuf;
26namespace _fl = ::google::protobuf::internal::field_layout;
27namespace operations_research {
28namespace sat {
29
30inline constexpr ArcLpValue::Impl_::Impl_(
31 ::_pbi::ConstantInitialized) noexcept
32 : _cached_size_{0},
33 tail_{0},
34 head_{0},
35 lp_value_{0} {}
36
37template <typename>
38PROTOBUF_CONSTEXPR ArcLpValue::ArcLpValue(::_pbi::ConstantInitialized)
39#if defined(PROTOBUF_CUSTOM_VTABLE)
40 : ::google::protobuf::Message(ArcLpValue_class_data_.base()),
41#else // PROTOBUF_CUSTOM_VTABLE
42 : ::google::protobuf::Message(),
43#endif // PROTOBUF_CUSTOM_VTABLE
44 _impl_(::_pbi::ConstantInitialized()) {
45}
47 PROTOBUF_CONSTEXPR ArcLpValueDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
49 union {
51 };
52};
53
54PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
56
57inline constexpr RoutesSupportGraphProto::Impl_::Impl_(
58 ::_pbi::ConstantInitialized) noexcept
59 : arc_lp_values_{},
60 _cached_size_{0} {}
61
62template <typename>
63PROTOBUF_CONSTEXPR RoutesSupportGraphProto::RoutesSupportGraphProto(::_pbi::ConstantInitialized)
64#if defined(PROTOBUF_CUSTOM_VTABLE)
65 : ::google::protobuf::Message(RoutesSupportGraphProto_class_data_.base()),
66#else // PROTOBUF_CUSTOM_VTABLE
67 : ::google::protobuf::Message(),
68#endif // PROTOBUF_CUSTOM_VTABLE
69 _impl_(::_pbi::ConstantInitialized()) {
70}
78
79PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
81} // namespace sat
82} // namespace operations_research
83static constexpr const ::_pb::EnumDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE
85static constexpr const ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE
87const ::uint32_t
89 protodesc_cold) = {
90 0x081, // bitmap
91 PROTOBUF_FIELD_OFFSET(::operations_research::sat::ArcLpValue, _impl_._has_bits_),
92 6, // hasbit index offset
93 PROTOBUF_FIELD_OFFSET(::operations_research::sat::ArcLpValue, _impl_.tail_),
94 PROTOBUF_FIELD_OFFSET(::operations_research::sat::ArcLpValue, _impl_.head_),
95 PROTOBUF_FIELD_OFFSET(::operations_research::sat::ArcLpValue, _impl_.lp_value_),
96 0,
97 1,
98 2,
99 0x000, // bitmap
100 PROTOBUF_FIELD_OFFSET(::operations_research::sat::RoutesSupportGraphProto, _impl_.arc_lp_values_),
101};
102
103static const ::_pbi::MigrationSchema
104 schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
107};
112const char descriptor_table_protodef_ortools_2fsat_2froutes_5fsupport_5fgraph_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
113 protodesc_cold) = {
114 "\n&ortools/sat/routes_support_graph.proto"
115 "\022\027operations_research.sat\":\n\nArcLpValue\022"
116 "\014\n\004tail\030\001 \001(\005\022\014\n\004head\030\002 \001(\005\022\020\n\010lp_value\030"
117 "\003 \001(\001\"U\n\027RoutesSupportGraphProto\022:\n\rarc_"
118 "lp_values\030\001 \003(\0132#.operations_research.sa"
119 "t.ArcLpValueBp\n\026com.google.ortools.satP\001"
120 "Z\?github.com/google/or-tools/ortools/sat"
121 "/proto/routessupportgraph\252\002\022Google.OrToo"
122 "ls.Sat"
123};
125PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_ortools_2fsat_2froutes_5fsupport_5fgraph_2eproto = {
126 false,
127 false,
128 326,
129 descriptor_table_protodef_ortools_2fsat_2froutes_5fsupport_5fgraph_2eproto,
130 "ortools/sat/routes_support_graph.proto",
132 nullptr,
133 0,
134 2,
135 schemas,
140};
141namespace operations_research {
142namespace sat {
143// ===================================================================
144
146 public:
147 using HasBits =
148 decltype(::std::declval<ArcLpValue>()._impl_._has_bits_);
149 static constexpr ::int32_t kHasBitsOffset =
150 8 * PROTOBUF_FIELD_OFFSET(ArcLpValue, _impl_._has_bits_);
151};
152
153ArcLpValue::ArcLpValue(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
154#if defined(PROTOBUF_CUSTOM_VTABLE)
155 : ::google::protobuf::Message(arena, ArcLpValue_class_data_.base()) {
156#else // PROTOBUF_CUSTOM_VTABLE
157 : ::google::protobuf::Message(arena) {
158#endif // PROTOBUF_CUSTOM_VTABLE
159 SharedCtor(arena);
160 // @@protoc_insertion_point(arena_constructor:operations_research.sat.ArcLpValue)
161}
163 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ArcLpValue& from)
164#if defined(PROTOBUF_CUSTOM_VTABLE)
165 : ::google::protobuf::Message(arena, ArcLpValue_class_data_.base()),
166#else // PROTOBUF_CUSTOM_VTABLE
167 : ::google::protobuf::Message(arena),
168#endif // PROTOBUF_CUSTOM_VTABLE
169 _impl_(from._impl_) {
170 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
171 from._internal_metadata_);
172}
173PROTOBUF_NDEBUG_INLINE ArcLpValue::Impl_::Impl_(
174 ::google::protobuf::internal::InternalVisibility visibility,
175 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
176 : _cached_size_{0} {}
177
178inline void ArcLpValue::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
179 new (&_impl_) Impl_(internal_visibility(), arena);
180 ::memset(reinterpret_cast<char *>(&_impl_) +
181 offsetof(Impl_, tail_),
182 0,
183 offsetof(Impl_, lp_value_) -
184 offsetof(Impl_, tail_) +
185 sizeof(Impl_::lp_value_));
186}
188 // @@protoc_insertion_point(destructor:operations_research.sat.ArcLpValue)
189 SharedDtor(*this);
190}
191inline void ArcLpValue::SharedDtor(MessageLite& self) {
192 ArcLpValue& this_ = static_cast<ArcLpValue&>(self);
193 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
194 ABSL_DCHECK(this_.GetArena() == nullptr);
195 this_._impl_.~Impl_();
196}
197
198inline void* PROTOBUF_NONNULL ArcLpValue::PlacementNew_(
199 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
200 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
201 return ::new (mem) ArcLpValue(arena);
202}
203constexpr auto ArcLpValue::InternalNewImpl_() {
204 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ArcLpValue),
205 alignof(ArcLpValue));
206}
208 return ::google::protobuf::internal::ClassDataFull{
209 ::google::protobuf::internal::ClassData{
211 &_table_.header,
212 nullptr, // OnDemandRegisterArenaDtor
213 nullptr, // IsInitialized
214 &ArcLpValue::MergeImpl,
215 ::google::protobuf::Message::GetNewImpl<ArcLpValue>(),
216#if defined(PROTOBUF_CUSTOM_VTABLE)
217 &ArcLpValue::SharedDtor,
218 ::google::protobuf::Message::GetClearImpl<ArcLpValue>(), &ArcLpValue::ByteSizeLong,
220#endif // PROTOBUF_CUSTOM_VTABLE
221 PROTOBUF_FIELD_OFFSET(ArcLpValue, _impl_._cached_size_),
222 false,
223 },
224 &ArcLpValue::kDescriptorMethods,
226 nullptr, // tracker
227 };
228}
229
230PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
231 ::google::protobuf::internal::ClassDataFull ArcLpValue_class_data_ =
233
234PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
236 ::google::protobuf::internal::PrefetchToLocalCache(&ArcLpValue_class_data_);
237 ::google::protobuf::internal::PrefetchToLocalCache(ArcLpValue_class_data_.tc_table);
238 return ArcLpValue_class_data_.base();
239}
240PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
241const ::_pbi::TcParseTable<2, 3, 0, 0, 2>
242ArcLpValue::_table_ = {
243 {
244 PROTOBUF_FIELD_OFFSET(ArcLpValue, _impl_._has_bits_),
245 0, // no _extensions_
246 3, 24, // max_field_number, fast_idx_mask
247 offsetof(decltype(_table_), field_lookup_table),
248 4294967288, // skipmap
249 offsetof(decltype(_table_), field_entries),
250 3, // num_field_entries
251 0, // num_aux_entries
252 offsetof(decltype(_table_), field_names), // no aux_entries
254 nullptr, // post_loop_handler
255 ::_pbi::TcParser::GenericFallback, // fallback
256 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
257 ::_pbi::TcParser::GetTable<::operations_research::sat::ArcLpValue>(), // to_prefetch
258 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
259 }, {{
260 {::_pbi::TcParser::MiniParse, {}},
261 // optional int32 tail = 1;
262 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ArcLpValue, _impl_.tail_), 0>(),
263 {8, 0, 0, PROTOBUF_FIELD_OFFSET(ArcLpValue, _impl_.tail_)}},
264 // optional int32 head = 2;
265 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ArcLpValue, _impl_.head_), 1>(),
266 {16, 1, 0, PROTOBUF_FIELD_OFFSET(ArcLpValue, _impl_.head_)}},
267 // optional double lp_value = 3;
268 {::_pbi::TcParser::FastF64S1,
269 {25, 2, 0, PROTOBUF_FIELD_OFFSET(ArcLpValue, _impl_.lp_value_)}},
270 }}, {{
271 65535, 65535
272 }}, {{
273 // optional int32 tail = 1;
274 {PROTOBUF_FIELD_OFFSET(ArcLpValue, _impl_.tail_), _Internal::kHasBitsOffset + 0, 0,
275 (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
276 // optional int32 head = 2;
277 {PROTOBUF_FIELD_OFFSET(ArcLpValue, _impl_.head_), _Internal::kHasBitsOffset + 1, 0,
278 (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
279 // optional double lp_value = 3;
280 {PROTOBUF_FIELD_OFFSET(ArcLpValue, _impl_.lp_value_), _Internal::kHasBitsOffset + 2, 0,
281 (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
282 }},
283 // no aux_entries
284 {{
285 }},
286};
287PROTOBUF_NOINLINE void ArcLpValue::Clear() {
288// @@protoc_insertion_point(message_clear_start:operations_research.sat.ArcLpValue)
289 ::google::protobuf::internal::TSanWrite(&_impl_);
290 ::uint32_t cached_has_bits = 0;
291 // Prevent compiler warnings about cached_has_bits being unused
292 (void) cached_has_bits;
293
294 cached_has_bits = _impl_._has_bits_[0];
295 if ((cached_has_bits & 0x00000007u) != 0) {
296 ::memset(&_impl_.tail_, 0, static_cast<::size_t>(
297 reinterpret_cast<char*>(&_impl_.lp_value_) -
298 reinterpret_cast<char*>(&_impl_.tail_)) + sizeof(_impl_.lp_value_));
299 }
300 _impl_._has_bits_.Clear();
301 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
302}
303
304#if defined(PROTOBUF_CUSTOM_VTABLE)
305::uint8_t* PROTOBUF_NONNULL ArcLpValue::_InternalSerialize(
306 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
307 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
308 const ArcLpValue& this_ = static_cast<const ArcLpValue&>(base);
309#else // PROTOBUF_CUSTOM_VTABLE
310::uint8_t* PROTOBUF_NONNULL ArcLpValue::_InternalSerialize(
311 ::uint8_t* PROTOBUF_NONNULL target,
312 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
313 const ArcLpValue& this_ = *this;
314#endif // PROTOBUF_CUSTOM_VTABLE
315 // @@protoc_insertion_point(serialize_to_array_start:operations_research.sat.ArcLpValue)
316 ::uint32_t cached_has_bits = 0;
317 (void)cached_has_bits;
318
319 cached_has_bits = this_._impl_._has_bits_[0];
320 // optional int32 tail = 1;
321 if ((cached_has_bits & 0x00000001u) != 0) {
322 target =
323 ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>(
324 stream, this_._internal_tail(), target);
325 }
326
327 // optional int32 head = 2;
328 if ((cached_has_bits & 0x00000002u) != 0) {
329 target =
330 ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>(
331 stream, this_._internal_head(), target);
332 }
333
334 // optional double lp_value = 3;
335 if ((cached_has_bits & 0x00000004u) != 0) {
336 target = stream->EnsureSpace(target);
337 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
338 3, this_._internal_lp_value(), target);
339 }
340
341 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
342 target =
343 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
344 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
345 }
346 // @@protoc_insertion_point(serialize_to_array_end:operations_research.sat.ArcLpValue)
347 return target;
348}
349
350#if defined(PROTOBUF_CUSTOM_VTABLE)
352 const ArcLpValue& this_ = static_cast<const ArcLpValue&>(base);
353#else // PROTOBUF_CUSTOM_VTABLE
354::size_t ArcLpValue::ByteSizeLong() const {
355 const ArcLpValue& this_ = *this;
356#endif // PROTOBUF_CUSTOM_VTABLE
357 // @@protoc_insertion_point(message_byte_size_start:operations_research.sat.ArcLpValue)
358 ::size_t total_size = 0;
359
360 ::uint32_t cached_has_bits = 0;
361 // Prevent compiler warnings about cached_has_bits being unused
362 (void)cached_has_bits;
363
364 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
365 cached_has_bits = this_._impl_._has_bits_[0];
366 total_size += static_cast<bool>(0x00000004u & cached_has_bits) * 9;
367 if ((cached_has_bits & 0x00000003u) != 0) {
368 // optional int32 tail = 1;
369 if ((cached_has_bits & 0x00000001u) != 0) {
370 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
371 this_._internal_tail());
372 }
373 // optional int32 head = 2;
374 if ((cached_has_bits & 0x00000002u) != 0) {
375 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
376 this_._internal_head());
377 }
378 }
379 return this_.MaybeComputeUnknownFieldsSize(total_size,
380 &this_._impl_._cached_size_);
381}
382
383void ArcLpValue::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
384 auto* const _this = static_cast<ArcLpValue*>(&to_msg);
385 auto& from = static_cast<const ArcLpValue&>(from_msg);
386 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.sat.ArcLpValue)
387 ABSL_DCHECK_NE(&from, _this);
388 ::uint32_t cached_has_bits = 0;
389 (void) cached_has_bits;
390
391 cached_has_bits = from._impl_._has_bits_[0];
392 if ((cached_has_bits & 0x00000007u) != 0) {
393 if ((cached_has_bits & 0x00000001u) != 0) {
394 _this->_impl_.tail_ = from._impl_.tail_;
395 }
396 if ((cached_has_bits & 0x00000002u) != 0) {
397 _this->_impl_.head_ = from._impl_.head_;
398 }
399 if ((cached_has_bits & 0x00000004u) != 0) {
400 _this->_impl_.lp_value_ = from._impl_.lp_value_;
401 }
402 }
403 _this->_impl_._has_bits_[0] |= cached_has_bits;
404 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
405}
406
407void ArcLpValue::CopyFrom(const ArcLpValue& from) {
408// @@protoc_insertion_point(class_specific_copy_from_start:operations_research.sat.ArcLpValue)
409 if (&from == this) return;
410 Clear();
411 MergeFrom(from);
412}
413
414
415void ArcLpValue::InternalSwap(ArcLpValue* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
416 using ::std::swap;
417 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
418 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
419 ::google::protobuf::internal::memswap<
420 PROTOBUF_FIELD_OFFSET(ArcLpValue, _impl_.lp_value_)
421 + sizeof(ArcLpValue::_impl_.lp_value_)
422 - PROTOBUF_FIELD_OFFSET(ArcLpValue, _impl_.tail_)>(
423 reinterpret_cast<char*>(&_impl_.tail_),
424 reinterpret_cast<char*>(&other->_impl_.tail_));
425}
426
427::google::protobuf::Metadata ArcLpValue::GetMetadata() const {
428 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
429}
430// ===================================================================
431
433 public:
435
436RoutesSupportGraphProto::RoutesSupportGraphProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
437#if defined(PROTOBUF_CUSTOM_VTABLE)
438 : ::google::protobuf::Message(arena, RoutesSupportGraphProto_class_data_.base()) {
439#else // PROTOBUF_CUSTOM_VTABLE
440 : ::google::protobuf::Message(arena) {
441#endif // PROTOBUF_CUSTOM_VTABLE
442 SharedCtor(arena);
443 // @@protoc_insertion_point(arena_constructor:operations_research.sat.RoutesSupportGraphProto)
444}
445PROTOBUF_NDEBUG_INLINE RoutesSupportGraphProto::Impl_::Impl_(
446 ::google::protobuf::internal::InternalVisibility visibility,
447 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
448 const ::operations_research::sat::RoutesSupportGraphProto& from_msg)
449 : arc_lp_values_{visibility, arena, from.arc_lp_values_},
450 _cached_size_{0} {}
451
453 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
455#if defined(PROTOBUF_CUSTOM_VTABLE)
456 : ::google::protobuf::Message(arena, RoutesSupportGraphProto_class_data_.base()) {
457#else // PROTOBUF_CUSTOM_VTABLE
458 : ::google::protobuf::Message(arena) {
459#endif // PROTOBUF_CUSTOM_VTABLE
460 RoutesSupportGraphProto* const _this = this;
461 (void)_this;
462 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
463 from._internal_metadata_);
464 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
465
466 // @@protoc_insertion_point(copy_constructor:operations_research.sat.RoutesSupportGraphProto)
467}
468PROTOBUF_NDEBUG_INLINE RoutesSupportGraphProto::Impl_::Impl_(
469 ::google::protobuf::internal::InternalVisibility visibility,
470 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
471 : arc_lp_values_{visibility, arena},
472 _cached_size_{0} {}
473
474inline void RoutesSupportGraphProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
475 new (&_impl_) Impl_(internal_visibility(), arena);
476}
478 // @@protoc_insertion_point(destructor:operations_research.sat.RoutesSupportGraphProto)
479 SharedDtor(*this);
480}
481inline void RoutesSupportGraphProto::SharedDtor(MessageLite& self) {
482 RoutesSupportGraphProto& this_ = static_cast<RoutesSupportGraphProto&>(self);
483 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
484 ABSL_DCHECK(this_.GetArena() == nullptr);
485 this_._impl_.~Impl_();
486}
487
488inline void* PROTOBUF_NONNULL RoutesSupportGraphProto::PlacementNew_(
489 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
490 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
491 return ::new (mem) RoutesSupportGraphProto(arena);
492}
494 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
495 PROTOBUF_FIELD_OFFSET(RoutesSupportGraphProto, _impl_.arc_lp_values_) +
496 decltype(RoutesSupportGraphProto::_impl_.arc_lp_values_)::
497 InternalGetArenaOffset(
498 ::google::protobuf::Message::internal_visibility()),
499 });
500 if (arena_bits.has_value()) {
501 return ::google::protobuf::internal::MessageCreator::ZeroInit(
502 sizeof(RoutesSupportGraphProto), alignof(RoutesSupportGraphProto), *arena_bits);
503 } else {
504 return ::google::protobuf::internal::MessageCreator(&RoutesSupportGraphProto::PlacementNew_,
505 sizeof(RoutesSupportGraphProto),
506 alignof(RoutesSupportGraphProto));
507 }
508}
510 return ::google::protobuf::internal::ClassDataFull{
511 ::google::protobuf::internal::ClassData{
513 &_table_.header,
514 nullptr, // OnDemandRegisterArenaDtor
515 nullptr, // IsInitialized
516 &RoutesSupportGraphProto::MergeImpl,
517 ::google::protobuf::Message::GetNewImpl<RoutesSupportGraphProto>(),
518#if defined(PROTOBUF_CUSTOM_VTABLE)
519 &RoutesSupportGraphProto::SharedDtor,
520 ::google::protobuf::Message::GetClearImpl<RoutesSupportGraphProto>(), &RoutesSupportGraphProto::ByteSizeLong,
522#endif // PROTOBUF_CUSTOM_VTABLE
523 PROTOBUF_FIELD_OFFSET(RoutesSupportGraphProto, _impl_._cached_size_),
524 false,
525 },
526 &RoutesSupportGraphProto::kDescriptorMethods,
528 nullptr, // tracker
529 };
530}
531
532PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
533 ::google::protobuf::internal::ClassDataFull RoutesSupportGraphProto_class_data_ =
536PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
538 ::google::protobuf::internal::PrefetchToLocalCache(&RoutesSupportGraphProto_class_data_);
539 ::google::protobuf::internal::PrefetchToLocalCache(RoutesSupportGraphProto_class_data_.tc_table);
541}
542PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
543const ::_pbi::TcParseTable<0, 1, 1, 0, 2>
544RoutesSupportGraphProto::_table_ = {
545 {
546 0, // no _has_bits_
547 0, // no _extensions_
548 1, 0, // max_field_number, fast_idx_mask
549 offsetof(decltype(_table_), field_lookup_table),
550 4294967294, // skipmap
551 offsetof(decltype(_table_), field_entries),
552 1, // num_field_entries
553 1, // num_aux_entries
554 offsetof(decltype(_table_), aux_entries),
556 nullptr, // post_loop_handler
557 ::_pbi::TcParser::GenericFallback, // fallback
558 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
559 ::_pbi::TcParser::GetTable<::operations_research::sat::RoutesSupportGraphProto>(), // to_prefetch
560 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
561 }, {{
562 // repeated .operations_research.sat.ArcLpValue arc_lp_values = 1;
563 {::_pbi::TcParser::FastMtR1,
564 {10, 63, 0, PROTOBUF_FIELD_OFFSET(RoutesSupportGraphProto, _impl_.arc_lp_values_)}},
565 }}, {{
566 65535, 65535
567 }}, {{
568 // repeated .operations_research.sat.ArcLpValue arc_lp_values = 1;
569 {PROTOBUF_FIELD_OFFSET(RoutesSupportGraphProto, _impl_.arc_lp_values_), 0, 0,
570 (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
571 }},
572 {{
573 {::_pbi::TcParser::GetTable<::operations_research::sat::ArcLpValue>()},
574 }},
575 {{
576 }},
577};
578PROTOBUF_NOINLINE void RoutesSupportGraphProto::Clear() {
579// @@protoc_insertion_point(message_clear_start:operations_research.sat.RoutesSupportGraphProto)
580 ::google::protobuf::internal::TSanWrite(&_impl_);
581 ::uint32_t cached_has_bits = 0;
582 // Prevent compiler warnings about cached_has_bits being unused
583 (void) cached_has_bits;
584
585 _impl_.arc_lp_values_.Clear();
586 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
587}
588
589#if defined(PROTOBUF_CUSTOM_VTABLE)
590::uint8_t* PROTOBUF_NONNULL RoutesSupportGraphProto::_InternalSerialize(
591 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
592 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
593 const RoutesSupportGraphProto& this_ = static_cast<const RoutesSupportGraphProto&>(base);
594#else // PROTOBUF_CUSTOM_VTABLE
595::uint8_t* PROTOBUF_NONNULL RoutesSupportGraphProto::_InternalSerialize(
596 ::uint8_t* PROTOBUF_NONNULL target,
597 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
598 const RoutesSupportGraphProto& this_ = *this;
599#endif // PROTOBUF_CUSTOM_VTABLE
600 // @@protoc_insertion_point(serialize_to_array_start:operations_research.sat.RoutesSupportGraphProto)
601 ::uint32_t cached_has_bits = 0;
602 (void)cached_has_bits;
603
604 // repeated .operations_research.sat.ArcLpValue arc_lp_values = 1;
605 for (unsigned i = 0, n = static_cast<unsigned>(
606 this_._internal_arc_lp_values_size());
607 i < n; i++) {
608 const auto& repfield = this_._internal_arc_lp_values().Get(i);
609 target =
610 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
611 1, repfield, repfield.GetCachedSize(),
612 target, stream);
613 }
614
615 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
616 target =
617 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
618 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
619 }
620 // @@protoc_insertion_point(serialize_to_array_end:operations_research.sat.RoutesSupportGraphProto)
621 return target;
622}
623
624#if defined(PROTOBUF_CUSTOM_VTABLE)
626 const RoutesSupportGraphProto& this_ = static_cast<const RoutesSupportGraphProto&>(base);
627#else // PROTOBUF_CUSTOM_VTABLE
629 const RoutesSupportGraphProto& this_ = *this;
630#endif // PROTOBUF_CUSTOM_VTABLE
631 // @@protoc_insertion_point(message_byte_size_start:operations_research.sat.RoutesSupportGraphProto)
632 ::size_t total_size = 0;
633
634 ::uint32_t cached_has_bits = 0;
635 // Prevent compiler warnings about cached_has_bits being unused
636 (void)cached_has_bits;
637
638 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
639 {
640 // repeated .operations_research.sat.ArcLpValue arc_lp_values = 1;
641 {
642 total_size += 1UL * this_._internal_arc_lp_values_size();
643 for (const auto& msg : this_._internal_arc_lp_values()) {
644 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
645 }
646 }
647 }
648 return this_.MaybeComputeUnknownFieldsSize(total_size,
649 &this_._impl_._cached_size_);
650}
651
652void RoutesSupportGraphProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
653 auto* const _this = static_cast<RoutesSupportGraphProto*>(&to_msg);
654 auto& from = static_cast<const RoutesSupportGraphProto&>(from_msg);
655 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.sat.RoutesSupportGraphProto)
656 ABSL_DCHECK_NE(&from, _this);
657 ::uint32_t cached_has_bits = 0;
658 (void) cached_has_bits;
659
660 _this->_internal_mutable_arc_lp_values()->MergeFrom(
661 from._internal_arc_lp_values());
662 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
663}
664
665void RoutesSupportGraphProto::CopyFrom(const RoutesSupportGraphProto& from) {
666// @@protoc_insertion_point(class_specific_copy_from_start:operations_research.sat.RoutesSupportGraphProto)
667 if (&from == this) return;
668 Clear();
669 MergeFrom(from);
670}
671
672
673void RoutesSupportGraphProto::InternalSwap(RoutesSupportGraphProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
674 using ::std::swap;
675 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
676 _impl_.arc_lp_values_.InternalSwap(&other->_impl_.arc_lp_values_);
677}
678
679::google::protobuf::Metadata RoutesSupportGraphProto::GetMetadata() const {
680 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
682// @@protoc_insertion_point(namespace_scope)
683} // namespace sat
684} // namespace operations_research
685namespace google {
686namespace protobuf {
687} // namespace protobuf
688} // namespace google
689// @@protoc_insertion_point(global_scope)
690PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
691 _static_init2_ [[maybe_unused]] =
693 ::std::false_type{});
694#include "google/protobuf/port_undef.inc"
static PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::std::false_type _static_init2_
@protoc_insertion_point(global_scope)
static const ::_pb::Message *PROTOBUF_NONNULL const file_default_instances[]
decltype(::std::declval< ArcLpValue >()._impl_._has_bits_) HasBits
::google::protobuf::Metadata GetMetadata() const
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
friend class ::google::protobuf::MessageLite
friend void swap(ArcLpValue &a, ArcLpValue &b)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void CopyFrom(const RoutesSupportGraphProto &from)
void MergeFrom(const RoutesSupportGraphProto &from)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull ArcLpValue_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ArcLpValueDefaultTypeInternal _ArcLpValue_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull RoutesSupportGraphProto_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RoutesSupportGraphProtoDefaultTypeInternal _RoutesSupportGraphProto_default_instance_
In SWIG mode, we don't want anything besides these top-level includes.
static constexpr ::_pbi::MigrationSchema *PROTOBUF_NULLABLE schemas
const ::uint32_t TableStruct_ortools_2fsat_2froutes_5fsupport_5fgraph_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold)
static constexprconst ::_pb::EnumDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_enum_descriptors_ortools_2fsat_2froutes_5fsupport_5fgraph_2eproto
::absl::once_flag descriptor_table_ortools_2fsat_2froutes_5fsupport_5fgraph_2eproto_once
static constexprconst ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_service_descriptors_ortools_2fsat_2froutes_5fsupport_5fgraph_2eproto
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fsat_2froutes_5fsupport_5fgraph_2eproto