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"
22#include "google/protobuf/port_def.inc"
23PROTOBUF_PRAGMA_INIT_SEG
26namespace _fl = ::google::protobuf::internal::field_layout;
30inline constexpr NetworkTopology::Impl_::Impl_(
31 ::_pbi::ConstantInitialized) noexcept
34 _from_node_cached_byte_size_{0},
36 _to_node_cached_byte_size_{0},
43#if defined(PROTOBUF_CUSTOM_VTABLE)
46 : ::google::protobuf::Message(),
48 _impl_(::_pbi::ConstantInitialized()) {
58PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
61inline constexpr Commodities::Impl_::Impl_(
62 ::_pbi::ConstantInitialized) noexcept
65 _from_node_cached_byte_size_{0},
67 _to_node_cached_byte_size_{0},
72#if defined(PROTOBUF_CUSTOM_VTABLE)
75 : ::google::protobuf::Message(),
77 _impl_(::_pbi::ConstantInitialized()) {
87PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
90inline constexpr CapacityPlanningInstance::Impl_::Impl_(
91 ::_pbi::ConstantInitialized) noexcept
94 commodities_{
nullptr} {}
98#if defined(PROTOBUF_CUSTOM_VTABLE)
101 : ::google::protobuf::Message(),
103 _impl_(::_pbi::ConstantInitialized()) {
113PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
117static constexpr const ::_pb::EnumDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
119static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
155static const ::_pbi::MigrationSchema
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"
187 descriptor_table_protodef_ortools_2frouting_2fparsers_2fcapacity_5fplanning_2eproto,
188 "ortools/routing/parsers/capacity_planning.proto",
206 decltype(::std::declval<NetworkTopology>()._impl_._has_bits_);
212#if defined(PROTOBUF_CUSTOM_VTABLE)
215 : ::google::protobuf::Message(arena) {
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_},
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_} {}
235 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
237#if defined(PROTOBUF_CUSTOM_VTABLE)
240 : ::google::protobuf::Message(arena) {
244 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
245 from._internal_metadata_);
246 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
250PROTOBUF_NDEBUG_INLINE NetworkTopology::Impl_::Impl_(
251 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
252 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
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} {}
262inline void NetworkTopology::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
263 new (&
_impl_) Impl_(internal_visibility(), arena);
269inline void NetworkTopology::SharedDtor(
MessageLite& self) {
271 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
272 this_.CheckHasBitConsistency();
274 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
275 ABSL_DCHECK(this_.GetArena() ==
nullptr);
279inline void* PROTOBUF_NONNULL NetworkTopology::PlacementNew_(
280 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
281 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
284constexpr auto NetworkTopology::InternalNewImpl_() {
285 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
288 InternalGetArenaOffset(
289 ::google::protobuf::Message::internal_visibility()),
292 InternalGetArenaOffset(
293 ::google::protobuf::Message::internal_visibility()),
296 InternalGetArenaOffset(
297 ::google::protobuf::Message::internal_visibility()),
300 InternalGetArenaOffset(
301 ::google::protobuf::Message::internal_visibility()),
304 InternalGetArenaOffset(
305 ::google::protobuf::Message::internal_visibility()),
307 if (arena_bits.has_value()) {
308 return ::google::protobuf::internal::MessageCreator::ZeroInit(
309 sizeof(NetworkTopology), alignof(NetworkTopology), *arena_bits);
311 return ::google::protobuf::internal::MessageCreator(&NetworkTopology::PlacementNew_,
312 sizeof(NetworkTopology),
313 alignof(NetworkTopology));
317 return ::google::protobuf::internal::ClassDataFull{
318 ::google::protobuf::internal::ClassData{
323 &NetworkTopology::MergeImpl,
324 ::google::protobuf::Message::GetNewImpl<NetworkTopology>(),
325#if defined(PROTOBUF_CUSTOM_VTABLE)
326 &NetworkTopology::SharedDtor,
333 &NetworkTopology::kDescriptorMethods,
339PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
343PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
344NetworkTopology::GetClassData()
const {
349PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
350const ::_pbi::TcParseTable<3, 5, 0, 0, 2>
351NetworkTopology::_table_ = {
356 offsetof(
decltype(_table_), field_lookup_table),
358 offsetof(
decltype(_table_), field_entries),
361 offsetof(
decltype(_table_), field_names),
364 ::_pbi::TcParser::GenericFallback,
365 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
366 ::_pbi::TcParser::GetTable<::operations_research::routing::NetworkTopology>(),
369 {::_pbi::TcParser::MiniParse, {}},
371 {::_pbi::TcParser::FastV32P1,
375 {::_pbi::TcParser::FastV32P1,
379 {::_pbi::TcParser::FastF64P1,
383 {::_pbi::TcParser::FastF64P1,
387 {::_pbi::TcParser::FastF64P1,
390 {::_pbi::TcParser::MiniParse, {}},
391 {::_pbi::TcParser::MiniParse, {}},
412 ::google::protobuf::internal::TSanWrite(&
_impl_);
413 ::uint32_t cached_has_bits = 0;
415 (void) cached_has_bits;
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();
422 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
425 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
426 _impl_.variable_cost_.Clear();
428 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
429 _impl_.fixed_cost_.Clear();
431 if (CheckHasBitForRepeated(cached_has_bits, 0x00000010U)) {
435 _impl_._has_bits_.Clear();
436 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
439#if defined(PROTOBUF_CUSTOM_VTABLE)
441 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
442 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
446 ::uint8_t* PROTOBUF_NONNULL target,
447 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
450 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
451 this_.CheckHasBitConsistency();
454 ::uint32_t cached_has_bits = 0;
455 (void)cached_has_bits;
457 cached_has_bits = this_.
_impl_._has_bits_[0];
459 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
461 int byte_size = this_.
_impl_._from_node_cached_byte_size_.Get();
463 target = stream->WriteInt32Packed(
464 1, this_._internal_from_node(), byte_size, target);
470 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
472 int byte_size = this_.
_impl_._to_node_cached_byte_size_.Get();
474 target = stream->WriteInt32Packed(
475 2, this_._internal_to_node(), byte_size, target);
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);
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);
495 if (CheckHasBitForRepeated(cached_has_bits, 0x00000010U)) {
496 if (this_._internal_capacity_size() > 0) {
497 target = stream->WriteFixedPacked(5, this_._internal_capacity(), target);
501 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
503 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
504 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
510#if defined(PROTOBUF_CUSTOM_VTABLE)
518 ::size_t total_size = 0;
520 ::uint32_t cached_has_bits = 0;
522 (void)cached_has_bits;
524 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
525 cached_has_bits = this_.
_impl_._has_bits_[0];
526 if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
528 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
530 ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize(
531 this_._internal_from_node(), 1,
532 this_.
_impl_._from_node_cached_byte_size_);
535 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
537 ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize(
538 this_._internal_to_node(), 1,
539 this_.
_impl_._to_node_cached_byte_size_);
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
547 : 1 + ::_pbi::WireFormatLite::Int32Size(
548 static_cast<::int32_t
>(data_size));
549 total_size += tag_size + data_size;
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
557 : 1 + ::_pbi::WireFormatLite::Int32Size(
558 static_cast<::int32_t
>(data_size));
559 total_size += tag_size + data_size;
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
567 : 1 + ::_pbi::WireFormatLite::Int32Size(
568 static_cast<::int32_t
>(data_size));
569 total_size += tag_size + data_size;
572 return this_.MaybeComputeUnknownFieldsSize(total_size,
573 &this_.
_impl_._cached_size_);
576void NetworkTopology::MergeImpl(::google::protobuf::MessageLite& to_msg,
577 const ::google::protobuf::MessageLite& from_msg) {
581 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
582 from.CheckHasBitConsistency();
585 ABSL_DCHECK_NE(&from, _this);
586 ::uint32_t cached_has_bits = 0;
587 (void)cached_has_bits;
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());
594 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
595 _this->_internal_mutable_to_node()->MergeFrom(from._internal_to_node());
597 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
598 _this->_internal_mutable_variable_cost()->MergeFrom(from._internal_variable_cost());
600 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
601 _this->_internal_mutable_fixed_cost()->MergeFrom(from._internal_fixed_cost());
603 if (CheckHasBitForRepeated(cached_has_bits, 0x00000010U)) {
604 _this->_internal_mutable_capacity()->MergeFrom(from._internal_capacity());
607 _this->_impl_._has_bits_[0] |= cached_has_bits;
608 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
609 from._internal_metadata_);
614 if (&from ==
this)
return;
620void NetworkTopology::InternalSwap(
NetworkTopology* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
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_);
632 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
639 decltype(::std::declval<Commodities>()._impl_._has_bits_);
645#if defined(PROTOBUF_CUSTOM_VTABLE)
648 : ::google::protobuf::Message(arena) {
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_},
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_} {}
666 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
668#if defined(PROTOBUF_CUSTOM_VTABLE)
671 : ::google::protobuf::Message(arena) {
675 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
676 from._internal_metadata_);
677 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
681PROTOBUF_NDEBUG_INLINE Commodities::Impl_::Impl_(
682 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
683 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
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} {}
691inline void Commodities::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
692 new (&
_impl_) Impl_(internal_visibility(), arena);
698inline void Commodities::SharedDtor(
MessageLite& self) {
700 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
701 this_.CheckHasBitConsistency();
703 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
704 ABSL_DCHECK(this_.GetArena() ==
nullptr);
708inline void* PROTOBUF_NONNULL Commodities::PlacementNew_(
709 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
710 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
713constexpr auto Commodities::InternalNewImpl_() {
714 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
717 InternalGetArenaOffset(
718 ::google::protobuf::Message::internal_visibility()),
721 InternalGetArenaOffset(
722 ::google::protobuf::Message::internal_visibility()),
725 InternalGetArenaOffset(
726 ::google::protobuf::Message::internal_visibility()),
728 if (arena_bits.has_value()) {
729 return ::google::protobuf::internal::MessageCreator::ZeroInit(
730 sizeof(Commodities), alignof(Commodities), *arena_bits);
732 return ::google::protobuf::internal::MessageCreator(&Commodities::PlacementNew_,
734 alignof(Commodities));
738 return ::google::protobuf::internal::ClassDataFull{
739 ::google::protobuf::internal::ClassData{
744 &Commodities::MergeImpl,
745 ::google::protobuf::Message::GetNewImpl<Commodities>(),
746#if defined(PROTOBUF_CUSTOM_VTABLE)
747 &Commodities::SharedDtor,
754 &Commodities::kDescriptorMethods,
760PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
764PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
765Commodities::GetClassData()
const {
770PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
771const ::_pbi::TcParseTable<2, 3, 0, 0, 2>
772Commodities::_table_ = {
777 offsetof(
decltype(_table_), field_lookup_table),
779 offsetof(
decltype(_table_), field_entries),
782 offsetof(
decltype(_table_), field_names),
785 ::_pbi::TcParser::GenericFallback,
786 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
787 ::_pbi::TcParser::GetTable<::operations_research::routing::Commodities>(),
790 {::_pbi::TcParser::MiniParse, {}},
792 {::_pbi::TcParser::FastV32P1,
796 {::_pbi::TcParser::FastV32P1,
800 {::_pbi::TcParser::FastF64P1,
819 ::google::protobuf::internal::TSanWrite(&
_impl_);
820 ::uint32_t cached_has_bits = 0;
822 (void) cached_has_bits;
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();
829 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
832 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
836 _impl_._has_bits_.Clear();
837 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
840#if defined(PROTOBUF_CUSTOM_VTABLE)
842 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
843 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
847 ::uint8_t* PROTOBUF_NONNULL target,
848 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
851 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
852 this_.CheckHasBitConsistency();
855 ::uint32_t cached_has_bits = 0;
856 (void)cached_has_bits;
858 cached_has_bits = this_.
_impl_._has_bits_[0];
860 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
862 int byte_size = this_.
_impl_._from_node_cached_byte_size_.Get();
864 target = stream->WriteInt32Packed(
865 1, this_._internal_from_node(), byte_size, target);
871 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
873 int byte_size = this_.
_impl_._to_node_cached_byte_size_.Get();
875 target = stream->WriteInt32Packed(
876 2, this_._internal_to_node(), byte_size, target);
882 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
883 if (this_._internal_demand_size() > 0) {
884 target = stream->WriteFixedPacked(3, this_._internal_demand(), target);
888 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
890 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
891 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
897#if defined(PROTOBUF_CUSTOM_VTABLE)
905 ::size_t total_size = 0;
907 ::uint32_t cached_has_bits = 0;
909 (void)cached_has_bits;
911 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
912 cached_has_bits = this_.
_impl_._has_bits_[0];
913 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
915 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
917 ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize(
918 this_._internal_from_node(), 1,
919 this_.
_impl_._from_node_cached_byte_size_);
922 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
924 ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize(
925 this_._internal_to_node(), 1,
926 this_.
_impl_._to_node_cached_byte_size_);
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
934 : 1 + ::_pbi::WireFormatLite::Int32Size(
935 static_cast<::int32_t
>(data_size));
936 total_size += tag_size + data_size;
939 return this_.MaybeComputeUnknownFieldsSize(total_size,
940 &this_.
_impl_._cached_size_);
943void Commodities::MergeImpl(::google::protobuf::MessageLite& to_msg,
944 const ::google::protobuf::MessageLite& from_msg) {
947 auto& from =
static_cast<const Commodities&
>(from_msg);
948 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
949 from.CheckHasBitConsistency();
952 ABSL_DCHECK_NE(&from, _this);
953 ::uint32_t cached_has_bits = 0;
954 (void)cached_has_bits;
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());
961 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
962 _this->_internal_mutable_to_node()->MergeFrom(from._internal_to_node());
964 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
965 _this->_internal_mutable_demand()->MergeFrom(from._internal_demand());
968 _this->_impl_._has_bits_[0] |= cached_has_bits;
969 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
970 from._internal_metadata_);
975 if (&from ==
this)
return;
981void Commodities::InternalSwap(
Commodities* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
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_);
991 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
998 decltype(::std::declval<CapacityPlanningInstance>()._impl_._has_bits_);
1004#if defined(PROTOBUF_CUSTOM_VTABLE)
1007 : ::google::protobuf::Message(arena) {
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_},
1020 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1022#if defined(PROTOBUF_CUSTOM_VTABLE)
1025 : ::google::protobuf::Message(arena) {
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_)
1036 _impl_.commodities_ = (CheckHasBit(cached_has_bits, 0x00000002U))
1037 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.commodities_)
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} {}
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_),
1052 offsetof(Impl_, commodities_) -
1053 offsetof(Impl_, topology_) +
1054 sizeof(Impl_::commodities_));
1060inline void CapacityPlanningInstance::SharedDtor(
MessageLite& self) {
1062 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1063 this_.CheckHasBitConsistency();
1065 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1066 ABSL_DCHECK(this_.GetArena() ==
nullptr);
1067 delete this_.
_impl_.topology_;
1068 delete this_.
_impl_.commodities_;
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);
1077constexpr auto CapacityPlanningInstance::InternalNewImpl_() {
1078 return ::google::protobuf::internal::MessageCreator::ZeroInit(
sizeof(CapacityPlanningInstance),
1079 alignof(CapacityPlanningInstance));
1082 return ::google::protobuf::internal::ClassDataFull{
1083 ::google::protobuf::internal::ClassData{
1088 &CapacityPlanningInstance::MergeImpl,
1089 ::google::protobuf::Message::GetNewImpl<CapacityPlanningInstance>(),
1090#if defined(PROTOBUF_CUSTOM_VTABLE)
1091 &CapacityPlanningInstance::SharedDtor,
1098 &CapacityPlanningInstance::kDescriptorMethods,
1104PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1108PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1109CapacityPlanningInstance::GetClassData()
const {
1114PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1115const ::_pbi::TcParseTable<1, 2, 2, 0, 2>
1116CapacityPlanningInstance::_table_ = {
1118 PROTOBUF_FIELD_OFFSET(CapacityPlanningInstance,
_impl_._has_bits_),
1121 offsetof(
decltype(_table_), field_lookup_table),
1123 offsetof(
decltype(_table_), field_entries),
1126 offsetof(
decltype(_table_), aux_entries),
1129 ::_pbi::TcParser::GenericFallback,
1130 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1131 ::_pbi::TcParser::GetTable<::operations_research::routing::CapacityPlanningInstance>(),
1135 {::_pbi::TcParser::FastMtS1,
1137 PROTOBUF_FIELD_OFFSET(CapacityPlanningInstance,
_impl_.commodities_)}},
1139 {::_pbi::TcParser::FastMtS1,
1141 PROTOBUF_FIELD_OFFSET(CapacityPlanningInstance,
_impl_.topology_)}},
1146 {PROTOBUF_FIELD_OFFSET(CapacityPlanningInstance,
_impl_.topology_),
_Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1148 {PROTOBUF_FIELD_OFFSET(CapacityPlanningInstance,
_impl_.commodities_),
_Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1151 {::_pbi::TcParser::GetTable<::operations_research::routing::NetworkTopology>()},
1152 {::_pbi::TcParser::GetTable<::operations_research::routing::Commodities>()},
1159 ::google::protobuf::internal::TSanWrite(&
_impl_);
1160 ::uint32_t cached_has_bits = 0;
1162 (void) cached_has_bits;
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();
1170 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1171 ABSL_DCHECK(
_impl_.commodities_ !=
nullptr);
1172 _impl_.commodities_->Clear();
1175 _impl_._has_bits_.Clear();
1176 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1179#if defined(PROTOBUF_CUSTOM_VTABLE)
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);
1186 ::uint8_t* PROTOBUF_NONNULL target,
1187 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
1190 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1191 this_.CheckHasBitConsistency();
1194 ::uint32_t cached_has_bits = 0;
1195 (void)cached_has_bits;
1197 cached_has_bits = this_.
_impl_._has_bits_[0];
1199 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1200 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1201 1, *this_.
_impl_.topology_, this_.
_impl_.topology_->GetCachedSize(), target,
1206 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1207 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1208 2, *this_.
_impl_.commodities_, this_.
_impl_.commodities_->GetCachedSize(), target,
1212 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1214 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1215 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1221#if defined(PROTOBUF_CUSTOM_VTABLE)
1223 const CapacityPlanningInstance& this_ =
static_cast<const CapacityPlanningInstance&
>(base);
1226 const CapacityPlanningInstance& this_ = *
this;
1229 ::size_t total_size = 0;
1231 ::uint32_t cached_has_bits = 0;
1233 (void)cached_has_bits;
1235 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1236 cached_has_bits = this_._impl_._has_bits_[0];
1237 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
1239 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1241 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.topology_);
1244 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1246 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.commodities_);
1249 return this_.MaybeComputeUnknownFieldsSize(total_size,
1250 &this_._impl_._cached_size_);
1253void CapacityPlanningInstance::MergeImpl(::google::protobuf::MessageLite& to_msg,
1254 const ::google::protobuf::MessageLite& from_msg) {
1256 static_cast<CapacityPlanningInstance*
>(&to_msg);
1257 auto& from =
static_cast<const CapacityPlanningInstance&
>(from_msg);
1258 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1259 from.CheckHasBitConsistency();
1263 ABSL_DCHECK_NE(&from, _this);
1264 ::uint32_t cached_has_bits = 0;
1265 (void)cached_has_bits;
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_);
1274 _this->_impl_.topology_->MergeFrom(*from._impl_.topology_);
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_);
1282 _this->_impl_.commodities_->MergeFrom(*from._impl_.commodities_);
1286 _this->_impl_._has_bits_[0] |= cached_has_bits;
1287 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1288 from._internal_metadata_);
1293 if (&from ==
this)
return;
1301 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1302 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1303 ::google::protobuf::internal::memswap<
1307 reinterpret_cast<char*
>(&
_impl_.topology_),
1308 reinterpret_cast<char*
>(&other->_impl_.topology_));
1312 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1322PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
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
static constexpr ::int32_t kHasBitsOffset
~CapacityPlanningInstance() PROTOBUF_FINAL
CapacityPlanningInstance()
static constexpr auto InternalGenerateClassData_()
::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
::size_t ByteSizeLong() const final
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
::google::protobuf::Metadata GetMetadata() const
void CopyFrom(const CapacityPlanningInstance &from)
decltype(::std::declval< Commodities >()._impl_._has_bits_) HasBits
static constexpr ::int32_t kHasBitsOffset
friend class ::google::protobuf::MessageLite
friend void swap(Commodities &a, Commodities &b)
void CopyFrom(const Commodities &from)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
::google::protobuf::Metadata GetMetadata() const
static constexpr auto InternalGenerateClassData_()
~Commodities() PROTOBUF_FINAL
::size_t ByteSizeLong() const final
::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
void MergeFrom(const Commodities &from)
friend class ::google::protobuf::Arena
decltype(::std::declval< NetworkTopology >()._impl_._has_bits_) HasBits
static constexpr ::int32_t kHasBitsOffset
friend class ::google::protobuf::MessageLite
void MergeFrom(const NetworkTopology &from)
::google::protobuf::Metadata GetMetadata() const
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
static constexpr auto InternalGenerateClassData_()
friend void swap(NetworkTopology &a, NetworkTopology &b)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
~NetworkTopology() PROTOBUF_FINAL
void CopyFrom(const NetworkTopology &from)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
::size_t ByteSizeLong() 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_
PROTOBUF_CONSTEXPR CapacityPlanningInstanceDefaultTypeInternal()
~CapacityPlanningInstanceDefaultTypeInternal()
CapacityPlanningInstance _instance
PROTOBUF_CONSTEXPR CommoditiesDefaultTypeInternal()
~CommoditiesDefaultTypeInternal()
PROTOBUF_CONSTEXPR NetworkTopologyDefaultTypeInternal()
NetworkTopology _instance
~NetworkTopologyDefaultTypeInternal()