Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
capacity_planning.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/routing/parsers/capacity_planning.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 routing {
29
30inline constexpr NetworkTopology::Impl_::Impl_(
31 ::_pbi::ConstantInitialized) noexcept
32 : _cached_size_{0},
33 from_node_{},
34 _from_node_cached_byte_size_{0},
35 to_node_{},
36 _to_node_cached_byte_size_{0},
37 variable_cost_{},
38 fixed_cost_{},
39 capacity_{} {}
40
41template <typename>
42PROTOBUF_CONSTEXPR NetworkTopology::NetworkTopology(::_pbi::ConstantInitialized)
43#if defined(PROTOBUF_CUSTOM_VTABLE)
44 : ::google::protobuf::Message(NetworkTopology_class_data_.base()),
45#else // PROTOBUF_CUSTOM_VTABLE
46 : ::google::protobuf::Message(),
47#endif // PROTOBUF_CUSTOM_VTABLE
48 _impl_(::_pbi::ConstantInitialized()) {
49}
57
58PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
60
61inline constexpr Commodities::Impl_::Impl_(
62 ::_pbi::ConstantInitialized) noexcept
63 : _cached_size_{0},
64 from_node_{},
65 _from_node_cached_byte_size_{0},
66 to_node_{},
67 _to_node_cached_byte_size_{0},
68 demand_{} {}
69
70template <typename>
71PROTOBUF_CONSTEXPR Commodities::Commodities(::_pbi::ConstantInitialized)
72#if defined(PROTOBUF_CUSTOM_VTABLE)
73 : ::google::protobuf::Message(Commodities_class_data_.base()),
74#else // PROTOBUF_CUSTOM_VTABLE
75 : ::google::protobuf::Message(),
76#endif // PROTOBUF_CUSTOM_VTABLE
77 _impl_(::_pbi::ConstantInitialized()) {
78}
80 PROTOBUF_CONSTEXPR CommoditiesDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
82 union {
84 };
85};
86
87PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
89
90inline constexpr CapacityPlanningInstance::Impl_::Impl_(
91 ::_pbi::ConstantInitialized) noexcept
92 : _cached_size_{0},
93 topology_{nullptr},
94 commodities_{nullptr} {}
95
96template <typename>
97PROTOBUF_CONSTEXPR CapacityPlanningInstance::CapacityPlanningInstance(::_pbi::ConstantInitialized)
98#if defined(PROTOBUF_CUSTOM_VTABLE)
99 : ::google::protobuf::Message(CapacityPlanningInstance_class_data_.base()),
100#else // PROTOBUF_CUSTOM_VTABLE
101 : ::google::protobuf::Message(),
102#endif // PROTOBUF_CUSTOM_VTABLE
103 _impl_(::_pbi::ConstantInitialized()) {
104}
112
113PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
115} // namespace routing
116} // namespace operations_research
117static constexpr const ::_pb::EnumDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
119static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
121const ::uint32_t
123 protodesc_cold) = {
124 0x081, // bitmap
125 PROTOBUF_FIELD_OFFSET(::operations_research::routing::NetworkTopology, _impl_._has_bits_),
126 8, // hasbit index offset
127 PROTOBUF_FIELD_OFFSET(::operations_research::routing::NetworkTopology, _impl_.from_node_),
128 PROTOBUF_FIELD_OFFSET(::operations_research::routing::NetworkTopology, _impl_.to_node_),
129 PROTOBUF_FIELD_OFFSET(::operations_research::routing::NetworkTopology, _impl_.variable_cost_),
130 PROTOBUF_FIELD_OFFSET(::operations_research::routing::NetworkTopology, _impl_.fixed_cost_),
131 PROTOBUF_FIELD_OFFSET(::operations_research::routing::NetworkTopology, _impl_.capacity_),
132 0,
133 1,
134 2,
135 3,
136 4,
137 0x081, // bitmap
138 PROTOBUF_FIELD_OFFSET(::operations_research::routing::Commodities, _impl_._has_bits_),
139 6, // hasbit index offset
140 PROTOBUF_FIELD_OFFSET(::operations_research::routing::Commodities, _impl_.from_node_),
141 PROTOBUF_FIELD_OFFSET(::operations_research::routing::Commodities, _impl_.to_node_),
142 PROTOBUF_FIELD_OFFSET(::operations_research::routing::Commodities, _impl_.demand_),
143 0,
144 1,
145 2,
146 0x081, // bitmap
147 PROTOBUF_FIELD_OFFSET(::operations_research::routing::CapacityPlanningInstance, _impl_._has_bits_),
148 5, // hasbit index offset
149 PROTOBUF_FIELD_OFFSET(::operations_research::routing::CapacityPlanningInstance, _impl_.topology_),
150 PROTOBUF_FIELD_OFFSET(::operations_research::routing::CapacityPlanningInstance, _impl_.commodities_),
151 0,
152 1,
153};
154
155static const ::_pbi::MigrationSchema
156 schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
160};
166const char descriptor_table_protodef_ortools_2frouting_2fparsers_2fcapacity_5fplanning_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
167 protodesc_cold) = {
168 "\n/ortools/routing/parsers/capacity_plann"
169 "ing.proto\022\033operations_research.routing\"r"
170 "\n\017NetworkTopology\022\021\n\tfrom_node\030\001 \003(\005\022\017\n\007"
171 "to_node\030\002 \003(\005\022\025\n\rvariable_cost\030\003 \003(\001\022\022\n\n"
172 "fixed_cost\030\004 \003(\001\022\020\n\010capacity\030\005 \003(\001\"A\n\013Co"
173 "mmodities\022\021\n\tfrom_node\030\001 \003(\005\022\017\n\007to_node\030"
174 "\002 \003(\005\022\016\n\006demand\030\003 \003(\001\"\231\001\n\030CapacityPlanni"
175 "ngInstance\022>\n\010topology\030\001 \001(\0132,.operation"
176 "s_research.routing.NetworkTopology\022=\n\013co"
177 "mmodities\030\002 \001(\0132(.operations_research.ro"
178 "uting.CommoditiesBE\n!com.google.ortools."
179 "routing.parserP\001\252\002\035Google.OrTools.Routin"
180 "g.Parserb\006proto3"
181};
183PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_ortools_2frouting_2fparsers_2fcapacity_5fplanning_2eproto = {
184 false,
185 false,
186 496,
187 descriptor_table_protodef_ortools_2frouting_2fparsers_2fcapacity_5fplanning_2eproto,
188 "ortools/routing/parsers/capacity_planning.proto",
190 nullptr,
191 0,
192 3,
193 schemas,
198};
199namespace operations_research {
200namespace routing {
201// ===================================================================
202
204 public:
205 using HasBits =
206 decltype(::std::declval<NetworkTopology>()._impl_._has_bits_);
207 static constexpr ::int32_t kHasBitsOffset =
208 8 * PROTOBUF_FIELD_OFFSET(NetworkTopology, _impl_._has_bits_);
209};
210
211NetworkTopology::NetworkTopology(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
212#if defined(PROTOBUF_CUSTOM_VTABLE)
213 : ::google::protobuf::Message(arena, NetworkTopology_class_data_.base()) {
214#else // PROTOBUF_CUSTOM_VTABLE
215 : ::google::protobuf::Message(arena) {
216#endif // PROTOBUF_CUSTOM_VTABLE
217 SharedCtor(arena);
218 // @@protoc_insertion_point(arena_constructor:operations_research.routing.NetworkTopology)
219}
220PROTOBUF_NDEBUG_INLINE NetworkTopology::Impl_::Impl_(
221 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
222 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
223 [[maybe_unused]] const ::operations_research::routing::NetworkTopology& from_msg)
224 : _has_bits_{from._has_bits_},
225 _cached_size_{0},
226 from_node_{visibility, arena, from.from_node_},
227 _from_node_cached_byte_size_{0},
228 to_node_{visibility, arena, from.to_node_},
229 _to_node_cached_byte_size_{0},
230 variable_cost_{visibility, arena, from.variable_cost_},
231 fixed_cost_{visibility, arena, from.fixed_cost_},
232 capacity_{visibility, arena, from.capacity_} {}
233
235 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
236 const NetworkTopology& from)
237#if defined(PROTOBUF_CUSTOM_VTABLE)
238 : ::google::protobuf::Message(arena, NetworkTopology_class_data_.base()) {
239#else // PROTOBUF_CUSTOM_VTABLE
240 : ::google::protobuf::Message(arena) {
241#endif // PROTOBUF_CUSTOM_VTABLE
242 NetworkTopology* const _this = this;
243 (void)_this;
244 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
245 from._internal_metadata_);
246 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
247
248 // @@protoc_insertion_point(copy_constructor:operations_research.routing.NetworkTopology)
249}
250PROTOBUF_NDEBUG_INLINE NetworkTopology::Impl_::Impl_(
251 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
252 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
253 : _cached_size_{0},
254 from_node_{visibility, arena},
255 _from_node_cached_byte_size_{0},
256 to_node_{visibility, arena},
257 _to_node_cached_byte_size_{0},
258 variable_cost_{visibility, arena},
259 fixed_cost_{visibility, arena},
260 capacity_{visibility, arena} {}
261
262inline void NetworkTopology::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
263 new (&_impl_) Impl_(internal_visibility(), arena);
264}
266 // @@protoc_insertion_point(destructor:operations_research.routing.NetworkTopology)
267 SharedDtor(*this);
268}
269inline void NetworkTopology::SharedDtor(MessageLite& self) {
270 NetworkTopology& this_ = static_cast<NetworkTopology&>(self);
271 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
272 this_.CheckHasBitConsistency();
273 }
274 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
275 ABSL_DCHECK(this_.GetArena() == nullptr);
276 this_._impl_.~Impl_();
277}
278
279inline void* PROTOBUF_NONNULL NetworkTopology::PlacementNew_(
280 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
281 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
282 return ::new (mem) NetworkTopology(arena);
283}
284constexpr auto NetworkTopology::InternalNewImpl_() {
285 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
286 PROTOBUF_FIELD_OFFSET(NetworkTopology, _impl_.from_node_) +
287 decltype(NetworkTopology::_impl_.from_node_)::
288 InternalGetArenaOffset(
289 ::google::protobuf::Message::internal_visibility()),
290 PROTOBUF_FIELD_OFFSET(NetworkTopology, _impl_.to_node_) +
291 decltype(NetworkTopology::_impl_.to_node_)::
292 InternalGetArenaOffset(
293 ::google::protobuf::Message::internal_visibility()),
294 PROTOBUF_FIELD_OFFSET(NetworkTopology, _impl_.variable_cost_) +
295 decltype(NetworkTopology::_impl_.variable_cost_)::
296 InternalGetArenaOffset(
297 ::google::protobuf::Message::internal_visibility()),
298 PROTOBUF_FIELD_OFFSET(NetworkTopology, _impl_.fixed_cost_) +
299 decltype(NetworkTopology::_impl_.fixed_cost_)::
300 InternalGetArenaOffset(
301 ::google::protobuf::Message::internal_visibility()),
302 PROTOBUF_FIELD_OFFSET(NetworkTopology, _impl_.capacity_) +
303 decltype(NetworkTopology::_impl_.capacity_)::
304 InternalGetArenaOffset(
305 ::google::protobuf::Message::internal_visibility()),
306 });
307 if (arena_bits.has_value()) {
308 return ::google::protobuf::internal::MessageCreator::ZeroInit(
309 sizeof(NetworkTopology), alignof(NetworkTopology), *arena_bits);
310 } else {
311 return ::google::protobuf::internal::MessageCreator(&NetworkTopology::PlacementNew_,
312 sizeof(NetworkTopology),
313 alignof(NetworkTopology));
314 }
315}
317 return ::google::protobuf::internal::ClassDataFull{
318 ::google::protobuf::internal::ClassData{
320 &_table_.header,
321 nullptr, // OnDemandRegisterArenaDtor
322 nullptr, // IsInitialized
323 &NetworkTopology::MergeImpl,
324 ::google::protobuf::Message::GetNewImpl<NetworkTopology>(),
325#if defined(PROTOBUF_CUSTOM_VTABLE)
326 &NetworkTopology::SharedDtor,
327 ::google::protobuf::Message::GetClearImpl<NetworkTopology>(), &NetworkTopology::ByteSizeLong,
329#endif // PROTOBUF_CUSTOM_VTABLE
330 PROTOBUF_FIELD_OFFSET(NetworkTopology, _impl_._cached_size_),
331 false,
332 },
333 &NetworkTopology::kDescriptorMethods,
335 nullptr, // tracker
336 };
337}
338
339PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
340 ::google::protobuf::internal::ClassDataFull NetworkTopology_class_data_ =
342
343PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
344NetworkTopology::GetClassData() const {
345 ::google::protobuf::internal::PrefetchToLocalCache(&NetworkTopology_class_data_);
346 ::google::protobuf::internal::PrefetchToLocalCache(NetworkTopology_class_data_.tc_table);
347 return NetworkTopology_class_data_.base();
348}
349PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
350const ::_pbi::TcParseTable<3, 5, 0, 0, 2>
351NetworkTopology::_table_ = {
352 {
353 PROTOBUF_FIELD_OFFSET(NetworkTopology, _impl_._has_bits_),
354 0, // no _extensions_
355 5, 56, // max_field_number, fast_idx_mask
356 offsetof(decltype(_table_), field_lookup_table),
357 4294967264, // skipmap
358 offsetof(decltype(_table_), field_entries),
359 5, // num_field_entries
360 0, // num_aux_entries
361 offsetof(decltype(_table_), field_names), // no aux_entries
363 nullptr, // post_loop_handler
364 ::_pbi::TcParser::GenericFallback, // fallback
365 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
366 ::_pbi::TcParser::GetTable<::operations_research::routing::NetworkTopology>(), // to_prefetch
367 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
368 }, {{
369 {::_pbi::TcParser::MiniParse, {}},
370 // repeated int32 from_node = 1;
371 {::_pbi::TcParser::FastV32P1,
372 {10, 0, 0,
373 PROTOBUF_FIELD_OFFSET(NetworkTopology, _impl_.from_node_)}},
374 // repeated int32 to_node = 2;
375 {::_pbi::TcParser::FastV32P1,
376 {18, 1, 0,
377 PROTOBUF_FIELD_OFFSET(NetworkTopology, _impl_.to_node_)}},
378 // repeated double variable_cost = 3;
379 {::_pbi::TcParser::FastF64P1,
380 {26, 2, 0,
381 PROTOBUF_FIELD_OFFSET(NetworkTopology, _impl_.variable_cost_)}},
382 // repeated double fixed_cost = 4;
383 {::_pbi::TcParser::FastF64P1,
384 {34, 3, 0,
385 PROTOBUF_FIELD_OFFSET(NetworkTopology, _impl_.fixed_cost_)}},
386 // repeated double capacity = 5;
387 {::_pbi::TcParser::FastF64P1,
388 {42, 4, 0,
389 PROTOBUF_FIELD_OFFSET(NetworkTopology, _impl_.capacity_)}},
390 {::_pbi::TcParser::MiniParse, {}},
391 {::_pbi::TcParser::MiniParse, {}},
392 }}, {{
393 65535, 65535
394 }}, {{
395 // repeated int32 from_node = 1;
396 {PROTOBUF_FIELD_OFFSET(NetworkTopology, _impl_.from_node_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)},
397 // repeated int32 to_node = 2;
398 {PROTOBUF_FIELD_OFFSET(NetworkTopology, _impl_.to_node_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)},
399 // repeated double variable_cost = 3;
400 {PROTOBUF_FIELD_OFFSET(NetworkTopology, _impl_.variable_cost_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)},
401 // repeated double fixed_cost = 4;
402 {PROTOBUF_FIELD_OFFSET(NetworkTopology, _impl_.fixed_cost_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)},
403 // repeated double capacity = 5;
404 {PROTOBUF_FIELD_OFFSET(NetworkTopology, _impl_.capacity_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)},
405 }},
406 // no aux_entries
407 {{
408 }},
409};
410PROTOBUF_NOINLINE void NetworkTopology::Clear() {
411// @@protoc_insertion_point(message_clear_start:operations_research.routing.NetworkTopology)
412 ::google::protobuf::internal::TSanWrite(&_impl_);
413 ::uint32_t cached_has_bits = 0;
414 // Prevent compiler warnings about cached_has_bits being unused
415 (void) cached_has_bits;
416
417 cached_has_bits = _impl_._has_bits_[0];
418 if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
419 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
420 _impl_.from_node_.Clear();
421 }
422 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
423 _impl_.to_node_.Clear();
424 }
425 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
426 _impl_.variable_cost_.Clear();
427 }
428 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
429 _impl_.fixed_cost_.Clear();
430 }
431 if (CheckHasBitForRepeated(cached_has_bits, 0x00000010U)) {
432 _impl_.capacity_.Clear();
433 }
434 }
435 _impl_._has_bits_.Clear();
436 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
437}
438
439#if defined(PROTOBUF_CUSTOM_VTABLE)
440::uint8_t* PROTOBUF_NONNULL NetworkTopology::_InternalSerialize(
441 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
442 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
443 const NetworkTopology& this_ = static_cast<const NetworkTopology&>(base);
444#else // PROTOBUF_CUSTOM_VTABLE
445::uint8_t* PROTOBUF_NONNULL NetworkTopology::_InternalSerialize(
446 ::uint8_t* PROTOBUF_NONNULL target,
447 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
448 const NetworkTopology& this_ = *this;
449#endif // PROTOBUF_CUSTOM_VTABLE
450 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
451 this_.CheckHasBitConsistency();
452 }
453 // @@protoc_insertion_point(serialize_to_array_start:operations_research.routing.NetworkTopology)
454 ::uint32_t cached_has_bits = 0;
455 (void)cached_has_bits;
456
457 cached_has_bits = this_._impl_._has_bits_[0];
458 // repeated int32 from_node = 1;
459 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
460 {
461 int byte_size = this_._impl_._from_node_cached_byte_size_.Get();
462 if (byte_size > 0) {
463 target = stream->WriteInt32Packed(
464 1, this_._internal_from_node(), byte_size, target);
465 }
466 }
467 }
468
469 // repeated int32 to_node = 2;
470 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
471 {
472 int byte_size = this_._impl_._to_node_cached_byte_size_.Get();
473 if (byte_size > 0) {
474 target = stream->WriteInt32Packed(
475 2, this_._internal_to_node(), byte_size, target);
476 }
477 }
478 }
479
480 // repeated double variable_cost = 3;
481 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
482 if (this_._internal_variable_cost_size() > 0) {
483 target = stream->WriteFixedPacked(3, this_._internal_variable_cost(), target);
484 }
485 }
486
487 // repeated double fixed_cost = 4;
488 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
489 if (this_._internal_fixed_cost_size() > 0) {
490 target = stream->WriteFixedPacked(4, this_._internal_fixed_cost(), target);
491 }
492 }
493
494 // repeated double capacity = 5;
495 if (CheckHasBitForRepeated(cached_has_bits, 0x00000010U)) {
496 if (this_._internal_capacity_size() > 0) {
497 target = stream->WriteFixedPacked(5, this_._internal_capacity(), target);
498 }
499 }
500
501 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
502 target =
503 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
504 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
505 }
506 // @@protoc_insertion_point(serialize_to_array_end:operations_research.routing.NetworkTopology)
507 return target;
508}
509
510#if defined(PROTOBUF_CUSTOM_VTABLE)
512 const NetworkTopology& this_ = static_cast<const NetworkTopology&>(base);
513#else // PROTOBUF_CUSTOM_VTABLE
514::size_t NetworkTopology::ByteSizeLong() const {
515 const NetworkTopology& this_ = *this;
516#endif // PROTOBUF_CUSTOM_VTABLE
517 // @@protoc_insertion_point(message_byte_size_start:operations_research.routing.NetworkTopology)
518 ::size_t total_size = 0;
519
520 ::uint32_t cached_has_bits = 0;
521 // Prevent compiler warnings about cached_has_bits being unused
522 (void)cached_has_bits;
523
524 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
525 cached_has_bits = this_._impl_._has_bits_[0];
526 if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
527 // repeated int32 from_node = 1;
528 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
529 total_size +=
530 ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize(
531 this_._internal_from_node(), 1,
532 this_._impl_._from_node_cached_byte_size_);
533 }
534 // repeated int32 to_node = 2;
535 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
536 total_size +=
537 ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize(
538 this_._internal_to_node(), 1,
539 this_._impl_._to_node_cached_byte_size_);
540 }
541 // repeated double variable_cost = 3;
542 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
543 ::size_t data_size = ::size_t{8} *
544 ::_pbi::FromIntSize(this_._internal_variable_cost_size());
545 ::size_t tag_size = data_size == 0
546 ? 0
547 : 1 + ::_pbi::WireFormatLite::Int32Size(
548 static_cast<::int32_t>(data_size));
549 total_size += tag_size + data_size;
550 }
551 // repeated double fixed_cost = 4;
552 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
553 ::size_t data_size = ::size_t{8} *
554 ::_pbi::FromIntSize(this_._internal_fixed_cost_size());
555 ::size_t tag_size = data_size == 0
556 ? 0
557 : 1 + ::_pbi::WireFormatLite::Int32Size(
558 static_cast<::int32_t>(data_size));
559 total_size += tag_size + data_size;
560 }
561 // repeated double capacity = 5;
562 if (CheckHasBitForRepeated(cached_has_bits, 0x00000010U)) {
563 ::size_t data_size = ::size_t{8} *
564 ::_pbi::FromIntSize(this_._internal_capacity_size());
565 ::size_t tag_size = data_size == 0
566 ? 0
567 : 1 + ::_pbi::WireFormatLite::Int32Size(
568 static_cast<::int32_t>(data_size));
569 total_size += tag_size + data_size;
570 }
571 }
572 return this_.MaybeComputeUnknownFieldsSize(total_size,
573 &this_._impl_._cached_size_);
574}
575
576void NetworkTopology::MergeImpl(::google::protobuf::MessageLite& to_msg,
577 const ::google::protobuf::MessageLite& from_msg) {
578 auto* const _this =
579 static_cast<NetworkTopology*>(&to_msg);
580 auto& from = static_cast<const NetworkTopology&>(from_msg);
581 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
582 from.CheckHasBitConsistency();
583 }
584 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.routing.NetworkTopology)
585 ABSL_DCHECK_NE(&from, _this);
586 ::uint32_t cached_has_bits = 0;
587 (void)cached_has_bits;
588
589 cached_has_bits = from._impl_._has_bits_[0];
590 if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
591 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
592 _this->_internal_mutable_from_node()->MergeFrom(from._internal_from_node());
593 }
594 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
595 _this->_internal_mutable_to_node()->MergeFrom(from._internal_to_node());
596 }
597 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
598 _this->_internal_mutable_variable_cost()->MergeFrom(from._internal_variable_cost());
599 }
600 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
601 _this->_internal_mutable_fixed_cost()->MergeFrom(from._internal_fixed_cost());
602 }
603 if (CheckHasBitForRepeated(cached_has_bits, 0x00000010U)) {
604 _this->_internal_mutable_capacity()->MergeFrom(from._internal_capacity());
605 }
606 }
607 _this->_impl_._has_bits_[0] |= cached_has_bits;
608 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
609 from._internal_metadata_);
610}
611
613 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.routing.NetworkTopology)
614 if (&from == this) return;
615 Clear();
616 MergeFrom(from);
617}
618
619
620void NetworkTopology::InternalSwap(NetworkTopology* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
621 using ::std::swap;
622 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
623 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
624 _impl_.from_node_.InternalSwap(&other->_impl_.from_node_);
625 _impl_.to_node_.InternalSwap(&other->_impl_.to_node_);
626 _impl_.variable_cost_.InternalSwap(&other->_impl_.variable_cost_);
627 _impl_.fixed_cost_.InternalSwap(&other->_impl_.fixed_cost_);
628 _impl_.capacity_.InternalSwap(&other->_impl_.capacity_);
629}
630
631::google::protobuf::Metadata NetworkTopology::GetMetadata() const {
632 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
633}
634// ===================================================================
635
637 public:
638 using HasBits =
639 decltype(::std::declval<Commodities>()._impl_._has_bits_);
640 static constexpr ::int32_t kHasBitsOffset =
641 8 * PROTOBUF_FIELD_OFFSET(Commodities, _impl_._has_bits_);
643
644Commodities::Commodities(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
645#if defined(PROTOBUF_CUSTOM_VTABLE)
646 : ::google::protobuf::Message(arena, Commodities_class_data_.base()) {
647#else // PROTOBUF_CUSTOM_VTABLE
648 : ::google::protobuf::Message(arena) {
649#endif // PROTOBUF_CUSTOM_VTABLE
650 SharedCtor(arena);
651 // @@protoc_insertion_point(arena_constructor:operations_research.routing.Commodities)
652}
653PROTOBUF_NDEBUG_INLINE Commodities::Impl_::Impl_(
654 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
655 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
656 [[maybe_unused]] const ::operations_research::routing::Commodities& from_msg)
657 : _has_bits_{from._has_bits_},
658 _cached_size_{0},
659 from_node_{visibility, arena, from.from_node_},
660 _from_node_cached_byte_size_{0},
661 to_node_{visibility, arena, from.to_node_},
662 _to_node_cached_byte_size_{0},
663 demand_{visibility, arena, from.demand_} {}
664
666 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
667 const Commodities& from)
668#if defined(PROTOBUF_CUSTOM_VTABLE)
669 : ::google::protobuf::Message(arena, Commodities_class_data_.base()) {
670#else // PROTOBUF_CUSTOM_VTABLE
671 : ::google::protobuf::Message(arena) {
672#endif // PROTOBUF_CUSTOM_VTABLE
673 Commodities* const _this = this;
674 (void)_this;
675 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
676 from._internal_metadata_);
677 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
678
679 // @@protoc_insertion_point(copy_constructor:operations_research.routing.Commodities)
680}
681PROTOBUF_NDEBUG_INLINE Commodities::Impl_::Impl_(
682 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
683 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
684 : _cached_size_{0},
685 from_node_{visibility, arena},
686 _from_node_cached_byte_size_{0},
687 to_node_{visibility, arena},
688 _to_node_cached_byte_size_{0},
689 demand_{visibility, arena} {}
690
691inline void Commodities::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
692 new (&_impl_) Impl_(internal_visibility(), arena);
693}
695 // @@protoc_insertion_point(destructor:operations_research.routing.Commodities)
696 SharedDtor(*this);
697}
698inline void Commodities::SharedDtor(MessageLite& self) {
699 Commodities& this_ = static_cast<Commodities&>(self);
700 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
701 this_.CheckHasBitConsistency();
702 }
703 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
704 ABSL_DCHECK(this_.GetArena() == nullptr);
705 this_._impl_.~Impl_();
706}
707
708inline void* PROTOBUF_NONNULL Commodities::PlacementNew_(
709 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
710 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
711 return ::new (mem) Commodities(arena);
712}
713constexpr auto Commodities::InternalNewImpl_() {
714 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
715 PROTOBUF_FIELD_OFFSET(Commodities, _impl_.from_node_) +
716 decltype(Commodities::_impl_.from_node_)::
717 InternalGetArenaOffset(
718 ::google::protobuf::Message::internal_visibility()),
719 PROTOBUF_FIELD_OFFSET(Commodities, _impl_.to_node_) +
720 decltype(Commodities::_impl_.to_node_)::
721 InternalGetArenaOffset(
722 ::google::protobuf::Message::internal_visibility()),
723 PROTOBUF_FIELD_OFFSET(Commodities, _impl_.demand_) +
724 decltype(Commodities::_impl_.demand_)::
725 InternalGetArenaOffset(
726 ::google::protobuf::Message::internal_visibility()),
727 });
728 if (arena_bits.has_value()) {
729 return ::google::protobuf::internal::MessageCreator::ZeroInit(
730 sizeof(Commodities), alignof(Commodities), *arena_bits);
731 } else {
732 return ::google::protobuf::internal::MessageCreator(&Commodities::PlacementNew_,
733 sizeof(Commodities),
734 alignof(Commodities));
735 }
736}
738 return ::google::protobuf::internal::ClassDataFull{
739 ::google::protobuf::internal::ClassData{
741 &_table_.header,
742 nullptr, // OnDemandRegisterArenaDtor
743 nullptr, // IsInitialized
744 &Commodities::MergeImpl,
745 ::google::protobuf::Message::GetNewImpl<Commodities>(),
746#if defined(PROTOBUF_CUSTOM_VTABLE)
747 &Commodities::SharedDtor,
748 ::google::protobuf::Message::GetClearImpl<Commodities>(), &Commodities::ByteSizeLong,
750#endif // PROTOBUF_CUSTOM_VTABLE
751 PROTOBUF_FIELD_OFFSET(Commodities, _impl_._cached_size_),
752 false,
753 },
754 &Commodities::kDescriptorMethods,
756 nullptr, // tracker
757 };
758}
759
760PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
761 ::google::protobuf::internal::ClassDataFull Commodities_class_data_ =
764PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
765Commodities::GetClassData() const {
766 ::google::protobuf::internal::PrefetchToLocalCache(&Commodities_class_data_);
767 ::google::protobuf::internal::PrefetchToLocalCache(Commodities_class_data_.tc_table);
768 return Commodities_class_data_.base();
769}
770PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
771const ::_pbi::TcParseTable<2, 3, 0, 0, 2>
772Commodities::_table_ = {
773 {
774 PROTOBUF_FIELD_OFFSET(Commodities, _impl_._has_bits_),
775 0, // no _extensions_
776 3, 24, // max_field_number, fast_idx_mask
777 offsetof(decltype(_table_), field_lookup_table),
778 4294967288, // skipmap
779 offsetof(decltype(_table_), field_entries),
780 3, // num_field_entries
781 0, // num_aux_entries
782 offsetof(decltype(_table_), field_names), // no aux_entries
784 nullptr, // post_loop_handler
785 ::_pbi::TcParser::GenericFallback, // fallback
786 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
787 ::_pbi::TcParser::GetTable<::operations_research::routing::Commodities>(), // to_prefetch
788 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
789 }, {{
790 {::_pbi::TcParser::MiniParse, {}},
791 // repeated int32 from_node = 1;
792 {::_pbi::TcParser::FastV32P1,
793 {10, 0, 0,
794 PROTOBUF_FIELD_OFFSET(Commodities, _impl_.from_node_)}},
795 // repeated int32 to_node = 2;
796 {::_pbi::TcParser::FastV32P1,
797 {18, 1, 0,
798 PROTOBUF_FIELD_OFFSET(Commodities, _impl_.to_node_)}},
799 // repeated double demand = 3;
800 {::_pbi::TcParser::FastF64P1,
801 {26, 2, 0,
802 PROTOBUF_FIELD_OFFSET(Commodities, _impl_.demand_)}},
803 }}, {{
804 65535, 65535
805 }}, {{
806 // repeated int32 from_node = 1;
807 {PROTOBUF_FIELD_OFFSET(Commodities, _impl_.from_node_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)},
808 // repeated int32 to_node = 2;
809 {PROTOBUF_FIELD_OFFSET(Commodities, _impl_.to_node_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)},
810 // repeated double demand = 3;
811 {PROTOBUF_FIELD_OFFSET(Commodities, _impl_.demand_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)},
812 }},
813 // no aux_entries
814 {{
815 }},
816};
817PROTOBUF_NOINLINE void Commodities::Clear() {
818// @@protoc_insertion_point(message_clear_start:operations_research.routing.Commodities)
819 ::google::protobuf::internal::TSanWrite(&_impl_);
820 ::uint32_t cached_has_bits = 0;
821 // Prevent compiler warnings about cached_has_bits being unused
822 (void) cached_has_bits;
823
824 cached_has_bits = _impl_._has_bits_[0];
825 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
826 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
827 _impl_.from_node_.Clear();
828 }
829 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
830 _impl_.to_node_.Clear();
831 }
832 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
833 _impl_.demand_.Clear();
834 }
835 }
836 _impl_._has_bits_.Clear();
837 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
838}
839
840#if defined(PROTOBUF_CUSTOM_VTABLE)
841::uint8_t* PROTOBUF_NONNULL Commodities::_InternalSerialize(
842 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
843 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
844 const Commodities& this_ = static_cast<const Commodities&>(base);
845#else // PROTOBUF_CUSTOM_VTABLE
846::uint8_t* PROTOBUF_NONNULL Commodities::_InternalSerialize(
847 ::uint8_t* PROTOBUF_NONNULL target,
848 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
849 const Commodities& this_ = *this;
850#endif // PROTOBUF_CUSTOM_VTABLE
851 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
852 this_.CheckHasBitConsistency();
853 }
854 // @@protoc_insertion_point(serialize_to_array_start:operations_research.routing.Commodities)
855 ::uint32_t cached_has_bits = 0;
856 (void)cached_has_bits;
857
858 cached_has_bits = this_._impl_._has_bits_[0];
859 // repeated int32 from_node = 1;
860 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
861 {
862 int byte_size = this_._impl_._from_node_cached_byte_size_.Get();
863 if (byte_size > 0) {
864 target = stream->WriteInt32Packed(
865 1, this_._internal_from_node(), byte_size, target);
866 }
867 }
868 }
869
870 // repeated int32 to_node = 2;
871 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
872 {
873 int byte_size = this_._impl_._to_node_cached_byte_size_.Get();
874 if (byte_size > 0) {
875 target = stream->WriteInt32Packed(
876 2, this_._internal_to_node(), byte_size, target);
877 }
878 }
879 }
880
881 // repeated double demand = 3;
882 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
883 if (this_._internal_demand_size() > 0) {
884 target = stream->WriteFixedPacked(3, this_._internal_demand(), target);
885 }
886 }
887
888 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
889 target =
890 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
891 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
892 }
893 // @@protoc_insertion_point(serialize_to_array_end:operations_research.routing.Commodities)
894 return target;
895}
896
897#if defined(PROTOBUF_CUSTOM_VTABLE)
899 const Commodities& this_ = static_cast<const Commodities&>(base);
900#else // PROTOBUF_CUSTOM_VTABLE
901::size_t Commodities::ByteSizeLong() const {
902 const Commodities& this_ = *this;
903#endif // PROTOBUF_CUSTOM_VTABLE
904 // @@protoc_insertion_point(message_byte_size_start:operations_research.routing.Commodities)
905 ::size_t total_size = 0;
906
907 ::uint32_t cached_has_bits = 0;
908 // Prevent compiler warnings about cached_has_bits being unused
909 (void)cached_has_bits;
910
911 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
912 cached_has_bits = this_._impl_._has_bits_[0];
913 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
914 // repeated int32 from_node = 1;
915 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
916 total_size +=
917 ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize(
918 this_._internal_from_node(), 1,
919 this_._impl_._from_node_cached_byte_size_);
920 }
921 // repeated int32 to_node = 2;
922 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
923 total_size +=
924 ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize(
925 this_._internal_to_node(), 1,
926 this_._impl_._to_node_cached_byte_size_);
927 }
928 // repeated double demand = 3;
929 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
930 ::size_t data_size = ::size_t{8} *
931 ::_pbi::FromIntSize(this_._internal_demand_size());
932 ::size_t tag_size = data_size == 0
933 ? 0
934 : 1 + ::_pbi::WireFormatLite::Int32Size(
935 static_cast<::int32_t>(data_size));
936 total_size += tag_size + data_size;
937 }
938 }
939 return this_.MaybeComputeUnknownFieldsSize(total_size,
940 &this_._impl_._cached_size_);
941}
942
943void Commodities::MergeImpl(::google::protobuf::MessageLite& to_msg,
944 const ::google::protobuf::MessageLite& from_msg) {
945 auto* const _this =
946 static_cast<Commodities*>(&to_msg);
947 auto& from = static_cast<const Commodities&>(from_msg);
948 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
949 from.CheckHasBitConsistency();
950 }
951 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.routing.Commodities)
952 ABSL_DCHECK_NE(&from, _this);
953 ::uint32_t cached_has_bits = 0;
954 (void)cached_has_bits;
955
956 cached_has_bits = from._impl_._has_bits_[0];
957 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
958 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
959 _this->_internal_mutable_from_node()->MergeFrom(from._internal_from_node());
960 }
961 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
962 _this->_internal_mutable_to_node()->MergeFrom(from._internal_to_node());
963 }
964 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
965 _this->_internal_mutable_demand()->MergeFrom(from._internal_demand());
966 }
967 }
968 _this->_impl_._has_bits_[0] |= cached_has_bits;
969 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
970 from._internal_metadata_);
971}
972
973void Commodities::CopyFrom(const Commodities& from) {
974 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.routing.Commodities)
975 if (&from == this) return;
976 Clear();
977 MergeFrom(from);
978}
979
980
981void Commodities::InternalSwap(Commodities* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
982 using ::std::swap;
983 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
984 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
985 _impl_.from_node_.InternalSwap(&other->_impl_.from_node_);
986 _impl_.to_node_.InternalSwap(&other->_impl_.to_node_);
987 _impl_.demand_.InternalSwap(&other->_impl_.demand_);
988}
989
990::google::protobuf::Metadata Commodities::GetMetadata() const {
991 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
993// ===================================================================
994
996 public:
997 using HasBits =
998 decltype(::std::declval<CapacityPlanningInstance>()._impl_._has_bits_);
999 static constexpr ::int32_t kHasBitsOffset =
1000 8 * PROTOBUF_FIELD_OFFSET(CapacityPlanningInstance, _impl_._has_bits_);
1001};
1003CapacityPlanningInstance::CapacityPlanningInstance(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1004#if defined(PROTOBUF_CUSTOM_VTABLE)
1005 : ::google::protobuf::Message(arena, CapacityPlanningInstance_class_data_.base()) {
1006#else // PROTOBUF_CUSTOM_VTABLE
1007 : ::google::protobuf::Message(arena) {
1008#endif // PROTOBUF_CUSTOM_VTABLE
1009 SharedCtor(arena);
1010 // @@protoc_insertion_point(arena_constructor:operations_research.routing.CapacityPlanningInstance)
1011}
1012PROTOBUF_NDEBUG_INLINE CapacityPlanningInstance::Impl_::Impl_(
1013 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1014 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
1015 [[maybe_unused]] const ::operations_research::routing::CapacityPlanningInstance& from_msg)
1016 : _has_bits_{from._has_bits_},
1017 _cached_size_{0} {}
1018
1020 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1021 const CapacityPlanningInstance& from)
1022#if defined(PROTOBUF_CUSTOM_VTABLE)
1023 : ::google::protobuf::Message(arena, CapacityPlanningInstance_class_data_.base()) {
1024#else // PROTOBUF_CUSTOM_VTABLE
1025 : ::google::protobuf::Message(arena) {
1026#endif // PROTOBUF_CUSTOM_VTABLE
1027 CapacityPlanningInstance* const _this = this;
1028 (void)_this;
1029 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1030 from._internal_metadata_);
1031 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1032 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
1033 _impl_.topology_ = (CheckHasBit(cached_has_bits, 0x00000001U))
1034 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.topology_)
1035 : nullptr;
1036 _impl_.commodities_ = (CheckHasBit(cached_has_bits, 0x00000002U))
1037 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.commodities_)
1038 : nullptr;
1039
1040 // @@protoc_insertion_point(copy_constructor:operations_research.routing.CapacityPlanningInstance)
1041}
1042PROTOBUF_NDEBUG_INLINE CapacityPlanningInstance::Impl_::Impl_(
1043 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1044 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1045 : _cached_size_{0} {}
1046
1047inline void CapacityPlanningInstance::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1048 new (&_impl_) Impl_(internal_visibility(), arena);
1049 ::memset(reinterpret_cast<char*>(&_impl_) +
1050 offsetof(Impl_, topology_),
1051 0,
1052 offsetof(Impl_, commodities_) -
1053 offsetof(Impl_, topology_) +
1054 sizeof(Impl_::commodities_));
1055}
1057 // @@protoc_insertion_point(destructor:operations_research.routing.CapacityPlanningInstance)
1058 SharedDtor(*this);
1060inline void CapacityPlanningInstance::SharedDtor(MessageLite& self) {
1061 CapacityPlanningInstance& this_ = static_cast<CapacityPlanningInstance&>(self);
1062 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1063 this_.CheckHasBitConsistency();
1064 }
1065 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1066 ABSL_DCHECK(this_.GetArena() == nullptr);
1067 delete this_._impl_.topology_;
1068 delete this_._impl_.commodities_;
1069 this_._impl_.~Impl_();
1070}
1071
1072inline void* PROTOBUF_NONNULL CapacityPlanningInstance::PlacementNew_(
1073 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1074 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1075 return ::new (mem) CapacityPlanningInstance(arena);
1076}
1077constexpr auto CapacityPlanningInstance::InternalNewImpl_() {
1078 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(CapacityPlanningInstance),
1079 alignof(CapacityPlanningInstance));
1080}
1082 return ::google::protobuf::internal::ClassDataFull{
1083 ::google::protobuf::internal::ClassData{
1085 &_table_.header,
1086 nullptr, // OnDemandRegisterArenaDtor
1087 nullptr, // IsInitialized
1088 &CapacityPlanningInstance::MergeImpl,
1089 ::google::protobuf::Message::GetNewImpl<CapacityPlanningInstance>(),
1090#if defined(PROTOBUF_CUSTOM_VTABLE)
1091 &CapacityPlanningInstance::SharedDtor,
1092 ::google::protobuf::Message::GetClearImpl<CapacityPlanningInstance>(), &CapacityPlanningInstance::ByteSizeLong,
1094#endif // PROTOBUF_CUSTOM_VTABLE
1095 PROTOBUF_FIELD_OFFSET(CapacityPlanningInstance, _impl_._cached_size_),
1096 false,
1097 },
1098 &CapacityPlanningInstance::kDescriptorMethods,
1100 nullptr, // tracker
1101 };
1102}
1103
1104PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1105 ::google::protobuf::internal::ClassDataFull CapacityPlanningInstance_class_data_ =
1107
1108PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1109CapacityPlanningInstance::GetClassData() const {
1110 ::google::protobuf::internal::PrefetchToLocalCache(&CapacityPlanningInstance_class_data_);
1111 ::google::protobuf::internal::PrefetchToLocalCache(CapacityPlanningInstance_class_data_.tc_table);
1113}
1114PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1115const ::_pbi::TcParseTable<1, 2, 2, 0, 2>
1116CapacityPlanningInstance::_table_ = {
1117 {
1118 PROTOBUF_FIELD_OFFSET(CapacityPlanningInstance, _impl_._has_bits_),
1119 0, // no _extensions_
1120 2, 8, // max_field_number, fast_idx_mask
1121 offsetof(decltype(_table_), field_lookup_table),
1122 4294967292, // skipmap
1123 offsetof(decltype(_table_), field_entries),
1124 2, // num_field_entries
1125 2, // num_aux_entries
1126 offsetof(decltype(_table_), aux_entries),
1128 nullptr, // post_loop_handler
1129 ::_pbi::TcParser::GenericFallback, // fallback
1130 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1131 ::_pbi::TcParser::GetTable<::operations_research::routing::CapacityPlanningInstance>(), // to_prefetch
1132 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
1133 }, {{
1134 // .operations_research.routing.Commodities commodities = 2;
1135 {::_pbi::TcParser::FastMtS1,
1136 {18, 1, 1,
1137 PROTOBUF_FIELD_OFFSET(CapacityPlanningInstance, _impl_.commodities_)}},
1138 // .operations_research.routing.NetworkTopology topology = 1;
1139 {::_pbi::TcParser::FastMtS1,
1140 {10, 0, 0,
1141 PROTOBUF_FIELD_OFFSET(CapacityPlanningInstance, _impl_.topology_)}},
1142 }}, {{
1143 65535, 65535
1144 }}, {{
1145 // .operations_research.routing.NetworkTopology topology = 1;
1146 {PROTOBUF_FIELD_OFFSET(CapacityPlanningInstance, _impl_.topology_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1147 // .operations_research.routing.Commodities commodities = 2;
1148 {PROTOBUF_FIELD_OFFSET(CapacityPlanningInstance, _impl_.commodities_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1149 }},
1150 {{
1151 {::_pbi::TcParser::GetTable<::operations_research::routing::NetworkTopology>()},
1152 {::_pbi::TcParser::GetTable<::operations_research::routing::Commodities>()},
1153 }},
1154 {{
1155 }},
1156};
1157PROTOBUF_NOINLINE void CapacityPlanningInstance::Clear() {
1158// @@protoc_insertion_point(message_clear_start:operations_research.routing.CapacityPlanningInstance)
1159 ::google::protobuf::internal::TSanWrite(&_impl_);
1160 ::uint32_t cached_has_bits = 0;
1161 // Prevent compiler warnings about cached_has_bits being unused
1162 (void) cached_has_bits;
1163
1164 cached_has_bits = _impl_._has_bits_[0];
1165 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
1166 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1167 ABSL_DCHECK(_impl_.topology_ != nullptr);
1168 _impl_.topology_->Clear();
1169 }
1170 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1171 ABSL_DCHECK(_impl_.commodities_ != nullptr);
1172 _impl_.commodities_->Clear();
1173 }
1174 }
1175 _impl_._has_bits_.Clear();
1176 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1177}
1178
1179#if defined(PROTOBUF_CUSTOM_VTABLE)
1180::uint8_t* PROTOBUF_NONNULL CapacityPlanningInstance::_InternalSerialize(
1181 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1182 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1183 const CapacityPlanningInstance& this_ = static_cast<const CapacityPlanningInstance&>(base);
1184#else // PROTOBUF_CUSTOM_VTABLE
1185::uint8_t* PROTOBUF_NONNULL CapacityPlanningInstance::_InternalSerialize(
1186 ::uint8_t* PROTOBUF_NONNULL target,
1187 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1188 const CapacityPlanningInstance& this_ = *this;
1189#endif // PROTOBUF_CUSTOM_VTABLE
1190 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1191 this_.CheckHasBitConsistency();
1192 }
1193 // @@protoc_insertion_point(serialize_to_array_start:operations_research.routing.CapacityPlanningInstance)
1194 ::uint32_t cached_has_bits = 0;
1195 (void)cached_has_bits;
1196
1197 cached_has_bits = this_._impl_._has_bits_[0];
1198 // .operations_research.routing.NetworkTopology topology = 1;
1199 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1200 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1201 1, *this_._impl_.topology_, this_._impl_.topology_->GetCachedSize(), target,
1202 stream);
1203 }
1204
1205 // .operations_research.routing.Commodities commodities = 2;
1206 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1207 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1208 2, *this_._impl_.commodities_, this_._impl_.commodities_->GetCachedSize(), target,
1209 stream);
1210 }
1211
1212 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1213 target =
1214 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1215 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1216 }
1217 // @@protoc_insertion_point(serialize_to_array_end:operations_research.routing.CapacityPlanningInstance)
1218 return target;
1219}
1220
1221#if defined(PROTOBUF_CUSTOM_VTABLE)
1223 const CapacityPlanningInstance& this_ = static_cast<const CapacityPlanningInstance&>(base);
1224#else // PROTOBUF_CUSTOM_VTABLE
1226 const CapacityPlanningInstance& this_ = *this;
1227#endif // PROTOBUF_CUSTOM_VTABLE
1228 // @@protoc_insertion_point(message_byte_size_start:operations_research.routing.CapacityPlanningInstance)
1229 ::size_t total_size = 0;
1230
1231 ::uint32_t cached_has_bits = 0;
1232 // Prevent compiler warnings about cached_has_bits being unused
1233 (void)cached_has_bits;
1234
1235 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1236 cached_has_bits = this_._impl_._has_bits_[0];
1237 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
1238 // .operations_research.routing.NetworkTopology topology = 1;
1239 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1240 total_size += 1 +
1241 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.topology_);
1242 }
1243 // .operations_research.routing.Commodities commodities = 2;
1244 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1245 total_size += 1 +
1246 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.commodities_);
1247 }
1248 }
1249 return this_.MaybeComputeUnknownFieldsSize(total_size,
1250 &this_._impl_._cached_size_);
1251}
1252
1253void CapacityPlanningInstance::MergeImpl(::google::protobuf::MessageLite& to_msg,
1254 const ::google::protobuf::MessageLite& from_msg) {
1255 auto* const _this =
1256 static_cast<CapacityPlanningInstance*>(&to_msg);
1257 auto& from = static_cast<const CapacityPlanningInstance&>(from_msg);
1258 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1259 from.CheckHasBitConsistency();
1260 }
1261 ::google::protobuf::Arena* arena = _this->GetArena();
1262 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.routing.CapacityPlanningInstance)
1263 ABSL_DCHECK_NE(&from, _this);
1264 ::uint32_t cached_has_bits = 0;
1265 (void)cached_has_bits;
1266
1267 cached_has_bits = from._impl_._has_bits_[0];
1268 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
1269 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1270 ABSL_DCHECK(from._impl_.topology_ != nullptr);
1271 if (_this->_impl_.topology_ == nullptr) {
1272 _this->_impl_.topology_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.topology_);
1273 } else {
1274 _this->_impl_.topology_->MergeFrom(*from._impl_.topology_);
1275 }
1276 }
1277 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1278 ABSL_DCHECK(from._impl_.commodities_ != nullptr);
1279 if (_this->_impl_.commodities_ == nullptr) {
1280 _this->_impl_.commodities_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.commodities_);
1281 } else {
1282 _this->_impl_.commodities_->MergeFrom(*from._impl_.commodities_);
1283 }
1284 }
1285 }
1286 _this->_impl_._has_bits_[0] |= cached_has_bits;
1287 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1288 from._internal_metadata_);
1289}
1290
1291void CapacityPlanningInstance::CopyFrom(const CapacityPlanningInstance& from) {
1292 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.routing.CapacityPlanningInstance)
1293 if (&from == this) return;
1295 MergeFrom(from);
1296}
1297
1298
1299void CapacityPlanningInstance::InternalSwap(CapacityPlanningInstance* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1300 using ::std::swap;
1301 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1302 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1303 ::google::protobuf::internal::memswap<
1304 PROTOBUF_FIELD_OFFSET(CapacityPlanningInstance, _impl_.commodities_)
1305 + sizeof(CapacityPlanningInstance::_impl_.commodities_)
1306 - PROTOBUF_FIELD_OFFSET(CapacityPlanningInstance, _impl_.topology_)>(
1307 reinterpret_cast<char*>(&_impl_.topology_),
1308 reinterpret_cast<char*>(&other->_impl_.topology_));
1309}
1310
1311::google::protobuf::Metadata CapacityPlanningInstance::GetMetadata() const {
1312 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1313}
1314// @@protoc_insertion_point(namespace_scope)
1315} // namespace routing
1316} // namespace operations_research
1317namespace google {
1318namespace protobuf {
1319} // namespace protobuf
1320} // namespace google
1321// @@protoc_insertion_point(global_scope)
1322PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
1323 _static_init2_ [[maybe_unused]] =
1325 ::std::false_type{});
1326#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[]
static constexprconst ::_pb::EnumDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_enum_descriptors_ortools_2frouting_2fparsers_2fcapacity_5fplanning_2eproto
const ::uint32_t TableStruct_ortools_2frouting_2fparsers_2fcapacity_5fplanning_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold)
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2frouting_2fparsers_2fcapacity_5fplanning_2eproto
static constexprconst ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_service_descriptors_ortools_2frouting_2fparsers_2fcapacity_5fplanning_2eproto
::absl::once_flag descriptor_table_ortools_2frouting_2fparsers_2fcapacity_5fplanning_2eproto_once
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void MergeFrom(const CapacityPlanningInstance &from)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
void CopyFrom(const CapacityPlanningInstance &from)
decltype(::std::declval< Commodities >()._impl_._has_bits_) HasBits
friend class ::google::protobuf::MessageLite
friend void swap(Commodities &a, Commodities &b)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
::google::protobuf::Metadata GetMetadata() const
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
decltype(::std::declval< NetworkTopology >()._impl_._has_bits_) HasBits
::google::protobuf::Metadata GetMetadata() const
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
friend void swap(NetworkTopology &a, NetworkTopology &b)
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
static constexpr ::_pbi::MigrationSchema *PROTOBUF_NULLABLE schemas
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull CapacityPlanningInstance_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CommoditiesDefaultTypeInternal _Commodities_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull NetworkTopology_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull Commodities_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NetworkTopologyDefaultTypeInternal _NetworkTopology_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CapacityPlanningInstanceDefaultTypeInternal _CapacityPlanningInstance_default_instance_
OR-Tools root namespace.