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;
29inline constexpr FlowNodeProto::Impl_::Impl_(
30 ::_pbi::ConstantInitialized) noexcept
33 supply_{::int64_t{0}} {}
37#if defined(PROTOBUF_CUSTOM_VTABLE)
40 : ::google::protobuf::Message(),
42 _impl_(::_pbi::ConstantInitialized()) {
52PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
55inline constexpr FlowArcProto::Impl_::Impl_(
56 ::_pbi::ConstantInitialized) noexcept
60 unit_cost_{::int64_t{0}},
61 capacity_{::int64_t{1}} {}
65#if defined(PROTOBUF_CUSTOM_VTABLE)
68 : ::google::protobuf::Message(),
70 _impl_(::_pbi::ConstantInitialized()) {
80PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
83inline constexpr FlowModelProto::Impl_::Impl_(
84 ::_pbi::ConstantInitialized) noexcept
92#if defined(PROTOBUF_CUSTOM_VTABLE)
95 : ::google::protobuf::Message(),
97 _impl_(::_pbi::ConstantInitialized()) {
107PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
110static const ::_pb::EnumDescriptor* PROTOBUF_NONNULL
112static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
146static const ::_pbi::MigrationSchema
159 "\n ortools/graph/flow_problem.proto\022\023oper"
160 "ations_research\"U\n\014FlowArcProto\022\014\n\004tail\030"
161 "\001 \001(\003\022\014\n\004head\030\002 \001(\003\022\023\n\010capacity\030\003 \001(\003:\0011"
162 "\022\024\n\tunit_cost\030\004 \001(\003:\0010\".\n\rFlowNodeProto\022"
163 "\n\n\002id\030\001 \001(\003\022\021\n\006supply\030\002 \001(\003:\0010\"\206\002\n\016FlowM"
164 "odelProto\0221\n\005nodes\030\001 \003(\0132\".operations_re"
165 "search.FlowNodeProto\022/\n\004arcs\030\002 \003(\0132!.ope"
166 "rations_research.FlowArcProto\022E\n\014problem"
167 "_type\030\003 \001(\0162/.operations_research.FlowMo"
168 "delProto.ProblemType\"I\n\013ProblemType\022\031\n\025L"
169 "INEAR_SUM_ASSIGNMENT\020\000\022\014\n\010MAX_FLOW\020\001\022\021\n\r"
170 "MIN_COST_FLOW\020\002B3\n\030com.google.ortools.gr"
171 "aphP\001\252\002\024Google.OrTools.Graph"
178 descriptor_table_protodef_ortools_2fgraph_2fflow_5fproblem_2eproto,
179 "ortools/graph/flow_problem.proto",
199class FlowArcProto::_Internal {
202 decltype(::std::declval<FlowArcProto>()._impl_._has_bits_);
208#if defined(PROTOBUF_CUSTOM_VTABLE)
211 : ::google::protobuf::Message(arena) {
217 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const FlowArcProto& from)
218#if defined(PROTOBUF_CUSTOM_VTABLE)
221 : ::google::protobuf::Message(arena),
224 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
225 from._internal_metadata_);
227PROTOBUF_NDEBUG_INLINE FlowArcProto::Impl_::Impl_(
228 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
229 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
231 capacity_{::int64_t{1}} {}
233inline void FlowArcProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
234 new (&
_impl_) Impl_(internal_visibility(), arena);
235 ::memset(
reinterpret_cast<char*
>(&
_impl_) +
236 offsetof(Impl_, tail_),
238 offsetof(Impl_, unit_cost_) -
239 offsetof(Impl_, tail_) +
240 sizeof(Impl_::unit_cost_));
246inline void FlowArcProto::SharedDtor(
MessageLite& self) {
248 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
249 this_.CheckHasBitConsistency();
251 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
252 ABSL_DCHECK(this_.GetArena() ==
nullptr);
256inline void* PROTOBUF_NONNULL FlowArcProto::PlacementNew_(
257 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
258 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
261constexpr auto FlowArcProto::InternalNewImpl_() {
262 return ::google::protobuf::internal::MessageCreator::CopyInit(
sizeof(
FlowArcProto),
266 return ::google::protobuf::internal::ClassDataFull{
267 ::google::protobuf::internal::ClassData{
272 &FlowArcProto::MergeImpl,
273 ::google::protobuf::Message::GetNewImpl<FlowArcProto>(),
274#if defined(PROTOBUF_CUSTOM_VTABLE)
275 &FlowArcProto::SharedDtor,
282 &FlowArcProto::kDescriptorMethods,
288PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
292PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
293FlowArcProto::GetClassData()
const {
298PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
299const ::_pbi::TcParseTable<2, 4, 0, 0, 2>
300FlowArcProto::_table_ = {
305 offsetof(
decltype(_table_), field_lookup_table),
307 offsetof(
decltype(_table_), field_entries),
310 offsetof(
decltype(_table_), field_names),
313 ::_pbi::TcParser::GenericFallback,
314 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
315 ::_pbi::TcParser::GetTable<::operations_research::FlowArcProto>(),
319 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(
FlowArcProto,
_impl_.unit_cost_), 2>(),
323 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(
FlowArcProto,
_impl_.tail_), 0>(),
327 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(
FlowArcProto,
_impl_.head_), 1>(),
331 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(
FlowArcProto,
_impl_.capacity_), 3>(),
352 ::google::protobuf::internal::TSanWrite(&
_impl_);
353 ::uint32_t cached_has_bits = 0;
355 (void) cached_has_bits;
357 cached_has_bits =
_impl_._has_bits_[0];
358 if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
359 ::memset(&
_impl_.tail_, 0,
static_cast<::
size_t>(
360 reinterpret_cast<char*
>(&
_impl_.unit_cost_) -
361 reinterpret_cast<char*
>(&
_impl_.tail_)) +
sizeof(
_impl_.unit_cost_));
362 _impl_.capacity_ = ::int64_t{1};
364 _impl_._has_bits_.Clear();
365 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
368#if defined(PROTOBUF_CUSTOM_VTABLE)
370 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
371 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
375 ::uint8_t* PROTOBUF_NONNULL target,
376 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
379 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
380 this_.CheckHasBitConsistency();
383 ::uint32_t cached_has_bits = 0;
384 (void)cached_has_bits;
386 cached_has_bits = this_.
_impl_._has_bits_[0];
388 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
390 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
391 stream, this_._internal_tail(), target);
395 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
397 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
398 stream, this_._internal_head(), target);
402 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
404 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>(
405 stream, this_._internal_capacity(), target);
409 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
411 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<4>(
412 stream, this_._internal_unit_cost(), target);
415 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
417 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
418 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
424#if defined(PROTOBUF_CUSTOM_VTABLE)
432 ::size_t total_size = 0;
434 ::uint32_t cached_has_bits = 0;
436 (void)cached_has_bits;
438 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
439 cached_has_bits = this_.
_impl_._has_bits_[0];
440 if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
442 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
443 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
444 this_._internal_tail());
447 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
448 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
449 this_._internal_head());
452 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
453 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
454 this_._internal_unit_cost());
457 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
458 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
459 this_._internal_capacity());
462 return this_.MaybeComputeUnknownFieldsSize(total_size,
463 &this_.
_impl_._cached_size_);
466void FlowArcProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
467 const ::google::protobuf::MessageLite& from_msg) {
470 auto& from =
static_cast<const FlowArcProto&
>(from_msg);
471 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
472 from.CheckHasBitConsistency();
475 ABSL_DCHECK_NE(&from, _this);
476 ::uint32_t cached_has_bits = 0;
477 (void)cached_has_bits;
479 cached_has_bits = from.
_impl_._has_bits_[0];
480 if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
481 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
482 _this->_impl_.tail_ = from.
_impl_.tail_;
484 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
485 _this->_impl_.head_ = from.
_impl_.head_;
487 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
488 _this->_impl_.unit_cost_ = from.
_impl_.unit_cost_;
490 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
491 _this->_impl_.capacity_ = from.
_impl_.capacity_;
494 _this->_impl_._has_bits_[0] |= cached_has_bits;
495 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
496 from._internal_metadata_);
501 if (&from ==
this)
return;
507void FlowArcProto::InternalSwap(
FlowArcProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
509 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
510 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
511 ::google::protobuf::internal::memswap<
515 reinterpret_cast<char*
>(&
_impl_.tail_),
516 reinterpret_cast<char*
>(&other->_impl_.tail_));
520 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
527 decltype(::std::declval<FlowNodeProto>()._impl_._has_bits_);
533#if defined(PROTOBUF_CUSTOM_VTABLE)
536 : ::google::protobuf::Message(arena) {
542 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const FlowNodeProto& from)
543#if defined(PROTOBUF_CUSTOM_VTABLE)
546 : ::google::protobuf::Message(arena),
549 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
550 from._internal_metadata_);
552PROTOBUF_NDEBUG_INLINE FlowNodeProto::Impl_::Impl_(
553 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
554 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
555 : _cached_size_{0} {}
557inline void FlowNodeProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
558 new (&
_impl_) Impl_(internal_visibility(), arena);
559 ::memset(
reinterpret_cast<char*
>(&
_impl_) +
560 offsetof(Impl_, id_),
562 offsetof(Impl_, supply_) -
563 offsetof(Impl_, id_) +
564 sizeof(Impl_::supply_));
570inline void FlowNodeProto::SharedDtor(
MessageLite& self) {
572 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
573 this_.CheckHasBitConsistency();
575 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
576 ABSL_DCHECK(this_.GetArena() ==
nullptr);
580inline void* PROTOBUF_NONNULL FlowNodeProto::PlacementNew_(
581 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
582 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
585constexpr auto FlowNodeProto::InternalNewImpl_() {
586 return ::google::protobuf::internal::MessageCreator::ZeroInit(
sizeof(
FlowNodeProto),
590 return ::google::protobuf::internal::ClassDataFull{
591 ::google::protobuf::internal::ClassData{
596 &FlowNodeProto::MergeImpl,
597 ::google::protobuf::Message::GetNewImpl<FlowNodeProto>(),
598#if defined(PROTOBUF_CUSTOM_VTABLE)
599 &FlowNodeProto::SharedDtor,
606 &FlowNodeProto::kDescriptorMethods,
612PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
616PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
617FlowNodeProto::GetClassData()
const {
622PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
623const ::_pbi::TcParseTable<1, 2, 0, 0, 2>
624FlowNodeProto::_table_ = {
629 offsetof(
decltype(_table_), field_lookup_table),
631 offsetof(
decltype(_table_), field_entries),
634 offsetof(
decltype(_table_), field_names),
637 ::_pbi::TcParser::GenericFallback,
638 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
639 ::_pbi::TcParser::GetTable<::operations_research::FlowNodeProto>(),
643 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(
FlowNodeProto,
_impl_.supply_), 1>(),
647 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(
FlowNodeProto,
_impl_.id_), 0>(),
664 ::google::protobuf::internal::TSanWrite(&
_impl_);
665 ::uint32_t cached_has_bits = 0;
667 (void) cached_has_bits;
669 cached_has_bits =
_impl_._has_bits_[0];
670 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
671 ::memset(&
_impl_.id_, 0,
static_cast<::
size_t>(
672 reinterpret_cast<char*
>(&
_impl_.supply_) -
673 reinterpret_cast<char*
>(&
_impl_.id_)) +
sizeof(
_impl_.supply_));
675 _impl_._has_bits_.Clear();
676 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
679#if defined(PROTOBUF_CUSTOM_VTABLE)
681 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
682 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
686 ::uint8_t* PROTOBUF_NONNULL target,
687 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
690 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
691 this_.CheckHasBitConsistency();
694 ::uint32_t cached_has_bits = 0;
695 (void)cached_has_bits;
697 cached_has_bits = this_.
_impl_._has_bits_[0];
699 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
701 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
702 stream, this_._internal_id(), target);
706 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
708 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
709 stream, this_._internal_supply(), target);
712 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
714 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
715 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
721#if defined(PROTOBUF_CUSTOM_VTABLE)
729 ::size_t total_size = 0;
731 ::uint32_t cached_has_bits = 0;
733 (void)cached_has_bits;
735 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
736 cached_has_bits = this_.
_impl_._has_bits_[0];
737 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
739 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
740 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
741 this_._internal_id());
744 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
745 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
746 this_._internal_supply());
749 return this_.MaybeComputeUnknownFieldsSize(total_size,
750 &this_.
_impl_._cached_size_);
753void FlowNodeProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
754 const ::google::protobuf::MessageLite& from_msg) {
758 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
759 from.CheckHasBitConsistency();
762 ABSL_DCHECK_NE(&from, _this);
763 ::uint32_t cached_has_bits = 0;
764 (void)cached_has_bits;
766 cached_has_bits = from.
_impl_._has_bits_[0];
767 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
768 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
769 _this->_impl_.id_ = from.
_impl_.id_;
771 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
772 _this->_impl_.supply_ = from.
_impl_.supply_;
775 _this->_impl_._has_bits_[0] |= cached_has_bits;
776 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
777 from._internal_metadata_);
782 if (&from ==
this)
return;
788void FlowNodeProto::InternalSwap(
FlowNodeProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
790 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
791 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
792 ::google::protobuf::internal::memswap<
796 reinterpret_cast<char*
>(&
_impl_.id_),
797 reinterpret_cast<char*
>(&other->_impl_.id_));
801 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
808 decltype(::std::declval<FlowModelProto>()._impl_._has_bits_);
814#if defined(PROTOBUF_CUSTOM_VTABLE)
817 : ::google::protobuf::Message(arena) {
822PROTOBUF_NDEBUG_INLINE FlowModelProto::Impl_::Impl_(
823 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
824 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
825 [[maybe_unused]] const ::operations_research::FlowModelProto& from_msg)
826 : _has_bits_{from._has_bits_},
828 nodes_{visibility, arena, from.nodes_},
829 arcs_{visibility, arena, from.arcs_} {}
832 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
834#if defined(PROTOBUF_CUSTOM_VTABLE)
837 : ::google::protobuf::Message(arena) {
841 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
842 from._internal_metadata_);
843 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
844 _impl_.problem_type_ = from._impl_.problem_type_;
848PROTOBUF_NDEBUG_INLINE FlowModelProto::Impl_::Impl_(
849 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
850 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
852 nodes_{visibility, arena},
853 arcs_{visibility, arena} {}
855inline void FlowModelProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
856 new (&
_impl_) Impl_(internal_visibility(), arena);
857 _impl_.problem_type_ = {};
863inline void FlowModelProto::SharedDtor(
MessageLite& self) {
865 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
866 this_.CheckHasBitConsistency();
868 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
869 ABSL_DCHECK(this_.GetArena() ==
nullptr);
873inline void* PROTOBUF_NONNULL FlowModelProto::PlacementNew_(
874 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
875 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
876 return ::new (mem) FlowModelProto(arena);
878constexpr auto FlowModelProto::InternalNewImpl_() {
879 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
880 PROTOBUF_FIELD_OFFSET(FlowModelProto,
_impl_.nodes_) +
882 InternalGetArenaOffset(
883 ::google::protobuf::Message::internal_visibility()),
884 PROTOBUF_FIELD_OFFSET(FlowModelProto,
_impl_.arcs_) +
885 decltype(FlowModelProto::
_impl_.arcs_)::
886 InternalGetArenaOffset(
887 ::google::protobuf::Message::internal_visibility()),
889 if (arena_bits.has_value()) {
890 return ::google::protobuf::internal::MessageCreator::ZeroInit(
891 sizeof(FlowModelProto), alignof(FlowModelProto), *arena_bits);
893 return ::google::protobuf::internal::MessageCreator(&FlowModelProto::PlacementNew_,
894 sizeof(FlowModelProto),
895 alignof(FlowModelProto));
899 return ::google::protobuf::internal::ClassDataFull{
900 ::google::protobuf::internal::ClassData{
905 &FlowModelProto::MergeImpl,
906 ::google::protobuf::Message::GetNewImpl<FlowModelProto>(),
907#if defined(PROTOBUF_CUSTOM_VTABLE)
908 &FlowModelProto::SharedDtor,
915 &FlowModelProto::kDescriptorMethods,
921PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
925PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
926FlowModelProto::GetClassData()
const {
931PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
932const ::_pbi::TcParseTable<2, 3, 3, 0, 2>
933FlowModelProto::_table_ = {
938 offsetof(
decltype(_table_), field_lookup_table),
940 offsetof(
decltype(_table_), field_entries),
943 offsetof(
decltype(_table_), aux_entries),
946 ::_pbi::TcParser::GenericFallback,
947 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
948 ::_pbi::TcParser::GetTable<::operations_research::FlowModelProto>(),
951 {::_pbi::TcParser::MiniParse, {}},
953 {::_pbi::TcParser::FastMtR1,
955 PROTOBUF_FIELD_OFFSET(FlowModelProto,
_impl_.nodes_)}},
957 {::_pbi::TcParser::FastMtR1,
959 PROTOBUF_FIELD_OFFSET(FlowModelProto,
_impl_.arcs_)}},
961 {::_pbi::TcParser::FastEr0S1,
963 PROTOBUF_FIELD_OFFSET(FlowModelProto,
_impl_.problem_type_)}},
968 {PROTOBUF_FIELD_OFFSET(FlowModelProto,
_impl_.nodes_),
_Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
975 {::_pbi::TcParser::GetTable<::operations_research::FlowNodeProto>()},
976 {::_pbi::TcParser::GetTable<::operations_research::FlowArcProto>()},
984 ::google::protobuf::internal::TSanWrite(&
_impl_);
985 ::uint32_t cached_has_bits = 0;
987 (void) cached_has_bits;
989 cached_has_bits =
_impl_._has_bits_[0];
990 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
991 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
994 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
999 _impl_._has_bits_.Clear();
1000 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1003#if defined(PROTOBUF_CUSTOM_VTABLE)
1005 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1006 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1010 ::uint8_t* PROTOBUF_NONNULL target,
1011 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
1014 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1015 this_.CheckHasBitConsistency();
1018 ::uint32_t cached_has_bits = 0;
1019 (void)cached_has_bits;
1021 cached_has_bits = this_.
_impl_._has_bits_[0];
1023 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1024 for (
unsigned i = 0, n =
static_cast<unsigned>(
1025 this_._internal_nodes_size());
1027 const auto& repfield = this_._internal_nodes().Get(i);
1029 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1030 1, repfield, repfield.GetCachedSize(),
1036 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1037 for (
unsigned i = 0, n =
static_cast<unsigned>(
1038 this_._internal_arcs_size());
1040 const auto& repfield = this_._internal_arcs().Get(i);
1042 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1043 2, repfield, repfield.GetCachedSize(),
1049 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1050 target = stream->EnsureSpace(target);
1051 target = ::_pbi::WireFormatLite::WriteEnumToArray(
1052 3, this_._internal_problem_type(), target);
1055 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1057 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1058 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1064#if defined(PROTOBUF_CUSTOM_VTABLE)
1066 const FlowModelProto& this_ =
static_cast<const FlowModelProto&
>(base);
1069 const FlowModelProto& this_ = *
this;
1072 ::size_t total_size = 0;
1074 ::uint32_t cached_has_bits = 0;
1076 (void)cached_has_bits;
1078 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1079 cached_has_bits = this_.
_impl_._has_bits_[0];
1080 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
1082 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1083 total_size += 1UL * this_._internal_nodes_size();
1084 for (
const auto& msg : this_._internal_nodes()) {
1085 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
1089 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1090 total_size += 1UL * this_._internal_arcs_size();
1091 for (
const auto& msg : this_._internal_arcs()) {
1092 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
1096 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1098 ::_pbi::WireFormatLite::EnumSize(this_._internal_problem_type());
1101 return this_.MaybeComputeUnknownFieldsSize(total_size,
1102 &this_.
_impl_._cached_size_);
1105void FlowModelProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
1106 const ::google::protobuf::MessageLite& from_msg) {
1108 static_cast<FlowModelProto*
>(&to_msg);
1109 auto& from =
static_cast<const FlowModelProto&
>(from_msg);
1110 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1111 from.CheckHasBitConsistency();
1115 ABSL_DCHECK_NE(&from, _this);
1116 ::uint32_t cached_has_bits = 0;
1117 (void)cached_has_bits;
1119 cached_has_bits = from._impl_._has_bits_[0];
1120 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
1121 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1122 _this->_internal_mutable_nodes()->InternalMergeFromWithArena(
1123 ::google::protobuf::MessageLite::internal_visibility(), arena,
1124 from._internal_nodes());
1126 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1127 _this->_internal_mutable_arcs()->InternalMergeFromWithArena(
1128 ::google::protobuf::MessageLite::internal_visibility(), arena,
1129 from._internal_arcs());
1131 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1132 _this->_impl_.problem_type_ = from._impl_.problem_type_;
1135 _this->_impl_._has_bits_[0] |= cached_has_bits;
1136 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1137 from._internal_metadata_);
1142 if (&from ==
this)
return;
1148void FlowModelProto::InternalSwap(
FlowModelProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1150 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1151 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1152 _impl_.nodes_.InternalSwap(&other->_impl_.nodes_);
1153 _impl_.arcs_.InternalSwap(&other->_impl_.arcs_);
1154 swap(
_impl_.problem_type_, other->_impl_.problem_type_);
1158 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1167PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
1170 ::std::false_type{});
1171#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 constexpr ::int32_t kHasBitsOffset
decltype(::std::declval< FlowArcProto >()._impl_._has_bits_) HasBits
static constexpr ::int32_t kHasBitsOffset
friend class ::google::protobuf::MessageLite
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
::size_t ByteSizeLong() const final
::google::protobuf::Metadata GetMetadata() const
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
static constexpr auto InternalGenerateClassData_()
friend void swap(FlowArcProto &a, FlowArcProto &b)
void MergeFrom(const FlowArcProto &from)
void CopyFrom(const FlowArcProto &from)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
~FlowArcProto() PROTOBUF_FINAL
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
::google::protobuf::Metadata GetMetadata() const
void MergeFrom(const FlowModelProto &from)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void CopyFrom(const FlowModelProto &from)
::size_t ByteSizeLong() const final
static constexpr auto InternalGenerateClassData_()
~FlowModelProto() PROTOBUF_FINAL
static constexpr ::int32_t kHasBitsOffset
decltype(::std::declval< FlowNodeProto >()._impl_._has_bits_) HasBits
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
friend class ::google::protobuf::MessageLite
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
~FlowNodeProto() PROTOBUF_FINAL
static constexpr auto InternalGenerateClassData_()
void CopyFrom(const FlowNodeProto &from)
::google::protobuf::Metadata GetMetadata() const
friend void swap(FlowNodeProto &a, FlowNodeProto &b)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
::size_t ByteSizeLong() const final
friend class ::google::protobuf::Arena
void MergeFrom(const FlowNodeProto &from)
static constexpr ::_pbi::MigrationSchema *PROTOBUF_NULLABLE schemas
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fgraph_2fflow_5fproblem_2eproto
static const ::_pb::EnumDescriptor *PROTOBUF_NONNULL file_level_enum_descriptors_ortools_2fgraph_2fflow_5fproblem_2eproto[1]
const ::uint32_t TableStruct_ortools_2fgraph_2fflow_5fproblem_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold)
::absl::once_flag descriptor_table_ortools_2fgraph_2fflow_5fproblem_2eproto_once
static constexprconst ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_service_descriptors_ortools_2fgraph_2fflow_5fproblem_2eproto
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlowModelProtoDefaultTypeInternal _FlowModelProto_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull FlowNodeProto_class_data_
PROTOBUF_CONSTINIT const uint32_t FlowModelProto_ProblemType_internal_data_[]
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlowNodeProtoDefaultTypeInternal _FlowNodeProto_default_instance_
FlowModelProto_ProblemType
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull FlowArcProto_class_data_
const ::google::protobuf::EnumDescriptor *PROTOBUF_NONNULL FlowModelProto_ProblemType_descriptor()
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull FlowModelProto_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlowArcProtoDefaultTypeInternal _FlowArcProto_default_instance_
~FlowArcProtoDefaultTypeInternal()
PROTOBUF_CONSTEXPR FlowArcProtoDefaultTypeInternal()
PROTOBUF_CONSTEXPR FlowModelProtoDefaultTypeInternal()
~FlowModelProtoDefaultTypeInternal()
~FlowNodeProtoDefaultTypeInternal()
PROTOBUF_CONSTEXPR FlowNodeProtoDefaultTypeInternal()