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 ::google::protobuf::internal::InternalVisibility visibility,
229 ::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 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
249 ABSL_DCHECK(this_.GetArena() ==
nullptr);
254 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
255 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
259 return ::google::protobuf::internal::MessageCreator::CopyInit(
sizeof(
FlowArcProto),
263 return ::google::protobuf::internal::ClassDataFull{
264 ::google::protobuf::internal::ClassData{
269 &FlowArcProto::MergeImpl,
270 ::google::protobuf::Message::GetNewImpl<FlowArcProto>(),
271#if defined(PROTOBUF_CUSTOM_VTABLE)
272 &FlowArcProto::SharedDtor,
279 &FlowArcProto::kDescriptorMethods,
285PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
289PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
295PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
296const ::_pbi::TcParseTable<2, 4, 0, 0, 2>
297FlowArcProto::_table_ = {
302 offsetof(
decltype(_table_), field_lookup_table),
304 offsetof(
decltype(_table_), field_entries),
307 offsetof(
decltype(_table_), field_names),
310 ::_pbi::TcParser::GenericFallback,
311 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
312 ::_pbi::TcParser::GetTable<::operations_research::FlowArcProto>(),
316 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(FlowArcProto, _impl_.unit_cost_), 2>(),
317 {32, 2, 0, PROTOBUF_FIELD_OFFSET(FlowArcProto, _impl_.unit_cost_)}},
319 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(
FlowArcProto, _impl_.tail_), 0>(),
320 {8, 0, 0, PROTOBUF_FIELD_OFFSET(
FlowArcProto, _impl_.tail_)}},
322 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(
FlowArcProto, _impl_.head_), 1>(),
323 {16, 1, 0, PROTOBUF_FIELD_OFFSET(
FlowArcProto, _impl_.head_)}},
325 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(
FlowArcProto, _impl_.capacity_), 3>(),
326 {24, 3, 0, PROTOBUF_FIELD_OFFSET(
FlowArcProto, _impl_.capacity_)}},
331 {PROTOBUF_FIELD_OFFSET(
FlowArcProto, _impl_.tail_), _Internal::kHasBitsOffset + 0, 0,
332 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
334 {PROTOBUF_FIELD_OFFSET(
FlowArcProto, _impl_.head_), _Internal::kHasBitsOffset + 1, 0,
335 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
337 {PROTOBUF_FIELD_OFFSET(
FlowArcProto, _impl_.capacity_), _Internal::kHasBitsOffset + 3, 0,
338 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
340 {PROTOBUF_FIELD_OFFSET(
FlowArcProto, _impl_.unit_cost_), _Internal::kHasBitsOffset + 2, 0,
341 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
349 ::google::protobuf::internal::TSanWrite(&
_impl_);
350 ::uint32_t cached_has_bits = 0;
352 (void) cached_has_bits;
354 cached_has_bits =
_impl_._has_bits_[0];
355 if ((cached_has_bits & 0x0000000fu) != 0) {
356 ::memset(&
_impl_.tail_, 0,
static_cast<::
size_t>(
357 reinterpret_cast<char*
>(&
_impl_.unit_cost_) -
358 reinterpret_cast<char*
>(&
_impl_.tail_)) +
sizeof(
_impl_.unit_cost_));
359 _impl_.capacity_ = ::int64_t{1};
361 _impl_._has_bits_.Clear();
362 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
365#if defined(PROTOBUF_CUSTOM_VTABLE)
367 const ::google::protobuf::MessageLite&
base, ::uint8_t* PROTOBUF_NONNULL target,
368 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
372 ::uint8_t* PROTOBUF_NONNULL target,
373 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
377 ::uint32_t cached_has_bits = 0;
378 (void)cached_has_bits;
380 cached_has_bits = this_.
_impl_._has_bits_[0];
382 if ((cached_has_bits & 0x00000001u) != 0) {
384 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
385 stream, this_._internal_tail(), target);
389 if ((cached_has_bits & 0x00000002u) != 0) {
391 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
392 stream, this_._internal_head(), target);
396 if ((cached_has_bits & 0x00000008u) != 0) {
398 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>(
399 stream, this_._internal_capacity(), target);
403 if ((cached_has_bits & 0x00000004u) != 0) {
405 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<4>(
406 stream, this_._internal_unit_cost(), target);
409 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
411 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
412 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
418#if defined(PROTOBUF_CUSTOM_VTABLE)
426 ::size_t total_size = 0;
428 ::uint32_t cached_has_bits = 0;
430 (void)cached_has_bits;
432 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
433 cached_has_bits = this_.
_impl_._has_bits_[0];
434 if ((cached_has_bits & 0x0000000fu) != 0) {
436 if ((cached_has_bits & 0x00000001u) != 0) {
437 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
438 this_._internal_tail());
441 if ((cached_has_bits & 0x00000002u) != 0) {
442 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
443 this_._internal_head());
446 if ((cached_has_bits & 0x00000004u) != 0) {
447 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
448 this_._internal_unit_cost());
451 if ((cached_has_bits & 0x00000008u) != 0) {
452 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
453 this_._internal_capacity());
456 return this_.MaybeComputeUnknownFieldsSize(total_size,
457 &this_.
_impl_._cached_size_);
460void FlowArcProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
461 auto*
const _this =
static_cast<FlowArcProto*
>(&to_msg);
462 auto& from =
static_cast<const FlowArcProto&
>(from_msg);
464 ABSL_DCHECK_NE(&from, _this);
465 ::uint32_t cached_has_bits = 0;
466 (void) cached_has_bits;
468 cached_has_bits = from.
_impl_._has_bits_[0];
469 if ((cached_has_bits & 0x0000000fu) != 0) {
470 if ((cached_has_bits & 0x00000001u) != 0) {
471 _this->_impl_.tail_ = from.
_impl_.tail_;
473 if ((cached_has_bits & 0x00000002u) != 0) {
474 _this->_impl_.head_ = from.
_impl_.head_;
476 if ((cached_has_bits & 0x00000004u) != 0) {
477 _this->_impl_.unit_cost_ = from.
_impl_.unit_cost_;
479 if ((cached_has_bits & 0x00000008u) != 0) {
480 _this->_impl_.capacity_ = from.
_impl_.capacity_;
483 _this->_impl_._has_bits_[0] |= cached_has_bits;
484 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
489 if (&from ==
this)
return;
495void FlowArcProto::InternalSwap(
FlowArcProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
497 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
498 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
499 ::google::protobuf::internal::memswap<
503 reinterpret_cast<char*
>(&
_impl_.tail_),
504 reinterpret_cast<char*
>(&other->_impl_.tail_));
508 return ::google::protobuf::Message::GetMetadataImpl(
GetClassData()->full());
515 decltype(::std::declval<FlowNodeProto>()._impl_._has_bits_);
521#if defined(PROTOBUF_CUSTOM_VTABLE)
524 : ::google::protobuf::Message(arena) {
530 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const FlowNodeProto& from)
531#if defined(PROTOBUF_CUSTOM_VTABLE)
534 : ::google::protobuf::Message(arena),
537 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
538 from._internal_metadata_);
540PROTOBUF_NDEBUG_INLINE FlowNodeProto::Impl_::Impl_(
541 ::google::protobuf::internal::InternalVisibility visibility,
542 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
543 : _cached_size_{0} {}
545inline void FlowNodeProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
546 new (&
_impl_) Impl_(internal_visibility(), arena);
547 ::memset(
reinterpret_cast<char *
>(&
_impl_) +
548 offsetof(Impl_, id_),
550 offsetof(Impl_, supply_) -
551 offsetof(Impl_, id_) +
552 sizeof(Impl_::supply_));
558inline void FlowNodeProto::SharedDtor(MessageLite& self) {
560 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
561 ABSL_DCHECK(this_.GetArena() ==
nullptr);
566 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
567 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
571 return ::google::protobuf::internal::MessageCreator::ZeroInit(
sizeof(
FlowNodeProto),
575 return ::google::protobuf::internal::ClassDataFull{
576 ::google::protobuf::internal::ClassData{
581 &FlowNodeProto::MergeImpl,
582 ::google::protobuf::Message::GetNewImpl<FlowNodeProto>(),
583#if defined(PROTOBUF_CUSTOM_VTABLE)
584 &FlowNodeProto::SharedDtor,
591 &FlowNodeProto::kDescriptorMethods,
597PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
601PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
607PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
608const ::_pbi::TcParseTable<1, 2, 0, 0, 2>
609FlowNodeProto::_table_ = {
614 offsetof(
decltype(_table_), field_lookup_table),
616 offsetof(
decltype(_table_), field_entries),
619 offsetof(
decltype(_table_), field_names),
622 ::_pbi::TcParser::GenericFallback,
623 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
624 ::_pbi::TcParser::GetTable<::operations_research::FlowNodeProto>(),
628 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(FlowNodeProto, _impl_.supply_), 1>(),
629 {16, 1, 0, PROTOBUF_FIELD_OFFSET(FlowNodeProto, _impl_.supply_)}},
631 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(
FlowNodeProto, _impl_.id_), 0>(),
632 {8, 0, 0, PROTOBUF_FIELD_OFFSET(
FlowNodeProto, _impl_.id_)}},
637 {PROTOBUF_FIELD_OFFSET(
FlowNodeProto, _impl_.id_), _Internal::kHasBitsOffset + 0, 0,
638 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
640 {PROTOBUF_FIELD_OFFSET(
FlowNodeProto, _impl_.supply_), _Internal::kHasBitsOffset + 1, 0,
641 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
649 ::google::protobuf::internal::TSanWrite(&
_impl_);
650 ::uint32_t cached_has_bits = 0;
652 (void) cached_has_bits;
654 cached_has_bits =
_impl_._has_bits_[0];
655 if ((cached_has_bits & 0x00000003u) != 0) {
656 ::memset(&
_impl_.id_, 0,
static_cast<::
size_t>(
657 reinterpret_cast<char*
>(&
_impl_.supply_) -
658 reinterpret_cast<char*
>(&
_impl_.id_)) +
sizeof(
_impl_.supply_));
660 _impl_._has_bits_.Clear();
661 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
664#if defined(PROTOBUF_CUSTOM_VTABLE)
666 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
667 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
671 ::uint8_t* PROTOBUF_NONNULL target,
672 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
676 ::uint32_t cached_has_bits = 0;
677 (void)cached_has_bits;
679 cached_has_bits = this_.
_impl_._has_bits_[0];
681 if ((cached_has_bits & 0x00000001u) != 0) {
683 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
684 stream, this_._internal_id(), target);
688 if ((cached_has_bits & 0x00000002u) != 0) {
690 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
691 stream, this_._internal_supply(), target);
694 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
696 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
697 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
703#if defined(PROTOBUF_CUSTOM_VTABLE)
711 ::size_t total_size = 0;
713 ::uint32_t cached_has_bits = 0;
715 (void)cached_has_bits;
717 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
718 cached_has_bits = this_.
_impl_._has_bits_[0];
719 if ((cached_has_bits & 0x00000003u) != 0) {
721 if ((cached_has_bits & 0x00000001u) != 0) {
722 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
723 this_._internal_id());
726 if ((cached_has_bits & 0x00000002u) != 0) {
727 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
728 this_._internal_supply());
731 return this_.MaybeComputeUnknownFieldsSize(total_size,
732 &this_.
_impl_._cached_size_);
735void FlowNodeProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
739 ABSL_DCHECK_NE(&from, _this);
740 ::uint32_t cached_has_bits = 0;
741 (void) cached_has_bits;
743 cached_has_bits = from.
_impl_._has_bits_[0];
744 if ((cached_has_bits & 0x00000003u) != 0) {
745 if ((cached_has_bits & 0x00000001u) != 0) {
746 _this->_impl_.id_ = from.
_impl_.id_;
748 if ((cached_has_bits & 0x00000002u) != 0) {
749 _this->_impl_.supply_ = from.
_impl_.supply_;
752 _this->_impl_._has_bits_[0] |= cached_has_bits;
753 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
758 if (&from ==
this)
return;
764void FlowNodeProto::InternalSwap(
FlowNodeProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
766 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
767 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
768 ::google::protobuf::internal::memswap<
772 reinterpret_cast<char*
>(&
_impl_.id_),
773 reinterpret_cast<char*
>(&other->_impl_.id_));
777 return ::google::protobuf::Message::GetMetadataImpl(
GetClassData()->full());
784 decltype(::std::declval<FlowModelProto>()._impl_._has_bits_);
790#if defined(PROTOBUF_CUSTOM_VTABLE)
793 : ::google::protobuf::Message(arena) {
798PROTOBUF_NDEBUG_INLINE FlowModelProto::Impl_::Impl_(
799 ::google::protobuf::internal::InternalVisibility visibility,
800 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
801 const ::operations_research::FlowModelProto& from_msg)
802 : _has_bits_{from._has_bits_},
804 nodes_{visibility, arena, from.nodes_},
805 arcs_{visibility, arena, from.arcs_} {}
808 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
810#if defined(PROTOBUF_CUSTOM_VTABLE)
813 : ::google::protobuf::Message(arena) {
817 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
818 from._internal_metadata_);
819 new (&
_impl_) Impl_(internal_visibility(), arena, from.
_impl_, from);
824PROTOBUF_NDEBUG_INLINE FlowModelProto::Impl_::Impl_(
825 ::google::protobuf::internal::InternalVisibility visibility,
826 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
828 nodes_{visibility, arena},
829 arcs_{visibility, arena} {}
831inline void FlowModelProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
832 new (&
_impl_) Impl_(internal_visibility(), arena);
833 _impl_.problem_type_ = {};
839inline void FlowModelProto::SharedDtor(MessageLite& self) {
841 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
842 ABSL_DCHECK(this_.GetArena() ==
nullptr);
847 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
848 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
852 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
855 InternalGetArenaOffset(
859 InternalGetArenaOffset(
862 if (arena_bits.has_value()) {
863 return ::google::protobuf::internal::MessageCreator::ZeroInit(
864 sizeof(FlowModelProto), alignof(FlowModelProto), *arena_bits);
866 return ::google::protobuf::internal::MessageCreator(&FlowModelProto::PlacementNew_,
867 sizeof(FlowModelProto),
868 alignof(FlowModelProto));
872 return ::google::protobuf::internal::ClassDataFull{
873 ::google::protobuf::internal::ClassData{
878 &FlowModelProto::MergeImpl,
879 ::google::protobuf::Message::GetNewImpl<FlowModelProto>(),
880#if defined(PROTOBUF_CUSTOM_VTABLE)
881 &FlowModelProto::SharedDtor,
888 &FlowModelProto::kDescriptorMethods,
894PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
898PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
904PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
905const ::_pbi::TcParseTable<2, 3, 3, 0, 2>
906FlowModelProto::_table_ = {
911 offsetof(
decltype(_table_), field_lookup_table),
913 offsetof(
decltype(_table_), field_entries),
916 offsetof(
decltype(_table_), aux_entries),
919 ::_pbi::TcParser::GenericFallback,
920 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
921 ::_pbi::TcParser::GetTable<::operations_research::FlowModelProto>(),
924 {::_pbi::TcParser::MiniParse, {}},
926 {::_pbi::TcParser::FastMtR1,
929 {::_pbi::TcParser::FastMtR1,
932 {::_pbi::TcParser::FastEr0S1,
939 (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
942 (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
945 (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
948 {::_pbi::TcParser::GetTable<::operations_research::FlowNodeProto>()},
949 {::_pbi::TcParser::GetTable<::operations_research::FlowArcProto>()},
957 ::google::protobuf::internal::TSanWrite(&
_impl_);
958 ::uint32_t cached_has_bits = 0;
960 (void) cached_has_bits;
965 _impl_._has_bits_.Clear();
966 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
969#if defined(PROTOBUF_CUSTOM_VTABLE)
971 const ::google::protobuf::MessageLite&
base, ::uint8_t* PROTOBUF_NONNULL target,
972 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
976 ::uint8_t* PROTOBUF_NONNULL target,
977 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
981 ::uint32_t cached_has_bits = 0;
982 (void)cached_has_bits;
985 for (
unsigned i = 0, n =
static_cast<unsigned>(
986 this_._internal_nodes_size());
988 const auto& repfield = this_._internal_nodes().Get(i);
990 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
991 1, repfield, repfield.GetCachedSize(),
996 for (
unsigned i = 0, n =
static_cast<unsigned>(
997 this_._internal_arcs_size());
999 const auto& repfield = this_._internal_arcs().Get(i);
1001 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1002 2, repfield, repfield.GetCachedSize(),
1006 cached_has_bits = this_.
_impl_._has_bits_[0];
1008 if ((cached_has_bits & 0x00000001u) != 0) {
1009 target = stream->EnsureSpace(target);
1010 target = ::_pbi::WireFormatLite::WriteEnumToArray(
1011 3, this_._internal_problem_type(), target);
1014 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1016 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1017 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1023#if defined(PROTOBUF_CUSTOM_VTABLE)
1031 ::size_t total_size = 0;
1033 ::uint32_t cached_has_bits = 0;
1035 (void)cached_has_bits;
1037 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1041 total_size += 1UL * this_._internal_nodes_size();
1042 for (
const auto& msg : this_._internal_nodes()) {
1043 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
1048 total_size += 1UL * this_._internal_arcs_size();
1049 for (
const auto& msg : this_._internal_arcs()) {
1050 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
1056 cached_has_bits = this_.
_impl_._has_bits_[0];
1057 if ((cached_has_bits & 0x00000001u) != 0) {
1059 ::_pbi::WireFormatLite::EnumSize(this_._internal_problem_type());
1062 return this_.MaybeComputeUnknownFieldsSize(total_size,
1063 &this_.
_impl_._cached_size_);
1066void FlowModelProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
1070 ABSL_DCHECK_NE(&from, _this);
1071 ::uint32_t cached_has_bits = 0;
1072 (void) cached_has_bits;
1074 _this->_internal_mutable_nodes()->MergeFrom(
1075 from._internal_nodes());
1076 _this->_internal_mutable_arcs()->MergeFrom(
1077 from._internal_arcs());
1078 cached_has_bits = from.
_impl_._has_bits_[0];
1079 if ((cached_has_bits & 0x00000001u) != 0) {
1080 _this->_impl_.problem_type_ = from.
_impl_.problem_type_;
1082 _this->_impl_._has_bits_[0] |= cached_has_bits;
1083 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
1088 if (&from ==
this)
return;
1094void FlowModelProto::InternalSwap(
FlowModelProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1096 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1097 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1098 _impl_.nodes_.InternalSwap(&other->_impl_.nodes_);
1099 _impl_.arcs_.InternalSwap(&other->_impl_.arcs_);
1100 swap(
_impl_.problem_type_, other->_impl_.problem_type_);
1104 return ::google::protobuf::Message::GetMetadataImpl(
GetClassData()->full());
1113PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
1116 ::std::false_type{});
1117#include "google/protobuf/port_undef.inc"
static PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::std::false_type _static_init2_
@protoc_insertion_point(global_scope)
static const ::_pb::Message *PROTOBUF_NONNULL const file_default_instances[]
static constexpr ::int32_t kHasBitsOffset
decltype(::std::declval< FlowArcProto >()._impl_._has_bits_) HasBits
static constexpr ::int32_t kHasBitsOffset
static constexpr auto InternalNewImpl_()
friend class ::google::protobuf::MessageLite
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
::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::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
static constexpr ::int32_t kHasBitsOffset
friend class ::google::protobuf::MessageLite
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
::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
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
void CopyFrom(const FlowModelProto &from)
friend void swap(FlowModelProto &a, FlowModelProto &b)
::size_t ByteSizeLong() const final
static constexpr auto InternalNewImpl_()
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
static constexpr auto InternalNewImpl_()
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
~FlowNodeProto() PROTOBUF_FINAL
static constexpr auto InternalGenerateClassData_()
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
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
void MergeFrom(const FlowNodeProto &from)
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
In SWIG mode, we don't want anything besides these top-level includes.
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_
static constexpr ::_pbi::MigrationSchema *PROTOBUF_NULLABLE schemas
~FlowArcProtoDefaultTypeInternal()
PROTOBUF_CONSTEXPR FlowArcProtoDefaultTypeInternal()
PROTOBUF_CONSTEXPR FlowModelProtoDefaultTypeInternal()
~FlowModelProtoDefaultTypeInternal()
~FlowNodeProtoDefaultTypeInternal()
PROTOBUF_CONSTEXPR FlowNodeProtoDefaultTypeInternal()