Google OR-Tools v9.15
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.33.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 : _cached_size_{0},
60 arc_lp_values_{} {}
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 0x081, // bitmap
100 PROTOBUF_FIELD_OFFSET(::operations_research::sat::RoutesSupportGraphProto, _impl_._has_bits_),
101 4, // hasbit index offset
102 PROTOBUF_FIELD_OFFSET(::operations_research::sat::RoutesSupportGraphProto, _impl_.arc_lp_values_),
103 0,
104};
105
106static const ::_pbi::MigrationSchema
107 schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
110};
115const char descriptor_table_protodef_ortools_2fsat_2froutes_5fsupport_5fgraph_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
116 protodesc_cold) = {
117 "\n&ortools/sat/routes_support_graph.proto"
118 "\022\027operations_research.sat\":\n\nArcLpValue\022"
119 "\014\n\004tail\030\001 \001(\005\022\014\n\004head\030\002 \001(\005\022\020\n\010lp_value\030"
120 "\003 \001(\001\"U\n\027RoutesSupportGraphProto\022:\n\rarc_"
121 "lp_values\030\001 \003(\0132#.operations_research.sa"
122 "t.ArcLpValueBp\n\026com.google.ortools.satP\001"
123 "Z\?github.com/google/or-tools/ortools/sat"
124 "/proto/routessupportgraph\252\002\022Google.OrToo"
125 "ls.Sat"
126};
128PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_ortools_2fsat_2froutes_5fsupport_5fgraph_2eproto = {
129 false,
130 false,
131 326,
132 descriptor_table_protodef_ortools_2fsat_2froutes_5fsupport_5fgraph_2eproto,
133 "ortools/sat/routes_support_graph.proto",
135 nullptr,
136 0,
137 2,
138 schemas,
143};
144namespace operations_research {
145namespace sat {
146// ===================================================================
147
149 public:
150 using HasBits =
151 decltype(::std::declval<ArcLpValue>()._impl_._has_bits_);
152 static constexpr ::int32_t kHasBitsOffset =
153 8 * PROTOBUF_FIELD_OFFSET(ArcLpValue, _impl_._has_bits_);
154};
155
156ArcLpValue::ArcLpValue(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
157#if defined(PROTOBUF_CUSTOM_VTABLE)
158 : ::google::protobuf::Message(arena, ArcLpValue_class_data_.base()) {
159#else // PROTOBUF_CUSTOM_VTABLE
160 : ::google::protobuf::Message(arena) {
161#endif // PROTOBUF_CUSTOM_VTABLE
162 SharedCtor(arena);
163 // @@protoc_insertion_point(arena_constructor:operations_research.sat.ArcLpValue)
164}
166 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ArcLpValue& from)
167#if defined(PROTOBUF_CUSTOM_VTABLE)
168 : ::google::protobuf::Message(arena, ArcLpValue_class_data_.base()),
169#else // PROTOBUF_CUSTOM_VTABLE
170 : ::google::protobuf::Message(arena),
171#endif // PROTOBUF_CUSTOM_VTABLE
172 _impl_(from._impl_) {
173 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
174 from._internal_metadata_);
175}
176PROTOBUF_NDEBUG_INLINE ArcLpValue::Impl_::Impl_(
177 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
178 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
179 : _cached_size_{0} {}
180
181inline void ArcLpValue::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
182 new (&_impl_) Impl_(internal_visibility(), arena);
183 ::memset(reinterpret_cast<char*>(&_impl_) +
184 offsetof(Impl_, tail_),
185 0,
186 offsetof(Impl_, lp_value_) -
187 offsetof(Impl_, tail_) +
188 sizeof(Impl_::lp_value_));
189}
191 // @@protoc_insertion_point(destructor:operations_research.sat.ArcLpValue)
192 SharedDtor(*this);
193}
194inline void ArcLpValue::SharedDtor(MessageLite& self) {
195 ArcLpValue& this_ = static_cast<ArcLpValue&>(self);
196 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
197 this_.CheckHasBitConsistency();
198 }
199 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
200 ABSL_DCHECK(this_.GetArena() == nullptr);
201 this_._impl_.~Impl_();
202}
203
204inline void* PROTOBUF_NONNULL ArcLpValue::PlacementNew_(
205 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
206 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
207 return ::new (mem) ArcLpValue(arena);
208}
209constexpr auto ArcLpValue::InternalNewImpl_() {
210 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ArcLpValue),
211 alignof(ArcLpValue));
212}
214 return ::google::protobuf::internal::ClassDataFull{
215 ::google::protobuf::internal::ClassData{
217 &_table_.header,
218 nullptr, // OnDemandRegisterArenaDtor
219 nullptr, // IsInitialized
220 &ArcLpValue::MergeImpl,
221 ::google::protobuf::Message::GetNewImpl<ArcLpValue>(),
222#if defined(PROTOBUF_CUSTOM_VTABLE)
223 &ArcLpValue::SharedDtor,
224 ::google::protobuf::Message::GetClearImpl<ArcLpValue>(), &ArcLpValue::ByteSizeLong,
226#endif // PROTOBUF_CUSTOM_VTABLE
227 PROTOBUF_FIELD_OFFSET(ArcLpValue, _impl_._cached_size_),
228 false,
229 },
230 &ArcLpValue::kDescriptorMethods,
232 nullptr, // tracker
233 };
234}
235
236PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
237 ::google::protobuf::internal::ClassDataFull ArcLpValue_class_data_ =
239
240PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
241ArcLpValue::GetClassData() const {
242 ::google::protobuf::internal::PrefetchToLocalCache(&ArcLpValue_class_data_);
243 ::google::protobuf::internal::PrefetchToLocalCache(ArcLpValue_class_data_.tc_table);
244 return ArcLpValue_class_data_.base();
245}
246PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
247const ::_pbi::TcParseTable<2, 3, 0, 0, 2>
248ArcLpValue::_table_ = {
249 {
250 PROTOBUF_FIELD_OFFSET(ArcLpValue, _impl_._has_bits_),
251 0, // no _extensions_
252 3, 24, // max_field_number, fast_idx_mask
253 offsetof(decltype(_table_), field_lookup_table),
254 4294967288, // skipmap
255 offsetof(decltype(_table_), field_entries),
256 3, // num_field_entries
257 0, // num_aux_entries
258 offsetof(decltype(_table_), field_names), // no aux_entries
260 nullptr, // post_loop_handler
261 ::_pbi::TcParser::GenericFallback, // fallback
262 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
263 ::_pbi::TcParser::GetTable<::operations_research::sat::ArcLpValue>(), // to_prefetch
264 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
265 }, {{
266 {::_pbi::TcParser::MiniParse, {}},
267 // optional int32 tail = 1;
268 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ArcLpValue, _impl_.tail_), 0>(),
269 {8, 0, 0,
270 PROTOBUF_FIELD_OFFSET(ArcLpValue, _impl_.tail_)}},
271 // optional int32 head = 2;
272 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ArcLpValue, _impl_.head_), 1>(),
273 {16, 1, 0,
274 PROTOBUF_FIELD_OFFSET(ArcLpValue, _impl_.head_)}},
275 // optional double lp_value = 3;
276 {::_pbi::TcParser::FastF64S1,
277 {25, 2, 0,
278 PROTOBUF_FIELD_OFFSET(ArcLpValue, _impl_.lp_value_)}},
279 }}, {{
280 65535, 65535
281 }}, {{
282 // optional int32 tail = 1;
283 {PROTOBUF_FIELD_OFFSET(ArcLpValue, _impl_.tail_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
284 // optional int32 head = 2;
285 {PROTOBUF_FIELD_OFFSET(ArcLpValue, _impl_.head_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
286 // optional double lp_value = 3;
287 {PROTOBUF_FIELD_OFFSET(ArcLpValue, _impl_.lp_value_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
288 }},
289 // no aux_entries
290 {{
291 }},
292};
293PROTOBUF_NOINLINE void ArcLpValue::Clear() {
294// @@protoc_insertion_point(message_clear_start:operations_research.sat.ArcLpValue)
295 ::google::protobuf::internal::TSanWrite(&_impl_);
296 ::uint32_t cached_has_bits = 0;
297 // Prevent compiler warnings about cached_has_bits being unused
298 (void) cached_has_bits;
299
300 cached_has_bits = _impl_._has_bits_[0];
301 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
302 ::memset(&_impl_.tail_, 0, static_cast<::size_t>(
303 reinterpret_cast<char*>(&_impl_.lp_value_) -
304 reinterpret_cast<char*>(&_impl_.tail_)) + sizeof(_impl_.lp_value_));
305 }
306 _impl_._has_bits_.Clear();
307 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
308}
309
310#if defined(PROTOBUF_CUSTOM_VTABLE)
311::uint8_t* PROTOBUF_NONNULL ArcLpValue::_InternalSerialize(
312 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
313 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
314 const ArcLpValue& this_ = static_cast<const ArcLpValue&>(base);
315#else // PROTOBUF_CUSTOM_VTABLE
316::uint8_t* PROTOBUF_NONNULL ArcLpValue::_InternalSerialize(
317 ::uint8_t* PROTOBUF_NONNULL target,
318 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
319 const ArcLpValue& this_ = *this;
320#endif // PROTOBUF_CUSTOM_VTABLE
321 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
322 this_.CheckHasBitConsistency();
323 }
324 // @@protoc_insertion_point(serialize_to_array_start:operations_research.sat.ArcLpValue)
325 ::uint32_t cached_has_bits = 0;
326 (void)cached_has_bits;
327
328 cached_has_bits = this_._impl_._has_bits_[0];
329 // optional int32 tail = 1;
330 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
331 target =
332 ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>(
333 stream, this_._internal_tail(), target);
334 }
335
336 // optional int32 head = 2;
337 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
338 target =
339 ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>(
340 stream, this_._internal_head(), target);
341 }
342
343 // optional double lp_value = 3;
344 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
345 target = stream->EnsureSpace(target);
346 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
347 3, this_._internal_lp_value(), target);
348 }
349
350 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
351 target =
352 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
353 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
354 }
355 // @@protoc_insertion_point(serialize_to_array_end:operations_research.sat.ArcLpValue)
356 return target;
357}
358
359#if defined(PROTOBUF_CUSTOM_VTABLE)
361 const ArcLpValue& this_ = static_cast<const ArcLpValue&>(base);
362#else // PROTOBUF_CUSTOM_VTABLE
363::size_t ArcLpValue::ByteSizeLong() const {
364 const ArcLpValue& this_ = *this;
365#endif // PROTOBUF_CUSTOM_VTABLE
366 // @@protoc_insertion_point(message_byte_size_start:operations_research.sat.ArcLpValue)
367 ::size_t total_size = 0;
368
369 ::uint32_t cached_has_bits = 0;
370 // Prevent compiler warnings about cached_has_bits being unused
371 (void)cached_has_bits;
372
373 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
374 cached_has_bits = this_._impl_._has_bits_[0];
375 total_size += static_cast<bool>(0x00000004U & cached_has_bits) * 9;
376 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
377 // optional int32 tail = 1;
378 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
379 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
380 this_._internal_tail());
381 }
382 // optional int32 head = 2;
383 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
384 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
385 this_._internal_head());
386 }
387 }
388 return this_.MaybeComputeUnknownFieldsSize(total_size,
389 &this_._impl_._cached_size_);
390}
391
392void ArcLpValue::MergeImpl(::google::protobuf::MessageLite& to_msg,
393 const ::google::protobuf::MessageLite& from_msg) {
394 auto* const _this =
395 static_cast<ArcLpValue*>(&to_msg);
396 auto& from = static_cast<const ArcLpValue&>(from_msg);
397 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
398 from.CheckHasBitConsistency();
399 }
400 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.sat.ArcLpValue)
401 ABSL_DCHECK_NE(&from, _this);
402 ::uint32_t cached_has_bits = 0;
403 (void)cached_has_bits;
404
405 cached_has_bits = from._impl_._has_bits_[0];
406 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
407 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
408 _this->_impl_.tail_ = from._impl_.tail_;
409 }
410 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
411 _this->_impl_.head_ = from._impl_.head_;
412 }
413 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
414 _this->_impl_.lp_value_ = from._impl_.lp_value_;
415 }
416 }
417 _this->_impl_._has_bits_[0] |= cached_has_bits;
418 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
419 from._internal_metadata_);
420}
421
422void ArcLpValue::CopyFrom(const ArcLpValue& from) {
423 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.sat.ArcLpValue)
424 if (&from == this) return;
425 Clear();
426 MergeFrom(from);
427}
428
429
430void ArcLpValue::InternalSwap(ArcLpValue* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
431 using ::std::swap;
432 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
433 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
434 ::google::protobuf::internal::memswap<
435 PROTOBUF_FIELD_OFFSET(ArcLpValue, _impl_.lp_value_)
436 + sizeof(ArcLpValue::_impl_.lp_value_)
437 - PROTOBUF_FIELD_OFFSET(ArcLpValue, _impl_.tail_)>(
438 reinterpret_cast<char*>(&_impl_.tail_),
439 reinterpret_cast<char*>(&other->_impl_.tail_));
440}
441
442::google::protobuf::Metadata ArcLpValue::GetMetadata() const {
443 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
444}
445// ===================================================================
446
448 public:
449 using HasBits =
450 decltype(::std::declval<RoutesSupportGraphProto>()._impl_._has_bits_);
451 static constexpr ::int32_t kHasBitsOffset =
452 8 * PROTOBUF_FIELD_OFFSET(RoutesSupportGraphProto, _impl_._has_bits_);
454
455RoutesSupportGraphProto::RoutesSupportGraphProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
456#if defined(PROTOBUF_CUSTOM_VTABLE)
457 : ::google::protobuf::Message(arena, RoutesSupportGraphProto_class_data_.base()) {
458#else // PROTOBUF_CUSTOM_VTABLE
459 : ::google::protobuf::Message(arena) {
460#endif // PROTOBUF_CUSTOM_VTABLE
461 SharedCtor(arena);
462 // @@protoc_insertion_point(arena_constructor:operations_research.sat.RoutesSupportGraphProto)
463}
464PROTOBUF_NDEBUG_INLINE RoutesSupportGraphProto::Impl_::Impl_(
465 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
466 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
467 [[maybe_unused]] const ::operations_research::sat::RoutesSupportGraphProto& from_msg)
468 : _has_bits_{from._has_bits_},
469 _cached_size_{0},
470 arc_lp_values_{visibility, arena, from.arc_lp_values_} {}
471
473 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
474 const RoutesSupportGraphProto& from)
475#if defined(PROTOBUF_CUSTOM_VTABLE)
476 : ::google::protobuf::Message(arena, RoutesSupportGraphProto_class_data_.base()) {
477#else // PROTOBUF_CUSTOM_VTABLE
478 : ::google::protobuf::Message(arena) {
479#endif // PROTOBUF_CUSTOM_VTABLE
480 RoutesSupportGraphProto* const _this = this;
481 (void)_this;
482 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
483 from._internal_metadata_);
484 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
485
486 // @@protoc_insertion_point(copy_constructor:operations_research.sat.RoutesSupportGraphProto)
487}
488PROTOBUF_NDEBUG_INLINE RoutesSupportGraphProto::Impl_::Impl_(
489 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
490 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
491 : _cached_size_{0},
492 arc_lp_values_{visibility, arena} {}
493
494inline void RoutesSupportGraphProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
495 new (&_impl_) Impl_(internal_visibility(), arena);
496}
498 // @@protoc_insertion_point(destructor:operations_research.sat.RoutesSupportGraphProto)
499 SharedDtor(*this);
500}
501inline void RoutesSupportGraphProto::SharedDtor(MessageLite& self) {
502 RoutesSupportGraphProto& this_ = static_cast<RoutesSupportGraphProto&>(self);
503 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
504 this_.CheckHasBitConsistency();
505 }
506 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
507 ABSL_DCHECK(this_.GetArena() == nullptr);
508 this_._impl_.~Impl_();
509}
510
511inline void* PROTOBUF_NONNULL RoutesSupportGraphProto::PlacementNew_(
512 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
513 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
514 return ::new (mem) RoutesSupportGraphProto(arena);
515}
516constexpr auto RoutesSupportGraphProto::InternalNewImpl_() {
517 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
518 PROTOBUF_FIELD_OFFSET(RoutesSupportGraphProto, _impl_.arc_lp_values_) +
519 decltype(RoutesSupportGraphProto::_impl_.arc_lp_values_)::
520 InternalGetArenaOffset(
521 ::google::protobuf::Message::internal_visibility()),
522 });
523 if (arena_bits.has_value()) {
524 return ::google::protobuf::internal::MessageCreator::ZeroInit(
525 sizeof(RoutesSupportGraphProto), alignof(RoutesSupportGraphProto), *arena_bits);
526 } else {
527 return ::google::protobuf::internal::MessageCreator(&RoutesSupportGraphProto::PlacementNew_,
528 sizeof(RoutesSupportGraphProto),
529 alignof(RoutesSupportGraphProto));
530 }
531}
533 return ::google::protobuf::internal::ClassDataFull{
534 ::google::protobuf::internal::ClassData{
536 &_table_.header,
537 nullptr, // OnDemandRegisterArenaDtor
538 nullptr, // IsInitialized
539 &RoutesSupportGraphProto::MergeImpl,
540 ::google::protobuf::Message::GetNewImpl<RoutesSupportGraphProto>(),
541#if defined(PROTOBUF_CUSTOM_VTABLE)
542 &RoutesSupportGraphProto::SharedDtor,
543 ::google::protobuf::Message::GetClearImpl<RoutesSupportGraphProto>(), &RoutesSupportGraphProto::ByteSizeLong,
545#endif // PROTOBUF_CUSTOM_VTABLE
546 PROTOBUF_FIELD_OFFSET(RoutesSupportGraphProto, _impl_._cached_size_),
547 false,
548 },
549 &RoutesSupportGraphProto::kDescriptorMethods,
551 nullptr, // tracker
552 };
553}
554
555PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
556 ::google::protobuf::internal::ClassDataFull RoutesSupportGraphProto_class_data_ =
559PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
560RoutesSupportGraphProto::GetClassData() const {
561 ::google::protobuf::internal::PrefetchToLocalCache(&RoutesSupportGraphProto_class_data_);
562 ::google::protobuf::internal::PrefetchToLocalCache(RoutesSupportGraphProto_class_data_.tc_table);
564}
565PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
566const ::_pbi::TcParseTable<0, 1, 1, 0, 2>
567RoutesSupportGraphProto::_table_ = {
568 {
569 PROTOBUF_FIELD_OFFSET(RoutesSupportGraphProto, _impl_._has_bits_),
570 0, // no _extensions_
571 1, 0, // max_field_number, fast_idx_mask
572 offsetof(decltype(_table_), field_lookup_table),
573 4294967294, // skipmap
574 offsetof(decltype(_table_), field_entries),
575 1, // num_field_entries
576 1, // num_aux_entries
577 offsetof(decltype(_table_), aux_entries),
579 nullptr, // post_loop_handler
580 ::_pbi::TcParser::GenericFallback, // fallback
581 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
582 ::_pbi::TcParser::GetTable<::operations_research::sat::RoutesSupportGraphProto>(), // to_prefetch
583 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
584 }, {{
585 // repeated .operations_research.sat.ArcLpValue arc_lp_values = 1;
586 {::_pbi::TcParser::FastMtR1,
587 {10, 0, 0,
588 PROTOBUF_FIELD_OFFSET(RoutesSupportGraphProto, _impl_.arc_lp_values_)}},
589 }}, {{
590 65535, 65535
591 }}, {{
592 // repeated .operations_research.sat.ArcLpValue arc_lp_values = 1;
593 {PROTOBUF_FIELD_OFFSET(RoutesSupportGraphProto, _impl_.arc_lp_values_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
594 }},
595 {{
596 {::_pbi::TcParser::GetTable<::operations_research::sat::ArcLpValue>()},
597 }},
598 {{
599 }},
600};
601PROTOBUF_NOINLINE void RoutesSupportGraphProto::Clear() {
602// @@protoc_insertion_point(message_clear_start:operations_research.sat.RoutesSupportGraphProto)
603 ::google::protobuf::internal::TSanWrite(&_impl_);
604 ::uint32_t cached_has_bits = 0;
605 // Prevent compiler warnings about cached_has_bits being unused
606 (void) cached_has_bits;
607
608 cached_has_bits = _impl_._has_bits_[0];
609 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
610 _impl_.arc_lp_values_.Clear();
611 }
612 _impl_._has_bits_.Clear();
613 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
614}
615
616#if defined(PROTOBUF_CUSTOM_VTABLE)
617::uint8_t* PROTOBUF_NONNULL RoutesSupportGraphProto::_InternalSerialize(
618 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
619 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
620 const RoutesSupportGraphProto& this_ = static_cast<const RoutesSupportGraphProto&>(base);
621#else // PROTOBUF_CUSTOM_VTABLE
622::uint8_t* PROTOBUF_NONNULL RoutesSupportGraphProto::_InternalSerialize(
623 ::uint8_t* PROTOBUF_NONNULL target,
624 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
625 const RoutesSupportGraphProto& this_ = *this;
626#endif // PROTOBUF_CUSTOM_VTABLE
627 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
628 this_.CheckHasBitConsistency();
629 }
630 // @@protoc_insertion_point(serialize_to_array_start:operations_research.sat.RoutesSupportGraphProto)
631 ::uint32_t cached_has_bits = 0;
632 (void)cached_has_bits;
633
634 cached_has_bits = this_._impl_._has_bits_[0];
635 // repeated .operations_research.sat.ArcLpValue arc_lp_values = 1;
636 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
637 for (unsigned i = 0, n = static_cast<unsigned>(
638 this_._internal_arc_lp_values_size());
639 i < n; i++) {
640 const auto& repfield = this_._internal_arc_lp_values().Get(i);
641 target =
642 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
643 1, repfield, repfield.GetCachedSize(),
644 target, stream);
645 }
646 }
647
648 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
649 target =
650 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
651 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
652 }
653 // @@protoc_insertion_point(serialize_to_array_end:operations_research.sat.RoutesSupportGraphProto)
654 return target;
655}
656
657#if defined(PROTOBUF_CUSTOM_VTABLE)
659 const RoutesSupportGraphProto& this_ = static_cast<const RoutesSupportGraphProto&>(base);
660#else // PROTOBUF_CUSTOM_VTABLE
662 const RoutesSupportGraphProto& this_ = *this;
663#endif // PROTOBUF_CUSTOM_VTABLE
664 // @@protoc_insertion_point(message_byte_size_start:operations_research.sat.RoutesSupportGraphProto)
665 ::size_t total_size = 0;
666
667 ::uint32_t cached_has_bits = 0;
668 // Prevent compiler warnings about cached_has_bits being unused
669 (void)cached_has_bits;
670
671 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
672 {
673 // repeated .operations_research.sat.ArcLpValue arc_lp_values = 1;
674 cached_has_bits = this_._impl_._has_bits_[0];
675 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
676 total_size += 1UL * this_._internal_arc_lp_values_size();
677 for (const auto& msg : this_._internal_arc_lp_values()) {
678 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
679 }
680 }
681 }
682 return this_.MaybeComputeUnknownFieldsSize(total_size,
683 &this_._impl_._cached_size_);
684}
685
686void RoutesSupportGraphProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
687 const ::google::protobuf::MessageLite& from_msg) {
688 auto* const _this =
689 static_cast<RoutesSupportGraphProto*>(&to_msg);
690 auto& from = static_cast<const RoutesSupportGraphProto&>(from_msg);
691 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
692 from.CheckHasBitConsistency();
693 }
694 ::google::protobuf::Arena* arena = _this->GetArena();
695 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.sat.RoutesSupportGraphProto)
696 ABSL_DCHECK_NE(&from, _this);
697 ::uint32_t cached_has_bits = 0;
698 (void)cached_has_bits;
699
700 cached_has_bits = from._impl_._has_bits_[0];
701 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
702 _this->_internal_mutable_arc_lp_values()->InternalMergeFromWithArena(
703 ::google::protobuf::MessageLite::internal_visibility(), arena,
704 from._internal_arc_lp_values());
705 }
706 _this->_impl_._has_bits_[0] |= cached_has_bits;
707 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
708 from._internal_metadata_);
709}
710
712 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.sat.RoutesSupportGraphProto)
713 if (&from == this) return;
714 Clear();
715 MergeFrom(from);
716}
717
718
719void RoutesSupportGraphProto::InternalSwap(RoutesSupportGraphProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
720 using ::std::swap;
721 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
722 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
723 _impl_.arc_lp_values_.InternalSwap(&other->_impl_.arc_lp_values_);
724}
725
726::google::protobuf::Metadata RoutesSupportGraphProto::GetMetadata() const {
727 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
729// @@protoc_insertion_point(namespace_scope)
730} // namespace sat
731} // namespace operations_research
732namespace google {
733namespace protobuf {
734} // namespace protobuf
735} // namespace google
736// @@protoc_insertion_point(global_scope)
737PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
738 _static_init2_ [[maybe_unused]] =
740 ::std::false_type{});
741#include "google/protobuf/port_undef.inc"
static PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::std::false_type _static_init2_
static const ::_pb::Message *PROTOBUF_NONNULL const file_default_instances[]
decltype(::std::declval< ArcLpValue >()._impl_._has_bits_) HasBits
::google::protobuf::Metadata GetMetadata() const
friend class ::google::protobuf::MessageLite
friend void swap(ArcLpValue &a, ArcLpValue &b)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
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
decltype(::std::declval< RoutesSupportGraphProto >()._impl_._has_bits_) HasBits
void CopyFrom(const RoutesSupportGraphProto &from)
void MergeFrom(const RoutesSupportGraphProto &from)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
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
friend void swap(RoutesSupportGraphProto &a, RoutesSupportGraphProto &b)
static constexpr ::_pbi::MigrationSchema *PROTOBUF_NULLABLE schemas
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_
OR-Tools root namespace.
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