6#ifndef ortools_2fgraph_2fflow_5fproblem_2eproto_2epb_2eh
7#define ortools_2fgraph_2fflow_5fproblem_2eproto_2epb_2eh
14#include "google/protobuf/runtime_version.h"
15#if PROTOBUF_VERSION != 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"
20#include "google/protobuf/io/coded_stream.h"
21#include "google/protobuf/arena.h"
22#include "google/protobuf/arenastring.h"
23#include "google/protobuf/generated_message_tctable_decl.h"
24#include "google/protobuf/generated_message_util.h"
25#include "google/protobuf/metadata_lite.h"
26#include "google/protobuf/generated_message_reflection.h"
27#include "google/protobuf/message.h"
28#include "google/protobuf/message_lite.h"
29#include "google/protobuf/repeated_field.h"
30#include "google/protobuf/extension_set.h"
31#include "google/protobuf/generated_enum_reflection.h"
32#include "google/protobuf/unknown_field_set.h"
36#include "google/protobuf/port_def.inc"
38#define PROTOBUF_INTERNAL_EXPORT_ortools_2fgraph_2fflow_5fproblem_2eproto OR_PROTO_DLL
75internal::EnumTraitsT<::operations_research::FlowModelProto_ProblemType_internal_data_>
76 internal::EnumTraitsImpl::value<::operations_research::FlowModelProto_ProblemType>;
93 return 0 <= value && value <= 2;
99 static_assert(::std::is_same<T, FlowModelProto_ProblemType>::value ||
100 ::std::is_integral<T>::value,
101 "Incorrect type passed to ProblemType_Name().");
106 return ::google::protobuf::internal::NameOfDenseEnum<FlowModelProto_ProblemType_descriptor, 0, 2>(
107 static_cast<int>(value));
120class OR_PROTO_DLL FlowNodeProto final :
public ::google::protobuf::Message
126#if defined(PROTOBUF_CUSTOM_VTABLE)
127 void operator delete(
FlowNodeProto* PROTOBUF_NONNULL msg, std::destroying_delete_t) {
129 ::google::protobuf::internal::SizedDelete(msg,
sizeof(
FlowNodeProto));
133 template <
typename =
void>
134 explicit PROTOBUF_CONSTEXPR
FlowNodeProto(::google::protobuf::internal::ConstantInitialized);
144 if (
this == &from)
return *
this;
145 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
153 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
154 ABSL_ATTRIBUTE_LIFETIME_BOUND {
155 return _internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
157 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
158 ABSL_ATTRIBUTE_LIFETIME_BOUND {
159 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
162 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
163 return GetDescriptor();
165 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
166 return default_instance().GetMetadata().descriptor;
168 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
169 return default_instance().GetMetadata().reflection;
175 static constexpr int kIndexInFileMessages = 1;
178 if (other ==
this)
return;
179 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
182 ::google::protobuf::internal::GenericSwap(
this, other);
185 void UnsafeArenaSwap(FlowNodeProto* PROTOBUF_NONNULL other) {
186 if (other ==
this)
return;
187 ABSL_DCHECK(GetArena() == other->GetArena());
193 FlowNodeProto* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena =
nullptr)
const {
194 return ::google::protobuf::Message::DefaultConstruct<FlowNodeProto>(arena);
196 using ::google::protobuf::Message::CopyFrom;
198 using ::google::protobuf::Message::MergeFrom;
199 void MergeFrom(
const FlowNodeProto& from) { FlowNodeProto::MergeImpl(*
this, from); }
202 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
203 const ::google::protobuf::MessageLite& from_msg);
209 ABSL_ATTRIBUTE_REINITIALIZES
void Clear() PROTOBUF_FINAL;
210 #if defined(PROTOBUF_CUSTOM_VTABLE)
212 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
213 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
214 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
215 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
218 ::size_t ByteSizeLong()
const {
return ByteSizeLong(*
this); }
219 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
220 ::uint8_t* PROTOBUF_NONNULL target,
221 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
222 return _InternalSerialize(*
this, target, stream);
225 ::size_t ByteSizeLong() const final;
226 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
227 ::uint8_t* PROTOBUF_NONNULL target,
228 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
230 int GetCachedSize()
const {
return _impl_._cached_size_.Get(); }
233 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
237 template <
typename T>
239 static ::absl::string_view FullMessageName() {
return "operations_research.FlowNodeProto"; }
242 explicit FlowNodeProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
245 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
FlowNodeProto&& from) noexcept
247 *
this = ::std::move(from);
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_();
256 static constexpr auto InternalGenerateClassData_();
258 ::
google::protobuf::Metadata GetMetadata() const;
264 kSupplyFieldNumber = 2,
269 ::int64_t
id()
const;
270 void set_id(::int64_t value);
273 ::int64_t _internal_id()
const;
274 void _internal_set_id(::int64_t value);
284 ::int64_t _internal_supply()
const;
285 void _internal_set_supply(::int64_t value);
291 friend class ::google::protobuf::internal::TcParser;
292 static const ::google::protobuf::internal::TcParseTable<1, 2,
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;
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,
312 ::google::protobuf::internal::HasBits<1> _has_bits_;
313 ::google::protobuf::internal::CachedSize _cached_size_;
316 PROTOBUF_TSAN_DECLARE_MEMBER
318 union { Impl_ _impl_; };
319 friend struct ::TableStruct_ortools_2fgraph_2fflow_5fproblem_2eproto;
325class OR_PROTO_DLL
FlowArcProto final :
public ::google::protobuf::Message
331#if defined(PROTOBUF_CUSTOM_VTABLE)
332 void operator delete(
FlowArcProto* PROTOBUF_NONNULL msg, std::destroying_delete_t) {
334 ::google::protobuf::internal::SizedDelete(msg,
sizeof(
FlowArcProto));
338 template <
typename =
void>
339 explicit PROTOBUF_CONSTEXPR
FlowArcProto(::google::protobuf::internal::ConstantInitialized);
349 if (
this == &from)
return *
this;
350 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
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>();
367 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
368 return GetDescriptor();
370 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL
GetDescriptor() {
373 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL
GetReflection() {
380 static constexpr int kIndexInFileMessages = 0;
382 inline void Swap(FlowArcProto* PROTOBUF_NONNULL other) {
383 if (other ==
this)
return;
384 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
387 ::google::protobuf::internal::GenericSwap(
this, other);
390 void UnsafeArenaSwap(FlowArcProto* PROTOBUF_NONNULL other) {
391 if (other ==
this)
return;
392 ABSL_DCHECK(GetArena() == other->GetArena());
398 FlowArcProto* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena =
nullptr)
const {
399 return ::google::protobuf::Message::DefaultConstruct<FlowArcProto>(arena);
401 using ::google::protobuf::Message::CopyFrom;
403 using ::google::protobuf::Message::MergeFrom;
407 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
408 const ::google::protobuf::MessageLite& from_msg);
414 ABSL_ATTRIBUTE_REINITIALIZES
void Clear() PROTOBUF_FINAL;
415 #if defined(PROTOBUF_CUSTOM_VTABLE)
417 static ::size_t
ByteSizeLong(const ::google::protobuf::MessageLite& msg);
419 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
420 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
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);
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;
435 int GetCachedSize()
const {
return _impl_._cached_size_.Get(); }
438 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
440 void InternalSwap(
FlowArcProto* PROTOBUF_NONNULL other);
442 template <
typename T>
444 static ::absl::string_view FullMessageName() {
return "operations_research.FlowArcProto"; }
447 explicit FlowArcProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
450 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
FlowArcProto&& from) noexcept
452 *
this = ::std::move(from);
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_();
461 static constexpr auto InternalGenerateClassData_();
463 ::
google::protobuf::Metadata GetMetadata() const;
468 kTailFieldNumber = 1,
469 kHeadFieldNumber = 2,
470 kUnitCostFieldNumber = 4,
476 ::int64_t
tail()
const;
480 ::int64_t _internal_tail()
const;
481 void _internal_set_tail(::int64_t value);
487 ::int64_t
head()
const;
491 ::int64_t _internal_head()
const;
492 void _internal_set_head(::int64_t value);
502 ::int64_t _internal_unit_cost()
const;
503 void _internal_set_unit_cost(::int64_t value);
513 ::int64_t _internal_capacity()
const;
514 void _internal_set_capacity(::int64_t value);
520 friend class ::google::protobuf::internal::TcParser;
521 static const ::google::protobuf::internal::TcParseTable<2, 4,
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;
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,
541 ::google::protobuf::internal::HasBits<1> _has_bits_;
542 ::google::protobuf::internal::CachedSize _cached_size_;
545 ::int64_t unit_cost_;
547 PROTOBUF_TSAN_DECLARE_MEMBER
549 union { Impl_ _impl_; };
550 friend struct ::TableStruct_ortools_2fgraph_2fflow_5fproblem_2eproto;
556class OR_PROTO_DLL
FlowModelProto final :
public ::google::protobuf::Message
562#if defined(PROTOBUF_CUSTOM_VTABLE)
563 void operator delete(
FlowModelProto* PROTOBUF_NONNULL msg, std::destroying_delete_t) {
565 ::google::protobuf::internal::SizedDelete(msg,
sizeof(
FlowModelProto));
569 template <
typename =
void>
570 explicit PROTOBUF_CONSTEXPR
FlowModelProto(::google::protobuf::internal::ConstantInitialized);
580 if (
this == &from)
return *
this;
581 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
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);
594 ABSL_ATTRIBUTE_LIFETIME_BOUND {
595 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
598 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL
descriptor() {
601 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
604 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
614 if (other ==
this)
return;
615 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
618 ::google::protobuf::internal::GenericSwap(
this, other);
621 void UnsafeArenaSwap(FlowModelProto* PROTOBUF_NONNULL other) {
622 if (other ==
this)
return;
623 ABSL_DCHECK(GetArena() == other->GetArena());
629 FlowModelProto* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena =
nullptr)
const {
630 return ::google::protobuf::Message::DefaultConstruct<FlowModelProto>(arena);
632 using ::google::protobuf::Message::CopyFrom;
634 using ::google::protobuf::Message::MergeFrom;
638 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
639 const ::google::protobuf::MessageLite& from_msg);
645 ABSL_ATTRIBUTE_REINITIALIZES
void Clear() PROTOBUF_FINAL;
646 #if defined(PROTOBUF_CUSTOM_VTABLE)
648 static ::size_t
ByteSizeLong(const ::google::protobuf::MessageLite& msg);
650 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
651 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
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);
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;
666 int GetCachedSize()
const {
return _impl_._cached_size_.Get(); }
669 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
673 template <
typename T>
675 static ::absl::string_view FullMessageName() {
return "operations_research.FlowModelProto"; }
678 explicit FlowModelProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
681 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
FlowModelProto&& from) noexcept
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_();
692 static constexpr auto InternalGenerateClassData_();
694 ::
google::protobuf::Metadata GetMetadata() const;
709 template <
typename T>
713 static inline bool ProblemType_Parse(
727 int _internal_nodes_size()
const;
732 ::google::protobuf::RepeatedPtrField<::operations_research::FlowNodeProto>* PROTOBUF_NONNULL
mutable_nodes();
735 const ::google::protobuf::RepeatedPtrField<::operations_research::FlowNodeProto>& _internal_nodes()
const;
736 ::google::protobuf::RepeatedPtrField<::operations_research::FlowNodeProto>* PROTOBUF_NONNULL _internal_mutable_nodes();
738 const ::operations_research::FlowNodeProto&
nodes(
int index)
const;
740 const ::google::protobuf::RepeatedPtrField<::operations_research::FlowNodeProto>&
nodes()
const;
744 int _internal_arcs_size()
const;
749 ::google::protobuf::RepeatedPtrField<::operations_research::FlowArcProto>* PROTOBUF_NONNULL
mutable_arcs();
752 const ::google::protobuf::RepeatedPtrField<::operations_research::FlowArcProto>& _internal_arcs()
const;
753 ::google::protobuf::RepeatedPtrField<::operations_research::FlowArcProto>* PROTOBUF_NONNULL _internal_mutable_arcs();
755 const ::operations_research::FlowArcProto&
arcs(
int index)
const;
757 const ::google::protobuf::RepeatedPtrField<::operations_research::FlowArcProto>&
arcs()
const;
772 friend class ::google::protobuf::internal::TcParser;
773 static const ::google::protobuf::internal::TcParseTable<2, 3,
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;
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,
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_;
798 PROTOBUF_TSAN_DECLARE_MEMBER
800 union { Impl_ _impl_; };
801 friend struct ::TableStruct_ortools_2fgraph_2fflow_5fproblem_2eproto;
815#pragma GCC diagnostic push
816#pragma GCC diagnostic ignored "-Wstrict-aliasing"
824 bool value = (
_impl_._has_bits_[0] & 0x00000001u) != 0;
828 ::google::protobuf::internal::TSanWrite(&
_impl_);
829 _impl_.tail_ = ::int64_t{0};
834 return _internal_tail();
837 _internal_set_tail(value);
838 _impl_._has_bits_[0] |= 0x00000001u;
841inline ::int64_t FlowArcProto::_internal_tail()
const {
842 ::google::protobuf::internal::TSanRead(&
_impl_);
845inline void FlowArcProto::_internal_set_tail(::int64_t value) {
846 ::google::protobuf::internal::TSanWrite(&
_impl_);
852 bool value = (
_impl_._has_bits_[0] & 0x00000002u) != 0;
856 ::google::protobuf::internal::TSanWrite(&
_impl_);
857 _impl_.head_ = ::int64_t{0};
862 return _internal_head();
865 _internal_set_head(value);
866 _impl_._has_bits_[0] |= 0x00000002u;
869inline ::int64_t FlowArcProto::_internal_head()
const {
870 ::google::protobuf::internal::TSanRead(&
_impl_);
873inline void FlowArcProto::_internal_set_head(::int64_t value) {
874 ::google::protobuf::internal::TSanWrite(&
_impl_);
880 bool value = (
_impl_._has_bits_[0] & 0x00000008u) != 0;
884 ::google::protobuf::internal::TSanWrite(&
_impl_);
885 _impl_.capacity_ = ::int64_t{1};
890 return _internal_capacity();
893 _internal_set_capacity(value);
894 _impl_._has_bits_[0] |= 0x00000008u;
897inline ::int64_t FlowArcProto::_internal_capacity()
const {
898 ::google::protobuf::internal::TSanRead(&
_impl_);
901inline void FlowArcProto::_internal_set_capacity(::int64_t value) {
902 ::google::protobuf::internal::TSanWrite(&
_impl_);
908 bool value = (
_impl_._has_bits_[0] & 0x00000004u) != 0;
912 ::google::protobuf::internal::TSanWrite(&
_impl_);
913 _impl_.unit_cost_ = ::int64_t{0};
918 return _internal_unit_cost();
921 _internal_set_unit_cost(value);
922 _impl_._has_bits_[0] |= 0x00000004u;
925inline ::int64_t FlowArcProto::_internal_unit_cost()
const {
926 ::google::protobuf::internal::TSanRead(&
_impl_);
929inline void FlowArcProto::_internal_set_unit_cost(::int64_t value) {
930 ::google::protobuf::internal::TSanWrite(&
_impl_);
931 _impl_.unit_cost_ = value;
940 bool value = (
_impl_._has_bits_[0] & 0x00000001u) != 0;
944 ::google::protobuf::internal::TSanWrite(&
_impl_);
945 _impl_.id_ = ::int64_t{0};
946 _impl_._has_bits_[0] &= ~0x00000001u;
950 return _internal_id();
953 _internal_set_id(value);
954 _impl_._has_bits_[0] |= 0x00000001u;
957inline ::int64_t FlowNodeProto::_internal_id()
const {
958 ::google::protobuf::internal::TSanRead(&
_impl_);
961inline void FlowNodeProto::_internal_set_id(::int64_t value) {
962 ::google::protobuf::internal::TSanWrite(&
_impl_);
968 bool value = (
_impl_._has_bits_[0] & 0x00000002u) != 0;
972 ::google::protobuf::internal::TSanWrite(&
_impl_);
973 _impl_.supply_ = ::int64_t{0};
974 _impl_._has_bits_[0] &= ~0x00000002u;
978 return _internal_supply();
981 _internal_set_supply(value);
982 _impl_._has_bits_[0] |= 0x00000002u;
985inline ::int64_t FlowNodeProto::_internal_supply()
const {
986 ::google::protobuf::internal::TSanRead(&
_impl_);
989inline void FlowNodeProto::_internal_set_supply(::int64_t value) {
990 ::google::protobuf::internal::TSanWrite(&
_impl_);
999inline int FlowModelProto::_internal_nodes_size()
const {
1000 return _internal_nodes().size();
1003 return _internal_nodes_size();
1006 ::google::protobuf::internal::TSanWrite(&
_impl_);
1010 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1012 return _internal_mutable_nodes()->Mutable(index);
1015 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1017 ::google::protobuf::internal::TSanWrite(&
_impl_);
1018 return _internal_mutable_nodes();
1021 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1023 return _internal_nodes().Get(index);
1026 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1027 ::google::protobuf::internal::TSanWrite(&
_impl_);
1032inline const ::google::protobuf::RepeatedPtrField<::operations_research::FlowNodeProto>&
FlowModelProto::nodes() const
1033 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1035 return _internal_nodes();
1037inline const ::google::protobuf::RepeatedPtrField<::operations_research::FlowNodeProto>&
1038FlowModelProto::_internal_nodes()
const {
1039 ::google::protobuf::internal::TSanRead(&
_impl_);
1042inline ::google::protobuf::RepeatedPtrField<::operations_research::FlowNodeProto>* PROTOBUF_NONNULL
1043FlowModelProto::_internal_mutable_nodes() {
1044 ::google::protobuf::internal::TSanRead(&
_impl_);
1049inline int FlowModelProto::_internal_arcs_size()
const {
1050 return _internal_arcs().size();
1053 return _internal_arcs_size();
1056 ::google::protobuf::internal::TSanWrite(&
_impl_);
1060 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1062 return _internal_mutable_arcs()->Mutable(index);
1065 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1067 ::google::protobuf::internal::TSanWrite(&
_impl_);
1068 return _internal_mutable_arcs();
1071 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1073 return _internal_arcs().Get(index);
1076 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1077 ::google::protobuf::internal::TSanWrite(&
_impl_);
1082inline const ::google::protobuf::RepeatedPtrField<::operations_research::FlowArcProto>&
FlowModelProto::arcs() const
1083 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1085 return _internal_arcs();
1087inline const ::google::protobuf::RepeatedPtrField<::operations_research::FlowArcProto>&
1088FlowModelProto::_internal_arcs()
const {
1089 ::google::protobuf::internal::TSanRead(&
_impl_);
1092inline ::google::protobuf::RepeatedPtrField<::operations_research::FlowArcProto>* PROTOBUF_NONNULL
1093FlowModelProto::_internal_mutable_arcs() {
1094 ::google::protobuf::internal::TSanRead(&
_impl_);
1100 bool value = (
_impl_._has_bits_[0] & 0x00000001u) != 0;
1104 ::google::protobuf::internal::TSanWrite(&
_impl_);
1105 _impl_.problem_type_ = 0;
1106 _impl_._has_bits_[0] &= ~0x00000001u;
1110 return _internal_problem_type();
1113 _internal_set_problem_type(value);
1114 _impl_._has_bits_[0] |= 0x00000001u;
1117inline ::operations_research::FlowModelProto_ProblemType FlowModelProto::_internal_problem_type()
const {
1118 ::google::protobuf::internal::TSanRead(&
_impl_);
1122 ::google::protobuf::internal::TSanWrite(&
_impl_);
1124 assert(::google::protobuf::internal::ValidateEnum(
1126 _impl_.problem_type_ = value;
1130#pragma GCC diagnostic pop
1144 return ::operations_research::FlowModelProto_ProblemType_descriptor();
1152#include "google/protobuf/port_undef.inc"
::int64_t unit_cost() const
friend class ::google::protobuf::MessageLite
void set_capacity(::int64_t value)
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL GetDescriptor()
FlowArcProto & operator=(const FlowArcProto &from)
PROTOBUF_CONSTEXPR FlowArcProto(::google::protobuf::internal::ConstantInitialized)
void set_unit_cost(::int64_t value)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
void set_head(::int64_t value)
bool IsInitialized() const
::size_t ByteSizeLong() const final
bool has_unit_cost() const
optional int64 unit_cost = 4 [default = 0];
void Swap(FlowArcProto *PROTOBUF_NONNULL other)
void set_tail(::int64_t value)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
static const ::google::protobuf::Reflection *PROTOBUF_NONNULL GetReflection()
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
::int64_t capacity() const
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;
@ kProblemTypeFieldNumber
::operations_research::FlowArcProto *PROTOBUF_NONNULL add_arcs()
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
static constexpr ProblemType ProblemType_MAX
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL descriptor()
static constexpr int ProblemType_ARRAYSIZE
void clear_problem_type()
static const ::google::protobuf::EnumDescriptor *PROTOBUF_NONNULL ProblemType_descriptor()
inline ::google::protobuf::UnknownFieldSet *PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND
bool has_problem_type() const
optional .operations_research.FlowModelProto.ProblemType problem_type = 3;
const ::operations_research::FlowArcProto & arcs(int index) const
static constexpr int kIndexInFileMessages
bool IsInitialized() const
void CopyFrom(const FlowModelProto &from)
::google::protobuf::RepeatedPtrField<::operations_research::FlowNodeProto > *PROTOBUF_NONNULL mutable_nodes()
const ::google::protobuf::RepeatedPtrField<::operations_research::FlowArcProto > & arcs() const
::google::protobuf::RepeatedPtrField<::operations_research::FlowArcProto > *PROTOBUF_NONNULL mutable_arcs()
friend void swap(FlowModelProto &a, FlowModelProto &b)
FlowModelProto & operator=(const FlowModelProto &from)
::size_t ByteSizeLong() const final
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL GetDescriptor()
static const FlowModelProto & default_instance()
FlowModelProto_ProblemType ProblemType
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)
void set_supply(::int64_t value)
bool has_supply() const
optional int64 supply = 2 [default = 0];
void set_id(::int64_t value)
void CopyFrom(const FlowNodeProto &from)
void Swap(FlowNodeProto *PROTOBUF_NONNULL other)
bool IsInitialized() const
FlowNodeProto & operator=(const FlowNodeProto &from)
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
@ FlowModelProto_ProblemType_LINEAR_SUM_ASSIGNMENT
@ FlowModelProto_ProblemType_MAX_FLOW
@ FlowModelProto_ProblemType_MIN_COST_FLOW
constexpr FlowModelProto_ProblemType FlowModelProto_ProblemType_ProblemType_MIN
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull FlowArcProto_class_data_
const ::google::protobuf::EnumDescriptor *PROTOBUF_NONNULL FlowModelProto_ProblemType_descriptor()
bool FlowModelProto_ProblemType_Parse(::absl::string_view name, FlowModelProto_ProblemType *PROTOBUF_NONNULL value)
constexpr FlowModelProto_ProblemType FlowModelProto_ProblemType_ProblemType_MAX
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull FlowModelProto_class_data_
const ::std::string & FlowModelProto_ProblemType_Name(T value)
constexpr int FlowModelProto_ProblemType_ProblemType_ARRAYSIZE
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlowArcProtoDefaultTypeInternal _FlowArcProto_default_instance_