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 < 3013000
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 3013000 < 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/inlined_string_field.h>
29 #include <google/protobuf/metadata_lite.h>
30 #include <google/protobuf/generated_message_reflection.h>
31 #include <google/protobuf/message.h>
32 #include <google/protobuf/repeated_field.h>
33 #include <google/protobuf/extension_set.h>
34 #include <google/protobuf/generated_enum_reflection.h>
35 #include <google/protobuf/unknown_field_set.h>
37 #include <google/protobuf/port_def.inc>
38 #define PROTOBUF_INTERNAL_EXPORT_ortools_2fgraph_2fflow_5fproblem_2eproto
39 PROTOBUF_NAMESPACE_OPEN
43 PROTOBUF_NAMESPACE_CLOSE
47 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
49 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
51 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3]
53 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata
field_metadata[];
60 class ArcDefaultTypeInternal;
69 PROTOBUF_NAMESPACE_OPEN
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
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>(
102 class Arc PROTOBUF_FINAL :
103 public ::PROTOBUF_NAMESPACE_ID::Message {
111 *
this = ::std::move(from);
119 if (GetArena() == from.GetArena()) {
120 if (
this != &from) InternalSwap(&from);
128 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
131 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
134 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
135 return GetDescriptor();
138 return GetMetadataStatic().descriptor;
141 return GetMetadataStatic().reflection;
147 return reinterpret_cast<const Arc*
>(
150 static constexpr
int kIndexInFileMessages =
157 if (other ==
this)
return;
158 if (GetArena() == other->GetArena()) {
161 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
165 if (other ==
this)
return;
166 GOOGLE_DCHECK(GetArena() == other->GetArena());
173 return CreateMaybeMessage<Arc>(
nullptr);
176 Arc*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
177 return CreateMaybeMessage<Arc>(arena);
179 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
180 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
183 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
184 bool IsInitialized() const final;
186 size_t ByteSizeLong() const final;
187 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
188 ::PROTOBUF_NAMESPACE_ID::
uint8* _InternalSerialize(
189 ::PROTOBUF_NAMESPACE_ID::
uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
190 int GetCachedSize() const final {
return _cached_size_.Get(); }
193 inline void SharedCtor();
194 inline void SharedDtor();
195 void SetCachedSize(
int size)
const final;
196 void InternalSwap(
Arc* other);
197 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
198 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
199 return "operations_research.Arc";
202 explicit Arc(::PROTOBUF_NAMESPACE_ID::Arena* arena);
204 static void ArenaDtor(
void*
object);
205 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
210 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;
243 bool _internal_has_head_node_id()
const;
256 bool _internal_has_unit_cost()
const;
269 bool _internal_has_capacity()
const;
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_;
292 friend struct ::TableStruct_ortools_2fgraph_2fflow_5fproblem_2eproto;
297 public ::PROTOBUF_NAMESPACE_ID::Message {
299 inline Node() : Node(nullptr) {}
305 *
this = ::std::move(from);
313 if (GetArena() == from.GetArena()) {
314 if (
this != &from) InternalSwap(&from);
322 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
325 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
328 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
329 return GetDescriptor();
332 return GetMetadataStatic().descriptor;
335 return GetMetadataStatic().reflection;
341 return reinterpret_cast<const Node*
>(
344 static constexpr
int kIndexInFileMessages =
350 inline void Swap(Node* other) {
351 if (other ==
this)
return;
352 if (GetArena() == other->GetArena()) {
355 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
359 if (other ==
this)
return;
360 GOOGLE_DCHECK(GetArena() == other->GetArena());
366 inline Node*
New() const final {
367 return CreateMaybeMessage<Node>(
nullptr);
370 Node*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
371 return CreateMaybeMessage<Node>(arena);
373 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
374 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
377 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
378 bool IsInitialized() const final;
380 size_t ByteSizeLong() const final;
381 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
382 ::PROTOBUF_NAMESPACE_ID::
uint8* _InternalSerialize(
383 ::PROTOBUF_NAMESPACE_ID::
uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
384 int GetCachedSize() const final {
return _cached_size_.Get(); }
387 inline void SharedCtor();
388 inline void SharedDtor();
389 void SetCachedSize(
int size)
const final;
390 void InternalSwap(Node* other);
391 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
392 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
393 return "operations_research.Node";
396 explicit Node(::PROTOBUF_NAMESPACE_ID::Arena* arena);
398 static void ArenaDtor(
void*
object);
399 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
404 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
417 kSupplyFieldNumber = 2,
422 bool _internal_has_id()
const;
435 bool _internal_has_supply()
const;
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_;
456 friend struct ::TableStruct_ortools_2fgraph_2fflow_5fproblem_2eproto;
461 public ::PROTOBUF_NAMESPACE_ID::Message {
469 *
this = ::std::move(from);
476 inline FlowModel&
operator=(FlowModel&& from) noexcept {
477 if (GetArena() == from.GetArena()) {
478 if (
this != &from) InternalSwap(&from);
486 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
489 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
492 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
493 return GetDescriptor();
496 return GetMetadataStatic().descriptor;
499 return GetMetadataStatic().reflection;
505 return reinterpret_cast<const FlowModel*
>(
508 static constexpr
int kIndexInFileMessages =
511 friend void swap(FlowModel&
a, FlowModel&
b) {
514 inline void Swap(FlowModel* other) {
515 if (other ==
this)
return;
516 if (GetArena() == other->GetArena()) {
519 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
523 if (other ==
this)
return;
524 GOOGLE_DCHECK(GetArena() == other->GetArena());
530 inline FlowModel*
New() const final {
531 return CreateMaybeMessage<FlowModel>(
nullptr);
534 FlowModel*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
535 return CreateMaybeMessage<FlowModel>(arena);
537 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
538 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
541 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
542 bool IsInitialized() const final;
544 size_t ByteSizeLong() const final;
545 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
546 ::PROTOBUF_NAMESPACE_ID::
uint8* _InternalSerialize(
547 ::PROTOBUF_NAMESPACE_ID::
uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
548 int GetCachedSize() const final {
return _cached_size_.Get(); }
551 inline void SharedCtor();
552 inline void SharedDtor();
553 void SetCachedSize(
int size)
const final;
554 void InternalSwap(FlowModel* other);
555 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
556 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
557 return "operations_research.FlowModel";
560 explicit FlowModel(::PROTOBUF_NAMESPACE_ID::Arena* arena);
562 static void ArenaDtor(
void*
object);
563 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
568 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
591 static constexpr
int ProblemType_ARRAYSIZE =
593 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
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 >*
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;
703 return tail_node_id_;
707 return _internal_tail_node_id();
710 _has_bits_[0] |= 0x00000001u;
711 tail_node_id_ =
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;
731 return head_node_id_;
735 return _internal_head_node_id();
738 _has_bits_[0] |= 0x00000002u;
739 head_node_id_ =
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;
763 return _internal_capacity();
766 _has_bits_[0] |= 0x00000008u;
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;
791 return _internal_unit_cost();
794 _has_bits_[0] |= 0x00000004u;
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;
823 return _internal_id();
826 _has_bits_[0] |= 0x00000001u;
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;
851 return _internal_supply();
854 _has_bits_[0] |= 0x00000002u;
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() {
917 return arc_.Mutable(
index);
919 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::operations_research::Arc >*
920 FlowModel::mutable_arc() {
925 return arc_.Get(
index);
929 return _internal_arc(
index);
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>
998 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_ortools_2fgraph_2fflow_5fproblem_2eproto