C++ Reference

C++ Reference: Graph

flow_problem.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ortools/graph/flow_problem.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ortools_2fgraph_2fflow_5fproblem_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ortools_2fgraph_2fflow_5fproblem_2eproto
6 
7 #include <limits>
8 #include <string>
9 
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3012000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
14 #error your headers.
15 #endif
16 #if 3012002 < 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.
20 #endif
21 
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> // IWYU pragma: export
33 #include <google/protobuf/extension_set.h> // IWYU pragma: export
34 #include <google/protobuf/generated_enum_reflection.h>
35 #include <google/protobuf/unknown_field_set.h>
36 // @@protoc_insertion_point(includes)
37 #include <google/protobuf/port_def.inc>
38 #define PROTOBUF_INTERNAL_EXPORT_ortools_2fgraph_2fflow_5fproblem_2eproto
39 PROTOBUF_NAMESPACE_OPEN
40 namespace internal {
41 class AnyMetadata;
42 } // namespace internal
43 PROTOBUF_NAMESPACE_CLOSE
44 
45 // Internal implementation detail -- do not use these members.
47  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
48  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
49  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
50  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
51  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3]
52  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
53  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
54  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
55  static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
56 };
57 extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ortools_2fgraph_2fflow_5fproblem_2eproto;
58 namespace operations_research {
59 class Arc;
60 class ArcDefaultTypeInternal;
61 extern ArcDefaultTypeInternal _Arc_default_instance_;
62 class FlowModel;
63 class FlowModelDefaultTypeInternal;
64 extern FlowModelDefaultTypeInternal _FlowModel_default_instance_;
65 class Node;
66 class NodeDefaultTypeInternal;
67 extern NodeDefaultTypeInternal _Node_default_instance_;
68 } // namespace operations_research
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
74 namespace operations_research {
75 
80 };
85 
86 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FlowModel_ProblemType_descriptor();
87 template<typename T>
88 inline const std::string& FlowModel_ProblemType_Name(T enum_t_value) {
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(
93  FlowModel_ProblemType_descriptor(), enum_t_value);
94 }
96  const std::string& name, FlowModel_ProblemType* value) {
97  return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<FlowModel_ProblemType>(
98  FlowModel_ProblemType_descriptor(), name, value);
99 }
100 // ===================================================================
101 
102 class Arc PROTOBUF_FINAL :
103  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:operations_research.Arc) */ {
104  public:
105  inline Arc() : Arc(nullptr) {};
106  virtual ~Arc();
107 
108  Arc(const Arc& from);
109  Arc(Arc&& from) noexcept
110  : Arc() {
111  *this = ::std::move(from);
112  }
113 
114  inline Arc& operator=(const Arc& from) {
115  CopyFrom(from);
116  return *this;
117  }
118  inline Arc& operator=(Arc&& from) noexcept {
119  if (GetArena() == from.GetArena()) {
120  if (this != &from) InternalSwap(&from);
121  } else {
122  CopyFrom(from);
123  }
124  return *this;
125  }
126 
127  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
128  return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
129  }
130  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
131  return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
132  }
133 
134  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
135  return GetDescriptor();
136  }
137  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
138  return GetMetadataStatic().descriptor;
139  }
140  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
141  return GetMetadataStatic().reflection;
142  }
143  static const Arc& default_instance();
144 
145  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
146  static inline const Arc* internal_default_instance() {
147  return reinterpret_cast<const Arc*>(
149  }
150  static constexpr int kIndexInFileMessages =
151  0;
152 
153  friend void swap(Arc& a, Arc& b) {
154  a.Swap(&b);
155  }
156  inline void Swap(Arc* other) {
157  if (other == this) return;
158  if (GetArena() == other->GetArena()) {
159  InternalSwap(other);
160  } else {
161  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
162  }
163  }
164  void UnsafeArenaSwap(Arc* other) {
165  if (other == this) return;
166  GOOGLE_DCHECK(GetArena() == other->GetArena());
167  InternalSwap(other);
168  }
169 
170  // implements Message ----------------------------------------------
171 
172  inline Arc* New() const final {
173  return CreateMaybeMessage<Arc>(nullptr);
174  }
175 
176  Arc* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
177  return CreateMaybeMessage<Arc>(arena);
178  }
179  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
180  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
181  void CopyFrom(const Arc& from);
182  void MergeFrom(const Arc& from);
183  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
184  bool IsInitialized() const final;
185 
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(); }
191 
192  private:
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";
200  }
201  protected:
202  explicit Arc(::PROTOBUF_NAMESPACE_ID::Arena* arena);
203  private:
204  static void ArenaDtor(void* object);
205  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
206  public:
207 
208  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
209  private:
210  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
211  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_ortools_2fgraph_2fflow_5fproblem_2eproto);
212  return ::descriptor_table_ortools_2fgraph_2fflow_5fproblem_2eproto.file_level_metadata[kIndexInFileMessages];
213  }
214 
215  public:
216 
217  // nested types ----------------------------------------------------
218 
219  // accessors -------------------------------------------------------
220 
221  enum : int {
222  kTailNodeIdFieldNumber = 1,
223  kHeadNodeIdFieldNumber = 2,
224  kUnitCostFieldNumber = 4,
225  kCapacityFieldNumber = 3,
226  };
227  // optional int64 tail_node_id = 1;
228  bool has_tail_node_id() const;
229  private:
230  bool _internal_has_tail_node_id() const;
231  public:
233  ::PROTOBUF_NAMESPACE_ID::int64 tail_node_id() const;
234  void set_tail_node_id(::PROTOBUF_NAMESPACE_ID::int64 value);
235  private:
236  ::PROTOBUF_NAMESPACE_ID::int64 _internal_tail_node_id() const;
237  void _internal_set_tail_node_id(::PROTOBUF_NAMESPACE_ID::int64 value);
238  public:
239 
240  // optional int64 head_node_id = 2;
241  bool has_head_node_id() const;
242  private:
243  bool _internal_has_head_node_id() const;
244  public:
246  ::PROTOBUF_NAMESPACE_ID::int64 head_node_id() const;
247  void set_head_node_id(::PROTOBUF_NAMESPACE_ID::int64 value);
248  private:
249  ::PROTOBUF_NAMESPACE_ID::int64 _internal_head_node_id() const;
250  void _internal_set_head_node_id(::PROTOBUF_NAMESPACE_ID::int64 value);
251  public:
252 
253  // optional int64 unit_cost = 4 [default = 0];
254  bool has_unit_cost() const;
255  private:
256  bool _internal_has_unit_cost() const;
257  public:
259  ::PROTOBUF_NAMESPACE_ID::int64 unit_cost() const;
260  void set_unit_cost(::PROTOBUF_NAMESPACE_ID::int64 value);
261  private:
262  ::PROTOBUF_NAMESPACE_ID::int64 _internal_unit_cost() const;
263  void _internal_set_unit_cost(::PROTOBUF_NAMESPACE_ID::int64 value);
264  public:
265 
266  // optional int64 capacity = 3 [default = 1];
267  bool has_capacity() const;
268  private:
269  bool _internal_has_capacity() const;
270  public:
272  ::PROTOBUF_NAMESPACE_ID::int64 capacity() const;
273  void set_capacity(::PROTOBUF_NAMESPACE_ID::int64 value);
274  private:
275  ::PROTOBUF_NAMESPACE_ID::int64 _internal_capacity() const;
276  void _internal_set_capacity(::PROTOBUF_NAMESPACE_ID::int64 value);
277  public:
278 
279  // @@protoc_insertion_point(class_scope:operations_research.Arc)
280  private:
281  class _Internal;
282 
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;
293 };
294 // -------------------------------------------------------------------
295 
296 class Node PROTOBUF_FINAL :
297  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:operations_research.Node) */ {
298  public:
299  inline Node() : Node(nullptr) {};
300  virtual ~Node();
301 
302  Node(const Node& from);
303  Node(Node&& from) noexcept
304  : Node() {
305  *this = ::std::move(from);
306  }
307 
308  inline Node& operator=(const Node& from) {
309  CopyFrom(from);
310  return *this;
311  }
312  inline Node& operator=(Node&& from) noexcept {
313  if (GetArena() == from.GetArena()) {
314  if (this != &from) InternalSwap(&from);
315  } else {
316  CopyFrom(from);
317  }
318  return *this;
319  }
320 
321  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
322  return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
323  }
324  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
325  return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
326  }
327 
328  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
329  return GetDescriptor();
330  }
331  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
332  return GetMetadataStatic().descriptor;
333  }
334  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
335  return GetMetadataStatic().reflection;
336  }
337  static const Node& default_instance();
338 
339  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
340  static inline const Node* internal_default_instance() {
341  return reinterpret_cast<const Node*>(
343  }
344  static constexpr int kIndexInFileMessages =
345  1;
346 
347  friend void swap(Node& a, Node& b) {
348  a.Swap(&b);
349  }
350  inline void Swap(Node* other) {
351  if (other == this) return;
352  if (GetArena() == other->GetArena()) {
353  InternalSwap(other);
354  } else {
355  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
356  }
357  }
358  void UnsafeArenaSwap(Node* other) {
359  if (other == this) return;
360  GOOGLE_DCHECK(GetArena() == other->GetArena());
361  InternalSwap(other);
362  }
363 
364  // implements Message ----------------------------------------------
365 
366  inline Node* New() const final {
367  return CreateMaybeMessage<Node>(nullptr);
368  }
369 
370  Node* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
371  return CreateMaybeMessage<Node>(arena);
372  }
373  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
374  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
375  void CopyFrom(const Node& from);
376  void MergeFrom(const Node& from);
377  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
378  bool IsInitialized() const final;
379 
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(); }
385 
386  private:
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";
394  }
395  protected:
396  explicit Node(::PROTOBUF_NAMESPACE_ID::Arena* arena);
397  private:
398  static void ArenaDtor(void* object);
399  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
400  public:
401 
402  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
403  private:
404  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
405  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_ortools_2fgraph_2fflow_5fproblem_2eproto);
406  return ::descriptor_table_ortools_2fgraph_2fflow_5fproblem_2eproto.file_level_metadata[kIndexInFileMessages];
407  }
408 
409  public:
410 
411  // nested types ----------------------------------------------------
412 
413  // accessors -------------------------------------------------------
414 
415  enum : int {
416  kIdFieldNumber = 1,
417  kSupplyFieldNumber = 2,
418  };
419  // optional int64 id = 1;
420  bool has_id() const;
421  private:
422  bool _internal_has_id() const;
423  public:
424  void clear_id();
425  ::PROTOBUF_NAMESPACE_ID::int64 id() const;
426  void set_id(::PROTOBUF_NAMESPACE_ID::int64 value);
427  private:
428  ::PROTOBUF_NAMESPACE_ID::int64 _internal_id() const;
429  void _internal_set_id(::PROTOBUF_NAMESPACE_ID::int64 value);
430  public:
431 
432  // optional int64 supply = 2 [default = 0];
433  bool has_supply() const;
434  private:
435  bool _internal_has_supply() const;
436  public:
437  void clear_supply();
438  ::PROTOBUF_NAMESPACE_ID::int64 supply() const;
439  void set_supply(::PROTOBUF_NAMESPACE_ID::int64 value);
440  private:
441  ::PROTOBUF_NAMESPACE_ID::int64 _internal_supply() const;
442  void _internal_set_supply(::PROTOBUF_NAMESPACE_ID::int64 value);
443  public:
444 
445  // @@protoc_insertion_point(class_scope:operations_research.Node)
446  private:
447  class _Internal;
448 
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;
457 };
458 // -------------------------------------------------------------------
459 
460 class FlowModel PROTOBUF_FINAL :
461  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:operations_research.FlowModel) */ {
462  public:
463  inline FlowModel() : FlowModel(nullptr) {};
464  virtual ~FlowModel();
465 
466  FlowModel(const FlowModel& from);
467  FlowModel(FlowModel&& from) noexcept
468  : FlowModel() {
469  *this = ::std::move(from);
470  }
471 
472  inline FlowModel& operator=(const FlowModel& from) {
473  CopyFrom(from);
474  return *this;
475  }
476  inline FlowModel& operator=(FlowModel&& from) noexcept {
477  if (GetArena() == from.GetArena()) {
478  if (this != &from) InternalSwap(&from);
479  } else {
480  CopyFrom(from);
481  }
482  return *this;
483  }
484 
485  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
486  return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
487  }
488  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
489  return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
490  }
491 
492  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
493  return GetDescriptor();
494  }
495  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
496  return GetMetadataStatic().descriptor;
497  }
498  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
499  return GetMetadataStatic().reflection;
500  }
501  static const FlowModel& default_instance();
502 
503  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
504  static inline const FlowModel* internal_default_instance() {
505  return reinterpret_cast<const FlowModel*>(
507  }
508  static constexpr int kIndexInFileMessages =
509  2;
510 
511  friend void swap(FlowModel& a, FlowModel& b) {
512  a.Swap(&b);
513  }
514  inline void Swap(FlowModel* other) {
515  if (other == this) return;
516  if (GetArena() == other->GetArena()) {
517  InternalSwap(other);
518  } else {
519  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
520  }
521  }
522  void UnsafeArenaSwap(FlowModel* other) {
523  if (other == this) return;
524  GOOGLE_DCHECK(GetArena() == other->GetArena());
525  InternalSwap(other);
526  }
527 
528  // implements Message ----------------------------------------------
529 
530  inline FlowModel* New() const final {
531  return CreateMaybeMessage<FlowModel>(nullptr);
532  }
533 
534  FlowModel* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
535  return CreateMaybeMessage<FlowModel>(arena);
536  }
537  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
538  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
539  void CopyFrom(const FlowModel& from);
540  void MergeFrom(const FlowModel& from);
541  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
542  bool IsInitialized() const final;
543 
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(); }
549 
550  private:
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";
558  }
559  protected:
560  explicit FlowModel(::PROTOBUF_NAMESPACE_ID::Arena* arena);
561  private:
562  static void ArenaDtor(void* object);
563  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
564  public:
565 
566  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
567  private:
568  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
569  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_ortools_2fgraph_2fflow_5fproblem_2eproto);
570  return ::descriptor_table_ortools_2fgraph_2fflow_5fproblem_2eproto.file_level_metadata[kIndexInFileMessages];
571  }
572 
573  public:
574 
575  // nested types ----------------------------------------------------
576 
578  static constexpr ProblemType LINEAR_SUM_ASSIGNMENT =
580  static constexpr ProblemType MAX_FLOW =
582  static constexpr ProblemType MIN_COST_FLOW =
584  static inline bool ProblemType_IsValid(int value) {
585  return FlowModel_ProblemType_IsValid(value);
586  }
587  static constexpr ProblemType ProblemType_MIN =
589  static constexpr ProblemType ProblemType_MAX =
591  static constexpr int ProblemType_ARRAYSIZE =
593  static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
596  }
597  template<typename T>
598  static inline const std::string& ProblemType_Name(T enum_t_value) {
599  static_assert(::std::is_same<T, ProblemType>::value ||
600  ::std::is_integral<T>::value,
601  "Incorrect type passed to function ProblemType_Name.");
602  return FlowModel_ProblemType_Name(enum_t_value);
603  }
604  static inline bool ProblemType_Parse(const std::string& name,
605  ProblemType* value) {
606  return FlowModel_ProblemType_Parse(name, value);
607  }
608 
609  // accessors -------------------------------------------------------
610 
611  enum : int {
612  kNodeFieldNumber = 1,
613  kArcFieldNumber = 2,
614  kProblemTypeFieldNumber = 3,
615  };
616  // repeated .operations_research.Node node = 1;
617  int node_size() const;
618  private:
619  int _internal_node_size() const;
620  public:
621  void clear_node();
622  ::operations_research::Node* mutable_node(int index);
623  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::operations_research::Node >*
625  private:
626  const ::operations_research::Node& _internal_node(int index) const;
627  ::operations_research::Node* _internal_add_node();
628  public:
629  const ::operations_research::Node& node(int index) const;
630  ::operations_research::Node* add_node();
631  const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::operations_research::Node >&
632  node() const;
633 
634  // repeated .operations_research.Arc arc = 2;
635  int arc_size() const;
636  private:
637  int _internal_arc_size() const;
638  public:
639  void clear_arc();
640  ::operations_research::Arc* mutable_arc(int index);
641  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::operations_research::Arc >*
643  private:
644  const ::operations_research::Arc& _internal_arc(int index) const;
645  ::operations_research::Arc* _internal_add_arc();
646  public:
647  const ::operations_research::Arc& arc(int index) const;
648  ::operations_research::Arc* add_arc();
649  const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::operations_research::Arc >&
650  arc() const;
651 
652  // optional .operations_research.FlowModel.ProblemType problem_type = 3 [default = MIN_COST_FLOW];
653  bool has_problem_type() const;
654  private:
655  bool _internal_has_problem_type() const;
656  public:
660  private:
661  ::operations_research::FlowModel_ProblemType _internal_problem_type() const;
662  void _internal_set_problem_type(::operations_research::FlowModel_ProblemType value);
663  public:
664 
665  // @@protoc_insertion_point(class_scope:operations_research.FlowModel)
666  private:
667  class _Internal;
668 
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_;
676  int problem_type_;
677  friend struct ::TableStruct_ortools_2fgraph_2fflow_5fproblem_2eproto;
678 };
679 // ===================================================================
680 
681 
682 // ===================================================================
683 
684 #ifdef __GNUC__
685  #pragma GCC diagnostic push
686  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
687 #endif // __GNUC__
688 // Arc
689 
690 // optional int64 tail_node_id = 1;
691 inline bool Arc::_internal_has_tail_node_id() const {
692  bool value = (_has_bits_[0] & 0x00000001u) != 0;
693  return value;
694 }
695 inline bool Arc::has_tail_node_id() const {
696  return _internal_has_tail_node_id();
697 }
698 inline void Arc::clear_tail_node_id() {
699  tail_node_id_ = PROTOBUF_LONGLONG(0);
700  _has_bits_[0] &= ~0x00000001u;
701 }
702 inline ::PROTOBUF_NAMESPACE_ID::int64 Arc::_internal_tail_node_id() const {
703  return tail_node_id_;
704 }
705 inline ::PROTOBUF_NAMESPACE_ID::int64 Arc::tail_node_id() const {
706  // @@protoc_insertion_point(field_get:operations_research.Arc.tail_node_id)
707  return _internal_tail_node_id();
708 }
709 inline void Arc::_internal_set_tail_node_id(::PROTOBUF_NAMESPACE_ID::int64 value) {
710  _has_bits_[0] |= 0x00000001u;
711  tail_node_id_ = value;
712 }
713 inline void Arc::set_tail_node_id(::PROTOBUF_NAMESPACE_ID::int64 value) {
714  _internal_set_tail_node_id(value);
715  // @@protoc_insertion_point(field_set:operations_research.Arc.tail_node_id)
716 }
717 
718 // optional int64 head_node_id = 2;
719 inline bool Arc::_internal_has_head_node_id() const {
720  bool value = (_has_bits_[0] & 0x00000002u) != 0;
721  return value;
722 }
723 inline bool Arc::has_head_node_id() const {
724  return _internal_has_head_node_id();
725 }
726 inline void Arc::clear_head_node_id() {
727  head_node_id_ = PROTOBUF_LONGLONG(0);
728  _has_bits_[0] &= ~0x00000002u;
729 }
730 inline ::PROTOBUF_NAMESPACE_ID::int64 Arc::_internal_head_node_id() const {
731  return head_node_id_;
732 }
733 inline ::PROTOBUF_NAMESPACE_ID::int64 Arc::head_node_id() const {
734  // @@protoc_insertion_point(field_get:operations_research.Arc.head_node_id)
735  return _internal_head_node_id();
736 }
737 inline void Arc::_internal_set_head_node_id(::PROTOBUF_NAMESPACE_ID::int64 value) {
738  _has_bits_[0] |= 0x00000002u;
739  head_node_id_ = value;
740 }
741 inline void Arc::set_head_node_id(::PROTOBUF_NAMESPACE_ID::int64 value) {
742  _internal_set_head_node_id(value);
743  // @@protoc_insertion_point(field_set:operations_research.Arc.head_node_id)
744 }
745 
746 // optional int64 capacity = 3 [default = 1];
747 inline bool Arc::_internal_has_capacity() const {
748  bool value = (_has_bits_[0] & 0x00000008u) != 0;
749  return value;
750 }
751 inline bool Arc::has_capacity() const {
752  return _internal_has_capacity();
753 }
754 inline void Arc::clear_capacity() {
755  capacity_ = PROTOBUF_LONGLONG(1);
756  _has_bits_[0] &= ~0x00000008u;
757 }
758 inline ::PROTOBUF_NAMESPACE_ID::int64 Arc::_internal_capacity() const {
759  return capacity_;
760 }
761 inline ::PROTOBUF_NAMESPACE_ID::int64 Arc::capacity() const {
762  // @@protoc_insertion_point(field_get:operations_research.Arc.capacity)
763  return _internal_capacity();
764 }
765 inline void Arc::_internal_set_capacity(::PROTOBUF_NAMESPACE_ID::int64 value) {
766  _has_bits_[0] |= 0x00000008u;
767  capacity_ = value;
768 }
769 inline void Arc::set_capacity(::PROTOBUF_NAMESPACE_ID::int64 value) {
770  _internal_set_capacity(value);
771  // @@protoc_insertion_point(field_set:operations_research.Arc.capacity)
772 }
773 
774 // optional int64 unit_cost = 4 [default = 0];
775 inline bool Arc::_internal_has_unit_cost() const {
776  bool value = (_has_bits_[0] & 0x00000004u) != 0;
777  return value;
778 }
779 inline bool Arc::has_unit_cost() const {
780  return _internal_has_unit_cost();
781 }
782 inline void Arc::clear_unit_cost() {
783  unit_cost_ = PROTOBUF_LONGLONG(0);
784  _has_bits_[0] &= ~0x00000004u;
785 }
786 inline ::PROTOBUF_NAMESPACE_ID::int64 Arc::_internal_unit_cost() const {
787  return unit_cost_;
788 }
789 inline ::PROTOBUF_NAMESPACE_ID::int64 Arc::unit_cost() const {
790  // @@protoc_insertion_point(field_get:operations_research.Arc.unit_cost)
791  return _internal_unit_cost();
792 }
793 inline void Arc::_internal_set_unit_cost(::PROTOBUF_NAMESPACE_ID::int64 value) {
794  _has_bits_[0] |= 0x00000004u;
795  unit_cost_ = value;
796 }
797 inline void Arc::set_unit_cost(::PROTOBUF_NAMESPACE_ID::int64 value) {
798  _internal_set_unit_cost(value);
799  // @@protoc_insertion_point(field_set:operations_research.Arc.unit_cost)
800 }
801 
802 // -------------------------------------------------------------------
803 
804 // Node
805 
806 // optional int64 id = 1;
807 inline bool Node::_internal_has_id() const {
808  bool value = (_has_bits_[0] & 0x00000001u) != 0;
809  return value;
810 }
811 inline bool Node::has_id() const {
812  return _internal_has_id();
813 }
814 inline void Node::clear_id() {
815  id_ = PROTOBUF_LONGLONG(0);
816  _has_bits_[0] &= ~0x00000001u;
817 }
818 inline ::PROTOBUF_NAMESPACE_ID::int64 Node::_internal_id() const {
819  return id_;
820 }
821 inline ::PROTOBUF_NAMESPACE_ID::int64 Node::id() const {
822  // @@protoc_insertion_point(field_get:operations_research.Node.id)
823  return _internal_id();
824 }
825 inline void Node::_internal_set_id(::PROTOBUF_NAMESPACE_ID::int64 value) {
826  _has_bits_[0] |= 0x00000001u;
827  id_ = value;
828 }
829 inline void Node::set_id(::PROTOBUF_NAMESPACE_ID::int64 value) {
830  _internal_set_id(value);
831  // @@protoc_insertion_point(field_set:operations_research.Node.id)
832 }
833 
834 // optional int64 supply = 2 [default = 0];
835 inline bool Node::_internal_has_supply() const {
836  bool value = (_has_bits_[0] & 0x00000002u) != 0;
837  return value;
838 }
839 inline bool Node::has_supply() const {
840  return _internal_has_supply();
841 }
842 inline void Node::clear_supply() {
843  supply_ = PROTOBUF_LONGLONG(0);
844  _has_bits_[0] &= ~0x00000002u;
845 }
846 inline ::PROTOBUF_NAMESPACE_ID::int64 Node::_internal_supply() const {
847  return supply_;
848 }
849 inline ::PROTOBUF_NAMESPACE_ID::int64 Node::supply() const {
850  // @@protoc_insertion_point(field_get:operations_research.Node.supply)
851  return _internal_supply();
852 }
853 inline void Node::_internal_set_supply(::PROTOBUF_NAMESPACE_ID::int64 value) {
854  _has_bits_[0] |= 0x00000002u;
855  supply_ = value;
856 }
857 inline void Node::set_supply(::PROTOBUF_NAMESPACE_ID::int64 value) {
858  _internal_set_supply(value);
859  // @@protoc_insertion_point(field_set:operations_research.Node.supply)
860 }
861 
862 // -------------------------------------------------------------------
863 
864 // FlowModel
865 
866 // repeated .operations_research.Node node = 1;
867 inline int FlowModel::_internal_node_size() const {
868  return node_.size();
869 }
870 inline int FlowModel::node_size() const {
871  return _internal_node_size();
872 }
873 inline void FlowModel::clear_node() {
874  node_.Clear();
875 }
876 inline ::operations_research::Node* FlowModel::mutable_node(int index) {
877  // @@protoc_insertion_point(field_mutable:operations_research.FlowModel.node)
878  return node_.Mutable(index);
879 }
880 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::operations_research::Node >*
881 FlowModel::mutable_node() {
882  // @@protoc_insertion_point(field_mutable_list:operations_research.FlowModel.node)
883  return &node_;
884 }
885 inline const ::operations_research::Node& FlowModel::_internal_node(int index) const {
886  return node_.Get(index);
887 }
888 inline const ::operations_research::Node& FlowModel::node(int index) const {
889  // @@protoc_insertion_point(field_get:operations_research.FlowModel.node)
890  return _internal_node(index);
891 }
892 inline ::operations_research::Node* FlowModel::_internal_add_node() {
893  return node_.Add();
894 }
895 inline ::operations_research::Node* FlowModel::add_node() {
896  // @@protoc_insertion_point(field_add:operations_research.FlowModel.node)
897  return _internal_add_node();
898 }
899 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::operations_research::Node >&
900 FlowModel::node() const {
901  // @@protoc_insertion_point(field_list:operations_research.FlowModel.node)
902  return node_;
903 }
904 
905 // repeated .operations_research.Arc arc = 2;
906 inline int FlowModel::_internal_arc_size() const {
907  return arc_.size();
908 }
909 inline int FlowModel::arc_size() const {
910  return _internal_arc_size();
911 }
912 inline void FlowModel::clear_arc() {
913  arc_.Clear();
914 }
915 inline ::operations_research::Arc* FlowModel::mutable_arc(int index) {
916  // @@protoc_insertion_point(field_mutable:operations_research.FlowModel.arc)
917  return arc_.Mutable(index);
918 }
919 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::operations_research::Arc >*
920 FlowModel::mutable_arc() {
921  // @@protoc_insertion_point(field_mutable_list:operations_research.FlowModel.arc)
922  return &arc_;
923 }
924 inline const ::operations_research::Arc& FlowModel::_internal_arc(int index) const {
925  return arc_.Get(index);
926 }
927 inline const ::operations_research::Arc& FlowModel::arc(int index) const {
928  // @@protoc_insertion_point(field_get:operations_research.FlowModel.arc)
929  return _internal_arc(index);
930 }
931 inline ::operations_research::Arc* FlowModel::_internal_add_arc() {
932  return arc_.Add();
933 }
934 inline ::operations_research::Arc* FlowModel::add_arc() {
935  // @@protoc_insertion_point(field_add:operations_research.FlowModel.arc)
936  return _internal_add_arc();
937 }
938 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::operations_research::Arc >&
939 FlowModel::arc() const {
940  // @@protoc_insertion_point(field_list:operations_research.FlowModel.arc)
941  return arc_;
942 }
943 
944 // optional .operations_research.FlowModel.ProblemType problem_type = 3 [default = MIN_COST_FLOW];
945 inline bool FlowModel::_internal_has_problem_type() const {
946  bool value = (_has_bits_[0] & 0x00000001u) != 0;
947  return value;
948 }
949 inline bool FlowModel::has_problem_type() const {
950  return _internal_has_problem_type();
951 }
952 inline void FlowModel::clear_problem_type() {
953  problem_type_ = 2;
954  _has_bits_[0] &= ~0x00000001u;
955 }
956 inline ::operations_research::FlowModel_ProblemType FlowModel::_internal_problem_type() const {
957  return static_cast< ::operations_research::FlowModel_ProblemType >(problem_type_);
958 }
959 inline ::operations_research::FlowModel_ProblemType FlowModel::problem_type() const {
960  // @@protoc_insertion_point(field_get:operations_research.FlowModel.problem_type)
961  return _internal_problem_type();
962 }
963 inline void FlowModel::_internal_set_problem_type(::operations_research::FlowModel_ProblemType value) {
965  _has_bits_[0] |= 0x00000001u;
966  problem_type_ = value;
967 }
968 inline void FlowModel::set_problem_type(::operations_research::FlowModel_ProblemType value) {
969  _internal_set_problem_type(value);
970  // @@protoc_insertion_point(field_set:operations_research.FlowModel.problem_type)
971 }
972 
973 #ifdef __GNUC__
974  #pragma GCC diagnostic pop
975 #endif // __GNUC__
976 // -------------------------------------------------------------------
977 
978 // -------------------------------------------------------------------
979 
980 
981 // @@protoc_insertion_point(namespace_scope)
982 
983 } // namespace operations_research
984 
985 PROTOBUF_NAMESPACE_OPEN
986 
987 template <> struct is_proto_enum< ::operations_research::FlowModel_ProblemType> : ::std::true_type {};
988 template <>
989 inline const EnumDescriptor* GetEnumDescriptor< ::operations_research::FlowModel_ProblemType>() {
991 }
992 
993 PROTOBUF_NAMESPACE_CLOSE
994 
995 // @@protoc_insertion_point(global_scope)
996 
997 #include <google/protobuf/port_undef.inc>
998 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_ortools_2fgraph_2fflow_5fproblem_2eproto
static const FlowModel * internal_default_instance()
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
FlowModel_ProblemType
::operations_research::Arc * add_arc()
bool FlowModel_ProblemType_Parse(const std::string &name, FlowModel_ProblemType *value)
Node(const Node &from)
Arc & operator=(Arc &&from) noexcept
Arc()
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
void Swap(Node *other)
::PROTOBUF_NAMESPACE_ID::int64 capacity() const
FlowModel & operator=(const FlowModel &from)
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * FlowModel_ProblemType_descriptor()
void UnsafeArenaSwap(Node *other)
Arc * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Arc(Arc &&from) noexcept
int arc_size() const
NodeDefaultTypeInternal _Node_default_instance_
void CopyFrom(const Arc &from)
void CopyFrom(const Node &from)
void clear_problem_type()
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
bool has_head_node_id() const
static const Node * internal_default_instance()
const std::string & FlowModel_ProblemType_Name(T enum_t_value)
FlowModel(const FlowModel &from)
FlowModelDefaultTypeInternal _FlowModel_default_instance_
void MergeFrom(const Arc &from)
void clear_head_node_id()
::PROTOBUF_NAMESPACE_ID::int64 unit_cost() const
void MergeFrom(const Node &from)
bool has_supply() const
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::operations_research::Node > * mutable_node()
void clear_arc()
Definition: christofides.h:33
constexpr int FlowModel_ProblemType_ProblemType_ARRAYSIZE
@ FlowModel_ProblemType_MIN_COST_FLOW
void CopyFrom(const FlowModel &from)
void Swap(Arc *other)
bool has_tail_node_id() const
::operations_research::FlowModel_ProblemType problem_type() const
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ortools_2fgraph_2fflow_5fproblem_2eproto
Node * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
ArcDefaultTypeInternal _Arc_default_instance_
virtual ~FlowModel()
void MergeFrom(const FlowModel &from)
FlowModel(::PROTOBUF_NAMESPACE_ID::Arena *arena)
void clear_supply()
Node()
static const FlowModel & default_instance()
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
void set_problem_type(::operations_research::FlowModel_ProblemType value)
void clear_node()
Arc & operator=(const Arc &from)
@ FlowModel_ProblemType_LINEAR_SUM_ASSIGNMENT
constexpr FlowModel_ProblemType FlowModel_ProblemType_ProblemType_MAX
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
static const std::string & ProblemType_Name(T enum_t_value)
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::operations_research::Node > & node() const
void clear_id()
FlowModel * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::operations_research::Arc > & arc() const
const ::operations_research::Node & node(int index) const
bool has_capacity() const
static const Arc & default_instance()
FlowModel * New() const final
Node & operator=(Node &&from) noexcept
bool FlowModel_ProblemType_IsValid(int value)
bool has_id() const
FlowModel(FlowModel &&from) noexcept
::operations_research::Node * mutable_node(int index)
void UnsafeArenaSwap(Arc *other)
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * ProblemType_descriptor()
::PROTOBUF_NAMESPACE_ID::int64 id() const
void clear_tail_node_id()
FlowModel_ProblemType ProblemType
@ FlowModel_ProblemType_MAX_FLOW
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
int node_size() const
static bool ProblemType_IsValid(int value)
friend void swap(Node &a, Node &b)
static const Node & default_instance()
void set_id(::PROTOBUF_NAMESPACE_ID::int64 value)
Node(::PROTOBUF_NAMESPACE_ID::Arena *arena)
friend void swap(Arc &a, Arc &b)
::PROTOBUF_NAMESPACE_ID::int64 tail_node_id() const
Node(Node &&from) noexcept
void set_unit_cost(::PROTOBUF_NAMESPACE_ID::int64 value)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
::operations_research::Arc * mutable_arc(int index)
const ::operations_research::Arc & arc(int index) const
Arc * New() const final
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
bool has_problem_type() const
::PROTOBUF_NAMESPACE_ID::int64 supply() const
::PROTOBUF_NAMESPACE_ID::int64 head_node_id() const
Arc(::PROTOBUF_NAMESPACE_ID::Arena *arena)
void set_tail_node_id(::PROTOBUF_NAMESPACE_ID::int64 value)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
void clear_unit_cost()
void Swap(FlowModel *other)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
void set_capacity(::PROTOBUF_NAMESPACE_ID::int64 value)
static void InitAsDefaultInstance()
FlowModel()
void set_supply(::PROTOBUF_NAMESPACE_ID::int64 value)
virtual ~Node()
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::operations_research::Arc > * mutable_arc()
constexpr FlowModel_ProblemType FlowModel_ProblemType_ProblemType_MIN
Node * New() const final
void clear_capacity()
::operations_research::Node * add_node()
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void UnsafeArenaSwap(FlowModel *other)
friend void swap(FlowModel &a, FlowModel &b)
Arc(const Arc &from)
virtual ~Arc()
static bool ProblemType_Parse(const std::string &name, ProblemType *value)
bool has_unit_cost() const
void set_head_node_id(::PROTOBUF_NAMESPACE_ID::int64 value)
static const Arc * internal_default_instance()
FlowModel & operator=(FlowModel &&from) noexcept
Node & operator=(const Node &from)