6#ifndef ortools_2fgraph_2fflow_5fproblem_2eproto_2epb_2eh
7#define ortools_2fgraph_2fflow_5fproblem_2eproto_2epb_2eh
14#include "google/protobuf/runtime_version.h"
15#if PROTOBUF_VERSION != 6033001
16#error "Protobuf C++ gencode is built with an incompatible version of"
17#error "Protobuf C++ headers/runtime. See"
18#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp"
20#include "google/protobuf/io/coded_stream.h"
21#include "google/protobuf/arena.h"
22#include "google/protobuf/arenastring.h"
23#include "google/protobuf/generated_message_tctable_decl.h"
24#include "google/protobuf/generated_message_util.h"
25#include "google/protobuf/metadata_lite.h"
26#include "google/protobuf/generated_message_reflection.h"
27#include "google/protobuf/message.h"
28#include "google/protobuf/message_lite.h"
29#include "google/protobuf/repeated_field.h"
30#include "google/protobuf/extension_set.h"
31#include "google/protobuf/generated_enum_reflection.h"
32#include "google/protobuf/unknown_field_set.h"
36#include "google/protobuf/port_def.inc"
38#define PROTOBUF_INTERNAL_EXPORT_ortools_2fgraph_2fflow_5fproblem_2eproto OR_PROTO_DLL
75internal::EnumTraitsT<::operations_research::FlowModelProto_ProblemType_internal_data_>
76 internal::EnumTraitsImpl::value<::operations_research::FlowModelProto_ProblemType>;
93 return 0 <= value && value <= 2;
99 static_assert(::std::is_same<T, FlowModelProto_ProblemType>::value ||
100 ::std::is_integral<T>::value,
101 "Incorrect type passed to ProblemType_Name().");
106 return ::google::protobuf::internal::NameOfDenseEnum<FlowModelProto_ProblemType_descriptor, 0, 2>(
107 static_cast<int>(value));
120class OR_PROTO_DLL FlowNodeProto final :
public ::google::protobuf::Message
126#if defined(PROTOBUF_CUSTOM_VTABLE)
127 void operator delete(
FlowNodeProto* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
129 ::google::protobuf::internal::SizedDelete(msg,
sizeof(
FlowNodeProto));
133 template <
typename =
void>
134 explicit PROTOBUF_CONSTEXPR
FlowNodeProto(::google::protobuf::internal::ConstantInitialized);
144 if (
this == &from)
return *
this;
145 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
153 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
154 ABSL_ATTRIBUTE_LIFETIME_BOUND {
155 return _internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
157 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
158 ABSL_ATTRIBUTE_LIFETIME_BOUND {
159 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
162 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
163 return GetDescriptor();
165 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
166 return default_instance().GetMetadata().descriptor;
168 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
169 return default_instance().GetMetadata().reflection;
175 static constexpr int kIndexInFileMessages = 1;
178 if (other ==
this)
return;
179 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
182 ::google::protobuf::internal::GenericSwap(
this, other);
185 void UnsafeArenaSwap(FlowNodeProto* PROTOBUF_NONNULL other) {
186 if (other ==
this)
return;
187 ABSL_DCHECK(GetArena() == other->GetArena());
193 FlowNodeProto* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena =
nullptr)
const {
194 return ::google::protobuf::Message::DefaultConstruct<FlowNodeProto>(arena);
196 using ::google::protobuf::Message::CopyFrom;
198 using ::google::protobuf::Message::MergeFrom;
199 void MergeFrom(
const FlowNodeProto& from) { FlowNodeProto::MergeImpl(*
this, from); }
202 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
203 const ::google::protobuf::MessageLite& from_msg);
209 ABSL_ATTRIBUTE_REINITIALIZES
void Clear() PROTOBUF_FINAL;
210 #if defined(PROTOBUF_CUSTOM_VTABLE)
212 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
213 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
214 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
215 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
218 ::size_t ByteSizeLong()
const {
return ByteSizeLong(*
this); }
219 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
220 ::uint8_t* PROTOBUF_NONNULL target,
221 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
222 return _InternalSerialize(*
this, target, stream);
225 ::size_t ByteSizeLong() const final;
226 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
227 ::uint8_t* PROTOBUF_NONNULL target,
228 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
230 int GetCachedSize()
const {
return _impl_._cached_size_.Get(); }
233 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
237 template <
typename T>
239 static ::absl::string_view FullMessageName() {
return "operations_research.FlowNodeProto"; }
241 explicit FlowNodeProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
244 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
FlowNodeProto&& from) noexcept
246 *
this = ::std::move(from);
248 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
249 static
void* PROTOBUF_NONNULL PlacementNew_(
250 const
void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
251 ::
google::protobuf::Arena* PROTOBUF_NULLABLE arena);
252 static constexpr auto InternalNewImpl_();
255 static constexpr auto InternalGenerateClassData_();
257 ::
google::protobuf::Metadata GetMetadata() const;
263 kSupplyFieldNumber = 2,
268 ::int64_t
id()
const;
269 void set_id(::int64_t value);
272 ::int64_t _internal_id()
const;
273 void _internal_set_id(::int64_t value);
283 ::int64_t _internal_supply()
const;
284 void _internal_set_supply(::int64_t value);
290 friend class ::google::protobuf::internal::TcParser;
291 static const ::google::protobuf::internal::TcParseTable<1, 2,
296 friend class ::google::protobuf::MessageLite;
297 friend class ::google::protobuf::Arena;
298 template <
typename T>
299 friend class ::google::protobuf::Arena::InternalHelper;
300 using InternalArenaConstructable_ = void;
301 using DestructorSkippable_ = void;
303 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized)
noexcept;
304 inline explicit Impl_(
305 ::google::protobuf::internal::InternalVisibility visibility,
306 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
307 inline explicit Impl_(
308 ::google::protobuf::internal::InternalVisibility visibility,
309 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
311 ::google::protobuf::internal::HasBits<1> _has_bits_;
312 ::google::protobuf::internal::CachedSize _cached_size_;
315 PROTOBUF_TSAN_DECLARE_MEMBER
317 union { Impl_ _impl_; };
318 friend struct ::TableStruct_ortools_2fgraph_2fflow_5fproblem_2eproto;
324class OR_PROTO_DLL
FlowArcProto final :
public ::google::protobuf::Message
330#if defined(PROTOBUF_CUSTOM_VTABLE)
331 void operator delete(
FlowArcProto* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
333 ::google::protobuf::internal::SizedDelete(msg,
sizeof(
FlowArcProto));
337 template <
typename =
void>
338 explicit PROTOBUF_CONSTEXPR
FlowArcProto(::google::protobuf::internal::ConstantInitialized);
348 if (
this == &from)
return *
this;
349 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
357 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
358 ABSL_ATTRIBUTE_LIFETIME_BOUND {
359 return _internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
361 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
362 ABSL_ATTRIBUTE_LIFETIME_BOUND {
363 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
366 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
367 return GetDescriptor();
369 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL
GetDescriptor() {
372 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL
GetReflection() {
379 static constexpr int kIndexInFileMessages = 0;
381 inline void Swap(FlowArcProto* PROTOBUF_NONNULL other) {
382 if (other ==
this)
return;
383 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
386 ::google::protobuf::internal::GenericSwap(
this, other);
389 void UnsafeArenaSwap(FlowArcProto* PROTOBUF_NONNULL other) {
390 if (other ==
this)
return;
391 ABSL_DCHECK(GetArena() == other->GetArena());
397 FlowArcProto* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena =
nullptr)
const {
398 return ::google::protobuf::Message::DefaultConstruct<FlowArcProto>(arena);
400 using ::google::protobuf::Message::CopyFrom;
402 using ::google::protobuf::Message::MergeFrom;
406 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
407 const ::google::protobuf::MessageLite& from_msg);
413 ABSL_ATTRIBUTE_REINITIALIZES
void Clear() PROTOBUF_FINAL;
414 #if defined(PROTOBUF_CUSTOM_VTABLE)
416 static ::size_t
ByteSizeLong(const ::google::protobuf::MessageLite& msg);
418 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
419 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
423 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
424 ::uint8_t* PROTOBUF_NONNULL target,
425 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
426 return _InternalSerialize(*
this, target, stream);
429 ::size_t ByteSizeLong() const final;
430 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
431 ::uint8_t* PROTOBUF_NONNULL target,
432 ::
google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
434 int GetCachedSize()
const {
return _impl_._cached_size_.Get(); }
437 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
439 void InternalSwap(
FlowArcProto* PROTOBUF_NONNULL other);
441 template <
typename T>
443 static ::absl::string_view FullMessageName() {
return "operations_research.FlowArcProto"; }
445 explicit FlowArcProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
448 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
FlowArcProto&& from) noexcept
450 *
this = ::std::move(from);
452 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
453 static
void* PROTOBUF_NONNULL PlacementNew_(
454 const
void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
455 ::
google::protobuf::Arena* PROTOBUF_NULLABLE arena);
456 static constexpr auto InternalNewImpl_();
459 static constexpr auto InternalGenerateClassData_();
461 ::
google::protobuf::Metadata GetMetadata() const;
466 kTailFieldNumber = 1,
467 kHeadFieldNumber = 2,
468 kUnitCostFieldNumber = 4,
474 ::int64_t
tail()
const;
478 ::int64_t _internal_tail()
const;
479 void _internal_set_tail(::int64_t value);
485 ::int64_t
head()
const;
489 ::int64_t _internal_head()
const;
490 void _internal_set_head(::int64_t value);
500 ::int64_t _internal_unit_cost()
const;
501 void _internal_set_unit_cost(::int64_t value);
511 ::int64_t _internal_capacity()
const;
512 void _internal_set_capacity(::int64_t value);
518 friend class ::google::protobuf::internal::TcParser;
519 static const ::google::protobuf::internal::TcParseTable<2, 4,
524 friend class ::google::protobuf::MessageLite;
525 friend class ::google::protobuf::Arena;
526 template <
typename T>
527 friend class ::google::protobuf::Arena::InternalHelper;
528 using InternalArenaConstructable_ = void;
529 using DestructorSkippable_ = void;
531 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized)
noexcept;
532 inline explicit Impl_(
533 ::google::protobuf::internal::InternalVisibility visibility,
534 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
535 inline explicit Impl_(
536 ::google::protobuf::internal::InternalVisibility visibility,
537 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
539 ::google::protobuf::internal::HasBits<1> _has_bits_;
540 ::google::protobuf::internal::CachedSize _cached_size_;
543 ::int64_t unit_cost_;
545 PROTOBUF_TSAN_DECLARE_MEMBER
547 union { Impl_ _impl_; };
548 friend struct ::TableStruct_ortools_2fgraph_2fflow_5fproblem_2eproto;
554class OR_PROTO_DLL
FlowModelProto final :
public ::google::protobuf::Message
560#if defined(PROTOBUF_CUSTOM_VTABLE)
561 void operator delete(
FlowModelProto* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
563 ::google::protobuf::internal::SizedDelete(msg,
sizeof(
FlowModelProto));
567 template <
typename =
void>
568 explicit PROTOBUF_CONSTEXPR
FlowModelProto(::google::protobuf::internal::ConstantInitialized);
578 if (
this == &from)
return *
this;
579 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
587 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
588 ABSL_ATTRIBUTE_LIFETIME_BOUND {
589 return _internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
592 ABSL_ATTRIBUTE_LIFETIME_BOUND {
593 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
596 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL
descriptor() {
599 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
602 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
612 if (other ==
this)
return;
613 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
616 ::google::protobuf::internal::GenericSwap(
this, other);
619 void UnsafeArenaSwap(FlowModelProto* PROTOBUF_NONNULL other) {
620 if (other ==
this)
return;
621 ABSL_DCHECK(GetArena() == other->GetArena());
627 FlowModelProto* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena =
nullptr)
const {
628 return ::google::protobuf::Message::DefaultConstruct<FlowModelProto>(arena);
630 using ::google::protobuf::Message::CopyFrom;
632 using ::google::protobuf::Message::MergeFrom;
636 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
637 const ::google::protobuf::MessageLite& from_msg);
643 ABSL_ATTRIBUTE_REINITIALIZES
void Clear() PROTOBUF_FINAL;
644 #if defined(PROTOBUF_CUSTOM_VTABLE)
646 static ::size_t
ByteSizeLong(const ::google::protobuf::MessageLite& msg);
648 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
649 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
653 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
654 ::uint8_t* PROTOBUF_NONNULL target,
655 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
656 return _InternalSerialize(*
this, target, stream);
659 ::size_t ByteSizeLong() const final;
660 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
661 ::uint8_t* PROTOBUF_NONNULL target,
662 ::
google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
664 int GetCachedSize()
const {
return _impl_._cached_size_.Get(); }
667 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
671 template <
typename T>
673 static ::absl::string_view FullMessageName() {
return "operations_research.FlowModelProto"; }
675 explicit FlowModelProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
678 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
FlowModelProto&& from) noexcept
680 *
this = ::std::move(from);
682 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
683 static
void* PROTOBUF_NONNULL PlacementNew_(
684 const
void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
685 ::
google::protobuf::Arena* PROTOBUF_NULLABLE arena);
686 static constexpr auto InternalNewImpl_();
689 static constexpr auto InternalGenerateClassData_();
691 ::
google::protobuf::Metadata GetMetadata() const;
693 using ProblemType = FlowModelProto_ProblemType;
694 static constexpr ProblemType LINEAR_SUM_ASSIGNMENT = FlowModelProto_ProblemType_LINEAR_SUM_ASSIGNMENT;
695 static constexpr ProblemType MAX_FLOW = FlowModelProto_ProblemType_MAX_FLOW;
696 static constexpr ProblemType MIN_COST_FLOW = FlowModelProto_ProblemType_MIN_COST_FLOW;
706 template <
typename T>
710 static inline bool ProblemType_Parse(
724 int _internal_nodes_size()
const;
729 ::google::protobuf::RepeatedPtrField<::operations_research::FlowNodeProto>* PROTOBUF_NONNULL
mutable_nodes();
732 const ::google::protobuf::RepeatedPtrField<::operations_research::FlowNodeProto>& _internal_nodes()
const;
733 ::google::protobuf::RepeatedPtrField<::operations_research::FlowNodeProto>* PROTOBUF_NONNULL _internal_mutable_nodes();
735 const ::operations_research::FlowNodeProto&
nodes(
int index)
const;
737 const ::google::protobuf::RepeatedPtrField<::operations_research::FlowNodeProto>&
nodes()
const;
741 int _internal_arcs_size()
const;
746 ::google::protobuf::RepeatedPtrField<::operations_research::FlowArcProto>* PROTOBUF_NONNULL
mutable_arcs();
749 const ::google::protobuf::RepeatedPtrField<::operations_research::FlowArcProto>& _internal_arcs()
const;
750 ::google::protobuf::RepeatedPtrField<::operations_research::FlowArcProto>* PROTOBUF_NONNULL _internal_mutable_arcs();
752 const ::operations_research::FlowArcProto&
arcs(
int index)
const;
754 const ::google::protobuf::RepeatedPtrField<::operations_research::FlowArcProto>&
arcs()
const;
769 friend class ::google::protobuf::internal::TcParser;
770 static const ::google::protobuf::internal::TcParseTable<2, 3,
775 friend class ::google::protobuf::MessageLite;
776 friend class ::google::protobuf::Arena;
777 template <
typename T>
778 friend class ::google::protobuf::Arena::InternalHelper;
779 using InternalArenaConstructable_ = void;
780 using DestructorSkippable_ = void;
782 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized)
noexcept;
783 inline explicit Impl_(
784 ::google::protobuf::internal::InternalVisibility visibility,
785 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
786 inline explicit Impl_(
787 ::google::protobuf::internal::InternalVisibility visibility,
788 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
790 ::google::protobuf::internal::HasBits<1> _has_bits_;
791 ::google::protobuf::internal::CachedSize _cached_size_;
792 ::google::protobuf::RepeatedPtrField< ::operations_research::FlowNodeProto > nodes_;
793 ::google::protobuf::RepeatedPtrField< ::operations_research::FlowArcProto > arcs_;
795 PROTOBUF_TSAN_DECLARE_MEMBER
797 union { Impl_ _impl_; };
798 friend struct ::TableStruct_ortools_2fgraph_2fflow_5fproblem_2eproto;
812#pragma GCC diagnostic push
813#pragma GCC diagnostic ignored "-Wstrict-aliasing"
821 bool value = CheckHasBit(
_impl_._has_bits_[0], 0x00000001U);
825 ::google::protobuf::internal::TSanWrite(&
_impl_);
826 _impl_.tail_ = ::int64_t{0};
832 return _internal_tail();
835 _internal_set_tail(value);
836 SetHasBit(
_impl_._has_bits_[0], 0x00000001U);
839inline ::int64_t FlowArcProto::_internal_tail()
const {
840 ::google::protobuf::internal::TSanRead(&
_impl_);
843inline void FlowArcProto::_internal_set_tail(::int64_t value) {
844 ::google::protobuf::internal::TSanWrite(&
_impl_);
850 bool value = CheckHasBit(
_impl_._has_bits_[0], 0x00000002U);
854 ::google::protobuf::internal::TSanWrite(&
_impl_);
855 _impl_.head_ = ::int64_t{0};
861 return _internal_head();
864 _internal_set_head(value);
865 SetHasBit(
_impl_._has_bits_[0], 0x00000002U);
868inline ::int64_t FlowArcProto::_internal_head()
const {
869 ::google::protobuf::internal::TSanRead(&
_impl_);
872inline void FlowArcProto::_internal_set_head(::int64_t value) {
873 ::google::protobuf::internal::TSanWrite(&
_impl_);
879 bool value = CheckHasBit(
_impl_._has_bits_[0], 0x00000008U);
883 ::google::protobuf::internal::TSanWrite(&
_impl_);
884 _impl_.capacity_ = ::int64_t{1};
890 return _internal_capacity();
893 _internal_set_capacity(value);
894 SetHasBit(
_impl_._has_bits_[0], 0x00000008U);
897inline ::int64_t FlowArcProto::_internal_capacity()
const {
898 ::google::protobuf::internal::TSanRead(&
_impl_);
901inline void FlowArcProto::_internal_set_capacity(::int64_t value) {
902 ::google::protobuf::internal::TSanWrite(&
_impl_);
908 bool value = CheckHasBit(
_impl_._has_bits_[0], 0x00000004U);
912 ::google::protobuf::internal::TSanWrite(&
_impl_);
913 _impl_.unit_cost_ = ::int64_t{0};
919 return _internal_unit_cost();
922 _internal_set_unit_cost(value);
923 SetHasBit(
_impl_._has_bits_[0], 0x00000004U);
926inline ::int64_t FlowArcProto::_internal_unit_cost()
const {
927 ::google::protobuf::internal::TSanRead(&
_impl_);
930inline void FlowArcProto::_internal_set_unit_cost(::int64_t value) {
931 ::google::protobuf::internal::TSanWrite(&
_impl_);
932 _impl_.unit_cost_ = value;
941 bool value = CheckHasBit(
_impl_._has_bits_[0], 0x00000001U);
945 ::google::protobuf::internal::TSanWrite(&
_impl_);
946 _impl_.id_ = ::int64_t{0};
947 ClearHasBit(
_impl_._has_bits_[0],
952 return _internal_id();
955 _internal_set_id(value);
956 SetHasBit(
_impl_._has_bits_[0], 0x00000001U);
959inline ::int64_t FlowNodeProto::_internal_id()
const {
960 ::google::protobuf::internal::TSanRead(&
_impl_);
963inline void FlowNodeProto::_internal_set_id(::int64_t value) {
964 ::google::protobuf::internal::TSanWrite(&
_impl_);
970 bool value = CheckHasBit(
_impl_._has_bits_[0], 0x00000002U);
974 ::google::protobuf::internal::TSanWrite(&
_impl_);
975 _impl_.supply_ = ::int64_t{0};
976 ClearHasBit(
_impl_._has_bits_[0],
981 return _internal_supply();
984 _internal_set_supply(value);
985 SetHasBit(
_impl_._has_bits_[0], 0x00000002U);
988inline ::int64_t FlowNodeProto::_internal_supply()
const {
989 ::google::protobuf::internal::TSanRead(&
_impl_);
992inline void FlowNodeProto::_internal_set_supply(::int64_t value) {
993 ::google::protobuf::internal::TSanWrite(&
_impl_);
1002inline int FlowModelProto::_internal_nodes_size()
const {
1003 return _internal_nodes().size();
1006 return _internal_nodes_size();
1009 ::google::protobuf::internal::TSanWrite(&
_impl_);
1011 ClearHasBitForRepeated(
_impl_._has_bits_[0],
1015 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1017 return _internal_mutable_nodes()->Mutable(index);
1020 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1021 SetHasBitForRepeated(
_impl_._has_bits_[0], 0x00000001U);
1023 ::google::protobuf::internal::TSanWrite(&
_impl_);
1024 return _internal_mutable_nodes();
1027 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1029 return _internal_nodes().Get(index);
1032 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1033 ::google::protobuf::internal::TSanWrite(&
_impl_);
1035 _internal_mutable_nodes()->InternalAddWithArena(
1036 ::google::protobuf::MessageLite::internal_visibility(), GetArena());
1037 SetHasBitForRepeated(
_impl_._has_bits_[0], 0x00000001U);
1041inline const ::google::protobuf::RepeatedPtrField<::operations_research::FlowNodeProto>&
FlowModelProto::nodes() const
1042 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1044 return _internal_nodes();
1046inline const ::google::protobuf::RepeatedPtrField<::operations_research::FlowNodeProto>&
1047FlowModelProto::_internal_nodes()
const {
1048 ::google::protobuf::internal::TSanRead(&
_impl_);
1051inline ::google::protobuf::RepeatedPtrField<::operations_research::FlowNodeProto>* PROTOBUF_NONNULL
1052FlowModelProto::_internal_mutable_nodes() {
1053 ::google::protobuf::internal::TSanRead(&
_impl_);
1058inline int FlowModelProto::_internal_arcs_size()
const {
1059 return _internal_arcs().size();
1062 return _internal_arcs_size();
1065 ::google::protobuf::internal::TSanWrite(&
_impl_);
1067 ClearHasBitForRepeated(
_impl_._has_bits_[0],
1071 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1073 return _internal_mutable_arcs()->Mutable(index);
1076 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1077 SetHasBitForRepeated(
_impl_._has_bits_[0], 0x00000002U);
1079 ::google::protobuf::internal::TSanWrite(&
_impl_);
1080 return _internal_mutable_arcs();
1083 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1085 return _internal_arcs().Get(index);
1088 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1089 ::google::protobuf::internal::TSanWrite(&
_impl_);
1091 _internal_mutable_arcs()->InternalAddWithArena(
1092 ::google::protobuf::MessageLite::internal_visibility(), GetArena());
1093 SetHasBitForRepeated(
_impl_._has_bits_[0], 0x00000002U);
1097inline const ::google::protobuf::RepeatedPtrField<::operations_research::FlowArcProto>&
FlowModelProto::arcs() const
1098 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1100 return _internal_arcs();
1102inline const ::google::protobuf::RepeatedPtrField<::operations_research::FlowArcProto>&
1103FlowModelProto::_internal_arcs()
const {
1104 ::google::protobuf::internal::TSanRead(&
_impl_);
1107inline ::google::protobuf::RepeatedPtrField<::operations_research::FlowArcProto>* PROTOBUF_NONNULL
1108FlowModelProto::_internal_mutable_arcs() {
1109 ::google::protobuf::internal::TSanRead(&
_impl_);
1115 bool value = CheckHasBit(
_impl_._has_bits_[0], 0x00000004U);
1119 ::google::protobuf::internal::TSanWrite(&
_impl_);
1120 _impl_.problem_type_ = 0;
1121 ClearHasBit(
_impl_._has_bits_[0],
1126 return _internal_problem_type();
1129 _internal_set_problem_type(value);
1130 SetHasBit(
_impl_._has_bits_[0], 0x00000004U);
1133inline ::operations_research::FlowModelProto_ProblemType FlowModelProto::_internal_problem_type()
const {
1134 ::google::protobuf::internal::TSanRead(&
_impl_);
1138 ::google::protobuf::internal::TSanWrite(&
_impl_);
1140 assert(::google::protobuf::internal::ValidateEnum(
1142 _impl_.problem_type_ = value;
1146#pragma GCC diagnostic pop
1160 return ::operations_research::FlowModelProto_ProblemType_descriptor();
1168#include "google/protobuf/port_undef.inc"
::int64_t unit_cost() const
friend class ::google::protobuf::MessageLite
void set_capacity(::int64_t value)
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL GetDescriptor()
FlowArcProto & operator=(const FlowArcProto &from)
PROTOBUF_CONSTEXPR FlowArcProto(::google::protobuf::internal::ConstantInitialized)
void set_unit_cost(::int64_t value)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
void set_head(::int64_t value)
bool IsInitialized() const
::size_t ByteSizeLong() const final
bool has_unit_cost() const
void Swap(FlowArcProto *PROTOBUF_NONNULL other)
void set_tail(::int64_t value)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
static const ::google::protobuf::Reflection *PROTOBUF_NONNULL GetReflection()
void MergeFrom(const FlowArcProto &from)
void CopyFrom(const FlowArcProto &from)
static const FlowArcProto & default_instance()
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
::int64_t capacity() const
bool has_capacity() const
::operations_research::FlowNodeProto *PROTOBUF_NONNULL mutable_nodes(int index)
::operations_research::FlowNodeProto *PROTOBUF_NONNULL add_nodes()
friend class ::google::protobuf::MessageLite
::operations_research::FlowModelProto_ProblemType problem_type() const
static constexpr ProblemType ProblemType_MIN
const ::operations_research::FlowNodeProto & nodes(int index) const
void set_problem_type(::operations_research::FlowModelProto_ProblemType value)
const ::google::protobuf::RepeatedPtrField<::operations_research::FlowNodeProto > & nodes() const
void Swap(FlowModelProto *PROTOBUF_NONNULL other)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
static const ::std::string & ProblemType_Name(T value)
void MergeFrom(const FlowModelProto &from)
PROTOBUF_CONSTEXPR FlowModelProto(::google::protobuf::internal::ConstantInitialized)
@ kProblemTypeFieldNumber
::operations_research::FlowArcProto *PROTOBUF_NONNULL add_arcs()
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
static constexpr ProblemType ProblemType_MAX
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL descriptor()
static constexpr int ProblemType_ARRAYSIZE
void clear_problem_type()
static const ::google::protobuf::EnumDescriptor *PROTOBUF_NONNULL ProblemType_descriptor()
inline ::google::protobuf::UnknownFieldSet *PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND
bool has_problem_type() const
const ::operations_research::FlowArcProto & arcs(int index) const
static constexpr int kIndexInFileMessages
bool IsInitialized() const
void CopyFrom(const FlowModelProto &from)
::google::protobuf::RepeatedPtrField<::operations_research::FlowNodeProto > *PROTOBUF_NONNULL mutable_nodes()
const ::google::protobuf::RepeatedPtrField<::operations_research::FlowArcProto > & arcs() const
::google::protobuf::RepeatedPtrField<::operations_research::FlowArcProto > *PROTOBUF_NONNULL mutable_arcs()
friend void swap(FlowModelProto &a, FlowModelProto &b)
FlowModelProto & operator=(const FlowModelProto &from)
::size_t ByteSizeLong() const final
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL GetDescriptor()
static const FlowModelProto & default_instance()
FlowModelProto_ProblemType ProblemType
::operations_research::FlowArcProto *PROTOBUF_NONNULL mutable_arcs(int index)
static bool ProblemType_IsValid(int value)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
friend class ::google::protobuf::MessageLite
FlowNodeProto(const FlowNodeProto &from)
PROTOBUF_CONSTEXPR FlowNodeProto(::google::protobuf::internal::ConstantInitialized)
void set_supply(::int64_t value)
void set_id(::int64_t value)
void CopyFrom(const FlowNodeProto &from)
void Swap(FlowNodeProto *PROTOBUF_NONNULL other)
bool IsInitialized() const
FlowNodeProto & operator=(const FlowNodeProto &from)
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fgraph_2fflow_5fproblem_2eproto
::absl::string_view GetAnyMessageName()
const EnumDescriptor *PROTOBUF_NONNULL GetEnumDescriptor<::operations_research::FlowModelProto_ProblemType >()
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_[]
bool FlowModelProto_ProblemType_IsValid(int value)
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlowNodeProtoDefaultTypeInternal _FlowNodeProto_default_instance_
FlowModelProto_ProblemType
@ FlowModelProto_ProblemType_LINEAR_SUM_ASSIGNMENT
@ FlowModelProto_ProblemType_MAX_FLOW
@ FlowModelProto_ProblemType_MIN_COST_FLOW
constexpr FlowModelProto_ProblemType FlowModelProto_ProblemType_ProblemType_MIN
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull FlowArcProto_class_data_
const ::google::protobuf::EnumDescriptor *PROTOBUF_NONNULL FlowModelProto_ProblemType_descriptor()
bool FlowModelProto_ProblemType_Parse(::absl::string_view name, FlowModelProto_ProblemType *PROTOBUF_NONNULL value)
constexpr FlowModelProto_ProblemType FlowModelProto_ProblemType_ProblemType_MAX
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull FlowModelProto_class_data_
const ::std::string & FlowModelProto_ProblemType_Name(T value)
constexpr int FlowModelProto_ProblemType_ProblemType_ARRAYSIZE
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlowArcProtoDefaultTypeInternal _FlowArcProto_default_instance_