Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
flow_problem.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// NO CHECKED-IN PROTOBUF GENCODE
3// source: ortools/graph/flow_problem.proto
4// Protobuf C++ Version: 6.31.1
5
6#ifndef ortools_2fgraph_2fflow_5fproblem_2eproto_2epb_2eh
7#define ortools_2fgraph_2fflow_5fproblem_2eproto_2epb_2eh
8
9#include <limits>
10#include <string>
11#include <type_traits>
12#include <utility>
13
14#include "google/protobuf/runtime_version.h"
15#if PROTOBUF_VERSION != 6031001
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"
19#endif
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" // IWYU pragma: export
30#include "google/protobuf/extension_set.h" // IWYU pragma: export
31#include "google/protobuf/generated_enum_reflection.h"
32#include "google/protobuf/unknown_field_set.h"
33// @@protoc_insertion_point(includes)
34
35// Must be included last.
36#include "google/protobuf/port_def.inc"
37
38#define PROTOBUF_INTERNAL_EXPORT_ortools_2fgraph_2fflow_5fproblem_2eproto OR_PROTO_DLL
39
40namespace google {
41namespace protobuf {
42namespace internal {
43template <typename T>
44::absl::string_view GetAnyMessageName();
45} // namespace internal
46} // namespace protobuf
47} // namespace google
48
49// Internal implementation detail -- do not use these members.
51 static const ::uint32_t offsets[];
52};
53extern "C" {
54OR_PROTO_DLL extern const ::google::protobuf::internal::DescriptorTable descriptor_table_ortools_2fgraph_2fflow_5fproblem_2eproto;
55} // extern "C"
56namespace operations_research {
58OR_PROTO_DLL extern const uint32_t FlowModelProto_ProblemType_internal_data_[];
59class FlowArcProto;
62OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull FlowArcProto_class_data_;
63class FlowModelProto;
66OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull FlowModelProto_class_data_;
67class FlowNodeProto;
70OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull FlowNodeProto_class_data_;
71} // namespace operations_research
72namespace google {
73namespace protobuf {
74template <>
75internal::EnumTraitsT<::operations_research::FlowModelProto_ProblemType_internal_data_>
76 internal::EnumTraitsImpl::value<::operations_research::FlowModelProto_ProblemType>;
77} // namespace protobuf
78} // namespace google
79
80namespace operations_research {
86
87OR_PROTO_DLL extern const uint32_t FlowModelProto_ProblemType_internal_data_[];
89 static_cast<FlowModelProto_ProblemType>(0);
91 static_cast<FlowModelProto_ProblemType>(2);
92inline bool FlowModelProto_ProblemType_IsValid(int value) {
93 return 0 <= value && value <= 2;
94}
96OR_PROTO_DLL const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL FlowModelProto_ProblemType_descriptor();
97template <typename T>
98const ::std::string& FlowModelProto_ProblemType_Name(T value) {
99 static_assert(::std::is_same<T, FlowModelProto_ProblemType>::value ||
100 ::std::is_integral<T>::value,
101 "Incorrect type passed to ProblemType_Name().");
103}
104template <>
106 return ::google::protobuf::internal::NameOfDenseEnum<FlowModelProto_ProblemType_descriptor, 0, 2>(
107 static_cast<int>(value));
108}
110 ::absl::string_view name, FlowModelProto_ProblemType* PROTOBUF_NONNULL value) {
111 return ::google::protobuf::internal::ParseNamedEnum<FlowModelProto_ProblemType>(FlowModelProto_ProblemType_descriptor(), name,
112 value);
113}
114
115// ===================================================================
116
117
118// -------------------------------------------------------------------
119
120class OR_PROTO_DLL FlowNodeProto final : public ::google::protobuf::Message
121/* @@protoc_insertion_point(class_definition:operations_research.FlowNodeProto) */ {
122 public:
123 inline FlowNodeProto() : FlowNodeProto(nullptr) {}
124 ~FlowNodeProto() PROTOBUF_FINAL;
126#if defined(PROTOBUF_CUSTOM_VTABLE)
127 void operator delete(FlowNodeProto* PROTOBUF_NONNULL msg, std::destroying_delete_t) {
128 SharedDtor(*msg);
129 ::google::protobuf::internal::SizedDelete(msg, sizeof(FlowNodeProto));
130 }
131#endif
132
133 template <typename = void>
134 explicit PROTOBUF_CONSTEXPR FlowNodeProto(::google::protobuf::internal::ConstantInitialized);
135
136 inline FlowNodeProto(const FlowNodeProto& from) : FlowNodeProto(nullptr, from) {}
137 inline FlowNodeProto(FlowNodeProto&& from) noexcept
138 : FlowNodeProto(nullptr, ::std::move(from)) {}
139 inline FlowNodeProto& operator=(const FlowNodeProto& from) {
140 CopyFrom(from);
141 return *this;
142 }
143 inline FlowNodeProto& operator=(FlowNodeProto&& from) noexcept {
144 if (this == &from) return *this;
145 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
146 InternalSwap(&from);
147 } else {
148 CopyFrom(from);
149 }
150 return *this;
151 }
152
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);
156 }
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>();
160 }
161
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;
171 static const FlowNodeProto& default_instance() {
172 return *reinterpret_cast<const FlowNodeProto*>(
174 }
175 static constexpr int kIndexInFileMessages = 1;
176 friend void swap(FlowNodeProto& a, FlowNodeProto& b) { a.Swap(&b); }
177 inline void Swap(FlowNodeProto* PROTOBUF_NONNULL other) {
178 if (other == this) return;
179 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
180 InternalSwap(other);
181 } else {
182 ::google::protobuf::internal::GenericSwap(this, other);
183 }
184 }
185 void UnsafeArenaSwap(FlowNodeProto* PROTOBUF_NONNULL other) {
186 if (other == this) return;
187 ABSL_DCHECK(GetArena() == other->GetArena());
188 InternalSwap(other);
189 }
190
191 // implements Message ----------------------------------------------
192
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;
197 void CopyFrom(const FlowNodeProto& from);
198 using ::google::protobuf::Message::MergeFrom;
199 void MergeFrom(const FlowNodeProto& from) { FlowNodeProto::MergeImpl(*this, from); }
200
201 private:
202 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
203 const ::google::protobuf::MessageLite& from_msg);
204
205 public:
206 bool IsInitialized() const {
207 return true;
209 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
210 #if defined(PROTOBUF_CUSTOM_VTABLE)
211 private:
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);
216
217 public:
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);
223 }
224 #else // PROTOBUF_CUSTOM_VTABLE
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;
229 #endif // PROTOBUF_CUSTOM_VTABLE
230 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
231
232 private:
233 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
234 static void SharedDtor(MessageLite& self);
235 void InternalSwap(FlowNodeProto* PROTOBUF_NONNULL other);
236 private:
237 template <typename T>
238 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
239 static ::absl::string_view FullMessageName() { return "operations_research.FlowNodeProto"; }
240
241 protected:
242 explicit FlowNodeProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
243 FlowNodeProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const FlowNodeProto& from);
245 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, FlowNodeProto&& from) noexcept
246 : FlowNodeProto(arena) {
247 *this = ::std::move(from);
248 }
249 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
250 static void* PROTOBUF_NONNULL PlacementNew_(
251 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
252 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
253 static constexpr auto InternalNewImpl_();
254
255 public:
256 static constexpr auto InternalGenerateClassData_();
257
258 ::google::protobuf::Metadata GetMetadata() const;
259 // nested types ----------------------------------------------------
260
261 // accessors -------------------------------------------------------
262 enum : int {
263 kIdFieldNumber = 1,
264 kSupplyFieldNumber = 2,
265 };
266 // optional int64 id = 1;
267 bool has_id() const;
268 void clear_id() ;
269 ::int64_t id() const;
270 void set_id(::int64_t value);
271
272 private:
273 ::int64_t _internal_id() const;
274 void _internal_set_id(::int64_t value);
275
276 public:
277 // optional int64 supply = 2 [default = 0];
278 bool has_supply() const;
279 void clear_supply() ;
280 ::int64_t supply() const;
281 void set_supply(::int64_t value);
282
283 private:
284 ::int64_t _internal_supply() const;
285 void _internal_set_supply(::int64_t value);
286
287 public:
288 // @@protoc_insertion_point(class_scope:operations_research.FlowNodeProto)
289 private:
290 class _Internal;
291 friend class ::google::protobuf::internal::TcParser;
292 static const ::google::protobuf::internal::TcParseTable<1, 2,
293 0, 0,
294 2>
295 _table_;
296
297 friend class ::google::protobuf::MessageLite;
298 friend class ::google::protobuf::Arena;
299 template <typename T>
300 friend class ::google::protobuf::Arena::InternalHelper;
301 using InternalArenaConstructable_ = void;
302 using DestructorSkippable_ = void;
303 struct Impl_ {
304 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
305 inline explicit Impl_(
306 ::google::protobuf::internal::InternalVisibility visibility,
307 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
308 inline explicit Impl_(
309 ::google::protobuf::internal::InternalVisibility visibility,
310 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
311 const FlowNodeProto& from_msg);
312 ::google::protobuf::internal::HasBits<1> _has_bits_;
313 ::google::protobuf::internal::CachedSize _cached_size_;
314 ::int64_t id_;
315 ::int64_t supply_;
316 PROTOBUF_TSAN_DECLARE_MEMBER
317 };
318 union { Impl_ _impl_; };
319 friend struct ::TableStruct_ortools_2fgraph_2fflow_5fproblem_2eproto;
322OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull FlowNodeProto_class_data_;
323// -------------------------------------------------------------------
324
325class OR_PROTO_DLL FlowArcProto final : public ::google::protobuf::Message
326/* @@protoc_insertion_point(class_definition:operations_research.FlowArcProto) */ {
327 public:
328 inline FlowArcProto() : FlowArcProto(nullptr) {}
329 ~FlowArcProto() PROTOBUF_FINAL;
330
331#if defined(PROTOBUF_CUSTOM_VTABLE)
332 void operator delete(FlowArcProto* PROTOBUF_NONNULL msg, std::destroying_delete_t) {
333 SharedDtor(*msg);
334 ::google::protobuf::internal::SizedDelete(msg, sizeof(FlowArcProto));
335 }
336#endif
337
338 template <typename = void>
339 explicit PROTOBUF_CONSTEXPR FlowArcProto(::google::protobuf::internal::ConstantInitialized);
340
341 inline FlowArcProto(const FlowArcProto& from) : FlowArcProto(nullptr, from) {}
342 inline FlowArcProto(FlowArcProto&& from) noexcept
343 : FlowArcProto(nullptr, ::std::move(from)) {}
344 inline FlowArcProto& operator=(const FlowArcProto& from) {
345 CopyFrom(from);
346 return *this;
348 inline FlowArcProto& operator=(FlowArcProto&& from) noexcept {
349 if (this == &from) return *this;
350 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
351 InternalSwap(&from);
352 } else {
353 CopyFrom(from);
354 }
355 return *this;
356 }
357
358 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
359 ABSL_ATTRIBUTE_LIFETIME_BOUND {
360 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
362 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
363 ABSL_ATTRIBUTE_LIFETIME_BOUND {
364 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
366
367 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
368 return GetDescriptor();
369 }
370 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
371 return default_instance().GetMetadata().descriptor;
372 }
373 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
374 return default_instance().GetMetadata().reflection;
375 }
377 return *reinterpret_cast<const FlowArcProto*>(
380 static constexpr int kIndexInFileMessages = 0;
381 friend void swap(FlowArcProto& a, FlowArcProto& b) { a.Swap(&b); }
382 inline void Swap(FlowArcProto* PROTOBUF_NONNULL other) {
383 if (other == this) return;
384 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
385 InternalSwap(other);
386 } else {
387 ::google::protobuf::internal::GenericSwap(this, other);
388 }
389 }
390 void UnsafeArenaSwap(FlowArcProto* PROTOBUF_NONNULL other) {
391 if (other == this) return;
392 ABSL_DCHECK(GetArena() == other->GetArena());
393 InternalSwap(other);
394 }
395
396 // implements Message ----------------------------------------------
397
398 FlowArcProto* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
399 return ::google::protobuf::Message::DefaultConstruct<FlowArcProto>(arena);
400 }
401 using ::google::protobuf::Message::CopyFrom;
402 void CopyFrom(const FlowArcProto& from);
403 using ::google::protobuf::Message::MergeFrom;
404 void MergeFrom(const FlowArcProto& from) { FlowArcProto::MergeImpl(*this, from); }
405
406 private:
407 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
408 const ::google::protobuf::MessageLite& from_msg);
409
410 public:
411 bool IsInitialized() const {
412 return true;
413 }
414 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
415 #if defined(PROTOBUF_CUSTOM_VTABLE)
416 private:
417 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
418 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
419 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
420 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
421
422 public:
423 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
424 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
425 ::uint8_t* PROTOBUF_NONNULL target,
426 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
427 return _InternalSerialize(*this, target, stream);
428 }
429 #else // PROTOBUF_CUSTOM_VTABLE
430 ::size_t ByteSizeLong() const final;
431 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
432 ::uint8_t* PROTOBUF_NONNULL target,
433 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
434 #endif // PROTOBUF_CUSTOM_VTABLE
435 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
436
437 private:
438 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
439 static void SharedDtor(MessageLite& self);
440 void InternalSwap(FlowArcProto* PROTOBUF_NONNULL other);
441 private:
442 template <typename T>
443 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
444 static ::absl::string_view FullMessageName() { return "operations_research.FlowArcProto"; }
445
446 protected:
447 explicit FlowArcProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
448 FlowArcProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const FlowArcProto& from);
450 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, FlowArcProto&& from) noexcept
451 : FlowArcProto(arena) {
452 *this = ::std::move(from);
453 }
454 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
455 static void* PROTOBUF_NONNULL PlacementNew_(
456 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
457 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
458 static constexpr auto InternalNewImpl_();
459
460 public:
461 static constexpr auto InternalGenerateClassData_();
462
463 ::google::protobuf::Metadata GetMetadata() const;
464 // nested types ----------------------------------------------------
465
466 // accessors -------------------------------------------------------
467 enum : int {
468 kTailFieldNumber = 1,
469 kHeadFieldNumber = 2,
470 kUnitCostFieldNumber = 4,
472 };
473 // optional int64 tail = 1;
474 bool has_tail() const;
475 void clear_tail() ;
476 ::int64_t tail() const;
477 void set_tail(::int64_t value);
478
479 private:
480 ::int64_t _internal_tail() const;
481 void _internal_set_tail(::int64_t value);
482
483 public:
484 // optional int64 head = 2;
485 bool has_head() const;
486 void clear_head() ;
487 ::int64_t head() const;
488 void set_head(::int64_t value);
489
490 private:
491 ::int64_t _internal_head() const;
492 void _internal_set_head(::int64_t value);
493
494 public:
495 // optional int64 unit_cost = 4 [default = 0];
496 bool has_unit_cost() const;
497 void clear_unit_cost() ;
498 ::int64_t unit_cost() const;
499 void set_unit_cost(::int64_t value);
500
501 private:
502 ::int64_t _internal_unit_cost() const;
503 void _internal_set_unit_cost(::int64_t value);
504
505 public:
506 // optional int64 capacity = 3 [default = 1];
507 bool has_capacity() const;
508 void clear_capacity() ;
509 ::int64_t capacity() const;
510 void set_capacity(::int64_t value);
511
512 private:
513 ::int64_t _internal_capacity() const;
514 void _internal_set_capacity(::int64_t value);
515
516 public:
517 // @@protoc_insertion_point(class_scope:operations_research.FlowArcProto)
518 private:
519 class _Internal;
520 friend class ::google::protobuf::internal::TcParser;
521 static const ::google::protobuf::internal::TcParseTable<2, 4,
522 0, 0,
523 2>
524 _table_;
525
526 friend class ::google::protobuf::MessageLite;
527 friend class ::google::protobuf::Arena;
528 template <typename T>
529 friend class ::google::protobuf::Arena::InternalHelper;
530 using InternalArenaConstructable_ = void;
531 using DestructorSkippable_ = void;
532 struct Impl_ {
533 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
534 inline explicit Impl_(
535 ::google::protobuf::internal::InternalVisibility visibility,
536 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
537 inline explicit Impl_(
538 ::google::protobuf::internal::InternalVisibility visibility,
539 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
540 const FlowArcProto& from_msg);
541 ::google::protobuf::internal::HasBits<1> _has_bits_;
542 ::google::protobuf::internal::CachedSize _cached_size_;
543 ::int64_t tail_;
544 ::int64_t head_;
545 ::int64_t unit_cost_;
546 ::int64_t capacity_;
547 PROTOBUF_TSAN_DECLARE_MEMBER
548 };
549 union { Impl_ _impl_; };
550 friend struct ::TableStruct_ortools_2fgraph_2fflow_5fproblem_2eproto;
551};
553OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull FlowArcProto_class_data_;
554// -------------------------------------------------------------------
555
556class OR_PROTO_DLL FlowModelProto final : public ::google::protobuf::Message
557/* @@protoc_insertion_point(class_definition:operations_research.FlowModelProto) */ {
558 public:
559 inline FlowModelProto() : FlowModelProto(nullptr) {}
560 ~FlowModelProto() PROTOBUF_FINAL;
561
562#if defined(PROTOBUF_CUSTOM_VTABLE)
563 void operator delete(FlowModelProto* PROTOBUF_NONNULL msg, std::destroying_delete_t) {
564 SharedDtor(*msg);
565 ::google::protobuf::internal::SizedDelete(msg, sizeof(FlowModelProto));
566 }
567#endif
568
569 template <typename = void>
570 explicit PROTOBUF_CONSTEXPR FlowModelProto(::google::protobuf::internal::ConstantInitialized);
571
572 inline FlowModelProto(const FlowModelProto& from) : FlowModelProto(nullptr, from) {}
573 inline FlowModelProto(FlowModelProto&& from) noexcept
574 : FlowModelProto(nullptr, ::std::move(from)) {}
575 inline FlowModelProto& operator=(const FlowModelProto& from) {
576 CopyFrom(from);
577 return *this;
578 }
579 inline FlowModelProto& operator=(FlowModelProto&& from) noexcept {
580 if (this == &from) return *this;
581 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
582 InternalSwap(&from);
583 } else {
584 CopyFrom(from);
585 }
586 return *this;
587 }
588
589 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
590 ABSL_ATTRIBUTE_LIFETIME_BOUND {
591 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
592 }
593 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
594 ABSL_ATTRIBUTE_LIFETIME_BOUND {
595 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
596 }
598 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
599 return GetDescriptor();
600 }
601 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
602 return default_instance().GetMetadata().descriptor;
603 }
604 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
605 return default_instance().GetMetadata().reflection;
606 }
607 static const FlowModelProto& default_instance() {
608 return *reinterpret_cast<const FlowModelProto*>(
610 }
611 static constexpr int kIndexInFileMessages = 2;
612 friend void swap(FlowModelProto& a, FlowModelProto& b) { a.Swap(&b); }
613 inline void Swap(FlowModelProto* PROTOBUF_NONNULL other) {
614 if (other == this) return;
615 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
616 InternalSwap(other);
617 } else {
618 ::google::protobuf::internal::GenericSwap(this, other);
619 }
620 }
621 void UnsafeArenaSwap(FlowModelProto* PROTOBUF_NONNULL other) {
622 if (other == this) return;
623 ABSL_DCHECK(GetArena() == other->GetArena());
624 InternalSwap(other);
626
627 // implements Message ----------------------------------------------
628
629 FlowModelProto* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
630 return ::google::protobuf::Message::DefaultConstruct<FlowModelProto>(arena);
631 }
632 using ::google::protobuf::Message::CopyFrom;
633 void CopyFrom(const FlowModelProto& from);
634 using ::google::protobuf::Message::MergeFrom;
635 void MergeFrom(const FlowModelProto& from) { FlowModelProto::MergeImpl(*this, from); }
636
637 private:
638 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
639 const ::google::protobuf::MessageLite& from_msg);
640
641 public:
642 bool IsInitialized() const {
643 return true;
644 }
645 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
646 #if defined(PROTOBUF_CUSTOM_VTABLE)
647 private:
648 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
649 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
650 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
651 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
652
653 public:
654 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
655 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
656 ::uint8_t* PROTOBUF_NONNULL target,
657 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
658 return _InternalSerialize(*this, target, stream);
659 }
660 #else // PROTOBUF_CUSTOM_VTABLE
661 ::size_t ByteSizeLong() const final;
662 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
663 ::uint8_t* PROTOBUF_NONNULL target,
664 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
665 #endif // PROTOBUF_CUSTOM_VTABLE
666 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
667
668 private:
669 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
670 static void SharedDtor(MessageLite& self);
671 void InternalSwap(FlowModelProto* PROTOBUF_NONNULL other);
672 private:
673 template <typename T>
674 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
675 static ::absl::string_view FullMessageName() { return "operations_research.FlowModelProto"; }
676
677 protected:
678 explicit FlowModelProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
679 FlowModelProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const FlowModelProto& from);
681 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, FlowModelProto&& from) noexcept
682 : FlowModelProto(arena) {
683 *this = ::std::move(from);
685 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
686 static void* PROTOBUF_NONNULL PlacementNew_(
687 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
688 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
689 static constexpr auto InternalNewImpl_();
690
691 public:
692 static constexpr auto InternalGenerateClassData_();
693
694 ::google::protobuf::Metadata GetMetadata() const;
695 // nested types ----------------------------------------------------
696 using ProblemType = FlowModelProto_ProblemType;
697 static constexpr ProblemType LINEAR_SUM_ASSIGNMENT = FlowModelProto_ProblemType_LINEAR_SUM_ASSIGNMENT;
698 static constexpr ProblemType MAX_FLOW = FlowModelProto_ProblemType_MAX_FLOW;
699 static constexpr ProblemType MIN_COST_FLOW = FlowModelProto_ProblemType_MIN_COST_FLOW;
700 static inline bool ProblemType_IsValid(int value) {
706 static inline const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL ProblemType_descriptor() {
709 template <typename T>
710 static inline const ::std::string& ProblemType_Name(T value) {
712 }
713 static inline bool ProblemType_Parse(
714 ::absl::string_view name, ProblemType* PROTOBUF_NONNULL value) {
715 return FlowModelProto_ProblemType_Parse(name, value);
716 }
718 // accessors -------------------------------------------------------
719 enum : int {
723 };
724 // repeated .operations_research.FlowNodeProto nodes = 1;
725 int nodes_size() const;
726 private:
727 int _internal_nodes_size() const;
728
729 public:
730 void clear_nodes() ;
731 ::operations_research::FlowNodeProto* PROTOBUF_NONNULL mutable_nodes(int index);
732 ::google::protobuf::RepeatedPtrField<::operations_research::FlowNodeProto>* PROTOBUF_NONNULL mutable_nodes();
733
734 private:
735 const ::google::protobuf::RepeatedPtrField<::operations_research::FlowNodeProto>& _internal_nodes() const;
736 ::google::protobuf::RepeatedPtrField<::operations_research::FlowNodeProto>* PROTOBUF_NONNULL _internal_mutable_nodes();
737 public:
738 const ::operations_research::FlowNodeProto& nodes(int index) const;
740 const ::google::protobuf::RepeatedPtrField<::operations_research::FlowNodeProto>& nodes() const;
741 // repeated .operations_research.FlowArcProto arcs = 2;
742 int arcs_size() const;
743 private:
744 int _internal_arcs_size() const;
745
746 public:
747 void clear_arcs() ;
748 ::operations_research::FlowArcProto* PROTOBUF_NONNULL mutable_arcs(int index);
749 ::google::protobuf::RepeatedPtrField<::operations_research::FlowArcProto>* PROTOBUF_NONNULL mutable_arcs();
750
751 private:
752 const ::google::protobuf::RepeatedPtrField<::operations_research::FlowArcProto>& _internal_arcs() const;
753 ::google::protobuf::RepeatedPtrField<::operations_research::FlowArcProto>* PROTOBUF_NONNULL _internal_mutable_arcs();
754 public:
755 const ::operations_research::FlowArcProto& arcs(int index) const;
757 const ::google::protobuf::RepeatedPtrField<::operations_research::FlowArcProto>& arcs() const;
758 // optional .operations_research.FlowModelProto.ProblemType problem_type = 3;
759 bool has_problem_type() const;
760 void clear_problem_type() ;
763
764 private:
765 ::operations_research::FlowModelProto_ProblemType _internal_problem_type() const;
766 void _internal_set_problem_type(::operations_research::FlowModelProto_ProblemType value);
767
768 public:
769 // @@protoc_insertion_point(class_scope:operations_research.FlowModelProto)
770 private:
771 class _Internal;
772 friend class ::google::protobuf::internal::TcParser;
773 static const ::google::protobuf::internal::TcParseTable<2, 3,
774 3, 0,
775 2>
776 _table_;
777
778 friend class ::google::protobuf::MessageLite;
779 friend class ::google::protobuf::Arena;
780 template <typename T>
781 friend class ::google::protobuf::Arena::InternalHelper;
782 using InternalArenaConstructable_ = void;
783 using DestructorSkippable_ = void;
784 struct Impl_ {
785 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
786 inline explicit Impl_(
787 ::google::protobuf::internal::InternalVisibility visibility,
788 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
789 inline explicit Impl_(
790 ::google::protobuf::internal::InternalVisibility visibility,
791 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
792 const FlowModelProto& from_msg);
793 ::google::protobuf::internal::HasBits<1> _has_bits_;
794 ::google::protobuf::internal::CachedSize _cached_size_;
795 ::google::protobuf::RepeatedPtrField< ::operations_research::FlowNodeProto > nodes_;
796 ::google::protobuf::RepeatedPtrField< ::operations_research::FlowArcProto > arcs_;
797 int problem_type_;
798 PROTOBUF_TSAN_DECLARE_MEMBER
799 };
800 union { Impl_ _impl_; };
801 friend struct ::TableStruct_ortools_2fgraph_2fflow_5fproblem_2eproto;
802};
803
804OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull FlowModelProto_class_data_;
806// ===================================================================
807
808
809
810
811// ===================================================================
812
813
814#ifdef __GNUC__
815#pragma GCC diagnostic push
816#pragma GCC diagnostic ignored "-Wstrict-aliasing"
817#endif // __GNUC__
818// -------------------------------------------------------------------
819
820// FlowArcProto
821
822// optional int64 tail = 1;
823inline bool FlowArcProto::has_tail() const {
824 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
825 return value;
826}
827inline void FlowArcProto::clear_tail() {
828 ::google::protobuf::internal::TSanWrite(&_impl_);
829 _impl_.tail_ = ::int64_t{0};
830 _impl_._has_bits_[0] &= ~0x00000001u;
831}
832inline ::int64_t FlowArcProto::tail() const {
833 // @@protoc_insertion_point(field_get:operations_research.FlowArcProto.tail)
834 return _internal_tail();
835}
836inline void FlowArcProto::set_tail(::int64_t value) {
837 _internal_set_tail(value);
838 _impl_._has_bits_[0] |= 0x00000001u;
839 // @@protoc_insertion_point(field_set:operations_research.FlowArcProto.tail)
840}
841inline ::int64_t FlowArcProto::_internal_tail() const {
842 ::google::protobuf::internal::TSanRead(&_impl_);
843 return _impl_.tail_;
844}
845inline void FlowArcProto::_internal_set_tail(::int64_t value) {
846 ::google::protobuf::internal::TSanWrite(&_impl_);
847 _impl_.tail_ = value;
848}
849
850// optional int64 head = 2;
851inline bool FlowArcProto::has_head() const {
852 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
853 return value;
854}
855inline void FlowArcProto::clear_head() {
856 ::google::protobuf::internal::TSanWrite(&_impl_);
857 _impl_.head_ = ::int64_t{0};
858 _impl_._has_bits_[0] &= ~0x00000002u;
859}
860inline ::int64_t FlowArcProto::head() const {
861 // @@protoc_insertion_point(field_get:operations_research.FlowArcProto.head)
862 return _internal_head();
863}
864inline void FlowArcProto::set_head(::int64_t value) {
865 _internal_set_head(value);
866 _impl_._has_bits_[0] |= 0x00000002u;
867 // @@protoc_insertion_point(field_set:operations_research.FlowArcProto.head)
868}
869inline ::int64_t FlowArcProto::_internal_head() const {
870 ::google::protobuf::internal::TSanRead(&_impl_);
871 return _impl_.head_;
872}
873inline void FlowArcProto::_internal_set_head(::int64_t value) {
874 ::google::protobuf::internal::TSanWrite(&_impl_);
875 _impl_.head_ = value;
876}
877
878// optional int64 capacity = 3 [default = 1];
879inline bool FlowArcProto::has_capacity() const {
880 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
881 return value;
882}
883inline void FlowArcProto::clear_capacity() {
884 ::google::protobuf::internal::TSanWrite(&_impl_);
885 _impl_.capacity_ = ::int64_t{1};
886 _impl_._has_bits_[0] &= ~0x00000008u;
887}
888inline ::int64_t FlowArcProto::capacity() const {
889 // @@protoc_insertion_point(field_get:operations_research.FlowArcProto.capacity)
890 return _internal_capacity();
891}
892inline void FlowArcProto::set_capacity(::int64_t value) {
893 _internal_set_capacity(value);
894 _impl_._has_bits_[0] |= 0x00000008u;
895 // @@protoc_insertion_point(field_set:operations_research.FlowArcProto.capacity)
896}
897inline ::int64_t FlowArcProto::_internal_capacity() const {
898 ::google::protobuf::internal::TSanRead(&_impl_);
899 return _impl_.capacity_;
900}
901inline void FlowArcProto::_internal_set_capacity(::int64_t value) {
902 ::google::protobuf::internal::TSanWrite(&_impl_);
903 _impl_.capacity_ = value;
904}
905
906// optional int64 unit_cost = 4 [default = 0];
907inline bool FlowArcProto::has_unit_cost() const {
908 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
909 return value;
910}
911inline void FlowArcProto::clear_unit_cost() {
912 ::google::protobuf::internal::TSanWrite(&_impl_);
913 _impl_.unit_cost_ = ::int64_t{0};
914 _impl_._has_bits_[0] &= ~0x00000004u;
915}
916inline ::int64_t FlowArcProto::unit_cost() const {
917 // @@protoc_insertion_point(field_get:operations_research.FlowArcProto.unit_cost)
918 return _internal_unit_cost();
919}
920inline void FlowArcProto::set_unit_cost(::int64_t value) {
921 _internal_set_unit_cost(value);
922 _impl_._has_bits_[0] |= 0x00000004u;
923 // @@protoc_insertion_point(field_set:operations_research.FlowArcProto.unit_cost)
924}
925inline ::int64_t FlowArcProto::_internal_unit_cost() const {
926 ::google::protobuf::internal::TSanRead(&_impl_);
927 return _impl_.unit_cost_;
928}
929inline void FlowArcProto::_internal_set_unit_cost(::int64_t value) {
930 ::google::protobuf::internal::TSanWrite(&_impl_);
931 _impl_.unit_cost_ = value;
932}
933
934// -------------------------------------------------------------------
935
936// FlowNodeProto
937
938// optional int64 id = 1;
939inline bool FlowNodeProto::has_id() const {
940 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
941 return value;
942}
943inline void FlowNodeProto::clear_id() {
944 ::google::protobuf::internal::TSanWrite(&_impl_);
945 _impl_.id_ = ::int64_t{0};
946 _impl_._has_bits_[0] &= ~0x00000001u;
948inline ::int64_t FlowNodeProto::id() const {
949 // @@protoc_insertion_point(field_get:operations_research.FlowNodeProto.id)
950 return _internal_id();
952inline void FlowNodeProto::set_id(::int64_t value) {
953 _internal_set_id(value);
954 _impl_._has_bits_[0] |= 0x00000001u;
955 // @@protoc_insertion_point(field_set:operations_research.FlowNodeProto.id)
957inline ::int64_t FlowNodeProto::_internal_id() const {
958 ::google::protobuf::internal::TSanRead(&_impl_);
959 return _impl_.id_;
961inline void FlowNodeProto::_internal_set_id(::int64_t value) {
962 ::google::protobuf::internal::TSanWrite(&_impl_);
963 _impl_.id_ = value;
964}
965
966// optional int64 supply = 2 [default = 0];
967inline bool FlowNodeProto::has_supply() const {
968 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
969 return value;
970}
971inline void FlowNodeProto::clear_supply() {
972 ::google::protobuf::internal::TSanWrite(&_impl_);
973 _impl_.supply_ = ::int64_t{0};
974 _impl_._has_bits_[0] &= ~0x00000002u;
976inline ::int64_t FlowNodeProto::supply() const {
977 // @@protoc_insertion_point(field_get:operations_research.FlowNodeProto.supply)
978 return _internal_supply();
980inline void FlowNodeProto::set_supply(::int64_t value) {
981 _internal_set_supply(value);
982 _impl_._has_bits_[0] |= 0x00000002u;
983 // @@protoc_insertion_point(field_set:operations_research.FlowNodeProto.supply)
985inline ::int64_t FlowNodeProto::_internal_supply() const {
986 ::google::protobuf::internal::TSanRead(&_impl_);
987 return _impl_.supply_;
989inline void FlowNodeProto::_internal_set_supply(::int64_t value) {
990 ::google::protobuf::internal::TSanWrite(&_impl_);
991 _impl_.supply_ = value;
992}
993
994// -------------------------------------------------------------------
995
996// FlowModelProto
997
998// repeated .operations_research.FlowNodeProto nodes = 1;
999inline int FlowModelProto::_internal_nodes_size() const {
1000 return _internal_nodes().size();
1001}
1002inline int FlowModelProto::nodes_size() const {
1003 return _internal_nodes_size();
1004}
1005inline void FlowModelProto::clear_nodes() {
1006 ::google::protobuf::internal::TSanWrite(&_impl_);
1007 _impl_.nodes_.Clear();
1008}
1009inline ::operations_research::FlowNodeProto* PROTOBUF_NONNULL FlowModelProto::mutable_nodes(int index)
1010 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1011 // @@protoc_insertion_point(field_mutable:operations_research.FlowModelProto.nodes)
1012 return _internal_mutable_nodes()->Mutable(index);
1013}
1014inline ::google::protobuf::RepeatedPtrField<::operations_research::FlowNodeProto>* PROTOBUF_NONNULL FlowModelProto::mutable_nodes()
1015 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1016 // @@protoc_insertion_point(field_mutable_list:operations_research.FlowModelProto.nodes)
1017 ::google::protobuf::internal::TSanWrite(&_impl_);
1018 return _internal_mutable_nodes();
1019}
1020inline const ::operations_research::FlowNodeProto& FlowModelProto::nodes(int index) const
1021 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1022 // @@protoc_insertion_point(field_get:operations_research.FlowModelProto.nodes)
1023 return _internal_nodes().Get(index);
1024}
1025inline ::operations_research::FlowNodeProto* PROTOBUF_NONNULL FlowModelProto::add_nodes()
1026 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1027 ::google::protobuf::internal::TSanWrite(&_impl_);
1028 ::operations_research::FlowNodeProto* _add = _internal_mutable_nodes()->Add();
1029 // @@protoc_insertion_point(field_add:operations_research.FlowModelProto.nodes)
1030 return _add;
1031}
1032inline const ::google::protobuf::RepeatedPtrField<::operations_research::FlowNodeProto>& FlowModelProto::nodes() const
1033 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1034 // @@protoc_insertion_point(field_list:operations_research.FlowModelProto.nodes)
1035 return _internal_nodes();
1036}
1037inline const ::google::protobuf::RepeatedPtrField<::operations_research::FlowNodeProto>&
1038FlowModelProto::_internal_nodes() const {
1039 ::google::protobuf::internal::TSanRead(&_impl_);
1040 return _impl_.nodes_;
1042inline ::google::protobuf::RepeatedPtrField<::operations_research::FlowNodeProto>* PROTOBUF_NONNULL
1043FlowModelProto::_internal_mutable_nodes() {
1044 ::google::protobuf::internal::TSanRead(&_impl_);
1045 return &_impl_.nodes_;
1046}
1047
1048// repeated .operations_research.FlowArcProto arcs = 2;
1049inline int FlowModelProto::_internal_arcs_size() const {
1050 return _internal_arcs().size();
1051}
1052inline int FlowModelProto::arcs_size() const {
1053 return _internal_arcs_size();
1054}
1055inline void FlowModelProto::clear_arcs() {
1056 ::google::protobuf::internal::TSanWrite(&_impl_);
1057 _impl_.arcs_.Clear();
1058}
1059inline ::operations_research::FlowArcProto* PROTOBUF_NONNULL FlowModelProto::mutable_arcs(int index)
1060 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1061 // @@protoc_insertion_point(field_mutable:operations_research.FlowModelProto.arcs)
1062 return _internal_mutable_arcs()->Mutable(index);
1063}
1064inline ::google::protobuf::RepeatedPtrField<::operations_research::FlowArcProto>* PROTOBUF_NONNULL FlowModelProto::mutable_arcs()
1065 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1066 // @@protoc_insertion_point(field_mutable_list:operations_research.FlowModelProto.arcs)
1067 ::google::protobuf::internal::TSanWrite(&_impl_);
1068 return _internal_mutable_arcs();
1069}
1070inline const ::operations_research::FlowArcProto& FlowModelProto::arcs(int index) const
1071 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1072 // @@protoc_insertion_point(field_get:operations_research.FlowModelProto.arcs)
1073 return _internal_arcs().Get(index);
1074}
1075inline ::operations_research::FlowArcProto* PROTOBUF_NONNULL FlowModelProto::add_arcs()
1076 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1077 ::google::protobuf::internal::TSanWrite(&_impl_);
1078 ::operations_research::FlowArcProto* _add = _internal_mutable_arcs()->Add();
1079 // @@protoc_insertion_point(field_add:operations_research.FlowModelProto.arcs)
1080 return _add;
1081}
1082inline const ::google::protobuf::RepeatedPtrField<::operations_research::FlowArcProto>& FlowModelProto::arcs() const
1083 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1084 // @@protoc_insertion_point(field_list:operations_research.FlowModelProto.arcs)
1085 return _internal_arcs();
1086}
1087inline const ::google::protobuf::RepeatedPtrField<::operations_research::FlowArcProto>&
1088FlowModelProto::_internal_arcs() const {
1089 ::google::protobuf::internal::TSanRead(&_impl_);
1090 return _impl_.arcs_;
1092inline ::google::protobuf::RepeatedPtrField<::operations_research::FlowArcProto>* PROTOBUF_NONNULL
1093FlowModelProto::_internal_mutable_arcs() {
1094 ::google::protobuf::internal::TSanRead(&_impl_);
1095 return &_impl_.arcs_;
1096}
1097
1098// optional .operations_research.FlowModelProto.ProblemType problem_type = 3;
1099inline bool FlowModelProto::has_problem_type() const {
1100 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
1101 return value;
1102}
1104 ::google::protobuf::internal::TSanWrite(&_impl_);
1105 _impl_.problem_type_ = 0;
1106 _impl_._has_bits_[0] &= ~0x00000001u;
1107}
1108inline ::operations_research::FlowModelProto_ProblemType FlowModelProto::problem_type() const {
1109 // @@protoc_insertion_point(field_get:operations_research.FlowModelProto.problem_type)
1110 return _internal_problem_type();
1111}
1113 _internal_set_problem_type(value);
1114 _impl_._has_bits_[0] |= 0x00000001u;
1115 // @@protoc_insertion_point(field_set:operations_research.FlowModelProto.problem_type)
1116}
1117inline ::operations_research::FlowModelProto_ProblemType FlowModelProto::_internal_problem_type() const {
1118 ::google::protobuf::internal::TSanRead(&_impl_);
1119 return static_cast<::operations_research::FlowModelProto_ProblemType>(_impl_.problem_type_);
1120}
1121inline void FlowModelProto::_internal_set_problem_type(::operations_research::FlowModelProto_ProblemType value) {
1122 ::google::protobuf::internal::TSanWrite(&_impl_);
1123
1124 assert(::google::protobuf::internal::ValidateEnum(
1126 _impl_.problem_type_ = value;
1127}
1128
1129#ifdef __GNUC__
1130#pragma GCC diagnostic pop
1131#endif // __GNUC__
1132
1133// @@protoc_insertion_point(namespace_scope)
1134} // namespace operations_research
1135
1136
1137namespace google {
1138namespace protobuf {
1139
1140template <>
1141struct is_proto_enum<::operations_research::FlowModelProto_ProblemType> : std::true_type {};
1142template <>
1143inline const EnumDescriptor* PROTOBUF_NONNULL GetEnumDescriptor<::operations_research::FlowModelProto_ProblemType>() {
1144 return ::operations_research::FlowModelProto_ProblemType_descriptor();
1145}
1146
1147} // namespace protobuf
1148} // namespace google
1149
1150// @@protoc_insertion_point(global_scope)
1151
1152#include "google/protobuf/port_undef.inc"
1153
1154#endif // ortools_2fgraph_2fflow_5fproblem_2eproto_2epb_2eh
friend class ::google::protobuf::MessageLite
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
::size_t ByteSizeLong() const final
bool has_unit_cost() const
optional int64 unit_cost = 4 [default = 0];
void Swap(FlowArcProto *PROTOBUF_NONNULL other)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
static const ::google::protobuf::Reflection *PROTOBUF_NONNULL GetReflection()
bool has_tail() const
optional int64 tail = 1;
void MergeFrom(const FlowArcProto &from)
void CopyFrom(const FlowArcProto &from)
static const FlowArcProto & default_instance()
bool has_head() const
optional int64 head = 2;
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
bool has_capacity() const
optional int64 capacity = 3 [default = 1];
::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)
int arcs_size() const
repeated .operations_research.FlowArcProto arcs = 2;
::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
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
optional .operations_research.FlowModelProto.ProblemType problem_type = 3;
const ::operations_research::FlowArcProto & arcs(int index) const
static constexpr int kIndexInFileMessages
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)
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL GetDescriptor()
static const FlowModelProto & default_instance()
FlowModelProto_ProblemType ProblemType
nested types -------------------------------------------------—
int nodes_size() const
repeated .operations_research.FlowNodeProto nodes = 1;
::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)
bool has_supply() const
optional int64 supply = 2 [default = 0];
void CopyFrom(const FlowNodeProto &from)
void Swap(FlowNodeProto *PROTOBUF_NONNULL other)
FlowNodeProto & operator=(const FlowNodeProto &from)
FlowNodeProto(::google::protobuf::Arena *PROTOBUF_NULLABLE arena, FlowNodeProto &&from) noexcept
bool has_id() const
optional int64 id = 1;
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fgraph_2fflow_5fproblem_2eproto
::absl::string_view GetAnyMessageName()
const EnumDescriptor *PROTOBUF_NONNULL GetEnumDescriptor<::operations_research::FlowModelProto_ProblemType >()
In SWIG mode, we don't want anything besides these top-level includes.
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlowModelProtoDefaultTypeInternal _FlowModelProto_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull FlowNodeProto_class_data_
PROTOBUF_CONSTINIT const uint32_t FlowModelProto_ProblemType_internal_data_[]
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_LINEAR_SUM_ASSIGNMENT
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_
Internal implementation detail – do not use these members.