4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ortools_2fgraph_2fflow_5fproblem_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ortools_2fgraph_2fflow_5fproblem_2eproto
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3015000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
16 #if 3015008 < PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
22 #include <google/protobuf/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arena.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/metadata_lite.h>
29 #include <google/protobuf/generated_message_reflection.h>
30 #include <google/protobuf/message.h>
31 #include <google/protobuf/repeated_field.h>
32 #include <google/protobuf/extension_set.h>
33 #include <google/protobuf/generated_enum_reflection.h>
34 #include <google/protobuf/unknown_field_set.h>
36 #include <google/protobuf/port_def.inc>
37 #define PROTOBUF_INTERNAL_EXPORT_ortools_2fgraph_2fflow_5fproblem_2eproto
38 PROTOBUF_NAMESPACE_OPEN
42 PROTOBUF_NAMESPACE_CLOSE
46 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
48 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
50 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3]
52 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata
field_metadata[];
54 static const ::PROTOBUF_NAMESPACE_ID::uint32
offsets[];
60 struct ArcDefaultTypeInternal;
63 struct FlowModelDefaultTypeInternal;
66 struct NodeDefaultTypeInternal;
69 PROTOBUF_NAMESPACE_OPEN
70 template<> ::operations_research::Arc* Arena::CreateMaybeMessage<::operations_research::Arc>(Arena*);
71 template<> ::operations_research::FlowModel* Arena::CreateMaybeMessage<::operations_research::FlowModel>(Arena*);
72 template<> ::operations_research::Node* Arena::CreateMaybeMessage<::operations_research::Node>(Arena*);
73 PROTOBUF_NAMESPACE_CLOSE
89 static_assert(::std::is_same<T, FlowModel_ProblemType>::value ||
90 ::std::is_integral<T>::value,
91 "Incorrect type passed to function FlowModel_ProblemType_Name.");
92 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
97 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<FlowModel_ProblemType>(
103 public ::PROTOBUF_NAMESPACE_ID::Message {
105 inline Arc() : Arc(nullptr) {}
107 explicit constexpr
Arc(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
112 *
this = ::std::move(from);
120 if (GetArena() == from.GetArena()) {
121 if (
this != &from) InternalSwap(&from);
129 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
132 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
135 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
136 return GetDescriptor();
139 return GetMetadataStatic().descriptor;
142 return GetMetadataStatic().reflection;
145 return *internal_default_instance();
148 return reinterpret_cast<const Arc*
>(
151 static constexpr
int kIndexInFileMessages =
154 friend void swap(Arc& a, Arc& b) {
158 if (other ==
this)
return;
159 if (GetArena() == other->GetArena()) {
162 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
166 if (other ==
this)
return;
167 GOOGLE_DCHECK(GetArena() == other->GetArena());
173 inline Arc*
New() const final {
174 return CreateMaybeMessage<Arc>(
nullptr);
177 Arc*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
178 return CreateMaybeMessage<Arc>(arena);
180 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
181 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
184 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
185 bool IsInitialized() const final;
187 size_t ByteSizeLong() const final;
188 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
189 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
190 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
191 int GetCachedSize() const final {
return _cached_size_.Get(); }
194 inline void SharedCtor();
195 inline void SharedDtor();
196 void SetCachedSize(
int size)
const final;
197 void InternalSwap(Arc* other);
198 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
199 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
200 return "operations_research.Arc";
203 explicit Arc(::PROTOBUF_NAMESPACE_ID::Arena* arena);
205 static void ArenaDtor(
void*
object);
206 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
211 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
222 kTailNodeIdFieldNumber = 1,
223 kHeadNodeIdFieldNumber = 2,
224 kUnitCostFieldNumber = 4,
225 kCapacityFieldNumber = 3,
230 bool _internal_has_tail_node_id()
const;
236 ::PROTOBUF_NAMESPACE_ID::int64 _internal_tail_node_id()
const;
237 void _internal_set_tail_node_id(::PROTOBUF_NAMESPACE_ID::int64 value);
243 bool _internal_has_head_node_id()
const;
249 ::PROTOBUF_NAMESPACE_ID::int64 _internal_head_node_id()
const;
250 void _internal_set_head_node_id(::PROTOBUF_NAMESPACE_ID::int64 value);
256 bool _internal_has_unit_cost()
const;
262 ::PROTOBUF_NAMESPACE_ID::int64 _internal_unit_cost()
const;
263 void _internal_set_unit_cost(::PROTOBUF_NAMESPACE_ID::int64 value);
269 bool _internal_has_capacity()
const;
275 ::PROTOBUF_NAMESPACE_ID::int64 _internal_capacity()
const;
276 void _internal_set_capacity(::PROTOBUF_NAMESPACE_ID::int64 value);
283 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
284 typedef void InternalArenaConstructable_;
285 typedef void DestructorSkippable_;
286 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
287 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
288 ::PROTOBUF_NAMESPACE_ID::int64 tail_node_id_;
289 ::PROTOBUF_NAMESPACE_ID::int64 head_node_id_;
290 ::PROTOBUF_NAMESPACE_ID::int64 unit_cost_;
291 ::PROTOBUF_NAMESPACE_ID::int64 capacity_;
292 friend struct ::TableStruct_ortools_2fgraph_2fflow_5fproblem_2eproto;
297 public ::PROTOBUF_NAMESPACE_ID::Message {
299 inline Node() : Node(nullptr) {}
301 explicit constexpr
Node(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
306 *
this = ::std::move(from);
314 if (GetArena() == from.GetArena()) {
315 if (
this != &from) InternalSwap(&from);
323 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
326 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
329 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
330 return GetDescriptor();
333 return GetMetadataStatic().descriptor;
336 return GetMetadataStatic().reflection;
339 return *internal_default_instance();
342 return reinterpret_cast<const Node*
>(
345 static constexpr
int kIndexInFileMessages =
348 friend void swap(Node& a, Node& b) {
351 inline void Swap(Node* other) {
352 if (other ==
this)
return;
353 if (GetArena() == other->GetArena()) {
356 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
360 if (other ==
this)
return;
361 GOOGLE_DCHECK(GetArena() == other->GetArena());
367 inline Node*
New() const final {
368 return CreateMaybeMessage<Node>(
nullptr);
371 Node*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
372 return CreateMaybeMessage<Node>(arena);
374 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
375 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
378 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
379 bool IsInitialized() const final;
381 size_t ByteSizeLong() const final;
382 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
383 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
384 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
385 int GetCachedSize() const final {
return _cached_size_.Get(); }
388 inline void SharedCtor();
389 inline void SharedDtor();
390 void SetCachedSize(
int size)
const final;
391 void InternalSwap(Node* other);
392 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
393 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
394 return "operations_research.Node";
397 explicit Node(::PROTOBUF_NAMESPACE_ID::Arena* arena);
399 static void ArenaDtor(
void*
object);
400 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
405 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
417 kSupplyFieldNumber = 2,
422 bool _internal_has_id()
const;
425 ::PROTOBUF_NAMESPACE_ID::int64
id()
const;
426 void set_id(::PROTOBUF_NAMESPACE_ID::int64 value);
428 ::PROTOBUF_NAMESPACE_ID::int64 _internal_id()
const;
429 void _internal_set_id(::PROTOBUF_NAMESPACE_ID::int64 value);
435 bool _internal_has_supply()
const;
438 ::PROTOBUF_NAMESPACE_ID::int64
supply()
const;
441 ::PROTOBUF_NAMESPACE_ID::int64 _internal_supply()
const;
442 void _internal_set_supply(::PROTOBUF_NAMESPACE_ID::int64 value);
449 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
450 typedef void InternalArenaConstructable_;
451 typedef void DestructorSkippable_;
452 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
453 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
454 ::PROTOBUF_NAMESPACE_ID::int64 id_;
455 ::PROTOBUF_NAMESPACE_ID::int64 supply_;
456 friend struct ::TableStruct_ortools_2fgraph_2fflow_5fproblem_2eproto;
461 public ::PROTOBUF_NAMESPACE_ID::Message {
465 explicit constexpr
FlowModel(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
470 *
this = ::std::move(from);
477 inline FlowModel&
operator=(FlowModel&& from) noexcept {
478 if (GetArena() == from.GetArena()) {
479 if (
this != &from) InternalSwap(&from);
487 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
490 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
493 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
494 return GetDescriptor();
497 return GetMetadataStatic().descriptor;
500 return GetMetadataStatic().reflection;
503 return *internal_default_instance();
506 return reinterpret_cast<const FlowModel*
>(
509 static constexpr
int kIndexInFileMessages =
512 friend void swap(FlowModel& a, FlowModel& b) {
515 inline void Swap(FlowModel* other) {
516 if (other ==
this)
return;
517 if (GetArena() == other->GetArena()) {
520 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
524 if (other ==
this)
return;
525 GOOGLE_DCHECK(GetArena() == other->GetArena());
531 inline FlowModel*
New() const final {
532 return CreateMaybeMessage<FlowModel>(
nullptr);
535 FlowModel*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
536 return CreateMaybeMessage<FlowModel>(arena);
538 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
539 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
542 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
543 bool IsInitialized() const final;
545 size_t ByteSizeLong() const final;
546 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
547 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
548 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
549 int GetCachedSize() const final {
return _cached_size_.Get(); }
552 inline void SharedCtor();
553 inline void SharedDtor();
554 void SetCachedSize(
int size)
const final;
555 void InternalSwap(FlowModel* other);
556 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
557 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
558 return "operations_research.FlowModel";
561 explicit FlowModel(::PROTOBUF_NAMESPACE_ID::Arena* arena);
563 static void ArenaDtor(
void*
object);
564 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
569 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
591 static constexpr
int ProblemType_ARRAYSIZE =
593 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
599 static_assert(::std::is_same<T, ProblemType>::value ||
600 ::std::is_integral<T>::value,
601 "Incorrect type passed to function ProblemType_Name.");
612 kNodeFieldNumber = 1,
614 kProblemTypeFieldNumber = 3,
619 int _internal_node_size()
const;
623 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::operations_research::Node >*
626 const ::operations_research::Node& _internal_node(
int index)
const;
627 ::operations_research::Node* _internal_add_node();
629 const ::operations_research::Node&
node(
int index)
const;
631 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::operations_research::Node >&
637 int _internal_arc_size()
const;
641 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::operations_research::Arc >*
644 const ::operations_research::Arc& _internal_arc(
int index)
const;
645 ::operations_research::Arc* _internal_add_arc();
647 const ::operations_research::Arc&
arc(
int index)
const;
649 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::operations_research::Arc >&
655 bool _internal_has_problem_type()
const;
669 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
670 typedef void InternalArenaConstructable_;
671 typedef void DestructorSkippable_;
672 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
673 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
674 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::operations_research::Node > node_;
675 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::operations_research::Arc > arc_;
677 friend struct ::TableStruct_ortools_2fgraph_2fflow_5fproblem_2eproto;
685 #pragma GCC diagnostic push
686 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
691 inline bool Arc::_internal_has_tail_node_id()
const {
692 bool value = (_has_bits_[0] & 0x00000001u) != 0;
695 inline bool Arc::has_tail_node_id()
const {
696 return _internal_has_tail_node_id();
698 inline void Arc::clear_tail_node_id() {
699 tail_node_id_ = PROTOBUF_LONGLONG(0);
700 _has_bits_[0] &= ~0x00000001u;
702 inline ::PROTOBUF_NAMESPACE_ID::int64 Arc::_internal_tail_node_id()
const {
703 return tail_node_id_;
705 inline ::PROTOBUF_NAMESPACE_ID::int64 Arc::tail_node_id()
const {
707 return _internal_tail_node_id();
709 inline void Arc::_internal_set_tail_node_id(::PROTOBUF_NAMESPACE_ID::int64 value) {
710 _has_bits_[0] |= 0x00000001u;
711 tail_node_id_ = value;
713 inline void Arc::set_tail_node_id(::PROTOBUF_NAMESPACE_ID::int64 value) {
714 _internal_set_tail_node_id(value);
719 inline bool Arc::_internal_has_head_node_id()
const {
720 bool value = (_has_bits_[0] & 0x00000002u) != 0;
723 inline bool Arc::has_head_node_id()
const {
724 return _internal_has_head_node_id();
726 inline void Arc::clear_head_node_id() {
727 head_node_id_ = PROTOBUF_LONGLONG(0);
728 _has_bits_[0] &= ~0x00000002u;
730 inline ::PROTOBUF_NAMESPACE_ID::int64 Arc::_internal_head_node_id()
const {
731 return head_node_id_;
733 inline ::PROTOBUF_NAMESPACE_ID::int64 Arc::head_node_id()
const {
735 return _internal_head_node_id();
737 inline void Arc::_internal_set_head_node_id(::PROTOBUF_NAMESPACE_ID::int64 value) {
738 _has_bits_[0] |= 0x00000002u;
739 head_node_id_ = value;
741 inline void Arc::set_head_node_id(::PROTOBUF_NAMESPACE_ID::int64 value) {
742 _internal_set_head_node_id(value);
747 inline bool Arc::_internal_has_capacity()
const {
748 bool value = (_has_bits_[0] & 0x00000008u) != 0;
751 inline bool Arc::has_capacity()
const {
752 return _internal_has_capacity();
754 inline void Arc::clear_capacity() {
755 capacity_ = PROTOBUF_LONGLONG(1);
756 _has_bits_[0] &= ~0x00000008u;
758 inline ::PROTOBUF_NAMESPACE_ID::int64 Arc::_internal_capacity()
const {
761 inline ::PROTOBUF_NAMESPACE_ID::int64 Arc::capacity()
const {
763 return _internal_capacity();
765 inline void Arc::_internal_set_capacity(::PROTOBUF_NAMESPACE_ID::int64 value) {
766 _has_bits_[0] |= 0x00000008u;
769 inline void Arc::set_capacity(::PROTOBUF_NAMESPACE_ID::int64 value) {
770 _internal_set_capacity(value);
775 inline bool Arc::_internal_has_unit_cost()
const {
776 bool value = (_has_bits_[0] & 0x00000004u) != 0;
779 inline bool Arc::has_unit_cost()
const {
780 return _internal_has_unit_cost();
782 inline void Arc::clear_unit_cost() {
783 unit_cost_ = PROTOBUF_LONGLONG(0);
784 _has_bits_[0] &= ~0x00000004u;
786 inline ::PROTOBUF_NAMESPACE_ID::int64 Arc::_internal_unit_cost()
const {
789 inline ::PROTOBUF_NAMESPACE_ID::int64 Arc::unit_cost()
const {
791 return _internal_unit_cost();
793 inline void Arc::_internal_set_unit_cost(::PROTOBUF_NAMESPACE_ID::int64 value) {
794 _has_bits_[0] |= 0x00000004u;
797 inline void Arc::set_unit_cost(::PROTOBUF_NAMESPACE_ID::int64 value) {
798 _internal_set_unit_cost(value);
807 inline bool Node::_internal_has_id()
const {
808 bool value = (_has_bits_[0] & 0x00000001u) != 0;
811 inline bool Node::has_id()
const {
812 return _internal_has_id();
814 inline void Node::clear_id() {
815 id_ = PROTOBUF_LONGLONG(0);
816 _has_bits_[0] &= ~0x00000001u;
818 inline ::PROTOBUF_NAMESPACE_ID::int64 Node::_internal_id()
const {
821 inline ::PROTOBUF_NAMESPACE_ID::int64 Node::id()
const {
823 return _internal_id();
825 inline void Node::_internal_set_id(::PROTOBUF_NAMESPACE_ID::int64 value) {
826 _has_bits_[0] |= 0x00000001u;
829 inline void Node::set_id(::PROTOBUF_NAMESPACE_ID::int64 value) {
830 _internal_set_id(value);
835 inline bool Node::_internal_has_supply()
const {
836 bool value = (_has_bits_[0] & 0x00000002u) != 0;
839 inline bool Node::has_supply()
const {
840 return _internal_has_supply();
842 inline void Node::clear_supply() {
843 supply_ = PROTOBUF_LONGLONG(0);
844 _has_bits_[0] &= ~0x00000002u;
846 inline ::PROTOBUF_NAMESPACE_ID::int64 Node::_internal_supply()
const {
849 inline ::PROTOBUF_NAMESPACE_ID::int64 Node::supply()
const {
851 return _internal_supply();
853 inline void Node::_internal_set_supply(::PROTOBUF_NAMESPACE_ID::int64 value) {
854 _has_bits_[0] |= 0x00000002u;
857 inline void Node::set_supply(::PROTOBUF_NAMESPACE_ID::int64 value) {
858 _internal_set_supply(value);
867 inline int FlowModel::_internal_node_size()
const {
870 inline int FlowModel::node_size()
const {
871 return _internal_node_size();
873 inline void FlowModel::clear_node() {
876 inline ::operations_research::Node* FlowModel::mutable_node(
int index) {
878 return node_.Mutable(index);
880 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::operations_research::Node >*
881 FlowModel::mutable_node() {
885 inline const ::operations_research::Node& FlowModel::_internal_node(
int index)
const {
886 return node_.Get(index);
888 inline const ::operations_research::Node& FlowModel::node(
int index)
const {
890 return _internal_node(index);
892 inline ::operations_research::Node* FlowModel::_internal_add_node() {
895 inline ::operations_research::Node* FlowModel::add_node() {
897 return _internal_add_node();
899 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::operations_research::Node >&
900 FlowModel::node()
const {
906 inline int FlowModel::_internal_arc_size()
const {
909 inline int FlowModel::arc_size()
const {
910 return _internal_arc_size();
912 inline void FlowModel::clear_arc() {
915 inline ::operations_research::Arc* FlowModel::mutable_arc(
int index) {
917 return arc_.Mutable(index);
919 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::operations_research::Arc >*
920 FlowModel::mutable_arc() {
924 inline const ::operations_research::Arc& FlowModel::_internal_arc(
int index)
const {
925 return arc_.Get(index);
927 inline const ::operations_research::Arc& FlowModel::arc(
int index)
const {
929 return _internal_arc(index);
931 inline ::operations_research::Arc* FlowModel::_internal_add_arc() {
934 inline ::operations_research::Arc* FlowModel::add_arc() {
936 return _internal_add_arc();
938 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::operations_research::Arc >&
939 FlowModel::arc()
const {
945 inline bool FlowModel::_internal_has_problem_type()
const {
946 bool value = (_has_bits_[0] & 0x00000001u) != 0;
949 inline bool FlowModel::has_problem_type()
const {
950 return _internal_has_problem_type();
952 inline void FlowModel::clear_problem_type() {
954 _has_bits_[0] &= ~0x00000001u;
961 return _internal_problem_type();
965 _has_bits_[0] |= 0x00000001u;
966 problem_type_ = value;
969 _internal_set_problem_type(value);
974 #pragma GCC diagnostic pop
985 PROTOBUF_NAMESPACE_OPEN
989 inline const EnumDescriptor* GetEnumDescriptor< ::operations_research::FlowModel_ProblemType>() {
993 PROTOBUF_NAMESPACE_CLOSE
997 #include <google/protobuf/port_undef.inc>
bool has_tail_node_id() const
Arc & operator=(Arc &&from) noexcept
Node(Node &&from) noexcept
friend void swap(Arc &a, Arc &b)
void set_head_node_id(::PROTOBUF_NAMESPACE_ID::int64 value)
void set_capacity(::PROTOBUF_NAMESPACE_ID::int64 value)
Arc(::PROTOBUF_NAMESPACE_ID::Arena *arena)
Node & operator=(Node &&from) noexcept
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
::PROTOBUF_NAMESPACE_ID::int64 id() const
friend void swap(FlowModel &a, FlowModel &b)
static const Arc & default_instance()
static const Arc * internal_default_instance()
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
friend void swap(Node &a, Node &b)
void set_supply(::PROTOBUF_NAMESPACE_ID::int64 value)
void MergeFrom(const Arc &from)
::operations_research::Arc * mutable_arc(int index)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
static const FlowModel & default_instance()
Node & operator=(const Node &from)
static const FlowModel * internal_default_instance()
void Swap(FlowModel *other)
void set_id(::PROTOBUF_NAMESPACE_ID::int64 value)
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
static const Node & default_instance()
FlowModel * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
void CopyFrom(const Arc &from)
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::operations_research::Node > & node() const
const ::operations_research::Node & node(int index) const
::PROTOBUF_NAMESPACE_ID::int64 supply() const
::PROTOBUF_NAMESPACE_ID::int64 head_node_id() const
constexpr Node(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
Node(::PROTOBUF_NAMESPACE_ID::Arena *arena)
bool has_problem_type() const
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::operations_research::Node > * mutable_node()
const ::operations_research::Arc & arc(int index) const
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * ProblemType_descriptor()
Node * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
FlowModel * New() const final
FlowModel(FlowModel &&from) noexcept
void clear_head_node_id()
void UnsafeArenaSwap(Arc *other)
::PROTOBUF_NAMESPACE_ID::int64 capacity() const
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void clear_problem_type()
static bool ProblemType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ProblemType *value)
::operations_research::FlowModel_ProblemType problem_type() const
::operations_research::Arc * add_arc()
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::operations_research::Arc > & arc() const
void set_problem_type(::operations_research::FlowModel_ProblemType value)
FlowModel_ProblemType ProblemType
void CopyFrom(const FlowModel &from)
static const Node * internal_default_instance()
Arc & operator=(const Arc &from)
constexpr Arc(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
FlowModel(::PROTOBUF_NAMESPACE_ID::Arena *arena)
void UnsafeArenaSwap(Node *other)
Arc * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
bool has_capacity() const
void CopyFrom(const Node &from)
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
::operations_research::Node * add_node()
bool has_head_node_id() const
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const std::string & ProblemType_Name(T enum_t_value)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
void set_unit_cost(::PROTOBUF_NAMESPACE_ID::int64 value)
void clear_tail_node_id()
::PROTOBUF_NAMESPACE_ID::int64 unit_cost() const
void set_tail_node_id(::PROTOBUF_NAMESPACE_ID::int64 value)
void MergeFrom(const Node &from)
bool has_unit_cost() const
::PROTOBUF_NAMESPACE_ID::int64 tail_node_id() const
constexpr FlowModel(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
::operations_research::Node * mutable_node(int index)
void MergeFrom(const FlowModel &from)
FlowModel & operator=(const FlowModel &from)
static bool ProblemType_IsValid(int value)
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
FlowModel(const FlowModel &from)
void UnsafeArenaSwap(FlowModel *other)
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::operations_research::Arc > * mutable_arc()
FlowModel & operator=(FlowModel &&from) noexcept
::PROTOBUF_NAMESPACE_ID::Metadata descriptor_table_ortools_2fgraph_2fflow_5fproblem_2eproto_metadata_getter(int index)
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ortools_2fgraph_2fflow_5fproblem_2eproto
const std::string & FlowModel_ProblemType_Name(T enum_t_value)
NodeDefaultTypeInternal _Node_default_instance_
@ FlowModel_ProblemType_MAX_FLOW
@ FlowModel_ProblemType_MIN_COST_FLOW
@ FlowModel_ProblemType_LINEAR_SUM_ASSIGNMENT
FlowModelDefaultTypeInternal _FlowModel_default_instance_
constexpr FlowModel_ProblemType FlowModel_ProblemType_ProblemType_MIN
constexpr int FlowModel_ProblemType_ProblemType_ARRAYSIZE
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * FlowModel_ProblemType_descriptor()
ArcDefaultTypeInternal _Arc_default_instance_
bool FlowModel_ProblemType_IsValid(int value)
bool FlowModel_ProblemType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FlowModel_ProblemType *value)
constexpr FlowModel_ProblemType FlowModel_ProblemType_ProblemType_MAX