Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
linear_solver.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/linear_solver/linear_solver.proto
4// Protobuf C++ Version: 6.33.1
5
6#ifndef ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto_2epb_2eh
7#define ortools_2flinear_5fsolver_2flinear_5fsolver_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 != 6033001
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/map.h" // IWYU pragma: export
32#include "google/protobuf/map_type_handler.h" // IWYU pragma: export
33#include "google/protobuf/map_entry.h"
34#include "google/protobuf/map_field.h"
35#include "google/protobuf/generated_enum_reflection.h"
36#include "google/protobuf/unknown_field_set.h"
38// @@protoc_insertion_point(includes)
39
40// Must be included last.
41#include "google/protobuf/port_def.inc"
42
43#define PROTOBUF_INTERNAL_EXPORT_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto OR_PROTO_DLL
44
45namespace google {
46namespace protobuf {
47namespace internal {
48template <typename T>
49::absl::string_view GetAnyMessageName();
50} // namespace internal
51} // namespace protobuf
52} // namespace google
53
54// Internal implementation detail -- do not use these members.
56 static const ::uint32_t offsets[];
57};
58extern "C" {
59OR_PROTO_DLL extern const ::google::protobuf::internal::DescriptorTable descriptor_table_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
60} // extern "C"
61namespace operations_research {
63OR_PROTO_DLL extern const uint32_t MPModelProto_Annotation_TargetType_internal_data_[];
65OR_PROTO_DLL extern const uint32_t MPModelRequest_SolverType_internal_data_[];
67OR_PROTO_DLL extern const uint32_t MPSolverCommonParameters_LPAlgorithmValues_internal_data_[];
68enum MPSolverResponseStatus : int;
69OR_PROTO_DLL extern const uint32_t MPSolverResponseStatus_internal_data_[];
70enum MPSosConstraint_Type : int;
71OR_PROTO_DLL extern const uint32_t MPSosConstraint_Type_internal_data_[];
72class MPAbsConstraint;
75OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPAbsConstraint_class_data_;
79OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPArrayConstraint_class_data_;
83OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPArrayWithConstantConstraint_class_data_;
87OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPConstraintProto_class_data_;
91OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPGeneralConstraintProto_class_data_;
95OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPIndicatorConstraint_class_data_;
99OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPModelDeltaProto_class_data_;
103OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse_class_data_;
107OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPModelDeltaProto_VariableOverridesEntry_DoNotUse_class_data_;
108class MPModelProto;
111OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPModelProto_class_data_;
115OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPModelProto_Annotation_class_data_;
116class MPModelRequest;
119OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPModelRequest_class_data_;
123OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPQuadraticConstraint_class_data_;
127OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPQuadraticObjective_class_data_;
128class MPSolution;
131OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPSolution_class_data_;
135OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPSolutionResponse_class_data_;
136class MPSolveInfo;
139OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPSolveInfo_class_data_;
143OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPSolverCommonParameters_class_data_;
144class MPSosConstraint;
147OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPSosConstraint_class_data_;
148class MPVariableProto;
151OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPVariableProto_class_data_;
152class OptionalDouble;
155OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull OptionalDouble_class_data_;
159OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull PartialVariableAssignment_class_data_;
160} // namespace operations_research
161namespace google {
162namespace protobuf {
163template <>
164internal::EnumTraitsT<::operations_research::MPModelProto_Annotation_TargetType_internal_data_>
165 internal::EnumTraitsImpl::value<::operations_research::MPModelProto_Annotation_TargetType>;
166template <>
167internal::EnumTraitsT<::operations_research::MPModelRequest_SolverType_internal_data_>
168 internal::EnumTraitsImpl::value<::operations_research::MPModelRequest_SolverType>;
169template <>
170internal::EnumTraitsT<::operations_research::MPSolverCommonParameters_LPAlgorithmValues_internal_data_>
171 internal::EnumTraitsImpl::value<::operations_research::MPSolverCommonParameters_LPAlgorithmValues>;
172template <>
173internal::EnumTraitsT<::operations_research::MPSolverResponseStatus_internal_data_>
174 internal::EnumTraitsImpl::value<::operations_research::MPSolverResponseStatus>;
175template <>
176internal::EnumTraitsT<::operations_research::MPSosConstraint_Type_internal_data_>
177 internal::EnumTraitsImpl::value<::operations_research::MPSosConstraint_Type>;
178} // namespace protobuf
179} // namespace google
180
181namespace operations_research {
186
187OR_PROTO_DLL extern const uint32_t MPSosConstraint_Type_internal_data_[];
189 static_cast<MPSosConstraint_Type>(0);
191 static_cast<MPSosConstraint_Type>(1);
192inline bool MPSosConstraint_Type_IsValid(int value) {
193 return 0 <= value && value <= 1;
194}
195inline constexpr int MPSosConstraint_Type_Type_ARRAYSIZE = 1 + 1;
196OR_PROTO_DLL const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL MPSosConstraint_Type_descriptor();
197template <typename T>
198const ::std::string& MPSosConstraint_Type_Name(T value) {
199 static_assert(::std::is_same<T, MPSosConstraint_Type>::value ||
200 ::std::is_integral<T>::value,
201 "Incorrect type passed to Type_Name().");
202 return MPSosConstraint_Type_Name(static_cast<MPSosConstraint_Type>(value));
203}
204template <>
205inline const ::std::string& MPSosConstraint_Type_Name(MPSosConstraint_Type value) {
206 return ::google::protobuf::internal::NameOfDenseEnum<MPSosConstraint_Type_descriptor, 0, 1>(
207 static_cast<int>(value));
208}
210 ::absl::string_view name, MPSosConstraint_Type* PROTOBUF_NONNULL value) {
211 return ::google::protobuf::internal::ParseNamedEnum<MPSosConstraint_Type>(MPSosConstraint_Type_descriptor(), name,
212 value);
213}
219
220OR_PROTO_DLL extern const uint32_t MPModelProto_Annotation_TargetType_internal_data_[];
226 return 0 <= value && value <= 2;
227}
229OR_PROTO_DLL const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL MPModelProto_Annotation_TargetType_descriptor();
230template <typename T>
231const ::std::string& MPModelProto_Annotation_TargetType_Name(T value) {
232 static_assert(::std::is_same<T, MPModelProto_Annotation_TargetType>::value ||
233 ::std::is_integral<T>::value,
234 "Incorrect type passed to TargetType_Name().");
236}
237template <>
239 return ::google::protobuf::internal::NameOfDenseEnum<MPModelProto_Annotation_TargetType_descriptor, 0, 2>(
240 static_cast<int>(value));
241}
243 ::absl::string_view name, MPModelProto_Annotation_TargetType* PROTOBUF_NONNULL value) {
244 return ::google::protobuf::internal::ParseNamedEnum<MPModelProto_Annotation_TargetType>(MPModelProto_Annotation_TargetType_descriptor(), name,
245 value);
246}
253
254OR_PROTO_DLL extern const uint32_t MPSolverCommonParameters_LPAlgorithmValues_internal_data_[];
260 return 0 <= value && value <= 3;
261}
263OR_PROTO_DLL const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL MPSolverCommonParameters_LPAlgorithmValues_descriptor();
264template <typename T>
266 static_assert(::std::is_same<T, MPSolverCommonParameters_LPAlgorithmValues>::value ||
267 ::std::is_integral<T>::value,
268 "Incorrect type passed to LPAlgorithmValues_Name().");
270}
271template <>
273 return ::google::protobuf::internal::NameOfDenseEnum<MPSolverCommonParameters_LPAlgorithmValues_descriptor, 0, 3>(
274 static_cast<int>(value));
275}
277 ::absl::string_view name, MPSolverCommonParameters_LPAlgorithmValues* PROTOBUF_NONNULL value) {
278 return ::google::protobuf::internal::ParseNamedEnum<MPSolverCommonParameters_LPAlgorithmValues>(MPSolverCommonParameters_LPAlgorithmValues_descriptor(), name,
279 value);
280}
301
302OR_PROTO_DLL extern const uint32_t MPModelRequest_SolverType_internal_data_[];
304 static_cast<MPModelRequest_SolverType>(0);
306 static_cast<MPModelRequest_SolverType>(102);
307inline bool MPModelRequest_SolverType_IsValid(int value) {
308 return ::google::protobuf::internal::ValidateEnum(value, MPModelRequest_SolverType_internal_data_);
309}
311OR_PROTO_DLL const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL MPModelRequest_SolverType_descriptor();
312template <typename T>
313const ::std::string& MPModelRequest_SolverType_Name(T value) {
314 static_assert(::std::is_same<T, MPModelRequest_SolverType>::value ||
315 ::std::is_integral<T>::value,
316 "Incorrect type passed to SolverType_Name().");
317 return ::google::protobuf::internal::NameOfEnum(MPModelRequest_SolverType_descriptor(), value);
318}
320 ::absl::string_view name, MPModelRequest_SolverType* PROTOBUF_NONNULL value) {
321 return ::google::protobuf::internal::ParseNamedEnum<MPModelRequest_SolverType>(MPModelRequest_SolverType_descriptor(), name,
322 value);
323}
340
341OR_PROTO_DLL extern const uint32_t MPSolverResponseStatus_internal_data_[];
343 static_cast<MPSolverResponseStatus>(0);
345 static_cast<MPSolverResponseStatus>(113);
346inline bool MPSolverResponseStatus_IsValid(int value) {
347 return ::google::protobuf::internal::ValidateEnum(value, MPSolverResponseStatus_internal_data_);
348}
349inline constexpr int MPSolverResponseStatus_ARRAYSIZE = 113 + 1;
350OR_PROTO_DLL const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL MPSolverResponseStatus_descriptor();
351template <typename T>
352const ::std::string& MPSolverResponseStatus_Name(T value) {
353 static_assert(::std::is_same<T, MPSolverResponseStatus>::value ||
354 ::std::is_integral<T>::value,
355 "Incorrect type passed to MPSolverResponseStatus_Name().");
356 return ::google::protobuf::internal::NameOfEnum(MPSolverResponseStatus_descriptor(), value);
357}
359 ::absl::string_view name, MPSolverResponseStatus* PROTOBUF_NONNULL value) {
360 return ::google::protobuf::internal::ParseNamedEnum<MPSolverResponseStatus>(MPSolverResponseStatus_descriptor(), name,
361 value);
362}
363
364// ===================================================================
365
366
367// -------------------------------------------------------------------
368
369class OR_PROTO_DLL PartialVariableAssignment final : public ::google::protobuf::Message
370/* @@protoc_insertion_point(class_definition:operations_research.PartialVariableAssignment) */ {
371 public:
373 ~PartialVariableAssignment() PROTOBUF_FINAL;
375#if defined(PROTOBUF_CUSTOM_VTABLE)
376 void operator delete(PartialVariableAssignment* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
377 SharedDtor(*msg);
378 ::google::protobuf::internal::SizedDelete(msg, sizeof(PartialVariableAssignment));
379 }
380#endif
381
382 template <typename = void>
383 explicit PROTOBUF_CONSTEXPR PartialVariableAssignment(::google::protobuf::internal::ConstantInitialized);
384
387 : PartialVariableAssignment(nullptr, ::std::move(from)) {}
390 return *this;
391 }
392 inline PartialVariableAssignment& operator=(PartialVariableAssignment&& from) noexcept {
393 if (this == &from) return *this;
394 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
395 InternalSwap(&from);
396 } else {
397 CopyFrom(from);
398 }
399 return *this;
400 }
401
402 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
403 ABSL_ATTRIBUTE_LIFETIME_BOUND {
404 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
405 }
406 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
407 ABSL_ATTRIBUTE_LIFETIME_BOUND {
408 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
409 }
410
411 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
412 return GetDescriptor();
414 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
415 return default_instance().GetMetadata().descriptor;
417 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
418 return default_instance().GetMetadata().reflection;
420 static const PartialVariableAssignment& default_instance() {
421 return *reinterpret_cast<const PartialVariableAssignment*>(
423 }
424 static constexpr int kIndexInFileMessages = 10;
425 friend void swap(PartialVariableAssignment& a, PartialVariableAssignment& b) { a.Swap(&b); }
426 inline void Swap(PartialVariableAssignment* PROTOBUF_NONNULL other) {
427 if (other == this) return;
428 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
429 InternalSwap(other);
430 } else {
431 ::google::protobuf::internal::GenericSwap(this, other);
432 }
433 }
434 void UnsafeArenaSwap(PartialVariableAssignment* PROTOBUF_NONNULL other) {
435 if (other == this) return;
436 ABSL_DCHECK(GetArena() == other->GetArena());
437 InternalSwap(other);
438 }
439
440 // implements Message ----------------------------------------------
441
442 PartialVariableAssignment* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
443 return ::google::protobuf::Message::DefaultConstruct<PartialVariableAssignment>(arena);
445 using ::google::protobuf::Message::CopyFrom;
446 void CopyFrom(const PartialVariableAssignment& from);
447 using ::google::protobuf::Message::MergeFrom;
448 void MergeFrom(const PartialVariableAssignment& from) { PartialVariableAssignment::MergeImpl(*this, from); }
449
450 private:
451 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
452 const ::google::protobuf::MessageLite& from_msg);
453
454 public:
455 bool IsInitialized() const {
456 return true;
458 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
459 #if defined(PROTOBUF_CUSTOM_VTABLE)
460 private:
461 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
462 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
463 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
464 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
465
466 public:
467 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
468 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
469 ::uint8_t* PROTOBUF_NONNULL target,
470 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
471 return _InternalSerialize(*this, target, stream);
472 }
473 #else // PROTOBUF_CUSTOM_VTABLE
474 ::size_t ByteSizeLong() const final;
475 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
476 ::uint8_t* PROTOBUF_NONNULL target,
477 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
478 #endif // PROTOBUF_CUSTOM_VTABLE
479 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
480
481 private:
482 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
483 static void SharedDtor(MessageLite& self);
484 void InternalSwap(PartialVariableAssignment* PROTOBUF_NONNULL other);
485 private:
486 template <typename T>
487 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
488 static ::absl::string_view FullMessageName() { return "operations_research.PartialVariableAssignment"; }
489
490 explicit PartialVariableAssignment(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
491 PartialVariableAssignment(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const PartialVariableAssignment& from);
493 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, PartialVariableAssignment&& from) noexcept
495 *this = ::std::move(from);
496 }
497 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
498 static void* PROTOBUF_NONNULL PlacementNew_(
499 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
500 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
501 static constexpr auto InternalNewImpl_();
502
503 public:
504 static constexpr auto InternalGenerateClassData_();
505
506 ::google::protobuf::Metadata GetMetadata() const;
507 // nested types ----------------------------------------------------
508
509 // accessors -------------------------------------------------------
510 enum : int {
511 kVarIndexFieldNumber = 1,
512 kVarValueFieldNumber = 2,
513 };
514 // repeated int32 var_index = 1 [packed = true];
515 int var_index_size() const;
516 private:
517 int _internal_var_index_size() const;
518
519 public:
520 void clear_var_index() ;
521 ::int32_t var_index(int index) const;
522 void set_var_index(int index, ::int32_t value);
523 void add_var_index(::int32_t value);
524 const ::google::protobuf::RepeatedField<::int32_t>& var_index() const;
525 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL mutable_var_index();
526
527 private:
528 const ::google::protobuf::RepeatedField<::int32_t>& _internal_var_index() const;
529 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_var_index();
530
531 public:
532 // repeated double var_value = 2 [packed = true];
533 int var_value_size() const;
534 private:
535 int _internal_var_value_size() const;
536
537 public:
538 void clear_var_value() ;
539 double var_value(int index) const;
540 void set_var_value(int index, double value);
541 void add_var_value(double value);
542 const ::google::protobuf::RepeatedField<double>& var_value() const;
543 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL mutable_var_value();
544
545 private:
546 const ::google::protobuf::RepeatedField<double>& _internal_var_value() const;
547 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL _internal_mutable_var_value();
548
549 public:
550 // @@protoc_insertion_point(class_scope:operations_research.PartialVariableAssignment)
551 private:
552 class _Internal;
553 friend class ::google::protobuf::internal::TcParser;
554 static const ::google::protobuf::internal::TcParseTable<1, 2,
555 0, 0,
556 2>
557 _table_;
558
559 friend class ::google::protobuf::MessageLite;
560 friend class ::google::protobuf::Arena;
561 template <typename T>
562 friend class ::google::protobuf::Arena::InternalHelper;
563 using InternalArenaConstructable_ = void;
564 using DestructorSkippable_ = void;
565 struct Impl_ {
566 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
567 inline explicit Impl_(
568 ::google::protobuf::internal::InternalVisibility visibility,
569 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
570 inline explicit Impl_(
571 ::google::protobuf::internal::InternalVisibility visibility,
572 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
573 const PartialVariableAssignment& from_msg);
574 ::google::protobuf::internal::HasBits<1> _has_bits_;
575 ::google::protobuf::internal::CachedSize _cached_size_;
576 ::google::protobuf::RepeatedField<::int32_t> var_index_;
577 ::google::protobuf::internal::CachedSize _var_index_cached_byte_size_;
578 ::google::protobuf::RepeatedField<double> var_value_;
579 PROTOBUF_TSAN_DECLARE_MEMBER
580 };
581 union { Impl_ _impl_; };
582 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
585OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull PartialVariableAssignment_class_data_;
586// -------------------------------------------------------------------
587
588class OR_PROTO_DLL OptionalDouble final : public ::google::protobuf::Message
589/* @@protoc_insertion_point(class_definition:operations_research.OptionalDouble) */ {
590 public:
591 inline OptionalDouble() : OptionalDouble(nullptr) {}
592 ~OptionalDouble() PROTOBUF_FINAL;
593
594#if defined(PROTOBUF_CUSTOM_VTABLE)
595 void operator delete(OptionalDouble* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
596 SharedDtor(*msg);
597 ::google::protobuf::internal::SizedDelete(msg, sizeof(OptionalDouble));
598 }
599#endif
600
601 template <typename = void>
602 explicit PROTOBUF_CONSTEXPR OptionalDouble(::google::protobuf::internal::ConstantInitialized);
603
604 inline OptionalDouble(const OptionalDouble& from) : OptionalDouble(nullptr, from) {}
605 inline OptionalDouble(OptionalDouble&& from) noexcept
606 : OptionalDouble(nullptr, ::std::move(from)) {}
608 CopyFrom(from);
609 return *this;
611 inline OptionalDouble& operator=(OptionalDouble&& from) noexcept {
612 if (this == &from) return *this;
613 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
614 InternalSwap(&from);
615 } else {
616 CopyFrom(from);
617 }
618 return *this;
619 }
620
621 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
622 ABSL_ATTRIBUTE_LIFETIME_BOUND {
623 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
625 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
626 ABSL_ATTRIBUTE_LIFETIME_BOUND {
627 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
629
630 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
631 return GetDescriptor();
632 }
633 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
634 return default_instance().GetMetadata().descriptor;
635 }
636 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
637 return default_instance().GetMetadata().reflection;
638 }
640 return *reinterpret_cast<const OptionalDouble*>(
643 static constexpr int kIndexInFileMessages = 13;
644 friend void swap(OptionalDouble& a, OptionalDouble& b) { a.Swap(&b); }
645 inline void Swap(OptionalDouble* PROTOBUF_NONNULL other) {
646 if (other == this) return;
647 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
648 InternalSwap(other);
649 } else {
650 ::google::protobuf::internal::GenericSwap(this, other);
651 }
652 }
653 void UnsafeArenaSwap(OptionalDouble* PROTOBUF_NONNULL other) {
654 if (other == this) return;
655 ABSL_DCHECK(GetArena() == other->GetArena());
656 InternalSwap(other);
657 }
658
659 // implements Message ----------------------------------------------
660
661 OptionalDouble* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
662 return ::google::protobuf::Message::DefaultConstruct<OptionalDouble>(arena);
663 }
664 using ::google::protobuf::Message::CopyFrom;
665 void CopyFrom(const OptionalDouble& from);
666 using ::google::protobuf::Message::MergeFrom;
667 void MergeFrom(const OptionalDouble& from) { OptionalDouble::MergeImpl(*this, from); }
668
669 private:
670 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
671 const ::google::protobuf::MessageLite& from_msg);
672
673 public:
674 bool IsInitialized() const {
675 return true;
676 }
677 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
678 #if defined(PROTOBUF_CUSTOM_VTABLE)
679 private:
680 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
681 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
682 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
683 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
684
685 public:
686 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
687 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
688 ::uint8_t* PROTOBUF_NONNULL target,
689 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
690 return _InternalSerialize(*this, target, stream);
691 }
692 #else // PROTOBUF_CUSTOM_VTABLE
693 ::size_t ByteSizeLong() const final;
694 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
695 ::uint8_t* PROTOBUF_NONNULL target,
696 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
697 #endif // PROTOBUF_CUSTOM_VTABLE
698 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
699
700 private:
701 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
702 static void SharedDtor(MessageLite& self);
703 void InternalSwap(OptionalDouble* PROTOBUF_NONNULL other);
704 private:
705 template <typename T>
706 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
707 static ::absl::string_view FullMessageName() { return "operations_research.OptionalDouble"; }
708
709 explicit OptionalDouble(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
710 OptionalDouble(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const OptionalDouble& from);
712 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, OptionalDouble&& from) noexcept
713 : OptionalDouble(arena) {
714 *this = ::std::move(from);
715 }
716 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
717 static void* PROTOBUF_NONNULL PlacementNew_(
718 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
719 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
720 static constexpr auto InternalNewImpl_();
721
722 public:
723 static constexpr auto InternalGenerateClassData_();
724
725 ::google::protobuf::Metadata GetMetadata() const;
726 // nested types ----------------------------------------------------
727
728 // accessors -------------------------------------------------------
729 enum : int {
730 kValueFieldNumber = 1,
731 };
732 // optional double value = 1;
733 bool has_value() const;
734 void clear_value() ;
735 double value() const;
736 void set_value(double value);
737
738 private:
739 double _internal_value() const;
740 void _internal_set_value(double value);
741
742 public:
743 // @@protoc_insertion_point(class_scope:operations_research.OptionalDouble)
744 private:
745 class _Internal;
746 friend class ::google::protobuf::internal::TcParser;
747 static const ::google::protobuf::internal::TcParseTable<0, 1,
748 0, 0,
749 2>
750 _table_;
751
752 friend class ::google::protobuf::MessageLite;
753 friend class ::google::protobuf::Arena;
754 template <typename T>
755 friend class ::google::protobuf::Arena::InternalHelper;
756 using InternalArenaConstructable_ = void;
757 using DestructorSkippable_ = void;
758 struct Impl_ {
759 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
760 inline explicit Impl_(
761 ::google::protobuf::internal::InternalVisibility visibility,
762 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
763 inline explicit Impl_(
764 ::google::protobuf::internal::InternalVisibility visibility,
765 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
766 const OptionalDouble& from_msg);
767 ::google::protobuf::internal::HasBits<1> _has_bits_;
768 ::google::protobuf::internal::CachedSize _cached_size_;
769 double value_;
770 PROTOBUF_TSAN_DECLARE_MEMBER
771 };
772 union { Impl_ _impl_; };
773 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
774};
776OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull OptionalDouble_class_data_;
777// -------------------------------------------------------------------
778
779class OR_PROTO_DLL MPVariableProto final : public ::google::protobuf::Message
780/* @@protoc_insertion_point(class_definition:operations_research.MPVariableProto) */ {
781 public:
782 inline MPVariableProto() : MPVariableProto(nullptr) {}
783 ~MPVariableProto() PROTOBUF_FINAL;
784
785#if defined(PROTOBUF_CUSTOM_VTABLE)
786 void operator delete(MPVariableProto* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
787 SharedDtor(*msg);
788 ::google::protobuf::internal::SizedDelete(msg, sizeof(MPVariableProto));
789 }
790#endif
791
792 template <typename = void>
793 explicit PROTOBUF_CONSTEXPR MPVariableProto(::google::protobuf::internal::ConstantInitialized);
794
795 inline MPVariableProto(const MPVariableProto& from) : MPVariableProto(nullptr, from) {}
796 inline MPVariableProto(MPVariableProto&& from) noexcept
797 : MPVariableProto(nullptr, ::std::move(from)) {}
798 inline MPVariableProto& operator=(const MPVariableProto& from) {
799 CopyFrom(from);
800 return *this;
801 }
802 inline MPVariableProto& operator=(MPVariableProto&& from) noexcept {
803 if (this == &from) return *this;
804 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
805 InternalSwap(&from);
806 } else {
807 CopyFrom(from);
808 }
809 return *this;
810 }
811
812 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
813 ABSL_ATTRIBUTE_LIFETIME_BOUND {
814 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
815 }
816 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
817 ABSL_ATTRIBUTE_LIFETIME_BOUND {
818 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
819 }
821 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
822 return GetDescriptor();
823 }
824 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
825 return default_instance().GetMetadata().descriptor;
826 }
827 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
828 return default_instance().GetMetadata().reflection;
829 }
830 static const MPVariableProto& default_instance() {
831 return *reinterpret_cast<const MPVariableProto*>(
833 }
834 static constexpr int kIndexInFileMessages = 0;
835 friend void swap(MPVariableProto& a, MPVariableProto& b) { a.Swap(&b); }
836 inline void Swap(MPVariableProto* PROTOBUF_NONNULL other) {
837 if (other == this) return;
838 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
839 InternalSwap(other);
840 } else {
841 ::google::protobuf::internal::GenericSwap(this, other);
842 }
843 }
844 void UnsafeArenaSwap(MPVariableProto* PROTOBUF_NONNULL other) {
845 if (other == this) return;
846 ABSL_DCHECK(GetArena() == other->GetArena());
847 InternalSwap(other);
849
850 // implements Message ----------------------------------------------
851
852 MPVariableProto* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
853 return ::google::protobuf::Message::DefaultConstruct<MPVariableProto>(arena);
854 }
855 using ::google::protobuf::Message::CopyFrom;
856 void CopyFrom(const MPVariableProto& from);
857 using ::google::protobuf::Message::MergeFrom;
858 void MergeFrom(const MPVariableProto& from) { MPVariableProto::MergeImpl(*this, from); }
859
860 private:
861 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
862 const ::google::protobuf::MessageLite& from_msg);
863
864 public:
865 bool IsInitialized() const {
866 return true;
867 }
868 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
869 #if defined(PROTOBUF_CUSTOM_VTABLE)
870 private:
871 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
872 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
873 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
874 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
875
876 public:
877 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
878 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
879 ::uint8_t* PROTOBUF_NONNULL target,
880 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
881 return _InternalSerialize(*this, target, stream);
882 }
883 #else // PROTOBUF_CUSTOM_VTABLE
884 ::size_t ByteSizeLong() const final;
885 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
886 ::uint8_t* PROTOBUF_NONNULL target,
887 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
888 #endif // PROTOBUF_CUSTOM_VTABLE
889 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
890
891 private:
892 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
893 static void SharedDtor(MessageLite& self);
894 void InternalSwap(MPVariableProto* PROTOBUF_NONNULL other);
895 private:
896 template <typename T>
897 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
898 static ::absl::string_view FullMessageName() { return "operations_research.MPVariableProto"; }
899
900 explicit MPVariableProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
901 MPVariableProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MPVariableProto& from);
903 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, MPVariableProto&& from) noexcept
904 : MPVariableProto(arena) {
905 *this = ::std::move(from);
906 }
907 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
908 static void* PROTOBUF_NONNULL PlacementNew_(
909 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
910 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
911 static constexpr auto InternalNewImpl_();
912
913 public:
914 static constexpr auto InternalGenerateClassData_();
915
916 ::google::protobuf::Metadata GetMetadata() const;
917 // nested types ----------------------------------------------------
918
919 // accessors -------------------------------------------------------
920 enum : int {
921 kNameFieldNumber = 5,
922 kObjectiveCoefficientFieldNumber = 3,
923 kIsIntegerFieldNumber = 4,
924 kBranchingPriorityFieldNumber = 6,
927 };
928 // optional string name = 5 [default = ""];
929 bool has_name() const;
930 void clear_name() ;
931 const ::std::string& name() const;
932 template <typename Arg_ = const ::std::string&, typename... Args_>
933 void set_name(Arg_&& arg, Args_... args);
934 ::std::string* PROTOBUF_NONNULL mutable_name();
935 [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_name();
936 void set_allocated_name(::std::string* PROTOBUF_NULLABLE value);
938 private:
939 const ::std::string& _internal_name() const;
940 PROTOBUF_ALWAYS_INLINE void _internal_set_name(const ::std::string& value);
941 ::std::string* PROTOBUF_NONNULL _internal_mutable_name();
942
943 public:
944 // optional double objective_coefficient = 3 [default = 0];
945 bool has_objective_coefficient() const;
947 double objective_coefficient() const;
948 void set_objective_coefficient(double value);
949
950 private:
951 double _internal_objective_coefficient() const;
952 void _internal_set_objective_coefficient(double value);
953
954 public:
955 // optional bool is_integer = 4 [default = false];
956 bool has_is_integer() const;
957 void clear_is_integer() ;
958 bool is_integer() const;
959 void set_is_integer(bool value);
960
961 private:
962 bool _internal_is_integer() const;
963 void _internal_set_is_integer(bool value);
964
965 public:
966 // optional int32 branching_priority = 6 [default = 0];
967 bool has_branching_priority() const;
969 ::int32_t branching_priority() const;
970 void set_branching_priority(::int32_t value);
971
972 private:
973 ::int32_t _internal_branching_priority() const;
974 void _internal_set_branching_priority(::int32_t value);
975
976 public:
977 // optional double lower_bound = 1 [default = -inf];
978 bool has_lower_bound() const;
979 void clear_lower_bound() ;
980 double lower_bound() const;
981 void set_lower_bound(double value);
982
983 private:
984 double _internal_lower_bound() const;
985 void _internal_set_lower_bound(double value);
986
987 public:
988 // optional double upper_bound = 2 [default = inf];
989 bool has_upper_bound() const;
990 void clear_upper_bound() ;
991 double upper_bound() const;
992 void set_upper_bound(double value);
993
994 private:
995 double _internal_upper_bound() const;
996 void _internal_set_upper_bound(double value);
997
998 public:
999 // @@protoc_insertion_point(class_scope:operations_research.MPVariableProto)
1000 private:
1001 class _Internal;
1002 friend class ::google::protobuf::internal::TcParser;
1003 static const ::google::protobuf::internal::TcParseTable<3, 6,
1004 0, 0,
1005 2>
1006 _table_;
1007
1008 friend class ::google::protobuf::MessageLite;
1009 friend class ::google::protobuf::Arena;
1010 template <typename T>
1011 friend class ::google::protobuf::Arena::InternalHelper;
1012 using InternalArenaConstructable_ = void;
1013 using DestructorSkippable_ = void;
1014 struct Impl_ {
1015 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
1016 inline explicit Impl_(
1017 ::google::protobuf::internal::InternalVisibility visibility,
1018 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1019 inline explicit Impl_(
1020 ::google::protobuf::internal::InternalVisibility visibility,
1021 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
1022 const MPVariableProto& from_msg);
1023 ::google::protobuf::internal::HasBits<1> _has_bits_;
1024 ::google::protobuf::internal::CachedSize _cached_size_;
1025 ::google::protobuf::internal::ArenaStringPtr name_;
1026 double objective_coefficient_;
1027 bool is_integer_;
1028 ::int32_t branching_priority_;
1029 double lower_bound_;
1030 double upper_bound_;
1031 PROTOBUF_TSAN_DECLARE_MEMBER
1032 };
1033 union { Impl_ _impl_; };
1034 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
1035};
1036
1037OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPVariableProto_class_data_;
1038// -------------------------------------------------------------------
1039
1040class OR_PROTO_DLL MPSosConstraint final : public ::google::protobuf::Message
1041/* @@protoc_insertion_point(class_definition:operations_research.MPSosConstraint) */ {
1042 public:
1043 inline MPSosConstraint() : MPSosConstraint(nullptr) {}
1044 ~MPSosConstraint() PROTOBUF_FINAL;
1046#if defined(PROTOBUF_CUSTOM_VTABLE)
1047 void operator delete(MPSosConstraint* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
1048 SharedDtor(*msg);
1049 ::google::protobuf::internal::SizedDelete(msg, sizeof(MPSosConstraint));
1050 }
1051#endif
1052
1053 template <typename = void>
1054 explicit PROTOBUF_CONSTEXPR MPSosConstraint(::google::protobuf::internal::ConstantInitialized);
1055
1056 inline MPSosConstraint(const MPSosConstraint& from) : MPSosConstraint(nullptr, from) {}
1057 inline MPSosConstraint(MPSosConstraint&& from) noexcept
1058 : MPSosConstraint(nullptr, ::std::move(from)) {}
1060 CopyFrom(from);
1061 return *this;
1063 inline MPSosConstraint& operator=(MPSosConstraint&& from) noexcept {
1064 if (this == &from) return *this;
1065 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
1066 InternalSwap(&from);
1067 } else {
1069 }
1070 return *this;
1071 }
1072
1073 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
1074 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1075 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
1076 }
1077 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
1078 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1079 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
1080 }
1081
1082 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
1083 return GetDescriptor();
1084 }
1085 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
1086 return default_instance().GetMetadata().descriptor;
1088 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
1089 return default_instance().GetMetadata().reflection;
1091 static const MPSosConstraint& default_instance() {
1092 return *reinterpret_cast<const MPSosConstraint*>(
1094 }
1095 static constexpr int kIndexInFileMessages = 4;
1096 friend void swap(MPSosConstraint& a, MPSosConstraint& b) { a.Swap(&b); }
1097 inline void Swap(MPSosConstraint* PROTOBUF_NONNULL other) {
1098 if (other == this) return;
1099 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
1100 InternalSwap(other);
1101 } else {
1102 ::google::protobuf::internal::GenericSwap(this, other);
1103 }
1104 }
1105 void UnsafeArenaSwap(MPSosConstraint* PROTOBUF_NONNULL other) {
1106 if (other == this) return;
1107 ABSL_DCHECK(GetArena() == other->GetArena());
1108 InternalSwap(other);
1109 }
1111 // implements Message ----------------------------------------------
1112
1113 MPSosConstraint* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
1114 return ::google::protobuf::Message::DefaultConstruct<MPSosConstraint>(arena);
1115 }
1116 using ::google::protobuf::Message::CopyFrom;
1117 void CopyFrom(const MPSosConstraint& from);
1118 using ::google::protobuf::Message::MergeFrom;
1119 void MergeFrom(const MPSosConstraint& from) { MPSosConstraint::MergeImpl(*this, from); }
1120
1121 private:
1122 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
1123 const ::google::protobuf::MessageLite& from_msg);
1125 public:
1126 bool IsInitialized() const {
1127 return true;
1128 }
1129 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
1130 #if defined(PROTOBUF_CUSTOM_VTABLE)
1131 private:
1132 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
1133 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
1134 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
1135 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
1136
1137 public:
1138 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
1139 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
1140 ::uint8_t* PROTOBUF_NONNULL target,
1141 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1142 return _InternalSerialize(*this, target, stream);
1143 }
1144 #else // PROTOBUF_CUSTOM_VTABLE
1145 ::size_t ByteSizeLong() const final;
1146 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
1147 ::uint8_t* PROTOBUF_NONNULL target,
1148 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
1149 #endif // PROTOBUF_CUSTOM_VTABLE
1150 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
1151
1152 private:
1153 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1154 static void SharedDtor(MessageLite& self);
1155 void InternalSwap(MPSosConstraint* PROTOBUF_NONNULL other);
1156 private:
1157 template <typename T>
1158 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
1159 static ::absl::string_view FullMessageName() { return "operations_research.MPSosConstraint"; }
1160
1161 explicit MPSosConstraint(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1162 MPSosConstraint(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MPSosConstraint& from);
1164 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, MPSosConstraint&& from) noexcept
1165 : MPSosConstraint(arena) {
1166 *this = ::std::move(from);
1167 }
1168 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
1169 static void* PROTOBUF_NONNULL PlacementNew_(
1170 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1171 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1172 static constexpr auto InternalNewImpl_();
1173
1174 public:
1175 static constexpr auto InternalGenerateClassData_();
1176
1177 ::google::protobuf::Metadata GetMetadata() const;
1178 // nested types ----------------------------------------------------
1179 using Type = MPSosConstraint_Type;
1180 static constexpr Type SOS1_DEFAULT = MPSosConstraint_Type_SOS1_DEFAULT;
1181 static constexpr Type SOS2 = MPSosConstraint_Type_SOS2;
1182 static inline bool Type_IsValid(int value) {
1183 return MPSosConstraint_Type_IsValid(value);
1188 static inline const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL Type_descriptor() {
1191 template <typename T>
1192 static inline const ::std::string& Type_Name(T value) {
1194 }
1195 static inline bool Type_Parse(
1196 ::absl::string_view name, Type* PROTOBUF_NONNULL value) {
1197 return MPSosConstraint_Type_Parse(name, value);
1198 }
1199
1200 // accessors -------------------------------------------------------
1201 enum : int {
1204 kTypeFieldNumber = 1,
1205 };
1206 // repeated int32 var_index = 2;
1207 int var_index_size() const;
1208 private:
1209 int _internal_var_index_size() const;
1210
1211 public:
1212 void clear_var_index() ;
1213 ::int32_t var_index(int index) const;
1214 void set_var_index(int index, ::int32_t value);
1215 void add_var_index(::int32_t value);
1216 const ::google::protobuf::RepeatedField<::int32_t>& var_index() const;
1217 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL mutable_var_index();
1218
1219 private:
1220 const ::google::protobuf::RepeatedField<::int32_t>& _internal_var_index() const;
1221 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_var_index();
1222
1223 public:
1224 // repeated double weight = 3;
1225 int weight_size() const;
1226 private:
1227 int _internal_weight_size() const;
1228
1229 public:
1230 void clear_weight() ;
1231 double weight(int index) const;
1232 void set_weight(int index, double value);
1233 void add_weight(double value);
1234 const ::google::protobuf::RepeatedField<double>& weight() const;
1235 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL mutable_weight();
1236
1237 private:
1238 const ::google::protobuf::RepeatedField<double>& _internal_weight() const;
1239 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL _internal_mutable_weight();
1240
1241 public:
1242 // optional .operations_research.MPSosConstraint.Type type = 1 [default = SOS1_DEFAULT];
1243 bool has_type() const;
1244 void clear_type() ;
1247
1248 private:
1249 ::operations_research::MPSosConstraint_Type _internal_type() const;
1250 void _internal_set_type(::operations_research::MPSosConstraint_Type value);
1251
1252 public:
1253 // @@protoc_insertion_point(class_scope:operations_research.MPSosConstraint)
1254 private:
1255 class _Internal;
1256 friend class ::google::protobuf::internal::TcParser;
1257 static const ::google::protobuf::internal::TcParseTable<2, 3,
1258 1, 0,
1259 2>
1260 _table_;
1262 friend class ::google::protobuf::MessageLite;
1263 friend class ::google::protobuf::Arena;
1264 template <typename T>
1265 friend class ::google::protobuf::Arena::InternalHelper;
1266 using InternalArenaConstructable_ = void;
1267 using DestructorSkippable_ = void;
1268 struct Impl_ {
1269 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
1270 inline explicit Impl_(
1271 ::google::protobuf::internal::InternalVisibility visibility,
1272 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1273 inline explicit Impl_(
1274 ::google::protobuf::internal::InternalVisibility visibility,
1275 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
1276 const MPSosConstraint& from_msg);
1277 ::google::protobuf::internal::HasBits<1> _has_bits_;
1278 ::google::protobuf::internal::CachedSize _cached_size_;
1279 ::google::protobuf::RepeatedField<::int32_t> var_index_;
1280 ::google::protobuf::RepeatedField<double> weight_;
1281 int type_;
1282 PROTOBUF_TSAN_DECLARE_MEMBER
1283 };
1284 union { Impl_ _impl_; };
1285 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
1286};
1287
1288OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPSosConstraint_class_data_;
1289// -------------------------------------------------------------------
1291class OR_PROTO_DLL MPSolveInfo final : public ::google::protobuf::Message
1292/* @@protoc_insertion_point(class_definition:operations_research.MPSolveInfo) */ {
1293 public:
1294 inline MPSolveInfo() : MPSolveInfo(nullptr) {}
1295 ~MPSolveInfo() PROTOBUF_FINAL;
1296
1297#if defined(PROTOBUF_CUSTOM_VTABLE)
1298 void operator delete(MPSolveInfo* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
1299 SharedDtor(*msg);
1300 ::google::protobuf::internal::SizedDelete(msg, sizeof(MPSolveInfo));
1301 }
1302#endif
1303
1304 template <typename = void>
1305 explicit PROTOBUF_CONSTEXPR MPSolveInfo(::google::protobuf::internal::ConstantInitialized);
1306
1307 inline MPSolveInfo(const MPSolveInfo& from) : MPSolveInfo(nullptr, from) {}
1308 inline MPSolveInfo(MPSolveInfo&& from) noexcept
1309 : MPSolveInfo(nullptr, ::std::move(from)) {}
1310 inline MPSolveInfo& operator=(const MPSolveInfo& from) {
1312 return *this;
1314 inline MPSolveInfo& operator=(MPSolveInfo&& from) noexcept {
1315 if (this == &from) return *this;
1316 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
1317 InternalSwap(&from);
1318 } else {
1319 CopyFrom(from);
1321 return *this;
1322 }
1323
1324 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
1325 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1326 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
1327 }
1328 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
1329 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1330 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
1331 }
1332
1333 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
1335 }
1336 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
1337 return default_instance().GetMetadata().descriptor;
1338 }
1339 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
1340 return default_instance().GetMetadata().reflection;
1341 }
1343 return *reinterpret_cast<const MPSolveInfo*>(
1346 static constexpr int kIndexInFileMessages = 20;
1347 friend void swap(MPSolveInfo& a, MPSolveInfo& b) { a.Swap(&b); }
1348 inline void Swap(MPSolveInfo* PROTOBUF_NONNULL other) {
1349 if (other == this) return;
1350 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
1351 InternalSwap(other);
1352 } else {
1353 ::google::protobuf::internal::GenericSwap(this, other);
1355 }
1356 void UnsafeArenaSwap(MPSolveInfo* PROTOBUF_NONNULL other) {
1357 if (other == this) return;
1358 ABSL_DCHECK(GetArena() == other->GetArena());
1359 InternalSwap(other);
1360 }
1361
1362 // implements Message ----------------------------------------------
1363
1364 MPSolveInfo* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
1365 return ::google::protobuf::Message::DefaultConstruct<MPSolveInfo>(arena);
1366 }
1367 using ::google::protobuf::Message::CopyFrom;
1368 void CopyFrom(const MPSolveInfo& from);
1369 using ::google::protobuf::Message::MergeFrom;
1370 void MergeFrom(const MPSolveInfo& from) { MPSolveInfo::MergeImpl(*this, from); }
1371
1372 private:
1373 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
1374 const ::google::protobuf::MessageLite& from_msg);
1375
1376 public:
1377 bool IsInitialized() const {
1378 return true;
1379 }
1380 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
1381 #if defined(PROTOBUF_CUSTOM_VTABLE)
1382 private:
1383 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
1384 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
1385 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
1386 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
1387
1388 public:
1389 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
1390 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
1391 ::uint8_t* PROTOBUF_NONNULL target,
1392 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1393 return _InternalSerialize(*this, target, stream);
1394 }
1395 #else // PROTOBUF_CUSTOM_VTABLE
1396 ::size_t ByteSizeLong() const final;
1397 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
1398 ::uint8_t* PROTOBUF_NONNULL target,
1399 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
1400 #endif // PROTOBUF_CUSTOM_VTABLE
1401 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
1402
1403 private:
1404 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1405 static void SharedDtor(MessageLite& self);
1406 void InternalSwap(MPSolveInfo* PROTOBUF_NONNULL other);
1407 private:
1408 template <typename T>
1409 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
1410 static ::absl::string_view FullMessageName() { return "operations_research.MPSolveInfo"; }
1411
1412 explicit MPSolveInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1413 MPSolveInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MPSolveInfo& from);
1415 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, MPSolveInfo&& from) noexcept
1416 : MPSolveInfo(arena) {
1417 *this = ::std::move(from);
1418 }
1419 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
1420 static void* PROTOBUF_NONNULL PlacementNew_(
1421 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1422 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1423 static constexpr auto InternalNewImpl_();
1424
1425 public:
1426 static constexpr auto InternalGenerateClassData_();
1427
1428 ::google::protobuf::Metadata GetMetadata() const;
1429 // nested types ----------------------------------------------------
1430
1431 // accessors -------------------------------------------------------
1432 enum : int {
1433 kSolveWallTimeSecondsFieldNumber = 1,
1434 kSolveUserTimeSecondsFieldNumber = 2,
1435 };
1436 // optional double solve_wall_time_seconds = 1;
1437 bool has_solve_wall_time_seconds() const;
1438 void clear_solve_wall_time_seconds() ;
1441
1442 private:
1443 double _internal_solve_wall_time_seconds() const;
1444 void _internal_set_solve_wall_time_seconds(double value);
1445
1446 public:
1447 // optional double solve_user_time_seconds = 2;
1448 bool has_solve_user_time_seconds() const;
1450 double solve_user_time_seconds() const;
1451 void set_solve_user_time_seconds(double value);
1452
1453 private:
1454 double _internal_solve_user_time_seconds() const;
1455 void _internal_set_solve_user_time_seconds(double value);
1456
1457 public:
1458 // @@protoc_insertion_point(class_scope:operations_research.MPSolveInfo)
1459 private:
1460 class _Internal;
1461 friend class ::google::protobuf::internal::TcParser;
1462 static const ::google::protobuf::internal::TcParseTable<1, 2,
1463 0, 0,
1464 2>
1465 _table_;
1466
1467 friend class ::google::protobuf::MessageLite;
1468 friend class ::google::protobuf::Arena;
1469 template <typename T>
1470 friend class ::google::protobuf::Arena::InternalHelper;
1471 using InternalArenaConstructable_ = void;
1472 using DestructorSkippable_ = void;
1473 struct Impl_ {
1474 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
1475 inline explicit Impl_(
1476 ::google::protobuf::internal::InternalVisibility visibility,
1477 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1478 inline explicit Impl_(
1479 ::google::protobuf::internal::InternalVisibility visibility,
1480 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
1481 const MPSolveInfo& from_msg);
1482 ::google::protobuf::internal::HasBits<1> _has_bits_;
1483 ::google::protobuf::internal::CachedSize _cached_size_;
1484 double solve_wall_time_seconds_;
1485 double solve_user_time_seconds_;
1486 PROTOBUF_TSAN_DECLARE_MEMBER
1487 };
1488 union { Impl_ _impl_; };
1489 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
1490};
1491
1492OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPSolveInfo_class_data_;
1493// -------------------------------------------------------------------
1495class OR_PROTO_DLL MPSolution final : public ::google::protobuf::Message
1496/* @@protoc_insertion_point(class_definition:operations_research.MPSolution) */ {
1497 public:
1498 inline MPSolution() : MPSolution(nullptr) {}
1499 ~MPSolution() PROTOBUF_FINAL;
1500
1501#if defined(PROTOBUF_CUSTOM_VTABLE)
1502 void operator delete(MPSolution* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
1503 SharedDtor(*msg);
1504 ::google::protobuf::internal::SizedDelete(msg, sizeof(MPSolution));
1506#endif
1507
1508 template <typename = void>
1509 explicit PROTOBUF_CONSTEXPR MPSolution(::google::protobuf::internal::ConstantInitialized);
1510
1511 inline MPSolution(const MPSolution& from) : MPSolution(nullptr, from) {}
1512 inline MPSolution(MPSolution&& from) noexcept
1513 : MPSolution(nullptr, ::std::move(from)) {}
1514 inline MPSolution& operator=(const MPSolution& from) {
1515 CopyFrom(from);
1516 return *this;
1517 }
1518 inline MPSolution& operator=(MPSolution&& from) noexcept {
1519 if (this == &from) return *this;
1520 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
1521 InternalSwap(&from);
1522 } else {
1523 CopyFrom(from);
1524 }
1525 return *this;
1526 }
1527
1528 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
1529 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1530 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
1531 }
1532 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
1533 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1534 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
1536
1537 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
1538 return GetDescriptor();
1540 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
1541 return default_instance().GetMetadata().descriptor;
1542 }
1543 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
1544 return default_instance().GetMetadata().reflection;
1545 }
1546 static const MPSolution& default_instance() {
1547 return *reinterpret_cast<const MPSolution*>(
1549 }
1550 static constexpr int kIndexInFileMessages = 19;
1551 friend void swap(MPSolution& a, MPSolution& b) { a.Swap(&b); }
1552 inline void Swap(MPSolution* PROTOBUF_NONNULL other) {
1553 if (other == this) return;
1554 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
1555 InternalSwap(other);
1556 } else {
1557 ::google::protobuf::internal::GenericSwap(this, other);
1560 void UnsafeArenaSwap(MPSolution* PROTOBUF_NONNULL other) {
1561 if (other == this) return;
1562 ABSL_DCHECK(GetArena() == other->GetArena());
1563 InternalSwap(other);
1564 }
1565
1566 // implements Message ----------------------------------------------
1568 MPSolution* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
1569 return ::google::protobuf::Message::DefaultConstruct<MPSolution>(arena);
1570 }
1571 using ::google::protobuf::Message::CopyFrom;
1572 void CopyFrom(const MPSolution& from);
1573 using ::google::protobuf::Message::MergeFrom;
1574 void MergeFrom(const MPSolution& from) { MPSolution::MergeImpl(*this, from); }
1576 private:
1577 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
1578 const ::google::protobuf::MessageLite& from_msg);
1579
1580 public:
1581 bool IsInitialized() const {
1582 return true;
1583 }
1584 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
1585 #if defined(PROTOBUF_CUSTOM_VTABLE)
1586 private:
1587 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
1588 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
1589 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
1590 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
1591
1592 public:
1593 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
1594 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
1595 ::uint8_t* PROTOBUF_NONNULL target,
1596 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1597 return _InternalSerialize(*this, target, stream);
1598 }
1599 #else // PROTOBUF_CUSTOM_VTABLE
1600 ::size_t ByteSizeLong() const final;
1601 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
1602 ::uint8_t* PROTOBUF_NONNULL target,
1603 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
1604 #endif // PROTOBUF_CUSTOM_VTABLE
1605 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
1606
1607 private:
1608 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1609 static void SharedDtor(MessageLite& self);
1610 void InternalSwap(MPSolution* PROTOBUF_NONNULL other);
1611 private:
1612 template <typename T>
1613 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
1614 static ::absl::string_view FullMessageName() { return "operations_research.MPSolution"; }
1615
1616 explicit MPSolution(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1617 MPSolution(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MPSolution& from);
1618 MPSolution(
1619 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, MPSolution&& from) noexcept
1620 : MPSolution(arena) {
1621 *this = ::std::move(from);
1622 }
1623 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
1624 static void* PROTOBUF_NONNULL PlacementNew_(
1625 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1626 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1627 static constexpr auto InternalNewImpl_();
1628
1629 public:
1630 static constexpr auto InternalGenerateClassData_();
1631
1632 ::google::protobuf::Metadata GetMetadata() const;
1633 // nested types ----------------------------------------------------
1634
1635 // accessors -------------------------------------------------------
1636 enum : int {
1637 kVariableValueFieldNumber = 2,
1638 kObjectiveValueFieldNumber = 1,
1639 };
1640 // repeated double variable_value = 2 [packed = true];
1641 int variable_value_size() const;
1642 private:
1643 int _internal_variable_value_size() const;
1645 public:
1646 void clear_variable_value() ;
1647 double variable_value(int index) const;
1648 void set_variable_value(int index, double value);
1649 void add_variable_value(double value);
1650 const ::google::protobuf::RepeatedField<double>& variable_value() const;
1651 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL mutable_variable_value();
1652
1653 private:
1654 const ::google::protobuf::RepeatedField<double>& _internal_variable_value() const;
1655 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL _internal_mutable_variable_value();
1656
1657 public:
1658 // optional double objective_value = 1;
1659 bool has_objective_value() const;
1660 void clear_objective_value() ;
1661 double objective_value() const;
1662 void set_objective_value(double value);
1663
1664 private:
1665 double _internal_objective_value() const;
1666 void _internal_set_objective_value(double value);
1667
1668 public:
1669 // @@protoc_insertion_point(class_scope:operations_research.MPSolution)
1670 private:
1671 class _Internal;
1672 friend class ::google::protobuf::internal::TcParser;
1673 static const ::google::protobuf::internal::TcParseTable<1, 2,
1674 0, 0,
1675 2>
1676 _table_;
1677
1678 friend class ::google::protobuf::MessageLite;
1679 friend class ::google::protobuf::Arena;
1680 template <typename T>
1681 friend class ::google::protobuf::Arena::InternalHelper;
1682 using InternalArenaConstructable_ = void;
1683 using DestructorSkippable_ = void;
1684 struct Impl_ {
1685 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
1686 inline explicit Impl_(
1687 ::google::protobuf::internal::InternalVisibility visibility,
1688 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1689 inline explicit Impl_(
1690 ::google::protobuf::internal::InternalVisibility visibility,
1691 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
1692 const MPSolution& from_msg);
1693 ::google::protobuf::internal::HasBits<1> _has_bits_;
1694 ::google::protobuf::internal::CachedSize _cached_size_;
1695 ::google::protobuf::RepeatedField<double> variable_value_;
1696 double objective_value_;
1697 PROTOBUF_TSAN_DECLARE_MEMBER
1698 };
1699 union { Impl_ _impl_; };
1700 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
1701};
1702
1703OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPSolution_class_data_;
1704// -------------------------------------------------------------------
1705
1706class OR_PROTO_DLL MPQuadraticObjective final : public ::google::protobuf::Message
1707/* @@protoc_insertion_point(class_definition:operations_research.MPQuadraticObjective) */ {
1708 public:
1709 inline MPQuadraticObjective() : MPQuadraticObjective(nullptr) {}
1710 ~MPQuadraticObjective() PROTOBUF_FINAL;
1711
1712#if defined(PROTOBUF_CUSTOM_VTABLE)
1713 void operator delete(MPQuadraticObjective* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
1714 SharedDtor(*msg);
1715 ::google::protobuf::internal::SizedDelete(msg, sizeof(MPQuadraticObjective));
1716 }
1717#endif
1718
1719 template <typename = void>
1720 explicit PROTOBUF_CONSTEXPR MPQuadraticObjective(::google::protobuf::internal::ConstantInitialized);
1721
1722 inline MPQuadraticObjective(const MPQuadraticObjective& from) : MPQuadraticObjective(nullptr, from) {}
1723 inline MPQuadraticObjective(MPQuadraticObjective&& from) noexcept
1724 : MPQuadraticObjective(nullptr, ::std::move(from)) {}
1725 inline MPQuadraticObjective& operator=(const MPQuadraticObjective& from) {
1726 CopyFrom(from);
1727 return *this;
1729 inline MPQuadraticObjective& operator=(MPQuadraticObjective&& from) noexcept {
1730 if (this == &from) return *this;
1731 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
1732 InternalSwap(&from);
1733 } else {
1734 CopyFrom(from);
1735 }
1736 return *this;
1738
1739 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
1740 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1741 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
1742 }
1743 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
1744 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1745 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
1746 }
1748 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
1749 return GetDescriptor();
1750 }
1751 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
1752 return default_instance().GetMetadata().descriptor;
1753 }
1754 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
1755 return default_instance().GetMetadata().reflection;
1757 static const MPQuadraticObjective& default_instance() {
1758 return *reinterpret_cast<const MPQuadraticObjective*>(
1760 }
1761 static constexpr int kIndexInFileMessages = 9;
1763 inline void Swap(MPQuadraticObjective* PROTOBUF_NONNULL other) {
1764 if (other == this) return;
1765 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
1766 InternalSwap(other);
1767 } else {
1768 ::google::protobuf::internal::GenericSwap(this, other);
1771 void UnsafeArenaSwap(MPQuadraticObjective* PROTOBUF_NONNULL other) {
1772 if (other == this) return;
1773 ABSL_DCHECK(GetArena() == other->GetArena());
1774 InternalSwap(other);
1775 }
1776
1777 // implements Message ----------------------------------------------
1778
1779 MPQuadraticObjective* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
1780 return ::google::protobuf::Message::DefaultConstruct<MPQuadraticObjective>(arena);
1781 }
1782 using ::google::protobuf::Message::CopyFrom;
1783 void CopyFrom(const MPQuadraticObjective& from);
1784 using ::google::protobuf::Message::MergeFrom;
1785 void MergeFrom(const MPQuadraticObjective& from) { MPQuadraticObjective::MergeImpl(*this, from); }
1786
1787 private:
1788 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
1789 const ::google::protobuf::MessageLite& from_msg);
1790
1791 public:
1792 bool IsInitialized() const {
1793 return true;
1794 }
1795 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
1796 #if defined(PROTOBUF_CUSTOM_VTABLE)
1797 private:
1798 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
1799 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
1800 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
1801 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
1802
1803 public:
1804 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
1805 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
1806 ::uint8_t* PROTOBUF_NONNULL target,
1807 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1808 return _InternalSerialize(*this, target, stream);
1809 }
1810 #else // PROTOBUF_CUSTOM_VTABLE
1811 ::size_t ByteSizeLong() const final;
1812 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
1813 ::uint8_t* PROTOBUF_NONNULL target,
1814 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
1815 #endif // PROTOBUF_CUSTOM_VTABLE
1816 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
1817
1818 private:
1819 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1820 static void SharedDtor(MessageLite& self);
1821 void InternalSwap(MPQuadraticObjective* PROTOBUF_NONNULL other);
1822 private:
1823 template <typename T>
1825 static ::absl::string_view FullMessageName() { return "operations_research.MPQuadraticObjective"; }
1826
1827 explicit MPQuadraticObjective(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1828 MPQuadraticObjective(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MPQuadraticObjective& from);
1830 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, MPQuadraticObjective&& from) noexcept
1831 : MPQuadraticObjective(arena) {
1832 *this = ::std::move(from);
1833 }
1834 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
1835 static void* PROTOBUF_NONNULL PlacementNew_(
1836 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1837 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1838 static constexpr auto InternalNewImpl_();
1839
1840 public:
1841 static constexpr auto InternalGenerateClassData_();
1842
1843 ::google::protobuf::Metadata GetMetadata() const;
1844 // nested types ----------------------------------------------------
1845
1846 // accessors -------------------------------------------------------
1847 enum : int {
1848 kQvar1IndexFieldNumber = 1,
1849 kQvar2IndexFieldNumber = 2,
1850 kCoefficientFieldNumber = 3,
1851 };
1852 // repeated int32 qvar1_index = 1;
1853 int qvar1_index_size() const;
1854 private:
1855 int _internal_qvar1_index_size() const;
1857 public:
1859 ::int32_t qvar1_index(int index) const;
1860 void set_qvar1_index(int index, ::int32_t value);
1861 void add_qvar1_index(::int32_t value);
1862 const ::google::protobuf::RepeatedField<::int32_t>& qvar1_index() const;
1863 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL mutable_qvar1_index();
1864
1865 private:
1866 const ::google::protobuf::RepeatedField<::int32_t>& _internal_qvar1_index() const;
1867 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_qvar1_index();
1868
1869 public:
1870 // repeated int32 qvar2_index = 2;
1871 int qvar2_index_size() const;
1872 private:
1873 int _internal_qvar2_index_size() const;
1874
1875 public:
1876 void clear_qvar2_index() ;
1877 ::int32_t qvar2_index(int index) const;
1878 void set_qvar2_index(int index, ::int32_t value);
1879 void add_qvar2_index(::int32_t value);
1880 const ::google::protobuf::RepeatedField<::int32_t>& qvar2_index() const;
1881 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL mutable_qvar2_index();
1882
1883 private:
1884 const ::google::protobuf::RepeatedField<::int32_t>& _internal_qvar2_index() const;
1885 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_qvar2_index();
1886
1887 public:
1888 // repeated double coefficient = 3;
1889 int coefficient_size() const;
1890 private:
1891 int _internal_coefficient_size() const;
1892
1893 public:
1894 void clear_coefficient() ;
1895 double coefficient(int index) const;
1896 void set_coefficient(int index, double value);
1897 void add_coefficient(double value);
1898 const ::google::protobuf::RepeatedField<double>& coefficient() const;
1899 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL mutable_coefficient();
1900
1901 private:
1902 const ::google::protobuf::RepeatedField<double>& _internal_coefficient() const;
1903 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL _internal_mutable_coefficient();
1904
1905 public:
1906 // @@protoc_insertion_point(class_scope:operations_research.MPQuadraticObjective)
1907 private:
1908 class _Internal;
1909 friend class ::google::protobuf::internal::TcParser;
1910 static const ::google::protobuf::internal::TcParseTable<2, 3,
1911 0, 0,
1912 2>
1913 _table_;
1914
1915 friend class ::google::protobuf::MessageLite;
1916 friend class ::google::protobuf::Arena;
1917 template <typename T>
1918 friend class ::google::protobuf::Arena::InternalHelper;
1919 using InternalArenaConstructable_ = void;
1920 using DestructorSkippable_ = void;
1921 struct Impl_ {
1922 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
1923 inline explicit Impl_(
1924 ::google::protobuf::internal::InternalVisibility visibility,
1925 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1926 inline explicit Impl_(
1927 ::google::protobuf::internal::InternalVisibility visibility,
1928 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
1929 const MPQuadraticObjective& from_msg);
1930 ::google::protobuf::internal::HasBits<1> _has_bits_;
1931 ::google::protobuf::internal::CachedSize _cached_size_;
1932 ::google::protobuf::RepeatedField<::int32_t> qvar1_index_;
1933 ::google::protobuf::RepeatedField<::int32_t> qvar2_index_;
1934 ::google::protobuf::RepeatedField<double> coefficient_;
1935 PROTOBUF_TSAN_DECLARE_MEMBER
1936 };
1937 union { Impl_ _impl_; };
1938 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
1939};
1940
1941OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPQuadraticObjective_class_data_;
1942// -------------------------------------------------------------------
1943
1944class OR_PROTO_DLL MPQuadraticConstraint final : public ::google::protobuf::Message
1945/* @@protoc_insertion_point(class_definition:operations_research.MPQuadraticConstraint) */ {
1946 public:
1947 inline MPQuadraticConstraint() : MPQuadraticConstraint(nullptr) {}
1948 ~MPQuadraticConstraint() PROTOBUF_FINAL;
1949
1950#if defined(PROTOBUF_CUSTOM_VTABLE)
1951 void operator delete(MPQuadraticConstraint* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
1952 SharedDtor(*msg);
1953 ::google::protobuf::internal::SizedDelete(msg, sizeof(MPQuadraticConstraint));
1954 }
1955#endif
1957 template <typename = void>
1958 explicit PROTOBUF_CONSTEXPR MPQuadraticConstraint(::google::protobuf::internal::ConstantInitialized);
1959
1960 inline MPQuadraticConstraint(const MPQuadraticConstraint& from) : MPQuadraticConstraint(nullptr, from) {}
1961 inline MPQuadraticConstraint(MPQuadraticConstraint&& from) noexcept
1962 : MPQuadraticConstraint(nullptr, ::std::move(from)) {}
1963 inline MPQuadraticConstraint& operator=(const MPQuadraticConstraint& from) {
1964 CopyFrom(from);
1965 return *this;
1966 }
1968 if (this == &from) return *this;
1969 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
1970 InternalSwap(&from);
1971 } else {
1973 }
1974 return *this;
1975 }
1977 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
1978 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1979 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
1980 }
1981 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
1982 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1983 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
1984 }
1985
1986 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
1987 return GetDescriptor();
1988 }
1989 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
1990 return default_instance().GetMetadata().descriptor;
1991 }
1992 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
1993 return default_instance().GetMetadata().reflection;
1994 }
1996 return *reinterpret_cast<const MPQuadraticConstraint*>(
1999 static constexpr int kIndexInFileMessages = 5;
2000 friend void swap(MPQuadraticConstraint& a, MPQuadraticConstraint& b) { a.Swap(&b); }
2001 inline void Swap(MPQuadraticConstraint* PROTOBUF_NONNULL other) {
2002 if (other == this) return;
2003 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
2004 InternalSwap(other);
2005 } else {
2006 ::google::protobuf::internal::GenericSwap(this, other);
2007 }
2009 void UnsafeArenaSwap(MPQuadraticConstraint* PROTOBUF_NONNULL other) {
2010 if (other == this) return;
2011 ABSL_DCHECK(GetArena() == other->GetArena());
2012 InternalSwap(other);
2013 }
2014
2015 // implements Message ----------------------------------------------
2016
2017 MPQuadraticConstraint* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
2018 return ::google::protobuf::Message::DefaultConstruct<MPQuadraticConstraint>(arena);
2019 }
2020 using ::google::protobuf::Message::CopyFrom;
2021 void CopyFrom(const MPQuadraticConstraint& from);
2022 using ::google::protobuf::Message::MergeFrom;
2023 void MergeFrom(const MPQuadraticConstraint& from) { MPQuadraticConstraint::MergeImpl(*this, from); }
2024
2025 private:
2026 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
2027 const ::google::protobuf::MessageLite& from_msg);
2028
2029 public:
2030 bool IsInitialized() const {
2031 return true;
2033 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
2034 #if defined(PROTOBUF_CUSTOM_VTABLE)
2035 private:
2036 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
2037 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
2038 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
2039 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
2040
2041 public:
2042 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
2043 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
2044 ::uint8_t* PROTOBUF_NONNULL target,
2045 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
2046 return _InternalSerialize(*this, target, stream);
2047 }
2048 #else // PROTOBUF_CUSTOM_VTABLE
2049 ::size_t ByteSizeLong() const final;
2050 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
2051 ::uint8_t* PROTOBUF_NONNULL target,
2052 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
2053 #endif // PROTOBUF_CUSTOM_VTABLE
2054 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
2055
2056 private:
2057 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
2058 static void SharedDtor(MessageLite& self);
2059 void InternalSwap(MPQuadraticConstraint* PROTOBUF_NONNULL other);
2060 private:
2061 template <typename T>
2062 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
2063 static ::absl::string_view FullMessageName() { return "operations_research.MPQuadraticConstraint"; }
2064
2065 explicit MPQuadraticConstraint(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
2066 MPQuadraticConstraint(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MPQuadraticConstraint& from);
2068 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, MPQuadraticConstraint&& from) noexcept
2069 : MPQuadraticConstraint(arena) {
2070 *this = ::std::move(from);
2071 }
2072 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
2073 static void* PROTOBUF_NONNULL PlacementNew_(
2074 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
2075 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
2076 static constexpr auto InternalNewImpl_();
2077
2078 public:
2079 static constexpr auto InternalGenerateClassData_();
2080
2081 ::google::protobuf::Metadata GetMetadata() const;
2082 // nested types ----------------------------------------------------
2083
2084 // accessors -------------------------------------------------------
2085 enum : int {
2086 kVarIndexFieldNumber = 1,
2087 kCoefficientFieldNumber = 2,
2088 kQvar1IndexFieldNumber = 3,
2089 kQvar2IndexFieldNumber = 4,
2090 kQcoefficientFieldNumber = 5,
2091 kLowerBoundFieldNumber = 6,
2092 kUpperBoundFieldNumber = 7,
2093 };
2094 // repeated int32 var_index = 1;
2095 int var_index_size() const;
2096 private:
2097 int _internal_var_index_size() const;
2099 public:
2101 ::int32_t var_index(int index) const;
2102 void set_var_index(int index, ::int32_t value);
2103 void add_var_index(::int32_t value);
2104 const ::google::protobuf::RepeatedField<::int32_t>& var_index() const;
2105 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL mutable_var_index();
2106
2107 private:
2108 const ::google::protobuf::RepeatedField<::int32_t>& _internal_var_index() const;
2109 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_var_index();
2110
2111 public:
2112 // repeated double coefficient = 2;
2113 int coefficient_size() const;
2114 private:
2115 int _internal_coefficient_size() const;
2116
2117 public:
2118 void clear_coefficient() ;
2119 double coefficient(int index) const;
2120 void set_coefficient(int index, double value);
2121 void add_coefficient(double value);
2122 const ::google::protobuf::RepeatedField<double>& coefficient() const;
2123 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL mutable_coefficient();
2124
2125 private:
2126 const ::google::protobuf::RepeatedField<double>& _internal_coefficient() const;
2127 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL _internal_mutable_coefficient();
2128
2129 public:
2130 // repeated int32 qvar1_index = 3;
2131 int qvar1_index_size() const;
2132 private:
2133 int _internal_qvar1_index_size() const;
2134
2135 public:
2136 void clear_qvar1_index() ;
2137 ::int32_t qvar1_index(int index) const;
2138 void set_qvar1_index(int index, ::int32_t value);
2139 void add_qvar1_index(::int32_t value);
2140 const ::google::protobuf::RepeatedField<::int32_t>& qvar1_index() const;
2141 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL mutable_qvar1_index();
2142
2143 private:
2144 const ::google::protobuf::RepeatedField<::int32_t>& _internal_qvar1_index() const;
2145 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_qvar1_index();
2146
2147 public:
2148 // repeated int32 qvar2_index = 4;
2149 int qvar2_index_size() const;
2150 private:
2151 int _internal_qvar2_index_size() const;
2152
2153 public:
2154 void clear_qvar2_index() ;
2155 ::int32_t qvar2_index(int index) const;
2156 void set_qvar2_index(int index, ::int32_t value);
2157 void add_qvar2_index(::int32_t value);
2158 const ::google::protobuf::RepeatedField<::int32_t>& qvar2_index() const;
2159 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL mutable_qvar2_index();
2160
2161 private:
2162 const ::google::protobuf::RepeatedField<::int32_t>& _internal_qvar2_index() const;
2163 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_qvar2_index();
2164
2165 public:
2166 // repeated double qcoefficient = 5;
2167 int qcoefficient_size() const;
2168 private:
2169 int _internal_qcoefficient_size() const;
2170
2171 public:
2172 void clear_qcoefficient() ;
2173 double qcoefficient(int index) const;
2174 void set_qcoefficient(int index, double value);
2175 void add_qcoefficient(double value);
2176 const ::google::protobuf::RepeatedField<double>& qcoefficient() const;
2177 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL mutable_qcoefficient();
2178
2179 private:
2180 const ::google::protobuf::RepeatedField<double>& _internal_qcoefficient() const;
2181 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL _internal_mutable_qcoefficient();
2182
2183 public:
2184 // optional double lower_bound = 6 [default = -inf];
2185 bool has_lower_bound() const;
2186 void clear_lower_bound() ;
2187 double lower_bound() const;
2188 void set_lower_bound(double value);
2189
2190 private:
2191 double _internal_lower_bound() const;
2192 void _internal_set_lower_bound(double value);
2193
2194 public:
2195 // optional double upper_bound = 7 [default = inf];
2196 bool has_upper_bound() const;
2197 void clear_upper_bound() ;
2198 double upper_bound() const;
2199 void set_upper_bound(double value);
2200
2201 private:
2202 double _internal_upper_bound() const;
2203 void _internal_set_upper_bound(double value);
2204
2205 public:
2206 // @@protoc_insertion_point(class_scope:operations_research.MPQuadraticConstraint)
2207 private:
2208 class _Internal;
2209 friend class ::google::protobuf::internal::TcParser;
2210 static const ::google::protobuf::internal::TcParseTable<3, 7,
2211 0, 0,
2212 2>
2213 _table_;
2214
2215 friend class ::google::protobuf::MessageLite;
2216 friend class ::google::protobuf::Arena;
2217 template <typename T>
2218 friend class ::google::protobuf::Arena::InternalHelper;
2219 using InternalArenaConstructable_ = void;
2220 using DestructorSkippable_ = void;
2221 struct Impl_ {
2222 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
2223 inline explicit Impl_(
2224 ::google::protobuf::internal::InternalVisibility visibility,
2225 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
2226 inline explicit Impl_(
2227 ::google::protobuf::internal::InternalVisibility visibility,
2228 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
2229 const MPQuadraticConstraint& from_msg);
2230 ::google::protobuf::internal::HasBits<1> _has_bits_;
2231 ::google::protobuf::internal::CachedSize _cached_size_;
2232 ::google::protobuf::RepeatedField<::int32_t> var_index_;
2233 ::google::protobuf::RepeatedField<double> coefficient_;
2234 ::google::protobuf::RepeatedField<::int32_t> qvar1_index_;
2235 ::google::protobuf::RepeatedField<::int32_t> qvar2_index_;
2236 ::google::protobuf::RepeatedField<double> qcoefficient_;
2237 double lower_bound_;
2238 double upper_bound_;
2239 PROTOBUF_TSAN_DECLARE_MEMBER
2240 };
2241 union { Impl_ _impl_; };
2242 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
2243};
2244
2245OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPQuadraticConstraint_class_data_;
2246// -------------------------------------------------------------------
2247
2248class OR_PROTO_DLL MPModelProto_Annotation final : public ::google::protobuf::Message
2249/* @@protoc_insertion_point(class_definition:operations_research.MPModelProto.Annotation) */ {
2250 public:
2252 ~MPModelProto_Annotation() PROTOBUF_FINAL;
2253
2254#if defined(PROTOBUF_CUSTOM_VTABLE)
2255 void operator delete(MPModelProto_Annotation* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
2256 SharedDtor(*msg);
2257 ::google::protobuf::internal::SizedDelete(msg, sizeof(MPModelProto_Annotation));
2259#endif
2260
2261 template <typename = void>
2262 explicit PROTOBUF_CONSTEXPR MPModelProto_Annotation(::google::protobuf::internal::ConstantInitialized);
2263
2264 inline MPModelProto_Annotation(const MPModelProto_Annotation& from) : MPModelProto_Annotation(nullptr, from) {}
2265 inline MPModelProto_Annotation(MPModelProto_Annotation&& from) noexcept
2266 : MPModelProto_Annotation(nullptr, ::std::move(from)) {}
2267 inline MPModelProto_Annotation& operator=(const MPModelProto_Annotation& from) {
2268 CopyFrom(from);
2269 return *this;
2270 }
2271 inline MPModelProto_Annotation& operator=(MPModelProto_Annotation&& from) noexcept {
2272 if (this == &from) return *this;
2273 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
2274 InternalSwap(&from);
2275 } else {
2276 CopyFrom(from);
2278 return *this;
2279 }
2280
2281 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
2282 ABSL_ATTRIBUTE_LIFETIME_BOUND {
2283 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
2284 }
2285 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
2286 ABSL_ATTRIBUTE_LIFETIME_BOUND {
2287 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
2288 }
2289
2290 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
2292 }
2293 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
2294 return default_instance().GetMetadata().descriptor;
2296 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
2297 return default_instance().GetMetadata().reflection;
2298 }
2299 static const MPModelProto_Annotation& default_instance() {
2300 return *reinterpret_cast<const MPModelProto_Annotation*>(
2302 }
2303 static constexpr int kIndexInFileMessages = 11;
2304 friend void swap(MPModelProto_Annotation& a, MPModelProto_Annotation& b) { a.Swap(&b); }
2305 inline void Swap(MPModelProto_Annotation* PROTOBUF_NONNULL other) {
2306 if (other == this) return;
2307 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
2308 InternalSwap(other);
2309 } else {
2310 ::google::protobuf::internal::GenericSwap(this, other);
2311 }
2312 }
2313 void UnsafeArenaSwap(MPModelProto_Annotation* PROTOBUF_NONNULL other) {
2314 if (other == this) return;
2315 ABSL_DCHECK(GetArena() == other->GetArena());
2316 InternalSwap(other);
2317 }
2318
2319 // implements Message ----------------------------------------------
2320
2321 MPModelProto_Annotation* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
2322 return ::google::protobuf::Message::DefaultConstruct<MPModelProto_Annotation>(arena);
2324 using ::google::protobuf::Message::CopyFrom;
2325 void CopyFrom(const MPModelProto_Annotation& from);
2326 using ::google::protobuf::Message::MergeFrom;
2327 void MergeFrom(const MPModelProto_Annotation& from) { MPModelProto_Annotation::MergeImpl(*this, from); }
2328
2329 private:
2330 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
2331 const ::google::protobuf::MessageLite& from_msg);
2332
2333 public:
2334 bool IsInitialized() const {
2335 return true;
2336 }
2337 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
2338 #if defined(PROTOBUF_CUSTOM_VTABLE)
2339 private:
2340 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
2341 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
2342 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
2343 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
2345 public:
2346 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
2347 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
2348 ::uint8_t* PROTOBUF_NONNULL target,
2349 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
2350 return _InternalSerialize(*this, target, stream);
2351 }
2352 #else // PROTOBUF_CUSTOM_VTABLE
2353 ::size_t ByteSizeLong() const final;
2354 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
2355 ::uint8_t* PROTOBUF_NONNULL target,
2356 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
2357 #endif // PROTOBUF_CUSTOM_VTABLE
2358 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
2359
2360 private:
2361 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
2362 static void SharedDtor(MessageLite& self);
2363 void InternalSwap(MPModelProto_Annotation* PROTOBUF_NONNULL other);
2364 private:
2365 template <typename T>
2366 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
2367 static ::absl::string_view FullMessageName() { return "operations_research.MPModelProto.Annotation"; }
2369 explicit MPModelProto_Annotation(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
2370 MPModelProto_Annotation(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MPModelProto_Annotation& from);
2372 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, MPModelProto_Annotation&& from) noexcept
2373 : MPModelProto_Annotation(arena) {
2374 *this = ::std::move(from);
2375 }
2376 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
2377 static void* PROTOBUF_NONNULL PlacementNew_(
2378 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
2379 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
2380 static constexpr auto InternalNewImpl_();
2381
2382 public:
2383 static constexpr auto InternalGenerateClassData_();
2384
2385 ::google::protobuf::Metadata GetMetadata() const;
2386 // nested types ----------------------------------------------------
2387 using TargetType = MPModelProto_Annotation_TargetType;
2388 static constexpr TargetType VARIABLE_DEFAULT = MPModelProto_Annotation_TargetType_VARIABLE_DEFAULT;
2389 static constexpr TargetType CONSTRAINT = MPModelProto_Annotation_TargetType_CONSTRAINT;
2390 static constexpr TargetType GENERAL_CONSTRAINT = MPModelProto_Annotation_TargetType_GENERAL_CONSTRAINT;
2391 static inline bool TargetType_IsValid(int value) {
2393 }
2394 static constexpr TargetType TargetType_MIN = MPModelProto_Annotation_TargetType_TargetType_MIN;
2395 static constexpr TargetType TargetType_MAX = MPModelProto_Annotation_TargetType_TargetType_MAX;
2396 static constexpr int TargetType_ARRAYSIZE = MPModelProto_Annotation_TargetType_TargetType_ARRAYSIZE;
2397 static inline const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL TargetType_descriptor() {
2400 template <typename T>
2401 static inline const ::std::string& TargetType_Name(T value) {
2403 }
2404 static inline bool TargetType_Parse(
2405 ::absl::string_view name, TargetType* PROTOBUF_NONNULL value) {
2408
2409 // accessors -------------------------------------------------------
2410 enum : int {
2416 };
2417 // optional string target_name = 3;
2418 bool has_target_name() const;
2419 void clear_target_name() ;
2420 const ::std::string& target_name() const;
2421 template <typename Arg_ = const ::std::string&, typename... Args_>
2422 void set_target_name(Arg_&& arg, Args_... args);
2423 ::std::string* PROTOBUF_NONNULL mutable_target_name();
2424 [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_target_name();
2425 void set_allocated_target_name(::std::string* PROTOBUF_NULLABLE value);
2426
2427 private:
2428 const ::std::string& _internal_target_name() const;
2429 PROTOBUF_ALWAYS_INLINE void _internal_set_target_name(const ::std::string& value);
2430 ::std::string* PROTOBUF_NONNULL _internal_mutable_target_name();
2431
2432 public:
2433 // optional string payload_key = 4;
2434 bool has_payload_key() const;
2435 void clear_payload_key() ;
2436 const ::std::string& payload_key() const;
2437 template <typename Arg_ = const ::std::string&, typename... Args_>
2438 void set_payload_key(Arg_&& arg, Args_... args);
2439 ::std::string* PROTOBUF_NONNULL mutable_payload_key();
2440 [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_payload_key();
2441 void set_allocated_payload_key(::std::string* PROTOBUF_NULLABLE value);
2442
2443 private:
2444 const ::std::string& _internal_payload_key() const;
2445 PROTOBUF_ALWAYS_INLINE void _internal_set_payload_key(const ::std::string& value);
2446 ::std::string* PROTOBUF_NONNULL _internal_mutable_payload_key();
2447
2448 public:
2449 // optional string payload_value = 5;
2450 bool has_payload_value() const;
2451 void clear_payload_value() ;
2452 const ::std::string& payload_value() const;
2453 template <typename Arg_ = const ::std::string&, typename... Args_>
2454 void set_payload_value(Arg_&& arg, Args_... args);
2455 ::std::string* PROTOBUF_NONNULL mutable_payload_value();
2456 [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_payload_value();
2457 void set_allocated_payload_value(::std::string* PROTOBUF_NULLABLE value);
2458
2459 private:
2460 const ::std::string& _internal_payload_value() const;
2461 PROTOBUF_ALWAYS_INLINE void _internal_set_payload_value(const ::std::string& value);
2462 ::std::string* PROTOBUF_NONNULL _internal_mutable_payload_value();
2463
2464 public:
2465 // optional .operations_research.MPModelProto.Annotation.TargetType target_type = 1;
2466 bool has_target_type() const;
2467 void clear_target_type() ;
2470
2471 private:
2473 void _internal_set_target_type(::operations_research::MPModelProto_Annotation_TargetType value);
2474
2475 public:
2476 // optional int32 target_index = 2;
2477 bool has_target_index() const;
2478 void clear_target_index() ;
2479 ::int32_t target_index() const;
2480 void set_target_index(::int32_t value);
2481
2482 private:
2483 ::int32_t _internal_target_index() const;
2484 void _internal_set_target_index(::int32_t value);
2485
2486 public:
2487 // @@protoc_insertion_point(class_scope:operations_research.MPModelProto.Annotation)
2488 private:
2489 class _Internal;
2490 friend class ::google::protobuf::internal::TcParser;
2491 static const ::google::protobuf::internal::TcParseTable<3, 5,
2492 1, 0,
2493 2>
2494 _table_;
2495
2496 friend class ::google::protobuf::MessageLite;
2497 friend class ::google::protobuf::Arena;
2498 template <typename T>
2499 friend class ::google::protobuf::Arena::InternalHelper;
2500 using InternalArenaConstructable_ = void;
2501 using DestructorSkippable_ = void;
2502 struct Impl_ {
2503 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
2504 inline explicit Impl_(
2505 ::google::protobuf::internal::InternalVisibility visibility,
2506 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
2507 inline explicit Impl_(
2508 ::google::protobuf::internal::InternalVisibility visibility,
2509 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
2510 const MPModelProto_Annotation& from_msg);
2511 ::google::protobuf::internal::HasBits<1> _has_bits_;
2512 ::google::protobuf::internal::CachedSize _cached_size_;
2513 ::google::protobuf::internal::ArenaStringPtr target_name_;
2514 ::google::protobuf::internal::ArenaStringPtr payload_key_;
2515 ::google::protobuf::internal::ArenaStringPtr payload_value_;
2516 int target_type_;
2517 ::int32_t target_index_;
2518 PROTOBUF_TSAN_DECLARE_MEMBER
2519 };
2520 union { Impl_ _impl_; };
2521 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
2522};
2523
2524OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPModelProto_Annotation_class_data_;
2525// -------------------------------------------------------------------
2526
2527class OR_PROTO_DLL MPConstraintProto final : public ::google::protobuf::Message
2528/* @@protoc_insertion_point(class_definition:operations_research.MPConstraintProto) */ {
2529 public:
2531 ~MPConstraintProto() PROTOBUF_FINAL;
2532
2533#if defined(PROTOBUF_CUSTOM_VTABLE)
2534 void operator delete(MPConstraintProto* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
2535 SharedDtor(*msg);
2536 ::google::protobuf::internal::SizedDelete(msg, sizeof(MPConstraintProto));
2537 }
2538#endif
2539
2540 template <typename = void>
2541 explicit PROTOBUF_CONSTEXPR MPConstraintProto(::google::protobuf::internal::ConstantInitialized);
2542
2543 inline MPConstraintProto(const MPConstraintProto& from) : MPConstraintProto(nullptr, from) {}
2544 inline MPConstraintProto(MPConstraintProto&& from) noexcept
2545 : MPConstraintProto(nullptr, ::std::move(from)) {}
2546 inline MPConstraintProto& operator=(const MPConstraintProto& from) {
2547 CopyFrom(from);
2548 return *this;
2549 }
2550 inline MPConstraintProto& operator=(MPConstraintProto&& from) noexcept {
2551 if (this == &from) return *this;
2552 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
2553 InternalSwap(&from);
2554 } else {
2556 }
2557 return *this;
2558 }
2559
2560 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
2561 ABSL_ATTRIBUTE_LIFETIME_BOUND {
2562 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
2563 }
2564 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
2565 ABSL_ATTRIBUTE_LIFETIME_BOUND {
2566 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
2567 }
2568
2569 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
2570 return GetDescriptor();
2572 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
2573 return default_instance().GetMetadata().descriptor;
2574 }
2575 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
2576 return default_instance().GetMetadata().reflection;
2577 }
2578 static const MPConstraintProto& default_instance() {
2579 return *reinterpret_cast<const MPConstraintProto*>(
2581 }
2582 static constexpr int kIndexInFileMessages = 1;
2583 friend void swap(MPConstraintProto& a, MPConstraintProto& b) { a.Swap(&b); }
2584 inline void Swap(MPConstraintProto* PROTOBUF_NONNULL other) {
2585 if (other == this) return;
2586 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
2587 InternalSwap(other);
2588 } else {
2589 ::google::protobuf::internal::GenericSwap(this, other);
2590 }
2591 }
2592 void UnsafeArenaSwap(MPConstraintProto* PROTOBUF_NONNULL other) {
2593 if (other == this) return;
2594 ABSL_DCHECK(GetArena() == other->GetArena());
2595 InternalSwap(other);
2596 }
2597
2598 // implements Message ----------------------------------------------
2599
2600 MPConstraintProto* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
2601 return ::google::protobuf::Message::DefaultConstruct<MPConstraintProto>(arena);
2602 }
2603 using ::google::protobuf::Message::CopyFrom;
2604 void CopyFrom(const MPConstraintProto& from);
2605 using ::google::protobuf::Message::MergeFrom;
2606 void MergeFrom(const MPConstraintProto& from) { MPConstraintProto::MergeImpl(*this, from); }
2607
2608 private:
2609 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
2610 const ::google::protobuf::MessageLite& from_msg);
2612 public:
2613 bool IsInitialized() const {
2614 return true;
2615 }
2616 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
2617 #if defined(PROTOBUF_CUSTOM_VTABLE)
2618 private:
2619 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
2620 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
2621 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
2622 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
2623
2624 public:
2625 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
2626 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
2627 ::uint8_t* PROTOBUF_NONNULL target,
2628 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
2629 return _InternalSerialize(*this, target, stream);
2630 }
2631 #else // PROTOBUF_CUSTOM_VTABLE
2632 ::size_t ByteSizeLong() const final;
2633 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
2634 ::uint8_t* PROTOBUF_NONNULL target,
2635 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
2636 #endif // PROTOBUF_CUSTOM_VTABLE
2637 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
2638
2639 private:
2640 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
2641 static void SharedDtor(MessageLite& self);
2642 void InternalSwap(MPConstraintProto* PROTOBUF_NONNULL other);
2643 private:
2644 template <typename T>
2645 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
2646 static ::absl::string_view FullMessageName() { return "operations_research.MPConstraintProto"; }
2647
2648 explicit MPConstraintProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
2649 MPConstraintProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MPConstraintProto& from);
2651 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, MPConstraintProto&& from) noexcept
2652 : MPConstraintProto(arena) {
2653 *this = ::std::move(from);
2654 }
2655 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
2656 static void* PROTOBUF_NONNULL PlacementNew_(
2657 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
2658 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
2659 static constexpr auto InternalNewImpl_();
2660
2661 public:
2662 static constexpr auto InternalGenerateClassData_();
2663
2664 ::google::protobuf::Metadata GetMetadata() const;
2665 // nested types ----------------------------------------------------
2666
2667 // accessors -------------------------------------------------------
2668 enum : int {
2669 kVarIndexFieldNumber = 6,
2670 kCoefficientFieldNumber = 7,
2671 kNameFieldNumber = 4,
2672 kIsLazyFieldNumber = 5,
2673 kLowerBoundFieldNumber = 2,
2674 kUpperBoundFieldNumber = 3,
2675 };
2676 // repeated int32 var_index = 6 [packed = true];
2677 int var_index_size() const;
2678 private:
2679 int _internal_var_index_size() const;
2681 public:
2683 ::int32_t var_index(int index) const;
2684 void set_var_index(int index, ::int32_t value);
2685 void add_var_index(::int32_t value);
2686 const ::google::protobuf::RepeatedField<::int32_t>& var_index() const;
2687 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL mutable_var_index();
2688
2689 private:
2690 const ::google::protobuf::RepeatedField<::int32_t>& _internal_var_index() const;
2691 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_var_index();
2692
2693 public:
2694 // repeated double coefficient = 7 [packed = true];
2695 int coefficient_size() const;
2696 private:
2697 int _internal_coefficient_size() const;
2698
2699 public:
2700 void clear_coefficient() ;
2701 double coefficient(int index) const;
2702 void set_coefficient(int index, double value);
2703 void add_coefficient(double value);
2704 const ::google::protobuf::RepeatedField<double>& coefficient() const;
2705 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL mutable_coefficient();
2706
2707 private:
2708 const ::google::protobuf::RepeatedField<double>& _internal_coefficient() const;
2709 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL _internal_mutable_coefficient();
2710
2711 public:
2712 // optional string name = 4 [default = ""];
2713 bool has_name() const;
2714 void clear_name() ;
2715 const ::std::string& name() const;
2716 template <typename Arg_ = const ::std::string&, typename... Args_>
2717 void set_name(Arg_&& arg, Args_... args);
2718 ::std::string* PROTOBUF_NONNULL mutable_name();
2719 [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_name();
2720 void set_allocated_name(::std::string* PROTOBUF_NULLABLE value);
2721
2722 private:
2723 const ::std::string& _internal_name() const;
2724 PROTOBUF_ALWAYS_INLINE void _internal_set_name(const ::std::string& value);
2725 ::std::string* PROTOBUF_NONNULL _internal_mutable_name();
2726
2727 public:
2728 // optional bool is_lazy = 5 [default = false];
2729 bool has_is_lazy() const;
2730 void clear_is_lazy() ;
2731 bool is_lazy() const;
2732 void set_is_lazy(bool value);
2733
2734 private:
2735 bool _internal_is_lazy() const;
2736 void _internal_set_is_lazy(bool value);
2737
2738 public:
2739 // optional double lower_bound = 2 [default = -inf];
2740 bool has_lower_bound() const;
2741 void clear_lower_bound() ;
2742 double lower_bound() const;
2743 void set_lower_bound(double value);
2744
2745 private:
2746 double _internal_lower_bound() const;
2747 void _internal_set_lower_bound(double value);
2748
2749 public:
2750 // optional double upper_bound = 3 [default = inf];
2751 bool has_upper_bound() const;
2752 void clear_upper_bound() ;
2753 double upper_bound() const;
2754 void set_upper_bound(double value);
2755
2756 private:
2757 double _internal_upper_bound() const;
2758 void _internal_set_upper_bound(double value);
2759
2760 public:
2761 // @@protoc_insertion_point(class_scope:operations_research.MPConstraintProto)
2762 private:
2763 class _Internal;
2764 friend class ::google::protobuf::internal::TcParser;
2765 static const ::google::protobuf::internal::TcParseTable<3, 6,
2766 0, 0,
2767 2>
2768 _table_;
2769
2770 friend class ::google::protobuf::MessageLite;
2771 friend class ::google::protobuf::Arena;
2772 template <typename T>
2773 friend class ::google::protobuf::Arena::InternalHelper;
2774 using InternalArenaConstructable_ = void;
2775 using DestructorSkippable_ = void;
2776 struct Impl_ {
2777 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
2778 inline explicit Impl_(
2779 ::google::protobuf::internal::InternalVisibility visibility,
2780 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
2781 inline explicit Impl_(
2782 ::google::protobuf::internal::InternalVisibility visibility,
2783 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
2784 const MPConstraintProto& from_msg);
2785 ::google::protobuf::internal::HasBits<1> _has_bits_;
2786 ::google::protobuf::internal::CachedSize _cached_size_;
2787 ::google::protobuf::RepeatedField<::int32_t> var_index_;
2788 ::google::protobuf::internal::CachedSize _var_index_cached_byte_size_;
2789 ::google::protobuf::RepeatedField<double> coefficient_;
2790 ::google::protobuf::internal::ArenaStringPtr name_;
2791 bool is_lazy_;
2792 double lower_bound_;
2793 double upper_bound_;
2794 PROTOBUF_TSAN_DECLARE_MEMBER
2795 };
2796 union { Impl_ _impl_; };
2797 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
2798};
2799
2800OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPConstraintProto_class_data_;
2801// -------------------------------------------------------------------
2802
2803class OR_PROTO_DLL MPArrayWithConstantConstraint final : public ::google::protobuf::Message
2804/* @@protoc_insertion_point(class_definition:operations_research.MPArrayWithConstantConstraint) */ {
2805 public:
2806 inline MPArrayWithConstantConstraint() : MPArrayWithConstantConstraint(nullptr) {}
2809#if defined(PROTOBUF_CUSTOM_VTABLE)
2810 void operator delete(MPArrayWithConstantConstraint* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
2811 SharedDtor(*msg);
2812 ::google::protobuf::internal::SizedDelete(msg, sizeof(MPArrayWithConstantConstraint));
2813 }
2814#endif
2816 template <typename = void>
2817 explicit PROTOBUF_CONSTEXPR MPArrayWithConstantConstraint(::google::protobuf::internal::ConstantInitialized);
2821 : MPArrayWithConstantConstraint(nullptr, ::std::move(from)) {}
2822 inline MPArrayWithConstantConstraint& operator=(const MPArrayWithConstantConstraint& from) {
2823 CopyFrom(from);
2824 return *this;
2825 }
2826 inline MPArrayWithConstantConstraint& operator=(MPArrayWithConstantConstraint&& from) noexcept {
2827 if (this == &from) return *this;
2828 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
2829 InternalSwap(&from);
2830 } else {
2833 return *this;
2835
2836 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
2837 ABSL_ATTRIBUTE_LIFETIME_BOUND {
2838 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
2839 }
2840 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
2841 ABSL_ATTRIBUTE_LIFETIME_BOUND {
2842 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
2843 }
2844
2845 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
2846 return GetDescriptor();
2847 }
2848 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
2849 return default_instance().GetMetadata().descriptor;
2850 }
2851 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
2852 return default_instance().GetMetadata().reflection;
2853 }
2854 static const MPArrayWithConstantConstraint& default_instance() {
2855 return *reinterpret_cast<const MPArrayWithConstantConstraint*>(
2858 static constexpr int kIndexInFileMessages = 8;
2859 friend void swap(MPArrayWithConstantConstraint& a, MPArrayWithConstantConstraint& b) { a.Swap(&b); }
2860 inline void Swap(MPArrayWithConstantConstraint* PROTOBUF_NONNULL other) {
2861 if (other == this) return;
2862 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
2863 InternalSwap(other);
2864 } else {
2865 ::google::protobuf::internal::GenericSwap(this, other);
2867 }
2868 void UnsafeArenaSwap(MPArrayWithConstantConstraint* PROTOBUF_NONNULL other) {
2869 if (other == this) return;
2870 ABSL_DCHECK(GetArena() == other->GetArena());
2871 InternalSwap(other);
2873
2874 // implements Message ----------------------------------------------
2875
2876 MPArrayWithConstantConstraint* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
2877 return ::google::protobuf::Message::DefaultConstruct<MPArrayWithConstantConstraint>(arena);
2878 }
2879 using ::google::protobuf::Message::CopyFrom;
2881 using ::google::protobuf::Message::MergeFrom;
2882 void MergeFrom(const MPArrayWithConstantConstraint& from) { MPArrayWithConstantConstraint::MergeImpl(*this, from); }
2883
2884 private:
2885 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
2886 const ::google::protobuf::MessageLite& from_msg);
2887
2888 public:
2889 bool IsInitialized() const {
2890 return true;
2891 }
2892 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
2893 #if defined(PROTOBUF_CUSTOM_VTABLE)
2894 private:
2895 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
2896 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
2897 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
2898 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
2899
2900 public:
2901 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
2902 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
2903 ::uint8_t* PROTOBUF_NONNULL target,
2904 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
2905 return _InternalSerialize(*this, target, stream);
2906 }
2907 #else // PROTOBUF_CUSTOM_VTABLE
2908 ::size_t ByteSizeLong() const final;
2909 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
2910 ::uint8_t* PROTOBUF_NONNULL target,
2911 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
2912 #endif // PROTOBUF_CUSTOM_VTABLE
2913 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
2914
2915 private:
2916 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
2917 static void SharedDtor(MessageLite& self);
2918 void InternalSwap(MPArrayWithConstantConstraint* PROTOBUF_NONNULL other);
2919 private:
2920 template <typename T>
2921 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
2922 static ::absl::string_view FullMessageName() { return "operations_research.MPArrayWithConstantConstraint"; }
2923
2924 explicit MPArrayWithConstantConstraint(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
2925 MPArrayWithConstantConstraint(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MPArrayWithConstantConstraint& from);
2927 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, MPArrayWithConstantConstraint&& from) noexcept
2929 *this = ::std::move(from);
2930 }
2931 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
2932 static void* PROTOBUF_NONNULL PlacementNew_(
2933 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
2934 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
2935 static constexpr auto InternalNewImpl_();
2936
2937 public:
2938 static constexpr auto InternalGenerateClassData_();
2939
2940 ::google::protobuf::Metadata GetMetadata() const;
2941 // nested types ----------------------------------------------------
2942
2943 // accessors -------------------------------------------------------
2944 enum : int {
2945 kVarIndexFieldNumber = 1,
2946 kConstantFieldNumber = 2,
2947 kResultantVarIndexFieldNumber = 3,
2948 };
2949 // repeated int32 var_index = 1;
2950 int var_index_size() const;
2951 private:
2952 int _internal_var_index_size() const;
2953
2954 public:
2955 void clear_var_index() ;
2956 ::int32_t var_index(int index) const;
2957 void set_var_index(int index, ::int32_t value);
2958 void add_var_index(::int32_t value);
2959 const ::google::protobuf::RepeatedField<::int32_t>& var_index() const;
2960 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL mutable_var_index();
2961
2962 private:
2963 const ::google::protobuf::RepeatedField<::int32_t>& _internal_var_index() const;
2964 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_var_index();
2965
2966 public:
2967 // optional double constant = 2;
2968 bool has_constant() const;
2969 void clear_constant() ;
2970 double constant() const;
2971 void set_constant(double value);
2972
2973 private:
2974 double _internal_constant() const;
2975 void _internal_set_constant(double value);
2976
2977 public:
2978 // optional int32 resultant_var_index = 3;
2979 bool has_resultant_var_index() const;
2981 ::int32_t resultant_var_index() const;
2982 void set_resultant_var_index(::int32_t value);
2983
2984 private:
2985 ::int32_t _internal_resultant_var_index() const;
2986 void _internal_set_resultant_var_index(::int32_t value);
2987
2988 public:
2989 // @@protoc_insertion_point(class_scope:operations_research.MPArrayWithConstantConstraint)
2990 private:
2991 class _Internal;
2992 friend class ::google::protobuf::internal::TcParser;
2993 static const ::google::protobuf::internal::TcParseTable<2, 3,
2994 0, 0,
2995 2>
2996 _table_;
2997
2998 friend class ::google::protobuf::MessageLite;
2999 friend class ::google::protobuf::Arena;
3000 template <typename T>
3001 friend class ::google::protobuf::Arena::InternalHelper;
3002 using InternalArenaConstructable_ = void;
3003 using DestructorSkippable_ = void;
3004 struct Impl_ {
3005 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
3006 inline explicit Impl_(
3007 ::google::protobuf::internal::InternalVisibility visibility,
3008 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
3009 inline explicit Impl_(
3010 ::google::protobuf::internal::InternalVisibility visibility,
3011 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
3012 const MPArrayWithConstantConstraint& from_msg);
3013 ::google::protobuf::internal::HasBits<1> _has_bits_;
3014 ::google::protobuf::internal::CachedSize _cached_size_;
3015 ::google::protobuf::RepeatedField<::int32_t> var_index_;
3016 double constant_;
3017 ::int32_t resultant_var_index_;
3018 PROTOBUF_TSAN_DECLARE_MEMBER
3019 };
3020 union { Impl_ _impl_; };
3021 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
3022};
3023
3024OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPArrayWithConstantConstraint_class_data_;
3025// -------------------------------------------------------------------
3026
3027class OR_PROTO_DLL MPArrayConstraint final : public ::google::protobuf::Message
3028/* @@protoc_insertion_point(class_definition:operations_research.MPArrayConstraint) */ {
3029 public:
3030 inline MPArrayConstraint() : MPArrayConstraint(nullptr) {}
3031 ~MPArrayConstraint() PROTOBUF_FINAL;
3033#if defined(PROTOBUF_CUSTOM_VTABLE)
3034 void operator delete(MPArrayConstraint* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
3035 SharedDtor(*msg);
3036 ::google::protobuf::internal::SizedDelete(msg, sizeof(MPArrayConstraint));
3037 }
3038#endif
3039
3040 template <typename = void>
3041 explicit PROTOBUF_CONSTEXPR MPArrayConstraint(::google::protobuf::internal::ConstantInitialized);
3042
3043 inline MPArrayConstraint(const MPArrayConstraint& from) : MPArrayConstraint(nullptr, from) {}
3044 inline MPArrayConstraint(MPArrayConstraint&& from) noexcept
3045 : MPArrayConstraint(nullptr, ::std::move(from)) {}
3046 inline MPArrayConstraint& operator=(const MPArrayConstraint& from) {
3047 CopyFrom(from);
3048 return *this;
3049 }
3050 inline MPArrayConstraint& operator=(MPArrayConstraint&& from) noexcept {
3051 if (this == &from) return *this;
3052 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
3053 InternalSwap(&from);
3054 } else {
3055 CopyFrom(from);
3057 return *this;
3058 }
3060 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
3061 ABSL_ATTRIBUTE_LIFETIME_BOUND {
3062 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
3064 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
3065 ABSL_ATTRIBUTE_LIFETIME_BOUND {
3066 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
3067 }
3068
3069 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
3070 return GetDescriptor();
3071 }
3072 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
3073 return default_instance().GetMetadata().descriptor;
3074 }
3075 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
3076 return default_instance().GetMetadata().reflection;
3078 static const MPArrayConstraint& default_instance() {
3079 return *reinterpret_cast<const MPArrayConstraint*>(
3081 }
3082 static constexpr int kIndexInFileMessages = 7;
3083 friend void swap(MPArrayConstraint& a, MPArrayConstraint& b) { a.Swap(&b); }
3084 inline void Swap(MPArrayConstraint* PROTOBUF_NONNULL other) {
3085 if (other == this) return;
3086 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
3087 InternalSwap(other);
3088 } else {
3089 ::google::protobuf::internal::GenericSwap(this, other);
3090 }
3092 void UnsafeArenaSwap(MPArrayConstraint* PROTOBUF_NONNULL other) {
3093 if (other == this) return;
3094 ABSL_DCHECK(GetArena() == other->GetArena());
3095 InternalSwap(other);
3098 // implements Message ----------------------------------------------
3099
3100 MPArrayConstraint* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
3101 return ::google::protobuf::Message::DefaultConstruct<MPArrayConstraint>(arena);
3102 }
3103 using ::google::protobuf::Message::CopyFrom;
3104 void CopyFrom(const MPArrayConstraint& from);
3105 using ::google::protobuf::Message::MergeFrom;
3106 void MergeFrom(const MPArrayConstraint& from) { MPArrayConstraint::MergeImpl(*this, from); }
3107
3108 private:
3109 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
3110 const ::google::protobuf::MessageLite& from_msg);
3111
3112 public:
3113 bool IsInitialized() const {
3114 return true;
3115 }
3116 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
3117 #if defined(PROTOBUF_CUSTOM_VTABLE)
3118 private:
3119 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
3120 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
3121 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
3122 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
3123
3124 public:
3125 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
3126 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
3127 ::uint8_t* PROTOBUF_NONNULL target,
3128 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
3129 return _InternalSerialize(*this, target, stream);
3130 }
3131 #else // PROTOBUF_CUSTOM_VTABLE
3132 ::size_t ByteSizeLong() const final;
3133 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
3134 ::uint8_t* PROTOBUF_NONNULL target,
3135 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
3136 #endif // PROTOBUF_CUSTOM_VTABLE
3137 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
3138
3139 private:
3140 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
3141 static void SharedDtor(MessageLite& self);
3142 void InternalSwap(MPArrayConstraint* PROTOBUF_NONNULL other);
3143 private:
3144 template <typename T>
3145 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
3146 static ::absl::string_view FullMessageName() { return "operations_research.MPArrayConstraint"; }
3147
3148 explicit MPArrayConstraint(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
3149 MPArrayConstraint(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MPArrayConstraint& from);
3151 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, MPArrayConstraint&& from) noexcept
3152 : MPArrayConstraint(arena) {
3153 *this = ::std::move(from);
3154 }
3155 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
3156 static void* PROTOBUF_NONNULL PlacementNew_(
3157 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
3158 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
3159 static constexpr auto InternalNewImpl_();
3160
3161 public:
3162 static constexpr auto InternalGenerateClassData_();
3163
3164 ::google::protobuf::Metadata GetMetadata() const;
3165 // nested types ----------------------------------------------------
3166
3167 // accessors -------------------------------------------------------
3168 enum : int {
3169 kVarIndexFieldNumber = 1,
3170 kResultantVarIndexFieldNumber = 2,
3171 };
3172 // repeated int32 var_index = 1;
3173 int var_index_size() const;
3174 private:
3175 int _internal_var_index_size() const;
3176
3177 public:
3178 void clear_var_index() ;
3179 ::int32_t var_index(int index) const;
3180 void set_var_index(int index, ::int32_t value);
3181 void add_var_index(::int32_t value);
3182 const ::google::protobuf::RepeatedField<::int32_t>& var_index() const;
3183 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL mutable_var_index();
3184
3185 private:
3186 const ::google::protobuf::RepeatedField<::int32_t>& _internal_var_index() const;
3187 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_var_index();
3188
3189 public:
3190 // optional int32 resultant_var_index = 2;
3191 bool has_resultant_var_index() const;
3193 ::int32_t resultant_var_index() const;
3194 void set_resultant_var_index(::int32_t value);
3195
3196 private:
3197 ::int32_t _internal_resultant_var_index() const;
3198 void _internal_set_resultant_var_index(::int32_t value);
3199
3200 public:
3201 // @@protoc_insertion_point(class_scope:operations_research.MPArrayConstraint)
3202 private:
3203 class _Internal;
3204 friend class ::google::protobuf::internal::TcParser;
3205 static const ::google::protobuf::internal::TcParseTable<1, 2,
3206 0, 0,
3207 2>
3208 _table_;
3209
3210 friend class ::google::protobuf::MessageLite;
3211 friend class ::google::protobuf::Arena;
3212 template <typename T>
3213 friend class ::google::protobuf::Arena::InternalHelper;
3214 using InternalArenaConstructable_ = void;
3215 using DestructorSkippable_ = void;
3216 struct Impl_ {
3217 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
3218 inline explicit Impl_(
3219 ::google::protobuf::internal::InternalVisibility visibility,
3220 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
3221 inline explicit Impl_(
3222 ::google::protobuf::internal::InternalVisibility visibility,
3223 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
3224 const MPArrayConstraint& from_msg);
3225 ::google::protobuf::internal::HasBits<1> _has_bits_;
3226 ::google::protobuf::internal::CachedSize _cached_size_;
3227 ::google::protobuf::RepeatedField<::int32_t> var_index_;
3228 ::int32_t resultant_var_index_;
3229 PROTOBUF_TSAN_DECLARE_MEMBER
3230 };
3231 union { Impl_ _impl_; };
3232 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
3233};
3234
3235OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPArrayConstraint_class_data_;
3236// -------------------------------------------------------------------
3237
3238class OR_PROTO_DLL MPAbsConstraint final : public ::google::protobuf::Message
3239/* @@protoc_insertion_point(class_definition:operations_research.MPAbsConstraint) */ {
3240 public:
3241 inline MPAbsConstraint() : MPAbsConstraint(nullptr) {}
3242 ~MPAbsConstraint() PROTOBUF_FINAL;
3243
3244#if defined(PROTOBUF_CUSTOM_VTABLE)
3245 void operator delete(MPAbsConstraint* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
3246 SharedDtor(*msg);
3247 ::google::protobuf::internal::SizedDelete(msg, sizeof(MPAbsConstraint));
3248 }
3249#endif
3250
3251 template <typename = void>
3252 explicit PROTOBUF_CONSTEXPR MPAbsConstraint(::google::protobuf::internal::ConstantInitialized);
3253
3254 inline MPAbsConstraint(const MPAbsConstraint& from) : MPAbsConstraint(nullptr, from) {}
3255 inline MPAbsConstraint(MPAbsConstraint&& from) noexcept
3256 : MPAbsConstraint(nullptr, ::std::move(from)) {}
3257 inline MPAbsConstraint& operator=(const MPAbsConstraint& from) {
3258 CopyFrom(from);
3259 return *this;
3260 }
3261 inline MPAbsConstraint& operator=(MPAbsConstraint&& from) noexcept {
3262 if (this == &from) return *this;
3263 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
3264 InternalSwap(&from);
3265 } else {
3267 }
3268 return *this;
3270
3271 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
3272 ABSL_ATTRIBUTE_LIFETIME_BOUND {
3273 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
3274 }
3275 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
3276 ABSL_ATTRIBUTE_LIFETIME_BOUND {
3277 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
3278 }
3279
3280 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
3281 return GetDescriptor();
3282 }
3283 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
3284 return default_instance().GetMetadata().descriptor;
3286 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
3287 return default_instance().GetMetadata().reflection;
3288 }
3290 return *reinterpret_cast<const MPAbsConstraint*>(
3292 }
3293 static constexpr int kIndexInFileMessages = 6;
3294 friend void swap(MPAbsConstraint& a, MPAbsConstraint& b) { a.Swap(&b); }
3295 inline void Swap(MPAbsConstraint* PROTOBUF_NONNULL other) {
3296 if (other == this) return;
3297 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
3298 InternalSwap(other);
3299 } else {
3300 ::google::protobuf::internal::GenericSwap(this, other);
3301 }
3302 }
3303 void UnsafeArenaSwap(MPAbsConstraint* PROTOBUF_NONNULL other) {
3304 if (other == this) return;
3305 ABSL_DCHECK(GetArena() == other->GetArena());
3306 InternalSwap(other);
3309 // implements Message ----------------------------------------------
3310
3311 MPAbsConstraint* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
3312 return ::google::protobuf::Message::DefaultConstruct<MPAbsConstraint>(arena);
3313 }
3314 using ::google::protobuf::Message::CopyFrom;
3315 void CopyFrom(const MPAbsConstraint& from);
3316 using ::google::protobuf::Message::MergeFrom;
3317 void MergeFrom(const MPAbsConstraint& from) { MPAbsConstraint::MergeImpl(*this, from); }
3318
3319 private:
3320 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
3321 const ::google::protobuf::MessageLite& from_msg);
3322
3323 public:
3324 bool IsInitialized() const {
3325 return true;
3326 }
3327 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
3328 #if defined(PROTOBUF_CUSTOM_VTABLE)
3329 private:
3330 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
3331 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
3332 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
3333 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
3334
3335 public:
3336 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
3337 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
3338 ::uint8_t* PROTOBUF_NONNULL target,
3339 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
3340 return _InternalSerialize(*this, target, stream);
3341 }
3342 #else // PROTOBUF_CUSTOM_VTABLE
3343 ::size_t ByteSizeLong() const final;
3344 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
3345 ::uint8_t* PROTOBUF_NONNULL target,
3346 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
3347 #endif // PROTOBUF_CUSTOM_VTABLE
3348 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
3349
3350 private:
3351 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
3352 static void SharedDtor(MessageLite& self);
3353 void InternalSwap(MPAbsConstraint* PROTOBUF_NONNULL other);
3354 private:
3355 template <typename T>
3356 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
3357 static ::absl::string_view FullMessageName() { return "operations_research.MPAbsConstraint"; }
3358
3359 explicit MPAbsConstraint(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
3360 MPAbsConstraint(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MPAbsConstraint& from);
3361 MPAbsConstraint(
3362 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, MPAbsConstraint&& from) noexcept
3363 : MPAbsConstraint(arena) {
3364 *this = ::std::move(from);
3365 }
3366 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
3367 static void* PROTOBUF_NONNULL PlacementNew_(
3368 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
3369 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
3370 static constexpr auto InternalNewImpl_();
3371
3372 public:
3373 static constexpr auto InternalGenerateClassData_();
3374
3375 ::google::protobuf::Metadata GetMetadata() const;
3376 // nested types ----------------------------------------------------
3377
3378 // accessors -------------------------------------------------------
3379 enum : int {
3380 kVarIndexFieldNumber = 1,
3381 kResultantVarIndexFieldNumber = 2,
3382 };
3383 // optional int32 var_index = 1;
3384 bool has_var_index() const;
3385 void clear_var_index() ;
3386 ::int32_t var_index() const;
3387 void set_var_index(::int32_t value);
3388
3389 private:
3390 ::int32_t _internal_var_index() const;
3391 void _internal_set_var_index(::int32_t value);
3392
3393 public:
3394 // optional int32 resultant_var_index = 2;
3397 ::int32_t resultant_var_index() const;
3398 void set_resultant_var_index(::int32_t value);
3399
3400 private:
3401 ::int32_t _internal_resultant_var_index() const;
3402 void _internal_set_resultant_var_index(::int32_t value);
3403
3404 public:
3405 // @@protoc_insertion_point(class_scope:operations_research.MPAbsConstraint)
3406 private:
3407 class _Internal;
3408 friend class ::google::protobuf::internal::TcParser;
3409 static const ::google::protobuf::internal::TcParseTable<1, 2,
3410 0, 0,
3411 2>
3412 _table_;
3413
3414 friend class ::google::protobuf::MessageLite;
3415 friend class ::google::protobuf::Arena;
3416 template <typename T>
3417 friend class ::google::protobuf::Arena::InternalHelper;
3418 using InternalArenaConstructable_ = void;
3419 using DestructorSkippable_ = void;
3420 struct Impl_ {
3421 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
3422 inline explicit Impl_(
3423 ::google::protobuf::internal::InternalVisibility visibility,
3424 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
3425 inline explicit Impl_(
3426 ::google::protobuf::internal::InternalVisibility visibility,
3427 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
3428 const MPAbsConstraint& from_msg);
3429 ::google::protobuf::internal::HasBits<1> _has_bits_;
3430 ::google::protobuf::internal::CachedSize _cached_size_;
3431 ::int32_t var_index_;
3432 ::int32_t resultant_var_index_;
3433 PROTOBUF_TSAN_DECLARE_MEMBER
3434 };
3435 union { Impl_ _impl_; };
3436 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
3437};
3438
3439OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPAbsConstraint_class_data_;
3440// -------------------------------------------------------------------
3441
3442class OR_PROTO_DLL MPSolverCommonParameters final : public ::google::protobuf::Message
3443/* @@protoc_insertion_point(class_definition:operations_research.MPSolverCommonParameters) */ {
3444 public:
3445 inline MPSolverCommonParameters() : MPSolverCommonParameters(nullptr) {}
3446 ~MPSolverCommonParameters() PROTOBUF_FINAL;
3447
3448#if defined(PROTOBUF_CUSTOM_VTABLE)
3449 void operator delete(MPSolverCommonParameters* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
3450 SharedDtor(*msg);
3451 ::google::protobuf::internal::SizedDelete(msg, sizeof(MPSolverCommonParameters));
3452 }
3453#endif
3454
3455 template <typename = void>
3456 explicit PROTOBUF_CONSTEXPR MPSolverCommonParameters(::google::protobuf::internal::ConstantInitialized);
3458 inline MPSolverCommonParameters(const MPSolverCommonParameters& from) : MPSolverCommonParameters(nullptr, from) {}
3460 : MPSolverCommonParameters(nullptr, ::std::move(from)) {}
3461 inline MPSolverCommonParameters& operator=(const MPSolverCommonParameters& from) {
3462 CopyFrom(from);
3463 return *this;
3464 }
3465 inline MPSolverCommonParameters& operator=(MPSolverCommonParameters&& from) noexcept {
3466 if (this == &from) return *this;
3467 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
3468 InternalSwap(&from);
3469 } else {
3470 CopyFrom(from);
3472 return *this;
3475 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
3476 ABSL_ATTRIBUTE_LIFETIME_BOUND {
3477 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
3478 }
3479 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
3480 ABSL_ATTRIBUTE_LIFETIME_BOUND {
3481 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
3482 }
3483
3484 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
3485 return GetDescriptor();
3486 }
3487 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
3488 return default_instance().GetMetadata().descriptor;
3489 }
3490 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
3491 return default_instance().GetMetadata().reflection;
3492 }
3493 static const MPSolverCommonParameters& default_instance() {
3494 return *reinterpret_cast<const MPSolverCommonParameters*>(
3496 }
3497 static constexpr int kIndexInFileMessages = 14;
3498 friend void swap(MPSolverCommonParameters& a, MPSolverCommonParameters& b) { a.Swap(&b); }
3499 inline void Swap(MPSolverCommonParameters* PROTOBUF_NONNULL other) {
3500 if (other == this) return;
3501 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
3502 InternalSwap(other);
3503 } else {
3504 ::google::protobuf::internal::GenericSwap(this, other);
3506 }
3507 void UnsafeArenaSwap(MPSolverCommonParameters* PROTOBUF_NONNULL other) {
3508 if (other == this) return;
3509 ABSL_DCHECK(GetArena() == other->GetArena());
3510 InternalSwap(other);
3511 }
3513 // implements Message ----------------------------------------------
3515 MPSolverCommonParameters* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
3516 return ::google::protobuf::Message::DefaultConstruct<MPSolverCommonParameters>(arena);
3517 }
3518 using ::google::protobuf::Message::CopyFrom;
3519 void CopyFrom(const MPSolverCommonParameters& from);
3520 using ::google::protobuf::Message::MergeFrom;
3521 void MergeFrom(const MPSolverCommonParameters& from) { MPSolverCommonParameters::MergeImpl(*this, from); }
3523 private:
3524 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
3525 const ::google::protobuf::MessageLite& from_msg);
3526
3527 public:
3528 bool IsInitialized() const {
3529 return true;
3531 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
3532 #if defined(PROTOBUF_CUSTOM_VTABLE)
3533 private:
3534 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
3535 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
3536 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
3537 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
3538
3539 public:
3540 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
3541 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
3542 ::uint8_t* PROTOBUF_NONNULL target,
3543 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
3544 return _InternalSerialize(*this, target, stream);
3545 }
3546 #else // PROTOBUF_CUSTOM_VTABLE
3547 ::size_t ByteSizeLong() const final;
3548 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
3549 ::uint8_t* PROTOBUF_NONNULL target,
3550 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
3551 #endif // PROTOBUF_CUSTOM_VTABLE
3552 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
3553
3554 private:
3555 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
3556 static void SharedDtor(MessageLite& self);
3557 void InternalSwap(MPSolverCommonParameters* PROTOBUF_NONNULL other);
3558 private:
3559 template <typename T>
3560 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
3561 static ::absl::string_view FullMessageName() { return "operations_research.MPSolverCommonParameters"; }
3562
3563 explicit MPSolverCommonParameters(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
3564 MPSolverCommonParameters(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MPSolverCommonParameters& from);
3565 MPSolverCommonParameters(
3566 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, MPSolverCommonParameters&& from) noexcept
3568 *this = ::std::move(from);
3569 }
3570 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
3571 static void* PROTOBUF_NONNULL PlacementNew_(
3572 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
3573 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
3574 static constexpr auto InternalNewImpl_();
3575
3576 public:
3577 static constexpr auto InternalGenerateClassData_();
3578
3579 ::google::protobuf::Metadata GetMetadata() const;
3580 // nested types ----------------------------------------------------
3581 using LPAlgorithmValues = MPSolverCommonParameters_LPAlgorithmValues;
3582 static constexpr LPAlgorithmValues LP_ALGO_UNSPECIFIED = MPSolverCommonParameters_LPAlgorithmValues_LP_ALGO_UNSPECIFIED;
3583 static constexpr LPAlgorithmValues LP_ALGO_DUAL = MPSolverCommonParameters_LPAlgorithmValues_LP_ALGO_DUAL;
3584 static constexpr LPAlgorithmValues LP_ALGO_PRIMAL = MPSolverCommonParameters_LPAlgorithmValues_LP_ALGO_PRIMAL;
3585 static constexpr LPAlgorithmValues LP_ALGO_BARRIER = MPSolverCommonParameters_LPAlgorithmValues_LP_ALGO_BARRIER;
3586 static inline bool LPAlgorithmValues_IsValid(int value) {
3588 }
3589 static constexpr LPAlgorithmValues LPAlgorithmValues_MIN = MPSolverCommonParameters_LPAlgorithmValues_LPAlgorithmValues_MIN;
3590 static constexpr LPAlgorithmValues LPAlgorithmValues_MAX = MPSolverCommonParameters_LPAlgorithmValues_LPAlgorithmValues_MAX;
3591 static constexpr int LPAlgorithmValues_ARRAYSIZE = MPSolverCommonParameters_LPAlgorithmValues_LPAlgorithmValues_ARRAYSIZE;
3592 static inline const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL LPAlgorithmValues_descriptor() {
3593 return MPSolverCommonParameters_LPAlgorithmValues_descriptor();
3594 }
3595 template <typename T>
3596 static inline const ::std::string& LPAlgorithmValues_Name(T value) {
3599 static inline bool LPAlgorithmValues_Parse(
3600 ::absl::string_view name, LPAlgorithmValues* PROTOBUF_NONNULL value) {
3604 // accessors -------------------------------------------------------
3605 enum : int {
3612 };
3613 // optional .operations_research.OptionalDouble relative_mip_gap = 1;
3615 void clear_relative_mip_gap() ;
3616 const ::operations_research::OptionalDouble& relative_mip_gap() const;
3617 [[nodiscard]] ::operations_research::OptionalDouble* PROTOBUF_NULLABLE release_relative_mip_gap();
3623 private:
3624 const ::operations_research::OptionalDouble& _internal_relative_mip_gap() const;
3625 ::operations_research::OptionalDouble* PROTOBUF_NONNULL _internal_mutable_relative_mip_gap();
3627 public:
3628 // optional .operations_research.OptionalDouble primal_tolerance = 2;
3629 bool has_primal_tolerance() const;
3630 void clear_primal_tolerance() ;
3631 const ::operations_research::OptionalDouble& primal_tolerance() const;
3632 [[nodiscard]] ::operations_research::OptionalDouble* PROTOBUF_NULLABLE release_primal_tolerance();
3637
3638 private:
3639 const ::operations_research::OptionalDouble& _internal_primal_tolerance() const;
3640 ::operations_research::OptionalDouble* PROTOBUF_NONNULL _internal_mutable_primal_tolerance();
3641
3642 public:
3643 // optional .operations_research.OptionalDouble dual_tolerance = 3;
3644 bool has_dual_tolerance() const;
3645 void clear_dual_tolerance() ;
3646 const ::operations_research::OptionalDouble& dual_tolerance() const;
3647 [[nodiscard]] ::operations_research::OptionalDouble* PROTOBUF_NULLABLE release_dual_tolerance();
3652
3653 private:
3654 const ::operations_research::OptionalDouble& _internal_dual_tolerance() const;
3655 ::operations_research::OptionalDouble* PROTOBUF_NONNULL _internal_mutable_dual_tolerance();
3656
3657 public:
3658 // optional .operations_research.MPSolverCommonParameters.LPAlgorithmValues lp_algorithm = 4 [default = LP_ALGO_UNSPECIFIED];
3659 bool has_lp_algorithm() const;
3660 void clear_lp_algorithm() ;
3663
3664 private:
3666 void _internal_set_lp_algorithm(::operations_research::MPSolverCommonParameters_LPAlgorithmValues value);
3667
3668 public:
3669 // optional .operations_research.OptionalBoolean presolve = 5 [default = BOOL_UNSPECIFIED];
3670 bool has_presolve() const;
3671 void clear_presolve() ;
3674
3675 private:
3676 ::operations_research::OptionalBoolean _internal_presolve() const;
3677 void _internal_set_presolve(::operations_research::OptionalBoolean value);
3678
3679 public:
3680 // optional .operations_research.OptionalBoolean scaling = 7 [default = BOOL_UNSPECIFIED];
3681 bool has_scaling() const;
3682 void clear_scaling() ;
3685
3686 private:
3687 ::operations_research::OptionalBoolean _internal_scaling() const;
3688 void _internal_set_scaling(::operations_research::OptionalBoolean value);
3689
3690 public:
3691 // @@protoc_insertion_point(class_scope:operations_research.MPSolverCommonParameters)
3692 private:
3693 class _Internal;
3694 friend class ::google::protobuf::internal::TcParser;
3695 static const ::google::protobuf::internal::TcParseTable<3, 6,
3696 6, 0,
3697 2>
3698 _table_;
3699
3700 friend class ::google::protobuf::MessageLite;
3701 friend class ::google::protobuf::Arena;
3702 template <typename T>
3703 friend class ::google::protobuf::Arena::InternalHelper;
3704 using InternalArenaConstructable_ = void;
3705 using DestructorSkippable_ = void;
3706 struct Impl_ {
3707 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
3708 inline explicit Impl_(
3709 ::google::protobuf::internal::InternalVisibility visibility,
3710 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
3711 inline explicit Impl_(
3712 ::google::protobuf::internal::InternalVisibility visibility,
3713 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
3714 const MPSolverCommonParameters& from_msg);
3715 ::google::protobuf::internal::HasBits<1> _has_bits_;
3716 ::google::protobuf::internal::CachedSize _cached_size_;
3717 ::operations_research::OptionalDouble* PROTOBUF_NULLABLE relative_mip_gap_;
3718 ::operations_research::OptionalDouble* PROTOBUF_NULLABLE primal_tolerance_;
3719 ::operations_research::OptionalDouble* PROTOBUF_NULLABLE dual_tolerance_;
3720 int lp_algorithm_;
3721 int presolve_;
3722 int scaling_;
3723 PROTOBUF_TSAN_DECLARE_MEMBER
3724 };
3725 union { Impl_ _impl_; };
3726 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
3727};
3728
3729OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPSolverCommonParameters_class_data_;
3730// -------------------------------------------------------------------
3731
3732class OR_PROTO_DLL MPSolutionResponse final : public ::google::protobuf::Message
3733/* @@protoc_insertion_point(class_definition:operations_research.MPSolutionResponse) */ {
3734 public:
3735 inline MPSolutionResponse() : MPSolutionResponse(nullptr) {}
3736 ~MPSolutionResponse() PROTOBUF_FINAL;
3737
3738#if defined(PROTOBUF_CUSTOM_VTABLE)
3739 void operator delete(MPSolutionResponse* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
3740 SharedDtor(*msg);
3741 ::google::protobuf::internal::SizedDelete(msg, sizeof(MPSolutionResponse));
3742 }
3743#endif
3744
3745 template <typename = void>
3746 explicit PROTOBUF_CONSTEXPR MPSolutionResponse(::google::protobuf::internal::ConstantInitialized);
3747
3748 inline MPSolutionResponse(const MPSolutionResponse& from) : MPSolutionResponse(nullptr, from) {}
3749 inline MPSolutionResponse(MPSolutionResponse&& from) noexcept
3750 : MPSolutionResponse(nullptr, ::std::move(from)) {}
3752 CopyFrom(from);
3753 return *this;
3754 }
3755 inline MPSolutionResponse& operator=(MPSolutionResponse&& from) noexcept {
3756 if (this == &from) return *this;
3757 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
3758 InternalSwap(&from);
3759 } else {
3760 CopyFrom(from);
3761 }
3762 return *this;
3763 }
3765 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
3766 ABSL_ATTRIBUTE_LIFETIME_BOUND {
3767 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
3768 }
3769 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
3770 ABSL_ATTRIBUTE_LIFETIME_BOUND {
3771 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
3772 }
3773
3774 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
3775 return GetDescriptor();
3776 }
3777 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
3778 return default_instance().GetMetadata().descriptor;
3779 }
3780 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
3781 return default_instance().GetMetadata().reflection;
3782 }
3783 static const MPSolutionResponse& default_instance() {
3784 return *reinterpret_cast<const MPSolutionResponse*>(
3786 }
3787 static constexpr int kIndexInFileMessages = 21;
3788 friend void swap(MPSolutionResponse& a, MPSolutionResponse& b) { a.Swap(&b); }
3789 inline void Swap(MPSolutionResponse* PROTOBUF_NONNULL other) {
3790 if (other == this) return;
3791 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
3792 InternalSwap(other);
3793 } else {
3794 ::google::protobuf::internal::GenericSwap(this, other);
3795 }
3797 void UnsafeArenaSwap(MPSolutionResponse* PROTOBUF_NONNULL other) {
3798 if (other == this) return;
3799 ABSL_DCHECK(GetArena() == other->GetArena());
3800 InternalSwap(other);
3801 }
3802
3803 // implements Message ----------------------------------------------
3805 MPSolutionResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
3806 return ::google::protobuf::Message::DefaultConstruct<MPSolutionResponse>(arena);
3807 }
3808 using ::google::protobuf::Message::CopyFrom;
3809 void CopyFrom(const MPSolutionResponse& from);
3810 using ::google::protobuf::Message::MergeFrom;
3811 void MergeFrom(const MPSolutionResponse& from) { MPSolutionResponse::MergeImpl(*this, from); }
3812
3813 private:
3814 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
3815 const ::google::protobuf::MessageLite& from_msg);
3816
3817 public:
3818 bool IsInitialized() const {
3819 return true;
3820 }
3821 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
3822 #if defined(PROTOBUF_CUSTOM_VTABLE)
3823 private:
3824 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
3825 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
3826 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
3827 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
3828
3829 public:
3830 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
3831 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
3832 ::uint8_t* PROTOBUF_NONNULL target,
3833 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
3834 return _InternalSerialize(*this, target, stream);
3835 }
3836 #else // PROTOBUF_CUSTOM_VTABLE
3837 ::size_t ByteSizeLong() const final;
3838 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
3839 ::uint8_t* PROTOBUF_NONNULL target,
3840 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
3841 #endif // PROTOBUF_CUSTOM_VTABLE
3842 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
3843
3844 private:
3845 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
3846 static void SharedDtor(MessageLite& self);
3847 void InternalSwap(MPSolutionResponse* PROTOBUF_NONNULL other);
3848 private:
3849 template <typename T>
3850 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
3851 static ::absl::string_view FullMessageName() { return "operations_research.MPSolutionResponse"; }
3852
3853 explicit MPSolutionResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
3854 MPSolutionResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MPSolutionResponse& from);
3855 MPSolutionResponse(
3856 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, MPSolutionResponse&& from) noexcept
3857 : MPSolutionResponse(arena) {
3858 *this = ::std::move(from);
3859 }
3860 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
3861 static void* PROTOBUF_NONNULL PlacementNew_(
3862 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
3863 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
3864 static constexpr auto InternalNewImpl_();
3865
3866 public:
3867 static constexpr auto InternalGenerateClassData_();
3868
3869 ::google::protobuf::Metadata GetMetadata() const;
3870 // nested types ----------------------------------------------------
3871
3872 // accessors -------------------------------------------------------
3873 enum : int {
3874 kVariableValueFieldNumber = 3,
3875 kDualValueFieldNumber = 4,
3876 kReducedCostFieldNumber = 6,
3877 kAdditionalSolutionsFieldNumber = 8,
3878 kStatusStrFieldNumber = 7,
3879 kSolverSpecificInfoFieldNumber = 11,
3880 kSolveInfoFieldNumber = 10,
3881 kObjectiveValueFieldNumber = 2,
3882 kBestObjectiveBoundFieldNumber = 5,
3883 kStatusFieldNumber = 1,
3884 };
3885 // repeated double variable_value = 3 [packed = true];
3886 int variable_value_size() const;
3887 private:
3888 int _internal_variable_value_size() const;
3889
3890 public:
3892 double variable_value(int index) const;
3893 void set_variable_value(int index, double value);
3894 void add_variable_value(double value);
3895 const ::google::protobuf::RepeatedField<double>& variable_value() const;
3896 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL mutable_variable_value();
3898 private:
3899 const ::google::protobuf::RepeatedField<double>& _internal_variable_value() const;
3900 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL _internal_mutable_variable_value();
3901
3902 public:
3903 // repeated double dual_value = 4 [packed = true];
3904 int dual_value_size() const;
3905 private:
3906 int _internal_dual_value_size() const;
3907
3908 public:
3909 void clear_dual_value() ;
3910 double dual_value(int index) const;
3911 void set_dual_value(int index, double value);
3912 void add_dual_value(double value);
3913 const ::google::protobuf::RepeatedField<double>& dual_value() const;
3914 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL mutable_dual_value();
3915
3916 private:
3917 const ::google::protobuf::RepeatedField<double>& _internal_dual_value() const;
3918 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL _internal_mutable_dual_value();
3919
3920 public:
3921 // repeated double reduced_cost = 6 [packed = true];
3922 int reduced_cost_size() const;
3923 private:
3924 int _internal_reduced_cost_size() const;
3925
3926 public:
3927 void clear_reduced_cost() ;
3928 double reduced_cost(int index) const;
3929 void set_reduced_cost(int index, double value);
3930 void add_reduced_cost(double value);
3931 const ::google::protobuf::RepeatedField<double>& reduced_cost() const;
3932 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL mutable_reduced_cost();
3933
3934 private:
3935 const ::google::protobuf::RepeatedField<double>& _internal_reduced_cost() const;
3936 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL _internal_mutable_reduced_cost();
3937
3938 public:
3939 // repeated .operations_research.MPSolution additional_solutions = 8;
3940 int additional_solutions_size() const;
3941 private:
3942 int _internal_additional_solutions_size() const;
3943
3944 public:
3947 ::google::protobuf::RepeatedPtrField<::operations_research::MPSolution>* PROTOBUF_NONNULL mutable_additional_solutions();
3948
3949 private:
3950 const ::google::protobuf::RepeatedPtrField<::operations_research::MPSolution>& _internal_additional_solutions() const;
3951 ::google::protobuf::RepeatedPtrField<::operations_research::MPSolution>* PROTOBUF_NONNULL _internal_mutable_additional_solutions();
3952 public:
3953 const ::operations_research::MPSolution& additional_solutions(int index) const;
3955 const ::google::protobuf::RepeatedPtrField<::operations_research::MPSolution>& additional_solutions() const;
3956 // optional string status_str = 7;
3957 bool has_status_str() const;
3958 void clear_status_str() ;
3959 const ::std::string& status_str() const;
3960 template <typename Arg_ = const ::std::string&, typename... Args_>
3961 void set_status_str(Arg_&& arg, Args_... args);
3962 ::std::string* PROTOBUF_NONNULL mutable_status_str();
3963 [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_status_str();
3964 void set_allocated_status_str(::std::string* PROTOBUF_NULLABLE value);
3965
3966 private:
3967 const ::std::string& _internal_status_str() const;
3968 PROTOBUF_ALWAYS_INLINE void _internal_set_status_str(const ::std::string& value);
3969 ::std::string* PROTOBUF_NONNULL _internal_mutable_status_str();
3970
3971 public:
3972 // optional bytes solver_specific_info = 11;
3973 bool has_solver_specific_info() const;
3975 const ::std::string& solver_specific_info() const;
3976 template <typename Arg_ = const ::std::string&, typename... Args_>
3977 void set_solver_specific_info(Arg_&& arg, Args_... args);
3978 ::std::string* PROTOBUF_NONNULL mutable_solver_specific_info();
3979 [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_solver_specific_info();
3980 void set_allocated_solver_specific_info(::std::string* PROTOBUF_NULLABLE value);
3981
3982 private:
3983 const ::std::string& _internal_solver_specific_info() const;
3984 PROTOBUF_ALWAYS_INLINE void _internal_set_solver_specific_info(const ::std::string& value);
3985 ::std::string* PROTOBUF_NONNULL _internal_mutable_solver_specific_info();
3986
3987 public:
3988 // optional .operations_research.MPSolveInfo solve_info = 10;
3989 bool has_solve_info() const;
3990 void clear_solve_info() ;
3991 const ::operations_research::MPSolveInfo& solve_info() const;
3992 [[nodiscard]] ::operations_research::MPSolveInfo* PROTOBUF_NULLABLE release_solve_info();
3994 void set_allocated_solve_info(::operations_research::MPSolveInfo* PROTOBUF_NULLABLE value);
3997
3998 private:
3999 const ::operations_research::MPSolveInfo& _internal_solve_info() const;
4000 ::operations_research::MPSolveInfo* PROTOBUF_NONNULL _internal_mutable_solve_info();
4001
4002 public:
4003 // optional double objective_value = 2;
4004 bool has_objective_value() const;
4005 void clear_objective_value() ;
4006 double objective_value() const;
4007 void set_objective_value(double value);
4008
4009 private:
4010 double _internal_objective_value() const;
4011 void _internal_set_objective_value(double value);
4012
4013 public:
4014 // optional double best_objective_bound = 5;
4015 bool has_best_objective_bound() const;
4017 double best_objective_bound() const;
4018 void set_best_objective_bound(double value);
4019
4020 private:
4021 double _internal_best_objective_bound() const;
4022 void _internal_set_best_objective_bound(double value);
4023
4024 public:
4025 // optional .operations_research.MPSolverResponseStatus status = 1 [default = MPSOLVER_UNKNOWN_STATUS];
4026 bool has_status() const;
4027 void clear_status() ;
4030
4031 private:
4032 ::operations_research::MPSolverResponseStatus _internal_status() const;
4033 void _internal_set_status(::operations_research::MPSolverResponseStatus value);
4034
4035 public:
4036 // @@protoc_insertion_point(class_scope:operations_research.MPSolutionResponse)
4037 private:
4038 class _Internal;
4039 friend class ::google::protobuf::internal::TcParser;
4040 static const ::google::protobuf::internal::TcParseTable<4, 10,
4041 3, 0,
4042 2>
4043 _table_;
4044
4045 friend class ::google::protobuf::MessageLite;
4046 friend class ::google::protobuf::Arena;
4047 template <typename T>
4048 friend class ::google::protobuf::Arena::InternalHelper;
4049 using InternalArenaConstructable_ = void;
4050 using DestructorSkippable_ = void;
4051 struct Impl_ {
4052 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
4053 inline explicit Impl_(
4054 ::google::protobuf::internal::InternalVisibility visibility,
4055 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
4056 inline explicit Impl_(
4057 ::google::protobuf::internal::InternalVisibility visibility,
4058 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
4059 const MPSolutionResponse& from_msg);
4060 ::google::protobuf::internal::HasBits<1> _has_bits_;
4061 ::google::protobuf::internal::CachedSize _cached_size_;
4062 ::google::protobuf::RepeatedField<double> variable_value_;
4063 ::google::protobuf::RepeatedField<double> dual_value_;
4064 ::google::protobuf::RepeatedField<double> reduced_cost_;
4065 ::google::protobuf::RepeatedPtrField< ::operations_research::MPSolution > additional_solutions_;
4066 ::google::protobuf::internal::ArenaStringPtr status_str_;
4067 ::google::protobuf::internal::ArenaStringPtr solver_specific_info_;
4068 ::operations_research::MPSolveInfo* PROTOBUF_NULLABLE solve_info_;
4069 double objective_value_;
4070 double best_objective_bound_;
4071 int status_;
4072 PROTOBUF_TSAN_DECLARE_MEMBER
4073 };
4074 union { Impl_ _impl_; };
4075 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
4076};
4077
4078OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPSolutionResponse_class_data_;
4079// -------------------------------------------------------------------
4080
4082 : public ::google::protobuf::internal::MapEntry<::int32_t, ::google::protobuf::Message,
4083 ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
4084 ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> {
4085 public:
4086 using SuperType =
4087 ::google::protobuf::internal::MapEntry<::int32_t, ::google::protobuf::Message,
4088 ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
4089 ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>;
4091 template <typename = void>
4092 explicit PROTOBUF_CONSTEXPR MPModelDeltaProto_VariableOverridesEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized);
4093 explicit MPModelDeltaProto_VariableOverridesEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
4094 static constexpr const void* PROTOBUF_NONNULL internal_default_instance() {
4096 }
4097
4099 static constexpr auto InternalGenerateClassData_();
4100
4101 private:
4102 friend class ::google::protobuf::MessageLite;
4103 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
4104
4105 friend class ::google::protobuf::internal::TcParser;
4106 static const ::google::protobuf::internal::TcParseTable<1, 2,
4107 1, 0,
4108 2>
4109 _table_;
4110
4111 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
4112 static void* PROTOBUF_NONNULL PlacementNew_(
4113 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
4114 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
4115 static constexpr auto InternalNewImpl_();
4116};
4117OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPModelDeltaProto_VariableOverridesEntry_DoNotUse_class_data_;
4118// -------------------------------------------------------------------
4121 : public ::google::protobuf::internal::MapEntry<::int32_t, ::google::protobuf::Message,
4122 ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
4123 ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> {
4124 public:
4125 using SuperType =
4126 ::google::protobuf::internal::MapEntry<::int32_t, ::google::protobuf::Message,
4127 ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
4128 ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>;
4130 template <typename = void>
4131 explicit PROTOBUF_CONSTEXPR MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized);
4132 explicit MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
4133 static constexpr const void* PROTOBUF_NONNULL internal_default_instance() {
4135 }
4136
4137
4138 static constexpr auto InternalGenerateClassData_();
4139
4140 private:
4141 friend class ::google::protobuf::MessageLite;
4142 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
4144 friend class ::google::protobuf::internal::TcParser;
4145 static const ::google::protobuf::internal::TcParseTable<1, 2,
4146 1, 0,
4147 2>
4148 _table_;
4150 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
4151 static void* PROTOBUF_NONNULL PlacementNew_(
4152 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
4153 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
4154 static constexpr auto InternalNewImpl_();
4155};
4156OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse_class_data_;
4157// -------------------------------------------------------------------
4158
4159class OR_PROTO_DLL MPIndicatorConstraint final : public ::google::protobuf::Message
4160/* @@protoc_insertion_point(class_definition:operations_research.MPIndicatorConstraint) */ {
4161 public:
4163 ~MPIndicatorConstraint() PROTOBUF_FINAL;
4164
4165#if defined(PROTOBUF_CUSTOM_VTABLE)
4166 void operator delete(MPIndicatorConstraint* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
4167 SharedDtor(*msg);
4168 ::google::protobuf::internal::SizedDelete(msg, sizeof(MPIndicatorConstraint));
4169 }
4170#endif
4171
4172 template <typename = void>
4173 explicit PROTOBUF_CONSTEXPR MPIndicatorConstraint(::google::protobuf::internal::ConstantInitialized);
4174
4175 inline MPIndicatorConstraint(const MPIndicatorConstraint& from) : MPIndicatorConstraint(nullptr, from) {}
4176 inline MPIndicatorConstraint(MPIndicatorConstraint&& from) noexcept
4177 : MPIndicatorConstraint(nullptr, ::std::move(from)) {}
4179 CopyFrom(from);
4180 return *this;
4182 inline MPIndicatorConstraint& operator=(MPIndicatorConstraint&& from) noexcept {
4183 if (this == &from) return *this;
4184 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
4185 InternalSwap(&from);
4186 } else {
4187 CopyFrom(from);
4188 }
4189 return *this;
4190 }
4191
4192 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
4193 ABSL_ATTRIBUTE_LIFETIME_BOUND {
4194 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
4196 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
4197 ABSL_ATTRIBUTE_LIFETIME_BOUND {
4198 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
4199 }
4200
4201 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
4202 return GetDescriptor();
4203 }
4204 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
4205 return default_instance().GetMetadata().descriptor;
4206 }
4207 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
4208 return default_instance().GetMetadata().reflection;
4209 }
4210 static const MPIndicatorConstraint& default_instance() {
4211 return *reinterpret_cast<const MPIndicatorConstraint*>(
4213 }
4214 static constexpr int kIndexInFileMessages = 3;
4216 inline void Swap(MPIndicatorConstraint* PROTOBUF_NONNULL other) {
4217 if (other == this) return;
4218 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
4219 InternalSwap(other);
4220 } else {
4221 ::google::protobuf::internal::GenericSwap(this, other);
4222 }
4224 void UnsafeArenaSwap(MPIndicatorConstraint* PROTOBUF_NONNULL other) {
4225 if (other == this) return;
4226 ABSL_DCHECK(GetArena() == other->GetArena());
4227 InternalSwap(other);
4228 }
4230 // implements Message ----------------------------------------------
4231
4232 MPIndicatorConstraint* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
4233 return ::google::protobuf::Message::DefaultConstruct<MPIndicatorConstraint>(arena);
4235 using ::google::protobuf::Message::CopyFrom;
4236 void CopyFrom(const MPIndicatorConstraint& from);
4237 using ::google::protobuf::Message::MergeFrom;
4238 void MergeFrom(const MPIndicatorConstraint& from) { MPIndicatorConstraint::MergeImpl(*this, from); }
4239
4240 private:
4241 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
4242 const ::google::protobuf::MessageLite& from_msg);
4244 public:
4245 bool IsInitialized() const {
4246 return true;
4247 }
4248 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
4249 #if defined(PROTOBUF_CUSTOM_VTABLE)
4250 private:
4251 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
4252 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
4253 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
4254 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
4255
4256 public:
4257 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
4258 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
4259 ::uint8_t* PROTOBUF_NONNULL target,
4260 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
4261 return _InternalSerialize(*this, target, stream);
4262 }
4263 #else // PROTOBUF_CUSTOM_VTABLE
4264 ::size_t ByteSizeLong() const final;
4265 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
4266 ::uint8_t* PROTOBUF_NONNULL target,
4267 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
4268 #endif // PROTOBUF_CUSTOM_VTABLE
4269 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
4270
4271 private:
4272 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
4273 static void SharedDtor(MessageLite& self);
4274 void InternalSwap(MPIndicatorConstraint* PROTOBUF_NONNULL other);
4275 private:
4276 template <typename T>
4277 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
4278 static ::absl::string_view FullMessageName() { return "operations_research.MPIndicatorConstraint"; }
4279
4280 explicit MPIndicatorConstraint(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
4281 MPIndicatorConstraint(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MPIndicatorConstraint& from);
4282 MPIndicatorConstraint(
4283 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, MPIndicatorConstraint&& from) noexcept
4284 : MPIndicatorConstraint(arena) {
4285 *this = ::std::move(from);
4286 }
4287 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
4288 static void* PROTOBUF_NONNULL PlacementNew_(
4289 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
4290 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
4291 static constexpr auto InternalNewImpl_();
4292
4293 public:
4294 static constexpr auto InternalGenerateClassData_();
4295
4296 ::google::protobuf::Metadata GetMetadata() const;
4297 // nested types ----------------------------------------------------
4298
4299 // accessors -------------------------------------------------------
4300 enum : int {
4304 };
4305 // optional .operations_research.MPConstraintProto constraint = 3;
4306 bool has_constraint() const;
4307 void clear_constraint() ;
4308 const ::operations_research::MPConstraintProto& constraint() const;
4309 [[nodiscard]] ::operations_research::MPConstraintProto* PROTOBUF_NULLABLE release_constraint();
4310 ::operations_research::MPConstraintProto* PROTOBUF_NONNULL mutable_constraint();
4311 void set_allocated_constraint(::operations_research::MPConstraintProto* PROTOBUF_NULLABLE value);
4312 void unsafe_arena_set_allocated_constraint(::operations_research::MPConstraintProto* PROTOBUF_NULLABLE value);
4313 ::operations_research::MPConstraintProto* PROTOBUF_NULLABLE unsafe_arena_release_constraint();
4314
4315 private:
4316 const ::operations_research::MPConstraintProto& _internal_constraint() const;
4317 ::operations_research::MPConstraintProto* PROTOBUF_NONNULL _internal_mutable_constraint();
4318
4319 public:
4320 // optional int32 var_index = 1;
4321 bool has_var_index() const;
4323 ::int32_t var_index() const;
4324 void set_var_index(::int32_t value);
4325
4326 private:
4327 ::int32_t _internal_var_index() const;
4328 void _internal_set_var_index(::int32_t value);
4329
4330 public:
4331 // optional int32 var_value = 2;
4332 bool has_var_value() const;
4333 void clear_var_value() ;
4334 ::int32_t var_value() const;
4335 void set_var_value(::int32_t value);
4336
4337 private:
4338 ::int32_t _internal_var_value() const;
4339 void _internal_set_var_value(::int32_t value);
4340
4341 public:
4342 // @@protoc_insertion_point(class_scope:operations_research.MPIndicatorConstraint)
4343 private:
4344 class _Internal;
4345 friend class ::google::protobuf::internal::TcParser;
4346 static const ::google::protobuf::internal::TcParseTable<2, 3,
4347 1, 0,
4348 2>
4349 _table_;
4350
4351 friend class ::google::protobuf::MessageLite;
4352 friend class ::google::protobuf::Arena;
4353 template <typename T>
4354 friend class ::google::protobuf::Arena::InternalHelper;
4355 using InternalArenaConstructable_ = void;
4356 using DestructorSkippable_ = void;
4357 struct Impl_ {
4358 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
4359 inline explicit Impl_(
4360 ::google::protobuf::internal::InternalVisibility visibility,
4361 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
4362 inline explicit Impl_(
4363 ::google::protobuf::internal::InternalVisibility visibility,
4364 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
4365 const MPIndicatorConstraint& from_msg);
4366 ::google::protobuf::internal::HasBits<1> _has_bits_;
4367 ::google::protobuf::internal::CachedSize _cached_size_;
4368 ::operations_research::MPConstraintProto* PROTOBUF_NULLABLE constraint_;
4369 ::int32_t var_index_;
4370 ::int32_t var_value_;
4371 PROTOBUF_TSAN_DECLARE_MEMBER
4372 };
4373 union { Impl_ _impl_; };
4374 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
4375};
4376
4377OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPIndicatorConstraint_class_data_;
4378// -------------------------------------------------------------------
4379
4380class OR_PROTO_DLL MPModelDeltaProto final : public ::google::protobuf::Message
4381/* @@protoc_insertion_point(class_definition:operations_research.MPModelDeltaProto) */ {
4382 public:
4383 inline MPModelDeltaProto() : MPModelDeltaProto(nullptr) {}
4384 ~MPModelDeltaProto() PROTOBUF_FINAL;
4385
4386#if defined(PROTOBUF_CUSTOM_VTABLE)
4387 void operator delete(MPModelDeltaProto* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
4388 SharedDtor(*msg);
4389 ::google::protobuf::internal::SizedDelete(msg, sizeof(MPModelDeltaProto));
4390 }
4391#endif
4393 template <typename = void>
4394 explicit PROTOBUF_CONSTEXPR MPModelDeltaProto(::google::protobuf::internal::ConstantInitialized);
4395
4396 inline MPModelDeltaProto(const MPModelDeltaProto& from) : MPModelDeltaProto(nullptr, from) {}
4397 inline MPModelDeltaProto(MPModelDeltaProto&& from) noexcept
4398 : MPModelDeltaProto(nullptr, ::std::move(from)) {}
4399 inline MPModelDeltaProto& operator=(const MPModelDeltaProto& from) {
4401 return *this;
4402 }
4404 if (this == &from) return *this;
4405 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
4406 InternalSwap(&from);
4407 } else {
4408 CopyFrom(from);
4409 }
4410 return *this;
4411 }
4412
4413 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
4414 ABSL_ATTRIBUTE_LIFETIME_BOUND {
4415 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
4417 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
4418 ABSL_ATTRIBUTE_LIFETIME_BOUND {
4419 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
4420 }
4421
4422 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
4424 }
4425 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
4426 return default_instance().GetMetadata().descriptor;
4427 }
4428 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
4429 return default_instance().GetMetadata().reflection;
4430 }
4431 static const MPModelDeltaProto& default_instance() {
4432 return *reinterpret_cast<const MPModelDeltaProto*>(
4434 }
4435 static constexpr int kIndexInFileMessages = 17;
4436 friend void swap(MPModelDeltaProto& a, MPModelDeltaProto& b) { a.Swap(&b); }
4437 inline void Swap(MPModelDeltaProto* PROTOBUF_NONNULL other) {
4438 if (other == this) return;
4439 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
4440 InternalSwap(other);
4441 } else {
4442 ::google::protobuf::internal::GenericSwap(this, other);
4443 }
4444 }
4445 void UnsafeArenaSwap(MPModelDeltaProto* PROTOBUF_NONNULL other) {
4446 if (other == this) return;
4447 ABSL_DCHECK(GetArena() == other->GetArena());
4448 InternalSwap(other);
4449 }
4450
4451 // implements Message ----------------------------------------------
4452
4453 MPModelDeltaProto* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
4454 return ::google::protobuf::Message::DefaultConstruct<MPModelDeltaProto>(arena);
4456 using ::google::protobuf::Message::CopyFrom;
4457 void CopyFrom(const MPModelDeltaProto& from);
4458 using ::google::protobuf::Message::MergeFrom;
4459 void MergeFrom(const MPModelDeltaProto& from) { MPModelDeltaProto::MergeImpl(*this, from); }
4460
4461 private:
4462 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
4463 const ::google::protobuf::MessageLite& from_msg);
4464
4465 public:
4466 bool IsInitialized() const {
4467 return true;
4468 }
4469 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
4470 #if defined(PROTOBUF_CUSTOM_VTABLE)
4471 private:
4472 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
4473 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
4474 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
4475 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
4476
4477 public:
4478 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
4479 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
4480 ::uint8_t* PROTOBUF_NONNULL target,
4481 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
4482 return _InternalSerialize(*this, target, stream);
4483 }
4484 #else // PROTOBUF_CUSTOM_VTABLE
4485 ::size_t ByteSizeLong() const final;
4486 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
4487 ::uint8_t* PROTOBUF_NONNULL target,
4488 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
4489 #endif // PROTOBUF_CUSTOM_VTABLE
4490 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
4491
4492 private:
4493 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
4494 static void SharedDtor(MessageLite& self);
4495 void InternalSwap(MPModelDeltaProto* PROTOBUF_NONNULL other);
4496 private:
4497 template <typename T>
4498 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
4499 static ::absl::string_view FullMessageName() { return "operations_research.MPModelDeltaProto"; }
4500
4501 explicit MPModelDeltaProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
4502 MPModelDeltaProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MPModelDeltaProto& from);
4503 MPModelDeltaProto(
4504 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, MPModelDeltaProto&& from) noexcept
4505 : MPModelDeltaProto(arena) {
4506 *this = ::std::move(from);
4507 }
4508 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
4509 static void* PROTOBUF_NONNULL PlacementNew_(
4510 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
4511 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
4512 static constexpr auto InternalNewImpl_();
4513
4514 public:
4515 static constexpr auto InternalGenerateClassData_();
4516
4517 ::google::protobuf::Metadata GetMetadata() const;
4518 // nested types ----------------------------------------------------
4519
4520 // accessors -------------------------------------------------------
4521 enum : int {
4525 };
4526 // optional string baseline_model_file_path = 1;
4527 bool has_baseline_model_file_path() const;
4528 void clear_baseline_model_file_path() ;
4529 const ::std::string& baseline_model_file_path() const;
4530 template <typename Arg_ = const ::std::string&, typename... Args_>
4531 void set_baseline_model_file_path(Arg_&& arg, Args_... args);
4532 ::std::string* PROTOBUF_NONNULL mutable_baseline_model_file_path();
4533 [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_baseline_model_file_path();
4534 void set_allocated_baseline_model_file_path(::std::string* PROTOBUF_NULLABLE value);
4535
4536 private:
4537 const ::std::string& _internal_baseline_model_file_path() const;
4538 PROTOBUF_ALWAYS_INLINE void _internal_set_baseline_model_file_path(const ::std::string& value);
4539 ::std::string* PROTOBUF_NONNULL _internal_mutable_baseline_model_file_path();
4540
4541 public:
4542 // map<int32, .operations_research.MPVariableProto> variable_overrides = 2;
4544 private:
4545 int _internal_variable_overrides_size() const;
4546
4547 public:
4549 const ::google::protobuf::Map<::int32_t, ::operations_research::MPVariableProto>& variable_overrides() const;
4550 ::google::protobuf::Map<::int32_t, ::operations_research::MPVariableProto>* PROTOBUF_NONNULL mutable_variable_overrides();
4552 private:
4553 const ::google::protobuf::Map<::int32_t, ::operations_research::MPVariableProto>& _internal_variable_overrides() const;
4554 ::google::protobuf::Map<::int32_t, ::operations_research::MPVariableProto>* PROTOBUF_NONNULL _internal_mutable_variable_overrides();
4555
4556 public:
4557 // map<int32, .operations_research.MPConstraintProto> constraint_overrides = 3;
4558 int constraint_overrides_size() const;
4559 private:
4560 int _internal_constraint_overrides_size() const;
4561
4562 public:
4564 const ::google::protobuf::Map<::int32_t, ::operations_research::MPConstraintProto>& constraint_overrides() const;
4565 ::google::protobuf::Map<::int32_t, ::operations_research::MPConstraintProto>* PROTOBUF_NONNULL mutable_constraint_overrides();
4566
4567 private:
4568 const ::google::protobuf::Map<::int32_t, ::operations_research::MPConstraintProto>& _internal_constraint_overrides() const;
4569 ::google::protobuf::Map<::int32_t, ::operations_research::MPConstraintProto>* PROTOBUF_NONNULL _internal_mutable_constraint_overrides();
4570
4571 public:
4572 // @@protoc_insertion_point(class_scope:operations_research.MPModelDeltaProto)
4573 private:
4574 class _Internal;
4575 friend class ::google::protobuf::internal::TcParser;
4576 static const ::google::protobuf::internal::TcParseTable<0, 3,
4577 4, 0,
4578 2>
4579 _table_;
4580
4581 friend class ::google::protobuf::MessageLite;
4582 friend class ::google::protobuf::Arena;
4583 template <typename T>
4584 friend class ::google::protobuf::Arena::InternalHelper;
4585 using InternalArenaConstructable_ = void;
4586 using DestructorSkippable_ = void;
4587 struct Impl_ {
4588 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
4589 inline explicit Impl_(
4590 ::google::protobuf::internal::InternalVisibility visibility,
4591 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
4592 inline explicit Impl_(
4593 ::google::protobuf::internal::InternalVisibility visibility,
4594 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
4595 const MPModelDeltaProto& from_msg);
4596 ::google::protobuf::internal::HasBits<1> _has_bits_;
4597 ::google::protobuf::internal::CachedSize _cached_size_;
4598 ::google::protobuf::internal::ArenaStringPtr baseline_model_file_path_;
4599 ::google::protobuf::internal::MapField<MPModelDeltaProto_VariableOverridesEntry_DoNotUse, ::int32_t, ::operations_research::MPVariableProto,
4600 ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
4601 ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>
4602 variable_overrides_;
4604 ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
4605 ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>
4606 constraint_overrides_;
4607 PROTOBUF_TSAN_DECLARE_MEMBER
4608 };
4609 union { Impl_ _impl_; };
4610 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
4611};
4612
4613OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPModelDeltaProto_class_data_;
4614// -------------------------------------------------------------------
4615
4616class OR_PROTO_DLL MPGeneralConstraintProto final : public ::google::protobuf::Message
4617/* @@protoc_insertion_point(class_definition:operations_research.MPGeneralConstraintProto) */ {
4618 public:
4619 inline MPGeneralConstraintProto() : MPGeneralConstraintProto(nullptr) {}
4620 ~MPGeneralConstraintProto() PROTOBUF_FINAL;
4621
4622#if defined(PROTOBUF_CUSTOM_VTABLE)
4623 void operator delete(MPGeneralConstraintProto* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
4624 SharedDtor(*msg);
4625 ::google::protobuf::internal::SizedDelete(msg, sizeof(MPGeneralConstraintProto));
4626 }
4627#endif
4628
4629 template <typename = void>
4630 explicit PROTOBUF_CONSTEXPR MPGeneralConstraintProto(::google::protobuf::internal::ConstantInitialized);
4631
4632 inline MPGeneralConstraintProto(const MPGeneralConstraintProto& from) : MPGeneralConstraintProto(nullptr, from) {}
4634 : MPGeneralConstraintProto(nullptr, ::std::move(from)) {}
4635 inline MPGeneralConstraintProto& operator=(const MPGeneralConstraintProto& from) {
4636 CopyFrom(from);
4637 return *this;
4638 }
4639 inline MPGeneralConstraintProto& operator=(MPGeneralConstraintProto&& from) noexcept {
4640 if (this == &from) return *this;
4641 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
4642 InternalSwap(&from);
4643 } else {
4644 CopyFrom(from);
4645 }
4646 return *this;
4647 }
4648
4649 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
4650 ABSL_ATTRIBUTE_LIFETIME_BOUND {
4651 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
4652 }
4653 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
4654 ABSL_ATTRIBUTE_LIFETIME_BOUND {
4655 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
4657
4658 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
4659 return GetDescriptor();
4661 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
4662 return default_instance().GetMetadata().descriptor;
4663 }
4664 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
4665 return default_instance().GetMetadata().reflection;
4666 }
4667 static const MPGeneralConstraintProto& default_instance() {
4668 return *reinterpret_cast<const MPGeneralConstraintProto*>(
4671 enum GeneralConstraintCase {
4672 kIndicatorConstraint = 2,
4673 kSosConstraint = 3,
4678 kMinConstraint = 8,
4682 static constexpr int kIndexInFileMessages = 2;
4683 friend void swap(MPGeneralConstraintProto& a, MPGeneralConstraintProto& b) { a.Swap(&b); }
4684 inline void Swap(MPGeneralConstraintProto* PROTOBUF_NONNULL other) {
4685 if (other == this) return;
4686 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
4687 InternalSwap(other);
4688 } else {
4689 ::google::protobuf::internal::GenericSwap(this, other);
4690 }
4691 }
4692 void UnsafeArenaSwap(MPGeneralConstraintProto* PROTOBUF_NONNULL other) {
4693 if (other == this) return;
4694 ABSL_DCHECK(GetArena() == other->GetArena());
4695 InternalSwap(other);
4698 // implements Message ----------------------------------------------
4700 MPGeneralConstraintProto* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
4701 return ::google::protobuf::Message::DefaultConstruct<MPGeneralConstraintProto>(arena);
4702 }
4703 using ::google::protobuf::Message::CopyFrom;
4705 using ::google::protobuf::Message::MergeFrom;
4706 void MergeFrom(const MPGeneralConstraintProto& from) { MPGeneralConstraintProto::MergeImpl(*this, from); }
4707
4708 private:
4709 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
4710 const ::google::protobuf::MessageLite& from_msg);
4711
4712 public:
4713 bool IsInitialized() const {
4714 return true;
4715 }
4716 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
4717 #if defined(PROTOBUF_CUSTOM_VTABLE)
4718 private:
4719 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
4720 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
4721 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
4722 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
4723
4724 public:
4725 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
4726 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
4727 ::uint8_t* PROTOBUF_NONNULL target,
4728 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
4729 return _InternalSerialize(*this, target, stream);
4730 }
4731 #else // PROTOBUF_CUSTOM_VTABLE
4732 ::size_t ByteSizeLong() const final;
4733 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
4734 ::uint8_t* PROTOBUF_NONNULL target,
4735 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
4736 #endif // PROTOBUF_CUSTOM_VTABLE
4737 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
4738
4739 private:
4740 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
4741 static void SharedDtor(MessageLite& self);
4742 void InternalSwap(MPGeneralConstraintProto* PROTOBUF_NONNULL other);
4743 private:
4744 template <typename T>
4745 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
4746 static ::absl::string_view FullMessageName() { return "operations_research.MPGeneralConstraintProto"; }
4747
4748 explicit MPGeneralConstraintProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
4749 MPGeneralConstraintProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MPGeneralConstraintProto& from);
4750 MPGeneralConstraintProto(
4751 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, MPGeneralConstraintProto&& from) noexcept
4752 : MPGeneralConstraintProto(arena) {
4753 *this = ::std::move(from);
4754 }
4755 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
4756 static void* PROTOBUF_NONNULL PlacementNew_(
4757 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
4758 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
4759 static constexpr auto InternalNewImpl_();
4760
4761 public:
4762 static constexpr auto InternalGenerateClassData_();
4763
4764 ::google::protobuf::Metadata GetMetadata() const;
4765 // nested types ----------------------------------------------------
4766
4767 // accessors -------------------------------------------------------
4768 enum : int {
4769 kNameFieldNumber = 1,
4778 };
4779 // optional string name = 1 [default = ""];
4780 bool has_name() const;
4781 void clear_name() ;
4782 const ::std::string& name() const;
4783 template <typename Arg_ = const ::std::string&, typename... Args_>
4784 void set_name(Arg_&& arg, Args_... args);
4785 ::std::string* PROTOBUF_NONNULL mutable_name();
4786 [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_name();
4787 void set_allocated_name(::std::string* PROTOBUF_NULLABLE value);
4788
4789 private:
4790 const ::std::string& _internal_name() const;
4791 PROTOBUF_ALWAYS_INLINE void _internal_set_name(const ::std::string& value);
4792 ::std::string* PROTOBUF_NONNULL _internal_mutable_name();
4794 public:
4795 // .operations_research.MPIndicatorConstraint indicator_constraint = 2;
4797 private:
4798 bool _internal_has_indicator_constraint() const;
4799
4800 public:
4802 const ::operations_research::MPIndicatorConstraint& indicator_constraint() const;
4808
4809 private:
4810 const ::operations_research::MPIndicatorConstraint& _internal_indicator_constraint() const;
4811 ::operations_research::MPIndicatorConstraint* PROTOBUF_NONNULL _internal_mutable_indicator_constraint();
4812
4813 public:
4814 // .operations_research.MPSosConstraint sos_constraint = 3;
4815 bool has_sos_constraint() const;
4816 private:
4817 bool _internal_has_sos_constraint() const;
4818
4819 public:
4820 void clear_sos_constraint() ;
4821 const ::operations_research::MPSosConstraint& sos_constraint() const;
4822 [[nodiscard]] ::operations_research::MPSosConstraint* PROTOBUF_NULLABLE release_sos_constraint();
4827
4828 private:
4829 const ::operations_research::MPSosConstraint& _internal_sos_constraint() const;
4830 ::operations_research::MPSosConstraint* PROTOBUF_NONNULL _internal_mutable_sos_constraint();
4831
4832 public:
4833 // .operations_research.MPQuadraticConstraint quadratic_constraint = 4;
4834 bool has_quadratic_constraint() const;
4835 private:
4836 bool _internal_has_quadratic_constraint() const;
4837
4838 public:
4840 const ::operations_research::MPQuadraticConstraint& quadratic_constraint() const;
4846
4847 private:
4848 const ::operations_research::MPQuadraticConstraint& _internal_quadratic_constraint() const;
4849 ::operations_research::MPQuadraticConstraint* PROTOBUF_NONNULL _internal_mutable_quadratic_constraint();
4850
4851 public:
4852 // .operations_research.MPAbsConstraint abs_constraint = 5;
4853 bool has_abs_constraint() const;
4854 private:
4855 bool _internal_has_abs_constraint() const;
4856
4857 public:
4858 void clear_abs_constraint() ;
4859 const ::operations_research::MPAbsConstraint& abs_constraint() const;
4860 [[nodiscard]] ::operations_research::MPAbsConstraint* PROTOBUF_NULLABLE release_abs_constraint();
4865
4866 private:
4867 const ::operations_research::MPAbsConstraint& _internal_abs_constraint() const;
4868 ::operations_research::MPAbsConstraint* PROTOBUF_NONNULL _internal_mutable_abs_constraint();
4869
4870 public:
4871 // .operations_research.MPArrayConstraint and_constraint = 6;
4872 bool has_and_constraint() const;
4873 private:
4874 bool _internal_has_and_constraint() const;
4875
4876 public:
4877 void clear_and_constraint() ;
4878 const ::operations_research::MPArrayConstraint& and_constraint() const;
4879 [[nodiscard]] ::operations_research::MPArrayConstraint* PROTOBUF_NULLABLE release_and_constraint();
4884
4885 private:
4886 const ::operations_research::MPArrayConstraint& _internal_and_constraint() const;
4887 ::operations_research::MPArrayConstraint* PROTOBUF_NONNULL _internal_mutable_and_constraint();
4888
4889 public:
4890 // .operations_research.MPArrayConstraint or_constraint = 7;
4891 bool has_or_constraint() const;
4892 private:
4893 bool _internal_has_or_constraint() const;
4894
4895 public:
4896 void clear_or_constraint() ;
4897 const ::operations_research::MPArrayConstraint& or_constraint() const;
4898 [[nodiscard]] ::operations_research::MPArrayConstraint* PROTOBUF_NULLABLE release_or_constraint();
4903
4904 private:
4905 const ::operations_research::MPArrayConstraint& _internal_or_constraint() const;
4906 ::operations_research::MPArrayConstraint* PROTOBUF_NONNULL _internal_mutable_or_constraint();
4907
4908 public:
4909 // .operations_research.MPArrayWithConstantConstraint min_constraint = 8;
4910 bool has_min_constraint() const;
4911 private:
4912 bool _internal_has_min_constraint() const;
4913
4914 public:
4915 void clear_min_constraint() ;
4916 const ::operations_research::MPArrayWithConstantConstraint& min_constraint() const;
4922
4923 private:
4924 const ::operations_research::MPArrayWithConstantConstraint& _internal_min_constraint() const;
4925 ::operations_research::MPArrayWithConstantConstraint* PROTOBUF_NONNULL _internal_mutable_min_constraint();
4926
4927 public:
4928 // .operations_research.MPArrayWithConstantConstraint max_constraint = 9;
4929 bool has_max_constraint() const;
4930 private:
4931 bool _internal_has_max_constraint() const;
4932
4933 public:
4934 void clear_max_constraint() ;
4935 const ::operations_research::MPArrayWithConstantConstraint& max_constraint() const;
4941
4942 private:
4943 const ::operations_research::MPArrayWithConstantConstraint& _internal_max_constraint() const;
4944 ::operations_research::MPArrayWithConstantConstraint* PROTOBUF_NONNULL _internal_mutable_max_constraint();
4945
4946 public:
4949 // @@protoc_insertion_point(class_scope:operations_research.MPGeneralConstraintProto)
4950 private:
4951 class _Internal;
4952 void set_has_indicator_constraint();
4953 void set_has_sos_constraint();
4954 void set_has_quadratic_constraint();
4955 void set_has_abs_constraint();
4956 void set_has_and_constraint();
4957 void set_has_or_constraint();
4958 void set_has_min_constraint();
4959 void set_has_max_constraint();
4960 inline bool has_general_constraint() const;
4961 inline void clear_has_general_constraint();
4962 friend class ::google::protobuf::internal::TcParser;
4963 static const ::google::protobuf::internal::TcParseTable<0, 9,
4964 8, 0,
4965 2>
4966 _table_;
4967
4968 friend class ::google::protobuf::MessageLite;
4969 friend class ::google::protobuf::Arena;
4970 template <typename T>
4971 friend class ::google::protobuf::Arena::InternalHelper;
4972 using InternalArenaConstructable_ = void;
4973 using DestructorSkippable_ = void;
4974 struct Impl_ {
4975 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
4976 inline explicit Impl_(
4977 ::google::protobuf::internal::InternalVisibility visibility,
4978 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
4979 inline explicit Impl_(
4980 ::google::protobuf::internal::InternalVisibility visibility,
4981 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
4982 const MPGeneralConstraintProto& from_msg);
4983 ::google::protobuf::internal::HasBits<1> _has_bits_;
4984 ::google::protobuf::internal::CachedSize _cached_size_;
4985 ::google::protobuf::internal::ArenaStringPtr name_;
4986 union GeneralConstraintUnion {
4987 constexpr GeneralConstraintUnion() : _constinit_{} {}
4988 ::google::protobuf::internal::ConstantInitialized _constinit_;
4989 ::google::protobuf::Message* PROTOBUF_NULLABLE indicator_constraint_;
4990 ::google::protobuf::Message* PROTOBUF_NULLABLE sos_constraint_;
4991 ::google::protobuf::Message* PROTOBUF_NULLABLE quadratic_constraint_;
4992 ::google::protobuf::Message* PROTOBUF_NULLABLE abs_constraint_;
4993 ::google::protobuf::Message* PROTOBUF_NULLABLE and_constraint_;
4994 ::google::protobuf::Message* PROTOBUF_NULLABLE or_constraint_;
4995 ::google::protobuf::Message* PROTOBUF_NULLABLE min_constraint_;
4996 ::google::protobuf::Message* PROTOBUF_NULLABLE max_constraint_;
4997 } general_constraint_;
4998 ::uint32_t _oneof_case_[1];
4999 PROTOBUF_TSAN_DECLARE_MEMBER
5000 };
5001 union { Impl_ _impl_; };
5002 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
5003};
5004
5005OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPGeneralConstraintProto_class_data_;
5006// -------------------------------------------------------------------
5008class OR_PROTO_DLL MPModelProto final : public ::google::protobuf::Message
5009/* @@protoc_insertion_point(class_definition:operations_research.MPModelProto) */ {
5010 public:
5011 inline MPModelProto() : MPModelProto(nullptr) {}
5012 ~MPModelProto() PROTOBUF_FINAL;
5014#if defined(PROTOBUF_CUSTOM_VTABLE)
5015 void operator delete(MPModelProto* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
5016 SharedDtor(*msg);
5017 ::google::protobuf::internal::SizedDelete(msg, sizeof(MPModelProto));
5018 }
5019#endif
5020
5021 template <typename = void>
5022 explicit PROTOBUF_CONSTEXPR MPModelProto(::google::protobuf::internal::ConstantInitialized);
5024 inline MPModelProto(const MPModelProto& from) : MPModelProto(nullptr, from) {}
5025 inline MPModelProto(MPModelProto&& from) noexcept
5026 : MPModelProto(nullptr, ::std::move(from)) {}
5027 inline MPModelProto& operator=(const MPModelProto& from) {
5028 CopyFrom(from);
5029 return *this;
5031 inline MPModelProto& operator=(MPModelProto&& from) noexcept {
5032 if (this == &from) return *this;
5033 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
5034 InternalSwap(&from);
5035 } else {
5036 CopyFrom(from);
5037 }
5038 return *this;
5039 }
5040
5041 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
5042 ABSL_ATTRIBUTE_LIFETIME_BOUND {
5043 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
5045 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
5046 ABSL_ATTRIBUTE_LIFETIME_BOUND {
5047 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
5048 }
5050 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
5051 return GetDescriptor();
5052 }
5053 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
5054 return default_instance().GetMetadata().descriptor;
5055 }
5056 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
5057 return default_instance().GetMetadata().reflection;
5058 }
5059 static const MPModelProto& default_instance() {
5060 return *reinterpret_cast<const MPModelProto*>(
5061 &_MPModelProto_default_instance_);
5062 }
5063 static constexpr int kIndexInFileMessages = 12;
5064 friend void swap(MPModelProto& a, MPModelProto& b) { a.Swap(&b); }
5065 inline void Swap(MPModelProto* PROTOBUF_NONNULL other) {
5066 if (other == this) return;
5067 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
5068 InternalSwap(other);
5069 } else {
5070 ::google::protobuf::internal::GenericSwap(this, other);
5071 }
5073 void UnsafeArenaSwap(MPModelProto* PROTOBUF_NONNULL other) {
5074 if (other == this) return;
5075 ABSL_DCHECK(GetArena() == other->GetArena());
5076 InternalSwap(other);
5077 }
5079 // implements Message ----------------------------------------------
5080
5081 MPModelProto* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
5082 return ::google::protobuf::Message::DefaultConstruct<MPModelProto>(arena);
5083 }
5084 using ::google::protobuf::Message::CopyFrom;
5085 void CopyFrom(const MPModelProto& from);
5086 using ::google::protobuf::Message::MergeFrom;
5087 void MergeFrom(const MPModelProto& from) { MPModelProto::MergeImpl(*this, from); }
5088
5089 private:
5090 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
5091 const ::google::protobuf::MessageLite& from_msg);
5092
5093 public:
5094 bool IsInitialized() const {
5095 return true;
5096 }
5097 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
5098 #if defined(PROTOBUF_CUSTOM_VTABLE)
5099 private:
5100 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
5101 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
5102 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
5103 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
5104
5105 public:
5106 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
5107 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
5108 ::uint8_t* PROTOBUF_NONNULL target,
5109 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
5110 return _InternalSerialize(*this, target, stream);
5111 }
5112 #else // PROTOBUF_CUSTOM_VTABLE
5113 ::size_t ByteSizeLong() const final;
5114 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
5115 ::uint8_t* PROTOBUF_NONNULL target,
5116 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
5117 #endif // PROTOBUF_CUSTOM_VTABLE
5118 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
5119
5120 private:
5121 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
5122 static void SharedDtor(MessageLite& self);
5123 void InternalSwap(MPModelProto* PROTOBUF_NONNULL other);
5124 private:
5125 template <typename T>
5126 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
5127 static ::absl::string_view FullMessageName() { return "operations_research.MPModelProto"; }
5128
5129 explicit MPModelProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
5130 MPModelProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MPModelProto& from);
5131 MPModelProto(
5132 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, MPModelProto&& from) noexcept
5133 : MPModelProto(arena) {
5134 *this = ::std::move(from);
5135 }
5136 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
5137 static void* PROTOBUF_NONNULL PlacementNew_(
5138 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
5139 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
5140 static constexpr auto InternalNewImpl_();
5141
5142 public:
5143 static constexpr auto InternalGenerateClassData_();
5144
5145 ::google::protobuf::Metadata GetMetadata() const;
5146 // nested types ----------------------------------------------------
5148
5149 // accessors -------------------------------------------------------
5150 enum : int {
5155 kNameFieldNumber = 5,
5160 };
5161 // repeated .operations_research.MPVariableProto variable = 3;
5162 int variable_size() const;
5163 private:
5164 int _internal_variable_size() const;
5165
5166 public:
5167 void clear_variable() ;
5168 ::operations_research::MPVariableProto* PROTOBUF_NONNULL mutable_variable(int index);
5169 ::google::protobuf::RepeatedPtrField<::operations_research::MPVariableProto>* PROTOBUF_NONNULL mutable_variable();
5170
5171 private:
5172 const ::google::protobuf::RepeatedPtrField<::operations_research::MPVariableProto>& _internal_variable() const;
5173 ::google::protobuf::RepeatedPtrField<::operations_research::MPVariableProto>* PROTOBUF_NONNULL _internal_mutable_variable();
5174 public:
5175 const ::operations_research::MPVariableProto& variable(int index) const;
5177 const ::google::protobuf::RepeatedPtrField<::operations_research::MPVariableProto>& variable() const;
5178 // repeated .operations_research.MPConstraintProto constraint = 4;
5179 int constraint_size() const;
5180 private:
5181 int _internal_constraint_size() const;
5182
5183 public:
5184 void clear_constraint() ;
5186 ::google::protobuf::RepeatedPtrField<::operations_research::MPConstraintProto>* PROTOBUF_NONNULL mutable_constraint();
5187
5188 private:
5189 const ::google::protobuf::RepeatedPtrField<::operations_research::MPConstraintProto>& _internal_constraint() const;
5190 ::google::protobuf::RepeatedPtrField<::operations_research::MPConstraintProto>* PROTOBUF_NONNULL _internal_mutable_constraint();
5191 public:
5192 const ::operations_research::MPConstraintProto& constraint(int index) const;
5194 const ::google::protobuf::RepeatedPtrField<::operations_research::MPConstraintProto>& constraint() const;
5195 // repeated .operations_research.MPGeneralConstraintProto general_constraint = 7;
5196 int general_constraint_size() const;
5197 private:
5198 int _internal_general_constraint_size() const;
5199
5200 public:
5203 ::google::protobuf::RepeatedPtrField<::operations_research::MPGeneralConstraintProto>* PROTOBUF_NONNULL mutable_general_constraint();
5204
5205 private:
5206 const ::google::protobuf::RepeatedPtrField<::operations_research::MPGeneralConstraintProto>& _internal_general_constraint() const;
5207 ::google::protobuf::RepeatedPtrField<::operations_research::MPGeneralConstraintProto>* PROTOBUF_NONNULL _internal_mutable_general_constraint();
5208 public:
5209 const ::operations_research::MPGeneralConstraintProto& general_constraint(int index) const;
5211 const ::google::protobuf::RepeatedPtrField<::operations_research::MPGeneralConstraintProto>& general_constraint() const;
5212 // repeated .operations_research.MPModelProto.Annotation annotation = 9;
5213 int annotation_size() const;
5214 private:
5215 int _internal_annotation_size() const;
5216
5217 public:
5218 void clear_annotation() ;
5220 ::google::protobuf::RepeatedPtrField<::operations_research::MPModelProto_Annotation>* PROTOBUF_NONNULL mutable_annotation();
5221
5222 private:
5223 const ::google::protobuf::RepeatedPtrField<::operations_research::MPModelProto_Annotation>& _internal_annotation() const;
5224 ::google::protobuf::RepeatedPtrField<::operations_research::MPModelProto_Annotation>* PROTOBUF_NONNULL _internal_mutable_annotation();
5225 public:
5226 const ::operations_research::MPModelProto_Annotation& annotation(int index) const;
5228 const ::google::protobuf::RepeatedPtrField<::operations_research::MPModelProto_Annotation>& annotation() const;
5229 // optional string name = 5 [default = ""];
5230 bool has_name() const;
5231 void clear_name() ;
5232 const ::std::string& name() const;
5233 template <typename Arg_ = const ::std::string&, typename... Args_>
5234 void set_name(Arg_&& arg, Args_... args);
5235 ::std::string* PROTOBUF_NONNULL mutable_name();
5236 [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_name();
5237 void set_allocated_name(::std::string* PROTOBUF_NULLABLE value);
5238
5239 private:
5240 const ::std::string& _internal_name() const;
5241 PROTOBUF_ALWAYS_INLINE void _internal_set_name(const ::std::string& value);
5242 ::std::string* PROTOBUF_NONNULL _internal_mutable_name();
5243
5244 public:
5245 // optional .operations_research.PartialVariableAssignment solution_hint = 6;
5246 bool has_solution_hint() const;
5247 void clear_solution_hint() ;
5248 const ::operations_research::PartialVariableAssignment& solution_hint() const;
5254
5255 private:
5256 const ::operations_research::PartialVariableAssignment& _internal_solution_hint() const;
5257 ::operations_research::PartialVariableAssignment* PROTOBUF_NONNULL _internal_mutable_solution_hint();
5258
5259 public:
5260 // optional .operations_research.MPQuadraticObjective quadratic_objective = 8;
5261 bool has_quadratic_objective() const;
5263 const ::operations_research::MPQuadraticObjective& quadratic_objective() const;
5269
5270 private:
5271 const ::operations_research::MPQuadraticObjective& _internal_quadratic_objective() const;
5272 ::operations_research::MPQuadraticObjective* PROTOBUF_NONNULL _internal_mutable_quadratic_objective();
5273
5274 public:
5275 // optional double objective_offset = 2 [default = 0];
5276 bool has_objective_offset() const;
5277 void clear_objective_offset() ;
5278 double objective_offset() const;
5279 void set_objective_offset(double value);
5280
5281 private:
5282 double _internal_objective_offset() const;
5283 void _internal_set_objective_offset(double value);
5284
5285 public:
5286 // optional bool maximize = 1 [default = false];
5287 bool has_maximize() const;
5288 void clear_maximize() ;
5289 bool maximize() const;
5290 void set_maximize(bool value);
5291
5292 private:
5293 bool _internal_maximize() const;
5294 void _internal_set_maximize(bool value);
5295
5296 public:
5297 // @@protoc_insertion_point(class_scope:operations_research.MPModelProto)
5298 private:
5299 class _Internal;
5300 friend class ::google::protobuf::internal::TcParser;
5301 static const ::google::protobuf::internal::TcParseTable<4, 9,
5302 6, 0,
5303 2>
5304 _table_;
5305
5306 friend class ::google::protobuf::MessageLite;
5307 friend class ::google::protobuf::Arena;
5308 template <typename T>
5309 friend class ::google::protobuf::Arena::InternalHelper;
5310 using InternalArenaConstructable_ = void;
5311 using DestructorSkippable_ = void;
5312 struct Impl_ {
5313 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
5314 inline explicit Impl_(
5315 ::google::protobuf::internal::InternalVisibility visibility,
5316 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
5317 inline explicit Impl_(
5318 ::google::protobuf::internal::InternalVisibility visibility,
5319 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
5320 const MPModelProto& from_msg);
5321 ::google::protobuf::internal::HasBits<1> _has_bits_;
5322 ::google::protobuf::internal::CachedSize _cached_size_;
5323 ::google::protobuf::RepeatedPtrField< ::operations_research::MPVariableProto > variable_;
5324 ::google::protobuf::RepeatedPtrField< ::operations_research::MPConstraintProto > constraint_;
5325 ::google::protobuf::RepeatedPtrField< ::operations_research::MPGeneralConstraintProto > general_constraint_;
5326 ::google::protobuf::RepeatedPtrField< ::operations_research::MPModelProto_Annotation > annotation_;
5327 ::google::protobuf::internal::ArenaStringPtr name_;
5328 ::operations_research::PartialVariableAssignment* PROTOBUF_NULLABLE solution_hint_;
5329 ::operations_research::MPQuadraticObjective* PROTOBUF_NULLABLE quadratic_objective_;
5330 double objective_offset_;
5331 bool maximize_;
5332 PROTOBUF_TSAN_DECLARE_MEMBER
5333 };
5334 union { Impl_ _impl_; };
5335 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
5336};
5337
5338OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPModelProto_class_data_;
5339// -------------------------------------------------------------------
5340
5341class OR_PROTO_DLL MPModelRequest final : public ::google::protobuf::Message
5342/* @@protoc_insertion_point(class_definition:operations_research.MPModelRequest) */ {
5343 public:
5344 inline MPModelRequest() : MPModelRequest(nullptr) {}
5345 ~MPModelRequest() PROTOBUF_FINAL;
5346
5347#if defined(PROTOBUF_CUSTOM_VTABLE)
5348 void operator delete(MPModelRequest* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
5349 SharedDtor(*msg);
5350 ::google::protobuf::internal::SizedDelete(msg, sizeof(MPModelRequest));
5351 }
5352#endif
5353
5354 template <typename = void>
5355 explicit PROTOBUF_CONSTEXPR MPModelRequest(::google::protobuf::internal::ConstantInitialized);
5357 inline MPModelRequest(const MPModelRequest& from) : MPModelRequest(nullptr, from) {}
5358 inline MPModelRequest(MPModelRequest&& from) noexcept
5359 : MPModelRequest(nullptr, ::std::move(from)) {}
5360 inline MPModelRequest& operator=(const MPModelRequest& from) {
5361 CopyFrom(from);
5362 return *this;
5363 }
5364 inline MPModelRequest& operator=(MPModelRequest&& from) noexcept {
5365 if (this == &from) return *this;
5366 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
5367 InternalSwap(&from);
5368 } else {
5369 CopyFrom(from);
5370 }
5371 return *this;
5372 }
5373
5374 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
5375 ABSL_ATTRIBUTE_LIFETIME_BOUND {
5376 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
5377 }
5378 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
5379 ABSL_ATTRIBUTE_LIFETIME_BOUND {
5380 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
5382
5383 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
5384 return GetDescriptor();
5385 }
5386 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
5387 return default_instance().GetMetadata().descriptor;
5388 }
5389 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
5390 return default_instance().GetMetadata().reflection;
5391 }
5392 static const MPModelRequest& default_instance() {
5393 return *reinterpret_cast<const MPModelRequest*>(
5394 &_MPModelRequest_default_instance_);
5395 }
5396 static constexpr int kIndexInFileMessages = 18;
5397 friend void swap(MPModelRequest& a, MPModelRequest& b) { a.Swap(&b); }
5398 inline void Swap(MPModelRequest* PROTOBUF_NONNULL other) {
5399 if (other == this) return;
5400 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
5401 InternalSwap(other);
5402 } else {
5403 ::google::protobuf::internal::GenericSwap(this, other);
5404 }
5405 }
5406 void UnsafeArenaSwap(MPModelRequest* PROTOBUF_NONNULL other) {
5407 if (other == this) return;
5408 ABSL_DCHECK(GetArena() == other->GetArena());
5409 InternalSwap(other);
5410 }
5411
5412 // implements Message ----------------------------------------------
5413
5414 MPModelRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
5415 return ::google::protobuf::Message::DefaultConstruct<MPModelRequest>(arena);
5416 }
5417 using ::google::protobuf::Message::CopyFrom;
5418 void CopyFrom(const MPModelRequest& from);
5419 using ::google::protobuf::Message::MergeFrom;
5420 void MergeFrom(const MPModelRequest& from) { MPModelRequest::MergeImpl(*this, from); }
5422 private:
5423 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
5424 const ::google::protobuf::MessageLite& from_msg);
5425
5426 public:
5427 bool IsInitialized() const {
5428 return true;
5430 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
5431 #if defined(PROTOBUF_CUSTOM_VTABLE)
5432 private:
5433 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
5434 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
5435 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
5436 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
5438 public:
5439 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
5440 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
5441 ::uint8_t* PROTOBUF_NONNULL target,
5442 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
5443 return _InternalSerialize(*this, target, stream);
5444 }
5445 #else // PROTOBUF_CUSTOM_VTABLE
5446 ::size_t ByteSizeLong() const final;
5447 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
5448 ::uint8_t* PROTOBUF_NONNULL target,
5449 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
5450 #endif // PROTOBUF_CUSTOM_VTABLE
5451 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
5452
5453 private:
5454 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
5455 static void SharedDtor(MessageLite& self);
5456 void InternalSwap(MPModelRequest* PROTOBUF_NONNULL other);
5457 private:
5458 template <typename T>
5459 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
5460 static ::absl::string_view FullMessageName() { return "operations_research.MPModelRequest"; }
5461
5462 explicit MPModelRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
5463 MPModelRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MPModelRequest& from);
5464 MPModelRequest(
5465 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, MPModelRequest&& from) noexcept
5466 : MPModelRequest(arena) {
5467 *this = ::std::move(from);
5468 }
5469 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
5470 static void* PROTOBUF_NONNULL PlacementNew_(
5471 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
5472 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
5473 static constexpr auto InternalNewImpl_();
5475 public:
5476 static constexpr auto InternalGenerateClassData_();
5477
5478 ::google::protobuf::Metadata GetMetadata() const;
5479 // nested types ----------------------------------------------------
5499 static inline bool SolverType_IsValid(int value) {
5501 }
5502 static constexpr SolverType SolverType_MIN = MPModelRequest_SolverType_SolverType_MIN;
5505 static inline const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL SolverType_descriptor() {
5508 template <typename T>
5509 static inline const ::std::string& SolverType_Name(T value) {
5512 static inline bool SolverType_Parse(
5513 ::absl::string_view name, SolverType* PROTOBUF_NONNULL value) {
5517 // accessors -------------------------------------------------------
5518 enum : int {
5528 // optional string solver_specific_parameters = 5;
5529 bool has_solver_specific_parameters() const;
5531 const ::std::string& solver_specific_parameters() const;
5532 template <typename Arg_ = const ::std::string&, typename... Args_>
5533 void set_solver_specific_parameters(Arg_&& arg, Args_... args);
5534 ::std::string* PROTOBUF_NONNULL mutable_solver_specific_parameters();
5535 [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_solver_specific_parameters();
5536 void set_allocated_solver_specific_parameters(::std::string* PROTOBUF_NULLABLE value);
5537
5538 private:
5539 const ::std::string& _internal_solver_specific_parameters() const;
5540 PROTOBUF_ALWAYS_INLINE void _internal_set_solver_specific_parameters(const ::std::string& value);
5541 ::std::string* PROTOBUF_NONNULL _internal_mutable_solver_specific_parameters();
5543 public:
5544 // optional .operations_research.MPModelProto model = 1;
5545 bool has_model() const;
5547 const ::operations_research::MPModelProto& model() const;
5548 [[nodiscard]] ::operations_research::MPModelProto* PROTOBUF_NULLABLE release_model();
5550 void set_allocated_model(::operations_research::MPModelProto* PROTOBUF_NULLABLE value);
5553
5554 private:
5555 const ::operations_research::MPModelProto& _internal_model() const;
5556 ::operations_research::MPModelProto* PROTOBUF_NONNULL _internal_mutable_model();
5557
5558 public:
5559 // optional .operations_research.MPModelDeltaProto model_delta = 8;
5560 bool has_model_delta() const;
5561 void clear_model_delta() ;
5562 const ::operations_research::MPModelDeltaProto& model_delta() const;
5563 [[nodiscard]] ::operations_research::MPModelDeltaProto* PROTOBUF_NULLABLE release_model_delta();
5568
5569 private:
5570 const ::operations_research::MPModelDeltaProto& _internal_model_delta() const;
5571 ::operations_research::MPModelDeltaProto* PROTOBUF_NONNULL _internal_mutable_model_delta();
5572
5573 public:
5574 // optional double solver_time_limit_seconds = 3;
5575 bool has_solver_time_limit_seconds() const;
5577 double solver_time_limit_seconds() const;
5578 void set_solver_time_limit_seconds(double value);
5579
5580 private:
5581 double _internal_solver_time_limit_seconds() const;
5582 void _internal_set_solver_time_limit_seconds(double value);
5583
5584 public:
5585 // optional bool enable_internal_solver_output = 4 [default = false];
5588 bool enable_internal_solver_output() const;
5589 void set_enable_internal_solver_output(bool value);
5590
5591 private:
5592 bool _internal_enable_internal_solver_output() const;
5593 void _internal_set_enable_internal_solver_output(bool value);
5594
5595 public:
5596 // optional bool ignore_solver_specific_parameters_failure = 9 [default = false];
5601
5602 private:
5603 bool _internal_ignore_solver_specific_parameters_failure() const;
5604 void _internal_set_ignore_solver_specific_parameters_failure(bool value);
5605
5606 public:
5607 // optional int32 populate_additional_solutions_up_to = 11 [default = 0];
5610 ::int32_t populate_additional_solutions_up_to() const;
5611 void set_populate_additional_solutions_up_to(::int32_t value);
5612
5613 private:
5614 ::int32_t _internal_populate_additional_solutions_up_to() const;
5615 void _internal_set_populate_additional_solutions_up_to(::int32_t value);
5616
5617 public:
5618 // optional .operations_research.MPModelRequest.SolverType solver_type = 2 [default = GLOP_LINEAR_PROGRAMMING];
5619 bool has_solver_type() const;
5620 void clear_solver_type() ;
5623
5624 private:
5625 ::operations_research::MPModelRequest_SolverType _internal_solver_type() const;
5626 void _internal_set_solver_type(::operations_research::MPModelRequest_SolverType value);
5627
5628 public:
5629 // @@protoc_insertion_point(class_scope:operations_research.MPModelRequest)
5630 private:
5631 class _Internal;
5632 friend class ::google::protobuf::internal::TcParser;
5633 static const ::google::protobuf::internal::TcParseTable<4, 8,
5634 3, 0,
5635 2>
5636 _table_;
5637
5638 friend class ::google::protobuf::MessageLite;
5639 friend class ::google::protobuf::Arena;
5640 template <typename T>
5641 friend class ::google::protobuf::Arena::InternalHelper;
5642 using InternalArenaConstructable_ = void;
5643 using DestructorSkippable_ = void;
5644 struct Impl_ {
5645 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
5646 inline explicit Impl_(
5647 ::google::protobuf::internal::InternalVisibility visibility,
5648 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
5649 inline explicit Impl_(
5650 ::google::protobuf::internal::InternalVisibility visibility,
5651 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
5652 const MPModelRequest& from_msg);
5653 ::google::protobuf::internal::HasBits<1> _has_bits_;
5654 ::google::protobuf::internal::CachedSize _cached_size_;
5655 ::google::protobuf::internal::ArenaStringPtr solver_specific_parameters_;
5656 ::operations_research::MPModelProto* PROTOBUF_NULLABLE model_;
5657 ::operations_research::MPModelDeltaProto* PROTOBUF_NULLABLE model_delta_;
5658 double solver_time_limit_seconds_;
5659 bool enable_internal_solver_output_;
5660 bool ignore_solver_specific_parameters_failure_;
5661 ::int32_t populate_additional_solutions_up_to_;
5662 int solver_type_;
5663 PROTOBUF_TSAN_DECLARE_MEMBER
5665 union { Impl_ _impl_; };
5666 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
5667};
5668
5669OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPModelRequest_class_data_;
5670
5671// ===================================================================
5672
5673
5674
5675
5676// ===================================================================
5677
5678
5679#ifdef __GNUC__
5680#pragma GCC diagnostic push
5681#pragma GCC diagnostic ignored "-Wstrict-aliasing"
5682#endif // __GNUC__
5683// -------------------------------------------------------------------
5684
5685// MPVariableProto
5686
5687// optional double lower_bound = 1 [default = -inf];
5689 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U);
5690 return value;
5691}
5693 ::google::protobuf::internal::TSanWrite(&_impl_);
5694 _impl_.lower_bound_ = -std::numeric_limits<double>::infinity();
5695 ClearHasBit(_impl_._has_bits_[0],
5696 0x00000010U);
5697}
5698inline double MPVariableProto::lower_bound() const {
5699 // @@protoc_insertion_point(field_get:operations_research.MPVariableProto.lower_bound)
5700 return _internal_lower_bound();
5701}
5702inline void MPVariableProto::set_lower_bound(double value) {
5703 _internal_set_lower_bound(value);
5704 SetHasBit(_impl_._has_bits_[0], 0x00000010U);
5705 // @@protoc_insertion_point(field_set:operations_research.MPVariableProto.lower_bound)
5706}
5707inline double MPVariableProto::_internal_lower_bound() const {
5708 ::google::protobuf::internal::TSanRead(&_impl_);
5709 return _impl_.lower_bound_;
5710}
5711inline void MPVariableProto::_internal_set_lower_bound(double value) {
5712 ::google::protobuf::internal::TSanWrite(&_impl_);
5713 _impl_.lower_bound_ = value;
5715
5716// optional double upper_bound = 2 [default = inf];
5717inline bool MPVariableProto::has_upper_bound() const {
5718 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U);
5719 return value;
5720}
5722 ::google::protobuf::internal::TSanWrite(&_impl_);
5723 _impl_.upper_bound_ = std::numeric_limits<double>::infinity();
5724 ClearHasBit(_impl_._has_bits_[0],
5725 0x00000020U);
5726}
5727inline double MPVariableProto::upper_bound() const {
5728 // @@protoc_insertion_point(field_get:operations_research.MPVariableProto.upper_bound)
5729 return _internal_upper_bound();
5730}
5731inline void MPVariableProto::set_upper_bound(double value) {
5732 _internal_set_upper_bound(value);
5733 SetHasBit(_impl_._has_bits_[0], 0x00000020U);
5734 // @@protoc_insertion_point(field_set:operations_research.MPVariableProto.upper_bound)
5735}
5736inline double MPVariableProto::_internal_upper_bound() const {
5737 ::google::protobuf::internal::TSanRead(&_impl_);
5738 return _impl_.upper_bound_;
5739}
5740inline void MPVariableProto::_internal_set_upper_bound(double value) {
5741 ::google::protobuf::internal::TSanWrite(&_impl_);
5742 _impl_.upper_bound_ = value;
5744
5745// optional double objective_coefficient = 3 [default = 0];
5747 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U);
5748 return value;
5749}
5751 ::google::protobuf::internal::TSanWrite(&_impl_);
5752 _impl_.objective_coefficient_ = 0;
5753 ClearHasBit(_impl_._has_bits_[0],
5754 0x00000002U);
5755}
5756inline double MPVariableProto::objective_coefficient() const {
5757 // @@protoc_insertion_point(field_get:operations_research.MPVariableProto.objective_coefficient)
5758 return _internal_objective_coefficient();
5759}
5760inline void MPVariableProto::set_objective_coefficient(double value) {
5761 _internal_set_objective_coefficient(value);
5762 SetHasBit(_impl_._has_bits_[0], 0x00000002U);
5763 // @@protoc_insertion_point(field_set:operations_research.MPVariableProto.objective_coefficient)
5764}
5765inline double MPVariableProto::_internal_objective_coefficient() const {
5766 ::google::protobuf::internal::TSanRead(&_impl_);
5767 return _impl_.objective_coefficient_;
5768}
5769inline void MPVariableProto::_internal_set_objective_coefficient(double value) {
5770 ::google::protobuf::internal::TSanWrite(&_impl_);
5771 _impl_.objective_coefficient_ = value;
5773
5774// optional bool is_integer = 4 [default = false];
5775inline bool MPVariableProto::has_is_integer() const {
5776 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U);
5777 return value;
5778}
5780 ::google::protobuf::internal::TSanWrite(&_impl_);
5781 _impl_.is_integer_ = false;
5782 ClearHasBit(_impl_._has_bits_[0],
5783 0x00000004U);
5784}
5785inline bool MPVariableProto::is_integer() const {
5786 // @@protoc_insertion_point(field_get:operations_research.MPVariableProto.is_integer)
5787 return _internal_is_integer();
5788}
5789inline void MPVariableProto::set_is_integer(bool value) {
5790 _internal_set_is_integer(value);
5791 SetHasBit(_impl_._has_bits_[0], 0x00000004U);
5792 // @@protoc_insertion_point(field_set:operations_research.MPVariableProto.is_integer)
5793}
5794inline bool MPVariableProto::_internal_is_integer() const {
5795 ::google::protobuf::internal::TSanRead(&_impl_);
5796 return _impl_.is_integer_;
5797}
5798inline void MPVariableProto::_internal_set_is_integer(bool value) {
5799 ::google::protobuf::internal::TSanWrite(&_impl_);
5800 _impl_.is_integer_ = value;
5802
5803// optional string name = 5 [default = ""];
5804inline bool MPVariableProto::has_name() const {
5805 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U);
5806 return value;
5807}
5808inline void MPVariableProto::clear_name() {
5809 ::google::protobuf::internal::TSanWrite(&_impl_);
5810 _impl_.name_.ClearToEmpty();
5811 ClearHasBit(_impl_._has_bits_[0],
5812 0x00000001U);
5813}
5814inline const ::std::string& MPVariableProto::name() const
5815 ABSL_ATTRIBUTE_LIFETIME_BOUND {
5816 // @@protoc_insertion_point(field_get:operations_research.MPVariableProto.name)
5817 return _internal_name();
5818}
5819template <typename Arg_, typename... Args_>
5820PROTOBUF_ALWAYS_INLINE void MPVariableProto::set_name(Arg_&& arg, Args_... args) {
5821 ::google::protobuf::internal::TSanWrite(&_impl_);
5822 SetHasBit(_impl_._has_bits_[0], 0x00000001U);
5823 _impl_.name_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
5824 // @@protoc_insertion_point(field_set:operations_research.MPVariableProto.name)
5825}
5826inline ::std::string* PROTOBUF_NONNULL MPVariableProto::mutable_name()
5827 ABSL_ATTRIBUTE_LIFETIME_BOUND {
5828 SetHasBit(_impl_._has_bits_[0], 0x00000001U);
5829 ::std::string* _s = _internal_mutable_name();
5830 // @@protoc_insertion_point(field_mutable:operations_research.MPVariableProto.name)
5831 return _s;
5832}
5833inline const ::std::string& MPVariableProto::_internal_name() const {
5834 ::google::protobuf::internal::TSanRead(&_impl_);
5835 return _impl_.name_.Get();
5836}
5837inline void MPVariableProto::_internal_set_name(const ::std::string& value) {
5838 ::google::protobuf::internal::TSanWrite(&_impl_);
5839 _impl_.name_.Set(value, GetArena());
5841inline ::std::string* PROTOBUF_NONNULL MPVariableProto::_internal_mutable_name() {
5842 ::google::protobuf::internal::TSanWrite(&_impl_);
5843 return _impl_.name_.Mutable( GetArena());
5844}
5845inline ::std::string* PROTOBUF_NULLABLE MPVariableProto::release_name() {
5846 ::google::protobuf::internal::TSanWrite(&_impl_);
5847 // @@protoc_insertion_point(field_release:operations_research.MPVariableProto.name)
5848 if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) {
5849 return nullptr;
5850 }
5851 ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
5852 auto* released = _impl_.name_.Release();
5853 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
5854 _impl_.name_.Set("", GetArena());
5855 }
5856 return released;
5857}
5858inline void MPVariableProto::set_allocated_name(::std::string* PROTOBUF_NULLABLE value) {
5859 ::google::protobuf::internal::TSanWrite(&_impl_);
5860 if (value != nullptr) {
5861 SetHasBit(_impl_._has_bits_[0], 0x00000001U);
5862 } else {
5863 ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
5864 }
5865 _impl_.name_.SetAllocated(value, GetArena());
5866 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) {
5867 _impl_.name_.Set("", GetArena());
5868 }
5869 // @@protoc_insertion_point(field_set_allocated:operations_research.MPVariableProto.name)
5870}
5872// optional int32 branching_priority = 6 [default = 0];
5873inline bool MPVariableProto::has_branching_priority() const {
5874 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U);
5875 return value;
5876}
5878 ::google::protobuf::internal::TSanWrite(&_impl_);
5879 _impl_.branching_priority_ = 0;
5880 ClearHasBit(_impl_._has_bits_[0],
5881 0x00000008U);
5882}
5883inline ::int32_t MPVariableProto::branching_priority() const {
5884 // @@protoc_insertion_point(field_get:operations_research.MPVariableProto.branching_priority)
5885 return _internal_branching_priority();
5886}
5887inline void MPVariableProto::set_branching_priority(::int32_t value) {
5888 _internal_set_branching_priority(value);
5889 SetHasBit(_impl_._has_bits_[0], 0x00000008U);
5890 // @@protoc_insertion_point(field_set:operations_research.MPVariableProto.branching_priority)
5891}
5892inline ::int32_t MPVariableProto::_internal_branching_priority() const {
5893 ::google::protobuf::internal::TSanRead(&_impl_);
5894 return _impl_.branching_priority_;
5895}
5896inline void MPVariableProto::_internal_set_branching_priority(::int32_t value) {
5897 ::google::protobuf::internal::TSanWrite(&_impl_);
5898 _impl_.branching_priority_ = value;
5900
5901// -------------------------------------------------------------------
5902
5903// MPConstraintProto
5904
5905// repeated int32 var_index = 6 [packed = true];
5906inline int MPConstraintProto::_internal_var_index_size() const {
5907 return _internal_var_index().size();
5908}
5910 return _internal_var_index_size();
5911}
5913 ::google::protobuf::internal::TSanWrite(&_impl_);
5914 _impl_.var_index_.Clear();
5915 ClearHasBitForRepeated(_impl_._has_bits_[0],
5916 0x00000001U);
5917}
5918inline ::int32_t MPConstraintProto::var_index(int index) const {
5919 // @@protoc_insertion_point(field_get:operations_research.MPConstraintProto.var_index)
5920 return _internal_var_index().Get(index);
5921}
5922inline void MPConstraintProto::set_var_index(int index, ::int32_t value) {
5923 _internal_mutable_var_index()->Set(index, value);
5924 // @@protoc_insertion_point(field_set:operations_research.MPConstraintProto.var_index)
5925}
5926inline void MPConstraintProto::add_var_index(::int32_t value) {
5927 ::google::protobuf::internal::TSanWrite(&_impl_);
5928 _internal_mutable_var_index()->Add(value);
5929 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U);
5930 // @@protoc_insertion_point(field_add:operations_research.MPConstraintProto.var_index)
5931}
5932inline const ::google::protobuf::RepeatedField<::int32_t>& MPConstraintProto::var_index() const
5933 ABSL_ATTRIBUTE_LIFETIME_BOUND {
5934 // @@protoc_insertion_point(field_list:operations_research.MPConstraintProto.var_index)
5935 return _internal_var_index();
5937inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL MPConstraintProto::mutable_var_index()
5938 ABSL_ATTRIBUTE_LIFETIME_BOUND {
5939 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U);
5940 // @@protoc_insertion_point(field_mutable_list:operations_research.MPConstraintProto.var_index)
5941 ::google::protobuf::internal::TSanWrite(&_impl_);
5942 return _internal_mutable_var_index();
5943}
5944inline const ::google::protobuf::RepeatedField<::int32_t>&
5945MPConstraintProto::_internal_var_index() const {
5946 ::google::protobuf::internal::TSanRead(&_impl_);
5947 return _impl_.var_index_;
5948}
5949inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL
5950MPConstraintProto::_internal_mutable_var_index() {
5951 ::google::protobuf::internal::TSanRead(&_impl_);
5952 return &_impl_.var_index_;
5954
5955// repeated double coefficient = 7 [packed = true];
5956inline int MPConstraintProto::_internal_coefficient_size() const {
5957 return _internal_coefficient().size();
5958}
5960 return _internal_coefficient_size();
5961}
5963 ::google::protobuf::internal::TSanWrite(&_impl_);
5964 _impl_.coefficient_.Clear();
5965 ClearHasBitForRepeated(_impl_._has_bits_[0],
5966 0x00000002U);
5967}
5968inline double MPConstraintProto::coefficient(int index) const {
5969 // @@protoc_insertion_point(field_get:operations_research.MPConstraintProto.coefficient)
5970 return _internal_coefficient().Get(index);
5971}
5972inline void MPConstraintProto::set_coefficient(int index, double value) {
5973 _internal_mutable_coefficient()->Set(index, value);
5974 // @@protoc_insertion_point(field_set:operations_research.MPConstraintProto.coefficient)
5975}
5976inline void MPConstraintProto::add_coefficient(double value) {
5977 ::google::protobuf::internal::TSanWrite(&_impl_);
5978 _internal_mutable_coefficient()->Add(value);
5979 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U);
5980 // @@protoc_insertion_point(field_add:operations_research.MPConstraintProto.coefficient)
5981}
5982inline const ::google::protobuf::RepeatedField<double>& MPConstraintProto::coefficient() const
5983 ABSL_ATTRIBUTE_LIFETIME_BOUND {
5984 // @@protoc_insertion_point(field_list:operations_research.MPConstraintProto.coefficient)
5985 return _internal_coefficient();
5987inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL MPConstraintProto::mutable_coefficient()
5988 ABSL_ATTRIBUTE_LIFETIME_BOUND {
5989 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U);
5990 // @@protoc_insertion_point(field_mutable_list:operations_research.MPConstraintProto.coefficient)
5991 ::google::protobuf::internal::TSanWrite(&_impl_);
5992 return _internal_mutable_coefficient();
5993}
5994inline const ::google::protobuf::RepeatedField<double>&
5995MPConstraintProto::_internal_coefficient() const {
5996 ::google::protobuf::internal::TSanRead(&_impl_);
5997 return _impl_.coefficient_;
5998}
5999inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL
6000MPConstraintProto::_internal_mutable_coefficient() {
6001 ::google::protobuf::internal::TSanRead(&_impl_);
6002 return &_impl_.coefficient_;
6004
6005// optional double lower_bound = 2 [default = -inf];
6006inline bool MPConstraintProto::has_lower_bound() const {
6007 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U);
6008 return value;
6011 ::google::protobuf::internal::TSanWrite(&_impl_);
6012 _impl_.lower_bound_ = -std::numeric_limits<double>::infinity();
6013 ClearHasBit(_impl_._has_bits_[0],
6014 0x00000010U);
6015}
6016inline double MPConstraintProto::lower_bound() const {
6017 // @@protoc_insertion_point(field_get:operations_research.MPConstraintProto.lower_bound)
6018 return _internal_lower_bound();
6019}
6020inline void MPConstraintProto::set_lower_bound(double value) {
6021 _internal_set_lower_bound(value);
6022 SetHasBit(_impl_._has_bits_[0], 0x00000010U);
6023 // @@protoc_insertion_point(field_set:operations_research.MPConstraintProto.lower_bound)
6024}
6025inline double MPConstraintProto::_internal_lower_bound() const {
6026 ::google::protobuf::internal::TSanRead(&_impl_);
6027 return _impl_.lower_bound_;
6028}
6029inline void MPConstraintProto::_internal_set_lower_bound(double value) {
6030 ::google::protobuf::internal::TSanWrite(&_impl_);
6031 _impl_.lower_bound_ = value;
6032}
6034// optional double upper_bound = 3 [default = inf];
6035inline bool MPConstraintProto::has_upper_bound() const {
6036 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U);
6037 return value;
6038}
6040 ::google::protobuf::internal::TSanWrite(&_impl_);
6041 _impl_.upper_bound_ = std::numeric_limits<double>::infinity();
6042 ClearHasBit(_impl_._has_bits_[0],
6043 0x00000020U);
6044}
6045inline double MPConstraintProto::upper_bound() const {
6046 // @@protoc_insertion_point(field_get:operations_research.MPConstraintProto.upper_bound)
6047 return _internal_upper_bound();
6048}
6049inline void MPConstraintProto::set_upper_bound(double value) {
6050 _internal_set_upper_bound(value);
6051 SetHasBit(_impl_._has_bits_[0], 0x00000020U);
6052 // @@protoc_insertion_point(field_set:operations_research.MPConstraintProto.upper_bound)
6053}
6054inline double MPConstraintProto::_internal_upper_bound() const {
6055 ::google::protobuf::internal::TSanRead(&_impl_);
6056 return _impl_.upper_bound_;
6057}
6058inline void MPConstraintProto::_internal_set_upper_bound(double value) {
6059 ::google::protobuf::internal::TSanWrite(&_impl_);
6060 _impl_.upper_bound_ = value;
6061}
6063// optional string name = 4 [default = ""];
6064inline bool MPConstraintProto::has_name() const {
6065 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U);
6066 return value;
6067}
6068inline void MPConstraintProto::clear_name() {
6069 ::google::protobuf::internal::TSanWrite(&_impl_);
6070 _impl_.name_.ClearToEmpty();
6071 ClearHasBit(_impl_._has_bits_[0],
6072 0x00000004U);
6073}
6074inline const ::std::string& MPConstraintProto::name() const
6075 ABSL_ATTRIBUTE_LIFETIME_BOUND {
6076 // @@protoc_insertion_point(field_get:operations_research.MPConstraintProto.name)
6077 return _internal_name();
6078}
6079template <typename Arg_, typename... Args_>
6080PROTOBUF_ALWAYS_INLINE void MPConstraintProto::set_name(Arg_&& arg, Args_... args) {
6081 ::google::protobuf::internal::TSanWrite(&_impl_);
6082 SetHasBit(_impl_._has_bits_[0], 0x00000004U);
6083 _impl_.name_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
6084 // @@protoc_insertion_point(field_set:operations_research.MPConstraintProto.name)
6085}
6086inline ::std::string* PROTOBUF_NONNULL MPConstraintProto::mutable_name()
6087 ABSL_ATTRIBUTE_LIFETIME_BOUND {
6088 SetHasBit(_impl_._has_bits_[0], 0x00000004U);
6089 ::std::string* _s = _internal_mutable_name();
6090 // @@protoc_insertion_point(field_mutable:operations_research.MPConstraintProto.name)
6091 return _s;
6092}
6093inline const ::std::string& MPConstraintProto::_internal_name() const {
6094 ::google::protobuf::internal::TSanRead(&_impl_);
6095 return _impl_.name_.Get();
6096}
6097inline void MPConstraintProto::_internal_set_name(const ::std::string& value) {
6098 ::google::protobuf::internal::TSanWrite(&_impl_);
6099 _impl_.name_.Set(value, GetArena());
6100}
6101inline ::std::string* PROTOBUF_NONNULL MPConstraintProto::_internal_mutable_name() {
6102 ::google::protobuf::internal::TSanWrite(&_impl_);
6103 return _impl_.name_.Mutable( GetArena());
6104}
6105inline ::std::string* PROTOBUF_NULLABLE MPConstraintProto::release_name() {
6106 ::google::protobuf::internal::TSanWrite(&_impl_);
6107 // @@protoc_insertion_point(field_release:operations_research.MPConstraintProto.name)
6108 if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) {
6109 return nullptr;
6110 }
6111 ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
6112 auto* released = _impl_.name_.Release();
6113 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
6114 _impl_.name_.Set("", GetArena());
6115 }
6116 return released;
6117}
6118inline void MPConstraintProto::set_allocated_name(::std::string* PROTOBUF_NULLABLE value) {
6119 ::google::protobuf::internal::TSanWrite(&_impl_);
6120 if (value != nullptr) {
6121 SetHasBit(_impl_._has_bits_[0], 0x00000004U);
6122 } else {
6123 ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
6124 }
6125 _impl_.name_.SetAllocated(value, GetArena());
6126 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) {
6127 _impl_.name_.Set("", GetArena());
6128 }
6129 // @@protoc_insertion_point(field_set_allocated:operations_research.MPConstraintProto.name)
6130}
6131
6132// optional bool is_lazy = 5 [default = false];
6133inline bool MPConstraintProto::has_is_lazy() const {
6134 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U);
6135 return value;
6136}
6138 ::google::protobuf::internal::TSanWrite(&_impl_);
6139 _impl_.is_lazy_ = false;
6140 ClearHasBit(_impl_._has_bits_[0],
6141 0x00000008U);
6142}
6143inline bool MPConstraintProto::is_lazy() const {
6144 // @@protoc_insertion_point(field_get:operations_research.MPConstraintProto.is_lazy)
6145 return _internal_is_lazy();
6146}
6147inline void MPConstraintProto::set_is_lazy(bool value) {
6148 _internal_set_is_lazy(value);
6149 SetHasBit(_impl_._has_bits_[0], 0x00000008U);
6150 // @@protoc_insertion_point(field_set:operations_research.MPConstraintProto.is_lazy)
6151}
6152inline bool MPConstraintProto::_internal_is_lazy() const {
6153 ::google::protobuf::internal::TSanRead(&_impl_);
6154 return _impl_.is_lazy_;
6155}
6156inline void MPConstraintProto::_internal_set_is_lazy(bool value) {
6157 ::google::protobuf::internal::TSanWrite(&_impl_);
6158 _impl_.is_lazy_ = value;
6159}
6161// -------------------------------------------------------------------
6162
6163// MPGeneralConstraintProto
6165// optional string name = 1 [default = ""];
6166inline bool MPGeneralConstraintProto::has_name() const {
6167 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U);
6168 return value;
6169}
6171 ::google::protobuf::internal::TSanWrite(&_impl_);
6172 _impl_.name_.ClearToEmpty();
6173 ClearHasBit(_impl_._has_bits_[0],
6174 0x00000001U);
6175}
6176inline const ::std::string& MPGeneralConstraintProto::name() const
6177 ABSL_ATTRIBUTE_LIFETIME_BOUND {
6178 // @@protoc_insertion_point(field_get:operations_research.MPGeneralConstraintProto.name)
6179 return _internal_name();
6180}
6181template <typename Arg_, typename... Args_>
6182PROTOBUF_ALWAYS_INLINE void MPGeneralConstraintProto::set_name(Arg_&& arg, Args_... args) {
6183 ::google::protobuf::internal::TSanWrite(&_impl_);
6184 SetHasBit(_impl_._has_bits_[0], 0x00000001U);
6185 _impl_.name_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
6186 // @@protoc_insertion_point(field_set:operations_research.MPGeneralConstraintProto.name)
6187}
6188inline ::std::string* PROTOBUF_NONNULL MPGeneralConstraintProto::mutable_name()
6189 ABSL_ATTRIBUTE_LIFETIME_BOUND {
6190 SetHasBit(_impl_._has_bits_[0], 0x00000001U);
6191 ::std::string* _s = _internal_mutable_name();
6192 // @@protoc_insertion_point(field_mutable:operations_research.MPGeneralConstraintProto.name)
6193 return _s;
6195inline const ::std::string& MPGeneralConstraintProto::_internal_name() const {
6196 ::google::protobuf::internal::TSanRead(&_impl_);
6197 return _impl_.name_.Get();
6199inline void MPGeneralConstraintProto::_internal_set_name(const ::std::string& value) {
6200 ::google::protobuf::internal::TSanWrite(&_impl_);
6201 _impl_.name_.Set(value, GetArena());
6202}
6203inline ::std::string* PROTOBUF_NONNULL MPGeneralConstraintProto::_internal_mutable_name() {
6204 ::google::protobuf::internal::TSanWrite(&_impl_);
6205 return _impl_.name_.Mutable( GetArena());
6206}
6207inline ::std::string* PROTOBUF_NULLABLE MPGeneralConstraintProto::release_name() {
6208 ::google::protobuf::internal::TSanWrite(&_impl_);
6209 // @@protoc_insertion_point(field_release:operations_research.MPGeneralConstraintProto.name)
6210 if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) {
6211 return nullptr;
6212 }
6213 ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
6214 auto* released = _impl_.name_.Release();
6215 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
6216 _impl_.name_.Set("", GetArena());
6217 }
6218 return released;
6219}
6220inline void MPGeneralConstraintProto::set_allocated_name(::std::string* PROTOBUF_NULLABLE value) {
6221 ::google::protobuf::internal::TSanWrite(&_impl_);
6222 if (value != nullptr) {
6223 SetHasBit(_impl_._has_bits_[0], 0x00000001U);
6224 } else {
6225 ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
6226 }
6227 _impl_.name_.SetAllocated(value, GetArena());
6228 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) {
6229 _impl_.name_.Set("", GetArena());
6230 }
6231 // @@protoc_insertion_point(field_set_allocated:operations_research.MPGeneralConstraintProto.name)
6232}
6233
6234// .operations_research.MPIndicatorConstraint indicator_constraint = 2;
6237}
6238inline bool MPGeneralConstraintProto::_internal_has_indicator_constraint() const {
6239 return general_constraint_case() == kIndicatorConstraint;
6240}
6241inline void MPGeneralConstraintProto::set_has_indicator_constraint() {
6242 _impl_._oneof_case_[0] = kIndicatorConstraint;
6243}
6245 ::google::protobuf::internal::TSanWrite(&_impl_);
6246 if (general_constraint_case() == kIndicatorConstraint) {
6247 if (GetArena() == nullptr) {
6248 delete _impl_.general_constraint_.indicator_constraint_;
6249 } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
6250 ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.general_constraint_.indicator_constraint_);
6251 }
6252 clear_has_general_constraint();
6253 }
6254}
6255inline ::operations_research::MPIndicatorConstraint* PROTOBUF_NULLABLE MPGeneralConstraintProto::release_indicator_constraint() {
6256 // @@protoc_insertion_point(field_release:operations_research.MPGeneralConstraintProto.indicator_constraint)
6257 if (general_constraint_case() == kIndicatorConstraint) {
6258 clear_has_general_constraint();
6259 auto* temp = reinterpret_cast<::operations_research::MPIndicatorConstraint*>(_impl_.general_constraint_.indicator_constraint_);
6260 if (GetArena() != nullptr) {
6261 temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
6262 }
6263 _impl_.general_constraint_.indicator_constraint_ = nullptr;
6264 return temp;
6265 } else {
6266 return nullptr;
6267 }
6268}
6269inline const ::operations_research::MPIndicatorConstraint& MPGeneralConstraintProto::_internal_indicator_constraint() const {
6270 return general_constraint_case() == kIndicatorConstraint ? static_cast<const ::operations_research::MPIndicatorConstraint&>(*reinterpret_cast<::operations_research::MPIndicatorConstraint*>(_impl_.general_constraint_.indicator_constraint_))
6271 : reinterpret_cast<const ::operations_research::MPIndicatorConstraint&>(::operations_research::_MPIndicatorConstraint_default_instance_);
6273inline const ::operations_research::MPIndicatorConstraint& MPGeneralConstraintProto::indicator_constraint() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
6274 // @@protoc_insertion_point(field_get:operations_research.MPGeneralConstraintProto.indicator_constraint)
6275 return _internal_indicator_constraint();
6276}
6277inline ::operations_research::MPIndicatorConstraint* PROTOBUF_NULLABLE MPGeneralConstraintProto::unsafe_arena_release_indicator_constraint() {
6278 // @@protoc_insertion_point(field_unsafe_arena_release:operations_research.MPGeneralConstraintProto.indicator_constraint)
6279 if (general_constraint_case() == kIndicatorConstraint) {
6280 clear_has_general_constraint();
6281 auto* temp = reinterpret_cast<::operations_research::MPIndicatorConstraint*>(_impl_.general_constraint_.indicator_constraint_);
6282 _impl_.general_constraint_.indicator_constraint_ = nullptr;
6283 return temp;
6284 } else {
6285 return nullptr;
6286 }
6287}
6289 ::operations_research::MPIndicatorConstraint* PROTOBUF_NULLABLE value) {
6290 // We rely on the oneof clear method to free the earlier contents
6291 // of this oneof. We can directly use the pointer we're given to
6292 // set the new value.
6293 clear_general_constraint();
6294 if (value) {
6295 set_has_indicator_constraint();
6296 _impl_.general_constraint_.indicator_constraint_ = reinterpret_cast<::google::protobuf::Message*>(value);
6297 }
6298 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.MPGeneralConstraintProto.indicator_constraint)
6299}
6300inline ::operations_research::MPIndicatorConstraint* PROTOBUF_NONNULL MPGeneralConstraintProto::_internal_mutable_indicator_constraint() {
6303 set_has_indicator_constraint();
6304 _impl_.general_constraint_.indicator_constraint_ = reinterpret_cast<::google::protobuf::Message*>(
6305 ::google::protobuf::Message::DefaultConstruct<::operations_research::MPIndicatorConstraint>(GetArena()));
6306 }
6307 return reinterpret_cast<::operations_research::MPIndicatorConstraint*>(_impl_.general_constraint_.indicator_constraint_);
6308}
6309inline ::operations_research::MPIndicatorConstraint* PROTOBUF_NONNULL MPGeneralConstraintProto::mutable_indicator_constraint()
6310 ABSL_ATTRIBUTE_LIFETIME_BOUND {
6311 ::operations_research::MPIndicatorConstraint* _msg = _internal_mutable_indicator_constraint();
6312 // @@protoc_insertion_point(field_mutable:operations_research.MPGeneralConstraintProto.indicator_constraint)
6313 return _msg;
6314}
6315
6316// .operations_research.MPSosConstraint sos_constraint = 3;
6319}
6320inline bool MPGeneralConstraintProto::_internal_has_sos_constraint() const {
6321 return general_constraint_case() == kSosConstraint;
6322}
6323inline void MPGeneralConstraintProto::set_has_sos_constraint() {
6324 _impl_._oneof_case_[0] = kSosConstraint;
6325}
6327 ::google::protobuf::internal::TSanWrite(&_impl_);
6328 if (general_constraint_case() == kSosConstraint) {
6329 if (GetArena() == nullptr) {
6330 delete _impl_.general_constraint_.sos_constraint_;
6331 } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
6332 ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.general_constraint_.sos_constraint_);
6333 }
6334 clear_has_general_constraint();
6335 }
6336}
6337inline ::operations_research::MPSosConstraint* PROTOBUF_NULLABLE MPGeneralConstraintProto::release_sos_constraint() {
6338 // @@protoc_insertion_point(field_release:operations_research.MPGeneralConstraintProto.sos_constraint)
6340 clear_has_general_constraint();
6341 auto* temp = reinterpret_cast<::operations_research::MPSosConstraint*>(_impl_.general_constraint_.sos_constraint_);
6342 if (GetArena() != nullptr) {
6343 temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
6344 }
6345 _impl_.general_constraint_.sos_constraint_ = nullptr;
6346 return temp;
6347 } else {
6348 return nullptr;
6349 }
6350}
6351inline const ::operations_research::MPSosConstraint& MPGeneralConstraintProto::_internal_sos_constraint() const {
6352 return general_constraint_case() == kSosConstraint ? static_cast<const ::operations_research::MPSosConstraint&>(*reinterpret_cast<::operations_research::MPSosConstraint*>(_impl_.general_constraint_.sos_constraint_))
6353 : reinterpret_cast<const ::operations_research::MPSosConstraint&>(::operations_research::_MPSosConstraint_default_instance_);
6355inline const ::operations_research::MPSosConstraint& MPGeneralConstraintProto::sos_constraint() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
6356 // @@protoc_insertion_point(field_get:operations_research.MPGeneralConstraintProto.sos_constraint)
6357 return _internal_sos_constraint();
6358}
6359inline ::operations_research::MPSosConstraint* PROTOBUF_NULLABLE MPGeneralConstraintProto::unsafe_arena_release_sos_constraint() {
6360 // @@protoc_insertion_point(field_unsafe_arena_release:operations_research.MPGeneralConstraintProto.sos_constraint)
6361 if (general_constraint_case() == kSosConstraint) {
6362 clear_has_general_constraint();
6363 auto* temp = reinterpret_cast<::operations_research::MPSosConstraint*>(_impl_.general_constraint_.sos_constraint_);
6364 _impl_.general_constraint_.sos_constraint_ = nullptr;
6365 return temp;
6366 } else {
6367 return nullptr;
6368 }
6369}
6371 ::operations_research::MPSosConstraint* PROTOBUF_NULLABLE value) {
6372 // We rely on the oneof clear method to free the earlier contents
6373 // of this oneof. We can directly use the pointer we're given to
6374 // set the new value.
6375 clear_general_constraint();
6376 if (value) {
6377 set_has_sos_constraint();
6378 _impl_.general_constraint_.sos_constraint_ = reinterpret_cast<::google::protobuf::Message*>(value);
6379 }
6380 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.MPGeneralConstraintProto.sos_constraint)
6381}
6382inline ::operations_research::MPSosConstraint* PROTOBUF_NONNULL MPGeneralConstraintProto::_internal_mutable_sos_constraint() {
6385 set_has_sos_constraint();
6386 _impl_.general_constraint_.sos_constraint_ = reinterpret_cast<::google::protobuf::Message*>(
6387 ::google::protobuf::Message::DefaultConstruct<::operations_research::MPSosConstraint>(GetArena()));
6388 }
6389 return reinterpret_cast<::operations_research::MPSosConstraint*>(_impl_.general_constraint_.sos_constraint_);
6390}
6391inline ::operations_research::MPSosConstraint* PROTOBUF_NONNULL MPGeneralConstraintProto::mutable_sos_constraint()
6392 ABSL_ATTRIBUTE_LIFETIME_BOUND {
6393 ::operations_research::MPSosConstraint* _msg = _internal_mutable_sos_constraint();
6394 // @@protoc_insertion_point(field_mutable:operations_research.MPGeneralConstraintProto.sos_constraint)
6395 return _msg;
6396}
6397
6398// .operations_research.MPQuadraticConstraint quadratic_constraint = 4;
6401}
6402inline bool MPGeneralConstraintProto::_internal_has_quadratic_constraint() const {
6403 return general_constraint_case() == kQuadraticConstraint;
6404}
6405inline void MPGeneralConstraintProto::set_has_quadratic_constraint() {
6406 _impl_._oneof_case_[0] = kQuadraticConstraint;
6407}
6409 ::google::protobuf::internal::TSanWrite(&_impl_);
6410 if (general_constraint_case() == kQuadraticConstraint) {
6411 if (GetArena() == nullptr) {
6412 delete _impl_.general_constraint_.quadratic_constraint_;
6413 } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
6414 ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.general_constraint_.quadratic_constraint_);
6415 }
6416 clear_has_general_constraint();
6417 }
6418}
6419inline ::operations_research::MPQuadraticConstraint* PROTOBUF_NULLABLE MPGeneralConstraintProto::release_quadratic_constraint() {
6420 // @@protoc_insertion_point(field_release:operations_research.MPGeneralConstraintProto.quadratic_constraint)
6422 clear_has_general_constraint();
6423 auto* temp = reinterpret_cast<::operations_research::MPQuadraticConstraint*>(_impl_.general_constraint_.quadratic_constraint_);
6424 if (GetArena() != nullptr) {
6425 temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
6426 }
6427 _impl_.general_constraint_.quadratic_constraint_ = nullptr;
6428 return temp;
6429 } else {
6430 return nullptr;
6431 }
6432}
6433inline const ::operations_research::MPQuadraticConstraint& MPGeneralConstraintProto::_internal_quadratic_constraint() const {
6434 return general_constraint_case() == kQuadraticConstraint ? static_cast<const ::operations_research::MPQuadraticConstraint&>(*reinterpret_cast<::operations_research::MPQuadraticConstraint*>(_impl_.general_constraint_.quadratic_constraint_))
6435 : reinterpret_cast<const ::operations_research::MPQuadraticConstraint&>(::operations_research::_MPQuadraticConstraint_default_instance_);
6437inline const ::operations_research::MPQuadraticConstraint& MPGeneralConstraintProto::quadratic_constraint() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
6438 // @@protoc_insertion_point(field_get:operations_research.MPGeneralConstraintProto.quadratic_constraint)
6439 return _internal_quadratic_constraint();
6440}
6441inline ::operations_research::MPQuadraticConstraint* PROTOBUF_NULLABLE MPGeneralConstraintProto::unsafe_arena_release_quadratic_constraint() {
6442 // @@protoc_insertion_point(field_unsafe_arena_release:operations_research.MPGeneralConstraintProto.quadratic_constraint)
6443 if (general_constraint_case() == kQuadraticConstraint) {
6444 clear_has_general_constraint();
6445 auto* temp = reinterpret_cast<::operations_research::MPQuadraticConstraint*>(_impl_.general_constraint_.quadratic_constraint_);
6446 _impl_.general_constraint_.quadratic_constraint_ = nullptr;
6447 return temp;
6448 } else {
6449 return nullptr;
6450 }
6451}
6453 ::operations_research::MPQuadraticConstraint* PROTOBUF_NULLABLE value) {
6454 // We rely on the oneof clear method to free the earlier contents
6455 // of this oneof. We can directly use the pointer we're given to
6456 // set the new value.
6457 clear_general_constraint();
6458 if (value) {
6459 set_has_quadratic_constraint();
6460 _impl_.general_constraint_.quadratic_constraint_ = reinterpret_cast<::google::protobuf::Message*>(value);
6461 }
6462 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.MPGeneralConstraintProto.quadratic_constraint)
6463}
6464inline ::operations_research::MPQuadraticConstraint* PROTOBUF_NONNULL MPGeneralConstraintProto::_internal_mutable_quadratic_constraint() {
6467 set_has_quadratic_constraint();
6468 _impl_.general_constraint_.quadratic_constraint_ = reinterpret_cast<::google::protobuf::Message*>(
6469 ::google::protobuf::Message::DefaultConstruct<::operations_research::MPQuadraticConstraint>(GetArena()));
6470 }
6471 return reinterpret_cast<::operations_research::MPQuadraticConstraint*>(_impl_.general_constraint_.quadratic_constraint_);
6472}
6473inline ::operations_research::MPQuadraticConstraint* PROTOBUF_NONNULL MPGeneralConstraintProto::mutable_quadratic_constraint()
6474 ABSL_ATTRIBUTE_LIFETIME_BOUND {
6475 ::operations_research::MPQuadraticConstraint* _msg = _internal_mutable_quadratic_constraint();
6476 // @@protoc_insertion_point(field_mutable:operations_research.MPGeneralConstraintProto.quadratic_constraint)
6477 return _msg;
6478}
6479
6480// .operations_research.MPAbsConstraint abs_constraint = 5;
6483}
6484inline bool MPGeneralConstraintProto::_internal_has_abs_constraint() const {
6485 return general_constraint_case() == kAbsConstraint;
6486}
6487inline void MPGeneralConstraintProto::set_has_abs_constraint() {
6488 _impl_._oneof_case_[0] = kAbsConstraint;
6489}
6491 ::google::protobuf::internal::TSanWrite(&_impl_);
6492 if (general_constraint_case() == kAbsConstraint) {
6493 if (GetArena() == nullptr) {
6494 delete _impl_.general_constraint_.abs_constraint_;
6495 } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
6496 ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.general_constraint_.abs_constraint_);
6497 }
6498 clear_has_general_constraint();
6499 }
6500}
6501inline ::operations_research::MPAbsConstraint* PROTOBUF_NULLABLE MPGeneralConstraintProto::release_abs_constraint() {
6502 // @@protoc_insertion_point(field_release:operations_research.MPGeneralConstraintProto.abs_constraint)
6504 clear_has_general_constraint();
6505 auto* temp = reinterpret_cast<::operations_research::MPAbsConstraint*>(_impl_.general_constraint_.abs_constraint_);
6506 if (GetArena() != nullptr) {
6507 temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
6508 }
6509 _impl_.general_constraint_.abs_constraint_ = nullptr;
6510 return temp;
6511 } else {
6512 return nullptr;
6513 }
6514}
6515inline const ::operations_research::MPAbsConstraint& MPGeneralConstraintProto::_internal_abs_constraint() const {
6516 return general_constraint_case() == kAbsConstraint ? static_cast<const ::operations_research::MPAbsConstraint&>(*reinterpret_cast<::operations_research::MPAbsConstraint*>(_impl_.general_constraint_.abs_constraint_))
6517 : reinterpret_cast<const ::operations_research::MPAbsConstraint&>(::operations_research::_MPAbsConstraint_default_instance_);
6519inline const ::operations_research::MPAbsConstraint& MPGeneralConstraintProto::abs_constraint() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
6520 // @@protoc_insertion_point(field_get:operations_research.MPGeneralConstraintProto.abs_constraint)
6521 return _internal_abs_constraint();
6522}
6523inline ::operations_research::MPAbsConstraint* PROTOBUF_NULLABLE MPGeneralConstraintProto::unsafe_arena_release_abs_constraint() {
6524 // @@protoc_insertion_point(field_unsafe_arena_release:operations_research.MPGeneralConstraintProto.abs_constraint)
6525 if (general_constraint_case() == kAbsConstraint) {
6526 clear_has_general_constraint();
6527 auto* temp = reinterpret_cast<::operations_research::MPAbsConstraint*>(_impl_.general_constraint_.abs_constraint_);
6528 _impl_.general_constraint_.abs_constraint_ = nullptr;
6529 return temp;
6530 } else {
6531 return nullptr;
6532 }
6533}
6535 ::operations_research::MPAbsConstraint* PROTOBUF_NULLABLE value) {
6536 // We rely on the oneof clear method to free the earlier contents
6537 // of this oneof. We can directly use the pointer we're given to
6538 // set the new value.
6539 clear_general_constraint();
6540 if (value) {
6541 set_has_abs_constraint();
6542 _impl_.general_constraint_.abs_constraint_ = reinterpret_cast<::google::protobuf::Message*>(value);
6543 }
6544 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.MPGeneralConstraintProto.abs_constraint)
6545}
6546inline ::operations_research::MPAbsConstraint* PROTOBUF_NONNULL MPGeneralConstraintProto::_internal_mutable_abs_constraint() {
6549 set_has_abs_constraint();
6550 _impl_.general_constraint_.abs_constraint_ = reinterpret_cast<::google::protobuf::Message*>(
6551 ::google::protobuf::Message::DefaultConstruct<::operations_research::MPAbsConstraint>(GetArena()));
6552 }
6553 return reinterpret_cast<::operations_research::MPAbsConstraint*>(_impl_.general_constraint_.abs_constraint_);
6554}
6555inline ::operations_research::MPAbsConstraint* PROTOBUF_NONNULL MPGeneralConstraintProto::mutable_abs_constraint()
6556 ABSL_ATTRIBUTE_LIFETIME_BOUND {
6557 ::operations_research::MPAbsConstraint* _msg = _internal_mutable_abs_constraint();
6558 // @@protoc_insertion_point(field_mutable:operations_research.MPGeneralConstraintProto.abs_constraint)
6559 return _msg;
6560}
6561
6562// .operations_research.MPArrayConstraint and_constraint = 6;
6565}
6566inline bool MPGeneralConstraintProto::_internal_has_and_constraint() const {
6567 return general_constraint_case() == kAndConstraint;
6568}
6569inline void MPGeneralConstraintProto::set_has_and_constraint() {
6570 _impl_._oneof_case_[0] = kAndConstraint;
6571}
6573 ::google::protobuf::internal::TSanWrite(&_impl_);
6574 if (general_constraint_case() == kAndConstraint) {
6575 if (GetArena() == nullptr) {
6576 delete _impl_.general_constraint_.and_constraint_;
6577 } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
6578 ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.general_constraint_.and_constraint_);
6579 }
6580 clear_has_general_constraint();
6581 }
6582}
6583inline ::operations_research::MPArrayConstraint* PROTOBUF_NULLABLE MPGeneralConstraintProto::release_and_constraint() {
6584 // @@protoc_insertion_point(field_release:operations_research.MPGeneralConstraintProto.and_constraint)
6586 clear_has_general_constraint();
6587 auto* temp = reinterpret_cast<::operations_research::MPArrayConstraint*>(_impl_.general_constraint_.and_constraint_);
6588 if (GetArena() != nullptr) {
6589 temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
6590 }
6591 _impl_.general_constraint_.and_constraint_ = nullptr;
6592 return temp;
6593 } else {
6594 return nullptr;
6595 }
6596}
6597inline const ::operations_research::MPArrayConstraint& MPGeneralConstraintProto::_internal_and_constraint() const {
6598 return general_constraint_case() == kAndConstraint ? static_cast<const ::operations_research::MPArrayConstraint&>(*reinterpret_cast<::operations_research::MPArrayConstraint*>(_impl_.general_constraint_.and_constraint_))
6599 : reinterpret_cast<const ::operations_research::MPArrayConstraint&>(::operations_research::_MPArrayConstraint_default_instance_);
6601inline const ::operations_research::MPArrayConstraint& MPGeneralConstraintProto::and_constraint() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
6602 // @@protoc_insertion_point(field_get:operations_research.MPGeneralConstraintProto.and_constraint)
6603 return _internal_and_constraint();
6604}
6605inline ::operations_research::MPArrayConstraint* PROTOBUF_NULLABLE MPGeneralConstraintProto::unsafe_arena_release_and_constraint() {
6606 // @@protoc_insertion_point(field_unsafe_arena_release:operations_research.MPGeneralConstraintProto.and_constraint)
6607 if (general_constraint_case() == kAndConstraint) {
6608 clear_has_general_constraint();
6609 auto* temp = reinterpret_cast<::operations_research::MPArrayConstraint*>(_impl_.general_constraint_.and_constraint_);
6610 _impl_.general_constraint_.and_constraint_ = nullptr;
6611 return temp;
6612 } else {
6613 return nullptr;
6614 }
6615}
6617 ::operations_research::MPArrayConstraint* PROTOBUF_NULLABLE value) {
6618 // We rely on the oneof clear method to free the earlier contents
6619 // of this oneof. We can directly use the pointer we're given to
6620 // set the new value.
6621 clear_general_constraint();
6622 if (value) {
6623 set_has_and_constraint();
6624 _impl_.general_constraint_.and_constraint_ = reinterpret_cast<::google::protobuf::Message*>(value);
6625 }
6626 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.MPGeneralConstraintProto.and_constraint)
6627}
6628inline ::operations_research::MPArrayConstraint* PROTOBUF_NONNULL MPGeneralConstraintProto::_internal_mutable_and_constraint() {
6631 set_has_and_constraint();
6632 _impl_.general_constraint_.and_constraint_ = reinterpret_cast<::google::protobuf::Message*>(
6633 ::google::protobuf::Message::DefaultConstruct<::operations_research::MPArrayConstraint>(GetArena()));
6634 }
6635 return reinterpret_cast<::operations_research::MPArrayConstraint*>(_impl_.general_constraint_.and_constraint_);
6636}
6637inline ::operations_research::MPArrayConstraint* PROTOBUF_NONNULL MPGeneralConstraintProto::mutable_and_constraint()
6638 ABSL_ATTRIBUTE_LIFETIME_BOUND {
6639 ::operations_research::MPArrayConstraint* _msg = _internal_mutable_and_constraint();
6640 // @@protoc_insertion_point(field_mutable:operations_research.MPGeneralConstraintProto.and_constraint)
6641 return _msg;
6642}
6643
6644// .operations_research.MPArrayConstraint or_constraint = 7;
6647}
6648inline bool MPGeneralConstraintProto::_internal_has_or_constraint() const {
6649 return general_constraint_case() == kOrConstraint;
6650}
6651inline void MPGeneralConstraintProto::set_has_or_constraint() {
6652 _impl_._oneof_case_[0] = kOrConstraint;
6653}
6655 ::google::protobuf::internal::TSanWrite(&_impl_);
6656 if (general_constraint_case() == kOrConstraint) {
6657 if (GetArena() == nullptr) {
6658 delete _impl_.general_constraint_.or_constraint_;
6659 } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
6660 ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.general_constraint_.or_constraint_);
6661 }
6662 clear_has_general_constraint();
6663 }
6664}
6665inline ::operations_research::MPArrayConstraint* PROTOBUF_NULLABLE MPGeneralConstraintProto::release_or_constraint() {
6666 // @@protoc_insertion_point(field_release:operations_research.MPGeneralConstraintProto.or_constraint)
6668 clear_has_general_constraint();
6669 auto* temp = reinterpret_cast<::operations_research::MPArrayConstraint*>(_impl_.general_constraint_.or_constraint_);
6670 if (GetArena() != nullptr) {
6671 temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
6672 }
6673 _impl_.general_constraint_.or_constraint_ = nullptr;
6674 return temp;
6675 } else {
6676 return nullptr;
6677 }
6678}
6679inline const ::operations_research::MPArrayConstraint& MPGeneralConstraintProto::_internal_or_constraint() const {
6680 return general_constraint_case() == kOrConstraint ? static_cast<const ::operations_research::MPArrayConstraint&>(*reinterpret_cast<::operations_research::MPArrayConstraint*>(_impl_.general_constraint_.or_constraint_))
6681 : reinterpret_cast<const ::operations_research::MPArrayConstraint&>(::operations_research::_MPArrayConstraint_default_instance_);
6683inline const ::operations_research::MPArrayConstraint& MPGeneralConstraintProto::or_constraint() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
6684 // @@protoc_insertion_point(field_get:operations_research.MPGeneralConstraintProto.or_constraint)
6685 return _internal_or_constraint();
6686}
6687inline ::operations_research::MPArrayConstraint* PROTOBUF_NULLABLE MPGeneralConstraintProto::unsafe_arena_release_or_constraint() {
6688 // @@protoc_insertion_point(field_unsafe_arena_release:operations_research.MPGeneralConstraintProto.or_constraint)
6689 if (general_constraint_case() == kOrConstraint) {
6690 clear_has_general_constraint();
6691 auto* temp = reinterpret_cast<::operations_research::MPArrayConstraint*>(_impl_.general_constraint_.or_constraint_);
6692 _impl_.general_constraint_.or_constraint_ = nullptr;
6693 return temp;
6694 } else {
6695 return nullptr;
6696 }
6697}
6699 ::operations_research::MPArrayConstraint* PROTOBUF_NULLABLE value) {
6700 // We rely on the oneof clear method to free the earlier contents
6701 // of this oneof. We can directly use the pointer we're given to
6702 // set the new value.
6703 clear_general_constraint();
6704 if (value) {
6705 set_has_or_constraint();
6706 _impl_.general_constraint_.or_constraint_ = reinterpret_cast<::google::protobuf::Message*>(value);
6707 }
6708 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.MPGeneralConstraintProto.or_constraint)
6709}
6710inline ::operations_research::MPArrayConstraint* PROTOBUF_NONNULL MPGeneralConstraintProto::_internal_mutable_or_constraint() {
6713 set_has_or_constraint();
6714 _impl_.general_constraint_.or_constraint_ = reinterpret_cast<::google::protobuf::Message*>(
6715 ::google::protobuf::Message::DefaultConstruct<::operations_research::MPArrayConstraint>(GetArena()));
6716 }
6717 return reinterpret_cast<::operations_research::MPArrayConstraint*>(_impl_.general_constraint_.or_constraint_);
6718}
6719inline ::operations_research::MPArrayConstraint* PROTOBUF_NONNULL MPGeneralConstraintProto::mutable_or_constraint()
6720 ABSL_ATTRIBUTE_LIFETIME_BOUND {
6721 ::operations_research::MPArrayConstraint* _msg = _internal_mutable_or_constraint();
6722 // @@protoc_insertion_point(field_mutable:operations_research.MPGeneralConstraintProto.or_constraint)
6723 return _msg;
6724}
6725
6726// .operations_research.MPArrayWithConstantConstraint min_constraint = 8;
6729}
6730inline bool MPGeneralConstraintProto::_internal_has_min_constraint() const {
6731 return general_constraint_case() == kMinConstraint;
6732}
6733inline void MPGeneralConstraintProto::set_has_min_constraint() {
6734 _impl_._oneof_case_[0] = kMinConstraint;
6735}
6737 ::google::protobuf::internal::TSanWrite(&_impl_);
6738 if (general_constraint_case() == kMinConstraint) {
6739 if (GetArena() == nullptr) {
6740 delete _impl_.general_constraint_.min_constraint_;
6741 } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
6742 ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.general_constraint_.min_constraint_);
6743 }
6744 clear_has_general_constraint();
6745 }
6746}
6747inline ::operations_research::MPArrayWithConstantConstraint* PROTOBUF_NULLABLE MPGeneralConstraintProto::release_min_constraint() {
6748 // @@protoc_insertion_point(field_release:operations_research.MPGeneralConstraintProto.min_constraint)
6750 clear_has_general_constraint();
6751 auto* temp = reinterpret_cast<::operations_research::MPArrayWithConstantConstraint*>(_impl_.general_constraint_.min_constraint_);
6752 if (GetArena() != nullptr) {
6753 temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
6754 }
6755 _impl_.general_constraint_.min_constraint_ = nullptr;
6756 return temp;
6757 } else {
6758 return nullptr;
6759 }
6760}
6761inline const ::operations_research::MPArrayWithConstantConstraint& MPGeneralConstraintProto::_internal_min_constraint() const {
6762 return general_constraint_case() == kMinConstraint ? static_cast<const ::operations_research::MPArrayWithConstantConstraint&>(*reinterpret_cast<::operations_research::MPArrayWithConstantConstraint*>(_impl_.general_constraint_.min_constraint_))
6763 : reinterpret_cast<const ::operations_research::MPArrayWithConstantConstraint&>(::operations_research::_MPArrayWithConstantConstraint_default_instance_);
6765inline const ::operations_research::MPArrayWithConstantConstraint& MPGeneralConstraintProto::min_constraint() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
6766 // @@protoc_insertion_point(field_get:operations_research.MPGeneralConstraintProto.min_constraint)
6767 return _internal_min_constraint();
6768}
6769inline ::operations_research::MPArrayWithConstantConstraint* PROTOBUF_NULLABLE MPGeneralConstraintProto::unsafe_arena_release_min_constraint() {
6770 // @@protoc_insertion_point(field_unsafe_arena_release:operations_research.MPGeneralConstraintProto.min_constraint)
6771 if (general_constraint_case() == kMinConstraint) {
6772 clear_has_general_constraint();
6773 auto* temp = reinterpret_cast<::operations_research::MPArrayWithConstantConstraint*>(_impl_.general_constraint_.min_constraint_);
6774 _impl_.general_constraint_.min_constraint_ = nullptr;
6775 return temp;
6776 } else {
6777 return nullptr;
6778 }
6779}
6781 ::operations_research::MPArrayWithConstantConstraint* PROTOBUF_NULLABLE value) {
6782 // We rely on the oneof clear method to free the earlier contents
6783 // of this oneof. We can directly use the pointer we're given to
6784 // set the new value.
6785 clear_general_constraint();
6786 if (value) {
6787 set_has_min_constraint();
6788 _impl_.general_constraint_.min_constraint_ = reinterpret_cast<::google::protobuf::Message*>(value);
6789 }
6790 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.MPGeneralConstraintProto.min_constraint)
6791}
6792inline ::operations_research::MPArrayWithConstantConstraint* PROTOBUF_NONNULL MPGeneralConstraintProto::_internal_mutable_min_constraint() {
6795 set_has_min_constraint();
6796 _impl_.general_constraint_.min_constraint_ = reinterpret_cast<::google::protobuf::Message*>(
6797 ::google::protobuf::Message::DefaultConstruct<::operations_research::MPArrayWithConstantConstraint>(GetArena()));
6798 }
6799 return reinterpret_cast<::operations_research::MPArrayWithConstantConstraint*>(_impl_.general_constraint_.min_constraint_);
6800}
6801inline ::operations_research::MPArrayWithConstantConstraint* PROTOBUF_NONNULL MPGeneralConstraintProto::mutable_min_constraint()
6802 ABSL_ATTRIBUTE_LIFETIME_BOUND {
6803 ::operations_research::MPArrayWithConstantConstraint* _msg = _internal_mutable_min_constraint();
6804 // @@protoc_insertion_point(field_mutable:operations_research.MPGeneralConstraintProto.min_constraint)
6805 return _msg;
6806}
6807
6808// .operations_research.MPArrayWithConstantConstraint max_constraint = 9;
6811}
6812inline bool MPGeneralConstraintProto::_internal_has_max_constraint() const {
6813 return general_constraint_case() == kMaxConstraint;
6814}
6815inline void MPGeneralConstraintProto::set_has_max_constraint() {
6816 _impl_._oneof_case_[0] = kMaxConstraint;
6817}
6819 ::google::protobuf::internal::TSanWrite(&_impl_);
6820 if (general_constraint_case() == kMaxConstraint) {
6821 if (GetArena() == nullptr) {
6822 delete _impl_.general_constraint_.max_constraint_;
6823 } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
6824 ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.general_constraint_.max_constraint_);
6825 }
6826 clear_has_general_constraint();
6827 }
6828}
6829inline ::operations_research::MPArrayWithConstantConstraint* PROTOBUF_NULLABLE MPGeneralConstraintProto::release_max_constraint() {
6830 // @@protoc_insertion_point(field_release:operations_research.MPGeneralConstraintProto.max_constraint)
6832 clear_has_general_constraint();
6833 auto* temp = reinterpret_cast<::operations_research::MPArrayWithConstantConstraint*>(_impl_.general_constraint_.max_constraint_);
6834 if (GetArena() != nullptr) {
6835 temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
6836 }
6837 _impl_.general_constraint_.max_constraint_ = nullptr;
6838 return temp;
6839 } else {
6840 return nullptr;
6841 }
6842}
6843inline const ::operations_research::MPArrayWithConstantConstraint& MPGeneralConstraintProto::_internal_max_constraint() const {
6844 return general_constraint_case() == kMaxConstraint ? static_cast<const ::operations_research::MPArrayWithConstantConstraint&>(*reinterpret_cast<::operations_research::MPArrayWithConstantConstraint*>(_impl_.general_constraint_.max_constraint_))
6845 : reinterpret_cast<const ::operations_research::MPArrayWithConstantConstraint&>(::operations_research::_MPArrayWithConstantConstraint_default_instance_);
6847inline const ::operations_research::MPArrayWithConstantConstraint& MPGeneralConstraintProto::max_constraint() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
6848 // @@protoc_insertion_point(field_get:operations_research.MPGeneralConstraintProto.max_constraint)
6849 return _internal_max_constraint();
6850}
6851inline ::operations_research::MPArrayWithConstantConstraint* PROTOBUF_NULLABLE MPGeneralConstraintProto::unsafe_arena_release_max_constraint() {
6852 // @@protoc_insertion_point(field_unsafe_arena_release:operations_research.MPGeneralConstraintProto.max_constraint)
6853 if (general_constraint_case() == kMaxConstraint) {
6854 clear_has_general_constraint();
6855 auto* temp = reinterpret_cast<::operations_research::MPArrayWithConstantConstraint*>(_impl_.general_constraint_.max_constraint_);
6856 _impl_.general_constraint_.max_constraint_ = nullptr;
6857 return temp;
6858 } else {
6859 return nullptr;
6860 }
6861}
6863 ::operations_research::MPArrayWithConstantConstraint* PROTOBUF_NULLABLE value) {
6864 // We rely on the oneof clear method to free the earlier contents
6865 // of this oneof. We can directly use the pointer we're given to
6866 // set the new value.
6867 clear_general_constraint();
6868 if (value) {
6869 set_has_max_constraint();
6870 _impl_.general_constraint_.max_constraint_ = reinterpret_cast<::google::protobuf::Message*>(value);
6871 }
6872 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.MPGeneralConstraintProto.max_constraint)
6873}
6874inline ::operations_research::MPArrayWithConstantConstraint* PROTOBUF_NONNULL MPGeneralConstraintProto::_internal_mutable_max_constraint() {
6877 set_has_max_constraint();
6878 _impl_.general_constraint_.max_constraint_ = reinterpret_cast<::google::protobuf::Message*>(
6879 ::google::protobuf::Message::DefaultConstruct<::operations_research::MPArrayWithConstantConstraint>(GetArena()));
6880 }
6881 return reinterpret_cast<::operations_research::MPArrayWithConstantConstraint*>(_impl_.general_constraint_.max_constraint_);
6882}
6883inline ::operations_research::MPArrayWithConstantConstraint* PROTOBUF_NONNULL MPGeneralConstraintProto::mutable_max_constraint()
6884 ABSL_ATTRIBUTE_LIFETIME_BOUND {
6885 ::operations_research::MPArrayWithConstantConstraint* _msg = _internal_mutable_max_constraint();
6886 // @@protoc_insertion_point(field_mutable:operations_research.MPGeneralConstraintProto.max_constraint)
6887 return _msg;
6888}
6889
6890inline bool MPGeneralConstraintProto::has_general_constraint() const {
6892}
6893inline void MPGeneralConstraintProto::clear_has_general_constraint() {
6894 _impl_._oneof_case_[0] = GENERAL_CONSTRAINT_NOT_SET;
6895}
6897 return MPGeneralConstraintProto::GeneralConstraintCase(_impl_._oneof_case_[0]);
6898}
6899// -------------------------------------------------------------------
6900
6901// MPIndicatorConstraint
6902
6903// optional int32 var_index = 1;
6904inline bool MPIndicatorConstraint::has_var_index() const {
6905 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U);
6906 return value;
6907}
6909 ::google::protobuf::internal::TSanWrite(&_impl_);
6910 _impl_.var_index_ = 0;
6911 ClearHasBit(_impl_._has_bits_[0],
6912 0x00000002U);
6913}
6914inline ::int32_t MPIndicatorConstraint::var_index() const {
6915 // @@protoc_insertion_point(field_get:operations_research.MPIndicatorConstraint.var_index)
6916 return _internal_var_index();
6917}
6918inline void MPIndicatorConstraint::set_var_index(::int32_t value) {
6919 _internal_set_var_index(value);
6920 SetHasBit(_impl_._has_bits_[0], 0x00000002U);
6921 // @@protoc_insertion_point(field_set:operations_research.MPIndicatorConstraint.var_index)
6922}
6923inline ::int32_t MPIndicatorConstraint::_internal_var_index() const {
6924 ::google::protobuf::internal::TSanRead(&_impl_);
6925 return _impl_.var_index_;
6926}
6927inline void MPIndicatorConstraint::_internal_set_var_index(::int32_t value) {
6928 ::google::protobuf::internal::TSanWrite(&_impl_);
6929 _impl_.var_index_ = value;
6930}
6931
6932// optional int32 var_value = 2;
6934 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U);
6935 return value;
6936}
6938 ::google::protobuf::internal::TSanWrite(&_impl_);
6939 _impl_.var_value_ = 0;
6940 ClearHasBit(_impl_._has_bits_[0],
6941 0x00000004U);
6942}
6943inline ::int32_t MPIndicatorConstraint::var_value() const {
6944 // @@protoc_insertion_point(field_get:operations_research.MPIndicatorConstraint.var_value)
6945 return _internal_var_value();
6946}
6947inline void MPIndicatorConstraint::set_var_value(::int32_t value) {
6948 _internal_set_var_value(value);
6949 SetHasBit(_impl_._has_bits_[0], 0x00000004U);
6950 // @@protoc_insertion_point(field_set:operations_research.MPIndicatorConstraint.var_value)
6951}
6952inline ::int32_t MPIndicatorConstraint::_internal_var_value() const {
6953 ::google::protobuf::internal::TSanRead(&_impl_);
6954 return _impl_.var_value_;
6955}
6956inline void MPIndicatorConstraint::_internal_set_var_value(::int32_t value) {
6957 ::google::protobuf::internal::TSanWrite(&_impl_);
6958 _impl_.var_value_ = value;
6959}
6960
6961// optional .operations_research.MPConstraintProto constraint = 3;
6963 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U);
6964 PROTOBUF_ASSUME(!value || _impl_.constraint_ != nullptr);
6965 return value;
6968 ::google::protobuf::internal::TSanWrite(&_impl_);
6969 if (_impl_.constraint_ != nullptr) _impl_.constraint_->Clear();
6970 ClearHasBit(_impl_._has_bits_[0],
6971 0x00000001U);
6973inline const ::operations_research::MPConstraintProto& MPIndicatorConstraint::_internal_constraint() const {
6974 ::google::protobuf::internal::TSanRead(&_impl_);
6975 const ::operations_research::MPConstraintProto* p = _impl_.constraint_;
6977}
6978inline const ::operations_research::MPConstraintProto& MPIndicatorConstraint::constraint() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
6979 // @@protoc_insertion_point(field_get:operations_research.MPIndicatorConstraint.constraint)
6980 return _internal_constraint();
6981}
6983 ::operations_research::MPConstraintProto* PROTOBUF_NULLABLE value) {
6984 ::google::protobuf::internal::TSanWrite(&_impl_);
6985 if (GetArena() == nullptr) {
6986 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.constraint_);
6987 }
6988 _impl_.constraint_ = reinterpret_cast<::operations_research::MPConstraintProto*>(value);
6989 if (value != nullptr) {
6990 SetHasBit(_impl_._has_bits_[0], 0x00000001U);
6991 } else {
6992 ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
6993 }
6994 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.MPIndicatorConstraint.constraint)
6995}
6996inline ::operations_research::MPConstraintProto* PROTOBUF_NULLABLE MPIndicatorConstraint::release_constraint() {
6997 ::google::protobuf::internal::TSanWrite(&_impl_);
6998
6999 ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
7000 ::operations_research::MPConstraintProto* released = _impl_.constraint_;
7001 _impl_.constraint_ = nullptr;
7002 if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
7003 auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
7004 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
7005 if (GetArena() == nullptr) {
7006 delete old;
7008 } else {
7009 if (GetArena() != nullptr) {
7010 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
7012 }
7013 return released;
7014}
7015inline ::operations_research::MPConstraintProto* PROTOBUF_NULLABLE MPIndicatorConstraint::unsafe_arena_release_constraint() {
7016 ::google::protobuf::internal::TSanWrite(&_impl_);
7017 // @@protoc_insertion_point(field_release:operations_research.MPIndicatorConstraint.constraint)
7018
7019 ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
7020 ::operations_research::MPConstraintProto* temp = _impl_.constraint_;
7021 _impl_.constraint_ = nullptr;
7022 return temp;
7023}
7024inline ::operations_research::MPConstraintProto* PROTOBUF_NONNULL MPIndicatorConstraint::_internal_mutable_constraint() {
7025 ::google::protobuf::internal::TSanWrite(&_impl_);
7026 if (_impl_.constraint_ == nullptr) {
7027 auto* p = ::google::protobuf::Message::DefaultConstruct<::operations_research::MPConstraintProto>(GetArena());
7028 _impl_.constraint_ = reinterpret_cast<::operations_research::MPConstraintProto*>(p);
7029 }
7030 return _impl_.constraint_;
7031}
7032inline ::operations_research::MPConstraintProto* PROTOBUF_NONNULL MPIndicatorConstraint::mutable_constraint()
7033 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7034 SetHasBit(_impl_._has_bits_[0], 0x00000001U);
7035 ::operations_research::MPConstraintProto* _msg = _internal_mutable_constraint();
7036 // @@protoc_insertion_point(field_mutable:operations_research.MPIndicatorConstraint.constraint)
7037 return _msg;
7038}
7039inline void MPIndicatorConstraint::set_allocated_constraint(::operations_research::MPConstraintProto* PROTOBUF_NULLABLE value) {
7040 ::google::protobuf::Arena* message_arena = GetArena();
7041 ::google::protobuf::internal::TSanWrite(&_impl_);
7042 if (message_arena == nullptr) {
7043 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.constraint_);
7045
7046 if (value != nullptr) {
7047 ::google::protobuf::Arena* submessage_arena = value->GetArena();
7048 if (message_arena != submessage_arena) {
7049 value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
7050 }
7051 SetHasBit(_impl_._has_bits_[0], 0x00000001U);
7052 } else {
7053 ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
7054 }
7055
7056 _impl_.constraint_ = reinterpret_cast<::operations_research::MPConstraintProto*>(value);
7057 // @@protoc_insertion_point(field_set_allocated:operations_research.MPIndicatorConstraint.constraint)
7058}
7059
7060// -------------------------------------------------------------------
7062// MPSosConstraint
7063
7064// optional .operations_research.MPSosConstraint.Type type = 1 [default = SOS1_DEFAULT];
7065inline bool MPSosConstraint::has_type() const {
7066 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U);
7067 return value;
7069inline void MPSosConstraint::clear_type() {
7070 ::google::protobuf::internal::TSanWrite(&_impl_);
7071 _impl_.type_ = 0;
7072 ClearHasBit(_impl_._has_bits_[0],
7073 0x00000004U);
7074}
7075inline ::operations_research::MPSosConstraint_Type MPSosConstraint::type() const {
7076 // @@protoc_insertion_point(field_get:operations_research.MPSosConstraint.type)
7077 return _internal_type();
7078}
7080 _internal_set_type(value);
7081 SetHasBit(_impl_._has_bits_[0], 0x00000004U);
7082 // @@protoc_insertion_point(field_set:operations_research.MPSosConstraint.type)
7083}
7084inline ::operations_research::MPSosConstraint_Type MPSosConstraint::_internal_type() const {
7085 ::google::protobuf::internal::TSanRead(&_impl_);
7086 return static_cast<::operations_research::MPSosConstraint_Type>(_impl_.type_);
7087}
7088inline void MPSosConstraint::_internal_set_type(::operations_research::MPSosConstraint_Type value) {
7089 ::google::protobuf::internal::TSanWrite(&_impl_);
7090
7091 assert(::google::protobuf::internal::ValidateEnum(
7093 _impl_.type_ = value;
7094}
7096// repeated int32 var_index = 2;
7097inline int MPSosConstraint::_internal_var_index_size() const {
7098 return _internal_var_index().size();
7100inline int MPSosConstraint::var_index_size() const {
7101 return _internal_var_index_size();
7102}
7104 ::google::protobuf::internal::TSanWrite(&_impl_);
7105 _impl_.var_index_.Clear();
7106 ClearHasBitForRepeated(_impl_._has_bits_[0],
7107 0x00000001U);
7108}
7109inline ::int32_t MPSosConstraint::var_index(int index) const {
7110 // @@protoc_insertion_point(field_get:operations_research.MPSosConstraint.var_index)
7111 return _internal_var_index().Get(index);
7112}
7113inline void MPSosConstraint::set_var_index(int index, ::int32_t value) {
7114 _internal_mutable_var_index()->Set(index, value);
7115 // @@protoc_insertion_point(field_set:operations_research.MPSosConstraint.var_index)
7116}
7117inline void MPSosConstraint::add_var_index(::int32_t value) {
7118 ::google::protobuf::internal::TSanWrite(&_impl_);
7119 _internal_mutable_var_index()->Add(value);
7120 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U);
7121 // @@protoc_insertion_point(field_add:operations_research.MPSosConstraint.var_index)
7122}
7123inline const ::google::protobuf::RepeatedField<::int32_t>& MPSosConstraint::var_index() const
7124 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7125 // @@protoc_insertion_point(field_list:operations_research.MPSosConstraint.var_index)
7126 return _internal_var_index();
7127}
7128inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL MPSosConstraint::mutable_var_index()
7129 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7130 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U);
7131 // @@protoc_insertion_point(field_mutable_list:operations_research.MPSosConstraint.var_index)
7132 ::google::protobuf::internal::TSanWrite(&_impl_);
7133 return _internal_mutable_var_index();
7134}
7135inline const ::google::protobuf::RepeatedField<::int32_t>&
7136MPSosConstraint::_internal_var_index() const {
7137 ::google::protobuf::internal::TSanRead(&_impl_);
7138 return _impl_.var_index_;
7140inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL
7141MPSosConstraint::_internal_mutable_var_index() {
7142 ::google::protobuf::internal::TSanRead(&_impl_);
7143 return &_impl_.var_index_;
7144}
7145
7146// repeated double weight = 3;
7147inline int MPSosConstraint::_internal_weight_size() const {
7148 return _internal_weight().size();
7149}
7150inline int MPSosConstraint::weight_size() const {
7151 return _internal_weight_size();
7152}
7154 ::google::protobuf::internal::TSanWrite(&_impl_);
7155 _impl_.weight_.Clear();
7156 ClearHasBitForRepeated(_impl_._has_bits_[0],
7157 0x00000002U);
7159inline double MPSosConstraint::weight(int index) const {
7160 // @@protoc_insertion_point(field_get:operations_research.MPSosConstraint.weight)
7161 return _internal_weight().Get(index);
7162}
7163inline void MPSosConstraint::set_weight(int index, double value) {
7164 _internal_mutable_weight()->Set(index, value);
7165 // @@protoc_insertion_point(field_set:operations_research.MPSosConstraint.weight)
7166}
7167inline void MPSosConstraint::add_weight(double value) {
7168 ::google::protobuf::internal::TSanWrite(&_impl_);
7169 _internal_mutable_weight()->Add(value);
7170 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U);
7171 // @@protoc_insertion_point(field_add:operations_research.MPSosConstraint.weight)
7172}
7173inline const ::google::protobuf::RepeatedField<double>& MPSosConstraint::weight() const
7174 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7175 // @@protoc_insertion_point(field_list:operations_research.MPSosConstraint.weight)
7176 return _internal_weight();
7177}
7178inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL MPSosConstraint::mutable_weight()
7179 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7180 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U);
7181 // @@protoc_insertion_point(field_mutable_list:operations_research.MPSosConstraint.weight)
7182 ::google::protobuf::internal::TSanWrite(&_impl_);
7183 return _internal_mutable_weight();
7184}
7185inline const ::google::protobuf::RepeatedField<double>&
7186MPSosConstraint::_internal_weight() const {
7187 ::google::protobuf::internal::TSanRead(&_impl_);
7188 return _impl_.weight_;
7190inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL
7191MPSosConstraint::_internal_mutable_weight() {
7192 ::google::protobuf::internal::TSanRead(&_impl_);
7193 return &_impl_.weight_;
7194}
7195
7196// -------------------------------------------------------------------
7198// MPQuadraticConstraint
7199
7200// repeated int32 var_index = 1;
7201inline int MPQuadraticConstraint::_internal_var_index_size() const {
7202 return _internal_var_index().size();
7204inline int MPQuadraticConstraint::var_index_size() const {
7205 return _internal_var_index_size();
7206}
7208 ::google::protobuf::internal::TSanWrite(&_impl_);
7209 _impl_.var_index_.Clear();
7210 ClearHasBitForRepeated(_impl_._has_bits_[0],
7211 0x00000001U);
7212}
7213inline ::int32_t MPQuadraticConstraint::var_index(int index) const {
7214 // @@protoc_insertion_point(field_get:operations_research.MPQuadraticConstraint.var_index)
7215 return _internal_var_index().Get(index);
7216}
7217inline void MPQuadraticConstraint::set_var_index(int index, ::int32_t value) {
7218 _internal_mutable_var_index()->Set(index, value);
7219 // @@protoc_insertion_point(field_set:operations_research.MPQuadraticConstraint.var_index)
7220}
7221inline void MPQuadraticConstraint::add_var_index(::int32_t value) {
7222 ::google::protobuf::internal::TSanWrite(&_impl_);
7223 _internal_mutable_var_index()->Add(value);
7224 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U);
7225 // @@protoc_insertion_point(field_add:operations_research.MPQuadraticConstraint.var_index)
7226}
7227inline const ::google::protobuf::RepeatedField<::int32_t>& MPQuadraticConstraint::var_index() const
7228 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7229 // @@protoc_insertion_point(field_list:operations_research.MPQuadraticConstraint.var_index)
7230 return _internal_var_index();
7231}
7232inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL MPQuadraticConstraint::mutable_var_index()
7233 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7234 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U);
7235 // @@protoc_insertion_point(field_mutable_list:operations_research.MPQuadraticConstraint.var_index)
7236 ::google::protobuf::internal::TSanWrite(&_impl_);
7237 return _internal_mutable_var_index();
7239inline const ::google::protobuf::RepeatedField<::int32_t>&
7240MPQuadraticConstraint::_internal_var_index() const {
7241 ::google::protobuf::internal::TSanRead(&_impl_);
7242 return _impl_.var_index_;
7243}
7244inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL
7245MPQuadraticConstraint::_internal_mutable_var_index() {
7246 ::google::protobuf::internal::TSanRead(&_impl_);
7247 return &_impl_.var_index_;
7249
7250// repeated double coefficient = 2;
7251inline int MPQuadraticConstraint::_internal_coefficient_size() const {
7252 return _internal_coefficient().size();
7253}
7254inline int MPQuadraticConstraint::coefficient_size() const {
7255 return _internal_coefficient_size();
7256}
7258 ::google::protobuf::internal::TSanWrite(&_impl_);
7259 _impl_.coefficient_.Clear();
7260 ClearHasBitForRepeated(_impl_._has_bits_[0],
7261 0x00000002U);
7262}
7263inline double MPQuadraticConstraint::coefficient(int index) const {
7264 // @@protoc_insertion_point(field_get:operations_research.MPQuadraticConstraint.coefficient)
7265 return _internal_coefficient().Get(index);
7266}
7267inline void MPQuadraticConstraint::set_coefficient(int index, double value) {
7268 _internal_mutable_coefficient()->Set(index, value);
7269 // @@protoc_insertion_point(field_set:operations_research.MPQuadraticConstraint.coefficient)
7270}
7271inline void MPQuadraticConstraint::add_coefficient(double value) {
7272 ::google::protobuf::internal::TSanWrite(&_impl_);
7273 _internal_mutable_coefficient()->Add(value);
7274 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U);
7275 // @@protoc_insertion_point(field_add:operations_research.MPQuadraticConstraint.coefficient)
7276}
7277inline const ::google::protobuf::RepeatedField<double>& MPQuadraticConstraint::coefficient() const
7278 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7279 // @@protoc_insertion_point(field_list:operations_research.MPQuadraticConstraint.coefficient)
7280 return _internal_coefficient();
7281}
7282inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL MPQuadraticConstraint::mutable_coefficient()
7283 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7284 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U);
7285 // @@protoc_insertion_point(field_mutable_list:operations_research.MPQuadraticConstraint.coefficient)
7286 ::google::protobuf::internal::TSanWrite(&_impl_);
7287 return _internal_mutable_coefficient();
7289inline const ::google::protobuf::RepeatedField<double>&
7290MPQuadraticConstraint::_internal_coefficient() const {
7291 ::google::protobuf::internal::TSanRead(&_impl_);
7292 return _impl_.coefficient_;
7293}
7294inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL
7295MPQuadraticConstraint::_internal_mutable_coefficient() {
7296 ::google::protobuf::internal::TSanRead(&_impl_);
7297 return &_impl_.coefficient_;
7299
7300// repeated int32 qvar1_index = 3;
7301inline int MPQuadraticConstraint::_internal_qvar1_index_size() const {
7302 return _internal_qvar1_index().size();
7303}
7304inline int MPQuadraticConstraint::qvar1_index_size() const {
7305 return _internal_qvar1_index_size();
7306}
7308 ::google::protobuf::internal::TSanWrite(&_impl_);
7309 _impl_.qvar1_index_.Clear();
7310 ClearHasBitForRepeated(_impl_._has_bits_[0],
7311 0x00000004U);
7312}
7313inline ::int32_t MPQuadraticConstraint::qvar1_index(int index) const {
7314 // @@protoc_insertion_point(field_get:operations_research.MPQuadraticConstraint.qvar1_index)
7315 return _internal_qvar1_index().Get(index);
7316}
7317inline void MPQuadraticConstraint::set_qvar1_index(int index, ::int32_t value) {
7318 _internal_mutable_qvar1_index()->Set(index, value);
7319 // @@protoc_insertion_point(field_set:operations_research.MPQuadraticConstraint.qvar1_index)
7320}
7321inline void MPQuadraticConstraint::add_qvar1_index(::int32_t value) {
7322 ::google::protobuf::internal::TSanWrite(&_impl_);
7323 _internal_mutable_qvar1_index()->Add(value);
7324 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000004U);
7325 // @@protoc_insertion_point(field_add:operations_research.MPQuadraticConstraint.qvar1_index)
7326}
7327inline const ::google::protobuf::RepeatedField<::int32_t>& MPQuadraticConstraint::qvar1_index() const
7328 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7329 // @@protoc_insertion_point(field_list:operations_research.MPQuadraticConstraint.qvar1_index)
7330 return _internal_qvar1_index();
7331}
7332inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL MPQuadraticConstraint::mutable_qvar1_index()
7333 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7334 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000004U);
7335 // @@protoc_insertion_point(field_mutable_list:operations_research.MPQuadraticConstraint.qvar1_index)
7336 ::google::protobuf::internal::TSanWrite(&_impl_);
7337 return _internal_mutable_qvar1_index();
7339inline const ::google::protobuf::RepeatedField<::int32_t>&
7340MPQuadraticConstraint::_internal_qvar1_index() const {
7341 ::google::protobuf::internal::TSanRead(&_impl_);
7342 return _impl_.qvar1_index_;
7343}
7344inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL
7345MPQuadraticConstraint::_internal_mutable_qvar1_index() {
7346 ::google::protobuf::internal::TSanRead(&_impl_);
7347 return &_impl_.qvar1_index_;
7349
7350// repeated int32 qvar2_index = 4;
7351inline int MPQuadraticConstraint::_internal_qvar2_index_size() const {
7352 return _internal_qvar2_index().size();
7353}
7354inline int MPQuadraticConstraint::qvar2_index_size() const {
7355 return _internal_qvar2_index_size();
7356}
7358 ::google::protobuf::internal::TSanWrite(&_impl_);
7359 _impl_.qvar2_index_.Clear();
7360 ClearHasBitForRepeated(_impl_._has_bits_[0],
7361 0x00000008U);
7362}
7363inline ::int32_t MPQuadraticConstraint::qvar2_index(int index) const {
7364 // @@protoc_insertion_point(field_get:operations_research.MPQuadraticConstraint.qvar2_index)
7365 return _internal_qvar2_index().Get(index);
7366}
7367inline void MPQuadraticConstraint::set_qvar2_index(int index, ::int32_t value) {
7368 _internal_mutable_qvar2_index()->Set(index, value);
7369 // @@protoc_insertion_point(field_set:operations_research.MPQuadraticConstraint.qvar2_index)
7370}
7371inline void MPQuadraticConstraint::add_qvar2_index(::int32_t value) {
7372 ::google::protobuf::internal::TSanWrite(&_impl_);
7373 _internal_mutable_qvar2_index()->Add(value);
7374 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000008U);
7375 // @@protoc_insertion_point(field_add:operations_research.MPQuadraticConstraint.qvar2_index)
7376}
7377inline const ::google::protobuf::RepeatedField<::int32_t>& MPQuadraticConstraint::qvar2_index() const
7378 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7379 // @@protoc_insertion_point(field_list:operations_research.MPQuadraticConstraint.qvar2_index)
7380 return _internal_qvar2_index();
7381}
7382inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL MPQuadraticConstraint::mutable_qvar2_index()
7383 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7384 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000008U);
7385 // @@protoc_insertion_point(field_mutable_list:operations_research.MPQuadraticConstraint.qvar2_index)
7386 ::google::protobuf::internal::TSanWrite(&_impl_);
7387 return _internal_mutable_qvar2_index();
7389inline const ::google::protobuf::RepeatedField<::int32_t>&
7390MPQuadraticConstraint::_internal_qvar2_index() const {
7391 ::google::protobuf::internal::TSanRead(&_impl_);
7392 return _impl_.qvar2_index_;
7393}
7394inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL
7395MPQuadraticConstraint::_internal_mutable_qvar2_index() {
7396 ::google::protobuf::internal::TSanRead(&_impl_);
7397 return &_impl_.qvar2_index_;
7399
7400// repeated double qcoefficient = 5;
7401inline int MPQuadraticConstraint::_internal_qcoefficient_size() const {
7402 return _internal_qcoefficient().size();
7403}
7405 return _internal_qcoefficient_size();
7406}
7408 ::google::protobuf::internal::TSanWrite(&_impl_);
7409 _impl_.qcoefficient_.Clear();
7410 ClearHasBitForRepeated(_impl_._has_bits_[0],
7411 0x00000010U);
7412}
7413inline double MPQuadraticConstraint::qcoefficient(int index) const {
7414 // @@protoc_insertion_point(field_get:operations_research.MPQuadraticConstraint.qcoefficient)
7415 return _internal_qcoefficient().Get(index);
7416}
7417inline void MPQuadraticConstraint::set_qcoefficient(int index, double value) {
7418 _internal_mutable_qcoefficient()->Set(index, value);
7419 // @@protoc_insertion_point(field_set:operations_research.MPQuadraticConstraint.qcoefficient)
7420}
7421inline void MPQuadraticConstraint::add_qcoefficient(double value) {
7422 ::google::protobuf::internal::TSanWrite(&_impl_);
7423 _internal_mutable_qcoefficient()->Add(value);
7424 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000010U);
7425 // @@protoc_insertion_point(field_add:operations_research.MPQuadraticConstraint.qcoefficient)
7426}
7427inline const ::google::protobuf::RepeatedField<double>& MPQuadraticConstraint::qcoefficient() const
7428 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7429 // @@protoc_insertion_point(field_list:operations_research.MPQuadraticConstraint.qcoefficient)
7430 return _internal_qcoefficient();
7431}
7432inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL MPQuadraticConstraint::mutable_qcoefficient()
7433 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7434 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000010U);
7435 // @@protoc_insertion_point(field_mutable_list:operations_research.MPQuadraticConstraint.qcoefficient)
7436 ::google::protobuf::internal::TSanWrite(&_impl_);
7437 return _internal_mutable_qcoefficient();
7439inline const ::google::protobuf::RepeatedField<double>&
7440MPQuadraticConstraint::_internal_qcoefficient() const {
7441 ::google::protobuf::internal::TSanRead(&_impl_);
7442 return _impl_.qcoefficient_;
7443}
7444inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL
7445MPQuadraticConstraint::_internal_mutable_qcoefficient() {
7446 ::google::protobuf::internal::TSanRead(&_impl_);
7447 return &_impl_.qcoefficient_;
7449
7450// optional double lower_bound = 6 [default = -inf];
7451inline bool MPQuadraticConstraint::has_lower_bound() const {
7452 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U);
7453 return value;
7454}
7456 ::google::protobuf::internal::TSanWrite(&_impl_);
7457 _impl_.lower_bound_ = -std::numeric_limits<double>::infinity();
7458 ClearHasBit(_impl_._has_bits_[0],
7459 0x00000020U);
7460}
7461inline double MPQuadraticConstraint::lower_bound() const {
7462 // @@protoc_insertion_point(field_get:operations_research.MPQuadraticConstraint.lower_bound)
7463 return _internal_lower_bound();
7464}
7465inline void MPQuadraticConstraint::set_lower_bound(double value) {
7466 _internal_set_lower_bound(value);
7467 SetHasBit(_impl_._has_bits_[0], 0x00000020U);
7468 // @@protoc_insertion_point(field_set:operations_research.MPQuadraticConstraint.lower_bound)
7469}
7470inline double MPQuadraticConstraint::_internal_lower_bound() const {
7471 ::google::protobuf::internal::TSanRead(&_impl_);
7472 return _impl_.lower_bound_;
7473}
7474inline void MPQuadraticConstraint::_internal_set_lower_bound(double value) {
7475 ::google::protobuf::internal::TSanWrite(&_impl_);
7476 _impl_.lower_bound_ = value;
7477}
7478
7479// optional double upper_bound = 7 [default = inf];
7480inline bool MPQuadraticConstraint::has_upper_bound() const {
7481 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U);
7482 return value;
7483}
7485 ::google::protobuf::internal::TSanWrite(&_impl_);
7486 _impl_.upper_bound_ = std::numeric_limits<double>::infinity();
7487 ClearHasBit(_impl_._has_bits_[0],
7488 0x00000040U);
7489}
7490inline double MPQuadraticConstraint::upper_bound() const {
7491 // @@protoc_insertion_point(field_get:operations_research.MPQuadraticConstraint.upper_bound)
7492 return _internal_upper_bound();
7493}
7494inline void MPQuadraticConstraint::set_upper_bound(double value) {
7495 _internal_set_upper_bound(value);
7496 SetHasBit(_impl_._has_bits_[0], 0x00000040U);
7497 // @@protoc_insertion_point(field_set:operations_research.MPQuadraticConstraint.upper_bound)
7498}
7499inline double MPQuadraticConstraint::_internal_upper_bound() const {
7500 ::google::protobuf::internal::TSanRead(&_impl_);
7501 return _impl_.upper_bound_;
7502}
7503inline void MPQuadraticConstraint::_internal_set_upper_bound(double value) {
7504 ::google::protobuf::internal::TSanWrite(&_impl_);
7505 _impl_.upper_bound_ = value;
7506}
7507
7508// -------------------------------------------------------------------
7509
7510// MPAbsConstraint
7512// optional int32 var_index = 1;
7513inline bool MPAbsConstraint::has_var_index() const {
7514 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U);
7515 return value;
7516}
7518 ::google::protobuf::internal::TSanWrite(&_impl_);
7519 _impl_.var_index_ = 0;
7520 ClearHasBit(_impl_._has_bits_[0],
7521 0x00000001U);
7522}
7523inline ::int32_t MPAbsConstraint::var_index() const {
7524 // @@protoc_insertion_point(field_get:operations_research.MPAbsConstraint.var_index)
7525 return _internal_var_index();
7526}
7527inline void MPAbsConstraint::set_var_index(::int32_t value) {
7528 _internal_set_var_index(value);
7529 SetHasBit(_impl_._has_bits_[0], 0x00000001U);
7530 // @@protoc_insertion_point(field_set:operations_research.MPAbsConstraint.var_index)
7531}
7532inline ::int32_t MPAbsConstraint::_internal_var_index() const {
7533 ::google::protobuf::internal::TSanRead(&_impl_);
7534 return _impl_.var_index_;
7535}
7536inline void MPAbsConstraint::_internal_set_var_index(::int32_t value) {
7537 ::google::protobuf::internal::TSanWrite(&_impl_);
7538 _impl_.var_index_ = value;
7539}
7540
7541// optional int32 resultant_var_index = 2;
7542inline bool MPAbsConstraint::has_resultant_var_index() const {
7543 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U);
7544 return value;
7547 ::google::protobuf::internal::TSanWrite(&_impl_);
7548 _impl_.resultant_var_index_ = 0;
7549 ClearHasBit(_impl_._has_bits_[0],
7550 0x00000002U);
7551}
7552inline ::int32_t MPAbsConstraint::resultant_var_index() const {
7553 // @@protoc_insertion_point(field_get:operations_research.MPAbsConstraint.resultant_var_index)
7554 return _internal_resultant_var_index();
7556inline void MPAbsConstraint::set_resultant_var_index(::int32_t value) {
7557 _internal_set_resultant_var_index(value);
7558 SetHasBit(_impl_._has_bits_[0], 0x00000002U);
7559 // @@protoc_insertion_point(field_set:operations_research.MPAbsConstraint.resultant_var_index)
7560}
7561inline ::int32_t MPAbsConstraint::_internal_resultant_var_index() const {
7562 ::google::protobuf::internal::TSanRead(&_impl_);
7563 return _impl_.resultant_var_index_;
7564}
7565inline void MPAbsConstraint::_internal_set_resultant_var_index(::int32_t value) {
7566 ::google::protobuf::internal::TSanWrite(&_impl_);
7567 _impl_.resultant_var_index_ = value;
7568}
7569
7570// -------------------------------------------------------------------
7571
7572// MPArrayConstraint
7573
7574// repeated int32 var_index = 1;
7575inline int MPArrayConstraint::_internal_var_index_size() const {
7576 return _internal_var_index().size();
7577}
7579 return _internal_var_index_size();
7580}
7582 ::google::protobuf::internal::TSanWrite(&_impl_);
7583 _impl_.var_index_.Clear();
7584 ClearHasBitForRepeated(_impl_._has_bits_[0],
7585 0x00000001U);
7586}
7587inline ::int32_t MPArrayConstraint::var_index(int index) const {
7588 // @@protoc_insertion_point(field_get:operations_research.MPArrayConstraint.var_index)
7589 return _internal_var_index().Get(index);
7590}
7591inline void MPArrayConstraint::set_var_index(int index, ::int32_t value) {
7592 _internal_mutable_var_index()->Set(index, value);
7593 // @@protoc_insertion_point(field_set:operations_research.MPArrayConstraint.var_index)
7594}
7595inline void MPArrayConstraint::add_var_index(::int32_t value) {
7596 ::google::protobuf::internal::TSanWrite(&_impl_);
7597 _internal_mutable_var_index()->Add(value);
7598 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U);
7599 // @@protoc_insertion_point(field_add:operations_research.MPArrayConstraint.var_index)
7600}
7601inline const ::google::protobuf::RepeatedField<::int32_t>& MPArrayConstraint::var_index() const
7602 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7603 // @@protoc_insertion_point(field_list:operations_research.MPArrayConstraint.var_index)
7604 return _internal_var_index();
7605}
7606inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL MPArrayConstraint::mutable_var_index()
7607 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7608 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U);
7609 // @@protoc_insertion_point(field_mutable_list:operations_research.MPArrayConstraint.var_index)
7610 ::google::protobuf::internal::TSanWrite(&_impl_);
7611 return _internal_mutable_var_index();
7612}
7613inline const ::google::protobuf::RepeatedField<::int32_t>&
7614MPArrayConstraint::_internal_var_index() const {
7615 ::google::protobuf::internal::TSanRead(&_impl_);
7616 return _impl_.var_index_;
7617}
7618inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL
7619MPArrayConstraint::_internal_mutable_var_index() {
7620 ::google::protobuf::internal::TSanRead(&_impl_);
7621 return &_impl_.var_index_;
7622}
7623
7624// optional int32 resultant_var_index = 2;
7626 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U);
7627 return value;
7630 ::google::protobuf::internal::TSanWrite(&_impl_);
7631 _impl_.resultant_var_index_ = 0;
7632 ClearHasBit(_impl_._has_bits_[0],
7633 0x00000002U);
7635inline ::int32_t MPArrayConstraint::resultant_var_index() const {
7636 // @@protoc_insertion_point(field_get:operations_research.MPArrayConstraint.resultant_var_index)
7637 return _internal_resultant_var_index();
7638}
7640 _internal_set_resultant_var_index(value);
7641 SetHasBit(_impl_._has_bits_[0], 0x00000002U);
7642 // @@protoc_insertion_point(field_set:operations_research.MPArrayConstraint.resultant_var_index)
7643}
7644inline ::int32_t MPArrayConstraint::_internal_resultant_var_index() const {
7645 ::google::protobuf::internal::TSanRead(&_impl_);
7646 return _impl_.resultant_var_index_;
7647}
7648inline void MPArrayConstraint::_internal_set_resultant_var_index(::int32_t value) {
7649 ::google::protobuf::internal::TSanWrite(&_impl_);
7650 _impl_.resultant_var_index_ = value;
7651}
7652
7653// -------------------------------------------------------------------
7654
7655// MPArrayWithConstantConstraint
7656
7657// repeated int32 var_index = 1;
7658inline int MPArrayWithConstantConstraint::_internal_var_index_size() const {
7659 return _internal_var_index().size();
7660}
7662 return _internal_var_index_size();
7663}
7665 ::google::protobuf::internal::TSanWrite(&_impl_);
7666 _impl_.var_index_.Clear();
7667 ClearHasBitForRepeated(_impl_._has_bits_[0],
7668 0x00000001U);
7669}
7670inline ::int32_t MPArrayWithConstantConstraint::var_index(int index) const {
7671 // @@protoc_insertion_point(field_get:operations_research.MPArrayWithConstantConstraint.var_index)
7672 return _internal_var_index().Get(index);
7673}
7674inline void MPArrayWithConstantConstraint::set_var_index(int index, ::int32_t value) {
7675 _internal_mutable_var_index()->Set(index, value);
7676 // @@protoc_insertion_point(field_set:operations_research.MPArrayWithConstantConstraint.var_index)
7677}
7678inline void MPArrayWithConstantConstraint::add_var_index(::int32_t value) {
7679 ::google::protobuf::internal::TSanWrite(&_impl_);
7680 _internal_mutable_var_index()->Add(value);
7681 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U);
7682 // @@protoc_insertion_point(field_add:operations_research.MPArrayWithConstantConstraint.var_index)
7683}
7684inline const ::google::protobuf::RepeatedField<::int32_t>& MPArrayWithConstantConstraint::var_index() const
7685 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7686 // @@protoc_insertion_point(field_list:operations_research.MPArrayWithConstantConstraint.var_index)
7687 return _internal_var_index();
7688}
7689inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL MPArrayWithConstantConstraint::mutable_var_index()
7690 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7691 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U);
7692 // @@protoc_insertion_point(field_mutable_list:operations_research.MPArrayWithConstantConstraint.var_index)
7693 ::google::protobuf::internal::TSanWrite(&_impl_);
7694 return _internal_mutable_var_index();
7696inline const ::google::protobuf::RepeatedField<::int32_t>&
7697MPArrayWithConstantConstraint::_internal_var_index() const {
7698 ::google::protobuf::internal::TSanRead(&_impl_);
7699 return _impl_.var_index_;
7700}
7701inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL
7702MPArrayWithConstantConstraint::_internal_mutable_var_index() {
7703 ::google::protobuf::internal::TSanRead(&_impl_);
7704 return &_impl_.var_index_;
7705}
7706
7707// optional double constant = 2;
7709 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U);
7710 return value;
7711}
7713 ::google::protobuf::internal::TSanWrite(&_impl_);
7714 _impl_.constant_ = 0;
7715 ClearHasBit(_impl_._has_bits_[0],
7716 0x00000002U);
7717}
7719 // @@protoc_insertion_point(field_get:operations_research.MPArrayWithConstantConstraint.constant)
7720 return _internal_constant();
7721}
7722inline void MPArrayWithConstantConstraint::set_constant(double value) {
7723 _internal_set_constant(value);
7724 SetHasBit(_impl_._has_bits_[0], 0x00000002U);
7725 // @@protoc_insertion_point(field_set:operations_research.MPArrayWithConstantConstraint.constant)
7726}
7727inline double MPArrayWithConstantConstraint::_internal_constant() const {
7728 ::google::protobuf::internal::TSanRead(&_impl_);
7729 return _impl_.constant_;
7730}
7731inline void MPArrayWithConstantConstraint::_internal_set_constant(double value) {
7732 ::google::protobuf::internal::TSanWrite(&_impl_);
7733 _impl_.constant_ = value;
7734}
7735
7736// optional int32 resultant_var_index = 3;
7738 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U);
7739 return value;
7740}
7742 ::google::protobuf::internal::TSanWrite(&_impl_);
7743 _impl_.resultant_var_index_ = 0;
7744 ClearHasBit(_impl_._has_bits_[0],
7745 0x00000004U);
7748 // @@protoc_insertion_point(field_get:operations_research.MPArrayWithConstantConstraint.resultant_var_index)
7749 return _internal_resultant_var_index();
7750}
7751inline void MPArrayWithConstantConstraint::set_resultant_var_index(::int32_t value) {
7752 _internal_set_resultant_var_index(value);
7753 SetHasBit(_impl_._has_bits_[0], 0x00000004U);
7754 // @@protoc_insertion_point(field_set:operations_research.MPArrayWithConstantConstraint.resultant_var_index)
7755}
7756inline ::int32_t MPArrayWithConstantConstraint::_internal_resultant_var_index() const {
7757 ::google::protobuf::internal::TSanRead(&_impl_);
7758 return _impl_.resultant_var_index_;
7759}
7760inline void MPArrayWithConstantConstraint::_internal_set_resultant_var_index(::int32_t value) {
7761 ::google::protobuf::internal::TSanWrite(&_impl_);
7762 _impl_.resultant_var_index_ = value;
7763}
7764
7765// -------------------------------------------------------------------
7766
7767// MPQuadraticObjective
7768
7769// repeated int32 qvar1_index = 1;
7770inline int MPQuadraticObjective::_internal_qvar1_index_size() const {
7771 return _internal_qvar1_index().size();
7772}
7773inline int MPQuadraticObjective::qvar1_index_size() const {
7774 return _internal_qvar1_index_size();
7777 ::google::protobuf::internal::TSanWrite(&_impl_);
7778 _impl_.qvar1_index_.Clear();
7779 ClearHasBitForRepeated(_impl_._has_bits_[0],
7780 0x00000001U);
7782inline ::int32_t MPQuadraticObjective::qvar1_index(int index) const {
7783 // @@protoc_insertion_point(field_get:operations_research.MPQuadraticObjective.qvar1_index)
7784 return _internal_qvar1_index().Get(index);
7786inline void MPQuadraticObjective::set_qvar1_index(int index, ::int32_t value) {
7787 _internal_mutable_qvar1_index()->Set(index, value);
7788 // @@protoc_insertion_point(field_set:operations_research.MPQuadraticObjective.qvar1_index)
7789}
7790inline void MPQuadraticObjective::add_qvar1_index(::int32_t value) {
7791 ::google::protobuf::internal::TSanWrite(&_impl_);
7792 _internal_mutable_qvar1_index()->Add(value);
7793 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U);
7794 // @@protoc_insertion_point(field_add:operations_research.MPQuadraticObjective.qvar1_index)
7795}
7796inline const ::google::protobuf::RepeatedField<::int32_t>& MPQuadraticObjective::qvar1_index() const
7797 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7798 // @@protoc_insertion_point(field_list:operations_research.MPQuadraticObjective.qvar1_index)
7799 return _internal_qvar1_index();
7800}
7801inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL MPQuadraticObjective::mutable_qvar1_index()
7802 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7803 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U);
7804 // @@protoc_insertion_point(field_mutable_list:operations_research.MPQuadraticObjective.qvar1_index)
7805 ::google::protobuf::internal::TSanWrite(&_impl_);
7806 return _internal_mutable_qvar1_index();
7807}
7808inline const ::google::protobuf::RepeatedField<::int32_t>&
7809MPQuadraticObjective::_internal_qvar1_index() const {
7810 ::google::protobuf::internal::TSanRead(&_impl_);
7811 return _impl_.qvar1_index_;
7812}
7813inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL
7814MPQuadraticObjective::_internal_mutable_qvar1_index() {
7815 ::google::protobuf::internal::TSanRead(&_impl_);
7816 return &_impl_.qvar1_index_;
7818
7819// repeated int32 qvar2_index = 2;
7820inline int MPQuadraticObjective::_internal_qvar2_index_size() const {
7821 return _internal_qvar2_index().size();
7822}
7823inline int MPQuadraticObjective::qvar2_index_size() const {
7824 return _internal_qvar2_index_size();
7827 ::google::protobuf::internal::TSanWrite(&_impl_);
7828 _impl_.qvar2_index_.Clear();
7829 ClearHasBitForRepeated(_impl_._has_bits_[0],
7830 0x00000002U);
7832inline ::int32_t MPQuadraticObjective::qvar2_index(int index) const {
7833 // @@protoc_insertion_point(field_get:operations_research.MPQuadraticObjective.qvar2_index)
7834 return _internal_qvar2_index().Get(index);
7835}
7836inline void MPQuadraticObjective::set_qvar2_index(int index, ::int32_t value) {
7837 _internal_mutable_qvar2_index()->Set(index, value);
7838 // @@protoc_insertion_point(field_set:operations_research.MPQuadraticObjective.qvar2_index)
7839}
7840inline void MPQuadraticObjective::add_qvar2_index(::int32_t value) {
7841 ::google::protobuf::internal::TSanWrite(&_impl_);
7842 _internal_mutable_qvar2_index()->Add(value);
7843 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U);
7844 // @@protoc_insertion_point(field_add:operations_research.MPQuadraticObjective.qvar2_index)
7845}
7846inline const ::google::protobuf::RepeatedField<::int32_t>& MPQuadraticObjective::qvar2_index() const
7847 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7848 // @@protoc_insertion_point(field_list:operations_research.MPQuadraticObjective.qvar2_index)
7849 return _internal_qvar2_index();
7850}
7851inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL MPQuadraticObjective::mutable_qvar2_index()
7852 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7853 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U);
7854 // @@protoc_insertion_point(field_mutable_list:operations_research.MPQuadraticObjective.qvar2_index)
7855 ::google::protobuf::internal::TSanWrite(&_impl_);
7856 return _internal_mutable_qvar2_index();
7857}
7858inline const ::google::protobuf::RepeatedField<::int32_t>&
7859MPQuadraticObjective::_internal_qvar2_index() const {
7860 ::google::protobuf::internal::TSanRead(&_impl_);
7861 return _impl_.qvar2_index_;
7862}
7863inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL
7864MPQuadraticObjective::_internal_mutable_qvar2_index() {
7865 ::google::protobuf::internal::TSanRead(&_impl_);
7866 return &_impl_.qvar2_index_;
7868
7869// repeated double coefficient = 3;
7870inline int MPQuadraticObjective::_internal_coefficient_size() const {
7871 return _internal_coefficient().size();
7872}
7873inline int MPQuadraticObjective::coefficient_size() const {
7874 return _internal_coefficient_size();
7877 ::google::protobuf::internal::TSanWrite(&_impl_);
7878 _impl_.coefficient_.Clear();
7879 ClearHasBitForRepeated(_impl_._has_bits_[0],
7880 0x00000004U);
7882inline double MPQuadraticObjective::coefficient(int index) const {
7883 // @@protoc_insertion_point(field_get:operations_research.MPQuadraticObjective.coefficient)
7884 return _internal_coefficient().Get(index);
7885}
7886inline void MPQuadraticObjective::set_coefficient(int index, double value) {
7887 _internal_mutable_coefficient()->Set(index, value);
7888 // @@protoc_insertion_point(field_set:operations_research.MPQuadraticObjective.coefficient)
7889}
7890inline void MPQuadraticObjective::add_coefficient(double value) {
7891 ::google::protobuf::internal::TSanWrite(&_impl_);
7892 _internal_mutable_coefficient()->Add(value);
7893 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000004U);
7894 // @@protoc_insertion_point(field_add:operations_research.MPQuadraticObjective.coefficient)
7895}
7896inline const ::google::protobuf::RepeatedField<double>& MPQuadraticObjective::coefficient() const
7897 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7898 // @@protoc_insertion_point(field_list:operations_research.MPQuadraticObjective.coefficient)
7899 return _internal_coefficient();
7900}
7901inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL MPQuadraticObjective::mutable_coefficient()
7902 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7903 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000004U);
7904 // @@protoc_insertion_point(field_mutable_list:operations_research.MPQuadraticObjective.coefficient)
7905 ::google::protobuf::internal::TSanWrite(&_impl_);
7906 return _internal_mutable_coefficient();
7907}
7908inline const ::google::protobuf::RepeatedField<double>&
7909MPQuadraticObjective::_internal_coefficient() const {
7910 ::google::protobuf::internal::TSanRead(&_impl_);
7911 return _impl_.coefficient_;
7912}
7913inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL
7914MPQuadraticObjective::_internal_mutable_coefficient() {
7915 ::google::protobuf::internal::TSanRead(&_impl_);
7916 return &_impl_.coefficient_;
7918
7919// -------------------------------------------------------------------
7920
7921// PartialVariableAssignment
7922
7923// repeated int32 var_index = 1 [packed = true];
7924inline int PartialVariableAssignment::_internal_var_index_size() const {
7925 return _internal_var_index().size();
7926}
7928 return _internal_var_index_size();
7929}
7931 ::google::protobuf::internal::TSanWrite(&_impl_);
7932 _impl_.var_index_.Clear();
7933 ClearHasBitForRepeated(_impl_._has_bits_[0],
7934 0x00000001U);
7935}
7936inline ::int32_t PartialVariableAssignment::var_index(int index) const {
7937 // @@protoc_insertion_point(field_get:operations_research.PartialVariableAssignment.var_index)
7938 return _internal_var_index().Get(index);
7939}
7940inline void PartialVariableAssignment::set_var_index(int index, ::int32_t value) {
7941 _internal_mutable_var_index()->Set(index, value);
7942 // @@protoc_insertion_point(field_set:operations_research.PartialVariableAssignment.var_index)
7943}
7944inline void PartialVariableAssignment::add_var_index(::int32_t value) {
7945 ::google::protobuf::internal::TSanWrite(&_impl_);
7946 _internal_mutable_var_index()->Add(value);
7947 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U);
7948 // @@protoc_insertion_point(field_add:operations_research.PartialVariableAssignment.var_index)
7949}
7950inline const ::google::protobuf::RepeatedField<::int32_t>& PartialVariableAssignment::var_index() const
7951 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7952 // @@protoc_insertion_point(field_list:operations_research.PartialVariableAssignment.var_index)
7953 return _internal_var_index();
7954}
7955inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL PartialVariableAssignment::mutable_var_index()
7956 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7957 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U);
7958 // @@protoc_insertion_point(field_mutable_list:operations_research.PartialVariableAssignment.var_index)
7959 ::google::protobuf::internal::TSanWrite(&_impl_);
7960 return _internal_mutable_var_index();
7961}
7962inline const ::google::protobuf::RepeatedField<::int32_t>&
7963PartialVariableAssignment::_internal_var_index() const {
7964 ::google::protobuf::internal::TSanRead(&_impl_);
7965 return _impl_.var_index_;
7967inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL
7968PartialVariableAssignment::_internal_mutable_var_index() {
7969 ::google::protobuf::internal::TSanRead(&_impl_);
7970 return &_impl_.var_index_;
7971}
7973// repeated double var_value = 2 [packed = true];
7974inline int PartialVariableAssignment::_internal_var_value_size() const {
7975 return _internal_var_value().size();
7978 return _internal_var_value_size();
7979}
7981 ::google::protobuf::internal::TSanWrite(&_impl_);
7982 _impl_.var_value_.Clear();
7983 ClearHasBitForRepeated(_impl_._has_bits_[0],
7984 0x00000002U);
7985}
7986inline double PartialVariableAssignment::var_value(int index) const {
7987 // @@protoc_insertion_point(field_get:operations_research.PartialVariableAssignment.var_value)
7988 return _internal_var_value().Get(index);
7989}
7990inline void PartialVariableAssignment::set_var_value(int index, double value) {
7991 _internal_mutable_var_value()->Set(index, value);
7992 // @@protoc_insertion_point(field_set:operations_research.PartialVariableAssignment.var_value)
7993}
7994inline void PartialVariableAssignment::add_var_value(double value) {
7995 ::google::protobuf::internal::TSanWrite(&_impl_);
7996 _internal_mutable_var_value()->Add(value);
7997 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U);
7998 // @@protoc_insertion_point(field_add:operations_research.PartialVariableAssignment.var_value)
7999}
8000inline const ::google::protobuf::RepeatedField<double>& PartialVariableAssignment::var_value() const
8001 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8002 // @@protoc_insertion_point(field_list:operations_research.PartialVariableAssignment.var_value)
8003 return _internal_var_value();
8004}
8005inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL PartialVariableAssignment::mutable_var_value()
8006 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8007 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U);
8008 // @@protoc_insertion_point(field_mutable_list:operations_research.PartialVariableAssignment.var_value)
8009 ::google::protobuf::internal::TSanWrite(&_impl_);
8010 return _internal_mutable_var_value();
8011}
8012inline const ::google::protobuf::RepeatedField<double>&
8013PartialVariableAssignment::_internal_var_value() const {
8014 ::google::protobuf::internal::TSanRead(&_impl_);
8015 return _impl_.var_value_;
8017inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL
8018PartialVariableAssignment::_internal_mutable_var_value() {
8019 ::google::protobuf::internal::TSanRead(&_impl_);
8020 return &_impl_.var_value_;
8021}
8023// -------------------------------------------------------------------
8024
8025// MPModelProto_Annotation
8027// optional .operations_research.MPModelProto.Annotation.TargetType target_type = 1;
8028inline bool MPModelProto_Annotation::has_target_type() const {
8029 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U);
8030 return value;
8031}
8033 ::google::protobuf::internal::TSanWrite(&_impl_);
8034 _impl_.target_type_ = 0;
8035 ClearHasBit(_impl_._has_bits_[0],
8036 0x00000008U);
8037}
8038inline ::operations_research::MPModelProto_Annotation_TargetType MPModelProto_Annotation::target_type() const {
8039 // @@protoc_insertion_point(field_get:operations_research.MPModelProto.Annotation.target_type)
8040 return _internal_target_type();
8043 _internal_set_target_type(value);
8044 SetHasBit(_impl_._has_bits_[0], 0x00000008U);
8045 // @@protoc_insertion_point(field_set:operations_research.MPModelProto.Annotation.target_type)
8046}
8047inline ::operations_research::MPModelProto_Annotation_TargetType MPModelProto_Annotation::_internal_target_type() const {
8048 ::google::protobuf::internal::TSanRead(&_impl_);
8049 return static_cast<::operations_research::MPModelProto_Annotation_TargetType>(_impl_.target_type_);
8050}
8051inline void MPModelProto_Annotation::_internal_set_target_type(::operations_research::MPModelProto_Annotation_TargetType value) {
8052 ::google::protobuf::internal::TSanWrite(&_impl_);
8053
8054 assert(::google::protobuf::internal::ValidateEnum(
8056 _impl_.target_type_ = value;
8057}
8058
8059// optional int32 target_index = 2;
8061 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U);
8062 return value;
8063}
8065 ::google::protobuf::internal::TSanWrite(&_impl_);
8066 _impl_.target_index_ = 0;
8067 ClearHasBit(_impl_._has_bits_[0],
8068 0x00000010U);
8070inline ::int32_t MPModelProto_Annotation::target_index() const {
8071 // @@protoc_insertion_point(field_get:operations_research.MPModelProto.Annotation.target_index)
8072 return _internal_target_index();
8073}
8074inline void MPModelProto_Annotation::set_target_index(::int32_t value) {
8075 _internal_set_target_index(value);
8076 SetHasBit(_impl_._has_bits_[0], 0x00000010U);
8077 // @@protoc_insertion_point(field_set:operations_research.MPModelProto.Annotation.target_index)
8078}
8079inline ::int32_t MPModelProto_Annotation::_internal_target_index() const {
8080 ::google::protobuf::internal::TSanRead(&_impl_);
8081 return _impl_.target_index_;
8082}
8083inline void MPModelProto_Annotation::_internal_set_target_index(::int32_t value) {
8084 ::google::protobuf::internal::TSanWrite(&_impl_);
8085 _impl_.target_index_ = value;
8086}
8087
8088// optional string target_name = 3;
8089inline bool MPModelProto_Annotation::has_target_name() const {
8090 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U);
8091 return value;
8092}
8094 ::google::protobuf::internal::TSanWrite(&_impl_);
8095 _impl_.target_name_.ClearToEmpty();
8096 ClearHasBit(_impl_._has_bits_[0],
8097 0x00000001U);
8098}
8099inline const ::std::string& MPModelProto_Annotation::target_name() const
8100 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8101 // @@protoc_insertion_point(field_get:operations_research.MPModelProto.Annotation.target_name)
8102 return _internal_target_name();
8103}
8104template <typename Arg_, typename... Args_>
8105PROTOBUF_ALWAYS_INLINE void MPModelProto_Annotation::set_target_name(Arg_&& arg, Args_... args) {
8106 ::google::protobuf::internal::TSanWrite(&_impl_);
8107 SetHasBit(_impl_._has_bits_[0], 0x00000001U);
8108 _impl_.target_name_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
8109 // @@protoc_insertion_point(field_set:operations_research.MPModelProto.Annotation.target_name)
8110}
8111inline ::std::string* PROTOBUF_NONNULL MPModelProto_Annotation::mutable_target_name()
8112 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8113 SetHasBit(_impl_._has_bits_[0], 0x00000001U);
8114 ::std::string* _s = _internal_mutable_target_name();
8115 // @@protoc_insertion_point(field_mutable:operations_research.MPModelProto.Annotation.target_name)
8116 return _s;
8117}
8118inline const ::std::string& MPModelProto_Annotation::_internal_target_name() const {
8119 ::google::protobuf::internal::TSanRead(&_impl_);
8120 return _impl_.target_name_.Get();
8121}
8122inline void MPModelProto_Annotation::_internal_set_target_name(const ::std::string& value) {
8123 ::google::protobuf::internal::TSanWrite(&_impl_);
8124 _impl_.target_name_.Set(value, GetArena());
8125}
8126inline ::std::string* PROTOBUF_NONNULL MPModelProto_Annotation::_internal_mutable_target_name() {
8127 ::google::protobuf::internal::TSanWrite(&_impl_);
8128 return _impl_.target_name_.Mutable( GetArena());
8129}
8130inline ::std::string* PROTOBUF_NULLABLE MPModelProto_Annotation::release_target_name() {
8131 ::google::protobuf::internal::TSanWrite(&_impl_);
8132 // @@protoc_insertion_point(field_release:operations_research.MPModelProto.Annotation.target_name)
8133 if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) {
8134 return nullptr;
8135 }
8136 ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
8137 auto* released = _impl_.target_name_.Release();
8138 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
8139 _impl_.target_name_.Set("", GetArena());
8140 }
8141 return released;
8143inline void MPModelProto_Annotation::set_allocated_target_name(::std::string* PROTOBUF_NULLABLE value) {
8144 ::google::protobuf::internal::TSanWrite(&_impl_);
8145 if (value != nullptr) {
8146 SetHasBit(_impl_._has_bits_[0], 0x00000001U);
8147 } else {
8148 ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
8149 }
8150 _impl_.target_name_.SetAllocated(value, GetArena());
8151 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.target_name_.IsDefault()) {
8152 _impl_.target_name_.Set("", GetArena());
8153 }
8154 // @@protoc_insertion_point(field_set_allocated:operations_research.MPModelProto.Annotation.target_name)
8155}
8156
8157// optional string payload_key = 4;
8158inline bool MPModelProto_Annotation::has_payload_key() const {
8159 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U);
8160 return value;
8161}
8163 ::google::protobuf::internal::TSanWrite(&_impl_);
8164 _impl_.payload_key_.ClearToEmpty();
8165 ClearHasBit(_impl_._has_bits_[0],
8166 0x00000002U);
8168inline const ::std::string& MPModelProto_Annotation::payload_key() const
8169 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8170 // @@protoc_insertion_point(field_get:operations_research.MPModelProto.Annotation.payload_key)
8171 return _internal_payload_key();
8172}
8173template <typename Arg_, typename... Args_>
8174PROTOBUF_ALWAYS_INLINE void MPModelProto_Annotation::set_payload_key(Arg_&& arg, Args_... args) {
8175 ::google::protobuf::internal::TSanWrite(&_impl_);
8176 SetHasBit(_impl_._has_bits_[0], 0x00000002U);
8177 _impl_.payload_key_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
8178 // @@protoc_insertion_point(field_set:operations_research.MPModelProto.Annotation.payload_key)
8179}
8180inline ::std::string* PROTOBUF_NONNULL MPModelProto_Annotation::mutable_payload_key()
8181 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8182 SetHasBit(_impl_._has_bits_[0], 0x00000002U);
8183 ::std::string* _s = _internal_mutable_payload_key();
8184 // @@protoc_insertion_point(field_mutable:operations_research.MPModelProto.Annotation.payload_key)
8185 return _s;
8186}
8187inline const ::std::string& MPModelProto_Annotation::_internal_payload_key() const {
8188 ::google::protobuf::internal::TSanRead(&_impl_);
8189 return _impl_.payload_key_.Get();
8190}
8191inline void MPModelProto_Annotation::_internal_set_payload_key(const ::std::string& value) {
8192 ::google::protobuf::internal::TSanWrite(&_impl_);
8193 _impl_.payload_key_.Set(value, GetArena());
8194}
8195inline ::std::string* PROTOBUF_NONNULL MPModelProto_Annotation::_internal_mutable_payload_key() {
8196 ::google::protobuf::internal::TSanWrite(&_impl_);
8197 return _impl_.payload_key_.Mutable( GetArena());
8198}
8199inline ::std::string* PROTOBUF_NULLABLE MPModelProto_Annotation::release_payload_key() {
8200 ::google::protobuf::internal::TSanWrite(&_impl_);
8201 // @@protoc_insertion_point(field_release:operations_research.MPModelProto.Annotation.payload_key)
8202 if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) {
8203 return nullptr;
8204 }
8205 ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
8206 auto* released = _impl_.payload_key_.Release();
8207 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
8208 _impl_.payload_key_.Set("", GetArena());
8209 }
8210 return released;
8212inline void MPModelProto_Annotation::set_allocated_payload_key(::std::string* PROTOBUF_NULLABLE value) {
8213 ::google::protobuf::internal::TSanWrite(&_impl_);
8214 if (value != nullptr) {
8215 SetHasBit(_impl_._has_bits_[0], 0x00000002U);
8216 } else {
8217 ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
8218 }
8219 _impl_.payload_key_.SetAllocated(value, GetArena());
8220 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.payload_key_.IsDefault()) {
8221 _impl_.payload_key_.Set("", GetArena());
8222 }
8223 // @@protoc_insertion_point(field_set_allocated:operations_research.MPModelProto.Annotation.payload_key)
8224}
8225
8226// optional string payload_value = 5;
8228 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U);
8229 return value;
8230}
8232 ::google::protobuf::internal::TSanWrite(&_impl_);
8233 _impl_.payload_value_.ClearToEmpty();
8234 ClearHasBit(_impl_._has_bits_[0],
8235 0x00000004U);
8237inline const ::std::string& MPModelProto_Annotation::payload_value() const
8238 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8239 // @@protoc_insertion_point(field_get:operations_research.MPModelProto.Annotation.payload_value)
8240 return _internal_payload_value();
8241}
8242template <typename Arg_, typename... Args_>
8243PROTOBUF_ALWAYS_INLINE void MPModelProto_Annotation::set_payload_value(Arg_&& arg, Args_... args) {
8244 ::google::protobuf::internal::TSanWrite(&_impl_);
8245 SetHasBit(_impl_._has_bits_[0], 0x00000004U);
8246 _impl_.payload_value_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
8247 // @@protoc_insertion_point(field_set:operations_research.MPModelProto.Annotation.payload_value)
8248}
8249inline ::std::string* PROTOBUF_NONNULL MPModelProto_Annotation::mutable_payload_value()
8250 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8251 SetHasBit(_impl_._has_bits_[0], 0x00000004U);
8252 ::std::string* _s = _internal_mutable_payload_value();
8253 // @@protoc_insertion_point(field_mutable:operations_research.MPModelProto.Annotation.payload_value)
8254 return _s;
8255}
8256inline const ::std::string& MPModelProto_Annotation::_internal_payload_value() const {
8257 ::google::protobuf::internal::TSanRead(&_impl_);
8258 return _impl_.payload_value_.Get();
8259}
8260inline void MPModelProto_Annotation::_internal_set_payload_value(const ::std::string& value) {
8261 ::google::protobuf::internal::TSanWrite(&_impl_);
8262 _impl_.payload_value_.Set(value, GetArena());
8263}
8264inline ::std::string* PROTOBUF_NONNULL MPModelProto_Annotation::_internal_mutable_payload_value() {
8265 ::google::protobuf::internal::TSanWrite(&_impl_);
8266 return _impl_.payload_value_.Mutable( GetArena());
8267}
8268inline ::std::string* PROTOBUF_NULLABLE MPModelProto_Annotation::release_payload_value() {
8269 ::google::protobuf::internal::TSanWrite(&_impl_);
8270 // @@protoc_insertion_point(field_release:operations_research.MPModelProto.Annotation.payload_value)
8271 if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) {
8272 return nullptr;
8273 }
8274 ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
8275 auto* released = _impl_.payload_value_.Release();
8276 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
8277 _impl_.payload_value_.Set("", GetArena());
8278 }
8279 return released;
8281inline void MPModelProto_Annotation::set_allocated_payload_value(::std::string* PROTOBUF_NULLABLE value) {
8282 ::google::protobuf::internal::TSanWrite(&_impl_);
8283 if (value != nullptr) {
8284 SetHasBit(_impl_._has_bits_[0], 0x00000004U);
8285 } else {
8286 ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
8287 }
8288 _impl_.payload_value_.SetAllocated(value, GetArena());
8289 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.payload_value_.IsDefault()) {
8290 _impl_.payload_value_.Set("", GetArena());
8291 }
8292 // @@protoc_insertion_point(field_set_allocated:operations_research.MPModelProto.Annotation.payload_value)
8293}
8294
8295// -------------------------------------------------------------------
8296
8297// MPModelProto
8298
8299// repeated .operations_research.MPVariableProto variable = 3;
8300inline int MPModelProto::_internal_variable_size() const {
8301 return _internal_variable().size();
8302}
8303inline int MPModelProto::variable_size() const {
8304 return _internal_variable_size();
8306inline void MPModelProto::clear_variable() {
8307 ::google::protobuf::internal::TSanWrite(&_impl_);
8308 _impl_.variable_.Clear();
8309 ClearHasBitForRepeated(_impl_._has_bits_[0],
8310 0x00000001U);
8311}
8312inline ::operations_research::MPVariableProto* PROTOBUF_NONNULL MPModelProto::mutable_variable(int index)
8313 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8314 // @@protoc_insertion_point(field_mutable:operations_research.MPModelProto.variable)
8315 return _internal_mutable_variable()->Mutable(index);
8316}
8317inline ::google::protobuf::RepeatedPtrField<::operations_research::MPVariableProto>* PROTOBUF_NONNULL MPModelProto::mutable_variable()
8318 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8319 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U);
8320 // @@protoc_insertion_point(field_mutable_list:operations_research.MPModelProto.variable)
8321 ::google::protobuf::internal::TSanWrite(&_impl_);
8322 return _internal_mutable_variable();
8323}
8324inline const ::operations_research::MPVariableProto& MPModelProto::variable(int index) const
8325 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8326 // @@protoc_insertion_point(field_get:operations_research.MPModelProto.variable)
8327 return _internal_variable().Get(index);
8328}
8329inline ::operations_research::MPVariableProto* PROTOBUF_NONNULL MPModelProto::add_variable()
8330 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8331 ::google::protobuf::internal::TSanWrite(&_impl_);
8333 _internal_mutable_variable()->InternalAddWithArena(
8334 ::google::protobuf::MessageLite::internal_visibility(), GetArena());
8335 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U);
8336 // @@protoc_insertion_point(field_add:operations_research.MPModelProto.variable)
8337 return _add;
8338}
8339inline const ::google::protobuf::RepeatedPtrField<::operations_research::MPVariableProto>& MPModelProto::variable() const
8340 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8341 // @@protoc_insertion_point(field_list:operations_research.MPModelProto.variable)
8342 return _internal_variable();
8343}
8344inline const ::google::protobuf::RepeatedPtrField<::operations_research::MPVariableProto>&
8345MPModelProto::_internal_variable() const {
8346 ::google::protobuf::internal::TSanRead(&_impl_);
8347 return _impl_.variable_;
8348}
8349inline ::google::protobuf::RepeatedPtrField<::operations_research::MPVariableProto>* PROTOBUF_NONNULL
8350MPModelProto::_internal_mutable_variable() {
8351 ::google::protobuf::internal::TSanRead(&_impl_);
8352 return &_impl_.variable_;
8353}
8354
8355// repeated .operations_research.MPConstraintProto constraint = 4;
8356inline int MPModelProto::_internal_constraint_size() const {
8357 return _internal_constraint().size();
8358}
8359inline int MPModelProto::constraint_size() const {
8360 return _internal_constraint_size();
8361}
8363 ::google::protobuf::internal::TSanWrite(&_impl_);
8364 _impl_.constraint_.Clear();
8365 ClearHasBitForRepeated(_impl_._has_bits_[0],
8366 0x00000002U);
8368inline ::operations_research::MPConstraintProto* PROTOBUF_NONNULL MPModelProto::mutable_constraint(int index)
8369 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8370 // @@protoc_insertion_point(field_mutable:operations_research.MPModelProto.constraint)
8371 return _internal_mutable_constraint()->Mutable(index);
8372}
8373inline ::google::protobuf::RepeatedPtrField<::operations_research::MPConstraintProto>* PROTOBUF_NONNULL MPModelProto::mutable_constraint()
8374 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8375 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U);
8376 // @@protoc_insertion_point(field_mutable_list:operations_research.MPModelProto.constraint)
8377 ::google::protobuf::internal::TSanWrite(&_impl_);
8378 return _internal_mutable_constraint();
8379}
8380inline const ::operations_research::MPConstraintProto& MPModelProto::constraint(int index) const
8381 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8382 // @@protoc_insertion_point(field_get:operations_research.MPModelProto.constraint)
8383 return _internal_constraint().Get(index);
8384}
8385inline ::operations_research::MPConstraintProto* PROTOBUF_NONNULL MPModelProto::add_constraint()
8386 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8387 ::google::protobuf::internal::TSanWrite(&_impl_);
8389 _internal_mutable_constraint()->InternalAddWithArena(
8390 ::google::protobuf::MessageLite::internal_visibility(), GetArena());
8391 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U);
8392 // @@protoc_insertion_point(field_add:operations_research.MPModelProto.constraint)
8393 return _add;
8394}
8395inline const ::google::protobuf::RepeatedPtrField<::operations_research::MPConstraintProto>& MPModelProto::constraint() const
8396 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8397 // @@protoc_insertion_point(field_list:operations_research.MPModelProto.constraint)
8398 return _internal_constraint();
8399}
8400inline const ::google::protobuf::RepeatedPtrField<::operations_research::MPConstraintProto>&
8401MPModelProto::_internal_constraint() const {
8402 ::google::protobuf::internal::TSanRead(&_impl_);
8403 return _impl_.constraint_;
8404}
8405inline ::google::protobuf::RepeatedPtrField<::operations_research::MPConstraintProto>* PROTOBUF_NONNULL
8406MPModelProto::_internal_mutable_constraint() {
8407 ::google::protobuf::internal::TSanRead(&_impl_);
8408 return &_impl_.constraint_;
8409}
8410
8411// repeated .operations_research.MPGeneralConstraintProto general_constraint = 7;
8412inline int MPModelProto::_internal_general_constraint_size() const {
8413 return _internal_general_constraint().size();
8414}
8415inline int MPModelProto::general_constraint_size() const {
8416 return _internal_general_constraint_size();
8417}
8419 ::google::protobuf::internal::TSanWrite(&_impl_);
8420 _impl_.general_constraint_.Clear();
8421 ClearHasBitForRepeated(_impl_._has_bits_[0],
8422 0x00000004U);
8424inline ::operations_research::MPGeneralConstraintProto* PROTOBUF_NONNULL MPModelProto::mutable_general_constraint(int index)
8425 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8426 // @@protoc_insertion_point(field_mutable:operations_research.MPModelProto.general_constraint)
8427 return _internal_mutable_general_constraint()->Mutable(index);
8428}
8429inline ::google::protobuf::RepeatedPtrField<::operations_research::MPGeneralConstraintProto>* PROTOBUF_NONNULL MPModelProto::mutable_general_constraint()
8430 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8431 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000004U);
8432 // @@protoc_insertion_point(field_mutable_list:operations_research.MPModelProto.general_constraint)
8433 ::google::protobuf::internal::TSanWrite(&_impl_);
8434 return _internal_mutable_general_constraint();
8435}
8436inline const ::operations_research::MPGeneralConstraintProto& MPModelProto::general_constraint(int index) const
8437 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8438 // @@protoc_insertion_point(field_get:operations_research.MPModelProto.general_constraint)
8439 return _internal_general_constraint().Get(index);
8440}
8441inline ::operations_research::MPGeneralConstraintProto* PROTOBUF_NONNULL MPModelProto::add_general_constraint()
8442 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8443 ::google::protobuf::internal::TSanWrite(&_impl_);
8445 _internal_mutable_general_constraint()->InternalAddWithArena(
8446 ::google::protobuf::MessageLite::internal_visibility(), GetArena());
8447 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000004U);
8448 // @@protoc_insertion_point(field_add:operations_research.MPModelProto.general_constraint)
8449 return _add;
8450}
8451inline const ::google::protobuf::RepeatedPtrField<::operations_research::MPGeneralConstraintProto>& MPModelProto::general_constraint() const
8452 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8453 // @@protoc_insertion_point(field_list:operations_research.MPModelProto.general_constraint)
8454 return _internal_general_constraint();
8455}
8456inline const ::google::protobuf::RepeatedPtrField<::operations_research::MPGeneralConstraintProto>&
8457MPModelProto::_internal_general_constraint() const {
8458 ::google::protobuf::internal::TSanRead(&_impl_);
8459 return _impl_.general_constraint_;
8460}
8461inline ::google::protobuf::RepeatedPtrField<::operations_research::MPGeneralConstraintProto>* PROTOBUF_NONNULL
8462MPModelProto::_internal_mutable_general_constraint() {
8463 ::google::protobuf::internal::TSanRead(&_impl_);
8464 return &_impl_.general_constraint_;
8465}
8466
8467// optional bool maximize = 1 [default = false];
8468inline bool MPModelProto::has_maximize() const {
8469 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000100U);
8470 return value;
8471}
8472inline void MPModelProto::clear_maximize() {
8473 ::google::protobuf::internal::TSanWrite(&_impl_);
8474 _impl_.maximize_ = false;
8475 ClearHasBit(_impl_._has_bits_[0],
8476 0x00000100U);
8477}
8478inline bool MPModelProto::maximize() const {
8479 // @@protoc_insertion_point(field_get:operations_research.MPModelProto.maximize)
8480 return _internal_maximize();
8481}
8482inline void MPModelProto::set_maximize(bool value) {
8483 _internal_set_maximize(value);
8484 SetHasBit(_impl_._has_bits_[0], 0x00000100U);
8485 // @@protoc_insertion_point(field_set:operations_research.MPModelProto.maximize)
8486}
8487inline bool MPModelProto::_internal_maximize() const {
8488 ::google::protobuf::internal::TSanRead(&_impl_);
8489 return _impl_.maximize_;
8490}
8491inline void MPModelProto::_internal_set_maximize(bool value) {
8492 ::google::protobuf::internal::TSanWrite(&_impl_);
8493 _impl_.maximize_ = value;
8494}
8495
8496// optional double objective_offset = 2 [default = 0];
8497inline bool MPModelProto::has_objective_offset() const {
8498 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000080U);
8499 return value;
8500}
8502 ::google::protobuf::internal::TSanWrite(&_impl_);
8503 _impl_.objective_offset_ = 0;
8504 ClearHasBit(_impl_._has_bits_[0],
8505 0x00000080U);
8507inline double MPModelProto::objective_offset() const {
8508 // @@protoc_insertion_point(field_get:operations_research.MPModelProto.objective_offset)
8509 return _internal_objective_offset();
8511inline void MPModelProto::set_objective_offset(double value) {
8512 _internal_set_objective_offset(value);
8513 SetHasBit(_impl_._has_bits_[0], 0x00000080U);
8514 // @@protoc_insertion_point(field_set:operations_research.MPModelProto.objective_offset)
8515}
8516inline double MPModelProto::_internal_objective_offset() const {
8517 ::google::protobuf::internal::TSanRead(&_impl_);
8518 return _impl_.objective_offset_;
8519}
8520inline void MPModelProto::_internal_set_objective_offset(double value) {
8521 ::google::protobuf::internal::TSanWrite(&_impl_);
8522 _impl_.objective_offset_ = value;
8523}
8524
8525// optional .operations_research.MPQuadraticObjective quadratic_objective = 8;
8526inline bool MPModelProto::has_quadratic_objective() const {
8527 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U);
8528 PROTOBUF_ASSUME(!value || _impl_.quadratic_objective_ != nullptr);
8529 return value;
8530}
8532 ::google::protobuf::internal::TSanWrite(&_impl_);
8533 if (_impl_.quadratic_objective_ != nullptr) _impl_.quadratic_objective_->Clear();
8534 ClearHasBit(_impl_._has_bits_[0],
8535 0x00000040U);
8536}
8537inline const ::operations_research::MPQuadraticObjective& MPModelProto::_internal_quadratic_objective() const {
8538 ::google::protobuf::internal::TSanRead(&_impl_);
8539 const ::operations_research::MPQuadraticObjective* p = _impl_.quadratic_objective_;
8541}
8542inline const ::operations_research::MPQuadraticObjective& MPModelProto::quadratic_objective() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
8543 // @@protoc_insertion_point(field_get:operations_research.MPModelProto.quadratic_objective)
8544 return _internal_quadratic_objective();
8547 ::operations_research::MPQuadraticObjective* PROTOBUF_NULLABLE value) {
8548 ::google::protobuf::internal::TSanWrite(&_impl_);
8549 if (GetArena() == nullptr) {
8550 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.quadratic_objective_);
8551 }
8552 _impl_.quadratic_objective_ = reinterpret_cast<::operations_research::MPQuadraticObjective*>(value);
8553 if (value != nullptr) {
8554 SetHasBit(_impl_._has_bits_[0], 0x00000040U);
8555 } else {
8556 ClearHasBit(_impl_._has_bits_[0], 0x00000040U);
8557 }
8558 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.MPModelProto.quadratic_objective)
8559}
8560inline ::operations_research::MPQuadraticObjective* PROTOBUF_NULLABLE MPModelProto::release_quadratic_objective() {
8561 ::google::protobuf::internal::TSanWrite(&_impl_);
8562
8563 ClearHasBit(_impl_._has_bits_[0], 0x00000040U);
8564 ::operations_research::MPQuadraticObjective* released = _impl_.quadratic_objective_;
8565 _impl_.quadratic_objective_ = nullptr;
8566 if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
8567 auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
8568 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
8569 if (GetArena() == nullptr) {
8570 delete old;
8571 }
8572 } else {
8573 if (GetArena() != nullptr) {
8574 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
8575 }
8576 }
8577 return released;
8578}
8579inline ::operations_research::MPQuadraticObjective* PROTOBUF_NULLABLE MPModelProto::unsafe_arena_release_quadratic_objective() {
8580 ::google::protobuf::internal::TSanWrite(&_impl_);
8581 // @@protoc_insertion_point(field_release:operations_research.MPModelProto.quadratic_objective)
8582
8583 ClearHasBit(_impl_._has_bits_[0], 0x00000040U);
8585 _impl_.quadratic_objective_ = nullptr;
8586 return temp;
8587}
8588inline ::operations_research::MPQuadraticObjective* PROTOBUF_NONNULL MPModelProto::_internal_mutable_quadratic_objective() {
8589 ::google::protobuf::internal::TSanWrite(&_impl_);
8590 if (_impl_.quadratic_objective_ == nullptr) {
8591 auto* p = ::google::protobuf::Message::DefaultConstruct<::operations_research::MPQuadraticObjective>(GetArena());
8592 _impl_.quadratic_objective_ = reinterpret_cast<::operations_research::MPQuadraticObjective*>(p);
8593 }
8594 return _impl_.quadratic_objective_;
8595}
8596inline ::operations_research::MPQuadraticObjective* PROTOBUF_NONNULL MPModelProto::mutable_quadratic_objective()
8597 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8598 SetHasBit(_impl_._has_bits_[0], 0x00000040U);
8599 ::operations_research::MPQuadraticObjective* _msg = _internal_mutable_quadratic_objective();
8600 // @@protoc_insertion_point(field_mutable:operations_research.MPModelProto.quadratic_objective)
8601 return _msg;
8602}
8604 ::google::protobuf::Arena* message_arena = GetArena();
8605 ::google::protobuf::internal::TSanWrite(&_impl_);
8606 if (message_arena == nullptr) {
8607 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.quadratic_objective_);
8608 }
8609
8610 if (value != nullptr) {
8611 ::google::protobuf::Arena* submessage_arena = value->GetArena();
8612 if (message_arena != submessage_arena) {
8613 value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
8614 }
8615 SetHasBit(_impl_._has_bits_[0], 0x00000040U);
8616 } else {
8617 ClearHasBit(_impl_._has_bits_[0], 0x00000040U);
8618 }
8619
8620 _impl_.quadratic_objective_ = reinterpret_cast<::operations_research::MPQuadraticObjective*>(value);
8621 // @@protoc_insertion_point(field_set_allocated:operations_research.MPModelProto.quadratic_objective)
8622}
8623
8624// optional string name = 5 [default = ""];
8625inline bool MPModelProto::has_name() const {
8626 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U);
8627 return value;
8628}
8629inline void MPModelProto::clear_name() {
8630 ::google::protobuf::internal::TSanWrite(&_impl_);
8631 _impl_.name_.ClearToEmpty();
8632 ClearHasBit(_impl_._has_bits_[0],
8633 0x00000010U);
8635inline const ::std::string& MPModelProto::name() const
8636 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8637 // @@protoc_insertion_point(field_get:operations_research.MPModelProto.name)
8638 return _internal_name();
8639}
8640template <typename Arg_, typename... Args_>
8641PROTOBUF_ALWAYS_INLINE void MPModelProto::set_name(Arg_&& arg, Args_... args) {
8642 ::google::protobuf::internal::TSanWrite(&_impl_);
8643 SetHasBit(_impl_._has_bits_[0], 0x00000010U);
8644 _impl_.name_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
8645 // @@protoc_insertion_point(field_set:operations_research.MPModelProto.name)
8646}
8647inline ::std::string* PROTOBUF_NONNULL MPModelProto::mutable_name()
8648 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8649 SetHasBit(_impl_._has_bits_[0], 0x00000010U);
8650 ::std::string* _s = _internal_mutable_name();
8651 // @@protoc_insertion_point(field_mutable:operations_research.MPModelProto.name)
8652 return _s;
8653}
8654inline const ::std::string& MPModelProto::_internal_name() const {
8655 ::google::protobuf::internal::TSanRead(&_impl_);
8656 return _impl_.name_.Get();
8657}
8658inline void MPModelProto::_internal_set_name(const ::std::string& value) {
8659 ::google::protobuf::internal::TSanWrite(&_impl_);
8660 _impl_.name_.Set(value, GetArena());
8661}
8662inline ::std::string* PROTOBUF_NONNULL MPModelProto::_internal_mutable_name() {
8663 ::google::protobuf::internal::TSanWrite(&_impl_);
8664 return _impl_.name_.Mutable( GetArena());
8665}
8666inline ::std::string* PROTOBUF_NULLABLE MPModelProto::release_name() {
8667 ::google::protobuf::internal::TSanWrite(&_impl_);
8668 // @@protoc_insertion_point(field_release:operations_research.MPModelProto.name)
8669 if (!CheckHasBit(_impl_._has_bits_[0], 0x00000010U)) {
8670 return nullptr;
8671 }
8672 ClearHasBit(_impl_._has_bits_[0], 0x00000010U);
8673 auto* released = _impl_.name_.Release();
8674 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
8675 _impl_.name_.Set("", GetArena());
8676 }
8677 return released;
8678}
8679inline void MPModelProto::set_allocated_name(::std::string* PROTOBUF_NULLABLE value) {
8680 ::google::protobuf::internal::TSanWrite(&_impl_);
8681 if (value != nullptr) {
8682 SetHasBit(_impl_._has_bits_[0], 0x00000010U);
8683 } else {
8684 ClearHasBit(_impl_._has_bits_[0], 0x00000010U);
8686 _impl_.name_.SetAllocated(value, GetArena());
8687 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) {
8688 _impl_.name_.Set("", GetArena());
8689 }
8690 // @@protoc_insertion_point(field_set_allocated:operations_research.MPModelProto.name)
8691}
8692
8693// optional .operations_research.PartialVariableAssignment solution_hint = 6;
8694inline bool MPModelProto::has_solution_hint() const {
8695 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U);
8696 PROTOBUF_ASSUME(!value || _impl_.solution_hint_ != nullptr);
8697 return value;
8698}
8700 ::google::protobuf::internal::TSanWrite(&_impl_);
8701 if (_impl_.solution_hint_ != nullptr) _impl_.solution_hint_->Clear();
8702 ClearHasBit(_impl_._has_bits_[0],
8703 0x00000020U);
8705inline const ::operations_research::PartialVariableAssignment& MPModelProto::_internal_solution_hint() const {
8706 ::google::protobuf::internal::TSanRead(&_impl_);
8707 const ::operations_research::PartialVariableAssignment* p = _impl_.solution_hint_;
8709}
8710inline const ::operations_research::PartialVariableAssignment& MPModelProto::solution_hint() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
8711 // @@protoc_insertion_point(field_get:operations_research.MPModelProto.solution_hint)
8712 return _internal_solution_hint();
8713}
8715 ::operations_research::PartialVariableAssignment* PROTOBUF_NULLABLE value) {
8716 ::google::protobuf::internal::TSanWrite(&_impl_);
8717 if (GetArena() == nullptr) {
8718 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.solution_hint_);
8719 }
8720 _impl_.solution_hint_ = reinterpret_cast<::operations_research::PartialVariableAssignment*>(value);
8721 if (value != nullptr) {
8722 SetHasBit(_impl_._has_bits_[0], 0x00000020U);
8723 } else {
8724 ClearHasBit(_impl_._has_bits_[0], 0x00000020U);
8725 }
8726 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.MPModelProto.solution_hint)
8727}
8728inline ::operations_research::PartialVariableAssignment* PROTOBUF_NULLABLE MPModelProto::release_solution_hint() {
8729 ::google::protobuf::internal::TSanWrite(&_impl_);
8730
8731 ClearHasBit(_impl_._has_bits_[0], 0x00000020U);
8733 _impl_.solution_hint_ = nullptr;
8734 if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
8735 auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
8736 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
8737 if (GetArena() == nullptr) {
8738 delete old;
8739 }
8740 } else {
8741 if (GetArena() != nullptr) {
8742 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
8743 }
8744 }
8745 return released;
8746}
8747inline ::operations_research::PartialVariableAssignment* PROTOBUF_NULLABLE MPModelProto::unsafe_arena_release_solution_hint() {
8748 ::google::protobuf::internal::TSanWrite(&_impl_);
8749 // @@protoc_insertion_point(field_release:operations_research.MPModelProto.solution_hint)
8750
8751 ClearHasBit(_impl_._has_bits_[0], 0x00000020U);
8753 _impl_.solution_hint_ = nullptr;
8754 return temp;
8755}
8756inline ::operations_research::PartialVariableAssignment* PROTOBUF_NONNULL MPModelProto::_internal_mutable_solution_hint() {
8757 ::google::protobuf::internal::TSanWrite(&_impl_);
8758 if (_impl_.solution_hint_ == nullptr) {
8759 auto* p = ::google::protobuf::Message::DefaultConstruct<::operations_research::PartialVariableAssignment>(GetArena());
8760 _impl_.solution_hint_ = reinterpret_cast<::operations_research::PartialVariableAssignment*>(p);
8761 }
8762 return _impl_.solution_hint_;
8763}
8764inline ::operations_research::PartialVariableAssignment* PROTOBUF_NONNULL MPModelProto::mutable_solution_hint()
8765 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8766 SetHasBit(_impl_._has_bits_[0], 0x00000020U);
8767 ::operations_research::PartialVariableAssignment* _msg = _internal_mutable_solution_hint();
8768 // @@protoc_insertion_point(field_mutable:operations_research.MPModelProto.solution_hint)
8769 return _msg;
8770}
8772 ::google::protobuf::Arena* message_arena = GetArena();
8773 ::google::protobuf::internal::TSanWrite(&_impl_);
8774 if (message_arena == nullptr) {
8775 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.solution_hint_);
8776 }
8777
8778 if (value != nullptr) {
8779 ::google::protobuf::Arena* submessage_arena = value->GetArena();
8780 if (message_arena != submessage_arena) {
8781 value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
8782 }
8783 SetHasBit(_impl_._has_bits_[0], 0x00000020U);
8784 } else {
8785 ClearHasBit(_impl_._has_bits_[0], 0x00000020U);
8786 }
8787
8788 _impl_.solution_hint_ = reinterpret_cast<::operations_research::PartialVariableAssignment*>(value);
8789 // @@protoc_insertion_point(field_set_allocated:operations_research.MPModelProto.solution_hint)
8790}
8791
8792// repeated .operations_research.MPModelProto.Annotation annotation = 9;
8793inline int MPModelProto::_internal_annotation_size() const {
8794 return _internal_annotation().size();
8795}
8796inline int MPModelProto::annotation_size() const {
8797 return _internal_annotation_size();
8798}
8799inline void MPModelProto::clear_annotation() {
8800 ::google::protobuf::internal::TSanWrite(&_impl_);
8801 _impl_.annotation_.Clear();
8802 ClearHasBitForRepeated(_impl_._has_bits_[0],
8803 0x00000008U);
8804}
8805inline ::operations_research::MPModelProto_Annotation* PROTOBUF_NONNULL MPModelProto::mutable_annotation(int index)
8806 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8807 // @@protoc_insertion_point(field_mutable:operations_research.MPModelProto.annotation)
8808 return _internal_mutable_annotation()->Mutable(index);
8810inline ::google::protobuf::RepeatedPtrField<::operations_research::MPModelProto_Annotation>* PROTOBUF_NONNULL MPModelProto::mutable_annotation()
8811 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8812 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000008U);
8813 // @@protoc_insertion_point(field_mutable_list:operations_research.MPModelProto.annotation)
8814 ::google::protobuf::internal::TSanWrite(&_impl_);
8815 return _internal_mutable_annotation();
8816}
8817inline const ::operations_research::MPModelProto_Annotation& MPModelProto::annotation(int index) const
8818 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8819 // @@protoc_insertion_point(field_get:operations_research.MPModelProto.annotation)
8820 return _internal_annotation().Get(index);
8821}
8822inline ::operations_research::MPModelProto_Annotation* PROTOBUF_NONNULL MPModelProto::add_annotation()
8823 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8824 ::google::protobuf::internal::TSanWrite(&_impl_);
8825 ::operations_research::MPModelProto_Annotation* _add =
8826 _internal_mutable_annotation()->InternalAddWithArena(
8827 ::google::protobuf::MessageLite::internal_visibility(), GetArena());
8828 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000008U);
8829 // @@protoc_insertion_point(field_add:operations_research.MPModelProto.annotation)
8830 return _add;
8831}
8832inline const ::google::protobuf::RepeatedPtrField<::operations_research::MPModelProto_Annotation>& MPModelProto::annotation() const
8833 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8834 // @@protoc_insertion_point(field_list:operations_research.MPModelProto.annotation)
8835 return _internal_annotation();
8836}
8837inline const ::google::protobuf::RepeatedPtrField<::operations_research::MPModelProto_Annotation>&
8838MPModelProto::_internal_annotation() const {
8839 ::google::protobuf::internal::TSanRead(&_impl_);
8840 return _impl_.annotation_;
8841}
8842inline ::google::protobuf::RepeatedPtrField<::operations_research::MPModelProto_Annotation>* PROTOBUF_NONNULL
8843MPModelProto::_internal_mutable_annotation() {
8844 ::google::protobuf::internal::TSanRead(&_impl_);
8845 return &_impl_.annotation_;
8846}
8847
8848// -------------------------------------------------------------------
8849
8850// OptionalDouble
8851
8852// optional double value = 1;
8853inline bool OptionalDouble::has_value() const {
8854 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U);
8855 return value;
8856}
8857inline void OptionalDouble::clear_value() {
8858 ::google::protobuf::internal::TSanWrite(&_impl_);
8859 _impl_.value_ = 0;
8860 ClearHasBit(_impl_._has_bits_[0],
8861 0x00000001U);
8862}
8863inline double OptionalDouble::value() const {
8864 // @@protoc_insertion_point(field_get:operations_research.OptionalDouble.value)
8865 return _internal_value();
8866}
8867inline void OptionalDouble::set_value(double value) {
8868 _internal_set_value(value);
8869 SetHasBit(_impl_._has_bits_[0], 0x00000001U);
8870 // @@protoc_insertion_point(field_set:operations_research.OptionalDouble.value)
8871}
8872inline double OptionalDouble::_internal_value() const {
8873 ::google::protobuf::internal::TSanRead(&_impl_);
8874 return _impl_.value_;
8875}
8876inline void OptionalDouble::_internal_set_value(double value) {
8877 ::google::protobuf::internal::TSanWrite(&_impl_);
8878 _impl_.value_ = value;
8879}
8880
8881// -------------------------------------------------------------------
8882
8883// MPSolverCommonParameters
8884
8885// optional .operations_research.OptionalDouble relative_mip_gap = 1;
8887 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U);
8888 PROTOBUF_ASSUME(!value || _impl_.relative_mip_gap_ != nullptr);
8889 return value;
8890}
8892 ::google::protobuf::internal::TSanWrite(&_impl_);
8893 if (_impl_.relative_mip_gap_ != nullptr) _impl_.relative_mip_gap_->Clear();
8894 ClearHasBit(_impl_._has_bits_[0],
8895 0x00000001U);
8897inline const ::operations_research::OptionalDouble& MPSolverCommonParameters::_internal_relative_mip_gap() const {
8898 ::google::protobuf::internal::TSanRead(&_impl_);
8899 const ::operations_research::OptionalDouble* p = _impl_.relative_mip_gap_;
8900 return p != nullptr ? *p : reinterpret_cast<const ::operations_research::OptionalDouble&>(::operations_research::_OptionalDouble_default_instance_);
8901}
8902inline const ::operations_research::OptionalDouble& MPSolverCommonParameters::relative_mip_gap() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
8903 // @@protoc_insertion_point(field_get:operations_research.MPSolverCommonParameters.relative_mip_gap)
8904 return _internal_relative_mip_gap();
8905}
8907 ::operations_research::OptionalDouble* PROTOBUF_NULLABLE value) {
8908 ::google::protobuf::internal::TSanWrite(&_impl_);
8909 if (GetArena() == nullptr) {
8910 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.relative_mip_gap_);
8911 }
8912 _impl_.relative_mip_gap_ = reinterpret_cast<::operations_research::OptionalDouble*>(value);
8913 if (value != nullptr) {
8914 SetHasBit(_impl_._has_bits_[0], 0x00000001U);
8915 } else {
8916 ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
8917 }
8918 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.MPSolverCommonParameters.relative_mip_gap)
8919}
8920inline ::operations_research::OptionalDouble* PROTOBUF_NULLABLE MPSolverCommonParameters::release_relative_mip_gap() {
8921 ::google::protobuf::internal::TSanWrite(&_impl_);
8922
8923 ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
8924 ::operations_research::OptionalDouble* released = _impl_.relative_mip_gap_;
8925 _impl_.relative_mip_gap_ = nullptr;
8926 if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
8927 auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
8928 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
8929 if (GetArena() == nullptr) {
8930 delete old;
8932 } else {
8933 if (GetArena() != nullptr) {
8934 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
8935 }
8936 }
8937 return released;
8938}
8939inline ::operations_research::OptionalDouble* PROTOBUF_NULLABLE MPSolverCommonParameters::unsafe_arena_release_relative_mip_gap() {
8940 ::google::protobuf::internal::TSanWrite(&_impl_);
8941 // @@protoc_insertion_point(field_release:operations_research.MPSolverCommonParameters.relative_mip_gap)
8943 ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
8944 ::operations_research::OptionalDouble* temp = _impl_.relative_mip_gap_;
8945 _impl_.relative_mip_gap_ = nullptr;
8946 return temp;
8947}
8948inline ::operations_research::OptionalDouble* PROTOBUF_NONNULL MPSolverCommonParameters::_internal_mutable_relative_mip_gap() {
8949 ::google::protobuf::internal::TSanWrite(&_impl_);
8950 if (_impl_.relative_mip_gap_ == nullptr) {
8951 auto* p = ::google::protobuf::Message::DefaultConstruct<::operations_research::OptionalDouble>(GetArena());
8952 _impl_.relative_mip_gap_ = reinterpret_cast<::operations_research::OptionalDouble*>(p);
8953 }
8954 return _impl_.relative_mip_gap_;
8955}
8956inline ::operations_research::OptionalDouble* PROTOBUF_NONNULL MPSolverCommonParameters::mutable_relative_mip_gap()
8957 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8958 SetHasBit(_impl_._has_bits_[0], 0x00000001U);
8959 ::operations_research::OptionalDouble* _msg = _internal_mutable_relative_mip_gap();
8960 // @@protoc_insertion_point(field_mutable:operations_research.MPSolverCommonParameters.relative_mip_gap)
8961 return _msg;
8962}
8964 ::google::protobuf::Arena* message_arena = GetArena();
8965 ::google::protobuf::internal::TSanWrite(&_impl_);
8966 if (message_arena == nullptr) {
8967 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.relative_mip_gap_);
8968 }
8969
8970 if (value != nullptr) {
8971 ::google::protobuf::Arena* submessage_arena = value->GetArena();
8972 if (message_arena != submessage_arena) {
8973 value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
8974 }
8975 SetHasBit(_impl_._has_bits_[0], 0x00000001U);
8976 } else {
8977 ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
8978 }
8980 _impl_.relative_mip_gap_ = reinterpret_cast<::operations_research::OptionalDouble*>(value);
8981 // @@protoc_insertion_point(field_set_allocated:operations_research.MPSolverCommonParameters.relative_mip_gap)
8982}
8983
8984// optional .operations_research.OptionalDouble primal_tolerance = 2;
8986 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U);
8987 PROTOBUF_ASSUME(!value || _impl_.primal_tolerance_ != nullptr);
8988 return value;
8989}
8991 ::google::protobuf::internal::TSanWrite(&_impl_);
8992 if (_impl_.primal_tolerance_ != nullptr) _impl_.primal_tolerance_->Clear();
8993 ClearHasBit(_impl_._has_bits_[0],
8994 0x00000002U);
8995}
8996inline const ::operations_research::OptionalDouble& MPSolverCommonParameters::_internal_primal_tolerance() const {
8997 ::google::protobuf::internal::TSanRead(&_impl_);
8998 const ::operations_research::OptionalDouble* p = _impl_.primal_tolerance_;
8999 return p != nullptr ? *p : reinterpret_cast<const ::operations_research::OptionalDouble&>(::operations_research::_OptionalDouble_default_instance_);
9000}
9001inline const ::operations_research::OptionalDouble& MPSolverCommonParameters::primal_tolerance() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
9002 // @@protoc_insertion_point(field_get:operations_research.MPSolverCommonParameters.primal_tolerance)
9003 return _internal_primal_tolerance();
9004}
9006 ::operations_research::OptionalDouble* PROTOBUF_NULLABLE value) {
9007 ::google::protobuf::internal::TSanWrite(&_impl_);
9008 if (GetArena() == nullptr) {
9009 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.primal_tolerance_);
9010 }
9011 _impl_.primal_tolerance_ = reinterpret_cast<::operations_research::OptionalDouble*>(value);
9012 if (value != nullptr) {
9013 SetHasBit(_impl_._has_bits_[0], 0x00000002U);
9014 } else {
9015 ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
9016 }
9017 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.MPSolverCommonParameters.primal_tolerance)
9018}
9019inline ::operations_research::OptionalDouble* PROTOBUF_NULLABLE MPSolverCommonParameters::release_primal_tolerance() {
9020 ::google::protobuf::internal::TSanWrite(&_impl_);
9021
9022 ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
9023 ::operations_research::OptionalDouble* released = _impl_.primal_tolerance_;
9024 _impl_.primal_tolerance_ = nullptr;
9025 if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
9026 auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
9027 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
9028 if (GetArena() == nullptr) {
9029 delete old;
9031 } else {
9032 if (GetArena() != nullptr) {
9033 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
9034 }
9035 }
9036 return released;
9037}
9038inline ::operations_research::OptionalDouble* PROTOBUF_NULLABLE MPSolverCommonParameters::unsafe_arena_release_primal_tolerance() {
9039 ::google::protobuf::internal::TSanWrite(&_impl_);
9040 // @@protoc_insertion_point(field_release:operations_research.MPSolverCommonParameters.primal_tolerance)
9042 ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
9043 ::operations_research::OptionalDouble* temp = _impl_.primal_tolerance_;
9044 _impl_.primal_tolerance_ = nullptr;
9045 return temp;
9046}
9047inline ::operations_research::OptionalDouble* PROTOBUF_NONNULL MPSolverCommonParameters::_internal_mutable_primal_tolerance() {
9048 ::google::protobuf::internal::TSanWrite(&_impl_);
9049 if (_impl_.primal_tolerance_ == nullptr) {
9050 auto* p = ::google::protobuf::Message::DefaultConstruct<::operations_research::OptionalDouble>(GetArena());
9051 _impl_.primal_tolerance_ = reinterpret_cast<::operations_research::OptionalDouble*>(p);
9052 }
9053 return _impl_.primal_tolerance_;
9054}
9055inline ::operations_research::OptionalDouble* PROTOBUF_NONNULL MPSolverCommonParameters::mutable_primal_tolerance()
9056 ABSL_ATTRIBUTE_LIFETIME_BOUND {
9057 SetHasBit(_impl_._has_bits_[0], 0x00000002U);
9058 ::operations_research::OptionalDouble* _msg = _internal_mutable_primal_tolerance();
9059 // @@protoc_insertion_point(field_mutable:operations_research.MPSolverCommonParameters.primal_tolerance)
9060 return _msg;
9061}
9063 ::google::protobuf::Arena* message_arena = GetArena();
9064 ::google::protobuf::internal::TSanWrite(&_impl_);
9065 if (message_arena == nullptr) {
9066 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.primal_tolerance_);
9067 }
9068
9069 if (value != nullptr) {
9070 ::google::protobuf::Arena* submessage_arena = value->GetArena();
9071 if (message_arena != submessage_arena) {
9072 value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
9073 }
9074 SetHasBit(_impl_._has_bits_[0], 0x00000002U);
9075 } else {
9076 ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
9077 }
9079 _impl_.primal_tolerance_ = reinterpret_cast<::operations_research::OptionalDouble*>(value);
9080 // @@protoc_insertion_point(field_set_allocated:operations_research.MPSolverCommonParameters.primal_tolerance)
9081}
9082
9083// optional .operations_research.OptionalDouble dual_tolerance = 3;
9085 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U);
9086 PROTOBUF_ASSUME(!value || _impl_.dual_tolerance_ != nullptr);
9087 return value;
9088}
9090 ::google::protobuf::internal::TSanWrite(&_impl_);
9091 if (_impl_.dual_tolerance_ != nullptr) _impl_.dual_tolerance_->Clear();
9092 ClearHasBit(_impl_._has_bits_[0],
9093 0x00000004U);
9094}
9095inline const ::operations_research::OptionalDouble& MPSolverCommonParameters::_internal_dual_tolerance() const {
9096 ::google::protobuf::internal::TSanRead(&_impl_);
9097 const ::operations_research::OptionalDouble* p = _impl_.dual_tolerance_;
9098 return p != nullptr ? *p : reinterpret_cast<const ::operations_research::OptionalDouble&>(::operations_research::_OptionalDouble_default_instance_);
9099}
9100inline const ::operations_research::OptionalDouble& MPSolverCommonParameters::dual_tolerance() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
9101 // @@protoc_insertion_point(field_get:operations_research.MPSolverCommonParameters.dual_tolerance)
9102 return _internal_dual_tolerance();
9103}
9105 ::operations_research::OptionalDouble* PROTOBUF_NULLABLE value) {
9106 ::google::protobuf::internal::TSanWrite(&_impl_);
9107 if (GetArena() == nullptr) {
9108 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.dual_tolerance_);
9109 }
9110 _impl_.dual_tolerance_ = reinterpret_cast<::operations_research::OptionalDouble*>(value);
9111 if (value != nullptr) {
9112 SetHasBit(_impl_._has_bits_[0], 0x00000004U);
9113 } else {
9114 ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
9115 }
9116 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.MPSolverCommonParameters.dual_tolerance)
9117}
9118inline ::operations_research::OptionalDouble* PROTOBUF_NULLABLE MPSolverCommonParameters::release_dual_tolerance() {
9119 ::google::protobuf::internal::TSanWrite(&_impl_);
9120
9121 ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
9122 ::operations_research::OptionalDouble* released = _impl_.dual_tolerance_;
9123 _impl_.dual_tolerance_ = nullptr;
9124 if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
9125 auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
9126 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
9127 if (GetArena() == nullptr) {
9128 delete old;
9130 } else {
9131 if (GetArena() != nullptr) {
9132 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
9133 }
9134 }
9135 return released;
9136}
9137inline ::operations_research::OptionalDouble* PROTOBUF_NULLABLE MPSolverCommonParameters::unsafe_arena_release_dual_tolerance() {
9138 ::google::protobuf::internal::TSanWrite(&_impl_);
9139 // @@protoc_insertion_point(field_release:operations_research.MPSolverCommonParameters.dual_tolerance)
9141 ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
9142 ::operations_research::OptionalDouble* temp = _impl_.dual_tolerance_;
9143 _impl_.dual_tolerance_ = nullptr;
9144 return temp;
9145}
9146inline ::operations_research::OptionalDouble* PROTOBUF_NONNULL MPSolverCommonParameters::_internal_mutable_dual_tolerance() {
9147 ::google::protobuf::internal::TSanWrite(&_impl_);
9148 if (_impl_.dual_tolerance_ == nullptr) {
9149 auto* p = ::google::protobuf::Message::DefaultConstruct<::operations_research::OptionalDouble>(GetArena());
9150 _impl_.dual_tolerance_ = reinterpret_cast<::operations_research::OptionalDouble*>(p);
9151 }
9152 return _impl_.dual_tolerance_;
9153}
9154inline ::operations_research::OptionalDouble* PROTOBUF_NONNULL MPSolverCommonParameters::mutable_dual_tolerance()
9155 ABSL_ATTRIBUTE_LIFETIME_BOUND {
9156 SetHasBit(_impl_._has_bits_[0], 0x00000004U);
9157 ::operations_research::OptionalDouble* _msg = _internal_mutable_dual_tolerance();
9158 // @@protoc_insertion_point(field_mutable:operations_research.MPSolverCommonParameters.dual_tolerance)
9159 return _msg;
9160}
9162 ::google::protobuf::Arena* message_arena = GetArena();
9163 ::google::protobuf::internal::TSanWrite(&_impl_);
9164 if (message_arena == nullptr) {
9165 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.dual_tolerance_);
9166 }
9167
9168 if (value != nullptr) {
9169 ::google::protobuf::Arena* submessage_arena = value->GetArena();
9170 if (message_arena != submessage_arena) {
9171 value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
9172 }
9173 SetHasBit(_impl_._has_bits_[0], 0x00000004U);
9174 } else {
9175 ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
9176 }
9178 _impl_.dual_tolerance_ = reinterpret_cast<::operations_research::OptionalDouble*>(value);
9179 // @@protoc_insertion_point(field_set_allocated:operations_research.MPSolverCommonParameters.dual_tolerance)
9180}
9181
9182// optional .operations_research.MPSolverCommonParameters.LPAlgorithmValues lp_algorithm = 4 [default = LP_ALGO_UNSPECIFIED];
9184 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U);
9185 return value;
9186}
9188 ::google::protobuf::internal::TSanWrite(&_impl_);
9189 _impl_.lp_algorithm_ = 0;
9190 ClearHasBit(_impl_._has_bits_[0],
9191 0x00000008U);
9192}
9193inline ::operations_research::MPSolverCommonParameters_LPAlgorithmValues MPSolverCommonParameters::lp_algorithm() const {
9194 // @@protoc_insertion_point(field_get:operations_research.MPSolverCommonParameters.lp_algorithm)
9195 return _internal_lp_algorithm();
9196}
9198 _internal_set_lp_algorithm(value);
9199 SetHasBit(_impl_._has_bits_[0], 0x00000008U);
9200 // @@protoc_insertion_point(field_set:operations_research.MPSolverCommonParameters.lp_algorithm)
9202inline ::operations_research::MPSolverCommonParameters_LPAlgorithmValues MPSolverCommonParameters::_internal_lp_algorithm() const {
9203 ::google::protobuf::internal::TSanRead(&_impl_);
9204 return static_cast<::operations_research::MPSolverCommonParameters_LPAlgorithmValues>(_impl_.lp_algorithm_);
9205}
9206inline void MPSolverCommonParameters::_internal_set_lp_algorithm(::operations_research::MPSolverCommonParameters_LPAlgorithmValues value) {
9207 ::google::protobuf::internal::TSanWrite(&_impl_);
9208
9209 assert(::google::protobuf::internal::ValidateEnum(
9211 _impl_.lp_algorithm_ = value;
9212}
9213
9214// optional .operations_research.OptionalBoolean presolve = 5 [default = BOOL_UNSPECIFIED];
9215inline bool MPSolverCommonParameters::has_presolve() const {
9216 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U);
9217 return value;
9218}
9220 ::google::protobuf::internal::TSanWrite(&_impl_);
9221 _impl_.presolve_ = 0;
9222 ClearHasBit(_impl_._has_bits_[0],
9223 0x00000010U);
9224}
9225inline ::operations_research::OptionalBoolean MPSolverCommonParameters::presolve() const {
9226 // @@protoc_insertion_point(field_get:operations_research.MPSolverCommonParameters.presolve)
9227 return _internal_presolve();
9228}
9230 _internal_set_presolve(value);
9231 SetHasBit(_impl_._has_bits_[0], 0x00000010U);
9232 // @@protoc_insertion_point(field_set:operations_research.MPSolverCommonParameters.presolve)
9234inline ::operations_research::OptionalBoolean MPSolverCommonParameters::_internal_presolve() const {
9235 ::google::protobuf::internal::TSanRead(&_impl_);
9236 return static_cast<::operations_research::OptionalBoolean>(_impl_.presolve_);
9238inline void MPSolverCommonParameters::_internal_set_presolve(::operations_research::OptionalBoolean value) {
9239 ::google::protobuf::internal::TSanWrite(&_impl_);
9240
9241 assert(::google::protobuf::internal::ValidateEnum(
9243 _impl_.presolve_ = value;
9244}
9245
9246// optional .operations_research.OptionalBoolean scaling = 7 [default = BOOL_UNSPECIFIED];
9247inline bool MPSolverCommonParameters::has_scaling() const {
9248 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U);
9249 return value;
9250}
9252 ::google::protobuf::internal::TSanWrite(&_impl_);
9253 _impl_.scaling_ = 0;
9254 ClearHasBit(_impl_._has_bits_[0],
9255 0x00000020U);
9256}
9257inline ::operations_research::OptionalBoolean MPSolverCommonParameters::scaling() const {
9258 // @@protoc_insertion_point(field_get:operations_research.MPSolverCommonParameters.scaling)
9259 return _internal_scaling();
9260}
9262 _internal_set_scaling(value);
9263 SetHasBit(_impl_._has_bits_[0], 0x00000020U);
9264 // @@protoc_insertion_point(field_set:operations_research.MPSolverCommonParameters.scaling)
9266inline ::operations_research::OptionalBoolean MPSolverCommonParameters::_internal_scaling() const {
9267 ::google::protobuf::internal::TSanRead(&_impl_);
9268 return static_cast<::operations_research::OptionalBoolean>(_impl_.scaling_);
9270inline void MPSolverCommonParameters::_internal_set_scaling(::operations_research::OptionalBoolean value) {
9271 ::google::protobuf::internal::TSanWrite(&_impl_);
9272
9273 assert(::google::protobuf::internal::ValidateEnum(
9275 _impl_.scaling_ = value;
9276}
9277
9278// -------------------------------------------------------------------
9279
9280// -------------------------------------------------------------------
9281
9282// -------------------------------------------------------------------
9283
9284// MPModelDeltaProto
9285
9286// optional string baseline_model_file_path = 1;
9288 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U);
9289 return value;
9290}
9292 ::google::protobuf::internal::TSanWrite(&_impl_);
9293 _impl_.baseline_model_file_path_.ClearToEmpty();
9294 ClearHasBit(_impl_._has_bits_[0],
9295 0x00000001U);
9296}
9297inline const ::std::string& MPModelDeltaProto::baseline_model_file_path() const
9298 ABSL_ATTRIBUTE_LIFETIME_BOUND {
9299 // @@protoc_insertion_point(field_get:operations_research.MPModelDeltaProto.baseline_model_file_path)
9300 return _internal_baseline_model_file_path();
9302template <typename Arg_, typename... Args_>
9303PROTOBUF_ALWAYS_INLINE void MPModelDeltaProto::set_baseline_model_file_path(Arg_&& arg, Args_... args) {
9304 ::google::protobuf::internal::TSanWrite(&_impl_);
9305 SetHasBit(_impl_._has_bits_[0], 0x00000001U);
9306 _impl_.baseline_model_file_path_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
9307 // @@protoc_insertion_point(field_set:operations_research.MPModelDeltaProto.baseline_model_file_path)
9308}
9309inline ::std::string* PROTOBUF_NONNULL MPModelDeltaProto::mutable_baseline_model_file_path()
9310 ABSL_ATTRIBUTE_LIFETIME_BOUND {
9311 SetHasBit(_impl_._has_bits_[0], 0x00000001U);
9312 ::std::string* _s = _internal_mutable_baseline_model_file_path();
9313 // @@protoc_insertion_point(field_mutable:operations_research.MPModelDeltaProto.baseline_model_file_path)
9314 return _s;
9315}
9316inline const ::std::string& MPModelDeltaProto::_internal_baseline_model_file_path() const {
9317 ::google::protobuf::internal::TSanRead(&_impl_);
9318 return _impl_.baseline_model_file_path_.Get();
9319}
9320inline void MPModelDeltaProto::_internal_set_baseline_model_file_path(const ::std::string& value) {
9321 ::google::protobuf::internal::TSanWrite(&_impl_);
9322 _impl_.baseline_model_file_path_.Set(value, GetArena());
9323}
9324inline ::std::string* PROTOBUF_NONNULL MPModelDeltaProto::_internal_mutable_baseline_model_file_path() {
9325 ::google::protobuf::internal::TSanWrite(&_impl_);
9326 return _impl_.baseline_model_file_path_.Mutable( GetArena());
9327}
9328inline ::std::string* PROTOBUF_NULLABLE MPModelDeltaProto::release_baseline_model_file_path() {
9329 ::google::protobuf::internal::TSanWrite(&_impl_);
9330 // @@protoc_insertion_point(field_release:operations_research.MPModelDeltaProto.baseline_model_file_path)
9331 if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) {
9332 return nullptr;
9333 }
9334 ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
9335 auto* released = _impl_.baseline_model_file_path_.Release();
9336 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
9337 _impl_.baseline_model_file_path_.Set("", GetArena());
9338 }
9339 return released;
9341inline void MPModelDeltaProto::set_allocated_baseline_model_file_path(::std::string* PROTOBUF_NULLABLE value) {
9342 ::google::protobuf::internal::TSanWrite(&_impl_);
9343 if (value != nullptr) {
9344 SetHasBit(_impl_._has_bits_[0], 0x00000001U);
9345 } else {
9346 ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
9347 }
9348 _impl_.baseline_model_file_path_.SetAllocated(value, GetArena());
9349 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.baseline_model_file_path_.IsDefault()) {
9350 _impl_.baseline_model_file_path_.Set("", GetArena());
9351 }
9352 // @@protoc_insertion_point(field_set_allocated:operations_research.MPModelDeltaProto.baseline_model_file_path)
9353}
9354
9355// map<int32, .operations_research.MPVariableProto> variable_overrides = 2;
9356inline int MPModelDeltaProto::_internal_variable_overrides_size() const {
9357 return _internal_variable_overrides().size();
9358}
9360 return _internal_variable_overrides_size();
9361}
9363 ::google::protobuf::internal::TSanWrite(&_impl_);
9364 _impl_.variable_overrides_.Clear();
9365 ClearHasBitForRepeated(_impl_._has_bits_[0],
9366 0x00000002U);
9367}
9368inline const ::google::protobuf::Map<::int32_t, ::operations_research::MPVariableProto>& MPModelDeltaProto::_internal_variable_overrides() const {
9369 ::google::protobuf::internal::TSanRead(&_impl_);
9370 return _impl_.variable_overrides_.GetMap();
9372inline const ::google::protobuf::Map<::int32_t, ::operations_research::MPVariableProto>& MPModelDeltaProto::variable_overrides() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
9373 // @@protoc_insertion_point(field_map:operations_research.MPModelDeltaProto.variable_overrides)
9374 return _internal_variable_overrides();
9375}
9376inline ::google::protobuf::Map<::int32_t, ::operations_research::MPVariableProto>* PROTOBUF_NONNULL MPModelDeltaProto::_internal_mutable_variable_overrides() {
9377 ::google::protobuf::internal::TSanWrite(&_impl_);
9378 return _impl_.variable_overrides_.MutableMap();
9379}
9380inline ::google::protobuf::Map<::int32_t, ::operations_research::MPVariableProto>* PROTOBUF_NONNULL MPModelDeltaProto::mutable_variable_overrides()
9381 ABSL_ATTRIBUTE_LIFETIME_BOUND {
9382 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U);
9383 // @@protoc_insertion_point(field_mutable_map:operations_research.MPModelDeltaProto.variable_overrides)
9384 return _internal_mutable_variable_overrides();
9385}
9386
9387// map<int32, .operations_research.MPConstraintProto> constraint_overrides = 3;
9388inline int MPModelDeltaProto::_internal_constraint_overrides_size() const {
9389 return _internal_constraint_overrides().size();
9390}
9392 return _internal_constraint_overrides_size();
9393}
9395 ::google::protobuf::internal::TSanWrite(&_impl_);
9396 _impl_.constraint_overrides_.Clear();
9397 ClearHasBitForRepeated(_impl_._has_bits_[0],
9398 0x00000004U);
9399}
9400inline const ::google::protobuf::Map<::int32_t, ::operations_research::MPConstraintProto>& MPModelDeltaProto::_internal_constraint_overrides() const {
9401 ::google::protobuf::internal::TSanRead(&_impl_);
9402 return _impl_.constraint_overrides_.GetMap();
9403}
9404inline const ::google::protobuf::Map<::int32_t, ::operations_research::MPConstraintProto>& MPModelDeltaProto::constraint_overrides() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
9405 // @@protoc_insertion_point(field_map:operations_research.MPModelDeltaProto.constraint_overrides)
9406 return _internal_constraint_overrides();
9407}
9408inline ::google::protobuf::Map<::int32_t, ::operations_research::MPConstraintProto>* PROTOBUF_NONNULL MPModelDeltaProto::_internal_mutable_constraint_overrides() {
9409 ::google::protobuf::internal::TSanWrite(&_impl_);
9410 return _impl_.constraint_overrides_.MutableMap();
9411}
9412inline ::google::protobuf::Map<::int32_t, ::operations_research::MPConstraintProto>* PROTOBUF_NONNULL MPModelDeltaProto::mutable_constraint_overrides()
9413 ABSL_ATTRIBUTE_LIFETIME_BOUND {
9414 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000004U);
9415 // @@protoc_insertion_point(field_mutable_map:operations_research.MPModelDeltaProto.constraint_overrides)
9416 return _internal_mutable_constraint_overrides();
9417}
9418
9419// -------------------------------------------------------------------
9420
9421// MPModelRequest
9422
9423// optional .operations_research.MPModelProto model = 1;
9424inline bool MPModelRequest::has_model() const {
9425 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U);
9426 PROTOBUF_ASSUME(!value || _impl_.model_ != nullptr);
9427 return value;
9428}
9429inline void MPModelRequest::clear_model() {
9430 ::google::protobuf::internal::TSanWrite(&_impl_);
9431 if (_impl_.model_ != nullptr) _impl_.model_->Clear();
9432 ClearHasBit(_impl_._has_bits_[0],
9433 0x00000002U);
9435inline const ::operations_research::MPModelProto& MPModelRequest::_internal_model() const {
9436 ::google::protobuf::internal::TSanRead(&_impl_);
9437 const ::operations_research::MPModelProto* p = _impl_.model_;
9438 return p != nullptr ? *p : reinterpret_cast<const ::operations_research::MPModelProto&>(::operations_research::_MPModelProto_default_instance_);
9439}
9440inline const ::operations_research::MPModelProto& MPModelRequest::model() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
9441 // @@protoc_insertion_point(field_get:operations_research.MPModelRequest.model)
9442 return _internal_model();
9443}
9445 ::operations_research::MPModelProto* PROTOBUF_NULLABLE value) {
9446 ::google::protobuf::internal::TSanWrite(&_impl_);
9447 if (GetArena() == nullptr) {
9448 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.model_);
9449 }
9450 _impl_.model_ = reinterpret_cast<::operations_research::MPModelProto*>(value);
9451 if (value != nullptr) {
9452 SetHasBit(_impl_._has_bits_[0], 0x00000002U);
9453 } else {
9454 ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
9456 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.MPModelRequest.model)
9457}
9458inline ::operations_research::MPModelProto* PROTOBUF_NULLABLE MPModelRequest::release_model() {
9459 ::google::protobuf::internal::TSanWrite(&_impl_);
9460
9461 ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
9462 ::operations_research::MPModelProto* released = _impl_.model_;
9463 _impl_.model_ = nullptr;
9464 if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
9465 auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
9466 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
9467 if (GetArena() == nullptr) {
9468 delete old;
9469 }
9470 } else {
9471 if (GetArena() != nullptr) {
9472 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
9474 }
9475 return released;
9476}
9477inline ::operations_research::MPModelProto* PROTOBUF_NULLABLE MPModelRequest::unsafe_arena_release_model() {
9478 ::google::protobuf::internal::TSanWrite(&_impl_);
9479 // @@protoc_insertion_point(field_release:operations_research.MPModelRequest.model)
9480
9481 ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
9482 ::operations_research::MPModelProto* temp = _impl_.model_;
9483 _impl_.model_ = nullptr;
9484 return temp;
9485}
9486inline ::operations_research::MPModelProto* PROTOBUF_NONNULL MPModelRequest::_internal_mutable_model() {
9487 ::google::protobuf::internal::TSanWrite(&_impl_);
9488 if (_impl_.model_ == nullptr) {
9489 auto* p = ::google::protobuf::Message::DefaultConstruct<::operations_research::MPModelProto>(GetArena());
9490 _impl_.model_ = reinterpret_cast<::operations_research::MPModelProto*>(p);
9491 }
9492 return _impl_.model_;
9493}
9494inline ::operations_research::MPModelProto* PROTOBUF_NONNULL MPModelRequest::mutable_model()
9495 ABSL_ATTRIBUTE_LIFETIME_BOUND {
9496 SetHasBit(_impl_._has_bits_[0], 0x00000002U);
9497 ::operations_research::MPModelProto* _msg = _internal_mutable_model();
9498 // @@protoc_insertion_point(field_mutable:operations_research.MPModelRequest.model)
9499 return _msg;
9500}
9501inline void MPModelRequest::set_allocated_model(::operations_research::MPModelProto* PROTOBUF_NULLABLE value) {
9502 ::google::protobuf::Arena* message_arena = GetArena();
9503 ::google::protobuf::internal::TSanWrite(&_impl_);
9504 if (message_arena == nullptr) {
9505 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.model_);
9506 }
9507
9508 if (value != nullptr) {
9509 ::google::protobuf::Arena* submessage_arena = value->GetArena();
9510 if (message_arena != submessage_arena) {
9511 value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
9512 }
9513 SetHasBit(_impl_._has_bits_[0], 0x00000002U);
9514 } else {
9515 ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
9516 }
9517
9518 _impl_.model_ = reinterpret_cast<::operations_research::MPModelProto*>(value);
9519 // @@protoc_insertion_point(field_set_allocated:operations_research.MPModelRequest.model)
9520}
9522// optional .operations_research.MPModelRequest.SolverType solver_type = 2 [default = GLOP_LINEAR_PROGRAMMING];
9523inline bool MPModelRequest::has_solver_type() const {
9524 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000080U);
9525 return value;
9526}
9528 ::google::protobuf::internal::TSanWrite(&_impl_);
9529 _impl_.solver_type_ = 2;
9530 ClearHasBit(_impl_._has_bits_[0],
9531 0x00000080U);
9532}
9533inline ::operations_research::MPModelRequest_SolverType MPModelRequest::solver_type() const {
9534 // @@protoc_insertion_point(field_get:operations_research.MPModelRequest.solver_type)
9535 return _internal_solver_type();
9536}
9538 _internal_set_solver_type(value);
9539 SetHasBit(_impl_._has_bits_[0], 0x00000080U);
9540 // @@protoc_insertion_point(field_set:operations_research.MPModelRequest.solver_type)
9541}
9542inline ::operations_research::MPModelRequest_SolverType MPModelRequest::_internal_solver_type() const {
9543 ::google::protobuf::internal::TSanRead(&_impl_);
9544 return static_cast<::operations_research::MPModelRequest_SolverType>(_impl_.solver_type_);
9546inline void MPModelRequest::_internal_set_solver_type(::operations_research::MPModelRequest_SolverType value) {
9547 ::google::protobuf::internal::TSanWrite(&_impl_);
9548
9549 assert(::google::protobuf::internal::ValidateEnum(
9551 _impl_.solver_type_ = value;
9552}
9553
9554// optional double solver_time_limit_seconds = 3;
9556 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U);
9557 return value;
9558}
9560 ::google::protobuf::internal::TSanWrite(&_impl_);
9561 _impl_.solver_time_limit_seconds_ = 0;
9562 ClearHasBit(_impl_._has_bits_[0],
9563 0x00000008U);
9564}
9565inline double MPModelRequest::solver_time_limit_seconds() const {
9566 // @@protoc_insertion_point(field_get:operations_research.MPModelRequest.solver_time_limit_seconds)
9567 return _internal_solver_time_limit_seconds();
9568}
9569inline void MPModelRequest::set_solver_time_limit_seconds(double value) {
9570 _internal_set_solver_time_limit_seconds(value);
9571 SetHasBit(_impl_._has_bits_[0], 0x00000008U);
9572 // @@protoc_insertion_point(field_set:operations_research.MPModelRequest.solver_time_limit_seconds)
9573}
9574inline double MPModelRequest::_internal_solver_time_limit_seconds() const {
9575 ::google::protobuf::internal::TSanRead(&_impl_);
9576 return _impl_.solver_time_limit_seconds_;
9578inline void MPModelRequest::_internal_set_solver_time_limit_seconds(double value) {
9579 ::google::protobuf::internal::TSanWrite(&_impl_);
9580 _impl_.solver_time_limit_seconds_ = value;
9582
9583// optional bool enable_internal_solver_output = 4 [default = false];
9585 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U);
9586 return value;
9587}
9589 ::google::protobuf::internal::TSanWrite(&_impl_);
9590 _impl_.enable_internal_solver_output_ = false;
9591 ClearHasBit(_impl_._has_bits_[0],
9592 0x00000010U);
9593}
9595 // @@protoc_insertion_point(field_get:operations_research.MPModelRequest.enable_internal_solver_output)
9596 return _internal_enable_internal_solver_output();
9597}
9599 _internal_set_enable_internal_solver_output(value);
9600 SetHasBit(_impl_._has_bits_[0], 0x00000010U);
9601 // @@protoc_insertion_point(field_set:operations_research.MPModelRequest.enable_internal_solver_output)
9602}
9603inline bool MPModelRequest::_internal_enable_internal_solver_output() const {
9604 ::google::protobuf::internal::TSanRead(&_impl_);
9605 return _impl_.enable_internal_solver_output_;
9606}
9607inline void MPModelRequest::_internal_set_enable_internal_solver_output(bool value) {
9608 ::google::protobuf::internal::TSanWrite(&_impl_);
9609 _impl_.enable_internal_solver_output_ = value;
9610}
9611
9612// optional string solver_specific_parameters = 5;
9614 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U);
9615 return value;
9616}
9618 ::google::protobuf::internal::TSanWrite(&_impl_);
9619 _impl_.solver_specific_parameters_.ClearToEmpty();
9620 ClearHasBit(_impl_._has_bits_[0],
9621 0x00000001U);
9622}
9623inline const ::std::string& MPModelRequest::solver_specific_parameters() const
9624 ABSL_ATTRIBUTE_LIFETIME_BOUND {
9625 // @@protoc_insertion_point(field_get:operations_research.MPModelRequest.solver_specific_parameters)
9626 return _internal_solver_specific_parameters();
9627}
9628template <typename Arg_, typename... Args_>
9629PROTOBUF_ALWAYS_INLINE void MPModelRequest::set_solver_specific_parameters(Arg_&& arg, Args_... args) {
9630 ::google::protobuf::internal::TSanWrite(&_impl_);
9631 SetHasBit(_impl_._has_bits_[0], 0x00000001U);
9632 _impl_.solver_specific_parameters_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
9633 // @@protoc_insertion_point(field_set:operations_research.MPModelRequest.solver_specific_parameters)
9634}
9635inline ::std::string* PROTOBUF_NONNULL MPModelRequest::mutable_solver_specific_parameters()
9636 ABSL_ATTRIBUTE_LIFETIME_BOUND {
9637 SetHasBit(_impl_._has_bits_[0], 0x00000001U);
9638 ::std::string* _s = _internal_mutable_solver_specific_parameters();
9639 // @@protoc_insertion_point(field_mutable:operations_research.MPModelRequest.solver_specific_parameters)
9640 return _s;
9641}
9642inline const ::std::string& MPModelRequest::_internal_solver_specific_parameters() const {
9643 ::google::protobuf::internal::TSanRead(&_impl_);
9644 return _impl_.solver_specific_parameters_.Get();
9645}
9646inline void MPModelRequest::_internal_set_solver_specific_parameters(const ::std::string& value) {
9647 ::google::protobuf::internal::TSanWrite(&_impl_);
9648 _impl_.solver_specific_parameters_.Set(value, GetArena());
9649}
9650inline ::std::string* PROTOBUF_NONNULL MPModelRequest::_internal_mutable_solver_specific_parameters() {
9651 ::google::protobuf::internal::TSanWrite(&_impl_);
9652 return _impl_.solver_specific_parameters_.Mutable( GetArena());
9653}
9654inline ::std::string* PROTOBUF_NULLABLE MPModelRequest::release_solver_specific_parameters() {
9655 ::google::protobuf::internal::TSanWrite(&_impl_);
9656 // @@protoc_insertion_point(field_release:operations_research.MPModelRequest.solver_specific_parameters)
9657 if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) {
9658 return nullptr;
9659 }
9660 ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
9661 auto* released = _impl_.solver_specific_parameters_.Release();
9662 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
9663 _impl_.solver_specific_parameters_.Set("", GetArena());
9664 }
9665 return released;
9666}
9667inline void MPModelRequest::set_allocated_solver_specific_parameters(::std::string* PROTOBUF_NULLABLE value) {
9668 ::google::protobuf::internal::TSanWrite(&_impl_);
9669 if (value != nullptr) {
9670 SetHasBit(_impl_._has_bits_[0], 0x00000001U);
9671 } else {
9672 ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
9674 _impl_.solver_specific_parameters_.SetAllocated(value, GetArena());
9675 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.solver_specific_parameters_.IsDefault()) {
9676 _impl_.solver_specific_parameters_.Set("", GetArena());
9677 }
9678 // @@protoc_insertion_point(field_set_allocated:operations_research.MPModelRequest.solver_specific_parameters)
9680
9681// optional bool ignore_solver_specific_parameters_failure = 9 [default = false];
9683 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U);
9684 return value;
9685}
9687 ::google::protobuf::internal::TSanWrite(&_impl_);
9688 _impl_.ignore_solver_specific_parameters_failure_ = false;
9689 ClearHasBit(_impl_._has_bits_[0],
9690 0x00000020U);
9691}
9693 // @@protoc_insertion_point(field_get:operations_research.MPModelRequest.ignore_solver_specific_parameters_failure)
9694 return _internal_ignore_solver_specific_parameters_failure();
9695}
9697 _internal_set_ignore_solver_specific_parameters_failure(value);
9698 SetHasBit(_impl_._has_bits_[0], 0x00000020U);
9699 // @@protoc_insertion_point(field_set:operations_research.MPModelRequest.ignore_solver_specific_parameters_failure)
9700}
9701inline bool MPModelRequest::_internal_ignore_solver_specific_parameters_failure() const {
9702 ::google::protobuf::internal::TSanRead(&_impl_);
9703 return _impl_.ignore_solver_specific_parameters_failure_;
9704}
9705inline void MPModelRequest::_internal_set_ignore_solver_specific_parameters_failure(bool value) {
9706 ::google::protobuf::internal::TSanWrite(&_impl_);
9707 _impl_.ignore_solver_specific_parameters_failure_ = value;
9708}
9709
9710// optional .operations_research.MPModelDeltaProto model_delta = 8;
9712 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U);
9713 PROTOBUF_ASSUME(!value || _impl_.model_delta_ != nullptr);
9714 return value;
9715}
9717 ::google::protobuf::internal::TSanWrite(&_impl_);
9718 if (_impl_.model_delta_ != nullptr) _impl_.model_delta_->Clear();
9719 ClearHasBit(_impl_._has_bits_[0],
9720 0x00000004U);
9721}
9722inline const ::operations_research::MPModelDeltaProto& MPModelRequest::_internal_model_delta() const {
9723 ::google::protobuf::internal::TSanRead(&_impl_);
9724 const ::operations_research::MPModelDeltaProto* p = _impl_.model_delta_;
9727inline const ::operations_research::MPModelDeltaProto& MPModelRequest::model_delta() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
9728 // @@protoc_insertion_point(field_get:operations_research.MPModelRequest.model_delta)
9729 return _internal_model_delta();
9732 ::operations_research::MPModelDeltaProto* PROTOBUF_NULLABLE value) {
9733 ::google::protobuf::internal::TSanWrite(&_impl_);
9734 if (GetArena() == nullptr) {
9735 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.model_delta_);
9737 _impl_.model_delta_ = reinterpret_cast<::operations_research::MPModelDeltaProto*>(value);
9738 if (value != nullptr) {
9739 SetHasBit(_impl_._has_bits_[0], 0x00000004U);
9740 } else {
9741 ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
9742 }
9743 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.MPModelRequest.model_delta)
9744}
9745inline ::operations_research::MPModelDeltaProto* PROTOBUF_NULLABLE MPModelRequest::release_model_delta() {
9746 ::google::protobuf::internal::TSanWrite(&_impl_);
9747
9748 ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
9749 ::operations_research::MPModelDeltaProto* released = _impl_.model_delta_;
9750 _impl_.model_delta_ = nullptr;
9751 if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
9752 auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
9753 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
9754 if (GetArena() == nullptr) {
9755 delete old;
9756 }
9757 } else {
9758 if (GetArena() != nullptr) {
9759 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
9761 }
9762 return released;
9763}
9764inline ::operations_research::MPModelDeltaProto* PROTOBUF_NULLABLE MPModelRequest::unsafe_arena_release_model_delta() {
9765 ::google::protobuf::internal::TSanWrite(&_impl_);
9766 // @@protoc_insertion_point(field_release:operations_research.MPModelRequest.model_delta)
9767
9768 ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
9769 ::operations_research::MPModelDeltaProto* temp = _impl_.model_delta_;
9770 _impl_.model_delta_ = nullptr;
9771 return temp;
9772}
9773inline ::operations_research::MPModelDeltaProto* PROTOBUF_NONNULL MPModelRequest::_internal_mutable_model_delta() {
9774 ::google::protobuf::internal::TSanWrite(&_impl_);
9775 if (_impl_.model_delta_ == nullptr) {
9776 auto* p = ::google::protobuf::Message::DefaultConstruct<::operations_research::MPModelDeltaProto>(GetArena());
9777 _impl_.model_delta_ = reinterpret_cast<::operations_research::MPModelDeltaProto*>(p);
9778 }
9779 return _impl_.model_delta_;
9780}
9781inline ::operations_research::MPModelDeltaProto* PROTOBUF_NONNULL MPModelRequest::mutable_model_delta()
9782 ABSL_ATTRIBUTE_LIFETIME_BOUND {
9783 SetHasBit(_impl_._has_bits_[0], 0x00000004U);
9784 ::operations_research::MPModelDeltaProto* _msg = _internal_mutable_model_delta();
9785 // @@protoc_insertion_point(field_mutable:operations_research.MPModelRequest.model_delta)
9786 return _msg;
9787}
9788inline void MPModelRequest::set_allocated_model_delta(::operations_research::MPModelDeltaProto* PROTOBUF_NULLABLE value) {
9789 ::google::protobuf::Arena* message_arena = GetArena();
9790 ::google::protobuf::internal::TSanWrite(&_impl_);
9791 if (message_arena == nullptr) {
9792 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.model_delta_);
9793 }
9794
9795 if (value != nullptr) {
9796 ::google::protobuf::Arena* submessage_arena = value->GetArena();
9797 if (message_arena != submessage_arena) {
9798 value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
9799 }
9800 SetHasBit(_impl_._has_bits_[0], 0x00000004U);
9801 } else {
9802 ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
9803 }
9804
9805 _impl_.model_delta_ = reinterpret_cast<::operations_research::MPModelDeltaProto*>(value);
9806 // @@protoc_insertion_point(field_set_allocated:operations_research.MPModelRequest.model_delta)
9807}
9809// optional int32 populate_additional_solutions_up_to = 11 [default = 0];
9811 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U);
9812 return value;
9813}
9815 ::google::protobuf::internal::TSanWrite(&_impl_);
9816 _impl_.populate_additional_solutions_up_to_ = 0;
9817 ClearHasBit(_impl_._has_bits_[0],
9818 0x00000040U);
9819}
9821 // @@protoc_insertion_point(field_get:operations_research.MPModelRequest.populate_additional_solutions_up_to)
9822 return _internal_populate_additional_solutions_up_to();
9823}
9825 _internal_set_populate_additional_solutions_up_to(value);
9826 SetHasBit(_impl_._has_bits_[0], 0x00000040U);
9827 // @@protoc_insertion_point(field_set:operations_research.MPModelRequest.populate_additional_solutions_up_to)
9828}
9829inline ::int32_t MPModelRequest::_internal_populate_additional_solutions_up_to() const {
9830 ::google::protobuf::internal::TSanRead(&_impl_);
9831 return _impl_.populate_additional_solutions_up_to_;
9833inline void MPModelRequest::_internal_set_populate_additional_solutions_up_to(::int32_t value) {
9834 ::google::protobuf::internal::TSanWrite(&_impl_);
9835 _impl_.populate_additional_solutions_up_to_ = value;
9836}
9837
9838// -------------------------------------------------------------------
9839
9840// MPSolution
9841
9842// optional double objective_value = 1;
9843inline bool MPSolution::has_objective_value() const {
9844 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U);
9845 return value;
9846}
9848 ::google::protobuf::internal::TSanWrite(&_impl_);
9849 _impl_.objective_value_ = 0;
9850 ClearHasBit(_impl_._has_bits_[0],
9851 0x00000002U);
9852}
9853inline double MPSolution::objective_value() const {
9854 // @@protoc_insertion_point(field_get:operations_research.MPSolution.objective_value)
9855 return _internal_objective_value();
9856}
9857inline void MPSolution::set_objective_value(double value) {
9858 _internal_set_objective_value(value);
9859 SetHasBit(_impl_._has_bits_[0], 0x00000002U);
9860 // @@protoc_insertion_point(field_set:operations_research.MPSolution.objective_value)
9861}
9862inline double MPSolution::_internal_objective_value() const {
9863 ::google::protobuf::internal::TSanRead(&_impl_);
9864 return _impl_.objective_value_;
9865}
9866inline void MPSolution::_internal_set_objective_value(double value) {
9867 ::google::protobuf::internal::TSanWrite(&_impl_);
9868 _impl_.objective_value_ = value;
9869}
9870
9871// repeated double variable_value = 2 [packed = true];
9872inline int MPSolution::_internal_variable_value_size() const {
9873 return _internal_variable_value().size();
9874}
9875inline int MPSolution::variable_value_size() const {
9876 return _internal_variable_value_size();
9877}
9879 ::google::protobuf::internal::TSanWrite(&_impl_);
9880 _impl_.variable_value_.Clear();
9881 ClearHasBitForRepeated(_impl_._has_bits_[0],
9882 0x00000001U);
9883}
9884inline double MPSolution::variable_value(int index) const {
9885 // @@protoc_insertion_point(field_get:operations_research.MPSolution.variable_value)
9886 return _internal_variable_value().Get(index);
9887}
9888inline void MPSolution::set_variable_value(int index, double value) {
9889 _internal_mutable_variable_value()->Set(index, value);
9890 // @@protoc_insertion_point(field_set:operations_research.MPSolution.variable_value)
9891}
9892inline void MPSolution::add_variable_value(double value) {
9893 ::google::protobuf::internal::TSanWrite(&_impl_);
9894 _internal_mutable_variable_value()->Add(value);
9895 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U);
9896 // @@protoc_insertion_point(field_add:operations_research.MPSolution.variable_value)
9897}
9898inline const ::google::protobuf::RepeatedField<double>& MPSolution::variable_value() const
9899 ABSL_ATTRIBUTE_LIFETIME_BOUND {
9900 // @@protoc_insertion_point(field_list:operations_research.MPSolution.variable_value)
9901 return _internal_variable_value();
9903inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL MPSolution::mutable_variable_value()
9904 ABSL_ATTRIBUTE_LIFETIME_BOUND {
9905 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U);
9906 // @@protoc_insertion_point(field_mutable_list:operations_research.MPSolution.variable_value)
9907 ::google::protobuf::internal::TSanWrite(&_impl_);
9908 return _internal_mutable_variable_value();
9909}
9910inline const ::google::protobuf::RepeatedField<double>&
9911MPSolution::_internal_variable_value() const {
9912 ::google::protobuf::internal::TSanRead(&_impl_);
9913 return _impl_.variable_value_;
9914}
9915inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL
9916MPSolution::_internal_mutable_variable_value() {
9917 ::google::protobuf::internal::TSanRead(&_impl_);
9918 return &_impl_.variable_value_;
9919}
9921// -------------------------------------------------------------------
9922
9923// MPSolveInfo
9924
9925// optional double solve_wall_time_seconds = 1;
9926inline bool MPSolveInfo::has_solve_wall_time_seconds() const {
9927 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U);
9928 return value;
9931 ::google::protobuf::internal::TSanWrite(&_impl_);
9932 _impl_.solve_wall_time_seconds_ = 0;
9933 ClearHasBit(_impl_._has_bits_[0],
9934 0x00000001U);
9935}
9936inline double MPSolveInfo::solve_wall_time_seconds() const {
9937 // @@protoc_insertion_point(field_get:operations_research.MPSolveInfo.solve_wall_time_seconds)
9938 return _internal_solve_wall_time_seconds();
9939}
9940inline void MPSolveInfo::set_solve_wall_time_seconds(double value) {
9941 _internal_set_solve_wall_time_seconds(value);
9942 SetHasBit(_impl_._has_bits_[0], 0x00000001U);
9943 // @@protoc_insertion_point(field_set:operations_research.MPSolveInfo.solve_wall_time_seconds)
9944}
9945inline double MPSolveInfo::_internal_solve_wall_time_seconds() const {
9946 ::google::protobuf::internal::TSanRead(&_impl_);
9947 return _impl_.solve_wall_time_seconds_;
9949inline void MPSolveInfo::_internal_set_solve_wall_time_seconds(double value) {
9950 ::google::protobuf::internal::TSanWrite(&_impl_);
9951 _impl_.solve_wall_time_seconds_ = value;
9952}
9953
9954// optional double solve_user_time_seconds = 2;
9955inline bool MPSolveInfo::has_solve_user_time_seconds() const {
9956 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U);
9957 return value;
9958}
9960 ::google::protobuf::internal::TSanWrite(&_impl_);
9961 _impl_.solve_user_time_seconds_ = 0;
9962 ClearHasBit(_impl_._has_bits_[0],
9963 0x00000002U);
9964}
9965inline double MPSolveInfo::solve_user_time_seconds() const {
9966 // @@protoc_insertion_point(field_get:operations_research.MPSolveInfo.solve_user_time_seconds)
9967 return _internal_solve_user_time_seconds();
9968}
9969inline void MPSolveInfo::set_solve_user_time_seconds(double value) {
9970 _internal_set_solve_user_time_seconds(value);
9971 SetHasBit(_impl_._has_bits_[0], 0x00000002U);
9972 // @@protoc_insertion_point(field_set:operations_research.MPSolveInfo.solve_user_time_seconds)
9973}
9974inline double MPSolveInfo::_internal_solve_user_time_seconds() const {
9975 ::google::protobuf::internal::TSanRead(&_impl_);
9976 return _impl_.solve_user_time_seconds_;
9977}
9978inline void MPSolveInfo::_internal_set_solve_user_time_seconds(double value) {
9979 ::google::protobuf::internal::TSanWrite(&_impl_);
9980 _impl_.solve_user_time_seconds_ = value;
9981}
9983// -------------------------------------------------------------------
9984
9985// MPSolutionResponse
9987// optional .operations_research.MPSolverResponseStatus status = 1 [default = MPSOLVER_UNKNOWN_STATUS];
9988inline bool MPSolutionResponse::has_status() const {
9989 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000200U);
9990 return value;
9991}
9993 ::google::protobuf::internal::TSanWrite(&_impl_);
9994 _impl_.status_ = 99;
9995 ClearHasBit(_impl_._has_bits_[0],
9996 0x00000200U);
9997}
9998inline ::operations_research::MPSolverResponseStatus MPSolutionResponse::status() const {
9999 // @@protoc_insertion_point(field_get:operations_research.MPSolutionResponse.status)
10000 return _internal_status();
10003 _internal_set_status(value);
10004 SetHasBit(_impl_._has_bits_[0], 0x00000200U);
10005 // @@protoc_insertion_point(field_set:operations_research.MPSolutionResponse.status)
10006}
10007inline ::operations_research::MPSolverResponseStatus MPSolutionResponse::_internal_status() const {
10008 ::google::protobuf::internal::TSanRead(&_impl_);
10009 return static_cast<::operations_research::MPSolverResponseStatus>(_impl_.status_);
10010}
10011inline void MPSolutionResponse::_internal_set_status(::operations_research::MPSolverResponseStatus value) {
10012 ::google::protobuf::internal::TSanWrite(&_impl_);
10013
10014 assert(::google::protobuf::internal::ValidateEnum(
10016 _impl_.status_ = value;
10017}
10018
10019// optional string status_str = 7;
10020inline bool MPSolutionResponse::has_status_str() const {
10021 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U);
10022 return value;
10023}
10025 ::google::protobuf::internal::TSanWrite(&_impl_);
10026 _impl_.status_str_.ClearToEmpty();
10027 ClearHasBit(_impl_._has_bits_[0],
10028 0x00000010U);
10029}
10030inline const ::std::string& MPSolutionResponse::status_str() const
10031 ABSL_ATTRIBUTE_LIFETIME_BOUND {
10032 // @@protoc_insertion_point(field_get:operations_research.MPSolutionResponse.status_str)
10033 return _internal_status_str();
10034}
10035template <typename Arg_, typename... Args_>
10036PROTOBUF_ALWAYS_INLINE void MPSolutionResponse::set_status_str(Arg_&& arg, Args_... args) {
10037 ::google::protobuf::internal::TSanWrite(&_impl_);
10038 SetHasBit(_impl_._has_bits_[0], 0x00000010U);
10039 _impl_.status_str_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
10040 // @@protoc_insertion_point(field_set:operations_research.MPSolutionResponse.status_str)
10041}
10042inline ::std::string* PROTOBUF_NONNULL MPSolutionResponse::mutable_status_str()
10043 ABSL_ATTRIBUTE_LIFETIME_BOUND {
10044 SetHasBit(_impl_._has_bits_[0], 0x00000010U);
10045 ::std::string* _s = _internal_mutable_status_str();
10046 // @@protoc_insertion_point(field_mutable:operations_research.MPSolutionResponse.status_str)
10047 return _s;
10048}
10049inline const ::std::string& MPSolutionResponse::_internal_status_str() const {
10050 ::google::protobuf::internal::TSanRead(&_impl_);
10051 return _impl_.status_str_.Get();
10052}
10053inline void MPSolutionResponse::_internal_set_status_str(const ::std::string& value) {
10054 ::google::protobuf::internal::TSanWrite(&_impl_);
10055 _impl_.status_str_.Set(value, GetArena());
10056}
10057inline ::std::string* PROTOBUF_NONNULL MPSolutionResponse::_internal_mutable_status_str() {
10058 ::google::protobuf::internal::TSanWrite(&_impl_);
10059 return _impl_.status_str_.Mutable( GetArena());
10060}
10061inline ::std::string* PROTOBUF_NULLABLE MPSolutionResponse::release_status_str() {
10062 ::google::protobuf::internal::TSanWrite(&_impl_);
10063 // @@protoc_insertion_point(field_release:operations_research.MPSolutionResponse.status_str)
10064 if (!CheckHasBit(_impl_._has_bits_[0], 0x00000010U)) {
10065 return nullptr;
10066 }
10067 ClearHasBit(_impl_._has_bits_[0], 0x00000010U);
10068 auto* released = _impl_.status_str_.Release();
10069 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
10070 _impl_.status_str_.Set("", GetArena());
10072 return released;
10073}
10074inline void MPSolutionResponse::set_allocated_status_str(::std::string* PROTOBUF_NULLABLE value) {
10075 ::google::protobuf::internal::TSanWrite(&_impl_);
10076 if (value != nullptr) {
10077 SetHasBit(_impl_._has_bits_[0], 0x00000010U);
10078 } else {
10079 ClearHasBit(_impl_._has_bits_[0], 0x00000010U);
10080 }
10081 _impl_.status_str_.SetAllocated(value, GetArena());
10082 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.status_str_.IsDefault()) {
10083 _impl_.status_str_.Set("", GetArena());
10084 }
10085 // @@protoc_insertion_point(field_set_allocated:operations_research.MPSolutionResponse.status_str)
10086}
10087
10088// optional double objective_value = 2;
10090 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000080U);
10091 return value;
10092}
10094 ::google::protobuf::internal::TSanWrite(&_impl_);
10095 _impl_.objective_value_ = 0;
10096 ClearHasBit(_impl_._has_bits_[0],
10097 0x00000080U);
10098}
10099inline double MPSolutionResponse::objective_value() const {
10100 // @@protoc_insertion_point(field_get:operations_research.MPSolutionResponse.objective_value)
10101 return _internal_objective_value();
10102}
10103inline void MPSolutionResponse::set_objective_value(double value) {
10104 _internal_set_objective_value(value);
10105 SetHasBit(_impl_._has_bits_[0], 0x00000080U);
10106 // @@protoc_insertion_point(field_set:operations_research.MPSolutionResponse.objective_value)
10107}
10108inline double MPSolutionResponse::_internal_objective_value() const {
10109 ::google::protobuf::internal::TSanRead(&_impl_);
10110 return _impl_.objective_value_;
10111}
10112inline void MPSolutionResponse::_internal_set_objective_value(double value) {
10113 ::google::protobuf::internal::TSanWrite(&_impl_);
10114 _impl_.objective_value_ = value;
10115}
10116
10117// optional double best_objective_bound = 5;
10119 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000100U);
10120 return value;
10123 ::google::protobuf::internal::TSanWrite(&_impl_);
10124 _impl_.best_objective_bound_ = 0;
10125 ClearHasBit(_impl_._has_bits_[0],
10126 0x00000100U);
10127}
10128inline double MPSolutionResponse::best_objective_bound() const {
10129 // @@protoc_insertion_point(field_get:operations_research.MPSolutionResponse.best_objective_bound)
10130 return _internal_best_objective_bound();
10131}
10132inline void MPSolutionResponse::set_best_objective_bound(double value) {
10133 _internal_set_best_objective_bound(value);
10134 SetHasBit(_impl_._has_bits_[0], 0x00000100U);
10135 // @@protoc_insertion_point(field_set:operations_research.MPSolutionResponse.best_objective_bound)
10137inline double MPSolutionResponse::_internal_best_objective_bound() const {
10138 ::google::protobuf::internal::TSanRead(&_impl_);
10139 return _impl_.best_objective_bound_;
10141inline void MPSolutionResponse::_internal_set_best_objective_bound(double value) {
10142 ::google::protobuf::internal::TSanWrite(&_impl_);
10143 _impl_.best_objective_bound_ = value;
10144}
10145
10146// repeated double variable_value = 3 [packed = true];
10147inline int MPSolutionResponse::_internal_variable_value_size() const {
10148 return _internal_variable_value().size();
10149}
10151 return _internal_variable_value_size();
10152}
10154 ::google::protobuf::internal::TSanWrite(&_impl_);
10155 _impl_.variable_value_.Clear();
10156 ClearHasBitForRepeated(_impl_._has_bits_[0],
10157 0x00000001U);
10158}
10159inline double MPSolutionResponse::variable_value(int index) const {
10160 // @@protoc_insertion_point(field_get:operations_research.MPSolutionResponse.variable_value)
10161 return _internal_variable_value().Get(index);
10162}
10163inline void MPSolutionResponse::set_variable_value(int index, double value) {
10164 _internal_mutable_variable_value()->Set(index, value);
10165 // @@protoc_insertion_point(field_set:operations_research.MPSolutionResponse.variable_value)
10166}
10167inline void MPSolutionResponse::add_variable_value(double value) {
10168 ::google::protobuf::internal::TSanWrite(&_impl_);
10169 _internal_mutable_variable_value()->Add(value);
10170 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U);
10171 // @@protoc_insertion_point(field_add:operations_research.MPSolutionResponse.variable_value)
10172}
10173inline const ::google::protobuf::RepeatedField<double>& MPSolutionResponse::variable_value() const
10174 ABSL_ATTRIBUTE_LIFETIME_BOUND {
10175 // @@protoc_insertion_point(field_list:operations_research.MPSolutionResponse.variable_value)
10176 return _internal_variable_value();
10177}
10178inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL MPSolutionResponse::mutable_variable_value()
10179 ABSL_ATTRIBUTE_LIFETIME_BOUND {
10180 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U);
10181 // @@protoc_insertion_point(field_mutable_list:operations_research.MPSolutionResponse.variable_value)
10182 ::google::protobuf::internal::TSanWrite(&_impl_);
10183 return _internal_mutable_variable_value();
10184}
10185inline const ::google::protobuf::RepeatedField<double>&
10186MPSolutionResponse::_internal_variable_value() const {
10187 ::google::protobuf::internal::TSanRead(&_impl_);
10188 return _impl_.variable_value_;
10189}
10190inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL
10191MPSolutionResponse::_internal_mutable_variable_value() {
10192 ::google::protobuf::internal::TSanRead(&_impl_);
10193 return &_impl_.variable_value_;
10194}
10195
10196// optional .operations_research.MPSolveInfo solve_info = 10;
10198 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U);
10199 PROTOBUF_ASSUME(!value || _impl_.solve_info_ != nullptr);
10200 return value;
10201}
10203 ::google::protobuf::internal::TSanWrite(&_impl_);
10204 if (_impl_.solve_info_ != nullptr) _impl_.solve_info_->Clear();
10205 ClearHasBit(_impl_._has_bits_[0],
10206 0x00000040U);
10207}
10208inline const ::operations_research::MPSolveInfo& MPSolutionResponse::_internal_solve_info() const {
10209 ::google::protobuf::internal::TSanRead(&_impl_);
10210 const ::operations_research::MPSolveInfo* p = _impl_.solve_info_;
10211 return p != nullptr ? *p : reinterpret_cast<const ::operations_research::MPSolveInfo&>(::operations_research::_MPSolveInfo_default_instance_);
10212}
10213inline const ::operations_research::MPSolveInfo& MPSolutionResponse::solve_info() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
10214 // @@protoc_insertion_point(field_get:operations_research.MPSolutionResponse.solve_info)
10215 return _internal_solve_info();
10216}
10218 ::operations_research::MPSolveInfo* PROTOBUF_NULLABLE value) {
10219 ::google::protobuf::internal::TSanWrite(&_impl_);
10220 if (GetArena() == nullptr) {
10221 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.solve_info_);
10222 }
10223 _impl_.solve_info_ = reinterpret_cast<::operations_research::MPSolveInfo*>(value);
10224 if (value != nullptr) {
10225 SetHasBit(_impl_._has_bits_[0], 0x00000040U);
10226 } else {
10227 ClearHasBit(_impl_._has_bits_[0], 0x00000040U);
10228 }
10229 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.MPSolutionResponse.solve_info)
10230}
10231inline ::operations_research::MPSolveInfo* PROTOBUF_NULLABLE MPSolutionResponse::release_solve_info() {
10232 ::google::protobuf::internal::TSanWrite(&_impl_);
10233
10234 ClearHasBit(_impl_._has_bits_[0], 0x00000040U);
10235 ::operations_research::MPSolveInfo* released = _impl_.solve_info_;
10236 _impl_.solve_info_ = nullptr;
10237 if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
10238 auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
10239 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
10240 if (GetArena() == nullptr) {
10241 delete old;
10242 }
10243 } else {
10244 if (GetArena() != nullptr) {
10245 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
10246 }
10247 }
10248 return released;
10250inline ::operations_research::MPSolveInfo* PROTOBUF_NULLABLE MPSolutionResponse::unsafe_arena_release_solve_info() {
10251 ::google::protobuf::internal::TSanWrite(&_impl_);
10252 // @@protoc_insertion_point(field_release:operations_research.MPSolutionResponse.solve_info)
10253
10254 ClearHasBit(_impl_._has_bits_[0], 0x00000040U);
10255 ::operations_research::MPSolveInfo* temp = _impl_.solve_info_;
10256 _impl_.solve_info_ = nullptr;
10257 return temp;
10258}
10259inline ::operations_research::MPSolveInfo* PROTOBUF_NONNULL MPSolutionResponse::_internal_mutable_solve_info() {
10260 ::google::protobuf::internal::TSanWrite(&_impl_);
10261 if (_impl_.solve_info_ == nullptr) {
10262 auto* p = ::google::protobuf::Message::DefaultConstruct<::operations_research::MPSolveInfo>(GetArena());
10263 _impl_.solve_info_ = reinterpret_cast<::operations_research::MPSolveInfo*>(p);
10265 return _impl_.solve_info_;
10266}
10267inline ::operations_research::MPSolveInfo* PROTOBUF_NONNULL MPSolutionResponse::mutable_solve_info()
10268 ABSL_ATTRIBUTE_LIFETIME_BOUND {
10269 SetHasBit(_impl_._has_bits_[0], 0x00000040U);
10270 ::operations_research::MPSolveInfo* _msg = _internal_mutable_solve_info();
10271 // @@protoc_insertion_point(field_mutable:operations_research.MPSolutionResponse.solve_info)
10272 return _msg;
10273}
10274inline void MPSolutionResponse::set_allocated_solve_info(::operations_research::MPSolveInfo* PROTOBUF_NULLABLE value) {
10275 ::google::protobuf::Arena* message_arena = GetArena();
10276 ::google::protobuf::internal::TSanWrite(&_impl_);
10277 if (message_arena == nullptr) {
10278 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.solve_info_);
10279 }
10280
10281 if (value != nullptr) {
10282 ::google::protobuf::Arena* submessage_arena = value->GetArena();
10283 if (message_arena != submessage_arena) {
10284 value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
10285 }
10286 SetHasBit(_impl_._has_bits_[0], 0x00000040U);
10287 } else {
10288 ClearHasBit(_impl_._has_bits_[0], 0x00000040U);
10289 }
10290
10291 _impl_.solve_info_ = reinterpret_cast<::operations_research::MPSolveInfo*>(value);
10292 // @@protoc_insertion_point(field_set_allocated:operations_research.MPSolutionResponse.solve_info)
10293}
10294
10295// optional bytes solver_specific_info = 11;
10297 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U);
10298 return value;
10299}
10301 ::google::protobuf::internal::TSanWrite(&_impl_);
10302 _impl_.solver_specific_info_.ClearToEmpty();
10303 ClearHasBit(_impl_._has_bits_[0],
10304 0x00000020U);
10305}
10306inline const ::std::string& MPSolutionResponse::solver_specific_info() const
10307 ABSL_ATTRIBUTE_LIFETIME_BOUND {
10308 // @@protoc_insertion_point(field_get:operations_research.MPSolutionResponse.solver_specific_info)
10309 return _internal_solver_specific_info();
10310}
10311template <typename Arg_, typename... Args_>
10312PROTOBUF_ALWAYS_INLINE void MPSolutionResponse::set_solver_specific_info(Arg_&& arg, Args_... args) {
10313 ::google::protobuf::internal::TSanWrite(&_impl_);
10314 SetHasBit(_impl_._has_bits_[0], 0x00000020U);
10315 _impl_.solver_specific_info_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
10316 // @@protoc_insertion_point(field_set:operations_research.MPSolutionResponse.solver_specific_info)
10317}
10318inline ::std::string* PROTOBUF_NONNULL MPSolutionResponse::mutable_solver_specific_info()
10319 ABSL_ATTRIBUTE_LIFETIME_BOUND {
10320 SetHasBit(_impl_._has_bits_[0], 0x00000020U);
10321 ::std::string* _s = _internal_mutable_solver_specific_info();
10322 // @@protoc_insertion_point(field_mutable:operations_research.MPSolutionResponse.solver_specific_info)
10323 return _s;
10324}
10325inline const ::std::string& MPSolutionResponse::_internal_solver_specific_info() const {
10326 ::google::protobuf::internal::TSanRead(&_impl_);
10327 return _impl_.solver_specific_info_.Get();
10328}
10329inline void MPSolutionResponse::_internal_set_solver_specific_info(const ::std::string& value) {
10330 ::google::protobuf::internal::TSanWrite(&_impl_);
10331 _impl_.solver_specific_info_.Set(value, GetArena());
10332}
10333inline ::std::string* PROTOBUF_NONNULL MPSolutionResponse::_internal_mutable_solver_specific_info() {
10334 ::google::protobuf::internal::TSanWrite(&_impl_);
10335 return _impl_.solver_specific_info_.Mutable( GetArena());
10336}
10337inline ::std::string* PROTOBUF_NULLABLE MPSolutionResponse::release_solver_specific_info() {
10338 ::google::protobuf::internal::TSanWrite(&_impl_);
10339 // @@protoc_insertion_point(field_release:operations_research.MPSolutionResponse.solver_specific_info)
10340 if (!CheckHasBit(_impl_._has_bits_[0], 0x00000020U)) {
10341 return nullptr;
10342 }
10343 ClearHasBit(_impl_._has_bits_[0], 0x00000020U);
10344 auto* released = _impl_.solver_specific_info_.Release();
10345 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
10346 _impl_.solver_specific_info_.Set("", GetArena());
10348 return released;
10349}
10350inline void MPSolutionResponse::set_allocated_solver_specific_info(::std::string* PROTOBUF_NULLABLE value) {
10351 ::google::protobuf::internal::TSanWrite(&_impl_);
10352 if (value != nullptr) {
10353 SetHasBit(_impl_._has_bits_[0], 0x00000020U);
10354 } else {
10355 ClearHasBit(_impl_._has_bits_[0], 0x00000020U);
10356 }
10357 _impl_.solver_specific_info_.SetAllocated(value, GetArena());
10358 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.solver_specific_info_.IsDefault()) {
10359 _impl_.solver_specific_info_.Set("", GetArena());
10360 }
10361 // @@protoc_insertion_point(field_set_allocated:operations_research.MPSolutionResponse.solver_specific_info)
10362}
10363
10364// repeated double dual_value = 4 [packed = true];
10365inline int MPSolutionResponse::_internal_dual_value_size() const {
10366 return _internal_dual_value().size();
10367}
10368inline int MPSolutionResponse::dual_value_size() const {
10369 return _internal_dual_value_size();
10370}
10372 ::google::protobuf::internal::TSanWrite(&_impl_);
10373 _impl_.dual_value_.Clear();
10374 ClearHasBitForRepeated(_impl_._has_bits_[0],
10375 0x00000002U);
10376}
10377inline double MPSolutionResponse::dual_value(int index) const {
10378 // @@protoc_insertion_point(field_get:operations_research.MPSolutionResponse.dual_value)
10379 return _internal_dual_value().Get(index);
10380}
10381inline void MPSolutionResponse::set_dual_value(int index, double value) {
10382 _internal_mutable_dual_value()->Set(index, value);
10383 // @@protoc_insertion_point(field_set:operations_research.MPSolutionResponse.dual_value)
10385inline void MPSolutionResponse::add_dual_value(double value) {
10386 ::google::protobuf::internal::TSanWrite(&_impl_);
10387 _internal_mutable_dual_value()->Add(value);
10388 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U);
10389 // @@protoc_insertion_point(field_add:operations_research.MPSolutionResponse.dual_value)
10390}
10391inline const ::google::protobuf::RepeatedField<double>& MPSolutionResponse::dual_value() const
10392 ABSL_ATTRIBUTE_LIFETIME_BOUND {
10393 // @@protoc_insertion_point(field_list:operations_research.MPSolutionResponse.dual_value)
10394 return _internal_dual_value();
10395}
10396inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL MPSolutionResponse::mutable_dual_value()
10397 ABSL_ATTRIBUTE_LIFETIME_BOUND {
10398 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U);
10399 // @@protoc_insertion_point(field_mutable_list:operations_research.MPSolutionResponse.dual_value)
10400 ::google::protobuf::internal::TSanWrite(&_impl_);
10401 return _internal_mutable_dual_value();
10402}
10403inline const ::google::protobuf::RepeatedField<double>&
10404MPSolutionResponse::_internal_dual_value() const {
10405 ::google::protobuf::internal::TSanRead(&_impl_);
10406 return _impl_.dual_value_;
10407}
10408inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL
10409MPSolutionResponse::_internal_mutable_dual_value() {
10410 ::google::protobuf::internal::TSanRead(&_impl_);
10411 return &_impl_.dual_value_;
10412}
10413
10414// repeated double reduced_cost = 6 [packed = true];
10415inline int MPSolutionResponse::_internal_reduced_cost_size() const {
10416 return _internal_reduced_cost().size();
10417}
10419 return _internal_reduced_cost_size();
10420}
10422 ::google::protobuf::internal::TSanWrite(&_impl_);
10423 _impl_.reduced_cost_.Clear();
10424 ClearHasBitForRepeated(_impl_._has_bits_[0],
10425 0x00000004U);
10426}
10427inline double MPSolutionResponse::reduced_cost(int index) const {
10428 // @@protoc_insertion_point(field_get:operations_research.MPSolutionResponse.reduced_cost)
10429 return _internal_reduced_cost().Get(index);
10430}
10431inline void MPSolutionResponse::set_reduced_cost(int index, double value) {
10432 _internal_mutable_reduced_cost()->Set(index, value);
10433 // @@protoc_insertion_point(field_set:operations_research.MPSolutionResponse.reduced_cost)
10434}
10435inline void MPSolutionResponse::add_reduced_cost(double value) {
10436 ::google::protobuf::internal::TSanWrite(&_impl_);
10437 _internal_mutable_reduced_cost()->Add(value);
10438 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000004U);
10439 // @@protoc_insertion_point(field_add:operations_research.MPSolutionResponse.reduced_cost)
10440}
10441inline const ::google::protobuf::RepeatedField<double>& MPSolutionResponse::reduced_cost() const
10442 ABSL_ATTRIBUTE_LIFETIME_BOUND {
10443 // @@protoc_insertion_point(field_list:operations_research.MPSolutionResponse.reduced_cost)
10444 return _internal_reduced_cost();
10445}
10446inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL MPSolutionResponse::mutable_reduced_cost()
10447 ABSL_ATTRIBUTE_LIFETIME_BOUND {
10448 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000004U);
10449 // @@protoc_insertion_point(field_mutable_list:operations_research.MPSolutionResponse.reduced_cost)
10450 ::google::protobuf::internal::TSanWrite(&_impl_);
10451 return _internal_mutable_reduced_cost();
10452}
10453inline const ::google::protobuf::RepeatedField<double>&
10454MPSolutionResponse::_internal_reduced_cost() const {
10455 ::google::protobuf::internal::TSanRead(&_impl_);
10456 return _impl_.reduced_cost_;
10457}
10458inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL
10459MPSolutionResponse::_internal_mutable_reduced_cost() {
10460 ::google::protobuf::internal::TSanRead(&_impl_);
10461 return &_impl_.reduced_cost_;
10462}
10463
10464// repeated .operations_research.MPSolution additional_solutions = 8;
10465inline int MPSolutionResponse::_internal_additional_solutions_size() const {
10466 return _internal_additional_solutions().size();
10467}
10469 return _internal_additional_solutions_size();
10470}
10472 ::google::protobuf::internal::TSanWrite(&_impl_);
10473 _impl_.additional_solutions_.Clear();
10474 ClearHasBitForRepeated(_impl_._has_bits_[0],
10475 0x00000008U);
10476}
10477inline ::operations_research::MPSolution* PROTOBUF_NONNULL MPSolutionResponse::mutable_additional_solutions(int index)
10478 ABSL_ATTRIBUTE_LIFETIME_BOUND {
10479 // @@protoc_insertion_point(field_mutable:operations_research.MPSolutionResponse.additional_solutions)
10480 return _internal_mutable_additional_solutions()->Mutable(index);
10481}
10482inline ::google::protobuf::RepeatedPtrField<::operations_research::MPSolution>* PROTOBUF_NONNULL MPSolutionResponse::mutable_additional_solutions()
10483 ABSL_ATTRIBUTE_LIFETIME_BOUND {
10484 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000008U);
10485 // @@protoc_insertion_point(field_mutable_list:operations_research.MPSolutionResponse.additional_solutions)
10486 ::google::protobuf::internal::TSanWrite(&_impl_);
10487 return _internal_mutable_additional_solutions();
10489inline const ::operations_research::MPSolution& MPSolutionResponse::additional_solutions(int index) const
10490 ABSL_ATTRIBUTE_LIFETIME_BOUND {
10491 // @@protoc_insertion_point(field_get:operations_research.MPSolutionResponse.additional_solutions)
10492 return _internal_additional_solutions().Get(index);
10494inline ::operations_research::MPSolution* PROTOBUF_NONNULL MPSolutionResponse::add_additional_solutions()
10495 ABSL_ATTRIBUTE_LIFETIME_BOUND {
10496 ::google::protobuf::internal::TSanWrite(&_impl_);
10498 _internal_mutable_additional_solutions()->InternalAddWithArena(
10499 ::google::protobuf::MessageLite::internal_visibility(), GetArena());
10500 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000008U);
10501 // @@protoc_insertion_point(field_add:operations_research.MPSolutionResponse.additional_solutions)
10502 return _add;
10503}
10504inline const ::google::protobuf::RepeatedPtrField<::operations_research::MPSolution>& MPSolutionResponse::additional_solutions() const
10505 ABSL_ATTRIBUTE_LIFETIME_BOUND {
10506 // @@protoc_insertion_point(field_list:operations_research.MPSolutionResponse.additional_solutions)
10507 return _internal_additional_solutions();
10508}
10509inline const ::google::protobuf::RepeatedPtrField<::operations_research::MPSolution>&
10510MPSolutionResponse::_internal_additional_solutions() const {
10511 ::google::protobuf::internal::TSanRead(&_impl_);
10512 return _impl_.additional_solutions_;
10513}
10514inline ::google::protobuf::RepeatedPtrField<::operations_research::MPSolution>* PROTOBUF_NONNULL
10515MPSolutionResponse::_internal_mutable_additional_solutions() {
10516 ::google::protobuf::internal::TSanRead(&_impl_);
10517 return &_impl_.additional_solutions_;
10519
10520#ifdef __GNUC__
10521#pragma GCC diagnostic pop
10522#endif // __GNUC__
10523
10524// @@protoc_insertion_point(namespace_scope)
10525} // namespace operations_research
10526
10527
10528namespace google {
10529namespace protobuf {
10530
10531template <>
10532struct is_proto_enum<::operations_research::MPSosConstraint_Type> : std::true_type {};
10533template <>
10534inline const EnumDescriptor* PROTOBUF_NONNULL GetEnumDescriptor<::operations_research::MPSosConstraint_Type>() {
10535 return ::operations_research::MPSosConstraint_Type_descriptor();
10537template <>
10538struct is_proto_enum<::operations_research::MPModelProto_Annotation_TargetType> : std::true_type {};
10539template <>
10540inline const EnumDescriptor* PROTOBUF_NONNULL GetEnumDescriptor<::operations_research::MPModelProto_Annotation_TargetType>() {
10541 return ::operations_research::MPModelProto_Annotation_TargetType_descriptor();
10542}
10543template <>
10544struct is_proto_enum<::operations_research::MPSolverCommonParameters_LPAlgorithmValues> : std::true_type {};
10545template <>
10546inline const EnumDescriptor* PROTOBUF_NONNULL GetEnumDescriptor<::operations_research::MPSolverCommonParameters_LPAlgorithmValues>() {
10547 return ::operations_research::MPSolverCommonParameters_LPAlgorithmValues_descriptor();
10548}
10549template <>
10550struct is_proto_enum<::operations_research::MPModelRequest_SolverType> : std::true_type {};
10551template <>
10552inline const EnumDescriptor* PROTOBUF_NONNULL GetEnumDescriptor<::operations_research::MPModelRequest_SolverType>() {
10553 return ::operations_research::MPModelRequest_SolverType_descriptor();
10554}
10555template <>
10556struct is_proto_enum<::operations_research::MPSolverResponseStatus> : std::true_type {};
10557template <>
10558inline const EnumDescriptor* PROTOBUF_NONNULL GetEnumDescriptor<::operations_research::MPSolverResponseStatus>() {
10559 return ::operations_research::MPSolverResponseStatus_descriptor();
10560}
10561
10562} // namespace protobuf
10563} // namespace google
10564
10565// @@protoc_insertion_point(global_scope)
10566
10567#include "google/protobuf/port_undef.inc"
10568
10569#endif // ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto_2epb_2eh
void UnsafeArenaSwap(MPAbsConstraint *PROTOBUF_NONNULL other)
void CopyFrom(const MPAbsConstraint &from)
static const MPAbsConstraint & default_instance()
friend void swap(MPAbsConstraint &a, MPAbsConstraint &b)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void set_resultant_var_index(::int32_t value)
MPAbsConstraint *PROTOBUF_NONNULL New(::google::protobuf::Arena *PROTOBUF_NULLABLE arena=nullptr) const
void MergeFrom(const MPAbsConstraint &from)
void Swap(MPAbsConstraint *PROTOBUF_NONNULL other)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
inline ::google::protobuf::UnknownFieldSet *PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND
const ::google::protobuf::RepeatedField<::int32_t > & var_index() const
void MergeFrom(const MPArrayConstraint &from)
static const MPArrayConstraint & default_instance()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
::google::protobuf::RepeatedField<::int32_t > *PROTOBUF_NONNULL mutable_var_index()
void Swap(MPArrayConstraint *PROTOBUF_NONNULL other)
MPArrayConstraint *PROTOBUF_NONNULL New(::google::protobuf::Arena *PROTOBUF_NULLABLE arena=nullptr) const
friend void swap(MPArrayConstraint &a, MPArrayConstraint &b)
void set_var_index(int index, ::int32_t value)
void Swap(MPArrayWithConstantConstraint *PROTOBUF_NONNULL other)
static const MPArrayWithConstantConstraint & default_instance()
::google::protobuf::RepeatedField<::int32_t > *PROTOBUF_NONNULL mutable_var_index()
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL GetDescriptor()
void MergeFrom(const MPArrayWithConstantConstraint &from)
const ::google::protobuf::RepeatedField<::int32_t > & var_index() const
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void CopyFrom(const MPArrayWithConstantConstraint &from)
void set_name(Arg_ &&arg, Args_... args)
void set_var_index(int index, ::int32_t value)
::google::protobuf::RepeatedField< double > *PROTOBUF_NONNULL mutable_coefficient()
static const ::google::protobuf::Reflection *PROTOBUF_NONNULL GetReflection()
::google::protobuf::RepeatedField<::int32_t > *PROTOBUF_NONNULL mutable_var_index()
const ::std::string & name() const
const ::google::protobuf::RepeatedField< double > & coefficient() const
void MergeFrom(const MPConstraintProto &from)
void Swap(MPConstraintProto *PROTOBUF_NONNULL other)
void CopyFrom(const MPConstraintProto &from)
static const MPConstraintProto & default_instance()
friend void swap(MPConstraintProto &a, MPConstraintProto &b)
void set_allocated_name(::std::string *PROTOBUF_NULLABLE value)
void set_coefficient(int index, double value)
::std::string *PROTOBUF_NULLABLE release_name()
::std::string *PROTOBUF_NONNULL mutable_name()
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
const ::google::protobuf::RepeatedField<::int32_t > & var_index() const
::std::string *PROTOBUF_NONNULL mutable_name()
void unsafe_arena_set_allocated_sos_constraint(::operations_research::MPSosConstraint *PROTOBUF_NULLABLE value)
void set_allocated_abs_constraint(::operations_research::MPAbsConstraint *PROTOBUF_NULLABLE value)
void set_allocated_indicator_constraint(::operations_research::MPIndicatorConstraint *PROTOBUF_NULLABLE value)
::operations_research::MPAbsConstraint *PROTOBUF_NULLABLE unsafe_arena_release_abs_constraint()
::operations_research::MPAbsConstraint *PROTOBUF_NONNULL mutable_abs_constraint()
void set_allocated_or_constraint(::operations_research::MPArrayConstraint *PROTOBUF_NULLABLE value)
GeneralConstraintCase general_constraint_case() const
void MergeFrom(const MPGeneralConstraintProto &from)
::operations_research::MPArrayWithConstantConstraint *PROTOBUF_NULLABLE unsafe_arena_release_min_constraint()
::operations_research::MPArrayWithConstantConstraint *PROTOBUF_NONNULL mutable_max_constraint()
void unsafe_arena_set_allocated_and_constraint(::operations_research::MPArrayConstraint *PROTOBUF_NULLABLE value)
void unsafe_arena_set_allocated_quadratic_constraint(::operations_research::MPQuadraticConstraint *PROTOBUF_NULLABLE value)
::operations_research::MPArrayConstraint *PROTOBUF_NULLABLE unsafe_arena_release_or_constraint()
::operations_research::MPAbsConstraint *PROTOBUF_NULLABLE release_abs_constraint()
::operations_research::MPIndicatorConstraint *PROTOBUF_NONNULL mutable_indicator_constraint()
::operations_research::MPSosConstraint *PROTOBUF_NULLABLE release_sos_constraint()
void unsafe_arena_set_allocated_or_constraint(::operations_research::MPArrayConstraint *PROTOBUF_NULLABLE value)
void unsafe_arena_set_allocated_min_constraint(::operations_research::MPArrayWithConstantConstraint *PROTOBUF_NULLABLE value)
void unsafe_arena_set_allocated_indicator_constraint(::operations_research::MPIndicatorConstraint *PROTOBUF_NULLABLE value)
::operations_research::MPArrayConstraint *PROTOBUF_NULLABLE release_and_constraint()
void set_allocated_sos_constraint(::operations_research::MPSosConstraint *PROTOBUF_NULLABLE value)
void UnsafeArenaSwap(MPGeneralConstraintProto *PROTOBUF_NONNULL other)
::operations_research::MPIndicatorConstraint *PROTOBUF_NULLABLE release_indicator_constraint()
inline ::google::protobuf::UnknownFieldSet *PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND
const ::operations_research::MPAbsConstraint & abs_constraint() const
::operations_research::MPArrayConstraint *PROTOBUF_NULLABLE release_or_constraint()
::operations_research::MPSosConstraint *PROTOBUF_NONNULL mutable_sos_constraint()
void set_allocated_min_constraint(::operations_research::MPArrayWithConstantConstraint *PROTOBUF_NULLABLE value)
::operations_research::MPQuadraticConstraint *PROTOBUF_NULLABLE release_quadratic_constraint()
void unsafe_arena_set_allocated_max_constraint(::operations_research::MPArrayWithConstantConstraint *PROTOBUF_NULLABLE value)
void set_allocated_and_constraint(::operations_research::MPArrayConstraint *PROTOBUF_NULLABLE value)
::operations_research::MPIndicatorConstraint *PROTOBUF_NULLABLE unsafe_arena_release_indicator_constraint()
const ::operations_research::MPArrayWithConstantConstraint & max_constraint() const
::operations_research::MPArrayConstraint *PROTOBUF_NONNULL mutable_and_constraint()
void set_allocated_name(::std::string *PROTOBUF_NULLABLE value)
::operations_research::MPArrayWithConstantConstraint *PROTOBUF_NONNULL mutable_min_constraint()
friend void swap(MPGeneralConstraintProto &a, MPGeneralConstraintProto &b)
const ::operations_research::MPIndicatorConstraint & indicator_constraint() const
void set_allocated_quadratic_constraint(::operations_research::MPQuadraticConstraint *PROTOBUF_NULLABLE value)
::operations_research::MPArrayWithConstantConstraint *PROTOBUF_NULLABLE release_max_constraint()
::operations_research::MPQuadraticConstraint *PROTOBUF_NONNULL mutable_quadratic_constraint()
const ::operations_research::MPArrayConstraint & and_constraint() const
::std::string *PROTOBUF_NULLABLE release_name()
::operations_research::MPSosConstraint *PROTOBUF_NULLABLE unsafe_arena_release_sos_constraint()
::google::protobuf::Metadata GetMetadata() const
const ::operations_research::MPArrayWithConstantConstraint & min_constraint() const
::operations_research::MPArrayConstraint *PROTOBUF_NULLABLE unsafe_arena_release_and_constraint()
const ::operations_research::MPArrayConstraint & or_constraint() const
void set_allocated_max_constraint(::operations_research::MPArrayWithConstantConstraint *PROTOBUF_NULLABLE value)
::operations_research::MPArrayConstraint *PROTOBUF_NONNULL mutable_or_constraint()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
::operations_research::MPArrayWithConstantConstraint *PROTOBUF_NULLABLE unsafe_arena_release_max_constraint()
const ::operations_research::MPQuadraticConstraint & quadratic_constraint() const
void set_name(Arg_ &&arg, Args_... args)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void unsafe_arena_set_allocated_abs_constraint(::operations_research::MPAbsConstraint *PROTOBUF_NULLABLE value)
::operations_research::MPQuadraticConstraint *PROTOBUF_NULLABLE unsafe_arena_release_quadratic_constraint()
::operations_research::MPArrayWithConstantConstraint *PROTOBUF_NULLABLE release_min_constraint()
void Swap(MPGeneralConstraintProto *PROTOBUF_NONNULL other)
void CopyFrom(const MPGeneralConstraintProto &from)
MPGeneralConstraintProto *PROTOBUF_NONNULL New(::google::protobuf::Arena *PROTOBUF_NULLABLE arena=nullptr) const
const ::operations_research::MPSosConstraint & sos_constraint() const
friend void swap(MPIndicatorConstraint &a, MPIndicatorConstraint &b)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void MergeFrom(const MPIndicatorConstraint &from)
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL GetDescriptor()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
void set_allocated_constraint(::operations_research::MPConstraintProto *PROTOBUF_NULLABLE value)
::operations_research::MPConstraintProto *PROTOBUF_NULLABLE release_constraint()
void unsafe_arena_set_allocated_constraint(::operations_research::MPConstraintProto *PROTOBUF_NULLABLE value)
::operations_research::MPConstraintProto *PROTOBUF_NONNULL mutable_constraint()
MPIndicatorConstraint *PROTOBUF_NONNULL New(::google::protobuf::Arena *PROTOBUF_NULLABLE arena=nullptr) const
void Swap(MPIndicatorConstraint *PROTOBUF_NONNULL other)
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL descriptor()
const ::operations_research::MPConstraintProto & constraint() const
::operations_research::MPConstraintProto *PROTOBUF_NULLABLE unsafe_arena_release_constraint()
void CopyFrom(const MPIndicatorConstraint &from)
::google::protobuf::Metadata GetMetadata() const
MPIndicatorConstraint & operator=(const MPIndicatorConstraint &from)
friend class ::google::protobuf::Arena
::google::protobuf::internal::MapEntry<::int32_t, ::google::protobuf::Message, ::google::protobuf::internal::WireFormatLite::TYPE_INT32, ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE > SuperType
static constexpr const void *PROTOBUF_NONNULL internal_default_instance()
MPModelDeltaProto & operator=(const MPModelDeltaProto &from)
const ::std::string & baseline_model_file_path() const
void set_allocated_baseline_model_file_path(::std::string *PROTOBUF_NULLABLE value)
MPModelDeltaProto *PROTOBUF_NONNULL New(::google::protobuf::Arena *PROTOBUF_NULLABLE arena=nullptr) const
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL GetDescriptor()
const ::google::protobuf::Map<::int32_t, ::operations_research::MPVariableProto > & variable_overrides() const
void Swap(MPModelDeltaProto *PROTOBUF_NONNULL other)
::std::string *PROTOBUF_NULLABLE release_baseline_model_file_path()
void MergeFrom(const MPModelDeltaProto &from)
inline ::google::protobuf::UnknownFieldSet *PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND
static constexpr auto InternalGenerateClassData_()
void CopyFrom(const MPModelDeltaProto &from)
::google::protobuf::Map<::int32_t, ::operations_research::MPConstraintProto > *PROTOBUF_NONNULL mutable_constraint_overrides()
::google::protobuf::Map<::int32_t, ::operations_research::MPVariableProto > *PROTOBUF_NONNULL mutable_variable_overrides()
::std::string *PROTOBUF_NONNULL mutable_baseline_model_file_path()
const ::google::protobuf::Map<::int32_t, ::operations_research::MPConstraintProto > & constraint_overrides() const
void set_baseline_model_file_path(Arg_ &&arg, Args_... args)
void UnsafeArenaSwap(MPModelDeltaProto *PROTOBUF_NONNULL other)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
friend class ::google::protobuf::Arena
::google::protobuf::Metadata GetMetadata() const
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
friend void swap(MPModelProto_Annotation &a, MPModelProto_Annotation &b)
void set_payload_value(Arg_ &&arg, Args_... args)
static bool TargetType_Parse(::absl::string_view name, TargetType *PROTOBUF_NONNULL value)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
::std::string *PROTOBUF_NONNULL mutable_payload_key()
void set_target_name(Arg_ &&arg, Args_... args)
::std::string *PROTOBUF_NULLABLE release_target_name()
void set_allocated_payload_value(::std::string *PROTOBUF_NULLABLE value)
static const ::std::string & TargetType_Name(T value)
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL GetDescriptor()
::std::string *PROTOBUF_NONNULL mutable_payload_value()
::std::string *PROTOBUF_NULLABLE release_payload_value()
void set_payload_key(Arg_ &&arg, Args_... args)
::operations_research::MPModelProto_Annotation_TargetType target_type() const
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
::std::string *PROTOBUF_NONNULL mutable_target_name()
static const ::google::protobuf::EnumDescriptor *PROTOBUF_NONNULL TargetType_descriptor()
MPModelProto_Annotation_TargetType TargetType
void set_allocated_target_name(::std::string *PROTOBUF_NULLABLE value)
void Swap(MPModelProto_Annotation *PROTOBUF_NONNULL other)
::std::string *PROTOBUF_NULLABLE release_payload_key()
void set_allocated_payload_key(::std::string *PROTOBUF_NULLABLE value)
void UnsafeArenaSwap(MPModelProto_Annotation *PROTOBUF_NONNULL other)
void set_target_type(::operations_research::MPModelProto_Annotation_TargetType value)
const ::google::protobuf::RepeatedPtrField<::operations_research::MPGeneralConstraintProto > & general_constraint() const
::google::protobuf::RepeatedPtrField<::operations_research::MPModelProto_Annotation > *PROTOBUF_NONNULL mutable_annotation()
void MergeFrom(const MPModelProto &from)
const ::operations_research::MPVariableProto & variable(int index) const
::operations_research::PartialVariableAssignment *PROTOBUF_NULLABLE release_solution_hint()
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL descriptor()
::operations_research::PartialVariableAssignment *PROTOBUF_NULLABLE unsafe_arena_release_solution_hint()
void set_allocated_solution_hint(::operations_research::PartialVariableAssignment *PROTOBUF_NULLABLE value)
void CopyFrom(const MPModelProto &from)
::google::protobuf::Metadata GetMetadata() const
const ::google::protobuf::RepeatedPtrField<::operations_research::MPConstraintProto > & constraint() const
friend void swap(MPModelProto &a, MPModelProto &b)
const ::operations_research::MPGeneralConstraintProto & general_constraint(int index) const
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
void set_allocated_quadratic_objective(::operations_research::MPQuadraticObjective *PROTOBUF_NULLABLE value)
const ::operations_research::MPQuadraticObjective & quadratic_objective() const
::std::string *PROTOBUF_NONNULL mutable_name()
::operations_research::MPConstraintProto *PROTOBUF_NONNULL add_constraint()
::operations_research::MPConstraintProto *PROTOBUF_NONNULL mutable_constraint(int index)
::google::protobuf::RepeatedPtrField<::operations_research::MPGeneralConstraintProto > *PROTOBUF_NONNULL mutable_general_constraint()
::operations_research::MPVariableProto *PROTOBUF_NONNULL add_variable()
MPModelProto *PROTOBUF_NONNULL New(::google::protobuf::Arena *PROTOBUF_NULLABLE arena=nullptr) const
::operations_research::MPGeneralConstraintProto *PROTOBUF_NONNULL add_general_constraint()
void set_allocated_name(::std::string *PROTOBUF_NULLABLE value)
void unsafe_arena_set_allocated_solution_hint(::operations_research::PartialVariableAssignment *PROTOBUF_NULLABLE value)
::operations_research::PartialVariableAssignment *PROTOBUF_NONNULL mutable_solution_hint()
const ::operations_research::MPConstraintProto & constraint(int index) const
static constexpr auto InternalGenerateClassData_()
::operations_research::MPModelProto_Annotation *PROTOBUF_NONNULL add_annotation()
::operations_research::MPQuadraticObjective *PROTOBUF_NONNULL mutable_quadratic_objective()
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL GetDescriptor()
void set_name(Arg_ &&arg, Args_... args)
::std::string *PROTOBUF_NULLABLE release_name()
const ::operations_research::MPModelProto_Annotation & annotation(int index) const
::operations_research::MPQuadraticObjective *PROTOBUF_NULLABLE release_quadratic_objective()
void Swap(MPModelProto *PROTOBUF_NONNULL other)
::operations_research::MPVariableProto *PROTOBUF_NONNULL mutable_variable(int index)
::google::protobuf::RepeatedPtrField<::operations_research::MPConstraintProto > *PROTOBUF_NONNULL mutable_constraint()
const ::google::protobuf::RepeatedPtrField<::operations_research::MPModelProto_Annotation > & annotation() const
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
static const MPModelProto & default_instance()
const ::operations_research::PartialVariableAssignment & solution_hint() const
::google::protobuf::RepeatedPtrField<::operations_research::MPVariableProto > *PROTOBUF_NONNULL mutable_variable()
void unsafe_arena_set_allocated_quadratic_objective(::operations_research::MPQuadraticObjective *PROTOBUF_NULLABLE value)
static constexpr int kIndexInFileMessages
const ::google::protobuf::RepeatedPtrField<::operations_research::MPVariableProto > & variable() const
::operations_research::MPQuadraticObjective *PROTOBUF_NULLABLE unsafe_arena_release_quadratic_objective()
const ::std::string & name() const
::operations_research::MPGeneralConstraintProto *PROTOBUF_NONNULL mutable_general_constraint(int index)
::operations_research::MPModelProto_Annotation *PROTOBUF_NONNULL mutable_annotation(int index)
MPModelRequest *PROTOBUF_NONNULL New(::google::protobuf::Arena *PROTOBUF_NULLABLE arena=nullptr) const
static constexpr SolverType CPLEX_LINEAR_PROGRAMMING
void MergeFrom(const MPModelRequest &from)
static constexpr SolverType CBC_MIXED_INTEGER_PROGRAMMING
void set_allocated_model_delta(::operations_research::MPModelDeltaProto *PROTOBUF_NULLABLE value)
::operations_research::MPModelDeltaProto *PROTOBUF_NULLABLE unsafe_arena_release_model_delta()
MPModelRequest_SolverType SolverType
::std::string *PROTOBUF_NONNULL mutable_solver_specific_parameters()
static constexpr SolverType CLP_LINEAR_PROGRAMMING
MPModelRequest & operator=(const MPModelRequest &from)
void set_solver_specific_parameters(Arg_ &&arg, Args_... args)
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL descriptor()
static constexpr SolverType HIGHS_LINEAR_PROGRAMMING
static bool SolverType_IsValid(int value)
::operations_research::MPModelProto *PROTOBUF_NULLABLE unsafe_arena_release_model()
static constexpr SolverType SolverType_MAX
void UnsafeArenaSwap(MPModelRequest *PROTOBUF_NONNULL other)
static constexpr SolverType SAT_INTEGER_PROGRAMMING
static const ::std::string & SolverType_Name(T value)
void set_allocated_model(::operations_research::MPModelProto *PROTOBUF_NULLABLE value)
const ::operations_research::MPModelDeltaProto & model_delta() const
static constexpr SolverType HIGHS_MIXED_INTEGER_PROGRAMMING
static constexpr SolverType BOP_INTEGER_PROGRAMMING
static constexpr SolverType GUROBI_MIXED_INTEGER_PROGRAMMING
::int32_t populate_additional_solutions_up_to() const
::operations_research::MPModelProto *PROTOBUF_NONNULL mutable_model()
static constexpr SolverType PDLP_LINEAR_PROGRAMMING
inline ::google::protobuf::UnknownFieldSet *PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND
static constexpr auto InternalGenerateClassData_()
void set_solver_type(::operations_research::MPModelRequest_SolverType value)
void Swap(MPModelRequest *PROTOBUF_NONNULL other)
static constexpr SolverType XPRESS_LINEAR_PROGRAMMING
::operations_research::MPModelDeltaProto *PROTOBUF_NONNULL mutable_model_delta()
::google::protobuf::Metadata GetMetadata() const
static constexpr SolverType KNAPSACK_MIXED_INTEGER_PROGRAMMING
static constexpr SolverType GLPK_MIXED_INTEGER_PROGRAMMING
::operations_research::MPModelDeltaProto *PROTOBUF_NULLABLE release_model_delta()
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void set_ignore_solver_specific_parameters_failure(bool value)
::std::string *PROTOBUF_NULLABLE release_solver_specific_parameters()
::operations_research::MPModelRequest_SolverType solver_type() const
static bool SolverType_Parse(::absl::string_view name, SolverType *PROTOBUF_NONNULL value)
static constexpr SolverType GLPK_LINEAR_PROGRAMMING
void set_populate_additional_solutions_up_to(::int32_t value)
static constexpr SolverType GUROBI_LINEAR_PROGRAMMING
static constexpr SolverType CPLEX_MIXED_INTEGER_PROGRAMMING
static const MPModelRequest & default_instance()
void set_allocated_solver_specific_parameters(::std::string *PROTOBUF_NULLABLE value)
const ::std::string & solver_specific_parameters() const
static const ::google::protobuf::EnumDescriptor *PROTOBUF_NONNULL SolverType_descriptor()
void unsafe_arena_set_allocated_model_delta(::operations_research::MPModelDeltaProto *PROTOBUF_NULLABLE value)
const ::operations_research::MPModelProto & model() const
static constexpr SolverType GLOP_LINEAR_PROGRAMMING
void unsafe_arena_set_allocated_model(::operations_research::MPModelProto *PROTOBUF_NULLABLE value)
static constexpr SolverType SCIP_MIXED_INTEGER_PROGRAMMING
static constexpr SolverType XPRESS_MIXED_INTEGER_PROGRAMMING
friend void swap(MPModelRequest &a, MPModelRequest &b)
::operations_research::MPModelProto *PROTOBUF_NULLABLE release_model()
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL GetDescriptor()
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL GetDescriptor()
void set_var_index(int index, ::int32_t value)
void Swap(MPQuadraticConstraint *PROTOBUF_NONNULL other)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
const ::google::protobuf::RepeatedField<::int32_t > & qvar2_index() const
MPQuadraticConstraint & operator=(const MPQuadraticConstraint &from)
static const MPQuadraticConstraint & default_instance()
void set_qvar2_index(int index, ::int32_t value)
void set_qcoefficient(int index, double value)
void set_coefficient(int index, double value)
void UnsafeArenaSwap(MPQuadraticConstraint *PROTOBUF_NONNULL other)
const ::google::protobuf::RepeatedField<::int32_t > & var_index() const
const ::google::protobuf::RepeatedField< double > & coefficient() const
const ::google::protobuf::RepeatedField< double > & qcoefficient() const
::google::protobuf::RepeatedField< double > *PROTOBUF_NONNULL mutable_coefficient()
::google::protobuf::RepeatedField< double > *PROTOBUF_NONNULL mutable_qcoefficient()
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL descriptor()
const ::google::protobuf::RepeatedField<::int32_t > & qvar1_index() const
::google::protobuf::RepeatedField<::int32_t > *PROTOBUF_NONNULL mutable_var_index()
void CopyFrom(const MPQuadraticConstraint &from)
void set_qvar1_index(int index, ::int32_t value)
::google::protobuf::RepeatedField<::int32_t > *PROTOBUF_NONNULL mutable_qvar1_index()
::google::protobuf::RepeatedField<::int32_t > *PROTOBUF_NONNULL mutable_qvar2_index()
void Swap(MPQuadraticObjective *PROTOBUF_NONNULL other)
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL GetDescriptor()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
::google::protobuf::RepeatedField< double > *PROTOBUF_NONNULL mutable_coefficient()
void set_qvar1_index(int index, ::int32_t value)
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL descriptor()
const ::google::protobuf::RepeatedField<::int32_t > & qvar1_index() const
void set_qvar2_index(int index, ::int32_t value)
const ::google::protobuf::RepeatedField<::int32_t > & qvar2_index() const
friend void swap(MPQuadraticObjective &a, MPQuadraticObjective &b)
const ::google::protobuf::RepeatedField< double > & coefficient() const
::google::protobuf::RepeatedField<::int32_t > *PROTOBUF_NONNULL mutable_qvar2_index()
::google::protobuf::RepeatedField<::int32_t > *PROTOBUF_NONNULL mutable_qvar1_index()
void set_coefficient(int index, double value)
static const MPQuadraticObjective & default_instance()
void UnsafeArenaSwap(MPQuadraticObjective *PROTOBUF_NONNULL other)
MPQuadraticObjective *PROTOBUF_NONNULL New(::google::protobuf::Arena *PROTOBUF_NULLABLE arena=nullptr) const
void set_variable_value(int index, double value)
MPSolutionResponse & operator=(const MPSolutionResponse &from)
::google::protobuf::RepeatedField< double > *PROTOBUF_NONNULL mutable_reduced_cost()
::std::string *PROTOBUF_NULLABLE release_solver_specific_info()
::operations_research::MPSolveInfo *PROTOBUF_NONNULL mutable_solve_info()
static const MPSolutionResponse & default_instance()
::google::protobuf::RepeatedPtrField<::operations_research::MPSolution > *PROTOBUF_NONNULL mutable_additional_solutions()
void set_allocated_solve_info(::operations_research::MPSolveInfo *PROTOBUF_NULLABLE value)
void unsafe_arena_set_allocated_solve_info(::operations_research::MPSolveInfo *PROTOBUF_NULLABLE value)
::operations_research::MPSolverResponseStatus status() const
const ::std::string & status_str() const
void CopyFrom(const MPSolutionResponse &from)
::std::string *PROTOBUF_NONNULL mutable_status_str()
const ::google::protobuf::RepeatedPtrField<::operations_research::MPSolution > & additional_solutions() const
const ::google::protobuf::RepeatedField< double > & reduced_cost() const
void set_dual_value(int index, double value)
::operations_research::MPSolveInfo *PROTOBUF_NULLABLE release_solve_info()
::std::string *PROTOBUF_NULLABLE release_status_str()
void set_status_str(Arg_ &&arg, Args_... args)
const ::google::protobuf::RepeatedField< double > & dual_value() const
::google::protobuf::RepeatedField< double > *PROTOBUF_NONNULL mutable_variable_value()
void set_solver_specific_info(Arg_ &&arg, Args_... args)
void set_allocated_status_str(::std::string *PROTOBUF_NULLABLE value)
const ::operations_research::MPSolveInfo & solve_info() const
::operations_research::MPSolution *PROTOBUF_NONNULL mutable_additional_solutions(int index)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
::operations_research::MPSolution *PROTOBUF_NONNULL add_additional_solutions()
const ::google::protobuf::RepeatedField< double > & variable_value() const
void Swap(MPSolutionResponse *PROTOBUF_NONNULL other)
void set_allocated_solver_specific_info(::std::string *PROTOBUF_NULLABLE value)
::google::protobuf::RepeatedField< double > *PROTOBUF_NONNULL mutable_dual_value()
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void set_status(::operations_research::MPSolverResponseStatus value)
MPSolutionResponse *PROTOBUF_NONNULL New(::google::protobuf::Arena *PROTOBUF_NULLABLE arena=nullptr) const
void set_reduced_cost(int index, double value)
::std::string *PROTOBUF_NONNULL mutable_solver_specific_info()
const ::std::string & solver_specific_info() const
::operations_research::MPSolveInfo *PROTOBUF_NULLABLE unsafe_arena_release_solve_info()
const ::operations_research::MPSolution & additional_solutions(int index) const
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
::google::protobuf::RepeatedField< double > *PROTOBUF_NONNULL mutable_variable_value()
void set_variable_value(int index, double value)
void Swap(MPSolution *PROTOBUF_NONNULL other)
MPSolution & operator=(const MPSolution &from)
double variable_value(int index) const
::size_t ByteSizeLong() const final
MPSolution *PROTOBUF_NONNULL New(::google::protobuf::Arena *PROTOBUF_NULLABLE arena=nullptr) const
static constexpr int kIndexInFileMessages
friend void swap(MPSolution &a, MPSolution &b)
const ::google::protobuf::RepeatedField< double > & variable_value() const
static const MPSolution & default_instance()
void Swap(MPSolveInfo *PROTOBUF_NONNULL other)
static const ::google::protobuf::Reflection *PROTOBUF_NONNULL GetReflection()
MPSolveInfo *PROTOBUF_NONNULL New(::google::protobuf::Arena *PROTOBUF_NULLABLE arena=nullptr) const
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void set_solve_wall_time_seconds(double value)
void CopyFrom(const MPSolveInfo &from)
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL GetDescriptor()
static const MPSolveInfo & default_instance()
void set_solve_user_time_seconds(double value)
MPSolveInfo & operator=(const MPSolveInfo &from)
void MergeFrom(const MPSolveInfo &from)
void set_presolve(::operations_research::OptionalBoolean value)
::operations_research::OptionalDouble *PROTOBUF_NULLABLE release_dual_tolerance()
const ::operations_research::OptionalDouble & primal_tolerance() const
::operations_research::OptionalDouble *PROTOBUF_NONNULL mutable_relative_mip_gap()
static const MPSolverCommonParameters & default_instance()
::operations_research::OptionalBoolean presolve() const
::operations_research::OptionalDouble *PROTOBUF_NONNULL mutable_dual_tolerance()
::operations_research::MPSolverCommonParameters_LPAlgorithmValues lp_algorithm() const
::operations_research::OptionalDouble *PROTOBUF_NONNULL mutable_primal_tolerance()
void set_allocated_dual_tolerance(::operations_research::OptionalDouble *PROTOBUF_NULLABLE value)
::operations_research::OptionalDouble *PROTOBUF_NULLABLE release_relative_mip_gap()
const ::operations_research::OptionalDouble & relative_mip_gap() const
void set_allocated_relative_mip_gap(::operations_research::OptionalDouble *PROTOBUF_NULLABLE value)
const ::operations_research::OptionalDouble & dual_tolerance() const
static const ::google::protobuf::Reflection *PROTOBUF_NONNULL GetReflection()
::operations_research::OptionalDouble *PROTOBUF_NULLABLE unsafe_arena_release_dual_tolerance()
MPSolverCommonParameters *PROTOBUF_NONNULL New(::google::protobuf::Arena *PROTOBUF_NULLABLE arena=nullptr) const
void set_lp_algorithm(::operations_research::MPSolverCommonParameters_LPAlgorithmValues value)
void set_allocated_primal_tolerance(::operations_research::OptionalDouble *PROTOBUF_NULLABLE value)
::operations_research::OptionalBoolean scaling() const
::operations_research::OptionalDouble *PROTOBUF_NULLABLE unsafe_arena_release_primal_tolerance()
::operations_research::OptionalDouble *PROTOBUF_NULLABLE unsafe_arena_release_relative_mip_gap()
::operations_research::OptionalDouble *PROTOBUF_NULLABLE release_primal_tolerance()
void unsafe_arena_set_allocated_dual_tolerance(::operations_research::OptionalDouble *PROTOBUF_NULLABLE value)
MPSolverCommonParameters_LPAlgorithmValues LPAlgorithmValues
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
static const ::std::string & LPAlgorithmValues_Name(T value)
void set_scaling(::operations_research::OptionalBoolean value)
void unsafe_arena_set_allocated_primal_tolerance(::operations_research::OptionalDouble *PROTOBUF_NULLABLE value)
void unsafe_arena_set_allocated_relative_mip_gap(::operations_research::OptionalDouble *PROTOBUF_NULLABLE value)
void Swap(MPSolverCommonParameters *PROTOBUF_NONNULL other)
static bool LPAlgorithmValues_Parse(::absl::string_view name, LPAlgorithmValues *PROTOBUF_NONNULL value)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL descriptor()
const ::google::protobuf::RepeatedField<::int32_t > & var_index() const
::operations_research::MPSosConstraint_Type type() const
friend void swap(MPSosConstraint &a, MPSosConstraint &b)
void set_weight(int index, double value)
void CopyFrom(const MPSosConstraint &from)
::int32_t var_index(int index) const
static const ::google::protobuf::EnumDescriptor *PROTOBUF_NONNULL Type_descriptor()
void MergeFrom(const MPSosConstraint &from)
::google::protobuf::RepeatedField<::int32_t > *PROTOBUF_NONNULL mutable_var_index()
MPSosConstraint & operator=(const MPSosConstraint &from)
const ::google::protobuf::RepeatedField< double > & weight() const
static const ::std::string & Type_Name(T value)
void Swap(MPSosConstraint *PROTOBUF_NONNULL other)
::google::protobuf::RepeatedField< double > *PROTOBUF_NONNULL mutable_weight()
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL GetDescriptor()
void set_type(::operations_research::MPSosConstraint_Type value)
void set_var_index(int index, ::int32_t value)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
MPSosConstraint *PROTOBUF_NONNULL New(::google::protobuf::Arena *PROTOBUF_NULLABLE arena=nullptr) const
::std::string *PROTOBUF_NONNULL mutable_name()
friend class ::google::protobuf::MessageLite
void CopyFrom(const MPVariableProto &from)
void MergeFrom(const MPVariableProto &from)
void set_name(Arg_ &&arg, Args_... args)
PROTOBUF_CONSTEXPR MPVariableProto(::google::protobuf::internal::ConstantInitialized)
inline ::google::protobuf::UnknownFieldSet *PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL GetDescriptor()
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL descriptor()
MPVariableProto & operator=(const MPVariableProto &from)
friend void swap(MPVariableProto &a, MPVariableProto &b)
const ::std::string & name() const
static const MPVariableProto & default_instance()
void set_allocated_name(::std::string *PROTOBUF_NULLABLE value)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
::std::string *PROTOBUF_NULLABLE release_name()
void Swap(MPVariableProto *PROTOBUF_NONNULL other)
void Swap(OptionalDouble *PROTOBUF_NONNULL other)
friend class ::google::protobuf::MessageLite
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL GetDescriptor()
void CopyFrom(const OptionalDouble &from)
static const OptionalDouble & default_instance()
void MergeFrom(const OptionalDouble &from)
static const ::google::protobuf::Reflection *PROTOBUF_NONNULL GetReflection()
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
OptionalDouble & operator=(const OptionalDouble &from)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
PROTOBUF_CONSTEXPR OptionalDouble(::google::protobuf::internal::ConstantInitialized)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
friend class ::google::protobuf::MessageLite
PartialVariableAssignment & operator=(const PartialVariableAssignment &from)
PartialVariableAssignment(const PartialVariableAssignment &from)
void Swap(PartialVariableAssignment *PROTOBUF_NONNULL other)
void set_var_index(int index, ::int32_t value)
void CopyFrom(const PartialVariableAssignment &from)
::google::protobuf::RepeatedField< double > *PROTOBUF_NONNULL mutable_var_value()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
const ::google::protobuf::RepeatedField< double > & var_value() const
PROTOBUF_CONSTEXPR PartialVariableAssignment(::google::protobuf::internal::ConstantInitialized)
::google::protobuf::RepeatedField<::int32_t > *PROTOBUF_NONNULL mutable_var_index()
const ::google::protobuf::RepeatedField<::int32_t > & var_index() const
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto
::absl::string_view GetAnyMessageName()
OR-Tools root namespace.
const ::std::string & MPModelRequest_SolverType_Name(T value)
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPQuadraticObjectiveDefaultTypeInternal _MPQuadraticObjective_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPModelProto_AnnotationDefaultTypeInternal _MPModelProto_Annotation_default_instance_
PROTOBUF_CONSTINIT const uint32_t MPModelProto_Annotation_TargetType_internal_data_[]
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull OptionalDouble_class_data_
constexpr MPSolverCommonParameters_LPAlgorithmValues MPSolverCommonParameters_LPAlgorithmValues_LPAlgorithmValues_MAX
constexpr MPSolverResponseStatus MPSolverResponseStatus_MAX
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPArrayWithConstantConstraintDefaultTypeInternal _MPArrayWithConstantConstraint_default_instance_
@ MPModelRequest_SolverType_CLP_LINEAR_PROGRAMMING
@ MPModelRequest_SolverType_CBC_MIXED_INTEGER_PROGRAMMING
@ MPModelRequest_SolverType_XPRESS_LINEAR_PROGRAMMING
@ MPModelRequest_SolverType_CPLEX_MIXED_INTEGER_PROGRAMMING
@ MPModelRequest_SolverType_GUROBI_LINEAR_PROGRAMMING
@ MPModelRequest_SolverType_CPLEX_LINEAR_PROGRAMMING
@ MPModelRequest_SolverType_XPRESS_MIXED_INTEGER_PROGRAMMING
@ MPModelRequest_SolverType_BOP_INTEGER_PROGRAMMING
@ MPModelRequest_SolverType_GLOP_LINEAR_PROGRAMMING
@ MPModelRequest_SolverType_HIGHS_LINEAR_PROGRAMMING
@ MPModelRequest_SolverType_PDLP_LINEAR_PROGRAMMING
@ MPModelRequest_SolverType_GLPK_LINEAR_PROGRAMMING
@ MPModelRequest_SolverType_HIGHS_MIXED_INTEGER_PROGRAMMING
@ MPModelRequest_SolverType_KNAPSACK_MIXED_INTEGER_PROGRAMMING
@ MPModelRequest_SolverType_SAT_INTEGER_PROGRAMMING
@ MPModelRequest_SolverType_SCIP_MIXED_INTEGER_PROGRAMMING
@ MPModelRequest_SolverType_GUROBI_MIXED_INTEGER_PROGRAMMING
@ MPModelRequest_SolverType_GLPK_MIXED_INTEGER_PROGRAMMING
bool MPModelRequest_SolverType_Parse(::absl::string_view name, MPModelRequest_SolverType *PROTOBUF_NONNULL value)
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPArrayConstraintDefaultTypeInternal _MPArrayConstraint_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPModelProto_Annotation_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPModelRequest_class_data_
constexpr int MPSolverCommonParameters_LPAlgorithmValues_LPAlgorithmValues_ARRAYSIZE
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPGeneralConstraintProtoDefaultTypeInternal _MPGeneralConstraintProto_default_instance_
const ::google::protobuf::EnumDescriptor *PROTOBUF_NONNULL MPModelProto_Annotation_TargetType_descriptor()
constexpr MPModelRequest_SolverType MPModelRequest_SolverType_SolverType_MAX
constexpr int MPSosConstraint_Type_Type_ARRAYSIZE
@ MPSolverCommonParameters_LPAlgorithmValues_LP_ALGO_DUAL
@ MPSolverCommonParameters_LPAlgorithmValues_LP_ALGO_UNSPECIFIED
@ MPSolverCommonParameters_LPAlgorithmValues_LP_ALGO_PRIMAL
@ MPSolverCommonParameters_LPAlgorithmValues_LP_ALGO_BARRIER
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPConstraintProto_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPAbsConstraint_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPQuadraticConstraint_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPSolutionResponseDefaultTypeInternal _MPSolutionResponse_default_instance_
constexpr MPSosConstraint_Type MPSosConstraint_Type_Type_MAX
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPVariableProtoDefaultTypeInternal _MPVariableProto_default_instance_
const ::std::string & MPSolverCommonParameters_LPAlgorithmValues_Name(T value)
constexpr MPSolverResponseStatus MPSolverResponseStatus_MIN
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPAbsConstraintDefaultTypeInternal _MPAbsConstraint_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPModelDeltaProto_ConstraintOverridesEntry_DoNotUseDefaultTypeInternal _MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPSolutionDefaultTypeInternal _MPSolution_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPVariableProto_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPGeneralConstraintProto_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPModelDeltaProto_VariableOverridesEntry_DoNotUseDefaultTypeInternal _MPModelDeltaProto_VariableOverridesEntry_DoNotUse_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPSosConstraintDefaultTypeInternal _MPSosConstraint_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPSolveInfo_class_data_
const ::std::string & MPSolverResponseStatus_Name(T value)
bool MPSosConstraint_Type_IsValid(int value)
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPSolverCommonParameters_class_data_
PROTOBUF_CONSTINIT const uint32_t MPModelRequest_SolverType_internal_data_[]
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPSolutionResponse_class_data_
bool MPSolverCommonParameters_LPAlgorithmValues_Parse(::absl::string_view name, MPSolverCommonParameters_LPAlgorithmValues *PROTOBUF_NONNULL value)
bool MPSolverResponseStatus_IsValid(int value)
constexpr int MPModelRequest_SolverType_SolverType_ARRAYSIZE
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPModelDeltaProto_VariableOverridesEntry_DoNotUse_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPConstraintProtoDefaultTypeInternal _MPConstraintProto_default_instance_
PROTOBUF_CONSTINIT const uint32_t OptionalBoolean_internal_data_[]
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPModelProto_class_data_
constexpr int MPModelProto_Annotation_TargetType_TargetType_ARRAYSIZE
bool MPModelProto_Annotation_TargetType_Parse(::absl::string_view name, MPModelProto_Annotation_TargetType *PROTOBUF_NONNULL value)
const ::google::protobuf::EnumDescriptor *PROTOBUF_NONNULL MPSolverResponseStatus_descriptor()
@ MPModelProto_Annotation_TargetType_VARIABLE_DEFAULT
@ MPModelProto_Annotation_TargetType_GENERAL_CONSTRAINT
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PartialVariableAssignmentDefaultTypeInternal _PartialVariableAssignment_default_instance_
constexpr MPSosConstraint_Type MPSosConstraint_Type_Type_MIN
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPSosConstraint_class_data_
const ::google::protobuf::EnumDescriptor *PROTOBUF_NONNULL MPModelRequest_SolverType_descriptor()
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPIndicatorConstraintDefaultTypeInternal _MPIndicatorConstraint_default_instance_
bool MPSolverResponseStatus_Parse(::absl::string_view name, MPSolverResponseStatus *PROTOBUF_NONNULL value)
constexpr MPModelProto_Annotation_TargetType MPModelProto_Annotation_TargetType_TargetType_MIN
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OptionalDoubleDefaultTypeInternal _OptionalDouble_default_instance_
bool MPSosConstraint_Type_Parse(::absl::string_view name, MPSosConstraint_Type *PROTOBUF_NONNULL value)
constexpr MPModelRequest_SolverType MPModelRequest_SolverType_SolverType_MIN
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPArrayWithConstantConstraint_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPModelRequestDefaultTypeInternal _MPModelRequest_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPQuadraticObjective_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPQuadraticConstraintDefaultTypeInternal _MPQuadraticConstraint_default_instance_
PROTOBUF_CONSTINIT const uint32_t MPSolverResponseStatus_internal_data_[]
const ::google::protobuf::EnumDescriptor *PROTOBUF_NONNULL MPSosConstraint_Type_descriptor()
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPSolverCommonParametersDefaultTypeInternal _MPSolverCommonParameters_default_instance_
bool MPSolverCommonParameters_LPAlgorithmValues_IsValid(int value)
constexpr MPModelProto_Annotation_TargetType MPModelProto_Annotation_TargetType_TargetType_MAX
const ::std::string & MPModelProto_Annotation_TargetType_Name(T value)
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPModelProtoDefaultTypeInternal _MPModelProto_default_instance_
PROTOBUF_CONSTINIT const uint32_t MPSosConstraint_Type_internal_data_[]
constexpr int MPSolverResponseStatus_ARRAYSIZE
constexpr MPSolverCommonParameters_LPAlgorithmValues MPSolverCommonParameters_LPAlgorithmValues_LPAlgorithmValues_MIN
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPArrayConstraint_class_data_
const ::google::protobuf::EnumDescriptor *PROTOBUF_NONNULL MPSolverCommonParameters_LPAlgorithmValues_descriptor()
bool MPModelRequest_SolverType_IsValid(int value)
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull PartialVariableAssignment_class_data_
const ::std::string & MPSosConstraint_Type_Name(T value)
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPSolveInfoDefaultTypeInternal _MPSolveInfo_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPModelDeltaProto_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPModelDeltaProtoDefaultTypeInternal _MPModelDeltaProto_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPIndicatorConstraint_class_data_
PROTOBUF_CONSTINIT const uint32_t MPSolverCommonParameters_LPAlgorithmValues_internal_data_[]
bool MPModelProto_Annotation_TargetType_IsValid(int value)
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPSolution_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse_class_data_
@ CONSTRAINT
Definition parser.tab.hh:85