Google OR-Tools v9.14
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.31.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 != 6031001
16#error "Protobuf C++ gencode is built with an incompatible version of"
17#error "Protobuf C++ headers/runtime. See"
18#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp"
19#endif
20#include "google/protobuf/io/coded_stream.h"
21#include "google/protobuf/arena.h"
22#include "google/protobuf/arenastring.h"
23#include "google/protobuf/generated_message_tctable_decl.h"
24#include "google/protobuf/generated_message_util.h"
25#include "google/protobuf/metadata_lite.h"
26#include "google/protobuf/generated_message_reflection.h"
27#include "google/protobuf/message.h"
28#include "google/protobuf/message_lite.h"
29#include "google/protobuf/repeated_field.h" // IWYU pragma: export
30#include "google/protobuf/extension_set.h" // IWYU pragma: export
31#include "google/protobuf/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 protected:
491 explicit PartialVariableAssignment(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
492 PartialVariableAssignment(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const PartialVariableAssignment& from);
494 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, PartialVariableAssignment&& from) noexcept
496 *this = ::std::move(from);
497 }
498 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
499 static void* PROTOBUF_NONNULL PlacementNew_(
500 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
501 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
502 static constexpr auto InternalNewImpl_();
503
504 public:
505 static constexpr auto InternalGenerateClassData_();
506
507 ::google::protobuf::Metadata GetMetadata() const;
508 // nested types ----------------------------------------------------
509
510 // accessors -------------------------------------------------------
511 enum : int {
512 kVarIndexFieldNumber = 1,
513 kVarValueFieldNumber = 2,
514 };
515 // repeated int32 var_index = 1 [packed = true];
516 int var_index_size() const;
517 private:
518 int _internal_var_index_size() const;
519
520 public:
521 void clear_var_index() ;
522 ::int32_t var_index(int index) const;
523 void set_var_index(int index, ::int32_t value);
524 void add_var_index(::int32_t value);
525 const ::google::protobuf::RepeatedField<::int32_t>& var_index() const;
526 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL mutable_var_index();
527
528 private:
529 const ::google::protobuf::RepeatedField<::int32_t>& _internal_var_index() const;
530 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_var_index();
531
532 public:
533 // repeated double var_value = 2 [packed = true];
534 int var_value_size() const;
535 private:
536 int _internal_var_value_size() const;
537
538 public:
539 void clear_var_value() ;
540 double var_value(int index) const;
541 void set_var_value(int index, double value);
542 void add_var_value(double value);
543 const ::google::protobuf::RepeatedField<double>& var_value() const;
544 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL mutable_var_value();
545
546 private:
547 const ::google::protobuf::RepeatedField<double>& _internal_var_value() const;
548 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL _internal_mutable_var_value();
549
550 public:
551 // @@protoc_insertion_point(class_scope:operations_research.PartialVariableAssignment)
552 private:
553 class _Internal;
554 friend class ::google::protobuf::internal::TcParser;
555 static const ::google::protobuf::internal::TcParseTable<1, 2,
556 0, 0,
557 2>
558 _table_;
559
560 friend class ::google::protobuf::MessageLite;
561 friend class ::google::protobuf::Arena;
562 template <typename T>
563 friend class ::google::protobuf::Arena::InternalHelper;
564 using InternalArenaConstructable_ = void;
565 using DestructorSkippable_ = void;
566 struct Impl_ {
567 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
568 inline explicit Impl_(
569 ::google::protobuf::internal::InternalVisibility visibility,
570 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
571 inline explicit Impl_(
572 ::google::protobuf::internal::InternalVisibility visibility,
573 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
574 const PartialVariableAssignment& from_msg);
575 ::google::protobuf::RepeatedField<::int32_t> var_index_;
576 ::google::protobuf::internal::CachedSize _var_index_cached_byte_size_;
577 ::google::protobuf::RepeatedField<double> var_value_;
578 ::google::protobuf::internal::CachedSize _cached_size_;
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 protected:
710 explicit OptionalDouble(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
711 OptionalDouble(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const OptionalDouble& from);
713 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, OptionalDouble&& from) noexcept
714 : OptionalDouble(arena) {
715 *this = ::std::move(from);
716 }
717 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
718 static void* PROTOBUF_NONNULL PlacementNew_(
719 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
720 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
721 static constexpr auto InternalNewImpl_();
722
723 public:
724 static constexpr auto InternalGenerateClassData_();
725
726 ::google::protobuf::Metadata GetMetadata() const;
727 // nested types ----------------------------------------------------
728
729 // accessors -------------------------------------------------------
730 enum : int {
731 kValueFieldNumber = 1,
732 };
733 // optional double value = 1;
734 bool has_value() const;
735 void clear_value() ;
736 double value() const;
737 void set_value(double value);
738
739 private:
740 double _internal_value() const;
741 void _internal_set_value(double value);
742
743 public:
744 // @@protoc_insertion_point(class_scope:operations_research.OptionalDouble)
745 private:
746 class _Internal;
747 friend class ::google::protobuf::internal::TcParser;
748 static const ::google::protobuf::internal::TcParseTable<0, 1,
749 0, 0,
750 2>
751 _table_;
752
753 friend class ::google::protobuf::MessageLite;
754 friend class ::google::protobuf::Arena;
755 template <typename T>
756 friend class ::google::protobuf::Arena::InternalHelper;
757 using InternalArenaConstructable_ = void;
758 using DestructorSkippable_ = void;
759 struct Impl_ {
760 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
761 inline explicit Impl_(
762 ::google::protobuf::internal::InternalVisibility visibility,
763 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
764 inline explicit Impl_(
765 ::google::protobuf::internal::InternalVisibility visibility,
766 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
767 const OptionalDouble& from_msg);
768 ::google::protobuf::internal::HasBits<1> _has_bits_;
769 ::google::protobuf::internal::CachedSize _cached_size_;
770 double value_;
771 PROTOBUF_TSAN_DECLARE_MEMBER
772 };
773 union { Impl_ _impl_; };
774 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
775};
777OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull OptionalDouble_class_data_;
778// -------------------------------------------------------------------
779
780class OR_PROTO_DLL MPVariableProto final : public ::google::protobuf::Message
781/* @@protoc_insertion_point(class_definition:operations_research.MPVariableProto) */ {
782 public:
783 inline MPVariableProto() : MPVariableProto(nullptr) {}
784 ~MPVariableProto() PROTOBUF_FINAL;
785
786#if defined(PROTOBUF_CUSTOM_VTABLE)
787 void operator delete(MPVariableProto* PROTOBUF_NONNULL msg, std::destroying_delete_t) {
788 SharedDtor(*msg);
789 ::google::protobuf::internal::SizedDelete(msg, sizeof(MPVariableProto));
790 }
791#endif
792
793 template <typename = void>
794 explicit PROTOBUF_CONSTEXPR MPVariableProto(::google::protobuf::internal::ConstantInitialized);
795
796 inline MPVariableProto(const MPVariableProto& from) : MPVariableProto(nullptr, from) {}
797 inline MPVariableProto(MPVariableProto&& from) noexcept
798 : MPVariableProto(nullptr, ::std::move(from)) {}
799 inline MPVariableProto& operator=(const MPVariableProto& from) {
800 CopyFrom(from);
801 return *this;
802 }
803 inline MPVariableProto& operator=(MPVariableProto&& from) noexcept {
804 if (this == &from) return *this;
805 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
806 InternalSwap(&from);
807 } else {
808 CopyFrom(from);
809 }
810 return *this;
811 }
812
813 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
814 ABSL_ATTRIBUTE_LIFETIME_BOUND {
815 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
816 }
817 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
818 ABSL_ATTRIBUTE_LIFETIME_BOUND {
819 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
820 }
822 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
823 return GetDescriptor();
824 }
825 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
826 return default_instance().GetMetadata().descriptor;
827 }
828 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
829 return default_instance().GetMetadata().reflection;
830 }
831 static const MPVariableProto& default_instance() {
832 return *reinterpret_cast<const MPVariableProto*>(
834 }
835 static constexpr int kIndexInFileMessages = 0;
836 friend void swap(MPVariableProto& a, MPVariableProto& b) { a.Swap(&b); }
837 inline void Swap(MPVariableProto* PROTOBUF_NONNULL other) {
838 if (other == this) return;
839 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
840 InternalSwap(other);
841 } else {
842 ::google::protobuf::internal::GenericSwap(this, other);
843 }
844 }
845 void UnsafeArenaSwap(MPVariableProto* PROTOBUF_NONNULL other) {
846 if (other == this) return;
847 ABSL_DCHECK(GetArena() == other->GetArena());
848 InternalSwap(other);
850
851 // implements Message ----------------------------------------------
852
853 MPVariableProto* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
854 return ::google::protobuf::Message::DefaultConstruct<MPVariableProto>(arena);
855 }
856 using ::google::protobuf::Message::CopyFrom;
857 void CopyFrom(const MPVariableProto& from);
858 using ::google::protobuf::Message::MergeFrom;
859 void MergeFrom(const MPVariableProto& from) { MPVariableProto::MergeImpl(*this, from); }
860
861 private:
862 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
863 const ::google::protobuf::MessageLite& from_msg);
864
865 public:
866 bool IsInitialized() const {
867 return true;
868 }
869 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
870 #if defined(PROTOBUF_CUSTOM_VTABLE)
871 private:
872 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
873 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
874 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
875 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
876
877 public:
878 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
879 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
880 ::uint8_t* PROTOBUF_NONNULL target,
881 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
882 return _InternalSerialize(*this, target, stream);
883 }
884 #else // PROTOBUF_CUSTOM_VTABLE
885 ::size_t ByteSizeLong() const final;
886 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
887 ::uint8_t* PROTOBUF_NONNULL target,
888 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
889 #endif // PROTOBUF_CUSTOM_VTABLE
890 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
891
892 private:
893 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
894 static void SharedDtor(MessageLite& self);
895 void InternalSwap(MPVariableProto* PROTOBUF_NONNULL other);
896 private:
897 template <typename T>
898 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
899 static ::absl::string_view FullMessageName() { return "operations_research.MPVariableProto"; }
900
901 protected:
902 explicit MPVariableProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
903 MPVariableProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MPVariableProto& from);
905 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, MPVariableProto&& from) noexcept
906 : MPVariableProto(arena) {
907 *this = ::std::move(from);
909 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
910 static void* PROTOBUF_NONNULL PlacementNew_(
911 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
912 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
913 static constexpr auto InternalNewImpl_();
914
915 public:
916 static constexpr auto InternalGenerateClassData_();
917
918 ::google::protobuf::Metadata GetMetadata() const;
919 // nested types ----------------------------------------------------
920
921 // accessors -------------------------------------------------------
922 enum : int {
923 kNameFieldNumber = 5,
924 kObjectiveCoefficientFieldNumber = 3,
925 kIsIntegerFieldNumber = 4,
926 kBranchingPriorityFieldNumber = 6,
929 };
930 // optional string name = 5 [default = ""];
931 bool has_name() const;
932 void clear_name() ;
933 const ::std::string& name() const;
934 template <typename Arg_ = const ::std::string&, typename... Args_>
935 void set_name(Arg_&& arg, Args_... args);
936 ::std::string* PROTOBUF_NONNULL mutable_name();
937 [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_name();
938 void set_allocated_name(::std::string* PROTOBUF_NULLABLE value);
940 private:
941 const ::std::string& _internal_name() const;
942 PROTOBUF_ALWAYS_INLINE void _internal_set_name(const ::std::string& value);
943 ::std::string* PROTOBUF_NONNULL _internal_mutable_name();
944
945 public:
946 // optional double objective_coefficient = 3 [default = 0];
947 bool has_objective_coefficient() const;
949 double objective_coefficient() const;
950 void set_objective_coefficient(double value);
951
952 private:
953 double _internal_objective_coefficient() const;
954 void _internal_set_objective_coefficient(double value);
955
956 public:
957 // optional bool is_integer = 4 [default = false];
958 bool has_is_integer() const;
959 void clear_is_integer() ;
960 bool is_integer() const;
961 void set_is_integer(bool value);
962
963 private:
964 bool _internal_is_integer() const;
965 void _internal_set_is_integer(bool value);
966
967 public:
968 // optional int32 branching_priority = 6 [default = 0];
969 bool has_branching_priority() const;
971 ::int32_t branching_priority() const;
972 void set_branching_priority(::int32_t value);
973
974 private:
975 ::int32_t _internal_branching_priority() const;
976 void _internal_set_branching_priority(::int32_t value);
977
978 public:
979 // optional double lower_bound = 1 [default = -inf];
980 bool has_lower_bound() const;
981 void clear_lower_bound() ;
982 double lower_bound() const;
983 void set_lower_bound(double value);
984
985 private:
986 double _internal_lower_bound() const;
987 void _internal_set_lower_bound(double value);
988
989 public:
990 // optional double upper_bound = 2 [default = inf];
991 bool has_upper_bound() const;
992 void clear_upper_bound() ;
993 double upper_bound() const;
994 void set_upper_bound(double value);
995
996 private:
997 double _internal_upper_bound() const;
998 void _internal_set_upper_bound(double value);
999
1000 public:
1001 // @@protoc_insertion_point(class_scope:operations_research.MPVariableProto)
1002 private:
1003 class _Internal;
1004 friend class ::google::protobuf::internal::TcParser;
1005 static const ::google::protobuf::internal::TcParseTable<3, 6,
1006 0, 48,
1007 2>
1008 _table_;
1009
1010 friend class ::google::protobuf::MessageLite;
1011 friend class ::google::protobuf::Arena;
1012 template <typename T>
1013 friend class ::google::protobuf::Arena::InternalHelper;
1014 using InternalArenaConstructable_ = void;
1015 using DestructorSkippable_ = void;
1016 struct Impl_ {
1017 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
1018 inline explicit Impl_(
1019 ::google::protobuf::internal::InternalVisibility visibility,
1020 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1021 inline explicit Impl_(
1022 ::google::protobuf::internal::InternalVisibility visibility,
1023 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
1024 const MPVariableProto& from_msg);
1025 ::google::protobuf::internal::HasBits<1> _has_bits_;
1026 ::google::protobuf::internal::CachedSize _cached_size_;
1027 ::google::protobuf::internal::ArenaStringPtr name_;
1028 double objective_coefficient_;
1029 bool is_integer_;
1030 ::int32_t branching_priority_;
1031 double lower_bound_;
1032 double upper_bound_;
1033 PROTOBUF_TSAN_DECLARE_MEMBER
1034 };
1035 union { Impl_ _impl_; };
1036 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
1037};
1038
1039OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPVariableProto_class_data_;
1040// -------------------------------------------------------------------
1041
1042class OR_PROTO_DLL MPSosConstraint final : public ::google::protobuf::Message
1043/* @@protoc_insertion_point(class_definition:operations_research.MPSosConstraint) */ {
1044 public:
1045 inline MPSosConstraint() : MPSosConstraint(nullptr) {}
1046 ~MPSosConstraint() PROTOBUF_FINAL;
1048#if defined(PROTOBUF_CUSTOM_VTABLE)
1049 void operator delete(MPSosConstraint* PROTOBUF_NONNULL msg, std::destroying_delete_t) {
1050 SharedDtor(*msg);
1051 ::google::protobuf::internal::SizedDelete(msg, sizeof(MPSosConstraint));
1052 }
1053#endif
1054
1055 template <typename = void>
1056 explicit PROTOBUF_CONSTEXPR MPSosConstraint(::google::protobuf::internal::ConstantInitialized);
1057
1058 inline MPSosConstraint(const MPSosConstraint& from) : MPSosConstraint(nullptr, from) {}
1059 inline MPSosConstraint(MPSosConstraint&& from) noexcept
1060 : MPSosConstraint(nullptr, ::std::move(from)) {}
1062 CopyFrom(from);
1063 return *this;
1065 inline MPSosConstraint& operator=(MPSosConstraint&& from) noexcept {
1066 if (this == &from) return *this;
1067 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
1068 InternalSwap(&from);
1069 } else {
1071 }
1072 return *this;
1073 }
1074
1075 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
1076 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1077 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
1078 }
1079 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
1080 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1081 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
1082 }
1083
1084 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
1085 return GetDescriptor();
1086 }
1087 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
1088 return default_instance().GetMetadata().descriptor;
1090 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
1091 return default_instance().GetMetadata().reflection;
1093 static const MPSosConstraint& default_instance() {
1094 return *reinterpret_cast<const MPSosConstraint*>(
1096 }
1097 static constexpr int kIndexInFileMessages = 4;
1098 friend void swap(MPSosConstraint& a, MPSosConstraint& b) { a.Swap(&b); }
1099 inline void Swap(MPSosConstraint* PROTOBUF_NONNULL other) {
1100 if (other == this) return;
1101 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
1102 InternalSwap(other);
1103 } else {
1104 ::google::protobuf::internal::GenericSwap(this, other);
1105 }
1106 }
1107 void UnsafeArenaSwap(MPSosConstraint* PROTOBUF_NONNULL other) {
1108 if (other == this) return;
1109 ABSL_DCHECK(GetArena() == other->GetArena());
1110 InternalSwap(other);
1111 }
1113 // implements Message ----------------------------------------------
1114
1115 MPSosConstraint* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
1116 return ::google::protobuf::Message::DefaultConstruct<MPSosConstraint>(arena);
1117 }
1118 using ::google::protobuf::Message::CopyFrom;
1119 void CopyFrom(const MPSosConstraint& from);
1120 using ::google::protobuf::Message::MergeFrom;
1121 void MergeFrom(const MPSosConstraint& from) { MPSosConstraint::MergeImpl(*this, from); }
1122
1123 private:
1124 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
1125 const ::google::protobuf::MessageLite& from_msg);
1127 public:
1128 bool IsInitialized() const {
1129 return true;
1130 }
1131 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
1132 #if defined(PROTOBUF_CUSTOM_VTABLE)
1133 private:
1134 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
1135 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
1136 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
1137 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
1138
1139 public:
1140 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
1141 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
1142 ::uint8_t* PROTOBUF_NONNULL target,
1143 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1144 return _InternalSerialize(*this, target, stream);
1145 }
1146 #else // PROTOBUF_CUSTOM_VTABLE
1147 ::size_t ByteSizeLong() const final;
1148 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
1149 ::uint8_t* PROTOBUF_NONNULL target,
1150 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
1151 #endif // PROTOBUF_CUSTOM_VTABLE
1152 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
1153
1154 private:
1155 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1156 static void SharedDtor(MessageLite& self);
1157 void InternalSwap(MPSosConstraint* PROTOBUF_NONNULL other);
1158 private:
1159 template <typename T>
1160 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
1161 static ::absl::string_view FullMessageName() { return "operations_research.MPSosConstraint"; }
1162
1163 protected:
1164 explicit MPSosConstraint(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1165 MPSosConstraint(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MPSosConstraint& from);
1167 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, MPSosConstraint&& from) noexcept
1168 : MPSosConstraint(arena) {
1169 *this = ::std::move(from);
1170 }
1171 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
1172 static void* PROTOBUF_NONNULL PlacementNew_(
1173 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1174 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1175 static constexpr auto InternalNewImpl_();
1176
1177 public:
1178 static constexpr auto InternalGenerateClassData_();
1179
1180 ::google::protobuf::Metadata GetMetadata() const;
1181 // nested types ----------------------------------------------------
1182 using Type = MPSosConstraint_Type;
1184 static constexpr Type SOS2 = MPSosConstraint_Type_SOS2;
1185 static inline bool Type_IsValid(int value) {
1186 return MPSosConstraint_Type_IsValid(value);
1191 static inline const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL Type_descriptor() {
1194 template <typename T>
1195 static inline const ::std::string& Type_Name(T value) {
1197 }
1198 static inline bool Type_Parse(
1199 ::absl::string_view name, Type* PROTOBUF_NONNULL value) {
1200 return MPSosConstraint_Type_Parse(name, value);
1201 }
1202
1203 // accessors -------------------------------------------------------
1204 enum : int {
1207 kTypeFieldNumber = 1,
1208 };
1209 // repeated int32 var_index = 2;
1210 int var_index_size() const;
1211 private:
1212 int _internal_var_index_size() const;
1213
1214 public:
1215 void clear_var_index() ;
1216 ::int32_t var_index(int index) const;
1217 void set_var_index(int index, ::int32_t value);
1218 void add_var_index(::int32_t value);
1219 const ::google::protobuf::RepeatedField<::int32_t>& var_index() const;
1220 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL mutable_var_index();
1221
1222 private:
1223 const ::google::protobuf::RepeatedField<::int32_t>& _internal_var_index() const;
1224 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_var_index();
1225
1226 public:
1227 // repeated double weight = 3;
1228 int weight_size() const;
1229 private:
1230 int _internal_weight_size() const;
1231
1232 public:
1233 void clear_weight() ;
1234 double weight(int index) const;
1235 void set_weight(int index, double value);
1236 void add_weight(double value);
1237 const ::google::protobuf::RepeatedField<double>& weight() const;
1238 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL mutable_weight();
1239
1240 private:
1241 const ::google::protobuf::RepeatedField<double>& _internal_weight() const;
1242 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL _internal_mutable_weight();
1243
1244 public:
1245 // optional .operations_research.MPSosConstraint.Type type = 1 [default = SOS1_DEFAULT];
1246 bool has_type() const;
1247 void clear_type() ;
1250
1251 private:
1252 ::operations_research::MPSosConstraint_Type _internal_type() const;
1253 void _internal_set_type(::operations_research::MPSosConstraint_Type value);
1254
1255 public:
1256 // @@protoc_insertion_point(class_scope:operations_research.MPSosConstraint)
1257 private:
1258 class _Internal;
1259 friend class ::google::protobuf::internal::TcParser;
1260 static const ::google::protobuf::internal::TcParseTable<2, 3,
1261 1, 0,
1262 2>
1263 _table_;
1265 friend class ::google::protobuf::MessageLite;
1266 friend class ::google::protobuf::Arena;
1267 template <typename T>
1268 friend class ::google::protobuf::Arena::InternalHelper;
1269 using InternalArenaConstructable_ = void;
1270 using DestructorSkippable_ = void;
1271 struct Impl_ {
1272 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
1273 inline explicit Impl_(
1274 ::google::protobuf::internal::InternalVisibility visibility,
1275 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1276 inline explicit Impl_(
1277 ::google::protobuf::internal::InternalVisibility visibility,
1278 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
1279 const MPSosConstraint& from_msg);
1280 ::google::protobuf::internal::HasBits<1> _has_bits_;
1281 ::google::protobuf::internal::CachedSize _cached_size_;
1282 ::google::protobuf::RepeatedField<::int32_t> var_index_;
1283 ::google::protobuf::RepeatedField<double> weight_;
1284 int type_;
1285 PROTOBUF_TSAN_DECLARE_MEMBER
1286 };
1287 union { Impl_ _impl_; };
1288 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
1289};
1290
1291OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPSosConstraint_class_data_;
1292// -------------------------------------------------------------------
1294class OR_PROTO_DLL MPSolveInfo final : public ::google::protobuf::Message
1295/* @@protoc_insertion_point(class_definition:operations_research.MPSolveInfo) */ {
1296 public:
1297 inline MPSolveInfo() : MPSolveInfo(nullptr) {}
1298 ~MPSolveInfo() PROTOBUF_FINAL;
1299
1300#if defined(PROTOBUF_CUSTOM_VTABLE)
1301 void operator delete(MPSolveInfo* PROTOBUF_NONNULL msg, std::destroying_delete_t) {
1302 SharedDtor(*msg);
1303 ::google::protobuf::internal::SizedDelete(msg, sizeof(MPSolveInfo));
1304 }
1305#endif
1306
1307 template <typename = void>
1308 explicit PROTOBUF_CONSTEXPR MPSolveInfo(::google::protobuf::internal::ConstantInitialized);
1309
1310 inline MPSolveInfo(const MPSolveInfo& from) : MPSolveInfo(nullptr, from) {}
1311 inline MPSolveInfo(MPSolveInfo&& from) noexcept
1312 : MPSolveInfo(nullptr, ::std::move(from)) {}
1313 inline MPSolveInfo& operator=(const MPSolveInfo& from) {
1315 return *this;
1317 inline MPSolveInfo& operator=(MPSolveInfo&& from) noexcept {
1318 if (this == &from) return *this;
1319 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
1320 InternalSwap(&from);
1321 } else {
1322 CopyFrom(from);
1324 return *this;
1325 }
1326
1327 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
1328 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1329 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
1330 }
1331 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
1332 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1333 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
1334 }
1335
1336 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
1338 }
1339 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
1340 return default_instance().GetMetadata().descriptor;
1341 }
1342 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
1343 return default_instance().GetMetadata().reflection;
1344 }
1346 return *reinterpret_cast<const MPSolveInfo*>(
1349 static constexpr int kIndexInFileMessages = 20;
1350 friend void swap(MPSolveInfo& a, MPSolveInfo& b) { a.Swap(&b); }
1351 inline void Swap(MPSolveInfo* PROTOBUF_NONNULL other) {
1352 if (other == this) return;
1353 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
1354 InternalSwap(other);
1355 } else {
1356 ::google::protobuf::internal::GenericSwap(this, other);
1358 }
1359 void UnsafeArenaSwap(MPSolveInfo* PROTOBUF_NONNULL other) {
1360 if (other == this) return;
1361 ABSL_DCHECK(GetArena() == other->GetArena());
1362 InternalSwap(other);
1363 }
1364
1365 // implements Message ----------------------------------------------
1366
1367 MPSolveInfo* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
1368 return ::google::protobuf::Message::DefaultConstruct<MPSolveInfo>(arena);
1369 }
1370 using ::google::protobuf::Message::CopyFrom;
1371 void CopyFrom(const MPSolveInfo& from);
1372 using ::google::protobuf::Message::MergeFrom;
1373 void MergeFrom(const MPSolveInfo& from) { MPSolveInfo::MergeImpl(*this, from); }
1374
1375 private:
1376 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
1377 const ::google::protobuf::MessageLite& from_msg);
1378
1379 public:
1380 bool IsInitialized() const {
1381 return true;
1382 }
1383 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
1384 #if defined(PROTOBUF_CUSTOM_VTABLE)
1385 private:
1386 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
1387 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
1388 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
1389 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
1390
1391 public:
1392 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
1393 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
1394 ::uint8_t* PROTOBUF_NONNULL target,
1395 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1396 return _InternalSerialize(*this, target, stream);
1397 }
1398 #else // PROTOBUF_CUSTOM_VTABLE
1399 ::size_t ByteSizeLong() const final;
1400 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
1401 ::uint8_t* PROTOBUF_NONNULL target,
1402 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
1403 #endif // PROTOBUF_CUSTOM_VTABLE
1404 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
1405
1406 private:
1407 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1408 static void SharedDtor(MessageLite& self);
1409 void InternalSwap(MPSolveInfo* PROTOBUF_NONNULL other);
1410 private:
1411 template <typename T>
1412 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
1413 static ::absl::string_view FullMessageName() { return "operations_research.MPSolveInfo"; }
1414
1415 protected:
1416 explicit MPSolveInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1417 MPSolveInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MPSolveInfo& from);
1419 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, MPSolveInfo&& from) noexcept
1420 : MPSolveInfo(arena) {
1421 *this = ::std::move(from);
1422 }
1423 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
1424 static void* PROTOBUF_NONNULL PlacementNew_(
1425 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1426 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1427 static constexpr auto InternalNewImpl_();
1428
1429 public:
1430 static constexpr auto InternalGenerateClassData_();
1431
1432 ::google::protobuf::Metadata GetMetadata() const;
1433 // nested types ----------------------------------------------------
1434
1435 // accessors -------------------------------------------------------
1436 enum : int {
1439 };
1440 // optional double solve_wall_time_seconds = 1;
1441 bool has_solve_wall_time_seconds() const;
1442 void clear_solve_wall_time_seconds() ;
1445
1446 private:
1447 double _internal_solve_wall_time_seconds() const;
1448 void _internal_set_solve_wall_time_seconds(double value);
1449
1450 public:
1451 // optional double solve_user_time_seconds = 2;
1452 bool has_solve_user_time_seconds() const;
1454 double solve_user_time_seconds() const;
1455 void set_solve_user_time_seconds(double value);
1456
1457 private:
1458 double _internal_solve_user_time_seconds() const;
1459 void _internal_set_solve_user_time_seconds(double value);
1460
1461 public:
1462 // @@protoc_insertion_point(class_scope:operations_research.MPSolveInfo)
1463 private:
1464 class _Internal;
1465 friend class ::google::protobuf::internal::TcParser;
1466 static const ::google::protobuf::internal::TcParseTable<1, 2,
1467 0, 0,
1468 2>
1469 _table_;
1470
1471 friend class ::google::protobuf::MessageLite;
1472 friend class ::google::protobuf::Arena;
1473 template <typename T>
1474 friend class ::google::protobuf::Arena::InternalHelper;
1475 using InternalArenaConstructable_ = void;
1476 using DestructorSkippable_ = void;
1477 struct Impl_ {
1478 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
1479 inline explicit Impl_(
1480 ::google::protobuf::internal::InternalVisibility visibility,
1481 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1482 inline explicit Impl_(
1483 ::google::protobuf::internal::InternalVisibility visibility,
1484 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
1485 const MPSolveInfo& from_msg);
1486 ::google::protobuf::internal::HasBits<1> _has_bits_;
1487 ::google::protobuf::internal::CachedSize _cached_size_;
1488 double solve_wall_time_seconds_;
1489 double solve_user_time_seconds_;
1490 PROTOBUF_TSAN_DECLARE_MEMBER
1491 };
1492 union { Impl_ _impl_; };
1493 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
1494};
1495
1496OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPSolveInfo_class_data_;
1497// -------------------------------------------------------------------
1499class OR_PROTO_DLL MPSolution final : public ::google::protobuf::Message
1500/* @@protoc_insertion_point(class_definition:operations_research.MPSolution) */ {
1501 public:
1502 inline MPSolution() : MPSolution(nullptr) {}
1503 ~MPSolution() PROTOBUF_FINAL;
1504
1505#if defined(PROTOBUF_CUSTOM_VTABLE)
1506 void operator delete(MPSolution* PROTOBUF_NONNULL msg, std::destroying_delete_t) {
1507 SharedDtor(*msg);
1508 ::google::protobuf::internal::SizedDelete(msg, sizeof(MPSolution));
1510#endif
1511
1512 template <typename = void>
1513 explicit PROTOBUF_CONSTEXPR MPSolution(::google::protobuf::internal::ConstantInitialized);
1514
1515 inline MPSolution(const MPSolution& from) : MPSolution(nullptr, from) {}
1516 inline MPSolution(MPSolution&& from) noexcept
1517 : MPSolution(nullptr, ::std::move(from)) {}
1518 inline MPSolution& operator=(const MPSolution& from) {
1519 CopyFrom(from);
1520 return *this;
1521 }
1522 inline MPSolution& operator=(MPSolution&& from) noexcept {
1523 if (this == &from) return *this;
1524 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
1525 InternalSwap(&from);
1526 } else {
1527 CopyFrom(from);
1528 }
1529 return *this;
1530 }
1531
1532 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
1533 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1534 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
1535 }
1536 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
1537 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1538 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
1540
1541 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
1542 return GetDescriptor();
1544 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
1545 return default_instance().GetMetadata().descriptor;
1546 }
1547 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
1548 return default_instance().GetMetadata().reflection;
1549 }
1550 static const MPSolution& default_instance() {
1551 return *reinterpret_cast<const MPSolution*>(
1553 }
1554 static constexpr int kIndexInFileMessages = 19;
1555 friend void swap(MPSolution& a, MPSolution& b) { a.Swap(&b); }
1556 inline void Swap(MPSolution* PROTOBUF_NONNULL other) {
1557 if (other == this) return;
1558 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
1559 InternalSwap(other);
1560 } else {
1561 ::google::protobuf::internal::GenericSwap(this, other);
1564 void UnsafeArenaSwap(MPSolution* PROTOBUF_NONNULL other) {
1565 if (other == this) return;
1566 ABSL_DCHECK(GetArena() == other->GetArena());
1567 InternalSwap(other);
1568 }
1569
1570 // implements Message ----------------------------------------------
1572 MPSolution* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
1573 return ::google::protobuf::Message::DefaultConstruct<MPSolution>(arena);
1574 }
1575 using ::google::protobuf::Message::CopyFrom;
1576 void CopyFrom(const MPSolution& from);
1577 using ::google::protobuf::Message::MergeFrom;
1578 void MergeFrom(const MPSolution& from) { MPSolution::MergeImpl(*this, from); }
1580 private:
1581 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
1582 const ::google::protobuf::MessageLite& from_msg);
1583
1584 public:
1585 bool IsInitialized() const {
1586 return true;
1587 }
1588 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
1589 #if defined(PROTOBUF_CUSTOM_VTABLE)
1590 private:
1591 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
1592 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
1593 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
1594 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
1595
1596 public:
1597 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
1598 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
1599 ::uint8_t* PROTOBUF_NONNULL target,
1600 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1601 return _InternalSerialize(*this, target, stream);
1602 }
1603 #else // PROTOBUF_CUSTOM_VTABLE
1604 ::size_t ByteSizeLong() const final;
1605 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
1606 ::uint8_t* PROTOBUF_NONNULL target,
1607 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
1608 #endif // PROTOBUF_CUSTOM_VTABLE
1609 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
1610
1611 private:
1612 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1613 static void SharedDtor(MessageLite& self);
1614 void InternalSwap(MPSolution* PROTOBUF_NONNULL other);
1615 private:
1616 template <typename T>
1617 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
1618 static ::absl::string_view FullMessageName() { return "operations_research.MPSolution"; }
1619
1620 protected:
1621 explicit MPSolution(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1622 MPSolution(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MPSolution& from);
1623 MPSolution(
1624 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, MPSolution&& from) noexcept
1625 : MPSolution(arena) {
1626 *this = ::std::move(from);
1627 }
1628 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
1629 static void* PROTOBUF_NONNULL PlacementNew_(
1630 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1631 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1632 static constexpr auto InternalNewImpl_();
1633
1634 public:
1635 static constexpr auto InternalGenerateClassData_();
1636
1637 ::google::protobuf::Metadata GetMetadata() const;
1638 // nested types ----------------------------------------------------
1639
1640 // accessors -------------------------------------------------------
1641 enum : int {
1644 };
1645 // repeated double variable_value = 2 [packed = true];
1646 int variable_value_size() const;
1647 private:
1648 int _internal_variable_value_size() const;
1650 public:
1651 void clear_variable_value() ;
1652 double variable_value(int index) const;
1653 void set_variable_value(int index, double value);
1654 void add_variable_value(double value);
1655 const ::google::protobuf::RepeatedField<double>& variable_value() const;
1656 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL mutable_variable_value();
1657
1658 private:
1659 const ::google::protobuf::RepeatedField<double>& _internal_variable_value() const;
1660 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL _internal_mutable_variable_value();
1661
1662 public:
1663 // optional double objective_value = 1;
1664 bool has_objective_value() const;
1665 void clear_objective_value() ;
1666 double objective_value() const;
1667 void set_objective_value(double value);
1668
1669 private:
1670 double _internal_objective_value() const;
1671 void _internal_set_objective_value(double value);
1672
1673 public:
1674 // @@protoc_insertion_point(class_scope:operations_research.MPSolution)
1675 private:
1676 class _Internal;
1677 friend class ::google::protobuf::internal::TcParser;
1678 static const ::google::protobuf::internal::TcParseTable<1, 2,
1679 0, 0,
1680 2>
1681 _table_;
1682
1683 friend class ::google::protobuf::MessageLite;
1684 friend class ::google::protobuf::Arena;
1685 template <typename T>
1686 friend class ::google::protobuf::Arena::InternalHelper;
1687 using InternalArenaConstructable_ = void;
1688 using DestructorSkippable_ = void;
1689 struct Impl_ {
1690 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
1691 inline explicit Impl_(
1692 ::google::protobuf::internal::InternalVisibility visibility,
1693 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1694 inline explicit Impl_(
1695 ::google::protobuf::internal::InternalVisibility visibility,
1696 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
1697 const MPSolution& from_msg);
1698 ::google::protobuf::internal::HasBits<1> _has_bits_;
1699 ::google::protobuf::internal::CachedSize _cached_size_;
1700 ::google::protobuf::RepeatedField<double> variable_value_;
1701 double objective_value_;
1702 PROTOBUF_TSAN_DECLARE_MEMBER
1703 };
1704 union { Impl_ _impl_; };
1705 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
1706};
1707
1708OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPSolution_class_data_;
1709// -------------------------------------------------------------------
1710
1711class OR_PROTO_DLL MPQuadraticObjective final : public ::google::protobuf::Message
1712/* @@protoc_insertion_point(class_definition:operations_research.MPQuadraticObjective) */ {
1713 public:
1714 inline MPQuadraticObjective() : MPQuadraticObjective(nullptr) {}
1715 ~MPQuadraticObjective() PROTOBUF_FINAL;
1716
1717#if defined(PROTOBUF_CUSTOM_VTABLE)
1718 void operator delete(MPQuadraticObjective* PROTOBUF_NONNULL msg, std::destroying_delete_t) {
1719 SharedDtor(*msg);
1720 ::google::protobuf::internal::SizedDelete(msg, sizeof(MPQuadraticObjective));
1721 }
1722#endif
1723
1724 template <typename = void>
1725 explicit PROTOBUF_CONSTEXPR MPQuadraticObjective(::google::protobuf::internal::ConstantInitialized);
1726
1727 inline MPQuadraticObjective(const MPQuadraticObjective& from) : MPQuadraticObjective(nullptr, from) {}
1728 inline MPQuadraticObjective(MPQuadraticObjective&& from) noexcept
1729 : MPQuadraticObjective(nullptr, ::std::move(from)) {}
1730 inline MPQuadraticObjective& operator=(const MPQuadraticObjective& from) {
1731 CopyFrom(from);
1732 return *this;
1734 inline MPQuadraticObjective& operator=(MPQuadraticObjective&& from) noexcept {
1735 if (this == &from) return *this;
1736 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
1737 InternalSwap(&from);
1738 } else {
1739 CopyFrom(from);
1740 }
1741 return *this;
1743
1744 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
1745 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1746 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
1747 }
1748 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
1749 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1750 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
1751 }
1753 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
1754 return GetDescriptor();
1755 }
1756 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
1757 return default_instance().GetMetadata().descriptor;
1758 }
1759 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
1760 return default_instance().GetMetadata().reflection;
1762 static const MPQuadraticObjective& default_instance() {
1763 return *reinterpret_cast<const MPQuadraticObjective*>(
1765 }
1766 static constexpr int kIndexInFileMessages = 9;
1768 inline void Swap(MPQuadraticObjective* PROTOBUF_NONNULL other) {
1769 if (other == this) return;
1770 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
1771 InternalSwap(other);
1772 } else {
1773 ::google::protobuf::internal::GenericSwap(this, other);
1776 void UnsafeArenaSwap(MPQuadraticObjective* PROTOBUF_NONNULL other) {
1777 if (other == this) return;
1778 ABSL_DCHECK(GetArena() == other->GetArena());
1779 InternalSwap(other);
1780 }
1781
1782 // implements Message ----------------------------------------------
1783
1784 MPQuadraticObjective* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
1785 return ::google::protobuf::Message::DefaultConstruct<MPQuadraticObjective>(arena);
1786 }
1787 using ::google::protobuf::Message::CopyFrom;
1788 void CopyFrom(const MPQuadraticObjective& from);
1789 using ::google::protobuf::Message::MergeFrom;
1790 void MergeFrom(const MPQuadraticObjective& from) { MPQuadraticObjective::MergeImpl(*this, from); }
1791
1792 private:
1793 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
1794 const ::google::protobuf::MessageLite& from_msg);
1795
1796 public:
1797 bool IsInitialized() const {
1798 return true;
1799 }
1800 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
1801 #if defined(PROTOBUF_CUSTOM_VTABLE)
1802 private:
1803 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
1804 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
1805 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
1806 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
1807
1808 public:
1809 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
1810 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
1811 ::uint8_t* PROTOBUF_NONNULL target,
1812 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1813 return _InternalSerialize(*this, target, stream);
1814 }
1815 #else // PROTOBUF_CUSTOM_VTABLE
1816 ::size_t ByteSizeLong() const final;
1817 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
1818 ::uint8_t* PROTOBUF_NONNULL target,
1819 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
1820 #endif // PROTOBUF_CUSTOM_VTABLE
1821 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
1822
1823 private:
1824 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1825 static void SharedDtor(MessageLite& self);
1826 void InternalSwap(MPQuadraticObjective* PROTOBUF_NONNULL other);
1827 private:
1828 template <typename T>
1830 static ::absl::string_view FullMessageName() { return "operations_research.MPQuadraticObjective"; }
1831
1832 protected:
1833 explicit MPQuadraticObjective(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1834 MPQuadraticObjective(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MPQuadraticObjective& from);
1836 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, MPQuadraticObjective&& from) noexcept
1837 : MPQuadraticObjective(arena) {
1838 *this = ::std::move(from);
1839 }
1840 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
1841 static void* PROTOBUF_NONNULL PlacementNew_(
1842 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1843 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1844 static constexpr auto InternalNewImpl_();
1845
1846 public:
1847 static constexpr auto InternalGenerateClassData_();
1848
1849 ::google::protobuf::Metadata GetMetadata() const;
1850 // nested types ----------------------------------------------------
1851
1852 // accessors -------------------------------------------------------
1853 enum : int {
1857 };
1858 // repeated int32 qvar1_index = 1;
1859 int qvar1_index_size() const;
1860 private:
1861 int _internal_qvar1_index_size() const;
1863 public:
1865 ::int32_t qvar1_index(int index) const;
1866 void set_qvar1_index(int index, ::int32_t value);
1867 void add_qvar1_index(::int32_t value);
1868 const ::google::protobuf::RepeatedField<::int32_t>& qvar1_index() const;
1869 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL mutable_qvar1_index();
1870
1871 private:
1872 const ::google::protobuf::RepeatedField<::int32_t>& _internal_qvar1_index() const;
1873 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_qvar1_index();
1874
1875 public:
1876 // repeated int32 qvar2_index = 2;
1877 int qvar2_index_size() const;
1878 private:
1879 int _internal_qvar2_index_size() const;
1880
1881 public:
1882 void clear_qvar2_index() ;
1883 ::int32_t qvar2_index(int index) const;
1884 void set_qvar2_index(int index, ::int32_t value);
1885 void add_qvar2_index(::int32_t value);
1886 const ::google::protobuf::RepeatedField<::int32_t>& qvar2_index() const;
1887 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL mutable_qvar2_index();
1888
1889 private:
1890 const ::google::protobuf::RepeatedField<::int32_t>& _internal_qvar2_index() const;
1891 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_qvar2_index();
1892
1893 public:
1894 // repeated double coefficient = 3;
1895 int coefficient_size() const;
1896 private:
1897 int _internal_coefficient_size() const;
1898
1899 public:
1900 void clear_coefficient() ;
1901 double coefficient(int index) const;
1902 void set_coefficient(int index, double value);
1903 void add_coefficient(double value);
1904 const ::google::protobuf::RepeatedField<double>& coefficient() const;
1905 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL mutable_coefficient();
1906
1907 private:
1908 const ::google::protobuf::RepeatedField<double>& _internal_coefficient() const;
1909 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL _internal_mutable_coefficient();
1910
1911 public:
1912 // @@protoc_insertion_point(class_scope:operations_research.MPQuadraticObjective)
1913 private:
1914 class _Internal;
1915 friend class ::google::protobuf::internal::TcParser;
1916 static const ::google::protobuf::internal::TcParseTable<2, 3,
1917 0, 0,
1918 2>
1919 _table_;
1920
1921 friend class ::google::protobuf::MessageLite;
1922 friend class ::google::protobuf::Arena;
1923 template <typename T>
1924 friend class ::google::protobuf::Arena::InternalHelper;
1925 using InternalArenaConstructable_ = void;
1926 using DestructorSkippable_ = void;
1927 struct Impl_ {
1928 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
1929 inline explicit Impl_(
1930 ::google::protobuf::internal::InternalVisibility visibility,
1931 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1932 inline explicit Impl_(
1933 ::google::protobuf::internal::InternalVisibility visibility,
1934 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
1935 const MPQuadraticObjective& from_msg);
1936 ::google::protobuf::RepeatedField<::int32_t> qvar1_index_;
1937 ::google::protobuf::RepeatedField<::int32_t> qvar2_index_;
1938 ::google::protobuf::RepeatedField<double> coefficient_;
1939 ::google::protobuf::internal::CachedSize _cached_size_;
1940 PROTOBUF_TSAN_DECLARE_MEMBER
1941 };
1942 union { Impl_ _impl_; };
1943 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
1944};
1945
1946OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPQuadraticObjective_class_data_;
1947// -------------------------------------------------------------------
1948
1949class OR_PROTO_DLL MPQuadraticConstraint final : public ::google::protobuf::Message
1950/* @@protoc_insertion_point(class_definition:operations_research.MPQuadraticConstraint) */ {
1951 public:
1952 inline MPQuadraticConstraint() : MPQuadraticConstraint(nullptr) {}
1953 ~MPQuadraticConstraint() PROTOBUF_FINAL;
1954
1955#if defined(PROTOBUF_CUSTOM_VTABLE)
1956 void operator delete(MPQuadraticConstraint* PROTOBUF_NONNULL msg, std::destroying_delete_t) {
1957 SharedDtor(*msg);
1958 ::google::protobuf::internal::SizedDelete(msg, sizeof(MPQuadraticConstraint));
1959 }
1960#endif
1962 template <typename = void>
1963 explicit PROTOBUF_CONSTEXPR MPQuadraticConstraint(::google::protobuf::internal::ConstantInitialized);
1964
1965 inline MPQuadraticConstraint(const MPQuadraticConstraint& from) : MPQuadraticConstraint(nullptr, from) {}
1966 inline MPQuadraticConstraint(MPQuadraticConstraint&& from) noexcept
1967 : MPQuadraticConstraint(nullptr, ::std::move(from)) {}
1968 inline MPQuadraticConstraint& operator=(const MPQuadraticConstraint& from) {
1969 CopyFrom(from);
1970 return *this;
1971 }
1973 if (this == &from) return *this;
1974 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
1975 InternalSwap(&from);
1976 } else {
1978 }
1979 return *this;
1980 }
1982 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
1983 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1984 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
1985 }
1986 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
1987 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1988 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
1989 }
1990
1991 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
1992 return GetDescriptor();
1993 }
1994 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
1995 return default_instance().GetMetadata().descriptor;
1996 }
1997 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
1998 return default_instance().GetMetadata().reflection;
1999 }
2001 return *reinterpret_cast<const MPQuadraticConstraint*>(
2004 static constexpr int kIndexInFileMessages = 5;
2005 friend void swap(MPQuadraticConstraint& a, MPQuadraticConstraint& b) { a.Swap(&b); }
2006 inline void Swap(MPQuadraticConstraint* PROTOBUF_NONNULL other) {
2007 if (other == this) return;
2008 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
2009 InternalSwap(other);
2010 } else {
2011 ::google::protobuf::internal::GenericSwap(this, other);
2012 }
2014 void UnsafeArenaSwap(MPQuadraticConstraint* PROTOBUF_NONNULL other) {
2015 if (other == this) return;
2016 ABSL_DCHECK(GetArena() == other->GetArena());
2017 InternalSwap(other);
2018 }
2019
2020 // implements Message ----------------------------------------------
2021
2022 MPQuadraticConstraint* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
2023 return ::google::protobuf::Message::DefaultConstruct<MPQuadraticConstraint>(arena);
2024 }
2025 using ::google::protobuf::Message::CopyFrom;
2026 void CopyFrom(const MPQuadraticConstraint& from);
2027 using ::google::protobuf::Message::MergeFrom;
2028 void MergeFrom(const MPQuadraticConstraint& from) { MPQuadraticConstraint::MergeImpl(*this, from); }
2029
2030 private:
2031 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
2032 const ::google::protobuf::MessageLite& from_msg);
2033
2034 public:
2035 bool IsInitialized() const {
2036 return true;
2038 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
2039 #if defined(PROTOBUF_CUSTOM_VTABLE)
2040 private:
2041 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
2042 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
2043 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
2044 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
2045
2046 public:
2047 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
2048 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
2049 ::uint8_t* PROTOBUF_NONNULL target,
2050 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
2051 return _InternalSerialize(*this, target, stream);
2052 }
2053 #else // PROTOBUF_CUSTOM_VTABLE
2054 ::size_t ByteSizeLong() const final;
2055 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
2056 ::uint8_t* PROTOBUF_NONNULL target,
2057 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
2058 #endif // PROTOBUF_CUSTOM_VTABLE
2059 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
2060
2061 private:
2062 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
2063 static void SharedDtor(MessageLite& self);
2064 void InternalSwap(MPQuadraticConstraint* PROTOBUF_NONNULL other);
2065 private:
2066 template <typename T>
2067 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
2068 static ::absl::string_view FullMessageName() { return "operations_research.MPQuadraticConstraint"; }
2069
2070 protected:
2071 explicit MPQuadraticConstraint(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
2072 MPQuadraticConstraint(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MPQuadraticConstraint& from);
2074 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, MPQuadraticConstraint&& from) noexcept
2075 : MPQuadraticConstraint(arena) {
2076 *this = ::std::move(from);
2077 }
2078 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
2079 static void* PROTOBUF_NONNULL PlacementNew_(
2080 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
2081 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
2082 static constexpr auto InternalNewImpl_();
2083
2084 public:
2085 static constexpr auto InternalGenerateClassData_();
2086
2087 ::google::protobuf::Metadata GetMetadata() const;
2088 // nested types ----------------------------------------------------
2089
2090 // accessors -------------------------------------------------------
2091 enum : int {
2099 };
2100 // repeated int32 var_index = 1;
2101 int var_index_size() const;
2102 private:
2103 int _internal_var_index_size() const;
2105 public:
2107 ::int32_t var_index(int index) const;
2108 void set_var_index(int index, ::int32_t value);
2109 void add_var_index(::int32_t value);
2110 const ::google::protobuf::RepeatedField<::int32_t>& var_index() const;
2111 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL mutable_var_index();
2112
2113 private:
2114 const ::google::protobuf::RepeatedField<::int32_t>& _internal_var_index() const;
2115 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_var_index();
2116
2117 public:
2118 // repeated double coefficient = 2;
2119 int coefficient_size() const;
2120 private:
2121 int _internal_coefficient_size() const;
2122
2123 public:
2124 void clear_coefficient() ;
2125 double coefficient(int index) const;
2126 void set_coefficient(int index, double value);
2127 void add_coefficient(double value);
2128 const ::google::protobuf::RepeatedField<double>& coefficient() const;
2129 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL mutable_coefficient();
2130
2131 private:
2132 const ::google::protobuf::RepeatedField<double>& _internal_coefficient() const;
2133 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL _internal_mutable_coefficient();
2134
2135 public:
2136 // repeated int32 qvar1_index = 3;
2137 int qvar1_index_size() const;
2138 private:
2139 int _internal_qvar1_index_size() const;
2140
2141 public:
2142 void clear_qvar1_index() ;
2143 ::int32_t qvar1_index(int index) const;
2144 void set_qvar1_index(int index, ::int32_t value);
2145 void add_qvar1_index(::int32_t value);
2146 const ::google::protobuf::RepeatedField<::int32_t>& qvar1_index() const;
2147 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL mutable_qvar1_index();
2148
2149 private:
2150 const ::google::protobuf::RepeatedField<::int32_t>& _internal_qvar1_index() const;
2151 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_qvar1_index();
2152
2153 public:
2154 // repeated int32 qvar2_index = 4;
2155 int qvar2_index_size() const;
2156 private:
2157 int _internal_qvar2_index_size() const;
2158
2159 public:
2160 void clear_qvar2_index() ;
2161 ::int32_t qvar2_index(int index) const;
2162 void set_qvar2_index(int index, ::int32_t value);
2163 void add_qvar2_index(::int32_t value);
2164 const ::google::protobuf::RepeatedField<::int32_t>& qvar2_index() const;
2165 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL mutable_qvar2_index();
2166
2167 private:
2168 const ::google::protobuf::RepeatedField<::int32_t>& _internal_qvar2_index() const;
2169 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_qvar2_index();
2170
2171 public:
2172 // repeated double qcoefficient = 5;
2173 int qcoefficient_size() const;
2174 private:
2175 int _internal_qcoefficient_size() const;
2176
2177 public:
2178 void clear_qcoefficient() ;
2179 double qcoefficient(int index) const;
2180 void set_qcoefficient(int index, double value);
2181 void add_qcoefficient(double value);
2182 const ::google::protobuf::RepeatedField<double>& qcoefficient() const;
2183 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL mutable_qcoefficient();
2184
2185 private:
2186 const ::google::protobuf::RepeatedField<double>& _internal_qcoefficient() const;
2187 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL _internal_mutable_qcoefficient();
2188
2189 public:
2190 // optional double lower_bound = 6 [default = -inf];
2191 bool has_lower_bound() const;
2192 void clear_lower_bound() ;
2193 double lower_bound() const;
2194 void set_lower_bound(double value);
2195
2196 private:
2197 double _internal_lower_bound() const;
2198 void _internal_set_lower_bound(double value);
2199
2200 public:
2201 // optional double upper_bound = 7 [default = inf];
2202 bool has_upper_bound() const;
2203 void clear_upper_bound() ;
2204 double upper_bound() const;
2205 void set_upper_bound(double value);
2206
2207 private:
2208 double _internal_upper_bound() const;
2209 void _internal_set_upper_bound(double value);
2210
2211 public:
2212 // @@protoc_insertion_point(class_scope:operations_research.MPQuadraticConstraint)
2213 private:
2214 class _Internal;
2215 friend class ::google::protobuf::internal::TcParser;
2216 static const ::google::protobuf::internal::TcParseTable<3, 7,
2217 0, 0,
2218 2>
2219 _table_;
2220
2221 friend class ::google::protobuf::MessageLite;
2222 friend class ::google::protobuf::Arena;
2223 template <typename T>
2224 friend class ::google::protobuf::Arena::InternalHelper;
2225 using InternalArenaConstructable_ = void;
2226 using DestructorSkippable_ = void;
2227 struct Impl_ {
2228 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
2229 inline explicit Impl_(
2230 ::google::protobuf::internal::InternalVisibility visibility,
2231 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
2232 inline explicit Impl_(
2233 ::google::protobuf::internal::InternalVisibility visibility,
2234 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
2235 const MPQuadraticConstraint& from_msg);
2236 ::google::protobuf::internal::HasBits<1> _has_bits_;
2237 ::google::protobuf::internal::CachedSize _cached_size_;
2238 ::google::protobuf::RepeatedField<::int32_t> var_index_;
2239 ::google::protobuf::RepeatedField<double> coefficient_;
2240 ::google::protobuf::RepeatedField<::int32_t> qvar1_index_;
2241 ::google::protobuf::RepeatedField<::int32_t> qvar2_index_;
2242 ::google::protobuf::RepeatedField<double> qcoefficient_;
2243 double lower_bound_;
2244 double upper_bound_;
2245 PROTOBUF_TSAN_DECLARE_MEMBER
2246 };
2247 union { Impl_ _impl_; };
2248 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
2249};
2250
2251OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPQuadraticConstraint_class_data_;
2252// -------------------------------------------------------------------
2253
2254class OR_PROTO_DLL MPModelProto_Annotation final : public ::google::protobuf::Message
2255/* @@protoc_insertion_point(class_definition:operations_research.MPModelProto.Annotation) */ {
2256 public:
2258 ~MPModelProto_Annotation() PROTOBUF_FINAL;
2259
2260#if defined(PROTOBUF_CUSTOM_VTABLE)
2261 void operator delete(MPModelProto_Annotation* PROTOBUF_NONNULL msg, std::destroying_delete_t) {
2262 SharedDtor(*msg);
2263 ::google::protobuf::internal::SizedDelete(msg, sizeof(MPModelProto_Annotation));
2265#endif
2266
2267 template <typename = void>
2268 explicit PROTOBUF_CONSTEXPR MPModelProto_Annotation(::google::protobuf::internal::ConstantInitialized);
2269
2270 inline MPModelProto_Annotation(const MPModelProto_Annotation& from) : MPModelProto_Annotation(nullptr, from) {}
2271 inline MPModelProto_Annotation(MPModelProto_Annotation&& from) noexcept
2272 : MPModelProto_Annotation(nullptr, ::std::move(from)) {}
2273 inline MPModelProto_Annotation& operator=(const MPModelProto_Annotation& from) {
2274 CopyFrom(from);
2275 return *this;
2276 }
2277 inline MPModelProto_Annotation& operator=(MPModelProto_Annotation&& from) noexcept {
2278 if (this == &from) return *this;
2279 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
2280 InternalSwap(&from);
2281 } else {
2282 CopyFrom(from);
2284 return *this;
2285 }
2286
2287 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
2288 ABSL_ATTRIBUTE_LIFETIME_BOUND {
2289 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
2290 }
2291 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
2292 ABSL_ATTRIBUTE_LIFETIME_BOUND {
2293 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
2294 }
2295
2296 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
2298 }
2299 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
2300 return default_instance().GetMetadata().descriptor;
2302 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
2303 return default_instance().GetMetadata().reflection;
2304 }
2305 static const MPModelProto_Annotation& default_instance() {
2306 return *reinterpret_cast<const MPModelProto_Annotation*>(
2308 }
2309 static constexpr int kIndexInFileMessages = 11;
2310 friend void swap(MPModelProto_Annotation& a, MPModelProto_Annotation& b) { a.Swap(&b); }
2311 inline void Swap(MPModelProto_Annotation* PROTOBUF_NONNULL other) {
2312 if (other == this) return;
2313 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
2314 InternalSwap(other);
2315 } else {
2316 ::google::protobuf::internal::GenericSwap(this, other);
2317 }
2318 }
2319 void UnsafeArenaSwap(MPModelProto_Annotation* PROTOBUF_NONNULL other) {
2320 if (other == this) return;
2321 ABSL_DCHECK(GetArena() == other->GetArena());
2322 InternalSwap(other);
2323 }
2324
2325 // implements Message ----------------------------------------------
2326
2327 MPModelProto_Annotation* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
2328 return ::google::protobuf::Message::DefaultConstruct<MPModelProto_Annotation>(arena);
2330 using ::google::protobuf::Message::CopyFrom;
2331 void CopyFrom(const MPModelProto_Annotation& from);
2332 using ::google::protobuf::Message::MergeFrom;
2333 void MergeFrom(const MPModelProto_Annotation& from) { MPModelProto_Annotation::MergeImpl(*this, from); }
2334
2335 private:
2336 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
2337 const ::google::protobuf::MessageLite& from_msg);
2338
2339 public:
2340 bool IsInitialized() const {
2341 return true;
2342 }
2343 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
2344 #if defined(PROTOBUF_CUSTOM_VTABLE)
2345 private:
2346 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
2347 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
2348 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
2349 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
2351 public:
2352 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
2353 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
2354 ::uint8_t* PROTOBUF_NONNULL target,
2355 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
2356 return _InternalSerialize(*this, target, stream);
2357 }
2358 #else // PROTOBUF_CUSTOM_VTABLE
2359 ::size_t ByteSizeLong() const final;
2360 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
2361 ::uint8_t* PROTOBUF_NONNULL target,
2362 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
2363 #endif // PROTOBUF_CUSTOM_VTABLE
2364 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
2365
2366 private:
2367 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
2368 static void SharedDtor(MessageLite& self);
2369 void InternalSwap(MPModelProto_Annotation* PROTOBUF_NONNULL other);
2370 private:
2371 template <typename T>
2372 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
2373 static ::absl::string_view FullMessageName() { return "operations_research.MPModelProto.Annotation"; }
2375 protected:
2376 explicit MPModelProto_Annotation(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
2377 MPModelProto_Annotation(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MPModelProto_Annotation& from);
2379 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, MPModelProto_Annotation&& from) noexcept
2380 : MPModelProto_Annotation(arena) {
2381 *this = ::std::move(from);
2382 }
2383 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
2384 static void* PROTOBUF_NONNULL PlacementNew_(
2385 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
2386 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
2387 static constexpr auto InternalNewImpl_();
2389 public:
2390 static constexpr auto InternalGenerateClassData_();
2391
2392 ::google::protobuf::Metadata GetMetadata() const;
2393 // nested types ----------------------------------------------------
2398 static inline bool TargetType_IsValid(int value) {
2400 }
2401 static constexpr TargetType TargetType_MIN = MPModelProto_Annotation_TargetType_TargetType_MIN;
2402 static constexpr TargetType TargetType_MAX = MPModelProto_Annotation_TargetType_TargetType_MAX;
2403 static constexpr int TargetType_ARRAYSIZE = MPModelProto_Annotation_TargetType_TargetType_ARRAYSIZE;
2404 static inline const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL TargetType_descriptor() {
2407 template <typename T>
2408 static inline const ::std::string& TargetType_Name(T value) {
2410 }
2411 static inline bool TargetType_Parse(
2412 ::absl::string_view name, TargetType* PROTOBUF_NONNULL value) {
2415
2416 // accessors -------------------------------------------------------
2417 enum : int {
2423 };
2424 // optional string target_name = 3;
2425 bool has_target_name() const;
2426 void clear_target_name() ;
2427 const ::std::string& target_name() const;
2428 template <typename Arg_ = const ::std::string&, typename... Args_>
2429 void set_target_name(Arg_&& arg, Args_... args);
2430 ::std::string* PROTOBUF_NONNULL mutable_target_name();
2431 [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_target_name();
2432 void set_allocated_target_name(::std::string* PROTOBUF_NULLABLE value);
2433
2434 private:
2435 const ::std::string& _internal_target_name() const;
2436 PROTOBUF_ALWAYS_INLINE void _internal_set_target_name(const ::std::string& value);
2437 ::std::string* PROTOBUF_NONNULL _internal_mutable_target_name();
2438
2439 public:
2440 // optional string payload_key = 4;
2441 bool has_payload_key() const;
2442 void clear_payload_key() ;
2443 const ::std::string& payload_key() const;
2444 template <typename Arg_ = const ::std::string&, typename... Args_>
2445 void set_payload_key(Arg_&& arg, Args_... args);
2446 ::std::string* PROTOBUF_NONNULL mutable_payload_key();
2447 [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_payload_key();
2448 void set_allocated_payload_key(::std::string* PROTOBUF_NULLABLE value);
2449
2450 private:
2451 const ::std::string& _internal_payload_key() const;
2452 PROTOBUF_ALWAYS_INLINE void _internal_set_payload_key(const ::std::string& value);
2453 ::std::string* PROTOBUF_NONNULL _internal_mutable_payload_key();
2454
2455 public:
2456 // optional string payload_value = 5;
2457 bool has_payload_value() const;
2458 void clear_payload_value() ;
2459 const ::std::string& payload_value() const;
2460 template <typename Arg_ = const ::std::string&, typename... Args_>
2461 void set_payload_value(Arg_&& arg, Args_... args);
2462 ::std::string* PROTOBUF_NONNULL mutable_payload_value();
2463 [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_payload_value();
2464 void set_allocated_payload_value(::std::string* PROTOBUF_NULLABLE value);
2465
2466 private:
2467 const ::std::string& _internal_payload_value() const;
2468 PROTOBUF_ALWAYS_INLINE void _internal_set_payload_value(const ::std::string& value);
2469 ::std::string* PROTOBUF_NONNULL _internal_mutable_payload_value();
2470
2471 public:
2472 // optional .operations_research.MPModelProto.Annotation.TargetType target_type = 1;
2473 bool has_target_type() const;
2474 void clear_target_type() ;
2477
2478 private:
2480 void _internal_set_target_type(::operations_research::MPModelProto_Annotation_TargetType value);
2481
2482 public:
2483 // optional int32 target_index = 2;
2484 bool has_target_index() const;
2485 void clear_target_index() ;
2486 ::int32_t target_index() const;
2487 void set_target_index(::int32_t value);
2488
2489 private:
2490 ::int32_t _internal_target_index() const;
2491 void _internal_set_target_index(::int32_t value);
2492
2493 public:
2494 // @@protoc_insertion_point(class_scope:operations_research.MPModelProto.Annotation)
2495 private:
2496 class _Internal;
2497 friend class ::google::protobuf::internal::TcParser;
2498 static const ::google::protobuf::internal::TcParseTable<3, 5,
2499 1, 87,
2500 2>
2501 _table_;
2502
2503 friend class ::google::protobuf::MessageLite;
2504 friend class ::google::protobuf::Arena;
2505 template <typename T>
2506 friend class ::google::protobuf::Arena::InternalHelper;
2507 using InternalArenaConstructable_ = void;
2508 using DestructorSkippable_ = void;
2509 struct Impl_ {
2510 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
2511 inline explicit Impl_(
2512 ::google::protobuf::internal::InternalVisibility visibility,
2513 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
2514 inline explicit Impl_(
2515 ::google::protobuf::internal::InternalVisibility visibility,
2516 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
2517 const MPModelProto_Annotation& from_msg);
2518 ::google::protobuf::internal::HasBits<1> _has_bits_;
2519 ::google::protobuf::internal::CachedSize _cached_size_;
2520 ::google::protobuf::internal::ArenaStringPtr target_name_;
2521 ::google::protobuf::internal::ArenaStringPtr payload_key_;
2522 ::google::protobuf::internal::ArenaStringPtr payload_value_;
2523 int target_type_;
2524 ::int32_t target_index_;
2525 PROTOBUF_TSAN_DECLARE_MEMBER
2526 };
2527 union { Impl_ _impl_; };
2528 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
2529};
2530
2531OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPModelProto_Annotation_class_data_;
2532// -------------------------------------------------------------------
2533
2534class OR_PROTO_DLL MPConstraintProto final : public ::google::protobuf::Message
2535/* @@protoc_insertion_point(class_definition:operations_research.MPConstraintProto) */ {
2536 public:
2538 ~MPConstraintProto() PROTOBUF_FINAL;
2539
2540#if defined(PROTOBUF_CUSTOM_VTABLE)
2541 void operator delete(MPConstraintProto* PROTOBUF_NONNULL msg, std::destroying_delete_t) {
2542 SharedDtor(*msg);
2543 ::google::protobuf::internal::SizedDelete(msg, sizeof(MPConstraintProto));
2544 }
2545#endif
2546
2547 template <typename = void>
2548 explicit PROTOBUF_CONSTEXPR MPConstraintProto(::google::protobuf::internal::ConstantInitialized);
2549
2550 inline MPConstraintProto(const MPConstraintProto& from) : MPConstraintProto(nullptr, from) {}
2551 inline MPConstraintProto(MPConstraintProto&& from) noexcept
2552 : MPConstraintProto(nullptr, ::std::move(from)) {}
2553 inline MPConstraintProto& operator=(const MPConstraintProto& from) {
2554 CopyFrom(from);
2555 return *this;
2556 }
2557 inline MPConstraintProto& operator=(MPConstraintProto&& from) noexcept {
2558 if (this == &from) return *this;
2559 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
2560 InternalSwap(&from);
2561 } else {
2563 }
2564 return *this;
2565 }
2566
2567 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
2568 ABSL_ATTRIBUTE_LIFETIME_BOUND {
2569 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
2570 }
2571 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
2572 ABSL_ATTRIBUTE_LIFETIME_BOUND {
2573 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
2574 }
2575
2576 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
2577 return GetDescriptor();
2579 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
2580 return default_instance().GetMetadata().descriptor;
2581 }
2582 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
2583 return default_instance().GetMetadata().reflection;
2584 }
2585 static const MPConstraintProto& default_instance() {
2586 return *reinterpret_cast<const MPConstraintProto*>(
2588 }
2589 static constexpr int kIndexInFileMessages = 1;
2590 friend void swap(MPConstraintProto& a, MPConstraintProto& b) { a.Swap(&b); }
2591 inline void Swap(MPConstraintProto* PROTOBUF_NONNULL other) {
2592 if (other == this) return;
2593 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
2594 InternalSwap(other);
2595 } else {
2596 ::google::protobuf::internal::GenericSwap(this, other);
2597 }
2598 }
2599 void UnsafeArenaSwap(MPConstraintProto* PROTOBUF_NONNULL other) {
2600 if (other == this) return;
2601 ABSL_DCHECK(GetArena() == other->GetArena());
2602 InternalSwap(other);
2603 }
2604
2605 // implements Message ----------------------------------------------
2606
2607 MPConstraintProto* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
2608 return ::google::protobuf::Message::DefaultConstruct<MPConstraintProto>(arena);
2609 }
2610 using ::google::protobuf::Message::CopyFrom;
2611 void CopyFrom(const MPConstraintProto& from);
2612 using ::google::protobuf::Message::MergeFrom;
2613 void MergeFrom(const MPConstraintProto& from) { MPConstraintProto::MergeImpl(*this, from); }
2614
2615 private:
2616 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
2617 const ::google::protobuf::MessageLite& from_msg);
2619 public:
2620 bool IsInitialized() const {
2621 return true;
2622 }
2623 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
2624 #if defined(PROTOBUF_CUSTOM_VTABLE)
2625 private:
2626 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
2627 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
2628 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
2629 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
2630
2631 public:
2632 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
2633 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
2634 ::uint8_t* PROTOBUF_NONNULL target,
2635 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
2636 return _InternalSerialize(*this, target, stream);
2637 }
2638 #else // PROTOBUF_CUSTOM_VTABLE
2639 ::size_t ByteSizeLong() const final;
2640 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
2641 ::uint8_t* PROTOBUF_NONNULL target,
2642 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
2643 #endif // PROTOBUF_CUSTOM_VTABLE
2644 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
2645
2646 private:
2647 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
2648 static void SharedDtor(MessageLite& self);
2649 void InternalSwap(MPConstraintProto* PROTOBUF_NONNULL other);
2650 private:
2651 template <typename T>
2652 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
2653 static ::absl::string_view FullMessageName() { return "operations_research.MPConstraintProto"; }
2654
2655 protected:
2656 explicit MPConstraintProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
2657 MPConstraintProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MPConstraintProto& from);
2659 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, MPConstraintProto&& from) noexcept
2660 : MPConstraintProto(arena) {
2661 *this = ::std::move(from);
2662 }
2663 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
2664 static void* PROTOBUF_NONNULL PlacementNew_(
2665 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
2666 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
2667 static constexpr auto InternalNewImpl_();
2668
2669 public:
2670 static constexpr auto InternalGenerateClassData_();
2671
2672 ::google::protobuf::Metadata GetMetadata() const;
2673 // nested types ----------------------------------------------------
2674
2675 // accessors -------------------------------------------------------
2676 enum : int {
2679 kNameFieldNumber = 4,
2683 };
2684 // repeated int32 var_index = 6 [packed = true];
2685 int var_index_size() const;
2686 private:
2687 int _internal_var_index_size() const;
2689 public:
2691 ::int32_t var_index(int index) const;
2692 void set_var_index(int index, ::int32_t value);
2693 void add_var_index(::int32_t value);
2694 const ::google::protobuf::RepeatedField<::int32_t>& var_index() const;
2695 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL mutable_var_index();
2696
2697 private:
2698 const ::google::protobuf::RepeatedField<::int32_t>& _internal_var_index() const;
2699 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_var_index();
2700
2701 public:
2702 // repeated double coefficient = 7 [packed = true];
2703 int coefficient_size() const;
2704 private:
2705 int _internal_coefficient_size() const;
2706
2707 public:
2708 void clear_coefficient() ;
2709 double coefficient(int index) const;
2710 void set_coefficient(int index, double value);
2711 void add_coefficient(double value);
2712 const ::google::protobuf::RepeatedField<double>& coefficient() const;
2713 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL mutable_coefficient();
2714
2715 private:
2716 const ::google::protobuf::RepeatedField<double>& _internal_coefficient() const;
2717 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL _internal_mutable_coefficient();
2718
2719 public:
2720 // optional string name = 4 [default = ""];
2721 bool has_name() const;
2722 void clear_name() ;
2723 const ::std::string& name() const;
2724 template <typename Arg_ = const ::std::string&, typename... Args_>
2725 void set_name(Arg_&& arg, Args_... args);
2726 ::std::string* PROTOBUF_NONNULL mutable_name();
2727 [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_name();
2728 void set_allocated_name(::std::string* PROTOBUF_NULLABLE value);
2729
2730 private:
2731 const ::std::string& _internal_name() const;
2732 PROTOBUF_ALWAYS_INLINE void _internal_set_name(const ::std::string& value);
2733 ::std::string* PROTOBUF_NONNULL _internal_mutable_name();
2734
2735 public:
2736 // optional bool is_lazy = 5 [default = false];
2737 bool has_is_lazy() const;
2738 void clear_is_lazy() ;
2739 bool is_lazy() const;
2740 void set_is_lazy(bool value);
2741
2742 private:
2743 bool _internal_is_lazy() const;
2744 void _internal_set_is_lazy(bool value);
2745
2746 public:
2747 // optional double lower_bound = 2 [default = -inf];
2748 bool has_lower_bound() const;
2749 void clear_lower_bound() ;
2750 double lower_bound() const;
2751 void set_lower_bound(double value);
2752
2753 private:
2754 double _internal_lower_bound() const;
2755 void _internal_set_lower_bound(double value);
2756
2757 public:
2758 // optional double upper_bound = 3 [default = inf];
2759 bool has_upper_bound() const;
2760 void clear_upper_bound() ;
2761 double upper_bound() const;
2762 void set_upper_bound(double value);
2763
2764 private:
2765 double _internal_upper_bound() const;
2766 void _internal_set_upper_bound(double value);
2767
2768 public:
2769 // @@protoc_insertion_point(class_scope:operations_research.MPConstraintProto)
2770 private:
2771 class _Internal;
2772 friend class ::google::protobuf::internal::TcParser;
2773 static const ::google::protobuf::internal::TcParseTable<3, 6,
2774 0, 50,
2775 2>
2776 _table_;
2777
2778 friend class ::google::protobuf::MessageLite;
2779 friend class ::google::protobuf::Arena;
2780 template <typename T>
2781 friend class ::google::protobuf::Arena::InternalHelper;
2782 using InternalArenaConstructable_ = void;
2783 using DestructorSkippable_ = void;
2784 struct Impl_ {
2785 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
2786 inline explicit Impl_(
2787 ::google::protobuf::internal::InternalVisibility visibility,
2788 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
2789 inline explicit Impl_(
2790 ::google::protobuf::internal::InternalVisibility visibility,
2791 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
2792 const MPConstraintProto& from_msg);
2793 ::google::protobuf::internal::HasBits<1> _has_bits_;
2794 ::google::protobuf::internal::CachedSize _cached_size_;
2795 ::google::protobuf::RepeatedField<::int32_t> var_index_;
2796 ::google::protobuf::internal::CachedSize _var_index_cached_byte_size_;
2797 ::google::protobuf::RepeatedField<double> coefficient_;
2798 ::google::protobuf::internal::ArenaStringPtr name_;
2799 bool is_lazy_;
2800 double lower_bound_;
2801 double upper_bound_;
2802 PROTOBUF_TSAN_DECLARE_MEMBER
2803 };
2804 union { Impl_ _impl_; };
2805 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
2806};
2807
2808OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPConstraintProto_class_data_;
2809// -------------------------------------------------------------------
2810
2811class OR_PROTO_DLL MPArrayWithConstantConstraint final : public ::google::protobuf::Message
2812/* @@protoc_insertion_point(class_definition:operations_research.MPArrayWithConstantConstraint) */ {
2813 public:
2814 inline MPArrayWithConstantConstraint() : MPArrayWithConstantConstraint(nullptr) {}
2817#if defined(PROTOBUF_CUSTOM_VTABLE)
2818 void operator delete(MPArrayWithConstantConstraint* PROTOBUF_NONNULL msg, std::destroying_delete_t) {
2819 SharedDtor(*msg);
2820 ::google::protobuf::internal::SizedDelete(msg, sizeof(MPArrayWithConstantConstraint));
2821 }
2822#endif
2824 template <typename = void>
2825 explicit PROTOBUF_CONSTEXPR MPArrayWithConstantConstraint(::google::protobuf::internal::ConstantInitialized);
2829 : MPArrayWithConstantConstraint(nullptr, ::std::move(from)) {}
2830 inline MPArrayWithConstantConstraint& operator=(const MPArrayWithConstantConstraint& from) {
2831 CopyFrom(from);
2832 return *this;
2833 }
2834 inline MPArrayWithConstantConstraint& operator=(MPArrayWithConstantConstraint&& from) noexcept {
2835 if (this == &from) return *this;
2836 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
2837 InternalSwap(&from);
2838 } else {
2841 return *this;
2843
2844 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
2845 ABSL_ATTRIBUTE_LIFETIME_BOUND {
2846 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
2847 }
2848 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
2849 ABSL_ATTRIBUTE_LIFETIME_BOUND {
2850 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
2851 }
2852
2853 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
2854 return GetDescriptor();
2855 }
2856 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
2857 return default_instance().GetMetadata().descriptor;
2858 }
2859 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
2860 return default_instance().GetMetadata().reflection;
2861 }
2862 static const MPArrayWithConstantConstraint& default_instance() {
2863 return *reinterpret_cast<const MPArrayWithConstantConstraint*>(
2866 static constexpr int kIndexInFileMessages = 8;
2867 friend void swap(MPArrayWithConstantConstraint& a, MPArrayWithConstantConstraint& b) { a.Swap(&b); }
2868 inline void Swap(MPArrayWithConstantConstraint* PROTOBUF_NONNULL other) {
2869 if (other == this) return;
2870 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
2871 InternalSwap(other);
2872 } else {
2873 ::google::protobuf::internal::GenericSwap(this, other);
2875 }
2876 void UnsafeArenaSwap(MPArrayWithConstantConstraint* PROTOBUF_NONNULL other) {
2877 if (other == this) return;
2878 ABSL_DCHECK(GetArena() == other->GetArena());
2879 InternalSwap(other);
2881
2882 // implements Message ----------------------------------------------
2883
2884 MPArrayWithConstantConstraint* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
2885 return ::google::protobuf::Message::DefaultConstruct<MPArrayWithConstantConstraint>(arena);
2886 }
2887 using ::google::protobuf::Message::CopyFrom;
2889 using ::google::protobuf::Message::MergeFrom;
2890 void MergeFrom(const MPArrayWithConstantConstraint& from) { MPArrayWithConstantConstraint::MergeImpl(*this, from); }
2891
2892 private:
2893 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
2894 const ::google::protobuf::MessageLite& from_msg);
2895
2896 public:
2897 bool IsInitialized() const {
2898 return true;
2899 }
2900 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
2901 #if defined(PROTOBUF_CUSTOM_VTABLE)
2902 private:
2903 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
2904 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
2905 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
2906 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
2907
2908 public:
2909 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
2910 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
2911 ::uint8_t* PROTOBUF_NONNULL target,
2912 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
2913 return _InternalSerialize(*this, target, stream);
2914 }
2915 #else // PROTOBUF_CUSTOM_VTABLE
2916 ::size_t ByteSizeLong() const final;
2917 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
2918 ::uint8_t* PROTOBUF_NONNULL target,
2919 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
2920 #endif // PROTOBUF_CUSTOM_VTABLE
2921 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
2922
2923 private:
2924 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
2925 static void SharedDtor(MessageLite& self);
2926 void InternalSwap(MPArrayWithConstantConstraint* PROTOBUF_NONNULL other);
2927 private:
2928 template <typename T>
2929 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
2930 static ::absl::string_view FullMessageName() { return "operations_research.MPArrayWithConstantConstraint"; }
2931
2932 protected:
2933 explicit MPArrayWithConstantConstraint(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
2934 MPArrayWithConstantConstraint(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MPArrayWithConstantConstraint& from);
2936 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, MPArrayWithConstantConstraint&& from) noexcept
2938 *this = ::std::move(from);
2939 }
2940 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
2941 static void* PROTOBUF_NONNULL PlacementNew_(
2942 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
2943 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
2944 static constexpr auto InternalNewImpl_();
2945
2946 public:
2947 static constexpr auto InternalGenerateClassData_();
2948
2949 ::google::protobuf::Metadata GetMetadata() const;
2950 // nested types ----------------------------------------------------
2951
2952 // accessors -------------------------------------------------------
2953 enum : int {
2957 };
2958 // repeated int32 var_index = 1;
2959 int var_index_size() const;
2960 private:
2961 int _internal_var_index_size() const;
2962
2963 public:
2964 void clear_var_index() ;
2965 ::int32_t var_index(int index) const;
2966 void set_var_index(int index, ::int32_t value);
2967 void add_var_index(::int32_t value);
2968 const ::google::protobuf::RepeatedField<::int32_t>& var_index() const;
2969 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL mutable_var_index();
2970
2971 private:
2972 const ::google::protobuf::RepeatedField<::int32_t>& _internal_var_index() const;
2973 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_var_index();
2974
2975 public:
2976 // optional double constant = 2;
2977 bool has_constant() const;
2978 void clear_constant() ;
2979 double constant() const;
2980 void set_constant(double value);
2981
2982 private:
2983 double _internal_constant() const;
2984 void _internal_set_constant(double value);
2985
2986 public:
2987 // optional int32 resultant_var_index = 3;
2988 bool has_resultant_var_index() const;
2990 ::int32_t resultant_var_index() const;
2991 void set_resultant_var_index(::int32_t value);
2992
2993 private:
2994 ::int32_t _internal_resultant_var_index() const;
2995 void _internal_set_resultant_var_index(::int32_t value);
2996
2997 public:
2998 // @@protoc_insertion_point(class_scope:operations_research.MPArrayWithConstantConstraint)
2999 private:
3000 class _Internal;
3001 friend class ::google::protobuf::internal::TcParser;
3002 static const ::google::protobuf::internal::TcParseTable<2, 3,
3003 0, 0,
3004 2>
3005 _table_;
3006
3007 friend class ::google::protobuf::MessageLite;
3008 friend class ::google::protobuf::Arena;
3009 template <typename T>
3010 friend class ::google::protobuf::Arena::InternalHelper;
3011 using InternalArenaConstructable_ = void;
3012 using DestructorSkippable_ = void;
3013 struct Impl_ {
3014 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
3015 inline explicit Impl_(
3016 ::google::protobuf::internal::InternalVisibility visibility,
3017 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
3018 inline explicit Impl_(
3019 ::google::protobuf::internal::InternalVisibility visibility,
3020 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
3021 const MPArrayWithConstantConstraint& from_msg);
3022 ::google::protobuf::internal::HasBits<1> _has_bits_;
3023 ::google::protobuf::internal::CachedSize _cached_size_;
3024 ::google::protobuf::RepeatedField<::int32_t> var_index_;
3025 double constant_;
3026 ::int32_t resultant_var_index_;
3027 PROTOBUF_TSAN_DECLARE_MEMBER
3028 };
3029 union { Impl_ _impl_; };
3030 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
3031};
3032
3033OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPArrayWithConstantConstraint_class_data_;
3034// -------------------------------------------------------------------
3035
3036class OR_PROTO_DLL MPArrayConstraint final : public ::google::protobuf::Message
3037/* @@protoc_insertion_point(class_definition:operations_research.MPArrayConstraint) */ {
3038 public:
3039 inline MPArrayConstraint() : MPArrayConstraint(nullptr) {}
3040 ~MPArrayConstraint() PROTOBUF_FINAL;
3042#if defined(PROTOBUF_CUSTOM_VTABLE)
3043 void operator delete(MPArrayConstraint* PROTOBUF_NONNULL msg, std::destroying_delete_t) {
3044 SharedDtor(*msg);
3045 ::google::protobuf::internal::SizedDelete(msg, sizeof(MPArrayConstraint));
3046 }
3047#endif
3048
3049 template <typename = void>
3050 explicit PROTOBUF_CONSTEXPR MPArrayConstraint(::google::protobuf::internal::ConstantInitialized);
3051
3052 inline MPArrayConstraint(const MPArrayConstraint& from) : MPArrayConstraint(nullptr, from) {}
3053 inline MPArrayConstraint(MPArrayConstraint&& from) noexcept
3054 : MPArrayConstraint(nullptr, ::std::move(from)) {}
3055 inline MPArrayConstraint& operator=(const MPArrayConstraint& from) {
3056 CopyFrom(from);
3057 return *this;
3058 }
3059 inline MPArrayConstraint& operator=(MPArrayConstraint&& from) noexcept {
3060 if (this == &from) return *this;
3061 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
3062 InternalSwap(&from);
3063 } else {
3064 CopyFrom(from);
3066 return *this;
3067 }
3069 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
3070 ABSL_ATTRIBUTE_LIFETIME_BOUND {
3071 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
3073 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
3074 ABSL_ATTRIBUTE_LIFETIME_BOUND {
3075 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
3076 }
3077
3078 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
3079 return GetDescriptor();
3080 }
3081 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
3082 return default_instance().GetMetadata().descriptor;
3083 }
3084 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
3085 return default_instance().GetMetadata().reflection;
3087 static const MPArrayConstraint& default_instance() {
3088 return *reinterpret_cast<const MPArrayConstraint*>(
3090 }
3091 static constexpr int kIndexInFileMessages = 7;
3092 friend void swap(MPArrayConstraint& a, MPArrayConstraint& b) { a.Swap(&b); }
3093 inline void Swap(MPArrayConstraint* PROTOBUF_NONNULL other) {
3094 if (other == this) return;
3095 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
3096 InternalSwap(other);
3097 } else {
3098 ::google::protobuf::internal::GenericSwap(this, other);
3099 }
3101 void UnsafeArenaSwap(MPArrayConstraint* PROTOBUF_NONNULL other) {
3102 if (other == this) return;
3103 ABSL_DCHECK(GetArena() == other->GetArena());
3104 InternalSwap(other);
3107 // implements Message ----------------------------------------------
3108
3109 MPArrayConstraint* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
3110 return ::google::protobuf::Message::DefaultConstruct<MPArrayConstraint>(arena);
3111 }
3112 using ::google::protobuf::Message::CopyFrom;
3113 void CopyFrom(const MPArrayConstraint& from);
3114 using ::google::protobuf::Message::MergeFrom;
3115 void MergeFrom(const MPArrayConstraint& from) { MPArrayConstraint::MergeImpl(*this, from); }
3116
3117 private:
3118 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
3119 const ::google::protobuf::MessageLite& from_msg);
3120
3121 public:
3122 bool IsInitialized() const {
3123 return true;
3124 }
3125 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
3126 #if defined(PROTOBUF_CUSTOM_VTABLE)
3127 private:
3128 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
3129 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
3130 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
3131 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
3132
3133 public:
3134 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
3135 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
3136 ::uint8_t* PROTOBUF_NONNULL target,
3137 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
3138 return _InternalSerialize(*this, target, stream);
3139 }
3140 #else // PROTOBUF_CUSTOM_VTABLE
3141 ::size_t ByteSizeLong() const final;
3142 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
3143 ::uint8_t* PROTOBUF_NONNULL target,
3144 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
3145 #endif // PROTOBUF_CUSTOM_VTABLE
3146 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
3147
3148 private:
3149 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
3150 static void SharedDtor(MessageLite& self);
3151 void InternalSwap(MPArrayConstraint* PROTOBUF_NONNULL other);
3152 private:
3153 template <typename T>
3154 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
3155 static ::absl::string_view FullMessageName() { return "operations_research.MPArrayConstraint"; }
3156
3157 protected:
3158 explicit MPArrayConstraint(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
3159 MPArrayConstraint(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MPArrayConstraint& from);
3161 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, MPArrayConstraint&& from) noexcept
3162 : MPArrayConstraint(arena) {
3163 *this = ::std::move(from);
3164 }
3165 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
3166 static void* PROTOBUF_NONNULL PlacementNew_(
3167 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
3168 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
3169 static constexpr auto InternalNewImpl_();
3170
3171 public:
3172 static constexpr auto InternalGenerateClassData_();
3174 ::google::protobuf::Metadata GetMetadata() const;
3175 // nested types ----------------------------------------------------
3176
3177 // accessors -------------------------------------------------------
3178 enum : int {
3181 };
3182 // repeated int32 var_index = 1;
3183 int var_index_size() const;
3184 private:
3185 int _internal_var_index_size() const;
3186
3187 public:
3188 void clear_var_index() ;
3189 ::int32_t var_index(int index) const;
3190 void set_var_index(int index, ::int32_t value);
3191 void add_var_index(::int32_t value);
3192 const ::google::protobuf::RepeatedField<::int32_t>& var_index() const;
3193 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL mutable_var_index();
3194
3195 private:
3196 const ::google::protobuf::RepeatedField<::int32_t>& _internal_var_index() const;
3197 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_var_index();
3198
3199 public:
3200 // optional int32 resultant_var_index = 2;
3201 bool has_resultant_var_index() const;
3203 ::int32_t resultant_var_index() const;
3204 void set_resultant_var_index(::int32_t value);
3205
3206 private:
3207 ::int32_t _internal_resultant_var_index() const;
3208 void _internal_set_resultant_var_index(::int32_t value);
3209
3210 public:
3211 // @@protoc_insertion_point(class_scope:operations_research.MPArrayConstraint)
3212 private:
3213 class _Internal;
3214 friend class ::google::protobuf::internal::TcParser;
3215 static const ::google::protobuf::internal::TcParseTable<1, 2,
3216 0, 0,
3217 2>
3218 _table_;
3219
3220 friend class ::google::protobuf::MessageLite;
3221 friend class ::google::protobuf::Arena;
3222 template <typename T>
3223 friend class ::google::protobuf::Arena::InternalHelper;
3224 using InternalArenaConstructable_ = void;
3225 using DestructorSkippable_ = void;
3226 struct Impl_ {
3227 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
3228 inline explicit Impl_(
3229 ::google::protobuf::internal::InternalVisibility visibility,
3230 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
3231 inline explicit Impl_(
3232 ::google::protobuf::internal::InternalVisibility visibility,
3233 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
3234 const MPArrayConstraint& from_msg);
3235 ::google::protobuf::internal::HasBits<1> _has_bits_;
3236 ::google::protobuf::internal::CachedSize _cached_size_;
3237 ::google::protobuf::RepeatedField<::int32_t> var_index_;
3238 ::int32_t resultant_var_index_;
3239 PROTOBUF_TSAN_DECLARE_MEMBER
3240 };
3241 union { Impl_ _impl_; };
3242 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
3243};
3244
3245OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPArrayConstraint_class_data_;
3246// -------------------------------------------------------------------
3247
3248class OR_PROTO_DLL MPAbsConstraint final : public ::google::protobuf::Message
3249/* @@protoc_insertion_point(class_definition:operations_research.MPAbsConstraint) */ {
3250 public:
3251 inline MPAbsConstraint() : MPAbsConstraint(nullptr) {}
3252 ~MPAbsConstraint() PROTOBUF_FINAL;
3253
3254#if defined(PROTOBUF_CUSTOM_VTABLE)
3255 void operator delete(MPAbsConstraint* PROTOBUF_NONNULL msg, std::destroying_delete_t) {
3256 SharedDtor(*msg);
3257 ::google::protobuf::internal::SizedDelete(msg, sizeof(MPAbsConstraint));
3258 }
3259#endif
3260
3261 template <typename = void>
3262 explicit PROTOBUF_CONSTEXPR MPAbsConstraint(::google::protobuf::internal::ConstantInitialized);
3263
3264 inline MPAbsConstraint(const MPAbsConstraint& from) : MPAbsConstraint(nullptr, from) {}
3265 inline MPAbsConstraint(MPAbsConstraint&& from) noexcept
3266 : MPAbsConstraint(nullptr, ::std::move(from)) {}
3267 inline MPAbsConstraint& operator=(const MPAbsConstraint& from) {
3268 CopyFrom(from);
3269 return *this;
3270 }
3271 inline MPAbsConstraint& operator=(MPAbsConstraint&& from) noexcept {
3272 if (this == &from) return *this;
3273 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
3274 InternalSwap(&from);
3275 } else {
3277 }
3278 return *this;
3280
3281 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
3282 ABSL_ATTRIBUTE_LIFETIME_BOUND {
3283 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
3284 }
3285 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
3286 ABSL_ATTRIBUTE_LIFETIME_BOUND {
3287 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
3288 }
3289
3290 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
3291 return GetDescriptor();
3292 }
3293 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
3294 return default_instance().GetMetadata().descriptor;
3296 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
3297 return default_instance().GetMetadata().reflection;
3298 }
3300 return *reinterpret_cast<const MPAbsConstraint*>(
3302 }
3303 static constexpr int kIndexInFileMessages = 6;
3304 friend void swap(MPAbsConstraint& a, MPAbsConstraint& b) { a.Swap(&b); }
3305 inline void Swap(MPAbsConstraint* PROTOBUF_NONNULL other) {
3306 if (other == this) return;
3307 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
3308 InternalSwap(other);
3309 } else {
3310 ::google::protobuf::internal::GenericSwap(this, other);
3311 }
3312 }
3313 void UnsafeArenaSwap(MPAbsConstraint* PROTOBUF_NONNULL other) {
3314 if (other == this) return;
3315 ABSL_DCHECK(GetArena() == other->GetArena());
3316 InternalSwap(other);
3319 // implements Message ----------------------------------------------
3320
3321 MPAbsConstraint* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
3322 return ::google::protobuf::Message::DefaultConstruct<MPAbsConstraint>(arena);
3323 }
3324 using ::google::protobuf::Message::CopyFrom;
3325 void CopyFrom(const MPAbsConstraint& from);
3326 using ::google::protobuf::Message::MergeFrom;
3327 void MergeFrom(const MPAbsConstraint& from) { MPAbsConstraint::MergeImpl(*this, from); }
3328
3329 private:
3330 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
3331 const ::google::protobuf::MessageLite& from_msg);
3332
3333 public:
3334 bool IsInitialized() const {
3335 return true;
3336 }
3337 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
3338 #if defined(PROTOBUF_CUSTOM_VTABLE)
3339 private:
3340 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
3341 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
3342 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
3343 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
3344
3345 public:
3346 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
3347 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
3348 ::uint8_t* PROTOBUF_NONNULL target,
3349 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
3350 return _InternalSerialize(*this, target, stream);
3351 }
3352 #else // PROTOBUF_CUSTOM_VTABLE
3353 ::size_t ByteSizeLong() const final;
3354 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
3355 ::uint8_t* PROTOBUF_NONNULL target,
3356 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
3357 #endif // PROTOBUF_CUSTOM_VTABLE
3358 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
3359
3360 private:
3361 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
3362 static void SharedDtor(MessageLite& self);
3363 void InternalSwap(MPAbsConstraint* PROTOBUF_NONNULL other);
3364 private:
3365 template <typename T>
3366 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
3367 static ::absl::string_view FullMessageName() { return "operations_research.MPAbsConstraint"; }
3368
3369 protected:
3370 explicit MPAbsConstraint(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
3371 MPAbsConstraint(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MPAbsConstraint& from);
3373 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, MPAbsConstraint&& from) noexcept
3374 : MPAbsConstraint(arena) {
3375 *this = ::std::move(from);
3376 }
3377 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
3378 static void* PROTOBUF_NONNULL PlacementNew_(
3379 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
3380 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
3381 static constexpr auto InternalNewImpl_();
3382
3383 public:
3384 static constexpr auto InternalGenerateClassData_();
3385
3386 ::google::protobuf::Metadata GetMetadata() const;
3387 // nested types ----------------------------------------------------
3388
3389 // accessors -------------------------------------------------------
3390 enum : int {
3393 };
3394 // optional int32 var_index = 1;
3395 bool has_var_index() const;
3396 void clear_var_index() ;
3397 ::int32_t var_index() const;
3398 void set_var_index(::int32_t value);
3399
3400 private:
3401 ::int32_t _internal_var_index() const;
3402 void _internal_set_var_index(::int32_t value);
3403
3404 public:
3405 // optional int32 resultant_var_index = 2;
3408 ::int32_t resultant_var_index() const;
3409 void set_resultant_var_index(::int32_t value);
3410
3411 private:
3412 ::int32_t _internal_resultant_var_index() const;
3413 void _internal_set_resultant_var_index(::int32_t value);
3414
3415 public:
3416 // @@protoc_insertion_point(class_scope:operations_research.MPAbsConstraint)
3417 private:
3418 class _Internal;
3419 friend class ::google::protobuf::internal::TcParser;
3420 static const ::google::protobuf::internal::TcParseTable<1, 2,
3421 0, 0,
3422 2>
3423 _table_;
3424
3425 friend class ::google::protobuf::MessageLite;
3426 friend class ::google::protobuf::Arena;
3427 template <typename T>
3428 friend class ::google::protobuf::Arena::InternalHelper;
3429 using InternalArenaConstructable_ = void;
3430 using DestructorSkippable_ = void;
3431 struct Impl_ {
3432 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
3433 inline explicit Impl_(
3434 ::google::protobuf::internal::InternalVisibility visibility,
3435 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
3436 inline explicit Impl_(
3437 ::google::protobuf::internal::InternalVisibility visibility,
3438 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
3439 const MPAbsConstraint& from_msg);
3440 ::google::protobuf::internal::HasBits<1> _has_bits_;
3441 ::google::protobuf::internal::CachedSize _cached_size_;
3442 ::int32_t var_index_;
3443 ::int32_t resultant_var_index_;
3444 PROTOBUF_TSAN_DECLARE_MEMBER
3445 };
3446 union { Impl_ _impl_; };
3447 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
3448};
3449
3450OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPAbsConstraint_class_data_;
3451// -------------------------------------------------------------------
3452
3453class OR_PROTO_DLL MPSolverCommonParameters final : public ::google::protobuf::Message
3454/* @@protoc_insertion_point(class_definition:operations_research.MPSolverCommonParameters) */ {
3455 public:
3456 inline MPSolverCommonParameters() : MPSolverCommonParameters(nullptr) {}
3457 ~MPSolverCommonParameters() PROTOBUF_FINAL;
3458
3459#if defined(PROTOBUF_CUSTOM_VTABLE)
3460 void operator delete(MPSolverCommonParameters* PROTOBUF_NONNULL msg, std::destroying_delete_t) {
3461 SharedDtor(*msg);
3462 ::google::protobuf::internal::SizedDelete(msg, sizeof(MPSolverCommonParameters));
3463 }
3464#endif
3465
3466 template <typename = void>
3467 explicit PROTOBUF_CONSTEXPR MPSolverCommonParameters(::google::protobuf::internal::ConstantInitialized);
3469 inline MPSolverCommonParameters(const MPSolverCommonParameters& from) : MPSolverCommonParameters(nullptr, from) {}
3471 : MPSolverCommonParameters(nullptr, ::std::move(from)) {}
3472 inline MPSolverCommonParameters& operator=(const MPSolverCommonParameters& from) {
3473 CopyFrom(from);
3474 return *this;
3475 }
3476 inline MPSolverCommonParameters& operator=(MPSolverCommonParameters&& from) noexcept {
3477 if (this == &from) return *this;
3478 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
3479 InternalSwap(&from);
3480 } else {
3481 CopyFrom(from);
3483 return *this;
3486 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
3487 ABSL_ATTRIBUTE_LIFETIME_BOUND {
3488 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
3489 }
3490 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
3491 ABSL_ATTRIBUTE_LIFETIME_BOUND {
3492 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
3493 }
3494
3495 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
3496 return GetDescriptor();
3497 }
3498 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
3499 return default_instance().GetMetadata().descriptor;
3500 }
3501 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
3502 return default_instance().GetMetadata().reflection;
3503 }
3504 static const MPSolverCommonParameters& default_instance() {
3505 return *reinterpret_cast<const MPSolverCommonParameters*>(
3507 }
3508 static constexpr int kIndexInFileMessages = 14;
3509 friend void swap(MPSolverCommonParameters& a, MPSolverCommonParameters& b) { a.Swap(&b); }
3510 inline void Swap(MPSolverCommonParameters* PROTOBUF_NONNULL other) {
3511 if (other == this) return;
3512 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
3513 InternalSwap(other);
3514 } else {
3515 ::google::protobuf::internal::GenericSwap(this, other);
3517 }
3518 void UnsafeArenaSwap(MPSolverCommonParameters* PROTOBUF_NONNULL other) {
3519 if (other == this) return;
3520 ABSL_DCHECK(GetArena() == other->GetArena());
3521 InternalSwap(other);
3522 }
3524 // implements Message ----------------------------------------------
3526 MPSolverCommonParameters* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
3527 return ::google::protobuf::Message::DefaultConstruct<MPSolverCommonParameters>(arena);
3528 }
3529 using ::google::protobuf::Message::CopyFrom;
3530 void CopyFrom(const MPSolverCommonParameters& from);
3531 using ::google::protobuf::Message::MergeFrom;
3532 void MergeFrom(const MPSolverCommonParameters& from) { MPSolverCommonParameters::MergeImpl(*this, from); }
3534 private:
3535 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
3536 const ::google::protobuf::MessageLite& from_msg);
3537
3538 public:
3539 bool IsInitialized() const {
3540 return true;
3542 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
3543 #if defined(PROTOBUF_CUSTOM_VTABLE)
3544 private:
3545 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
3546 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
3547 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
3548 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
3549
3550 public:
3551 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
3552 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
3553 ::uint8_t* PROTOBUF_NONNULL target,
3554 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
3555 return _InternalSerialize(*this, target, stream);
3556 }
3557 #else // PROTOBUF_CUSTOM_VTABLE
3558 ::size_t ByteSizeLong() const final;
3559 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
3560 ::uint8_t* PROTOBUF_NONNULL target,
3561 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
3562 #endif // PROTOBUF_CUSTOM_VTABLE
3563 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
3564
3565 private:
3566 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
3567 static void SharedDtor(MessageLite& self);
3568 void InternalSwap(MPSolverCommonParameters* PROTOBUF_NONNULL other);
3569 private:
3570 template <typename T>
3571 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
3572 static ::absl::string_view FullMessageName() { return "operations_research.MPSolverCommonParameters"; }
3573
3574 protected:
3575 explicit MPSolverCommonParameters(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
3576 MPSolverCommonParameters(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MPSolverCommonParameters& from);
3577 MPSolverCommonParameters(
3578 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, MPSolverCommonParameters&& from) noexcept
3579 : MPSolverCommonParameters(arena) {
3580 *this = ::std::move(from);
3581 }
3582 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
3583 static void* PROTOBUF_NONNULL PlacementNew_(
3584 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
3585 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
3586 static constexpr auto InternalNewImpl_();
3587
3588 public:
3589 static constexpr auto InternalGenerateClassData_();
3590
3591 ::google::protobuf::Metadata GetMetadata() const;
3598 static inline bool LPAlgorithmValues_IsValid(int value) {
3600 }
3601 static constexpr LPAlgorithmValues LPAlgorithmValues_MIN = MPSolverCommonParameters_LPAlgorithmValues_LPAlgorithmValues_MIN;
3602 static constexpr LPAlgorithmValues LPAlgorithmValues_MAX = MPSolverCommonParameters_LPAlgorithmValues_LPAlgorithmValues_MAX;
3603 static constexpr int LPAlgorithmValues_ARRAYSIZE = MPSolverCommonParameters_LPAlgorithmValues_LPAlgorithmValues_ARRAYSIZE;
3604 static inline const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL LPAlgorithmValues_descriptor() {
3606 }
3607 template <typename T>
3608 static inline const ::std::string& LPAlgorithmValues_Name(T value) {
3611 static inline bool LPAlgorithmValues_Parse(
3612 ::absl::string_view name, LPAlgorithmValues* PROTOBUF_NONNULL value) {
3616 // accessors -------------------------------------------------------
3617 enum : int {
3624 };
3625 // optional .operations_research.OptionalDouble relative_mip_gap = 1;
3627 void clear_relative_mip_gap() ;
3628 const ::operations_research::OptionalDouble& relative_mip_gap() const;
3629 [[nodiscard]] ::operations_research::OptionalDouble* PROTOBUF_NULLABLE release_relative_mip_gap();
3635 private:
3636 const ::operations_research::OptionalDouble& _internal_relative_mip_gap() const;
3637 ::operations_research::OptionalDouble* PROTOBUF_NONNULL _internal_mutable_relative_mip_gap();
3639 public:
3640 // optional .operations_research.OptionalDouble primal_tolerance = 2;
3641 bool has_primal_tolerance() const;
3642 void clear_primal_tolerance() ;
3643 const ::operations_research::OptionalDouble& primal_tolerance() const;
3644 [[nodiscard]] ::operations_research::OptionalDouble* PROTOBUF_NULLABLE release_primal_tolerance();
3649
3650 private:
3651 const ::operations_research::OptionalDouble& _internal_primal_tolerance() const;
3652 ::operations_research::OptionalDouble* PROTOBUF_NONNULL _internal_mutable_primal_tolerance();
3653
3654 public:
3655 // optional .operations_research.OptionalDouble dual_tolerance = 3;
3656 bool has_dual_tolerance() const;
3657 void clear_dual_tolerance() ;
3658 const ::operations_research::OptionalDouble& dual_tolerance() const;
3659 [[nodiscard]] ::operations_research::OptionalDouble* PROTOBUF_NULLABLE release_dual_tolerance();
3664
3665 private:
3666 const ::operations_research::OptionalDouble& _internal_dual_tolerance() const;
3667 ::operations_research::OptionalDouble* PROTOBUF_NONNULL _internal_mutable_dual_tolerance();
3668
3669 public:
3670 // optional .operations_research.MPSolverCommonParameters.LPAlgorithmValues lp_algorithm = 4 [default = LP_ALGO_UNSPECIFIED];
3671 bool has_lp_algorithm() const;
3672 void clear_lp_algorithm() ;
3675
3676 private:
3678 void _internal_set_lp_algorithm(::operations_research::MPSolverCommonParameters_LPAlgorithmValues value);
3679
3680 public:
3681 // optional .operations_research.OptionalBoolean presolve = 5 [default = BOOL_UNSPECIFIED];
3682 bool has_presolve() const;
3683 void clear_presolve() ;
3686
3687 private:
3688 ::operations_research::OptionalBoolean _internal_presolve() const;
3689 void _internal_set_presolve(::operations_research::OptionalBoolean value);
3690
3691 public:
3692 // optional .operations_research.OptionalBoolean scaling = 7 [default = BOOL_UNSPECIFIED];
3693 bool has_scaling() const;
3694 void clear_scaling() ;
3697
3698 private:
3699 ::operations_research::OptionalBoolean _internal_scaling() const;
3700 void _internal_set_scaling(::operations_research::OptionalBoolean value);
3701
3702 public:
3703 // @@protoc_insertion_point(class_scope:operations_research.MPSolverCommonParameters)
3704 private:
3705 class _Internal;
3706 friend class ::google::protobuf::internal::TcParser;
3707 static const ::google::protobuf::internal::TcParseTable<3, 6,
3708 6, 0,
3709 2>
3710 _table_;
3711
3712 friend class ::google::protobuf::MessageLite;
3713 friend class ::google::protobuf::Arena;
3714 template <typename T>
3715 friend class ::google::protobuf::Arena::InternalHelper;
3716 using InternalArenaConstructable_ = void;
3717 using DestructorSkippable_ = void;
3718 struct Impl_ {
3719 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
3720 inline explicit Impl_(
3721 ::google::protobuf::internal::InternalVisibility visibility,
3722 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
3723 inline explicit Impl_(
3724 ::google::protobuf::internal::InternalVisibility visibility,
3725 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
3726 const MPSolverCommonParameters& from_msg);
3727 ::google::protobuf::internal::HasBits<1> _has_bits_;
3728 ::google::protobuf::internal::CachedSize _cached_size_;
3729 ::operations_research::OptionalDouble* PROTOBUF_NULLABLE relative_mip_gap_;
3730 ::operations_research::OptionalDouble* PROTOBUF_NULLABLE primal_tolerance_;
3731 ::operations_research::OptionalDouble* PROTOBUF_NULLABLE dual_tolerance_;
3732 int lp_algorithm_;
3733 int presolve_;
3734 int scaling_;
3735 PROTOBUF_TSAN_DECLARE_MEMBER
3736 };
3737 union { Impl_ _impl_; };
3738 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
3739};
3740
3741OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPSolverCommonParameters_class_data_;
3742// -------------------------------------------------------------------
3743
3744class OR_PROTO_DLL MPSolutionResponse final : public ::google::protobuf::Message
3745/* @@protoc_insertion_point(class_definition:operations_research.MPSolutionResponse) */ {
3746 public:
3747 inline MPSolutionResponse() : MPSolutionResponse(nullptr) {}
3748 ~MPSolutionResponse() PROTOBUF_FINAL;
3749
3750#if defined(PROTOBUF_CUSTOM_VTABLE)
3751 void operator delete(MPSolutionResponse* PROTOBUF_NONNULL msg, std::destroying_delete_t) {
3752 SharedDtor(*msg);
3753 ::google::protobuf::internal::SizedDelete(msg, sizeof(MPSolutionResponse));
3754 }
3755#endif
3756
3757 template <typename = void>
3758 explicit PROTOBUF_CONSTEXPR MPSolutionResponse(::google::protobuf::internal::ConstantInitialized);
3759
3760 inline MPSolutionResponse(const MPSolutionResponse& from) : MPSolutionResponse(nullptr, from) {}
3761 inline MPSolutionResponse(MPSolutionResponse&& from) noexcept
3762 : MPSolutionResponse(nullptr, ::std::move(from)) {}
3764 CopyFrom(from);
3765 return *this;
3766 }
3767 inline MPSolutionResponse& operator=(MPSolutionResponse&& from) noexcept {
3768 if (this == &from) return *this;
3769 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
3770 InternalSwap(&from);
3771 } else {
3772 CopyFrom(from);
3773 }
3774 return *this;
3775 }
3777 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
3778 ABSL_ATTRIBUTE_LIFETIME_BOUND {
3779 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
3780 }
3781 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
3782 ABSL_ATTRIBUTE_LIFETIME_BOUND {
3783 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
3784 }
3785
3786 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
3787 return GetDescriptor();
3788 }
3789 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
3790 return default_instance().GetMetadata().descriptor;
3791 }
3792 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
3793 return default_instance().GetMetadata().reflection;
3794 }
3795 static const MPSolutionResponse& default_instance() {
3796 return *reinterpret_cast<const MPSolutionResponse*>(
3798 }
3799 static constexpr int kIndexInFileMessages = 21;
3800 friend void swap(MPSolutionResponse& a, MPSolutionResponse& b) { a.Swap(&b); }
3801 inline void Swap(MPSolutionResponse* PROTOBUF_NONNULL other) {
3802 if (other == this) return;
3803 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
3804 InternalSwap(other);
3805 } else {
3806 ::google::protobuf::internal::GenericSwap(this, other);
3807 }
3809 void UnsafeArenaSwap(MPSolutionResponse* PROTOBUF_NONNULL other) {
3810 if (other == this) return;
3811 ABSL_DCHECK(GetArena() == other->GetArena());
3812 InternalSwap(other);
3813 }
3814
3815 // implements Message ----------------------------------------------
3817 MPSolutionResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
3818 return ::google::protobuf::Message::DefaultConstruct<MPSolutionResponse>(arena);
3819 }
3820 using ::google::protobuf::Message::CopyFrom;
3821 void CopyFrom(const MPSolutionResponse& from);
3822 using ::google::protobuf::Message::MergeFrom;
3823 void MergeFrom(const MPSolutionResponse& from) { MPSolutionResponse::MergeImpl(*this, from); }
3824
3825 private:
3826 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
3827 const ::google::protobuf::MessageLite& from_msg);
3828
3829 public:
3830 bool IsInitialized() const {
3831 return true;
3832 }
3833 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
3834 #if defined(PROTOBUF_CUSTOM_VTABLE)
3835 private:
3836 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
3837 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
3838 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
3839 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
3840
3841 public:
3842 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
3843 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
3844 ::uint8_t* PROTOBUF_NONNULL target,
3845 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
3846 return _InternalSerialize(*this, target, stream);
3847 }
3848 #else // PROTOBUF_CUSTOM_VTABLE
3849 ::size_t ByteSizeLong() const final;
3850 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
3851 ::uint8_t* PROTOBUF_NONNULL target,
3852 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
3853 #endif // PROTOBUF_CUSTOM_VTABLE
3854 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
3855
3856 private:
3857 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
3858 static void SharedDtor(MessageLite& self);
3859 void InternalSwap(MPSolutionResponse* PROTOBUF_NONNULL other);
3860 private:
3861 template <typename T>
3862 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
3863 static ::absl::string_view FullMessageName() { return "operations_research.MPSolutionResponse"; }
3864
3865 protected:
3866 explicit MPSolutionResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
3867 MPSolutionResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MPSolutionResponse& from);
3868 MPSolutionResponse(
3869 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, MPSolutionResponse&& from) noexcept
3871 *this = ::std::move(from);
3872 }
3873 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
3874 static void* PROTOBUF_NONNULL PlacementNew_(
3875 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
3876 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
3877 static constexpr auto InternalNewImpl_();
3878
3879 public:
3880 static constexpr auto InternalGenerateClassData_();
3881
3882 ::google::protobuf::Metadata GetMetadata() const;
3883 // nested types ----------------------------------------------------
3885 // accessors -------------------------------------------------------
3886 enum : int {
3897 };
3898 // repeated double variable_value = 3 [packed = true];
3899 int variable_value_size() const;
3900 private:
3901 int _internal_variable_value_size() const;
3902
3903 public:
3905 double variable_value(int index) const;
3906 void set_variable_value(int index, double value);
3907 void add_variable_value(double value);
3908 const ::google::protobuf::RepeatedField<double>& variable_value() const;
3909 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL mutable_variable_value();
3911 private:
3912 const ::google::protobuf::RepeatedField<double>& _internal_variable_value() const;
3913 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL _internal_mutable_variable_value();
3914
3915 public:
3916 // repeated double dual_value = 4 [packed = true];
3917 int dual_value_size() const;
3918 private:
3919 int _internal_dual_value_size() const;
3920
3921 public:
3922 void clear_dual_value() ;
3923 double dual_value(int index) const;
3924 void set_dual_value(int index, double value);
3925 void add_dual_value(double value);
3926 const ::google::protobuf::RepeatedField<double>& dual_value() const;
3927 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL mutable_dual_value();
3928
3929 private:
3930 const ::google::protobuf::RepeatedField<double>& _internal_dual_value() const;
3931 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL _internal_mutable_dual_value();
3932
3933 public:
3934 // repeated double reduced_cost = 6 [packed = true];
3935 int reduced_cost_size() const;
3936 private:
3937 int _internal_reduced_cost_size() const;
3938
3939 public:
3940 void clear_reduced_cost() ;
3941 double reduced_cost(int index) const;
3942 void set_reduced_cost(int index, double value);
3943 void add_reduced_cost(double value);
3944 const ::google::protobuf::RepeatedField<double>& reduced_cost() const;
3945 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL mutable_reduced_cost();
3946
3947 private:
3948 const ::google::protobuf::RepeatedField<double>& _internal_reduced_cost() const;
3949 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL _internal_mutable_reduced_cost();
3950
3951 public:
3952 // repeated .operations_research.MPSolution additional_solutions = 8;
3953 int additional_solutions_size() const;
3954 private:
3955 int _internal_additional_solutions_size() const;
3956
3957 public:
3960 ::google::protobuf::RepeatedPtrField<::operations_research::MPSolution>* PROTOBUF_NONNULL mutable_additional_solutions();
3961
3962 private:
3963 const ::google::protobuf::RepeatedPtrField<::operations_research::MPSolution>& _internal_additional_solutions() const;
3964 ::google::protobuf::RepeatedPtrField<::operations_research::MPSolution>* PROTOBUF_NONNULL _internal_mutable_additional_solutions();
3965 public:
3966 const ::operations_research::MPSolution& additional_solutions(int index) const;
3968 const ::google::protobuf::RepeatedPtrField<::operations_research::MPSolution>& additional_solutions() const;
3969 // optional string status_str = 7;
3970 bool has_status_str() const;
3971 void clear_status_str() ;
3972 const ::std::string& status_str() const;
3973 template <typename Arg_ = const ::std::string&, typename... Args_>
3974 void set_status_str(Arg_&& arg, Args_... args);
3975 ::std::string* PROTOBUF_NONNULL mutable_status_str();
3976 [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_status_str();
3977 void set_allocated_status_str(::std::string* PROTOBUF_NULLABLE value);
3978
3979 private:
3980 const ::std::string& _internal_status_str() const;
3981 PROTOBUF_ALWAYS_INLINE void _internal_set_status_str(const ::std::string& value);
3982 ::std::string* PROTOBUF_NONNULL _internal_mutable_status_str();
3983
3984 public:
3985 // optional bytes solver_specific_info = 11;
3986 bool has_solver_specific_info() const;
3988 const ::std::string& solver_specific_info() const;
3989 template <typename Arg_ = const ::std::string&, typename... Args_>
3990 void set_solver_specific_info(Arg_&& arg, Args_... args);
3991 ::std::string* PROTOBUF_NONNULL mutable_solver_specific_info();
3992 [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_solver_specific_info();
3993 void set_allocated_solver_specific_info(::std::string* PROTOBUF_NULLABLE value);
3994
3995 private:
3996 const ::std::string& _internal_solver_specific_info() const;
3997 PROTOBUF_ALWAYS_INLINE void _internal_set_solver_specific_info(const ::std::string& value);
3998 ::std::string* PROTOBUF_NONNULL _internal_mutable_solver_specific_info();
3999
4000 public:
4001 // optional .operations_research.MPSolveInfo solve_info = 10;
4002 bool has_solve_info() const;
4003 void clear_solve_info() ;
4004 const ::operations_research::MPSolveInfo& solve_info() const;
4005 [[nodiscard]] ::operations_research::MPSolveInfo* PROTOBUF_NULLABLE release_solve_info();
4007 void set_allocated_solve_info(::operations_research::MPSolveInfo* PROTOBUF_NULLABLE value);
4010
4011 private:
4012 const ::operations_research::MPSolveInfo& _internal_solve_info() const;
4013 ::operations_research::MPSolveInfo* PROTOBUF_NONNULL _internal_mutable_solve_info();
4014
4015 public:
4016 // optional double objective_value = 2;
4017 bool has_objective_value() const;
4018 void clear_objective_value() ;
4019 double objective_value() const;
4020 void set_objective_value(double value);
4021
4022 private:
4023 double _internal_objective_value() const;
4024 void _internal_set_objective_value(double value);
4025
4026 public:
4027 // optional double best_objective_bound = 5;
4028 bool has_best_objective_bound() const;
4030 double best_objective_bound() const;
4031 void set_best_objective_bound(double value);
4032
4033 private:
4034 double _internal_best_objective_bound() const;
4035 void _internal_set_best_objective_bound(double value);
4036
4037 public:
4038 // optional .operations_research.MPSolverResponseStatus status = 1 [default = MPSOLVER_UNKNOWN_STATUS];
4039 bool has_status() const;
4040 void clear_status() ;
4043
4044 private:
4045 ::operations_research::MPSolverResponseStatus _internal_status() const;
4046 void _internal_set_status(::operations_research::MPSolverResponseStatus value);
4047
4048 public:
4049 // @@protoc_insertion_point(class_scope:operations_research.MPSolutionResponse)
4050 private:
4051 class _Internal;
4052 friend class ::google::protobuf::internal::TcParser;
4053 static const ::google::protobuf::internal::TcParseTable<4, 10,
4054 3, 65,
4055 2>
4056 _table_;
4057
4058 friend class ::google::protobuf::MessageLite;
4059 friend class ::google::protobuf::Arena;
4060 template <typename T>
4061 friend class ::google::protobuf::Arena::InternalHelper;
4062 using InternalArenaConstructable_ = void;
4063 using DestructorSkippable_ = void;
4064 struct Impl_ {
4065 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
4066 inline explicit Impl_(
4067 ::google::protobuf::internal::InternalVisibility visibility,
4068 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
4069 inline explicit Impl_(
4070 ::google::protobuf::internal::InternalVisibility visibility,
4071 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
4072 const MPSolutionResponse& from_msg);
4073 ::google::protobuf::internal::HasBits<1> _has_bits_;
4074 ::google::protobuf::internal::CachedSize _cached_size_;
4075 ::google::protobuf::RepeatedField<double> variable_value_;
4076 ::google::protobuf::RepeatedField<double> dual_value_;
4077 ::google::protobuf::RepeatedField<double> reduced_cost_;
4078 ::google::protobuf::RepeatedPtrField< ::operations_research::MPSolution > additional_solutions_;
4079 ::google::protobuf::internal::ArenaStringPtr status_str_;
4080 ::google::protobuf::internal::ArenaStringPtr solver_specific_info_;
4081 ::operations_research::MPSolveInfo* PROTOBUF_NULLABLE solve_info_;
4082 double objective_value_;
4083 double best_objective_bound_;
4084 int status_;
4085 PROTOBUF_TSAN_DECLARE_MEMBER
4086 };
4087 union { Impl_ _impl_; };
4088 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
4089};
4090
4091OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPSolutionResponse_class_data_;
4092// -------------------------------------------------------------------
4093
4095 : public ::google::protobuf::internal::MapEntry<::int32_t, ::google::protobuf::Message,
4096 ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
4097 ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> {
4098 public:
4099 using SuperType =
4100 ::google::protobuf::internal::MapEntry<::int32_t, ::google::protobuf::Message,
4101 ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
4102 ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>;
4104 template <typename = void>
4105 explicit PROTOBUF_CONSTEXPR MPModelDeltaProto_VariableOverridesEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized);
4106 explicit MPModelDeltaProto_VariableOverridesEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
4107 static constexpr const void* PROTOBUF_NONNULL internal_default_instance() {
4109 }
4110
4112 static constexpr auto InternalGenerateClassData_();
4113
4114 private:
4115 friend class ::google::protobuf::MessageLite;
4116 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
4117
4118 friend class ::google::protobuf::internal::TcParser;
4119 static const ::google::protobuf::internal::TcParseTable<1, 2,
4120 1, 0,
4121 2>
4122 _table_;
4123
4124 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
4125 static void* PROTOBUF_NONNULL PlacementNew_(
4126 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
4127 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
4128 static constexpr auto InternalNewImpl_();
4129};
4130OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPModelDeltaProto_VariableOverridesEntry_DoNotUse_class_data_;
4131// -------------------------------------------------------------------
4134 : public ::google::protobuf::internal::MapEntry<::int32_t, ::google::protobuf::Message,
4135 ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
4136 ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> {
4137 public:
4138 using SuperType =
4139 ::google::protobuf::internal::MapEntry<::int32_t, ::google::protobuf::Message,
4140 ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
4141 ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>;
4143 template <typename = void>
4144 explicit PROTOBUF_CONSTEXPR MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized);
4145 explicit MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
4146 static constexpr const void* PROTOBUF_NONNULL internal_default_instance() {
4148 }
4149
4150
4151 static constexpr auto InternalGenerateClassData_();
4152
4153 private:
4154 friend class ::google::protobuf::MessageLite;
4155 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
4157 friend class ::google::protobuf::internal::TcParser;
4158 static const ::google::protobuf::internal::TcParseTable<1, 2,
4159 1, 0,
4160 2>
4161 _table_;
4163 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
4164 static void* PROTOBUF_NONNULL PlacementNew_(
4165 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
4166 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
4167 static constexpr auto InternalNewImpl_();
4168};
4169OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse_class_data_;
4170// -------------------------------------------------------------------
4171
4172class OR_PROTO_DLL MPIndicatorConstraint final : public ::google::protobuf::Message
4173/* @@protoc_insertion_point(class_definition:operations_research.MPIndicatorConstraint) */ {
4174 public:
4176 ~MPIndicatorConstraint() PROTOBUF_FINAL;
4177
4178#if defined(PROTOBUF_CUSTOM_VTABLE)
4179 void operator delete(MPIndicatorConstraint* PROTOBUF_NONNULL msg, std::destroying_delete_t) {
4180 SharedDtor(*msg);
4181 ::google::protobuf::internal::SizedDelete(msg, sizeof(MPIndicatorConstraint));
4182 }
4183#endif
4184
4185 template <typename = void>
4186 explicit PROTOBUF_CONSTEXPR MPIndicatorConstraint(::google::protobuf::internal::ConstantInitialized);
4187
4188 inline MPIndicatorConstraint(const MPIndicatorConstraint& from) : MPIndicatorConstraint(nullptr, from) {}
4189 inline MPIndicatorConstraint(MPIndicatorConstraint&& from) noexcept
4190 : MPIndicatorConstraint(nullptr, ::std::move(from)) {}
4192 CopyFrom(from);
4193 return *this;
4195 inline MPIndicatorConstraint& operator=(MPIndicatorConstraint&& from) noexcept {
4196 if (this == &from) return *this;
4197 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
4198 InternalSwap(&from);
4199 } else {
4200 CopyFrom(from);
4201 }
4202 return *this;
4203 }
4204
4205 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
4206 ABSL_ATTRIBUTE_LIFETIME_BOUND {
4207 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
4209 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
4210 ABSL_ATTRIBUTE_LIFETIME_BOUND {
4211 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
4212 }
4213
4214 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
4215 return GetDescriptor();
4216 }
4217 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
4218 return default_instance().GetMetadata().descriptor;
4219 }
4220 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
4221 return default_instance().GetMetadata().reflection;
4222 }
4223 static const MPIndicatorConstraint& default_instance() {
4224 return *reinterpret_cast<const MPIndicatorConstraint*>(
4226 }
4227 static constexpr int kIndexInFileMessages = 3;
4229 inline void Swap(MPIndicatorConstraint* PROTOBUF_NONNULL other) {
4230 if (other == this) return;
4231 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
4232 InternalSwap(other);
4233 } else {
4234 ::google::protobuf::internal::GenericSwap(this, other);
4235 }
4237 void UnsafeArenaSwap(MPIndicatorConstraint* PROTOBUF_NONNULL other) {
4238 if (other == this) return;
4239 ABSL_DCHECK(GetArena() == other->GetArena());
4240 InternalSwap(other);
4241 }
4243 // implements Message ----------------------------------------------
4244
4245 MPIndicatorConstraint* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
4246 return ::google::protobuf::Message::DefaultConstruct<MPIndicatorConstraint>(arena);
4248 using ::google::protobuf::Message::CopyFrom;
4249 void CopyFrom(const MPIndicatorConstraint& from);
4250 using ::google::protobuf::Message::MergeFrom;
4251 void MergeFrom(const MPIndicatorConstraint& from) { MPIndicatorConstraint::MergeImpl(*this, from); }
4252
4253 private:
4254 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
4255 const ::google::protobuf::MessageLite& from_msg);
4257 public:
4258 bool IsInitialized() const {
4259 return true;
4260 }
4261 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
4262 #if defined(PROTOBUF_CUSTOM_VTABLE)
4263 private:
4264 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
4265 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
4266 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
4267 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
4268
4269 public:
4270 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
4271 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
4272 ::uint8_t* PROTOBUF_NONNULL target,
4273 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
4274 return _InternalSerialize(*this, target, stream);
4275 }
4276 #else // PROTOBUF_CUSTOM_VTABLE
4277 ::size_t ByteSizeLong() const final;
4278 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
4279 ::uint8_t* PROTOBUF_NONNULL target,
4280 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
4281 #endif // PROTOBUF_CUSTOM_VTABLE
4282 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
4283
4284 private:
4285 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
4286 static void SharedDtor(MessageLite& self);
4287 void InternalSwap(MPIndicatorConstraint* PROTOBUF_NONNULL other);
4288 private:
4289 template <typename T>
4290 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
4291 static ::absl::string_view FullMessageName() { return "operations_research.MPIndicatorConstraint"; }
4292
4293 protected:
4294 explicit MPIndicatorConstraint(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
4295 MPIndicatorConstraint(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MPIndicatorConstraint& from);
4296 MPIndicatorConstraint(
4297 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, MPIndicatorConstraint&& from) noexcept
4298 : MPIndicatorConstraint(arena) {
4299 *this = ::std::move(from);
4300 }
4301 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
4302 static void* PROTOBUF_NONNULL PlacementNew_(
4303 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
4304 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
4305 static constexpr auto InternalNewImpl_();
4306
4307 public:
4308 static constexpr auto InternalGenerateClassData_();
4309
4310 ::google::protobuf::Metadata GetMetadata() const;
4311 // nested types ----------------------------------------------------
4312
4313 // accessors -------------------------------------------------------
4314 enum : int {
4318 };
4319 // optional .operations_research.MPConstraintProto constraint = 3;
4320 bool has_constraint() const;
4321 void clear_constraint() ;
4322 const ::operations_research::MPConstraintProto& constraint() const;
4323 [[nodiscard]] ::operations_research::MPConstraintProto* PROTOBUF_NULLABLE release_constraint();
4324 ::operations_research::MPConstraintProto* PROTOBUF_NONNULL mutable_constraint();
4325 void set_allocated_constraint(::operations_research::MPConstraintProto* PROTOBUF_NULLABLE value);
4326 void unsafe_arena_set_allocated_constraint(::operations_research::MPConstraintProto* PROTOBUF_NULLABLE value);
4327 ::operations_research::MPConstraintProto* PROTOBUF_NULLABLE unsafe_arena_release_constraint();
4328
4329 private:
4330 const ::operations_research::MPConstraintProto& _internal_constraint() const;
4331 ::operations_research::MPConstraintProto* PROTOBUF_NONNULL _internal_mutable_constraint();
4332
4333 public:
4334 // optional int32 var_index = 1;
4335 bool has_var_index() const;
4337 ::int32_t var_index() const;
4338 void set_var_index(::int32_t value);
4339
4340 private:
4341 ::int32_t _internal_var_index() const;
4342 void _internal_set_var_index(::int32_t value);
4343
4344 public:
4345 // optional int32 var_value = 2;
4346 bool has_var_value() const;
4347 void clear_var_value() ;
4348 ::int32_t var_value() const;
4349 void set_var_value(::int32_t value);
4350
4351 private:
4352 ::int32_t _internal_var_value() const;
4353 void _internal_set_var_value(::int32_t value);
4354
4355 public:
4356 // @@protoc_insertion_point(class_scope:operations_research.MPIndicatorConstraint)
4357 private:
4358 class _Internal;
4359 friend class ::google::protobuf::internal::TcParser;
4360 static const ::google::protobuf::internal::TcParseTable<2, 3,
4361 1, 0,
4362 2>
4363 _table_;
4364
4365 friend class ::google::protobuf::MessageLite;
4366 friend class ::google::protobuf::Arena;
4367 template <typename T>
4368 friend class ::google::protobuf::Arena::InternalHelper;
4369 using InternalArenaConstructable_ = void;
4370 using DestructorSkippable_ = void;
4371 struct Impl_ {
4372 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
4373 inline explicit Impl_(
4374 ::google::protobuf::internal::InternalVisibility visibility,
4375 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
4376 inline explicit Impl_(
4377 ::google::protobuf::internal::InternalVisibility visibility,
4378 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
4379 const MPIndicatorConstraint& from_msg);
4380 ::google::protobuf::internal::HasBits<1> _has_bits_;
4381 ::google::protobuf::internal::CachedSize _cached_size_;
4382 ::operations_research::MPConstraintProto* PROTOBUF_NULLABLE constraint_;
4383 ::int32_t var_index_;
4384 ::int32_t var_value_;
4385 PROTOBUF_TSAN_DECLARE_MEMBER
4386 };
4387 union { Impl_ _impl_; };
4388 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
4389};
4390
4391OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPIndicatorConstraint_class_data_;
4392// -------------------------------------------------------------------
4393
4394class OR_PROTO_DLL MPModelDeltaProto final : public ::google::protobuf::Message
4395/* @@protoc_insertion_point(class_definition:operations_research.MPModelDeltaProto) */ {
4396 public:
4397 inline MPModelDeltaProto() : MPModelDeltaProto(nullptr) {}
4398 ~MPModelDeltaProto() PROTOBUF_FINAL;
4399
4400#if defined(PROTOBUF_CUSTOM_VTABLE)
4401 void operator delete(MPModelDeltaProto* PROTOBUF_NONNULL msg, std::destroying_delete_t) {
4402 SharedDtor(*msg);
4403 ::google::protobuf::internal::SizedDelete(msg, sizeof(MPModelDeltaProto));
4404 }
4405#endif
4407 template <typename = void>
4408 explicit PROTOBUF_CONSTEXPR MPModelDeltaProto(::google::protobuf::internal::ConstantInitialized);
4409
4410 inline MPModelDeltaProto(const MPModelDeltaProto& from) : MPModelDeltaProto(nullptr, from) {}
4411 inline MPModelDeltaProto(MPModelDeltaProto&& from) noexcept
4412 : MPModelDeltaProto(nullptr, ::std::move(from)) {}
4413 inline MPModelDeltaProto& operator=(const MPModelDeltaProto& from) {
4415 return *this;
4416 }
4418 if (this == &from) return *this;
4419 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
4420 InternalSwap(&from);
4421 } else {
4422 CopyFrom(from);
4423 }
4424 return *this;
4425 }
4426
4427 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
4428 ABSL_ATTRIBUTE_LIFETIME_BOUND {
4429 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
4431 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
4432 ABSL_ATTRIBUTE_LIFETIME_BOUND {
4433 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
4434 }
4435
4436 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
4438 }
4439 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
4440 return default_instance().GetMetadata().descriptor;
4441 }
4442 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
4443 return default_instance().GetMetadata().reflection;
4444 }
4445 static const MPModelDeltaProto& default_instance() {
4446 return *reinterpret_cast<const MPModelDeltaProto*>(
4448 }
4449 static constexpr int kIndexInFileMessages = 17;
4450 friend void swap(MPModelDeltaProto& a, MPModelDeltaProto& b) { a.Swap(&b); }
4451 inline void Swap(MPModelDeltaProto* PROTOBUF_NONNULL other) {
4452 if (other == this) return;
4453 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
4454 InternalSwap(other);
4455 } else {
4456 ::google::protobuf::internal::GenericSwap(this, other);
4457 }
4458 }
4459 void UnsafeArenaSwap(MPModelDeltaProto* PROTOBUF_NONNULL other) {
4460 if (other == this) return;
4461 ABSL_DCHECK(GetArena() == other->GetArena());
4462 InternalSwap(other);
4463 }
4464
4465 // implements Message ----------------------------------------------
4466
4467 MPModelDeltaProto* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
4468 return ::google::protobuf::Message::DefaultConstruct<MPModelDeltaProto>(arena);
4470 using ::google::protobuf::Message::CopyFrom;
4471 void CopyFrom(const MPModelDeltaProto& from);
4472 using ::google::protobuf::Message::MergeFrom;
4473 void MergeFrom(const MPModelDeltaProto& from) { MPModelDeltaProto::MergeImpl(*this, from); }
4474
4475 private:
4476 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
4477 const ::google::protobuf::MessageLite& from_msg);
4478
4479 public:
4480 bool IsInitialized() const {
4481 return true;
4482 }
4483 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
4484 #if defined(PROTOBUF_CUSTOM_VTABLE)
4485 private:
4486 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
4487 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
4488 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
4489 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
4490
4491 public:
4492 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
4493 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
4494 ::uint8_t* PROTOBUF_NONNULL target,
4495 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
4496 return _InternalSerialize(*this, target, stream);
4497 }
4498 #else // PROTOBUF_CUSTOM_VTABLE
4499 ::size_t ByteSizeLong() const final;
4500 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
4501 ::uint8_t* PROTOBUF_NONNULL target,
4502 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
4503 #endif // PROTOBUF_CUSTOM_VTABLE
4504 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
4505
4506 private:
4507 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
4508 static void SharedDtor(MessageLite& self);
4509 void InternalSwap(MPModelDeltaProto* PROTOBUF_NONNULL other);
4510 private:
4511 template <typename T>
4512 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
4513 static ::absl::string_view FullMessageName() { return "operations_research.MPModelDeltaProto"; }
4514
4515 protected:
4516 explicit MPModelDeltaProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
4517 MPModelDeltaProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MPModelDeltaProto& from);
4518 MPModelDeltaProto(
4519 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, MPModelDeltaProto&& from) noexcept
4520 : MPModelDeltaProto(arena) {
4521 *this = ::std::move(from);
4522 }
4523 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
4524 static void* PROTOBUF_NONNULL PlacementNew_(
4525 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
4526 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
4527 static constexpr auto InternalNewImpl_();
4528
4529 public:
4530 static constexpr auto InternalGenerateClassData_();
4531
4532 ::google::protobuf::Metadata GetMetadata() const;
4533 // nested types ----------------------------------------------------
4534
4535 // accessors -------------------------------------------------------
4536 enum : int {
4540 };
4541 // map<int32, .operations_research.MPVariableProto> variable_overrides = 2;
4542 int variable_overrides_size() const;
4543 private:
4544 int _internal_variable_overrides_size() const;
4545
4546 public:
4547 void clear_variable_overrides() ;
4548 const ::google::protobuf::Map<::int32_t, ::operations_research::MPVariableProto>& variable_overrides() const;
4549 ::google::protobuf::Map<::int32_t, ::operations_research::MPVariableProto>* PROTOBUF_NONNULL mutable_variable_overrides();
4550
4551 private:
4552 const ::google::protobuf::Map<::int32_t, ::operations_research::MPVariableProto>& _internal_variable_overrides() const;
4553 ::google::protobuf::Map<::int32_t, ::operations_research::MPVariableProto>* PROTOBUF_NONNULL _internal_mutable_variable_overrides();
4554
4555 public:
4556 // map<int32, .operations_research.MPConstraintProto> constraint_overrides = 3;
4558 private:
4559 int _internal_constraint_overrides_size() const;
4560
4561 public:
4563 const ::google::protobuf::Map<::int32_t, ::operations_research::MPConstraintProto>& constraint_overrides() const;
4564 ::google::protobuf::Map<::int32_t, ::operations_research::MPConstraintProto>* PROTOBUF_NONNULL mutable_constraint_overrides();
4565
4566 private:
4567 const ::google::protobuf::Map<::int32_t, ::operations_research::MPConstraintProto>& _internal_constraint_overrides() const;
4568 ::google::protobuf::Map<::int32_t, ::operations_research::MPConstraintProto>* PROTOBUF_NONNULL _internal_mutable_constraint_overrides();
4569
4570 public:
4571 // optional string baseline_model_file_path = 1;
4572 bool has_baseline_model_file_path() const;
4574 const ::std::string& baseline_model_file_path() const;
4575 template <typename Arg_ = const ::std::string&, typename... Args_>
4576 void set_baseline_model_file_path(Arg_&& arg, Args_... args);
4577 ::std::string* PROTOBUF_NONNULL mutable_baseline_model_file_path();
4578 [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_baseline_model_file_path();
4579 void set_allocated_baseline_model_file_path(::std::string* PROTOBUF_NULLABLE value);
4580
4581 private:
4582 const ::std::string& _internal_baseline_model_file_path() const;
4583 PROTOBUF_ALWAYS_INLINE void _internal_set_baseline_model_file_path(const ::std::string& value);
4584 ::std::string* PROTOBUF_NONNULL _internal_mutable_baseline_model_file_path();
4585
4586 public:
4587 // @@protoc_insertion_point(class_scope:operations_research.MPModelDeltaProto)
4588 private:
4589 class _Internal;
4590 friend class ::google::protobuf::internal::TcParser;
4591 static const ::google::protobuf::internal::TcParseTable<0, 3,
4592 4, 70,
4593 2>
4594 _table_;
4595
4596 friend class ::google::protobuf::MessageLite;
4597 friend class ::google::protobuf::Arena;
4598 template <typename T>
4599 friend class ::google::protobuf::Arena::InternalHelper;
4600 using InternalArenaConstructable_ = void;
4601 using DestructorSkippable_ = void;
4602 struct Impl_ {
4603 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
4604 inline explicit Impl_(
4605 ::google::protobuf::internal::InternalVisibility visibility,
4606 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
4607 inline explicit Impl_(
4608 ::google::protobuf::internal::InternalVisibility visibility,
4609 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
4610 const MPModelDeltaProto& from_msg);
4611 ::google::protobuf::internal::HasBits<1> _has_bits_;
4612 ::google::protobuf::internal::CachedSize _cached_size_;
4613 ::google::protobuf::internal::MapField<MPModelDeltaProto_VariableOverridesEntry_DoNotUse, ::int32_t, ::operations_research::MPVariableProto,
4614 ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
4615 ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>
4616 variable_overrides_;
4618 ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
4619 ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>
4620 constraint_overrides_;
4621 ::google::protobuf::internal::ArenaStringPtr baseline_model_file_path_;
4622 PROTOBUF_TSAN_DECLARE_MEMBER
4623 };
4624 union { Impl_ _impl_; };
4625 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
4626};
4627
4628OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPModelDeltaProto_class_data_;
4629// -------------------------------------------------------------------
4630
4631class OR_PROTO_DLL MPGeneralConstraintProto final : public ::google::protobuf::Message
4632/* @@protoc_insertion_point(class_definition:operations_research.MPGeneralConstraintProto) */ {
4633 public:
4634 inline MPGeneralConstraintProto() : MPGeneralConstraintProto(nullptr) {}
4635 ~MPGeneralConstraintProto() PROTOBUF_FINAL;
4636
4637#if defined(PROTOBUF_CUSTOM_VTABLE)
4638 void operator delete(MPGeneralConstraintProto* PROTOBUF_NONNULL msg, std::destroying_delete_t) {
4639 SharedDtor(*msg);
4640 ::google::protobuf::internal::SizedDelete(msg, sizeof(MPGeneralConstraintProto));
4641 }
4642#endif
4643
4644 template <typename = void>
4645 explicit PROTOBUF_CONSTEXPR MPGeneralConstraintProto(::google::protobuf::internal::ConstantInitialized);
4646
4647 inline MPGeneralConstraintProto(const MPGeneralConstraintProto& from) : MPGeneralConstraintProto(nullptr, from) {}
4649 : MPGeneralConstraintProto(nullptr, ::std::move(from)) {}
4650 inline MPGeneralConstraintProto& operator=(const MPGeneralConstraintProto& from) {
4651 CopyFrom(from);
4652 return *this;
4653 }
4654 inline MPGeneralConstraintProto& operator=(MPGeneralConstraintProto&& from) noexcept {
4655 if (this == &from) return *this;
4656 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
4657 InternalSwap(&from);
4658 } else {
4659 CopyFrom(from);
4660 }
4661 return *this;
4662 }
4663
4664 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
4665 ABSL_ATTRIBUTE_LIFETIME_BOUND {
4666 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
4667 }
4668 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
4669 ABSL_ATTRIBUTE_LIFETIME_BOUND {
4670 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
4672
4673 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
4674 return GetDescriptor();
4676 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
4677 return default_instance().GetMetadata().descriptor;
4678 }
4679 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
4680 return default_instance().GetMetadata().reflection;
4681 }
4682 static const MPGeneralConstraintProto& default_instance() {
4683 return *reinterpret_cast<const MPGeneralConstraintProto*>(
4686 enum GeneralConstraintCase {
4687 kIndicatorConstraint = 2,
4688 kSosConstraint = 3,
4693 kMinConstraint = 8,
4697 static constexpr int kIndexInFileMessages = 2;
4698 friend void swap(MPGeneralConstraintProto& a, MPGeneralConstraintProto& b) { a.Swap(&b); }
4699 inline void Swap(MPGeneralConstraintProto* PROTOBUF_NONNULL other) {
4700 if (other == this) return;
4701 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
4702 InternalSwap(other);
4703 } else {
4704 ::google::protobuf::internal::GenericSwap(this, other);
4705 }
4706 }
4707 void UnsafeArenaSwap(MPGeneralConstraintProto* PROTOBUF_NONNULL other) {
4708 if (other == this) return;
4709 ABSL_DCHECK(GetArena() == other->GetArena());
4710 InternalSwap(other);
4713 // implements Message ----------------------------------------------
4715 MPGeneralConstraintProto* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
4716 return ::google::protobuf::Message::DefaultConstruct<MPGeneralConstraintProto>(arena);
4717 }
4718 using ::google::protobuf::Message::CopyFrom;
4720 using ::google::protobuf::Message::MergeFrom;
4721 void MergeFrom(const MPGeneralConstraintProto& from) { MPGeneralConstraintProto::MergeImpl(*this, from); }
4722
4723 private:
4724 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
4725 const ::google::protobuf::MessageLite& from_msg);
4726
4727 public:
4728 bool IsInitialized() const {
4729 return true;
4730 }
4731 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
4732 #if defined(PROTOBUF_CUSTOM_VTABLE)
4733 private:
4734 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
4735 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
4736 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
4737 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
4738
4739 public:
4740 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
4741 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
4742 ::uint8_t* PROTOBUF_NONNULL target,
4743 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
4744 return _InternalSerialize(*this, target, stream);
4745 }
4746 #else // PROTOBUF_CUSTOM_VTABLE
4747 ::size_t ByteSizeLong() const final;
4748 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
4749 ::uint8_t* PROTOBUF_NONNULL target,
4750 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
4751 #endif // PROTOBUF_CUSTOM_VTABLE
4752 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
4753
4754 private:
4755 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
4756 static void SharedDtor(MessageLite& self);
4757 void InternalSwap(MPGeneralConstraintProto* PROTOBUF_NONNULL other);
4758 private:
4759 template <typename T>
4760 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
4761 static ::absl::string_view FullMessageName() { return "operations_research.MPGeneralConstraintProto"; }
4762
4763 protected:
4764 explicit MPGeneralConstraintProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
4765 MPGeneralConstraintProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MPGeneralConstraintProto& from);
4766 MPGeneralConstraintProto(
4767 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, MPGeneralConstraintProto&& from) noexcept
4768 : MPGeneralConstraintProto(arena) {
4769 *this = ::std::move(from);
4770 }
4771 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
4772 static void* PROTOBUF_NONNULL PlacementNew_(
4773 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
4774 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
4775 static constexpr auto InternalNewImpl_();
4776
4777 public:
4778 static constexpr auto InternalGenerateClassData_();
4779
4780 ::google::protobuf::Metadata GetMetadata() const;
4781 // nested types ----------------------------------------------------
4782
4783 // accessors -------------------------------------------------------
4784 enum : int {
4785 kNameFieldNumber = 1,
4794 };
4795 // optional string name = 1 [default = ""];
4796 bool has_name() const;
4797 void clear_name() ;
4798 const ::std::string& name() const;
4799 template <typename Arg_ = const ::std::string&, typename... Args_>
4800 void set_name(Arg_&& arg, Args_... args);
4801 ::std::string* PROTOBUF_NONNULL mutable_name();
4802 [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_name();
4803 void set_allocated_name(::std::string* PROTOBUF_NULLABLE value);
4804
4805 private:
4806 const ::std::string& _internal_name() const;
4807 PROTOBUF_ALWAYS_INLINE void _internal_set_name(const ::std::string& value);
4808 ::std::string* PROTOBUF_NONNULL _internal_mutable_name();
4810 public:
4811 // .operations_research.MPIndicatorConstraint indicator_constraint = 2;
4813 private:
4814 bool _internal_has_indicator_constraint() const;
4815
4816 public:
4818 const ::operations_research::MPIndicatorConstraint& indicator_constraint() const;
4824
4825 private:
4826 const ::operations_research::MPIndicatorConstraint& _internal_indicator_constraint() const;
4827 ::operations_research::MPIndicatorConstraint* PROTOBUF_NONNULL _internal_mutable_indicator_constraint();
4828
4829 public:
4830 // .operations_research.MPSosConstraint sos_constraint = 3;
4831 bool has_sos_constraint() const;
4832 private:
4833 bool _internal_has_sos_constraint() const;
4834
4835 public:
4836 void clear_sos_constraint() ;
4837 const ::operations_research::MPSosConstraint& sos_constraint() const;
4838 [[nodiscard]] ::operations_research::MPSosConstraint* PROTOBUF_NULLABLE release_sos_constraint();
4843
4844 private:
4845 const ::operations_research::MPSosConstraint& _internal_sos_constraint() const;
4846 ::operations_research::MPSosConstraint* PROTOBUF_NONNULL _internal_mutable_sos_constraint();
4847
4848 public:
4849 // .operations_research.MPQuadraticConstraint quadratic_constraint = 4;
4850 bool has_quadratic_constraint() const;
4851 private:
4852 bool _internal_has_quadratic_constraint() const;
4853
4854 public:
4856 const ::operations_research::MPQuadraticConstraint& quadratic_constraint() const;
4862
4863 private:
4864 const ::operations_research::MPQuadraticConstraint& _internal_quadratic_constraint() const;
4865 ::operations_research::MPQuadraticConstraint* PROTOBUF_NONNULL _internal_mutable_quadratic_constraint();
4866
4867 public:
4868 // .operations_research.MPAbsConstraint abs_constraint = 5;
4869 bool has_abs_constraint() const;
4870 private:
4871 bool _internal_has_abs_constraint() const;
4872
4873 public:
4874 void clear_abs_constraint() ;
4875 const ::operations_research::MPAbsConstraint& abs_constraint() const;
4876 [[nodiscard]] ::operations_research::MPAbsConstraint* PROTOBUF_NULLABLE release_abs_constraint();
4881
4882 private:
4883 const ::operations_research::MPAbsConstraint& _internal_abs_constraint() const;
4884 ::operations_research::MPAbsConstraint* PROTOBUF_NONNULL _internal_mutable_abs_constraint();
4885
4886 public:
4887 // .operations_research.MPArrayConstraint and_constraint = 6;
4888 bool has_and_constraint() const;
4889 private:
4890 bool _internal_has_and_constraint() const;
4891
4892 public:
4893 void clear_and_constraint() ;
4894 const ::operations_research::MPArrayConstraint& and_constraint() const;
4895 [[nodiscard]] ::operations_research::MPArrayConstraint* PROTOBUF_NULLABLE release_and_constraint();
4900
4901 private:
4902 const ::operations_research::MPArrayConstraint& _internal_and_constraint() const;
4903 ::operations_research::MPArrayConstraint* PROTOBUF_NONNULL _internal_mutable_and_constraint();
4904
4905 public:
4906 // .operations_research.MPArrayConstraint or_constraint = 7;
4907 bool has_or_constraint() const;
4908 private:
4909 bool _internal_has_or_constraint() const;
4910
4911 public:
4912 void clear_or_constraint() ;
4913 const ::operations_research::MPArrayConstraint& or_constraint() const;
4914 [[nodiscard]] ::operations_research::MPArrayConstraint* PROTOBUF_NULLABLE release_or_constraint();
4919
4920 private:
4921 const ::operations_research::MPArrayConstraint& _internal_or_constraint() const;
4922 ::operations_research::MPArrayConstraint* PROTOBUF_NONNULL _internal_mutable_or_constraint();
4923
4924 public:
4925 // .operations_research.MPArrayWithConstantConstraint min_constraint = 8;
4926 bool has_min_constraint() const;
4927 private:
4928 bool _internal_has_min_constraint() const;
4929
4930 public:
4931 void clear_min_constraint() ;
4932 const ::operations_research::MPArrayWithConstantConstraint& min_constraint() const;
4938
4939 private:
4940 const ::operations_research::MPArrayWithConstantConstraint& _internal_min_constraint() const;
4941 ::operations_research::MPArrayWithConstantConstraint* PROTOBUF_NONNULL _internal_mutable_min_constraint();
4942
4943 public:
4944 // .operations_research.MPArrayWithConstantConstraint max_constraint = 9;
4945 bool has_max_constraint() const;
4946 private:
4947 bool _internal_has_max_constraint() const;
4948
4949 public:
4950 void clear_max_constraint() ;
4951 const ::operations_research::MPArrayWithConstantConstraint& max_constraint() const;
4957
4958 private:
4959 const ::operations_research::MPArrayWithConstantConstraint& _internal_max_constraint() const;
4960 ::operations_research::MPArrayWithConstantConstraint* PROTOBUF_NONNULL _internal_mutable_max_constraint();
4961
4962 public:
4965 // @@protoc_insertion_point(class_scope:operations_research.MPGeneralConstraintProto)
4966 private:
4967 class _Internal;
4968 void set_has_indicator_constraint();
4969 void set_has_sos_constraint();
4970 void set_has_quadratic_constraint();
4971 void set_has_abs_constraint();
4972 void set_has_and_constraint();
4973 void set_has_or_constraint();
4974 void set_has_min_constraint();
4975 void set_has_max_constraint();
4976 inline bool has_general_constraint() const;
4977 inline void clear_has_general_constraint();
4978 friend class ::google::protobuf::internal::TcParser;
4979 static const ::google::protobuf::internal::TcParseTable<0, 9,
4980 8, 65,
4981 2>
4982 _table_;
4983
4984 friend class ::google::protobuf::MessageLite;
4985 friend class ::google::protobuf::Arena;
4986 template <typename T>
4987 friend class ::google::protobuf::Arena::InternalHelper;
4988 using InternalArenaConstructable_ = void;
4989 using DestructorSkippable_ = void;
4990 struct Impl_ {
4991 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
4992 inline explicit Impl_(
4993 ::google::protobuf::internal::InternalVisibility visibility,
4994 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
4995 inline explicit Impl_(
4996 ::google::protobuf::internal::InternalVisibility visibility,
4997 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
4998 const MPGeneralConstraintProto& from_msg);
4999 ::google::protobuf::internal::HasBits<1> _has_bits_;
5000 ::google::protobuf::internal::CachedSize _cached_size_;
5001 ::google::protobuf::internal::ArenaStringPtr name_;
5002 union GeneralConstraintUnion {
5003 constexpr GeneralConstraintUnion() : _constinit_{} {}
5004 ::google::protobuf::internal::ConstantInitialized _constinit_;
5005 ::google::protobuf::Message* PROTOBUF_NULLABLE indicator_constraint_;
5006 ::google::protobuf::Message* PROTOBUF_NULLABLE sos_constraint_;
5007 ::google::protobuf::Message* PROTOBUF_NULLABLE quadratic_constraint_;
5008 ::google::protobuf::Message* PROTOBUF_NULLABLE abs_constraint_;
5009 ::google::protobuf::Message* PROTOBUF_NULLABLE and_constraint_;
5010 ::google::protobuf::Message* PROTOBUF_NULLABLE or_constraint_;
5011 ::google::protobuf::Message* PROTOBUF_NULLABLE min_constraint_;
5012 ::google::protobuf::Message* PROTOBUF_NULLABLE max_constraint_;
5013 } general_constraint_;
5014 ::uint32_t _oneof_case_[1];
5015 PROTOBUF_TSAN_DECLARE_MEMBER
5016 };
5017 union { Impl_ _impl_; };
5018 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
5019};
5020
5021OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPGeneralConstraintProto_class_data_;
5022// -------------------------------------------------------------------
5024class OR_PROTO_DLL MPModelProto final : public ::google::protobuf::Message
5025/* @@protoc_insertion_point(class_definition:operations_research.MPModelProto) */ {
5026 public:
5027 inline MPModelProto() : MPModelProto(nullptr) {}
5028 ~MPModelProto() PROTOBUF_FINAL;
5030#if defined(PROTOBUF_CUSTOM_VTABLE)
5031 void operator delete(MPModelProto* PROTOBUF_NONNULL msg, std::destroying_delete_t) {
5032 SharedDtor(*msg);
5033 ::google::protobuf::internal::SizedDelete(msg, sizeof(MPModelProto));
5034 }
5035#endif
5036
5037 template <typename = void>
5038 explicit PROTOBUF_CONSTEXPR MPModelProto(::google::protobuf::internal::ConstantInitialized);
5040 inline MPModelProto(const MPModelProto& from) : MPModelProto(nullptr, from) {}
5041 inline MPModelProto(MPModelProto&& from) noexcept
5042 : MPModelProto(nullptr, ::std::move(from)) {}
5043 inline MPModelProto& operator=(const MPModelProto& from) {
5044 CopyFrom(from);
5045 return *this;
5047 inline MPModelProto& operator=(MPModelProto&& from) noexcept {
5048 if (this == &from) return *this;
5049 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
5050 InternalSwap(&from);
5051 } else {
5052 CopyFrom(from);
5053 }
5054 return *this;
5055 }
5056
5057 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
5058 ABSL_ATTRIBUTE_LIFETIME_BOUND {
5059 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
5061 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
5062 ABSL_ATTRIBUTE_LIFETIME_BOUND {
5063 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
5064 }
5066 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
5067 return GetDescriptor();
5068 }
5069 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
5070 return default_instance().GetMetadata().descriptor;
5071 }
5072 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
5073 return default_instance().GetMetadata().reflection;
5074 }
5075 static const MPModelProto& default_instance() {
5076 return *reinterpret_cast<const MPModelProto*>(
5077 &_MPModelProto_default_instance_);
5078 }
5079 static constexpr int kIndexInFileMessages = 12;
5080 friend void swap(MPModelProto& a, MPModelProto& b) { a.Swap(&b); }
5081 inline void Swap(MPModelProto* PROTOBUF_NONNULL other) {
5082 if (other == this) return;
5083 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
5084 InternalSwap(other);
5085 } else {
5086 ::google::protobuf::internal::GenericSwap(this, other);
5087 }
5089 void UnsafeArenaSwap(MPModelProto* PROTOBUF_NONNULL other) {
5090 if (other == this) return;
5091 ABSL_DCHECK(GetArena() == other->GetArena());
5092 InternalSwap(other);
5093 }
5095 // implements Message ----------------------------------------------
5096
5097 MPModelProto* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
5098 return ::google::protobuf::Message::DefaultConstruct<MPModelProto>(arena);
5099 }
5100 using ::google::protobuf::Message::CopyFrom;
5101 void CopyFrom(const MPModelProto& from);
5102 using ::google::protobuf::Message::MergeFrom;
5103 void MergeFrom(const MPModelProto& from) { MPModelProto::MergeImpl(*this, from); }
5104
5105 private:
5106 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
5107 const ::google::protobuf::MessageLite& from_msg);
5108
5109 public:
5110 bool IsInitialized() const {
5111 return true;
5112 }
5113 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
5114 #if defined(PROTOBUF_CUSTOM_VTABLE)
5115 private:
5116 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
5117 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
5118 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
5119 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
5120
5121 public:
5122 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
5123 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
5124 ::uint8_t* PROTOBUF_NONNULL target,
5125 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
5126 return _InternalSerialize(*this, target, stream);
5127 }
5128 #else // PROTOBUF_CUSTOM_VTABLE
5129 ::size_t ByteSizeLong() const final;
5130 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
5131 ::uint8_t* PROTOBUF_NONNULL target,
5132 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
5133 #endif // PROTOBUF_CUSTOM_VTABLE
5134 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
5135
5136 private:
5137 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
5138 static void SharedDtor(MessageLite& self);
5139 void InternalSwap(MPModelProto* PROTOBUF_NONNULL other);
5140 private:
5141 template <typename T>
5142 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
5143 static ::absl::string_view FullMessageName() { return "operations_research.MPModelProto"; }
5144
5145 protected:
5146 explicit MPModelProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
5147 MPModelProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MPModelProto& from);
5148 MPModelProto(
5149 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, MPModelProto&& from) noexcept
5150 : MPModelProto(arena) {
5151 *this = ::std::move(from);
5152 }
5153 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
5154 static void* PROTOBUF_NONNULL PlacementNew_(
5155 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
5156 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
5157 static constexpr auto InternalNewImpl_();
5158
5159 public:
5160 static constexpr auto InternalGenerateClassData_();
5161
5162 ::google::protobuf::Metadata GetMetadata() const;
5163 // nested types ----------------------------------------------------
5165
5166 // accessors -------------------------------------------------------
5167 enum : int {
5177 };
5178 // repeated .operations_research.MPVariableProto variable = 3;
5179 int variable_size() const;
5180 private:
5181 int _internal_variable_size() const;
5182
5183 public:
5184 void clear_variable() ;
5185 ::operations_research::MPVariableProto* PROTOBUF_NONNULL mutable_variable(int index);
5186 ::google::protobuf::RepeatedPtrField<::operations_research::MPVariableProto>* PROTOBUF_NONNULL mutable_variable();
5187
5188 private:
5189 const ::google::protobuf::RepeatedPtrField<::operations_research::MPVariableProto>& _internal_variable() const;
5190 ::google::protobuf::RepeatedPtrField<::operations_research::MPVariableProto>* PROTOBUF_NONNULL _internal_mutable_variable();
5191 public:
5192 const ::operations_research::MPVariableProto& variable(int index) const;
5194 const ::google::protobuf::RepeatedPtrField<::operations_research::MPVariableProto>& variable() const;
5195 // repeated .operations_research.MPConstraintProto constraint = 4;
5196 int constraint_size() const;
5197 private:
5198 int _internal_constraint_size() const;
5199
5200 public:
5201 void clear_constraint() ;
5203 ::google::protobuf::RepeatedPtrField<::operations_research::MPConstraintProto>* PROTOBUF_NONNULL mutable_constraint();
5204
5205 private:
5206 const ::google::protobuf::RepeatedPtrField<::operations_research::MPConstraintProto>& _internal_constraint() const;
5207 ::google::protobuf::RepeatedPtrField<::operations_research::MPConstraintProto>* PROTOBUF_NONNULL _internal_mutable_constraint();
5208 public:
5209 const ::operations_research::MPConstraintProto& constraint(int index) const;
5211 const ::google::protobuf::RepeatedPtrField<::operations_research::MPConstraintProto>& constraint() const;
5212 // repeated .operations_research.MPGeneralConstraintProto general_constraint = 7;
5213 int general_constraint_size() const;
5214 private:
5215 int _internal_general_constraint_size() const;
5216
5217 public:
5220 ::google::protobuf::RepeatedPtrField<::operations_research::MPGeneralConstraintProto>* PROTOBUF_NONNULL mutable_general_constraint();
5221
5222 private:
5223 const ::google::protobuf::RepeatedPtrField<::operations_research::MPGeneralConstraintProto>& _internal_general_constraint() const;
5224 ::google::protobuf::RepeatedPtrField<::operations_research::MPGeneralConstraintProto>* PROTOBUF_NONNULL _internal_mutable_general_constraint();
5225 public:
5226 const ::operations_research::MPGeneralConstraintProto& general_constraint(int index) const;
5228 const ::google::protobuf::RepeatedPtrField<::operations_research::MPGeneralConstraintProto>& general_constraint() const;
5229 // repeated .operations_research.MPModelProto.Annotation annotation = 9;
5230 int annotation_size() const;
5231 private:
5232 int _internal_annotation_size() const;
5233
5234 public:
5235 void clear_annotation() ;
5237 ::google::protobuf::RepeatedPtrField<::operations_research::MPModelProto_Annotation>* PROTOBUF_NONNULL mutable_annotation();
5238
5239 private:
5240 const ::google::protobuf::RepeatedPtrField<::operations_research::MPModelProto_Annotation>& _internal_annotation() const;
5241 ::google::protobuf::RepeatedPtrField<::operations_research::MPModelProto_Annotation>* PROTOBUF_NONNULL _internal_mutable_annotation();
5242 public:
5243 const ::operations_research::MPModelProto_Annotation& annotation(int index) const;
5245 const ::google::protobuf::RepeatedPtrField<::operations_research::MPModelProto_Annotation>& annotation() const;
5246 // optional string name = 5 [default = ""];
5247 bool has_name() const;
5248 void clear_name() ;
5249 const ::std::string& name() const;
5250 template <typename Arg_ = const ::std::string&, typename... Args_>
5251 void set_name(Arg_&& arg, Args_... args);
5252 ::std::string* PROTOBUF_NONNULL mutable_name();
5253 [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_name();
5254 void set_allocated_name(::std::string* PROTOBUF_NULLABLE value);
5255
5256 private:
5257 const ::std::string& _internal_name() const;
5258 PROTOBUF_ALWAYS_INLINE void _internal_set_name(const ::std::string& value);
5259 ::std::string* PROTOBUF_NONNULL _internal_mutable_name();
5260
5261 public:
5262 // optional .operations_research.PartialVariableAssignment solution_hint = 6;
5263 bool has_solution_hint() const;
5264 void clear_solution_hint() ;
5265 const ::operations_research::PartialVariableAssignment& solution_hint() const;
5271
5272 private:
5273 const ::operations_research::PartialVariableAssignment& _internal_solution_hint() const;
5274 ::operations_research::PartialVariableAssignment* PROTOBUF_NONNULL _internal_mutable_solution_hint();
5275
5276 public:
5277 // optional .operations_research.MPQuadraticObjective quadratic_objective = 8;
5278 bool has_quadratic_objective() const;
5280 const ::operations_research::MPQuadraticObjective& quadratic_objective() const;
5286
5287 private:
5288 const ::operations_research::MPQuadraticObjective& _internal_quadratic_objective() const;
5289 ::operations_research::MPQuadraticObjective* PROTOBUF_NONNULL _internal_mutable_quadratic_objective();
5290
5291 public:
5292 // optional double objective_offset = 2 [default = 0];
5293 bool has_objective_offset() const;
5294 void clear_objective_offset() ;
5295 double objective_offset() const;
5296 void set_objective_offset(double value);
5297
5298 private:
5299 double _internal_objective_offset() const;
5300 void _internal_set_objective_offset(double value);
5301
5302 public:
5303 // optional bool maximize = 1 [default = false];
5304 bool has_maximize() const;
5305 void clear_maximize() ;
5306 bool maximize() const;
5307 void set_maximize(bool value);
5308
5309 private:
5310 bool _internal_maximize() const;
5311 void _internal_set_maximize(bool value);
5312
5313 public:
5314 // @@protoc_insertion_point(class_scope:operations_research.MPModelProto)
5315 private:
5316 class _Internal;
5317 friend class ::google::protobuf::internal::TcParser;
5318 static const ::google::protobuf::internal::TcParseTable<4, 9,
5319 6, 53,
5320 2>
5321 _table_;
5322
5323 friend class ::google::protobuf::MessageLite;
5324 friend class ::google::protobuf::Arena;
5325 template <typename T>
5326 friend class ::google::protobuf::Arena::InternalHelper;
5327 using InternalArenaConstructable_ = void;
5328 using DestructorSkippable_ = void;
5329 struct Impl_ {
5330 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
5331 inline explicit Impl_(
5332 ::google::protobuf::internal::InternalVisibility visibility,
5333 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
5334 inline explicit Impl_(
5335 ::google::protobuf::internal::InternalVisibility visibility,
5336 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
5337 const MPModelProto& from_msg);
5338 ::google::protobuf::internal::HasBits<1> _has_bits_;
5339 ::google::protobuf::internal::CachedSize _cached_size_;
5340 ::google::protobuf::RepeatedPtrField< ::operations_research::MPVariableProto > variable_;
5341 ::google::protobuf::RepeatedPtrField< ::operations_research::MPConstraintProto > constraint_;
5342 ::google::protobuf::RepeatedPtrField< ::operations_research::MPGeneralConstraintProto > general_constraint_;
5343 ::google::protobuf::RepeatedPtrField< ::operations_research::MPModelProto_Annotation > annotation_;
5344 ::google::protobuf::internal::ArenaStringPtr name_;
5345 ::operations_research::PartialVariableAssignment* PROTOBUF_NULLABLE solution_hint_;
5346 ::operations_research::MPQuadraticObjective* PROTOBUF_NULLABLE quadratic_objective_;
5347 double objective_offset_;
5348 bool maximize_;
5349 PROTOBUF_TSAN_DECLARE_MEMBER
5350 };
5351 union { Impl_ _impl_; };
5352 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
5353};
5354
5355OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPModelProto_class_data_;
5356// -------------------------------------------------------------------
5357
5358class OR_PROTO_DLL MPModelRequest final : public ::google::protobuf::Message
5359/* @@protoc_insertion_point(class_definition:operations_research.MPModelRequest) */ {
5360 public:
5361 inline MPModelRequest() : MPModelRequest(nullptr) {}
5362 ~MPModelRequest() PROTOBUF_FINAL;
5363
5364#if defined(PROTOBUF_CUSTOM_VTABLE)
5365 void operator delete(MPModelRequest* PROTOBUF_NONNULL msg, std::destroying_delete_t) {
5366 SharedDtor(*msg);
5367 ::google::protobuf::internal::SizedDelete(msg, sizeof(MPModelRequest));
5368 }
5369#endif
5370
5371 template <typename = void>
5372 explicit PROTOBUF_CONSTEXPR MPModelRequest(::google::protobuf::internal::ConstantInitialized);
5374 inline MPModelRequest(const MPModelRequest& from) : MPModelRequest(nullptr, from) {}
5375 inline MPModelRequest(MPModelRequest&& from) noexcept
5376 : MPModelRequest(nullptr, ::std::move(from)) {}
5377 inline MPModelRequest& operator=(const MPModelRequest& from) {
5378 CopyFrom(from);
5379 return *this;
5380 }
5381 inline MPModelRequest& operator=(MPModelRequest&& from) noexcept {
5382 if (this == &from) return *this;
5383 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
5384 InternalSwap(&from);
5385 } else {
5386 CopyFrom(from);
5387 }
5388 return *this;
5389 }
5390
5391 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
5392 ABSL_ATTRIBUTE_LIFETIME_BOUND {
5393 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
5394 }
5395 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
5396 ABSL_ATTRIBUTE_LIFETIME_BOUND {
5397 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
5399
5400 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
5401 return GetDescriptor();
5402 }
5403 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
5404 return default_instance().GetMetadata().descriptor;
5405 }
5406 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
5407 return default_instance().GetMetadata().reflection;
5408 }
5409 static const MPModelRequest& default_instance() {
5410 return *reinterpret_cast<const MPModelRequest*>(
5411 &_MPModelRequest_default_instance_);
5412 }
5413 static constexpr int kIndexInFileMessages = 18;
5414 friend void swap(MPModelRequest& a, MPModelRequest& b) { a.Swap(&b); }
5415 inline void Swap(MPModelRequest* PROTOBUF_NONNULL other) {
5416 if (other == this) return;
5417 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
5418 InternalSwap(other);
5419 } else {
5420 ::google::protobuf::internal::GenericSwap(this, other);
5421 }
5422 }
5423 void UnsafeArenaSwap(MPModelRequest* PROTOBUF_NONNULL other) {
5424 if (other == this) return;
5425 ABSL_DCHECK(GetArena() == other->GetArena());
5426 InternalSwap(other);
5427 }
5428
5429 // implements Message ----------------------------------------------
5430
5431 MPModelRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
5432 return ::google::protobuf::Message::DefaultConstruct<MPModelRequest>(arena);
5433 }
5434 using ::google::protobuf::Message::CopyFrom;
5435 void CopyFrom(const MPModelRequest& from);
5436 using ::google::protobuf::Message::MergeFrom;
5437 void MergeFrom(const MPModelRequest& from) { MPModelRequest::MergeImpl(*this, from); }
5439 private:
5440 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
5441 const ::google::protobuf::MessageLite& from_msg);
5442
5443 public:
5444 bool IsInitialized() const {
5445 return true;
5447 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
5448 #if defined(PROTOBUF_CUSTOM_VTABLE)
5449 private:
5450 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
5451 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
5452 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
5453 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
5455 public:
5456 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
5457 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
5458 ::uint8_t* PROTOBUF_NONNULL target,
5459 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
5460 return _InternalSerialize(*this, target, stream);
5461 }
5462 #else // PROTOBUF_CUSTOM_VTABLE
5463 ::size_t ByteSizeLong() const final;
5464 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
5465 ::uint8_t* PROTOBUF_NONNULL target,
5466 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
5467 #endif // PROTOBUF_CUSTOM_VTABLE
5468 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
5469
5470 private:
5471 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
5472 static void SharedDtor(MessageLite& self);
5473 void InternalSwap(MPModelRequest* PROTOBUF_NONNULL other);
5474 private:
5475 template <typename T>
5476 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
5477 static ::absl::string_view FullMessageName() { return "operations_research.MPModelRequest"; }
5478
5479 protected:
5480 explicit MPModelRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
5481 MPModelRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MPModelRequest& from);
5482 MPModelRequest(
5483 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, MPModelRequest&& from) noexcept
5484 : MPModelRequest(arena) {
5485 *this = ::std::move(from);
5486 }
5487 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
5488 static void* PROTOBUF_NONNULL PlacementNew_(
5489 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
5490 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
5491 static constexpr auto InternalNewImpl_();
5492
5493 public:
5494 static constexpr auto InternalGenerateClassData_();
5495
5496 ::google::protobuf::Metadata GetMetadata() const;
5497 // nested types ----------------------------------------------------
5517 static inline bool SolverType_IsValid(int value) {
5519 }
5520 static constexpr SolverType SolverType_MIN = MPModelRequest_SolverType_SolverType_MIN;
5523 static inline const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL SolverType_descriptor() {
5526 template <typename T>
5527 static inline const ::std::string& SolverType_Name(T value) {
5530 static inline bool SolverType_Parse(
5531 ::absl::string_view name, SolverType* PROTOBUF_NONNULL value) {
5535 // accessors -------------------------------------------------------
5536 enum : int {
5546 // optional string solver_specific_parameters = 5;
5547 bool has_solver_specific_parameters() const;
5549 const ::std::string& solver_specific_parameters() const;
5550 template <typename Arg_ = const ::std::string&, typename... Args_>
5551 void set_solver_specific_parameters(Arg_&& arg, Args_... args);
5552 ::std::string* PROTOBUF_NONNULL mutable_solver_specific_parameters();
5553 [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_solver_specific_parameters();
5554 void set_allocated_solver_specific_parameters(::std::string* PROTOBUF_NULLABLE value);
5555
5556 private:
5557 const ::std::string& _internal_solver_specific_parameters() const;
5558 PROTOBUF_ALWAYS_INLINE void _internal_set_solver_specific_parameters(const ::std::string& value);
5559 ::std::string* PROTOBUF_NONNULL _internal_mutable_solver_specific_parameters();
5561 public:
5562 // optional .operations_research.MPModelProto model = 1;
5563 bool has_model() const;
5565 const ::operations_research::MPModelProto& model() const;
5566 [[nodiscard]] ::operations_research::MPModelProto* PROTOBUF_NULLABLE release_model();
5568 void set_allocated_model(::operations_research::MPModelProto* PROTOBUF_NULLABLE value);
5571
5572 private:
5573 const ::operations_research::MPModelProto& _internal_model() const;
5574 ::operations_research::MPModelProto* PROTOBUF_NONNULL _internal_mutable_model();
5575
5576 public:
5577 // optional .operations_research.MPModelDeltaProto model_delta = 8;
5578 bool has_model_delta() const;
5579 void clear_model_delta() ;
5580 const ::operations_research::MPModelDeltaProto& model_delta() const;
5581 [[nodiscard]] ::operations_research::MPModelDeltaProto* PROTOBUF_NULLABLE release_model_delta();
5586
5587 private:
5588 const ::operations_research::MPModelDeltaProto& _internal_model_delta() const;
5589 ::operations_research::MPModelDeltaProto* PROTOBUF_NONNULL _internal_mutable_model_delta();
5590
5591 public:
5592 // optional double solver_time_limit_seconds = 3;
5593 bool has_solver_time_limit_seconds() const;
5595 double solver_time_limit_seconds() const;
5596 void set_solver_time_limit_seconds(double value);
5597
5598 private:
5599 double _internal_solver_time_limit_seconds() const;
5600 void _internal_set_solver_time_limit_seconds(double value);
5601
5602 public:
5603 // optional bool enable_internal_solver_output = 4 [default = false];
5606 bool enable_internal_solver_output() const;
5607 void set_enable_internal_solver_output(bool value);
5608
5609 private:
5610 bool _internal_enable_internal_solver_output() const;
5611 void _internal_set_enable_internal_solver_output(bool value);
5612
5613 public:
5614 // optional bool ignore_solver_specific_parameters_failure = 9 [default = false];
5619
5620 private:
5621 bool _internal_ignore_solver_specific_parameters_failure() const;
5622 void _internal_set_ignore_solver_specific_parameters_failure(bool value);
5623
5624 public:
5625 // optional int32 populate_additional_solutions_up_to = 11 [default = 0];
5628 ::int32_t populate_additional_solutions_up_to() const;
5629 void set_populate_additional_solutions_up_to(::int32_t value);
5630
5631 private:
5632 ::int32_t _internal_populate_additional_solutions_up_to() const;
5633 void _internal_set_populate_additional_solutions_up_to(::int32_t value);
5634
5635 public:
5636 // optional .operations_research.MPModelRequest.SolverType solver_type = 2 [default = GLOP_LINEAR_PROGRAMMING];
5637 bool has_solver_type() const;
5638 void clear_solver_type() ;
5641
5642 private:
5643 ::operations_research::MPModelRequest_SolverType _internal_solver_type() const;
5644 void _internal_set_solver_type(::operations_research::MPModelRequest_SolverType value);
5645
5646 public:
5647 // @@protoc_insertion_point(class_scope:operations_research.MPModelRequest)
5648 private:
5649 class _Internal;
5650 friend class ::google::protobuf::internal::TcParser;
5651 static const ::google::protobuf::internal::TcParseTable<4, 8,
5652 3, 77,
5653 2>
5654 _table_;
5655
5656 friend class ::google::protobuf::MessageLite;
5657 friend class ::google::protobuf::Arena;
5658 template <typename T>
5659 friend class ::google::protobuf::Arena::InternalHelper;
5660 using InternalArenaConstructable_ = void;
5661 using DestructorSkippable_ = void;
5662 struct Impl_ {
5663 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
5664 inline explicit Impl_(
5665 ::google::protobuf::internal::InternalVisibility visibility,
5666 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
5667 inline explicit Impl_(
5668 ::google::protobuf::internal::InternalVisibility visibility,
5669 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
5670 const MPModelRequest& from_msg);
5671 ::google::protobuf::internal::HasBits<1> _has_bits_;
5672 ::google::protobuf::internal::CachedSize _cached_size_;
5673 ::google::protobuf::internal::ArenaStringPtr solver_specific_parameters_;
5674 ::operations_research::MPModelProto* PROTOBUF_NULLABLE model_;
5675 ::operations_research::MPModelDeltaProto* PROTOBUF_NULLABLE model_delta_;
5676 double solver_time_limit_seconds_;
5677 bool enable_internal_solver_output_;
5678 bool ignore_solver_specific_parameters_failure_;
5679 ::int32_t populate_additional_solutions_up_to_;
5680 int solver_type_;
5681 PROTOBUF_TSAN_DECLARE_MEMBER
5683 union { Impl_ _impl_; };
5684 friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto;
5685};
5686
5687OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull MPModelRequest_class_data_;
5688
5689// ===================================================================
5690
5691
5692
5693
5694// ===================================================================
5695
5696
5697#ifdef __GNUC__
5698#pragma GCC diagnostic push
5699#pragma GCC diagnostic ignored "-Wstrict-aliasing"
5700#endif // __GNUC__
5701// -------------------------------------------------------------------
5702
5703// MPVariableProto
5704
5705// optional double lower_bound = 1 [default = -inf];
5707 bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
5708 return value;
5709}
5711 ::google::protobuf::internal::TSanWrite(&_impl_);
5712 _impl_.lower_bound_ = -std::numeric_limits<double>::infinity();
5713 _impl_._has_bits_[0] &= ~0x00000010u;
5714}
5715inline double MPVariableProto::lower_bound() const {
5716 // @@protoc_insertion_point(field_get:operations_research.MPVariableProto.lower_bound)
5717 return _internal_lower_bound();
5718}
5719inline void MPVariableProto::set_lower_bound(double value) {
5720 _internal_set_lower_bound(value);
5721 _impl_._has_bits_[0] |= 0x00000010u;
5722 // @@protoc_insertion_point(field_set:operations_research.MPVariableProto.lower_bound)
5723}
5724inline double MPVariableProto::_internal_lower_bound() const {
5725 ::google::protobuf::internal::TSanRead(&_impl_);
5726 return _impl_.lower_bound_;
5727}
5728inline void MPVariableProto::_internal_set_lower_bound(double value) {
5729 ::google::protobuf::internal::TSanWrite(&_impl_);
5730 _impl_.lower_bound_ = value;
5731}
5733// optional double upper_bound = 2 [default = inf];
5734inline bool MPVariableProto::has_upper_bound() const {
5735 bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
5736 return value;
5737}
5739 ::google::protobuf::internal::TSanWrite(&_impl_);
5740 _impl_.upper_bound_ = std::numeric_limits<double>::infinity();
5741 _impl_._has_bits_[0] &= ~0x00000020u;
5742}
5743inline double MPVariableProto::upper_bound() const {
5744 // @@protoc_insertion_point(field_get:operations_research.MPVariableProto.upper_bound)
5745 return _internal_upper_bound();
5746}
5747inline void MPVariableProto::set_upper_bound(double value) {
5748 _internal_set_upper_bound(value);
5749 _impl_._has_bits_[0] |= 0x00000020u;
5750 // @@protoc_insertion_point(field_set:operations_research.MPVariableProto.upper_bound)
5751}
5752inline double MPVariableProto::_internal_upper_bound() const {
5753 ::google::protobuf::internal::TSanRead(&_impl_);
5754 return _impl_.upper_bound_;
5755}
5756inline void MPVariableProto::_internal_set_upper_bound(double value) {
5757 ::google::protobuf::internal::TSanWrite(&_impl_);
5758 _impl_.upper_bound_ = value;
5759}
5761// optional double objective_coefficient = 3 [default = 0];
5763 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
5764 return value;
5765}
5767 ::google::protobuf::internal::TSanWrite(&_impl_);
5768 _impl_.objective_coefficient_ = 0;
5769 _impl_._has_bits_[0] &= ~0x00000002u;
5770}
5771inline double MPVariableProto::objective_coefficient() const {
5772 // @@protoc_insertion_point(field_get:operations_research.MPVariableProto.objective_coefficient)
5773 return _internal_objective_coefficient();
5774}
5775inline void MPVariableProto::set_objective_coefficient(double value) {
5776 _internal_set_objective_coefficient(value);
5777 _impl_._has_bits_[0] |= 0x00000002u;
5778 // @@protoc_insertion_point(field_set:operations_research.MPVariableProto.objective_coefficient)
5779}
5780inline double MPVariableProto::_internal_objective_coefficient() const {
5781 ::google::protobuf::internal::TSanRead(&_impl_);
5782 return _impl_.objective_coefficient_;
5783}
5784inline void MPVariableProto::_internal_set_objective_coefficient(double value) {
5785 ::google::protobuf::internal::TSanWrite(&_impl_);
5786 _impl_.objective_coefficient_ = value;
5787}
5789// optional bool is_integer = 4 [default = false];
5790inline bool MPVariableProto::has_is_integer() const {
5791 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
5792 return value;
5793}
5795 ::google::protobuf::internal::TSanWrite(&_impl_);
5796 _impl_.is_integer_ = false;
5797 _impl_._has_bits_[0] &= ~0x00000004u;
5798}
5799inline bool MPVariableProto::is_integer() const {
5800 // @@protoc_insertion_point(field_get:operations_research.MPVariableProto.is_integer)
5801 return _internal_is_integer();
5802}
5803inline void MPVariableProto::set_is_integer(bool value) {
5804 _internal_set_is_integer(value);
5805 _impl_._has_bits_[0] |= 0x00000004u;
5806 // @@protoc_insertion_point(field_set:operations_research.MPVariableProto.is_integer)
5807}
5808inline bool MPVariableProto::_internal_is_integer() const {
5809 ::google::protobuf::internal::TSanRead(&_impl_);
5810 return _impl_.is_integer_;
5811}
5812inline void MPVariableProto::_internal_set_is_integer(bool value) {
5813 ::google::protobuf::internal::TSanWrite(&_impl_);
5814 _impl_.is_integer_ = value;
5815}
5817// optional string name = 5 [default = ""];
5818inline bool MPVariableProto::has_name() const {
5819 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
5820 return value;
5821}
5822inline void MPVariableProto::clear_name() {
5823 ::google::protobuf::internal::TSanWrite(&_impl_);
5824 _impl_.name_.ClearToEmpty();
5825 _impl_._has_bits_[0] &= ~0x00000001u;
5826}
5827inline const ::std::string& MPVariableProto::name() const
5828 ABSL_ATTRIBUTE_LIFETIME_BOUND {
5829 // @@protoc_insertion_point(field_get:operations_research.MPVariableProto.name)
5830 return _internal_name();
5831}
5832template <typename Arg_, typename... Args_>
5833PROTOBUF_ALWAYS_INLINE void MPVariableProto::set_name(Arg_&& arg, Args_... args) {
5834 ::google::protobuf::internal::TSanWrite(&_impl_);
5835 _impl_._has_bits_[0] |= 0x00000001u;
5836 _impl_.name_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
5837 // @@protoc_insertion_point(field_set:operations_research.MPVariableProto.name)
5838}
5839inline ::std::string* PROTOBUF_NONNULL MPVariableProto::mutable_name()
5840 ABSL_ATTRIBUTE_LIFETIME_BOUND {
5841 ::std::string* _s = _internal_mutable_name();
5842 // @@protoc_insertion_point(field_mutable:operations_research.MPVariableProto.name)
5843 return _s;
5845inline const ::std::string& MPVariableProto::_internal_name() const {
5846 ::google::protobuf::internal::TSanRead(&_impl_);
5847 return _impl_.name_.Get();
5849inline void MPVariableProto::_internal_set_name(const ::std::string& value) {
5850 ::google::protobuf::internal::TSanWrite(&_impl_);
5851 _impl_._has_bits_[0] |= 0x00000001u;
5852 _impl_.name_.Set(value, GetArena());
5854inline ::std::string* PROTOBUF_NONNULL MPVariableProto::_internal_mutable_name() {
5855 ::google::protobuf::internal::TSanWrite(&_impl_);
5856 _impl_._has_bits_[0] |= 0x00000001u;
5857 return _impl_.name_.Mutable( GetArena());
5858}
5859inline ::std::string* PROTOBUF_NULLABLE MPVariableProto::release_name() {
5860 ::google::protobuf::internal::TSanWrite(&_impl_);
5861 // @@protoc_insertion_point(field_release:operations_research.MPVariableProto.name)
5862 if ((_impl_._has_bits_[0] & 0x00000001u) == 0) {
5863 return nullptr;
5864 }
5865 _impl_._has_bits_[0] &= ~0x00000001u;
5866 auto* released = _impl_.name_.Release();
5867 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
5868 _impl_.name_.Set("", GetArena());
5869 }
5870 return released;
5871}
5872inline void MPVariableProto::set_allocated_name(::std::string* PROTOBUF_NULLABLE value) {
5873 ::google::protobuf::internal::TSanWrite(&_impl_);
5874 if (value != nullptr) {
5875 _impl_._has_bits_[0] |= 0x00000001u;
5876 } else {
5877 _impl_._has_bits_[0] &= ~0x00000001u;
5878 }
5879 _impl_.name_.SetAllocated(value, GetArena());
5880 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) {
5881 _impl_.name_.Set("", GetArena());
5882 }
5883 // @@protoc_insertion_point(field_set_allocated:operations_research.MPVariableProto.name)
5884}
5886// optional int32 branching_priority = 6 [default = 0];
5887inline bool MPVariableProto::has_branching_priority() const {
5888 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
5889 return value;
5890}
5892 ::google::protobuf::internal::TSanWrite(&_impl_);
5893 _impl_.branching_priority_ = 0;
5894 _impl_._has_bits_[0] &= ~0x00000008u;
5895}
5896inline ::int32_t MPVariableProto::branching_priority() const {
5897 // @@protoc_insertion_point(field_get:operations_research.MPVariableProto.branching_priority)
5898 return _internal_branching_priority();
5899}
5900inline void MPVariableProto::set_branching_priority(::int32_t value) {
5901 _internal_set_branching_priority(value);
5902 _impl_._has_bits_[0] |= 0x00000008u;
5903 // @@protoc_insertion_point(field_set:operations_research.MPVariableProto.branching_priority)
5904}
5905inline ::int32_t MPVariableProto::_internal_branching_priority() const {
5906 ::google::protobuf::internal::TSanRead(&_impl_);
5907 return _impl_.branching_priority_;
5908}
5909inline void MPVariableProto::_internal_set_branching_priority(::int32_t value) {
5910 ::google::protobuf::internal::TSanWrite(&_impl_);
5911 _impl_.branching_priority_ = value;
5912}
5914// -------------------------------------------------------------------
5915
5916// MPConstraintProto
5918// repeated int32 var_index = 6 [packed = true];
5919inline int MPConstraintProto::_internal_var_index_size() const {
5920 return _internal_var_index().size();
5921}
5923 return _internal_var_index_size();
5924}
5926 ::google::protobuf::internal::TSanWrite(&_impl_);
5927 _impl_.var_index_.Clear();
5928}
5929inline ::int32_t MPConstraintProto::var_index(int index) const {
5930 // @@protoc_insertion_point(field_get:operations_research.MPConstraintProto.var_index)
5931 return _internal_var_index().Get(index);
5932}
5933inline void MPConstraintProto::set_var_index(int index, ::int32_t value) {
5934 _internal_mutable_var_index()->Set(index, value);
5935 // @@protoc_insertion_point(field_set:operations_research.MPConstraintProto.var_index)
5936}
5937inline void MPConstraintProto::add_var_index(::int32_t value) {
5938 ::google::protobuf::internal::TSanWrite(&_impl_);
5939 _internal_mutable_var_index()->Add(value);
5940 // @@protoc_insertion_point(field_add:operations_research.MPConstraintProto.var_index)
5941}
5942inline const ::google::protobuf::RepeatedField<::int32_t>& MPConstraintProto::var_index() const
5943 ABSL_ATTRIBUTE_LIFETIME_BOUND {
5944 // @@protoc_insertion_point(field_list:operations_research.MPConstraintProto.var_index)
5945 return _internal_var_index();
5946}
5947inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL MPConstraintProto::mutable_var_index()
5948 ABSL_ATTRIBUTE_LIFETIME_BOUND {
5949 // @@protoc_insertion_point(field_mutable_list:operations_research.MPConstraintProto.var_index)
5950 ::google::protobuf::internal::TSanWrite(&_impl_);
5951 return _internal_mutable_var_index();
5953inline const ::google::protobuf::RepeatedField<::int32_t>&
5954MPConstraintProto::_internal_var_index() const {
5955 ::google::protobuf::internal::TSanRead(&_impl_);
5956 return _impl_.var_index_;
5957}
5958inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL
5959MPConstraintProto::_internal_mutable_var_index() {
5960 ::google::protobuf::internal::TSanRead(&_impl_);
5961 return &_impl_.var_index_;
5962}
5963
5964// repeated double coefficient = 7 [packed = true];
5965inline int MPConstraintProto::_internal_coefficient_size() const {
5966 return _internal_coefficient().size();
5967}
5968inline int MPConstraintProto::coefficient_size() const {
5969 return _internal_coefficient_size();
5970}
5972 ::google::protobuf::internal::TSanWrite(&_impl_);
5973 _impl_.coefficient_.Clear();
5975inline double MPConstraintProto::coefficient(int index) const {
5976 // @@protoc_insertion_point(field_get:operations_research.MPConstraintProto.coefficient)
5977 return _internal_coefficient().Get(index);
5978}
5979inline void MPConstraintProto::set_coefficient(int index, double value) {
5980 _internal_mutable_coefficient()->Set(index, value);
5981 // @@protoc_insertion_point(field_set:operations_research.MPConstraintProto.coefficient)
5982}
5983inline void MPConstraintProto::add_coefficient(double value) {
5984 ::google::protobuf::internal::TSanWrite(&_impl_);
5985 _internal_mutable_coefficient()->Add(value);
5986 // @@protoc_insertion_point(field_add:operations_research.MPConstraintProto.coefficient)
5987}
5988inline const ::google::protobuf::RepeatedField<double>& MPConstraintProto::coefficient() const
5989 ABSL_ATTRIBUTE_LIFETIME_BOUND {
5990 // @@protoc_insertion_point(field_list:operations_research.MPConstraintProto.coefficient)
5991 return _internal_coefficient();
5992}
5993inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL MPConstraintProto::mutable_coefficient()
5994 ABSL_ATTRIBUTE_LIFETIME_BOUND {
5995 // @@protoc_insertion_point(field_mutable_list:operations_research.MPConstraintProto.coefficient)
5996 ::google::protobuf::internal::TSanWrite(&_impl_);
5997 return _internal_mutable_coefficient();
5999inline const ::google::protobuf::RepeatedField<double>&
6000MPConstraintProto::_internal_coefficient() const {
6001 ::google::protobuf::internal::TSanRead(&_impl_);
6002 return _impl_.coefficient_;
6003}
6004inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL
6005MPConstraintProto::_internal_mutable_coefficient() {
6006 ::google::protobuf::internal::TSanRead(&_impl_);
6007 return &_impl_.coefficient_;
6008}
6009
6010// optional double lower_bound = 2 [default = -inf];
6011inline bool MPConstraintProto::has_lower_bound() const {
6012 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
6013 return value;
6014}
6016 ::google::protobuf::internal::TSanWrite(&_impl_);
6017 _impl_.lower_bound_ = -std::numeric_limits<double>::infinity();
6018 _impl_._has_bits_[0] &= ~0x00000004u;
6019}
6020inline double MPConstraintProto::lower_bound() const {
6021 // @@protoc_insertion_point(field_get:operations_research.MPConstraintProto.lower_bound)
6022 return _internal_lower_bound();
6023}
6024inline void MPConstraintProto::set_lower_bound(double value) {
6025 _internal_set_lower_bound(value);
6026 _impl_._has_bits_[0] |= 0x00000004u;
6027 // @@protoc_insertion_point(field_set:operations_research.MPConstraintProto.lower_bound)
6028}
6029inline double MPConstraintProto::_internal_lower_bound() const {
6030 ::google::protobuf::internal::TSanRead(&_impl_);
6031 return _impl_.lower_bound_;
6032}
6033inline void MPConstraintProto::_internal_set_lower_bound(double value) {
6034 ::google::protobuf::internal::TSanWrite(&_impl_);
6035 _impl_.lower_bound_ = value;
6036}
6037
6038// optional double upper_bound = 3 [default = inf];
6039inline bool MPConstraintProto::has_upper_bound() const {
6040 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
6041 return value;
6044 ::google::protobuf::internal::TSanWrite(&_impl_);
6045 _impl_.upper_bound_ = std::numeric_limits<double>::infinity();
6046 _impl_._has_bits_[0] &= ~0x00000008u;
6048inline double MPConstraintProto::upper_bound() const {
6049 // @@protoc_insertion_point(field_get:operations_research.MPConstraintProto.upper_bound)
6050 return _internal_upper_bound();
6052inline void MPConstraintProto::set_upper_bound(double value) {
6053 _internal_set_upper_bound(value);
6054 _impl_._has_bits_[0] |= 0x00000008u;
6055 // @@protoc_insertion_point(field_set:operations_research.MPConstraintProto.upper_bound)
6056}
6057inline double MPConstraintProto::_internal_upper_bound() const {
6058 ::google::protobuf::internal::TSanRead(&_impl_);
6059 return _impl_.upper_bound_;
6060}
6061inline void MPConstraintProto::_internal_set_upper_bound(double value) {
6062 ::google::protobuf::internal::TSanWrite(&_impl_);
6063 _impl_.upper_bound_ = value;
6064}
6065
6066// optional string name = 4 [default = ""];
6067inline bool MPConstraintProto::has_name() const {
6068 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
6069 return value;
6071inline void MPConstraintProto::clear_name() {
6072 ::google::protobuf::internal::TSanWrite(&_impl_);
6073 _impl_.name_.ClearToEmpty();
6074 _impl_._has_bits_[0] &= ~0x00000001u;
6076inline const ::std::string& MPConstraintProto::name() const
6077 ABSL_ATTRIBUTE_LIFETIME_BOUND {
6078 // @@protoc_insertion_point(field_get:operations_research.MPConstraintProto.name)
6079 return _internal_name();
6080}
6081template <typename Arg_, typename... Args_>
6082PROTOBUF_ALWAYS_INLINE void MPConstraintProto::set_name(Arg_&& arg, Args_... args) {
6083 ::google::protobuf::internal::TSanWrite(&_impl_);
6084 _impl_._has_bits_[0] |= 0x00000001u;
6085 _impl_.name_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
6086 // @@protoc_insertion_point(field_set:operations_research.MPConstraintProto.name)
6087}
6088inline ::std::string* PROTOBUF_NONNULL MPConstraintProto::mutable_name()
6089 ABSL_ATTRIBUTE_LIFETIME_BOUND {
6090 ::std::string* _s = _internal_mutable_name();
6091 // @@protoc_insertion_point(field_mutable:operations_research.MPConstraintProto.name)
6092 return _s;
6093}
6094inline const ::std::string& MPConstraintProto::_internal_name() const {
6095 ::google::protobuf::internal::TSanRead(&_impl_);
6096 return _impl_.name_.Get();
6097}
6098inline void MPConstraintProto::_internal_set_name(const ::std::string& value) {
6099 ::google::protobuf::internal::TSanWrite(&_impl_);
6100 _impl_._has_bits_[0] |= 0x00000001u;
6101 _impl_.name_.Set(value, GetArena());
6102}
6103inline ::std::string* PROTOBUF_NONNULL MPConstraintProto::_internal_mutable_name() {
6104 ::google::protobuf::internal::TSanWrite(&_impl_);
6105 _impl_._has_bits_[0] |= 0x00000001u;
6106 return _impl_.name_.Mutable( GetArena());
6107}
6108inline ::std::string* PROTOBUF_NULLABLE MPConstraintProto::release_name() {
6109 ::google::protobuf::internal::TSanWrite(&_impl_);
6110 // @@protoc_insertion_point(field_release:operations_research.MPConstraintProto.name)
6111 if ((_impl_._has_bits_[0] & 0x00000001u) == 0) {
6112 return nullptr;
6113 }
6114 _impl_._has_bits_[0] &= ~0x00000001u;
6115 auto* released = _impl_.name_.Release();
6116 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
6117 _impl_.name_.Set("", GetArena());
6118 }
6119 return released;
6120}
6121inline void MPConstraintProto::set_allocated_name(::std::string* PROTOBUF_NULLABLE value) {
6122 ::google::protobuf::internal::TSanWrite(&_impl_);
6123 if (value != nullptr) {
6124 _impl_._has_bits_[0] |= 0x00000001u;
6125 } else {
6126 _impl_._has_bits_[0] &= ~0x00000001u;
6127 }
6128 _impl_.name_.SetAllocated(value, GetArena());
6129 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) {
6130 _impl_.name_.Set("", GetArena());
6131 }
6132 // @@protoc_insertion_point(field_set_allocated:operations_research.MPConstraintProto.name)
6133}
6134
6135// optional bool is_lazy = 5 [default = false];
6136inline bool MPConstraintProto::has_is_lazy() const {
6137 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
6138 return value;
6139}
6141 ::google::protobuf::internal::TSanWrite(&_impl_);
6142 _impl_.is_lazy_ = false;
6143 _impl_._has_bits_[0] &= ~0x00000002u;
6144}
6145inline bool MPConstraintProto::is_lazy() const {
6146 // @@protoc_insertion_point(field_get:operations_research.MPConstraintProto.is_lazy)
6147 return _internal_is_lazy();
6149inline void MPConstraintProto::set_is_lazy(bool value) {
6150 _internal_set_is_lazy(value);
6151 _impl_._has_bits_[0] |= 0x00000002u;
6152 // @@protoc_insertion_point(field_set:operations_research.MPConstraintProto.is_lazy)
6153}
6154inline bool MPConstraintProto::_internal_is_lazy() const {
6155 ::google::protobuf::internal::TSanRead(&_impl_);
6156 return _impl_.is_lazy_;
6157}
6158inline void MPConstraintProto::_internal_set_is_lazy(bool value) {
6159 ::google::protobuf::internal::TSanWrite(&_impl_);
6160 _impl_.is_lazy_ = value;
6161}
6162
6163// -------------------------------------------------------------------
6164
6165// MPGeneralConstraintProto
6166
6167// optional string name = 1 [default = ""];
6168inline bool MPGeneralConstraintProto::has_name() const {
6169 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
6170 return value;
6171}
6173 ::google::protobuf::internal::TSanWrite(&_impl_);
6174 _impl_.name_.ClearToEmpty();
6175 _impl_._has_bits_[0] &= ~0x00000001u;
6177inline const ::std::string& MPGeneralConstraintProto::name() const
6178 ABSL_ATTRIBUTE_LIFETIME_BOUND {
6179 // @@protoc_insertion_point(field_get:operations_research.MPGeneralConstraintProto.name)
6180 return _internal_name();
6181}
6182template <typename Arg_, typename... Args_>
6183PROTOBUF_ALWAYS_INLINE void MPGeneralConstraintProto::set_name(Arg_&& arg, Args_... args) {
6184 ::google::protobuf::internal::TSanWrite(&_impl_);
6185 _impl_._has_bits_[0] |= 0x00000001u;
6186 _impl_.name_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
6187 // @@protoc_insertion_point(field_set:operations_research.MPGeneralConstraintProto.name)
6188}
6189inline ::std::string* PROTOBUF_NONNULL MPGeneralConstraintProto::mutable_name()
6190 ABSL_ATTRIBUTE_LIFETIME_BOUND {
6191 ::std::string* _s = _internal_mutable_name();
6192 // @@protoc_insertion_point(field_mutable:operations_research.MPGeneralConstraintProto.name)
6193 return _s;
6194}
6195inline const ::std::string& MPGeneralConstraintProto::_internal_name() const {
6196 ::google::protobuf::internal::TSanRead(&_impl_);
6197 return _impl_.name_.Get();
6198}
6199inline void MPGeneralConstraintProto::_internal_set_name(const ::std::string& value) {
6200 ::google::protobuf::internal::TSanWrite(&_impl_);
6201 _impl_._has_bits_[0] |= 0x00000001u;
6202 _impl_.name_.Set(value, GetArena());
6203}
6204inline ::std::string* PROTOBUF_NONNULL MPGeneralConstraintProto::_internal_mutable_name() {
6205 ::google::protobuf::internal::TSanWrite(&_impl_);
6206 _impl_._has_bits_[0] |= 0x00000001u;
6207 return _impl_.name_.Mutable( GetArena());
6208}
6209inline ::std::string* PROTOBUF_NULLABLE MPGeneralConstraintProto::release_name() {
6210 ::google::protobuf::internal::TSanWrite(&_impl_);
6211 // @@protoc_insertion_point(field_release:operations_research.MPGeneralConstraintProto.name)
6212 if ((_impl_._has_bits_[0] & 0x00000001u) == 0) {
6213 return nullptr;
6214 }
6215 _impl_._has_bits_[0] &= ~0x00000001u;
6216 auto* released = _impl_.name_.Release();
6217 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
6218 _impl_.name_.Set("", GetArena());
6219 }
6220 return released;
6221}
6222inline void MPGeneralConstraintProto::set_allocated_name(::std::string* PROTOBUF_NULLABLE value) {
6223 ::google::protobuf::internal::TSanWrite(&_impl_);
6224 if (value != nullptr) {
6225 _impl_._has_bits_[0] |= 0x00000001u;
6226 } else {
6227 _impl_._has_bits_[0] &= ~0x00000001u;
6228 }
6229 _impl_.name_.SetAllocated(value, GetArena());
6230 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) {
6231 _impl_.name_.Set("", GetArena());
6232 }
6233 // @@protoc_insertion_point(field_set_allocated:operations_research.MPGeneralConstraintProto.name)
6234}
6235
6236// .operations_research.MPIndicatorConstraint indicator_constraint = 2;
6239}
6240inline bool MPGeneralConstraintProto::_internal_has_indicator_constraint() const {
6241 return general_constraint_case() == kIndicatorConstraint;
6242}
6243inline void MPGeneralConstraintProto::set_has_indicator_constraint() {
6244 _impl_._oneof_case_[0] = kIndicatorConstraint;
6245}
6247 ::google::protobuf::internal::TSanWrite(&_impl_);
6248 if (general_constraint_case() == kIndicatorConstraint) {
6249 if (GetArena() == nullptr) {
6250 delete _impl_.general_constraint_.indicator_constraint_;
6251 } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
6252 ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.general_constraint_.indicator_constraint_);
6253 }
6254 clear_has_general_constraint();
6255 }
6256}
6257inline ::operations_research::MPIndicatorConstraint* PROTOBUF_NULLABLE MPGeneralConstraintProto::release_indicator_constraint() {
6258 // @@protoc_insertion_point(field_release:operations_research.MPGeneralConstraintProto.indicator_constraint)
6259 if (general_constraint_case() == kIndicatorConstraint) {
6260 clear_has_general_constraint();
6261 auto* temp = reinterpret_cast<::operations_research::MPIndicatorConstraint*>(_impl_.general_constraint_.indicator_constraint_);
6262 if (GetArena() != nullptr) {
6263 temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
6264 }
6265 _impl_.general_constraint_.indicator_constraint_ = nullptr;
6266 return temp;
6267 } else {
6268 return nullptr;
6269 }
6270}
6271inline const ::operations_research::MPIndicatorConstraint& MPGeneralConstraintProto::_internal_indicator_constraint() const {
6272 return general_constraint_case() == kIndicatorConstraint ? *reinterpret_cast<::operations_research::MPIndicatorConstraint*>(_impl_.general_constraint_.indicator_constraint_) : reinterpret_cast<::operations_research::MPIndicatorConstraint&>(::operations_research::_MPIndicatorConstraint_default_instance_);
6273}
6274inline const ::operations_research::MPIndicatorConstraint& MPGeneralConstraintProto::indicator_constraint() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
6275 // @@protoc_insertion_point(field_get:operations_research.MPGeneralConstraintProto.indicator_constraint)
6276 return _internal_indicator_constraint();
6277}
6278inline ::operations_research::MPIndicatorConstraint* PROTOBUF_NULLABLE MPGeneralConstraintProto::unsafe_arena_release_indicator_constraint() {
6279 // @@protoc_insertion_point(field_unsafe_arena_release:operations_research.MPGeneralConstraintProto.indicator_constraint)
6280 if (general_constraint_case() == kIndicatorConstraint) {
6281 clear_has_general_constraint();
6282 auto* temp = reinterpret_cast<::operations_research::MPIndicatorConstraint*>(_impl_.general_constraint_.indicator_constraint_);
6283 _impl_.general_constraint_.indicator_constraint_ = nullptr;
6284 return temp;
6285 } else {
6286 return nullptr;
6287 }
6288}
6290 ::operations_research::MPIndicatorConstraint* PROTOBUF_NULLABLE value) {
6291 // We rely on the oneof clear method to free the earlier contents
6292 // of this oneof. We can directly use the pointer we're given to
6293 // set the new value.
6294 clear_general_constraint();
6295 if (value) {
6296 set_has_indicator_constraint();
6297 _impl_.general_constraint_.indicator_constraint_ = reinterpret_cast<::google::protobuf::Message*>(value);
6298 }
6299 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.MPGeneralConstraintProto.indicator_constraint)
6300}
6301inline ::operations_research::MPIndicatorConstraint* PROTOBUF_NONNULL MPGeneralConstraintProto::_internal_mutable_indicator_constraint() {
6304 set_has_indicator_constraint();
6305 _impl_.general_constraint_.indicator_constraint_ = reinterpret_cast<::google::protobuf::Message*>(
6306 ::google::protobuf::Message::DefaultConstruct<::operations_research::MPIndicatorConstraint>(GetArena()));
6307 }
6308 return reinterpret_cast<::operations_research::MPIndicatorConstraint*>(_impl_.general_constraint_.indicator_constraint_);
6309}
6310inline ::operations_research::MPIndicatorConstraint* PROTOBUF_NONNULL MPGeneralConstraintProto::mutable_indicator_constraint()
6311 ABSL_ATTRIBUTE_LIFETIME_BOUND {
6312 ::operations_research::MPIndicatorConstraint* _msg = _internal_mutable_indicator_constraint();
6313 // @@protoc_insertion_point(field_mutable:operations_research.MPGeneralConstraintProto.indicator_constraint)
6314 return _msg;
6315}
6316
6317// .operations_research.MPSosConstraint sos_constraint = 3;
6320}
6321inline bool MPGeneralConstraintProto::_internal_has_sos_constraint() const {
6322 return general_constraint_case() == kSosConstraint;
6323}
6324inline void MPGeneralConstraintProto::set_has_sos_constraint() {
6325 _impl_._oneof_case_[0] = kSosConstraint;
6326}
6328 ::google::protobuf::internal::TSanWrite(&_impl_);
6329 if (general_constraint_case() == kSosConstraint) {
6330 if (GetArena() == nullptr) {
6331 delete _impl_.general_constraint_.sos_constraint_;
6332 } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
6333 ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.general_constraint_.sos_constraint_);
6334 }
6335 clear_has_general_constraint();
6336 }
6337}
6338inline ::operations_research::MPSosConstraint* PROTOBUF_NULLABLE MPGeneralConstraintProto::release_sos_constraint() {
6339 // @@protoc_insertion_point(field_release:operations_research.MPGeneralConstraintProto.sos_constraint)
6341 clear_has_general_constraint();
6342 auto* temp = reinterpret_cast<::operations_research::MPSosConstraint*>(_impl_.general_constraint_.sos_constraint_);
6343 if (GetArena() != nullptr) {
6344 temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
6345 }
6346 _impl_.general_constraint_.sos_constraint_ = nullptr;
6347 return temp;
6348 } else {
6349 return nullptr;
6350 }
6351}
6352inline const ::operations_research::MPSosConstraint& MPGeneralConstraintProto::_internal_sos_constraint() const {
6353 return general_constraint_case() == kSosConstraint ? *reinterpret_cast<::operations_research::MPSosConstraint*>(_impl_.general_constraint_.sos_constraint_) : reinterpret_cast<::operations_research::MPSosConstraint&>(::operations_research::_MPSosConstraint_default_instance_);
6354}
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 ? *reinterpret_cast<::operations_research::MPQuadraticConstraint*>(_impl_.general_constraint_.quadratic_constraint_) : reinterpret_cast<::operations_research::MPQuadraticConstraint&>(::operations_research::_MPQuadraticConstraint_default_instance_);
6435}
6436inline const ::operations_research::MPQuadraticConstraint& MPGeneralConstraintProto::quadratic_constraint() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
6437 // @@protoc_insertion_point(field_get:operations_research.MPGeneralConstraintProto.quadratic_constraint)
6438 return _internal_quadratic_constraint();
6439}
6440inline ::operations_research::MPQuadraticConstraint* PROTOBUF_NULLABLE MPGeneralConstraintProto::unsafe_arena_release_quadratic_constraint() {
6441 // @@protoc_insertion_point(field_unsafe_arena_release:operations_research.MPGeneralConstraintProto.quadratic_constraint)
6442 if (general_constraint_case() == kQuadraticConstraint) {
6443 clear_has_general_constraint();
6444 auto* temp = reinterpret_cast<::operations_research::MPQuadraticConstraint*>(_impl_.general_constraint_.quadratic_constraint_);
6445 _impl_.general_constraint_.quadratic_constraint_ = nullptr;
6446 return temp;
6447 } else {
6448 return nullptr;
6449 }
6450}
6452 ::operations_research::MPQuadraticConstraint* PROTOBUF_NULLABLE value) {
6453 // We rely on the oneof clear method to free the earlier contents
6454 // of this oneof. We can directly use the pointer we're given to
6455 // set the new value.
6456 clear_general_constraint();
6457 if (value) {
6458 set_has_quadratic_constraint();
6459 _impl_.general_constraint_.quadratic_constraint_ = reinterpret_cast<::google::protobuf::Message*>(value);
6460 }
6461 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.MPGeneralConstraintProto.quadratic_constraint)
6462}
6463inline ::operations_research::MPQuadraticConstraint* PROTOBUF_NONNULL MPGeneralConstraintProto::_internal_mutable_quadratic_constraint() {
6466 set_has_quadratic_constraint();
6467 _impl_.general_constraint_.quadratic_constraint_ = reinterpret_cast<::google::protobuf::Message*>(
6468 ::google::protobuf::Message::DefaultConstruct<::operations_research::MPQuadraticConstraint>(GetArena()));
6469 }
6470 return reinterpret_cast<::operations_research::MPQuadraticConstraint*>(_impl_.general_constraint_.quadratic_constraint_);
6471}
6472inline ::operations_research::MPQuadraticConstraint* PROTOBUF_NONNULL MPGeneralConstraintProto::mutable_quadratic_constraint()
6473 ABSL_ATTRIBUTE_LIFETIME_BOUND {
6474 ::operations_research::MPQuadraticConstraint* _msg = _internal_mutable_quadratic_constraint();
6475 // @@protoc_insertion_point(field_mutable:operations_research.MPGeneralConstraintProto.quadratic_constraint)
6476 return _msg;
6477}
6478
6479// .operations_research.MPAbsConstraint abs_constraint = 5;
6482}
6483inline bool MPGeneralConstraintProto::_internal_has_abs_constraint() const {
6484 return general_constraint_case() == kAbsConstraint;
6485}
6486inline void MPGeneralConstraintProto::set_has_abs_constraint() {
6487 _impl_._oneof_case_[0] = kAbsConstraint;
6488}
6490 ::google::protobuf::internal::TSanWrite(&_impl_);
6491 if (general_constraint_case() == kAbsConstraint) {
6492 if (GetArena() == nullptr) {
6493 delete _impl_.general_constraint_.abs_constraint_;
6494 } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
6495 ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.general_constraint_.abs_constraint_);
6496 }
6497 clear_has_general_constraint();
6498 }
6499}
6500inline ::operations_research::MPAbsConstraint* PROTOBUF_NULLABLE MPGeneralConstraintProto::release_abs_constraint() {
6501 // @@protoc_insertion_point(field_release:operations_research.MPGeneralConstraintProto.abs_constraint)
6503 clear_has_general_constraint();
6504 auto* temp = reinterpret_cast<::operations_research::MPAbsConstraint*>(_impl_.general_constraint_.abs_constraint_);
6505 if (GetArena() != nullptr) {
6506 temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
6507 }
6508 _impl_.general_constraint_.abs_constraint_ = nullptr;
6509 return temp;
6510 } else {
6511 return nullptr;
6512 }
6513}
6514inline const ::operations_research::MPAbsConstraint& MPGeneralConstraintProto::_internal_abs_constraint() const {
6515 return general_constraint_case() == kAbsConstraint ? *reinterpret_cast<::operations_research::MPAbsConstraint*>(_impl_.general_constraint_.abs_constraint_) : reinterpret_cast<::operations_research::MPAbsConstraint&>(::operations_research::_MPAbsConstraint_default_instance_);
6516}
6517inline const ::operations_research::MPAbsConstraint& MPGeneralConstraintProto::abs_constraint() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
6518 // @@protoc_insertion_point(field_get:operations_research.MPGeneralConstraintProto.abs_constraint)
6519 return _internal_abs_constraint();
6520}
6521inline ::operations_research::MPAbsConstraint* PROTOBUF_NULLABLE MPGeneralConstraintProto::unsafe_arena_release_abs_constraint() {
6522 // @@protoc_insertion_point(field_unsafe_arena_release:operations_research.MPGeneralConstraintProto.abs_constraint)
6523 if (general_constraint_case() == kAbsConstraint) {
6524 clear_has_general_constraint();
6525 auto* temp = reinterpret_cast<::operations_research::MPAbsConstraint*>(_impl_.general_constraint_.abs_constraint_);
6526 _impl_.general_constraint_.abs_constraint_ = nullptr;
6527 return temp;
6528 } else {
6529 return nullptr;
6530 }
6531}
6533 ::operations_research::MPAbsConstraint* PROTOBUF_NULLABLE value) {
6534 // We rely on the oneof clear method to free the earlier contents
6535 // of this oneof. We can directly use the pointer we're given to
6536 // set the new value.
6537 clear_general_constraint();
6538 if (value) {
6539 set_has_abs_constraint();
6540 _impl_.general_constraint_.abs_constraint_ = reinterpret_cast<::google::protobuf::Message*>(value);
6541 }
6542 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.MPGeneralConstraintProto.abs_constraint)
6543}
6544inline ::operations_research::MPAbsConstraint* PROTOBUF_NONNULL MPGeneralConstraintProto::_internal_mutable_abs_constraint() {
6547 set_has_abs_constraint();
6548 _impl_.general_constraint_.abs_constraint_ = reinterpret_cast<::google::protobuf::Message*>(
6549 ::google::protobuf::Message::DefaultConstruct<::operations_research::MPAbsConstraint>(GetArena()));
6550 }
6551 return reinterpret_cast<::operations_research::MPAbsConstraint*>(_impl_.general_constraint_.abs_constraint_);
6552}
6553inline ::operations_research::MPAbsConstraint* PROTOBUF_NONNULL MPGeneralConstraintProto::mutable_abs_constraint()
6554 ABSL_ATTRIBUTE_LIFETIME_BOUND {
6555 ::operations_research::MPAbsConstraint* _msg = _internal_mutable_abs_constraint();
6556 // @@protoc_insertion_point(field_mutable:operations_research.MPGeneralConstraintProto.abs_constraint)
6557 return _msg;
6558}
6559
6560// .operations_research.MPArrayConstraint and_constraint = 6;
6563}
6564inline bool MPGeneralConstraintProto::_internal_has_and_constraint() const {
6565 return general_constraint_case() == kAndConstraint;
6566}
6567inline void MPGeneralConstraintProto::set_has_and_constraint() {
6568 _impl_._oneof_case_[0] = kAndConstraint;
6569}
6571 ::google::protobuf::internal::TSanWrite(&_impl_);
6572 if (general_constraint_case() == kAndConstraint) {
6573 if (GetArena() == nullptr) {
6574 delete _impl_.general_constraint_.and_constraint_;
6575 } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
6576 ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.general_constraint_.and_constraint_);
6577 }
6578 clear_has_general_constraint();
6579 }
6580}
6581inline ::operations_research::MPArrayConstraint* PROTOBUF_NULLABLE MPGeneralConstraintProto::release_and_constraint() {
6582 // @@protoc_insertion_point(field_release:operations_research.MPGeneralConstraintProto.and_constraint)
6584 clear_has_general_constraint();
6585 auto* temp = reinterpret_cast<::operations_research::MPArrayConstraint*>(_impl_.general_constraint_.and_constraint_);
6586 if (GetArena() != nullptr) {
6587 temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
6588 }
6589 _impl_.general_constraint_.and_constraint_ = nullptr;
6590 return temp;
6591 } else {
6592 return nullptr;
6593 }
6594}
6595inline const ::operations_research::MPArrayConstraint& MPGeneralConstraintProto::_internal_and_constraint() const {
6596 return general_constraint_case() == kAndConstraint ? *reinterpret_cast<::operations_research::MPArrayConstraint*>(_impl_.general_constraint_.and_constraint_) : reinterpret_cast<::operations_research::MPArrayConstraint&>(::operations_research::_MPArrayConstraint_default_instance_);
6597}
6598inline const ::operations_research::MPArrayConstraint& MPGeneralConstraintProto::and_constraint() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
6599 // @@protoc_insertion_point(field_get:operations_research.MPGeneralConstraintProto.and_constraint)
6600 return _internal_and_constraint();
6601}
6602inline ::operations_research::MPArrayConstraint* PROTOBUF_NULLABLE MPGeneralConstraintProto::unsafe_arena_release_and_constraint() {
6603 // @@protoc_insertion_point(field_unsafe_arena_release:operations_research.MPGeneralConstraintProto.and_constraint)
6604 if (general_constraint_case() == kAndConstraint) {
6605 clear_has_general_constraint();
6606 auto* temp = reinterpret_cast<::operations_research::MPArrayConstraint*>(_impl_.general_constraint_.and_constraint_);
6607 _impl_.general_constraint_.and_constraint_ = nullptr;
6608 return temp;
6609 } else {
6610 return nullptr;
6611 }
6612}
6614 ::operations_research::MPArrayConstraint* PROTOBUF_NULLABLE value) {
6615 // We rely on the oneof clear method to free the earlier contents
6616 // of this oneof. We can directly use the pointer we're given to
6617 // set the new value.
6618 clear_general_constraint();
6619 if (value) {
6620 set_has_and_constraint();
6621 _impl_.general_constraint_.and_constraint_ = reinterpret_cast<::google::protobuf::Message*>(value);
6622 }
6623 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.MPGeneralConstraintProto.and_constraint)
6624}
6625inline ::operations_research::MPArrayConstraint* PROTOBUF_NONNULL MPGeneralConstraintProto::_internal_mutable_and_constraint() {
6628 set_has_and_constraint();
6629 _impl_.general_constraint_.and_constraint_ = reinterpret_cast<::google::protobuf::Message*>(
6630 ::google::protobuf::Message::DefaultConstruct<::operations_research::MPArrayConstraint>(GetArena()));
6631 }
6632 return reinterpret_cast<::operations_research::MPArrayConstraint*>(_impl_.general_constraint_.and_constraint_);
6633}
6634inline ::operations_research::MPArrayConstraint* PROTOBUF_NONNULL MPGeneralConstraintProto::mutable_and_constraint()
6635 ABSL_ATTRIBUTE_LIFETIME_BOUND {
6636 ::operations_research::MPArrayConstraint* _msg = _internal_mutable_and_constraint();
6637 // @@protoc_insertion_point(field_mutable:operations_research.MPGeneralConstraintProto.and_constraint)
6638 return _msg;
6639}
6640
6641// .operations_research.MPArrayConstraint or_constraint = 7;
6644}
6645inline bool MPGeneralConstraintProto::_internal_has_or_constraint() const {
6646 return general_constraint_case() == kOrConstraint;
6647}
6648inline void MPGeneralConstraintProto::set_has_or_constraint() {
6649 _impl_._oneof_case_[0] = kOrConstraint;
6650}
6652 ::google::protobuf::internal::TSanWrite(&_impl_);
6653 if (general_constraint_case() == kOrConstraint) {
6654 if (GetArena() == nullptr) {
6655 delete _impl_.general_constraint_.or_constraint_;
6656 } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
6657 ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.general_constraint_.or_constraint_);
6658 }
6659 clear_has_general_constraint();
6660 }
6661}
6662inline ::operations_research::MPArrayConstraint* PROTOBUF_NULLABLE MPGeneralConstraintProto::release_or_constraint() {
6663 // @@protoc_insertion_point(field_release:operations_research.MPGeneralConstraintProto.or_constraint)
6665 clear_has_general_constraint();
6666 auto* temp = reinterpret_cast<::operations_research::MPArrayConstraint*>(_impl_.general_constraint_.or_constraint_);
6667 if (GetArena() != nullptr) {
6668 temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
6669 }
6670 _impl_.general_constraint_.or_constraint_ = nullptr;
6671 return temp;
6672 } else {
6673 return nullptr;
6674 }
6675}
6676inline const ::operations_research::MPArrayConstraint& MPGeneralConstraintProto::_internal_or_constraint() const {
6677 return general_constraint_case() == kOrConstraint ? *reinterpret_cast<::operations_research::MPArrayConstraint*>(_impl_.general_constraint_.or_constraint_) : reinterpret_cast<::operations_research::MPArrayConstraint&>(::operations_research::_MPArrayConstraint_default_instance_);
6678}
6679inline const ::operations_research::MPArrayConstraint& MPGeneralConstraintProto::or_constraint() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
6680 // @@protoc_insertion_point(field_get:operations_research.MPGeneralConstraintProto.or_constraint)
6681 return _internal_or_constraint();
6682}
6683inline ::operations_research::MPArrayConstraint* PROTOBUF_NULLABLE MPGeneralConstraintProto::unsafe_arena_release_or_constraint() {
6684 // @@protoc_insertion_point(field_unsafe_arena_release:operations_research.MPGeneralConstraintProto.or_constraint)
6685 if (general_constraint_case() == kOrConstraint) {
6686 clear_has_general_constraint();
6687 auto* temp = reinterpret_cast<::operations_research::MPArrayConstraint*>(_impl_.general_constraint_.or_constraint_);
6688 _impl_.general_constraint_.or_constraint_ = nullptr;
6689 return temp;
6690 } else {
6691 return nullptr;
6692 }
6693}
6695 ::operations_research::MPArrayConstraint* PROTOBUF_NULLABLE value) {
6696 // We rely on the oneof clear method to free the earlier contents
6697 // of this oneof. We can directly use the pointer we're given to
6698 // set the new value.
6699 clear_general_constraint();
6700 if (value) {
6701 set_has_or_constraint();
6702 _impl_.general_constraint_.or_constraint_ = reinterpret_cast<::google::protobuf::Message*>(value);
6703 }
6704 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.MPGeneralConstraintProto.or_constraint)
6705}
6706inline ::operations_research::MPArrayConstraint* PROTOBUF_NONNULL MPGeneralConstraintProto::_internal_mutable_or_constraint() {
6709 set_has_or_constraint();
6710 _impl_.general_constraint_.or_constraint_ = reinterpret_cast<::google::protobuf::Message*>(
6711 ::google::protobuf::Message::DefaultConstruct<::operations_research::MPArrayConstraint>(GetArena()));
6712 }
6713 return reinterpret_cast<::operations_research::MPArrayConstraint*>(_impl_.general_constraint_.or_constraint_);
6714}
6715inline ::operations_research::MPArrayConstraint* PROTOBUF_NONNULL MPGeneralConstraintProto::mutable_or_constraint()
6716 ABSL_ATTRIBUTE_LIFETIME_BOUND {
6717 ::operations_research::MPArrayConstraint* _msg = _internal_mutable_or_constraint();
6718 // @@protoc_insertion_point(field_mutable:operations_research.MPGeneralConstraintProto.or_constraint)
6719 return _msg;
6720}
6721
6722// .operations_research.MPArrayWithConstantConstraint min_constraint = 8;
6725}
6726inline bool MPGeneralConstraintProto::_internal_has_min_constraint() const {
6727 return general_constraint_case() == kMinConstraint;
6728}
6729inline void MPGeneralConstraintProto::set_has_min_constraint() {
6730 _impl_._oneof_case_[0] = kMinConstraint;
6731}
6733 ::google::protobuf::internal::TSanWrite(&_impl_);
6734 if (general_constraint_case() == kMinConstraint) {
6735 if (GetArena() == nullptr) {
6736 delete _impl_.general_constraint_.min_constraint_;
6737 } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
6738 ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.general_constraint_.min_constraint_);
6739 }
6740 clear_has_general_constraint();
6741 }
6742}
6743inline ::operations_research::MPArrayWithConstantConstraint* PROTOBUF_NULLABLE MPGeneralConstraintProto::release_min_constraint() {
6744 // @@protoc_insertion_point(field_release:operations_research.MPGeneralConstraintProto.min_constraint)
6746 clear_has_general_constraint();
6747 auto* temp = reinterpret_cast<::operations_research::MPArrayWithConstantConstraint*>(_impl_.general_constraint_.min_constraint_);
6748 if (GetArena() != nullptr) {
6749 temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
6750 }
6751 _impl_.general_constraint_.min_constraint_ = nullptr;
6752 return temp;
6753 } else {
6754 return nullptr;
6755 }
6756}
6757inline const ::operations_research::MPArrayWithConstantConstraint& MPGeneralConstraintProto::_internal_min_constraint() const {
6758 return general_constraint_case() == kMinConstraint ? *reinterpret_cast<::operations_research::MPArrayWithConstantConstraint*>(_impl_.general_constraint_.min_constraint_) : reinterpret_cast<::operations_research::MPArrayWithConstantConstraint&>(::operations_research::_MPArrayWithConstantConstraint_default_instance_);
6759}
6760inline const ::operations_research::MPArrayWithConstantConstraint& MPGeneralConstraintProto::min_constraint() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
6761 // @@protoc_insertion_point(field_get:operations_research.MPGeneralConstraintProto.min_constraint)
6762 return _internal_min_constraint();
6763}
6764inline ::operations_research::MPArrayWithConstantConstraint* PROTOBUF_NULLABLE MPGeneralConstraintProto::unsafe_arena_release_min_constraint() {
6765 // @@protoc_insertion_point(field_unsafe_arena_release:operations_research.MPGeneralConstraintProto.min_constraint)
6766 if (general_constraint_case() == kMinConstraint) {
6767 clear_has_general_constraint();
6768 auto* temp = reinterpret_cast<::operations_research::MPArrayWithConstantConstraint*>(_impl_.general_constraint_.min_constraint_);
6769 _impl_.general_constraint_.min_constraint_ = nullptr;
6770 return temp;
6771 } else {
6772 return nullptr;
6773 }
6774}
6776 ::operations_research::MPArrayWithConstantConstraint* PROTOBUF_NULLABLE value) {
6777 // We rely on the oneof clear method to free the earlier contents
6778 // of this oneof. We can directly use the pointer we're given to
6779 // set the new value.
6780 clear_general_constraint();
6781 if (value) {
6782 set_has_min_constraint();
6783 _impl_.general_constraint_.min_constraint_ = reinterpret_cast<::google::protobuf::Message*>(value);
6784 }
6785 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.MPGeneralConstraintProto.min_constraint)
6786}
6787inline ::operations_research::MPArrayWithConstantConstraint* PROTOBUF_NONNULL MPGeneralConstraintProto::_internal_mutable_min_constraint() {
6790 set_has_min_constraint();
6791 _impl_.general_constraint_.min_constraint_ = reinterpret_cast<::google::protobuf::Message*>(
6792 ::google::protobuf::Message::DefaultConstruct<::operations_research::MPArrayWithConstantConstraint>(GetArena()));
6793 }
6794 return reinterpret_cast<::operations_research::MPArrayWithConstantConstraint*>(_impl_.general_constraint_.min_constraint_);
6795}
6796inline ::operations_research::MPArrayWithConstantConstraint* PROTOBUF_NONNULL MPGeneralConstraintProto::mutable_min_constraint()
6797 ABSL_ATTRIBUTE_LIFETIME_BOUND {
6798 ::operations_research::MPArrayWithConstantConstraint* _msg = _internal_mutable_min_constraint();
6799 // @@protoc_insertion_point(field_mutable:operations_research.MPGeneralConstraintProto.min_constraint)
6800 return _msg;
6801}
6802
6803// .operations_research.MPArrayWithConstantConstraint max_constraint = 9;
6806}
6807inline bool MPGeneralConstraintProto::_internal_has_max_constraint() const {
6808 return general_constraint_case() == kMaxConstraint;
6809}
6810inline void MPGeneralConstraintProto::set_has_max_constraint() {
6811 _impl_._oneof_case_[0] = kMaxConstraint;
6812}
6814 ::google::protobuf::internal::TSanWrite(&_impl_);
6815 if (general_constraint_case() == kMaxConstraint) {
6816 if (GetArena() == nullptr) {
6817 delete _impl_.general_constraint_.max_constraint_;
6818 } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
6819 ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.general_constraint_.max_constraint_);
6820 }
6821 clear_has_general_constraint();
6822 }
6823}
6824inline ::operations_research::MPArrayWithConstantConstraint* PROTOBUF_NULLABLE MPGeneralConstraintProto::release_max_constraint() {
6825 // @@protoc_insertion_point(field_release:operations_research.MPGeneralConstraintProto.max_constraint)
6827 clear_has_general_constraint();
6828 auto* temp = reinterpret_cast<::operations_research::MPArrayWithConstantConstraint*>(_impl_.general_constraint_.max_constraint_);
6829 if (GetArena() != nullptr) {
6830 temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
6831 }
6832 _impl_.general_constraint_.max_constraint_ = nullptr;
6833 return temp;
6834 } else {
6835 return nullptr;
6836 }
6837}
6838inline const ::operations_research::MPArrayWithConstantConstraint& MPGeneralConstraintProto::_internal_max_constraint() const {
6839 return general_constraint_case() == kMaxConstraint ? *reinterpret_cast<::operations_research::MPArrayWithConstantConstraint*>(_impl_.general_constraint_.max_constraint_) : reinterpret_cast<::operations_research::MPArrayWithConstantConstraint&>(::operations_research::_MPArrayWithConstantConstraint_default_instance_);
6840}
6841inline const ::operations_research::MPArrayWithConstantConstraint& MPGeneralConstraintProto::max_constraint() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
6842 // @@protoc_insertion_point(field_get:operations_research.MPGeneralConstraintProto.max_constraint)
6843 return _internal_max_constraint();
6844}
6845inline ::operations_research::MPArrayWithConstantConstraint* PROTOBUF_NULLABLE MPGeneralConstraintProto::unsafe_arena_release_max_constraint() {
6846 // @@protoc_insertion_point(field_unsafe_arena_release:operations_research.MPGeneralConstraintProto.max_constraint)
6847 if (general_constraint_case() == kMaxConstraint) {
6848 clear_has_general_constraint();
6849 auto* temp = reinterpret_cast<::operations_research::MPArrayWithConstantConstraint*>(_impl_.general_constraint_.max_constraint_);
6850 _impl_.general_constraint_.max_constraint_ = nullptr;
6851 return temp;
6852 } else {
6853 return nullptr;
6854 }
6855}
6857 ::operations_research::MPArrayWithConstantConstraint* PROTOBUF_NULLABLE value) {
6858 // We rely on the oneof clear method to free the earlier contents
6859 // of this oneof. We can directly use the pointer we're given to
6860 // set the new value.
6861 clear_general_constraint();
6862 if (value) {
6863 set_has_max_constraint();
6864 _impl_.general_constraint_.max_constraint_ = reinterpret_cast<::google::protobuf::Message*>(value);
6865 }
6866 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.MPGeneralConstraintProto.max_constraint)
6867}
6868inline ::operations_research::MPArrayWithConstantConstraint* PROTOBUF_NONNULL MPGeneralConstraintProto::_internal_mutable_max_constraint() {
6871 set_has_max_constraint();
6872 _impl_.general_constraint_.max_constraint_ = reinterpret_cast<::google::protobuf::Message*>(
6873 ::google::protobuf::Message::DefaultConstruct<::operations_research::MPArrayWithConstantConstraint>(GetArena()));
6874 }
6875 return reinterpret_cast<::operations_research::MPArrayWithConstantConstraint*>(_impl_.general_constraint_.max_constraint_);
6876}
6877inline ::operations_research::MPArrayWithConstantConstraint* PROTOBUF_NONNULL MPGeneralConstraintProto::mutable_max_constraint()
6878 ABSL_ATTRIBUTE_LIFETIME_BOUND {
6879 ::operations_research::MPArrayWithConstantConstraint* _msg = _internal_mutable_max_constraint();
6880 // @@protoc_insertion_point(field_mutable:operations_research.MPGeneralConstraintProto.max_constraint)
6881 return _msg;
6882}
6883
6884inline bool MPGeneralConstraintProto::has_general_constraint() const {
6886}
6887inline void MPGeneralConstraintProto::clear_has_general_constraint() {
6888 _impl_._oneof_case_[0] = GENERAL_CONSTRAINT_NOT_SET;
6889}
6891 return MPGeneralConstraintProto::GeneralConstraintCase(_impl_._oneof_case_[0]);
6892}
6893// -------------------------------------------------------------------
6894
6895// MPIndicatorConstraint
6896
6897// optional int32 var_index = 1;
6898inline bool MPIndicatorConstraint::has_var_index() const {
6899 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
6900 return value;
6901}
6903 ::google::protobuf::internal::TSanWrite(&_impl_);
6904 _impl_.var_index_ = 0;
6905 _impl_._has_bits_[0] &= ~0x00000002u;
6906}
6907inline ::int32_t MPIndicatorConstraint::var_index() const {
6908 // @@protoc_insertion_point(field_get:operations_research.MPIndicatorConstraint.var_index)
6909 return _internal_var_index();
6910}
6911inline void MPIndicatorConstraint::set_var_index(::int32_t value) {
6912 _internal_set_var_index(value);
6913 _impl_._has_bits_[0] |= 0x00000002u;
6914 // @@protoc_insertion_point(field_set:operations_research.MPIndicatorConstraint.var_index)
6915}
6916inline ::int32_t MPIndicatorConstraint::_internal_var_index() const {
6917 ::google::protobuf::internal::TSanRead(&_impl_);
6918 return _impl_.var_index_;
6919}
6920inline void MPIndicatorConstraint::_internal_set_var_index(::int32_t value) {
6921 ::google::protobuf::internal::TSanWrite(&_impl_);
6922 _impl_.var_index_ = value;
6923}
6924
6925// optional int32 var_value = 2;
6926inline bool MPIndicatorConstraint::has_var_value() const {
6927 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
6928 return value;
6929}
6931 ::google::protobuf::internal::TSanWrite(&_impl_);
6932 _impl_.var_value_ = 0;
6933 _impl_._has_bits_[0] &= ~0x00000004u;
6934}
6935inline ::int32_t MPIndicatorConstraint::var_value() const {
6936 // @@protoc_insertion_point(field_get:operations_research.MPIndicatorConstraint.var_value)
6937 return _internal_var_value();
6938}
6939inline void MPIndicatorConstraint::set_var_value(::int32_t value) {
6940 _internal_set_var_value(value);
6941 _impl_._has_bits_[0] |= 0x00000004u;
6942 // @@protoc_insertion_point(field_set:operations_research.MPIndicatorConstraint.var_value)
6943}
6944inline ::int32_t MPIndicatorConstraint::_internal_var_value() const {
6945 ::google::protobuf::internal::TSanRead(&_impl_);
6946 return _impl_.var_value_;
6947}
6948inline void MPIndicatorConstraint::_internal_set_var_value(::int32_t value) {
6949 ::google::protobuf::internal::TSanWrite(&_impl_);
6950 _impl_.var_value_ = value;
6951}
6952
6953// optional .operations_research.MPConstraintProto constraint = 3;
6954inline bool MPIndicatorConstraint::has_constraint() const {
6955 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
6956 PROTOBUF_ASSUME(!value || _impl_.constraint_ != nullptr);
6957 return value;
6958}
6960 ::google::protobuf::internal::TSanWrite(&_impl_);
6961 if (_impl_.constraint_ != nullptr) _impl_.constraint_->Clear();
6962 _impl_._has_bits_[0] &= ~0x00000001u;
6963}
6964inline const ::operations_research::MPConstraintProto& MPIndicatorConstraint::_internal_constraint() const {
6965 ::google::protobuf::internal::TSanRead(&_impl_);
6966 const ::operations_research::MPConstraintProto* p = _impl_.constraint_;
6969inline const ::operations_research::MPConstraintProto& MPIndicatorConstraint::constraint() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
6970 // @@protoc_insertion_point(field_get:operations_research.MPIndicatorConstraint.constraint)
6971 return _internal_constraint();
6972}
6974 ::operations_research::MPConstraintProto* PROTOBUF_NULLABLE value) {
6975 ::google::protobuf::internal::TSanWrite(&_impl_);
6976 if (GetArena() == nullptr) {
6977 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.constraint_);
6978 }
6979 _impl_.constraint_ = reinterpret_cast<::operations_research::MPConstraintProto*>(value);
6980 if (value != nullptr) {
6981 _impl_._has_bits_[0] |= 0x00000001u;
6982 } else {
6983 _impl_._has_bits_[0] &= ~0x00000001u;
6984 }
6985 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.MPIndicatorConstraint.constraint)
6986}
6987inline ::operations_research::MPConstraintProto* PROTOBUF_NULLABLE MPIndicatorConstraint::release_constraint() {
6988 ::google::protobuf::internal::TSanWrite(&_impl_);
6989
6990 _impl_._has_bits_[0] &= ~0x00000001u;
6991 ::operations_research::MPConstraintProto* released = _impl_.constraint_;
6992 _impl_.constraint_ = nullptr;
6993 if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
6994 auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
6995 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
6996 if (GetArena() == nullptr) {
6997 delete old;
6999 } else {
7000 if (GetArena() != nullptr) {
7001 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
7003 }
7004 return released;
7005}
7006inline ::operations_research::MPConstraintProto* PROTOBUF_NULLABLE MPIndicatorConstraint::unsafe_arena_release_constraint() {
7007 ::google::protobuf::internal::TSanWrite(&_impl_);
7008 // @@protoc_insertion_point(field_release:operations_research.MPIndicatorConstraint.constraint)
7009
7010 _impl_._has_bits_[0] &= ~0x00000001u;
7011 ::operations_research::MPConstraintProto* temp = _impl_.constraint_;
7012 _impl_.constraint_ = nullptr;
7013 return temp;
7014}
7015inline ::operations_research::MPConstraintProto* PROTOBUF_NONNULL MPIndicatorConstraint::_internal_mutable_constraint() {
7016 ::google::protobuf::internal::TSanWrite(&_impl_);
7017 if (_impl_.constraint_ == nullptr) {
7018 auto* p = ::google::protobuf::Message::DefaultConstruct<::operations_research::MPConstraintProto>(GetArena());
7019 _impl_.constraint_ = reinterpret_cast<::operations_research::MPConstraintProto*>(p);
7020 }
7021 return _impl_.constraint_;
7022}
7023inline ::operations_research::MPConstraintProto* PROTOBUF_NONNULL MPIndicatorConstraint::mutable_constraint()
7024 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7025 _impl_._has_bits_[0] |= 0x00000001u;
7026 ::operations_research::MPConstraintProto* _msg = _internal_mutable_constraint();
7027 // @@protoc_insertion_point(field_mutable:operations_research.MPIndicatorConstraint.constraint)
7028 return _msg;
7029}
7030inline void MPIndicatorConstraint::set_allocated_constraint(::operations_research::MPConstraintProto* PROTOBUF_NULLABLE value) {
7031 ::google::protobuf::Arena* message_arena = GetArena();
7032 ::google::protobuf::internal::TSanWrite(&_impl_);
7033 if (message_arena == nullptr) {
7034 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.constraint_);
7036
7037 if (value != nullptr) {
7038 ::google::protobuf::Arena* submessage_arena = value->GetArena();
7039 if (message_arena != submessage_arena) {
7040 value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
7041 }
7042 _impl_._has_bits_[0] |= 0x00000001u;
7043 } else {
7044 _impl_._has_bits_[0] &= ~0x00000001u;
7045 }
7046
7047 _impl_.constraint_ = reinterpret_cast<::operations_research::MPConstraintProto*>(value);
7048 // @@protoc_insertion_point(field_set_allocated:operations_research.MPIndicatorConstraint.constraint)
7049}
7050
7051// -------------------------------------------------------------------
7053// MPSosConstraint
7054
7055// optional .operations_research.MPSosConstraint.Type type = 1 [default = SOS1_DEFAULT];
7056inline bool MPSosConstraint::has_type() const {
7057 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
7058 return value;
7060inline void MPSosConstraint::clear_type() {
7061 ::google::protobuf::internal::TSanWrite(&_impl_);
7062 _impl_.type_ = 0;
7063 _impl_._has_bits_[0] &= ~0x00000001u;
7064}
7065inline ::operations_research::MPSosConstraint_Type MPSosConstraint::type() const {
7066 // @@protoc_insertion_point(field_get:operations_research.MPSosConstraint.type)
7067 return _internal_type();
7068}
7070 _internal_set_type(value);
7071 _impl_._has_bits_[0] |= 0x00000001u;
7072 // @@protoc_insertion_point(field_set:operations_research.MPSosConstraint.type)
7073}
7074inline ::operations_research::MPSosConstraint_Type MPSosConstraint::_internal_type() const {
7075 ::google::protobuf::internal::TSanRead(&_impl_);
7076 return static_cast<::operations_research::MPSosConstraint_Type>(_impl_.type_);
7077}
7078inline void MPSosConstraint::_internal_set_type(::operations_research::MPSosConstraint_Type value) {
7079 ::google::protobuf::internal::TSanWrite(&_impl_);
7080
7081 assert(::google::protobuf::internal::ValidateEnum(
7083 _impl_.type_ = value;
7084}
7085
7086// repeated int32 var_index = 2;
7087inline int MPSosConstraint::_internal_var_index_size() const {
7088 return _internal_var_index().size();
7089}
7091 return _internal_var_index_size();
7092}
7094 ::google::protobuf::internal::TSanWrite(&_impl_);
7095 _impl_.var_index_.Clear();
7096}
7097inline ::int32_t MPSosConstraint::var_index(int index) const {
7098 // @@protoc_insertion_point(field_get:operations_research.MPSosConstraint.var_index)
7099 return _internal_var_index().Get(index);
7100}
7101inline void MPSosConstraint::set_var_index(int index, ::int32_t value) {
7102 _internal_mutable_var_index()->Set(index, value);
7103 // @@protoc_insertion_point(field_set:operations_research.MPSosConstraint.var_index)
7104}
7105inline void MPSosConstraint::add_var_index(::int32_t value) {
7106 ::google::protobuf::internal::TSanWrite(&_impl_);
7107 _internal_mutable_var_index()->Add(value);
7108 // @@protoc_insertion_point(field_add:operations_research.MPSosConstraint.var_index)
7109}
7110inline const ::google::protobuf::RepeatedField<::int32_t>& MPSosConstraint::var_index() const
7111 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7112 // @@protoc_insertion_point(field_list:operations_research.MPSosConstraint.var_index)
7113 return _internal_var_index();
7114}
7115inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL MPSosConstraint::mutable_var_index()
7116 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7117 // @@protoc_insertion_point(field_mutable_list:operations_research.MPSosConstraint.var_index)
7118 ::google::protobuf::internal::TSanWrite(&_impl_);
7119 return _internal_mutable_var_index();
7121inline const ::google::protobuf::RepeatedField<::int32_t>&
7122MPSosConstraint::_internal_var_index() const {
7123 ::google::protobuf::internal::TSanRead(&_impl_);
7124 return _impl_.var_index_;
7125}
7126inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL
7127MPSosConstraint::_internal_mutable_var_index() {
7128 ::google::protobuf::internal::TSanRead(&_impl_);
7129 return &_impl_.var_index_;
7130}
7132// repeated double weight = 3;
7133inline int MPSosConstraint::_internal_weight_size() const {
7134 return _internal_weight().size();
7136inline int MPSosConstraint::weight_size() const {
7137 return _internal_weight_size();
7138}
7139inline void MPSosConstraint::clear_weight() {
7140 ::google::protobuf::internal::TSanWrite(&_impl_);
7141 _impl_.weight_.Clear();
7142}
7143inline double MPSosConstraint::weight(int index) const {
7144 // @@protoc_insertion_point(field_get:operations_research.MPSosConstraint.weight)
7145 return _internal_weight().Get(index);
7146}
7147inline void MPSosConstraint::set_weight(int index, double value) {
7148 _internal_mutable_weight()->Set(index, value);
7149 // @@protoc_insertion_point(field_set:operations_research.MPSosConstraint.weight)
7150}
7151inline void MPSosConstraint::add_weight(double value) {
7152 ::google::protobuf::internal::TSanWrite(&_impl_);
7153 _internal_mutable_weight()->Add(value);
7154 // @@protoc_insertion_point(field_add:operations_research.MPSosConstraint.weight)
7155}
7156inline const ::google::protobuf::RepeatedField<double>& MPSosConstraint::weight() const
7157 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7158 // @@protoc_insertion_point(field_list:operations_research.MPSosConstraint.weight)
7159 return _internal_weight();
7160}
7161inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL MPSosConstraint::mutable_weight()
7162 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7163 // @@protoc_insertion_point(field_mutable_list:operations_research.MPSosConstraint.weight)
7164 ::google::protobuf::internal::TSanWrite(&_impl_);
7165 return _internal_mutable_weight();
7167inline const ::google::protobuf::RepeatedField<double>&
7168MPSosConstraint::_internal_weight() const {
7169 ::google::protobuf::internal::TSanRead(&_impl_);
7170 return _impl_.weight_;
7171}
7172inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL
7173MPSosConstraint::_internal_mutable_weight() {
7174 ::google::protobuf::internal::TSanRead(&_impl_);
7175 return &_impl_.weight_;
7176}
7178// -------------------------------------------------------------------
7179
7180// MPQuadraticConstraint
7182// repeated int32 var_index = 1;
7183inline int MPQuadraticConstraint::_internal_var_index_size() const {
7184 return _internal_var_index().size();
7185}
7187 return _internal_var_index_size();
7188}
7190 ::google::protobuf::internal::TSanWrite(&_impl_);
7191 _impl_.var_index_.Clear();
7192}
7193inline ::int32_t MPQuadraticConstraint::var_index(int index) const {
7194 // @@protoc_insertion_point(field_get:operations_research.MPQuadraticConstraint.var_index)
7195 return _internal_var_index().Get(index);
7196}
7197inline void MPQuadraticConstraint::set_var_index(int index, ::int32_t value) {
7198 _internal_mutable_var_index()->Set(index, value);
7199 // @@protoc_insertion_point(field_set:operations_research.MPQuadraticConstraint.var_index)
7200}
7201inline void MPQuadraticConstraint::add_var_index(::int32_t value) {
7202 ::google::protobuf::internal::TSanWrite(&_impl_);
7203 _internal_mutable_var_index()->Add(value);
7204 // @@protoc_insertion_point(field_add:operations_research.MPQuadraticConstraint.var_index)
7205}
7206inline const ::google::protobuf::RepeatedField<::int32_t>& MPQuadraticConstraint::var_index() const
7207 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7208 // @@protoc_insertion_point(field_list:operations_research.MPQuadraticConstraint.var_index)
7209 return _internal_var_index();
7210}
7211inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL MPQuadraticConstraint::mutable_var_index()
7212 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7213 // @@protoc_insertion_point(field_mutable_list:operations_research.MPQuadraticConstraint.var_index)
7214 ::google::protobuf::internal::TSanWrite(&_impl_);
7215 return _internal_mutable_var_index();
7216}
7217inline const ::google::protobuf::RepeatedField<::int32_t>&
7218MPQuadraticConstraint::_internal_var_index() const {
7219 ::google::protobuf::internal::TSanRead(&_impl_);
7220 return _impl_.var_index_;
7221}
7222inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL
7223MPQuadraticConstraint::_internal_mutable_var_index() {
7224 ::google::protobuf::internal::TSanRead(&_impl_);
7225 return &_impl_.var_index_;
7226}
7227
7228// repeated double coefficient = 2;
7229inline int MPQuadraticConstraint::_internal_coefficient_size() const {
7230 return _internal_coefficient().size();
7231}
7233 return _internal_coefficient_size();
7234}
7236 ::google::protobuf::internal::TSanWrite(&_impl_);
7237 _impl_.coefficient_.Clear();
7238}
7239inline double MPQuadraticConstraint::coefficient(int index) const {
7240 // @@protoc_insertion_point(field_get:operations_research.MPQuadraticConstraint.coefficient)
7241 return _internal_coefficient().Get(index);
7243inline void MPQuadraticConstraint::set_coefficient(int index, double value) {
7244 _internal_mutable_coefficient()->Set(index, value);
7245 // @@protoc_insertion_point(field_set:operations_research.MPQuadraticConstraint.coefficient)
7246}
7247inline void MPQuadraticConstraint::add_coefficient(double value) {
7248 ::google::protobuf::internal::TSanWrite(&_impl_);
7249 _internal_mutable_coefficient()->Add(value);
7250 // @@protoc_insertion_point(field_add:operations_research.MPQuadraticConstraint.coefficient)
7251}
7252inline const ::google::protobuf::RepeatedField<double>& MPQuadraticConstraint::coefficient() const
7253 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7254 // @@protoc_insertion_point(field_list:operations_research.MPQuadraticConstraint.coefficient)
7255 return _internal_coefficient();
7256}
7257inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL MPQuadraticConstraint::mutable_coefficient()
7258 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7259 // @@protoc_insertion_point(field_mutable_list:operations_research.MPQuadraticConstraint.coefficient)
7260 ::google::protobuf::internal::TSanWrite(&_impl_);
7261 return _internal_mutable_coefficient();
7262}
7263inline const ::google::protobuf::RepeatedField<double>&
7264MPQuadraticConstraint::_internal_coefficient() const {
7265 ::google::protobuf::internal::TSanRead(&_impl_);
7266 return _impl_.coefficient_;
7267}
7268inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL
7269MPQuadraticConstraint::_internal_mutable_coefficient() {
7270 ::google::protobuf::internal::TSanRead(&_impl_);
7271 return &_impl_.coefficient_;
7272}
7273
7274// repeated int32 qvar1_index = 3;
7275inline int MPQuadraticConstraint::_internal_qvar1_index_size() const {
7276 return _internal_qvar1_index().size();
7277}
7279 return _internal_qvar1_index_size();
7280}
7282 ::google::protobuf::internal::TSanWrite(&_impl_);
7283 _impl_.qvar1_index_.Clear();
7284}
7285inline ::int32_t MPQuadraticConstraint::qvar1_index(int index) const {
7286 // @@protoc_insertion_point(field_get:operations_research.MPQuadraticConstraint.qvar1_index)
7287 return _internal_qvar1_index().Get(index);
7289inline void MPQuadraticConstraint::set_qvar1_index(int index, ::int32_t value) {
7290 _internal_mutable_qvar1_index()->Set(index, value);
7291 // @@protoc_insertion_point(field_set:operations_research.MPQuadraticConstraint.qvar1_index)
7292}
7293inline void MPQuadraticConstraint::add_qvar1_index(::int32_t value) {
7294 ::google::protobuf::internal::TSanWrite(&_impl_);
7295 _internal_mutable_qvar1_index()->Add(value);
7296 // @@protoc_insertion_point(field_add:operations_research.MPQuadraticConstraint.qvar1_index)
7297}
7298inline const ::google::protobuf::RepeatedField<::int32_t>& MPQuadraticConstraint::qvar1_index() const
7299 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7300 // @@protoc_insertion_point(field_list:operations_research.MPQuadraticConstraint.qvar1_index)
7301 return _internal_qvar1_index();
7302}
7303inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL MPQuadraticConstraint::mutable_qvar1_index()
7304 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7305 // @@protoc_insertion_point(field_mutable_list:operations_research.MPQuadraticConstraint.qvar1_index)
7306 ::google::protobuf::internal::TSanWrite(&_impl_);
7307 return _internal_mutable_qvar1_index();
7308}
7309inline const ::google::protobuf::RepeatedField<::int32_t>&
7310MPQuadraticConstraint::_internal_qvar1_index() const {
7311 ::google::protobuf::internal::TSanRead(&_impl_);
7312 return _impl_.qvar1_index_;
7313}
7314inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL
7315MPQuadraticConstraint::_internal_mutable_qvar1_index() {
7316 ::google::protobuf::internal::TSanRead(&_impl_);
7317 return &_impl_.qvar1_index_;
7318}
7319
7320// repeated int32 qvar2_index = 4;
7321inline int MPQuadraticConstraint::_internal_qvar2_index_size() const {
7322 return _internal_qvar2_index().size();
7323}
7325 return _internal_qvar2_index_size();
7326}
7328 ::google::protobuf::internal::TSanWrite(&_impl_);
7329 _impl_.qvar2_index_.Clear();
7330}
7331inline ::int32_t MPQuadraticConstraint::qvar2_index(int index) const {
7332 // @@protoc_insertion_point(field_get:operations_research.MPQuadraticConstraint.qvar2_index)
7333 return _internal_qvar2_index().Get(index);
7335inline void MPQuadraticConstraint::set_qvar2_index(int index, ::int32_t value) {
7336 _internal_mutable_qvar2_index()->Set(index, value);
7337 // @@protoc_insertion_point(field_set:operations_research.MPQuadraticConstraint.qvar2_index)
7338}
7339inline void MPQuadraticConstraint::add_qvar2_index(::int32_t value) {
7340 ::google::protobuf::internal::TSanWrite(&_impl_);
7341 _internal_mutable_qvar2_index()->Add(value);
7342 // @@protoc_insertion_point(field_add:operations_research.MPQuadraticConstraint.qvar2_index)
7343}
7344inline const ::google::protobuf::RepeatedField<::int32_t>& MPQuadraticConstraint::qvar2_index() const
7345 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7346 // @@protoc_insertion_point(field_list:operations_research.MPQuadraticConstraint.qvar2_index)
7347 return _internal_qvar2_index();
7348}
7349inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL MPQuadraticConstraint::mutable_qvar2_index()
7350 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7351 // @@protoc_insertion_point(field_mutable_list:operations_research.MPQuadraticConstraint.qvar2_index)
7352 ::google::protobuf::internal::TSanWrite(&_impl_);
7353 return _internal_mutable_qvar2_index();
7354}
7355inline const ::google::protobuf::RepeatedField<::int32_t>&
7356MPQuadraticConstraint::_internal_qvar2_index() const {
7357 ::google::protobuf::internal::TSanRead(&_impl_);
7358 return _impl_.qvar2_index_;
7359}
7360inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL
7361MPQuadraticConstraint::_internal_mutable_qvar2_index() {
7362 ::google::protobuf::internal::TSanRead(&_impl_);
7363 return &_impl_.qvar2_index_;
7364}
7365
7366// repeated double qcoefficient = 5;
7367inline int MPQuadraticConstraint::_internal_qcoefficient_size() const {
7368 return _internal_qcoefficient().size();
7369}
7371 return _internal_qcoefficient_size();
7372}
7374 ::google::protobuf::internal::TSanWrite(&_impl_);
7375 _impl_.qcoefficient_.Clear();
7376}
7377inline double MPQuadraticConstraint::qcoefficient(int index) const {
7378 // @@protoc_insertion_point(field_get:operations_research.MPQuadraticConstraint.qcoefficient)
7379 return _internal_qcoefficient().Get(index);
7381inline void MPQuadraticConstraint::set_qcoefficient(int index, double value) {
7382 _internal_mutable_qcoefficient()->Set(index, value);
7383 // @@protoc_insertion_point(field_set:operations_research.MPQuadraticConstraint.qcoefficient)
7384}
7385inline void MPQuadraticConstraint::add_qcoefficient(double value) {
7386 ::google::protobuf::internal::TSanWrite(&_impl_);
7387 _internal_mutable_qcoefficient()->Add(value);
7388 // @@protoc_insertion_point(field_add:operations_research.MPQuadraticConstraint.qcoefficient)
7389}
7390inline const ::google::protobuf::RepeatedField<double>& MPQuadraticConstraint::qcoefficient() const
7391 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7392 // @@protoc_insertion_point(field_list:operations_research.MPQuadraticConstraint.qcoefficient)
7393 return _internal_qcoefficient();
7394}
7395inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL MPQuadraticConstraint::mutable_qcoefficient()
7396 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7397 // @@protoc_insertion_point(field_mutable_list:operations_research.MPQuadraticConstraint.qcoefficient)
7398 ::google::protobuf::internal::TSanWrite(&_impl_);
7399 return _internal_mutable_qcoefficient();
7400}
7401inline const ::google::protobuf::RepeatedField<double>&
7402MPQuadraticConstraint::_internal_qcoefficient() const {
7403 ::google::protobuf::internal::TSanRead(&_impl_);
7404 return _impl_.qcoefficient_;
7405}
7406inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL
7407MPQuadraticConstraint::_internal_mutable_qcoefficient() {
7408 ::google::protobuf::internal::TSanRead(&_impl_);
7409 return &_impl_.qcoefficient_;
7410}
7411
7412// optional double lower_bound = 6 [default = -inf];
7413inline bool MPQuadraticConstraint::has_lower_bound() const {
7414 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
7415 return value;
7418 ::google::protobuf::internal::TSanWrite(&_impl_);
7419 _impl_.lower_bound_ = -std::numeric_limits<double>::infinity();
7420 _impl_._has_bits_[0] &= ~0x00000001u;
7422inline double MPQuadraticConstraint::lower_bound() const {
7423 // @@protoc_insertion_point(field_get:operations_research.MPQuadraticConstraint.lower_bound)
7424 return _internal_lower_bound();
7425}
7427 _internal_set_lower_bound(value);
7428 _impl_._has_bits_[0] |= 0x00000001u;
7429 // @@protoc_insertion_point(field_set:operations_research.MPQuadraticConstraint.lower_bound)
7430}
7431inline double MPQuadraticConstraint::_internal_lower_bound() const {
7432 ::google::protobuf::internal::TSanRead(&_impl_);
7433 return _impl_.lower_bound_;
7434}
7435inline void MPQuadraticConstraint::_internal_set_lower_bound(double value) {
7436 ::google::protobuf::internal::TSanWrite(&_impl_);
7437 _impl_.lower_bound_ = value;
7438}
7439
7440// optional double upper_bound = 7 [default = inf];
7441inline bool MPQuadraticConstraint::has_upper_bound() const {
7442 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
7443 return value;
7446 ::google::protobuf::internal::TSanWrite(&_impl_);
7447 _impl_.upper_bound_ = std::numeric_limits<double>::infinity();
7448 _impl_._has_bits_[0] &= ~0x00000002u;
7449}
7450inline double MPQuadraticConstraint::upper_bound() const {
7451 // @@protoc_insertion_point(field_get:operations_research.MPQuadraticConstraint.upper_bound)
7452 return _internal_upper_bound();
7454inline void MPQuadraticConstraint::set_upper_bound(double value) {
7455 _internal_set_upper_bound(value);
7456 _impl_._has_bits_[0] |= 0x00000002u;
7457 // @@protoc_insertion_point(field_set:operations_research.MPQuadraticConstraint.upper_bound)
7458}
7459inline double MPQuadraticConstraint::_internal_upper_bound() const {
7460 ::google::protobuf::internal::TSanRead(&_impl_);
7461 return _impl_.upper_bound_;
7462}
7463inline void MPQuadraticConstraint::_internal_set_upper_bound(double value) {
7464 ::google::protobuf::internal::TSanWrite(&_impl_);
7465 _impl_.upper_bound_ = value;
7466}
7467
7468// -------------------------------------------------------------------
7469
7470// MPAbsConstraint
7471
7472// optional int32 var_index = 1;
7473inline bool MPAbsConstraint::has_var_index() const {
7474 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
7475 return value;
7478 ::google::protobuf::internal::TSanWrite(&_impl_);
7479 _impl_.var_index_ = 0;
7480 _impl_._has_bits_[0] &= ~0x00000001u;
7482inline ::int32_t MPAbsConstraint::var_index() const {
7483 // @@protoc_insertion_point(field_get:operations_research.MPAbsConstraint.var_index)
7484 return _internal_var_index();
7486inline void MPAbsConstraint::set_var_index(::int32_t value) {
7487 _internal_set_var_index(value);
7488 _impl_._has_bits_[0] |= 0x00000001u;
7489 // @@protoc_insertion_point(field_set:operations_research.MPAbsConstraint.var_index)
7490}
7491inline ::int32_t MPAbsConstraint::_internal_var_index() const {
7492 ::google::protobuf::internal::TSanRead(&_impl_);
7493 return _impl_.var_index_;
7494}
7495inline void MPAbsConstraint::_internal_set_var_index(::int32_t value) {
7496 ::google::protobuf::internal::TSanWrite(&_impl_);
7497 _impl_.var_index_ = value;
7498}
7499
7500// optional int32 resultant_var_index = 2;
7501inline bool MPAbsConstraint::has_resultant_var_index() const {
7502 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
7503 return value;
7504}
7506 ::google::protobuf::internal::TSanWrite(&_impl_);
7507 _impl_.resultant_var_index_ = 0;
7508 _impl_._has_bits_[0] &= ~0x00000002u;
7510inline ::int32_t MPAbsConstraint::resultant_var_index() const {
7511 // @@protoc_insertion_point(field_get:operations_research.MPAbsConstraint.resultant_var_index)
7512 return _internal_resultant_var_index();
7513}
7514inline void MPAbsConstraint::set_resultant_var_index(::int32_t value) {
7515 _internal_set_resultant_var_index(value);
7516 _impl_._has_bits_[0] |= 0x00000002u;
7517 // @@protoc_insertion_point(field_set:operations_research.MPAbsConstraint.resultant_var_index)
7519inline ::int32_t MPAbsConstraint::_internal_resultant_var_index() const {
7520 ::google::protobuf::internal::TSanRead(&_impl_);
7521 return _impl_.resultant_var_index_;
7522}
7523inline void MPAbsConstraint::_internal_set_resultant_var_index(::int32_t value) {
7524 ::google::protobuf::internal::TSanWrite(&_impl_);
7525 _impl_.resultant_var_index_ = value;
7526}
7527
7528// -------------------------------------------------------------------
7529
7530// MPArrayConstraint
7531
7532// repeated int32 var_index = 1;
7533inline int MPArrayConstraint::_internal_var_index_size() const {
7534 return _internal_var_index().size();
7535}
7536inline int MPArrayConstraint::var_index_size() const {
7537 return _internal_var_index_size();
7538}
7540 ::google::protobuf::internal::TSanWrite(&_impl_);
7541 _impl_.var_index_.Clear();
7543inline ::int32_t MPArrayConstraint::var_index(int index) const {
7544 // @@protoc_insertion_point(field_get:operations_research.MPArrayConstraint.var_index)
7545 return _internal_var_index().Get(index);
7547inline void MPArrayConstraint::set_var_index(int index, ::int32_t value) {
7548 _internal_mutable_var_index()->Set(index, value);
7549 // @@protoc_insertion_point(field_set:operations_research.MPArrayConstraint.var_index)
7550}
7551inline void MPArrayConstraint::add_var_index(::int32_t value) {
7552 ::google::protobuf::internal::TSanWrite(&_impl_);
7553 _internal_mutable_var_index()->Add(value);
7554 // @@protoc_insertion_point(field_add:operations_research.MPArrayConstraint.var_index)
7555}
7556inline const ::google::protobuf::RepeatedField<::int32_t>& MPArrayConstraint::var_index() const
7557 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7558 // @@protoc_insertion_point(field_list:operations_research.MPArrayConstraint.var_index)
7559 return _internal_var_index();
7560}
7561inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL MPArrayConstraint::mutable_var_index()
7562 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7563 // @@protoc_insertion_point(field_mutable_list:operations_research.MPArrayConstraint.var_index)
7564 ::google::protobuf::internal::TSanWrite(&_impl_);
7565 return _internal_mutable_var_index();
7566}
7567inline const ::google::protobuf::RepeatedField<::int32_t>&
7568MPArrayConstraint::_internal_var_index() const {
7569 ::google::protobuf::internal::TSanRead(&_impl_);
7570 return _impl_.var_index_;
7571}
7572inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL
7573MPArrayConstraint::_internal_mutable_var_index() {
7574 ::google::protobuf::internal::TSanRead(&_impl_);
7575 return &_impl_.var_index_;
7577
7578// optional int32 resultant_var_index = 2;
7580 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
7581 return value;
7582}
7584 ::google::protobuf::internal::TSanWrite(&_impl_);
7585 _impl_.resultant_var_index_ = 0;
7586 _impl_._has_bits_[0] &= ~0x00000001u;
7587}
7588inline ::int32_t MPArrayConstraint::resultant_var_index() const {
7589 // @@protoc_insertion_point(field_get:operations_research.MPArrayConstraint.resultant_var_index)
7590 return _internal_resultant_var_index();
7591}
7592inline void MPArrayConstraint::set_resultant_var_index(::int32_t value) {
7593 _internal_set_resultant_var_index(value);
7594 _impl_._has_bits_[0] |= 0x00000001u;
7595 // @@protoc_insertion_point(field_set:operations_research.MPArrayConstraint.resultant_var_index)
7596}
7597inline ::int32_t MPArrayConstraint::_internal_resultant_var_index() const {
7598 ::google::protobuf::internal::TSanRead(&_impl_);
7599 return _impl_.resultant_var_index_;
7600}
7601inline void MPArrayConstraint::_internal_set_resultant_var_index(::int32_t value) {
7602 ::google::protobuf::internal::TSanWrite(&_impl_);
7603 _impl_.resultant_var_index_ = value;
7604}
7605
7606// -------------------------------------------------------------------
7607
7608// MPArrayWithConstantConstraint
7609
7610// repeated int32 var_index = 1;
7611inline int MPArrayWithConstantConstraint::_internal_var_index_size() const {
7612 return _internal_var_index().size();
7613}
7615 return _internal_var_index_size();
7618 ::google::protobuf::internal::TSanWrite(&_impl_);
7619 _impl_.var_index_.Clear();
7620}
7621inline ::int32_t MPArrayWithConstantConstraint::var_index(int index) const {
7622 // @@protoc_insertion_point(field_get:operations_research.MPArrayWithConstantConstraint.var_index)
7623 return _internal_var_index().Get(index);
7624}
7625inline void MPArrayWithConstantConstraint::set_var_index(int index, ::int32_t value) {
7626 _internal_mutable_var_index()->Set(index, value);
7627 // @@protoc_insertion_point(field_set:operations_research.MPArrayWithConstantConstraint.var_index)
7628}
7629inline void MPArrayWithConstantConstraint::add_var_index(::int32_t value) {
7630 ::google::protobuf::internal::TSanWrite(&_impl_);
7631 _internal_mutable_var_index()->Add(value);
7632 // @@protoc_insertion_point(field_add:operations_research.MPArrayWithConstantConstraint.var_index)
7633}
7634inline const ::google::protobuf::RepeatedField<::int32_t>& MPArrayWithConstantConstraint::var_index() const
7635 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7636 // @@protoc_insertion_point(field_list:operations_research.MPArrayWithConstantConstraint.var_index)
7637 return _internal_var_index();
7638}
7639inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL MPArrayWithConstantConstraint::mutable_var_index()
7640 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7641 // @@protoc_insertion_point(field_mutable_list:operations_research.MPArrayWithConstantConstraint.var_index)
7642 ::google::protobuf::internal::TSanWrite(&_impl_);
7643 return _internal_mutable_var_index();
7644}
7645inline const ::google::protobuf::RepeatedField<::int32_t>&
7646MPArrayWithConstantConstraint::_internal_var_index() const {
7647 ::google::protobuf::internal::TSanRead(&_impl_);
7648 return _impl_.var_index_;
7649}
7650inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL
7651MPArrayWithConstantConstraint::_internal_mutable_var_index() {
7652 ::google::protobuf::internal::TSanRead(&_impl_);
7653 return &_impl_.var_index_;
7654}
7656// optional double constant = 2;
7658 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
7659 return value;
7660}
7662 ::google::protobuf::internal::TSanWrite(&_impl_);
7663 _impl_.constant_ = 0;
7664 _impl_._has_bits_[0] &= ~0x00000001u;
7665}
7666inline double MPArrayWithConstantConstraint::constant() const {
7667 // @@protoc_insertion_point(field_get:operations_research.MPArrayWithConstantConstraint.constant)
7668 return _internal_constant();
7669}
7670inline void MPArrayWithConstantConstraint::set_constant(double value) {
7671 _internal_set_constant(value);
7672 _impl_._has_bits_[0] |= 0x00000001u;
7673 // @@protoc_insertion_point(field_set:operations_research.MPArrayWithConstantConstraint.constant)
7674}
7675inline double MPArrayWithConstantConstraint::_internal_constant() const {
7676 ::google::protobuf::internal::TSanRead(&_impl_);
7677 return _impl_.constant_;
7678}
7679inline void MPArrayWithConstantConstraint::_internal_set_constant(double value) {
7680 ::google::protobuf::internal::TSanWrite(&_impl_);
7681 _impl_.constant_ = value;
7682}
7683
7684// optional int32 resultant_var_index = 3;
7686 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
7687 return value;
7688}
7690 ::google::protobuf::internal::TSanWrite(&_impl_);
7691 _impl_.resultant_var_index_ = 0;
7692 _impl_._has_bits_[0] &= ~0x00000002u;
7693}
7695 // @@protoc_insertion_point(field_get:operations_research.MPArrayWithConstantConstraint.resultant_var_index)
7696 return _internal_resultant_var_index();
7697}
7698inline void MPArrayWithConstantConstraint::set_resultant_var_index(::int32_t value) {
7699 _internal_set_resultant_var_index(value);
7700 _impl_._has_bits_[0] |= 0x00000002u;
7701 // @@protoc_insertion_point(field_set:operations_research.MPArrayWithConstantConstraint.resultant_var_index)
7702}
7703inline ::int32_t MPArrayWithConstantConstraint::_internal_resultant_var_index() const {
7704 ::google::protobuf::internal::TSanRead(&_impl_);
7705 return _impl_.resultant_var_index_;
7706}
7707inline void MPArrayWithConstantConstraint::_internal_set_resultant_var_index(::int32_t value) {
7708 ::google::protobuf::internal::TSanWrite(&_impl_);
7709 _impl_.resultant_var_index_ = value;
7710}
7711
7712// -------------------------------------------------------------------
7713
7714// MPQuadraticObjective
7715
7716// repeated int32 qvar1_index = 1;
7717inline int MPQuadraticObjective::_internal_qvar1_index_size() const {
7718 return _internal_qvar1_index().size();
7720inline int MPQuadraticObjective::qvar1_index_size() const {
7721 return _internal_qvar1_index_size();
7722}
7724 ::google::protobuf::internal::TSanWrite(&_impl_);
7725 _impl_.qvar1_index_.Clear();
7726}
7727inline ::int32_t MPQuadraticObjective::qvar1_index(int index) const {
7728 // @@protoc_insertion_point(field_get:operations_research.MPQuadraticObjective.qvar1_index)
7729 return _internal_qvar1_index().Get(index);
7730}
7731inline void MPQuadraticObjective::set_qvar1_index(int index, ::int32_t value) {
7732 _internal_mutable_qvar1_index()->Set(index, value);
7733 // @@protoc_insertion_point(field_set:operations_research.MPQuadraticObjective.qvar1_index)
7734}
7735inline void MPQuadraticObjective::add_qvar1_index(::int32_t value) {
7736 ::google::protobuf::internal::TSanWrite(&_impl_);
7737 _internal_mutable_qvar1_index()->Add(value);
7738 // @@protoc_insertion_point(field_add:operations_research.MPQuadraticObjective.qvar1_index)
7739}
7740inline const ::google::protobuf::RepeatedField<::int32_t>& MPQuadraticObjective::qvar1_index() const
7741 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7742 // @@protoc_insertion_point(field_list:operations_research.MPQuadraticObjective.qvar1_index)
7743 return _internal_qvar1_index();
7744}
7745inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL MPQuadraticObjective::mutable_qvar1_index()
7746 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7747 // @@protoc_insertion_point(field_mutable_list:operations_research.MPQuadraticObjective.qvar1_index)
7748 ::google::protobuf::internal::TSanWrite(&_impl_);
7749 return _internal_mutable_qvar1_index();
7750}
7751inline const ::google::protobuf::RepeatedField<::int32_t>&
7752MPQuadraticObjective::_internal_qvar1_index() const {
7753 ::google::protobuf::internal::TSanRead(&_impl_);
7754 return _impl_.qvar1_index_;
7756inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL
7757MPQuadraticObjective::_internal_mutable_qvar1_index() {
7758 ::google::protobuf::internal::TSanRead(&_impl_);
7759 return &_impl_.qvar1_index_;
7760}
7761
7762// repeated int32 qvar2_index = 2;
7763inline int MPQuadraticObjective::_internal_qvar2_index_size() const {
7764 return _internal_qvar2_index().size();
7765}
7767 return _internal_qvar2_index_size();
7768}
7770 ::google::protobuf::internal::TSanWrite(&_impl_);
7771 _impl_.qvar2_index_.Clear();
7772}
7773inline ::int32_t MPQuadraticObjective::qvar2_index(int index) const {
7774 // @@protoc_insertion_point(field_get:operations_research.MPQuadraticObjective.qvar2_index)
7775 return _internal_qvar2_index().Get(index);
7776}
7777inline void MPQuadraticObjective::set_qvar2_index(int index, ::int32_t value) {
7778 _internal_mutable_qvar2_index()->Set(index, value);
7779 // @@protoc_insertion_point(field_set:operations_research.MPQuadraticObjective.qvar2_index)
7781inline void MPQuadraticObjective::add_qvar2_index(::int32_t value) {
7782 ::google::protobuf::internal::TSanWrite(&_impl_);
7783 _internal_mutable_qvar2_index()->Add(value);
7784 // @@protoc_insertion_point(field_add:operations_research.MPQuadraticObjective.qvar2_index)
7785}
7786inline const ::google::protobuf::RepeatedField<::int32_t>& MPQuadraticObjective::qvar2_index() const
7787 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7788 // @@protoc_insertion_point(field_list:operations_research.MPQuadraticObjective.qvar2_index)
7789 return _internal_qvar2_index();
7790}
7791inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL MPQuadraticObjective::mutable_qvar2_index()
7792 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7793 // @@protoc_insertion_point(field_mutable_list:operations_research.MPQuadraticObjective.qvar2_index)
7794 ::google::protobuf::internal::TSanWrite(&_impl_);
7795 return _internal_mutable_qvar2_index();
7796}
7797inline const ::google::protobuf::RepeatedField<::int32_t>&
7798MPQuadraticObjective::_internal_qvar2_index() const {
7799 ::google::protobuf::internal::TSanRead(&_impl_);
7800 return _impl_.qvar2_index_;
7802inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL
7803MPQuadraticObjective::_internal_mutable_qvar2_index() {
7804 ::google::protobuf::internal::TSanRead(&_impl_);
7805 return &_impl_.qvar2_index_;
7806}
7807
7808// repeated double coefficient = 3;
7809inline int MPQuadraticObjective::_internal_coefficient_size() const {
7810 return _internal_coefficient().size();
7811}
7813 return _internal_coefficient_size();
7814}
7816 ::google::protobuf::internal::TSanWrite(&_impl_);
7817 _impl_.coefficient_.Clear();
7818}
7819inline double MPQuadraticObjective::coefficient(int index) const {
7820 // @@protoc_insertion_point(field_get:operations_research.MPQuadraticObjective.coefficient)
7821 return _internal_coefficient().Get(index);
7822}
7823inline void MPQuadraticObjective::set_coefficient(int index, double value) {
7824 _internal_mutable_coefficient()->Set(index, value);
7825 // @@protoc_insertion_point(field_set:operations_research.MPQuadraticObjective.coefficient)
7827inline void MPQuadraticObjective::add_coefficient(double value) {
7828 ::google::protobuf::internal::TSanWrite(&_impl_);
7829 _internal_mutable_coefficient()->Add(value);
7830 // @@protoc_insertion_point(field_add:operations_research.MPQuadraticObjective.coefficient)
7831}
7832inline const ::google::protobuf::RepeatedField<double>& MPQuadraticObjective::coefficient() const
7833 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7834 // @@protoc_insertion_point(field_list:operations_research.MPQuadraticObjective.coefficient)
7835 return _internal_coefficient();
7836}
7837inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL MPQuadraticObjective::mutable_coefficient()
7838 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7839 // @@protoc_insertion_point(field_mutable_list:operations_research.MPQuadraticObjective.coefficient)
7840 ::google::protobuf::internal::TSanWrite(&_impl_);
7841 return _internal_mutable_coefficient();
7842}
7843inline const ::google::protobuf::RepeatedField<double>&
7844MPQuadraticObjective::_internal_coefficient() const {
7845 ::google::protobuf::internal::TSanRead(&_impl_);
7846 return _impl_.coefficient_;
7848inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL
7849MPQuadraticObjective::_internal_mutable_coefficient() {
7850 ::google::protobuf::internal::TSanRead(&_impl_);
7851 return &_impl_.coefficient_;
7852}
7853
7854// -------------------------------------------------------------------
7855
7856// PartialVariableAssignment
7857
7858// repeated int32 var_index = 1 [packed = true];
7859inline int PartialVariableAssignment::_internal_var_index_size() const {
7860 return _internal_var_index().size();
7861}
7863 return _internal_var_index_size();
7864}
7866 ::google::protobuf::internal::TSanWrite(&_impl_);
7867 _impl_.var_index_.Clear();
7868}
7869inline ::int32_t PartialVariableAssignment::var_index(int index) const {
7870 // @@protoc_insertion_point(field_get:operations_research.PartialVariableAssignment.var_index)
7871 return _internal_var_index().Get(index);
7873inline void PartialVariableAssignment::set_var_index(int index, ::int32_t value) {
7874 _internal_mutable_var_index()->Set(index, value);
7875 // @@protoc_insertion_point(field_set:operations_research.PartialVariableAssignment.var_index)
7876}
7877inline void PartialVariableAssignment::add_var_index(::int32_t value) {
7878 ::google::protobuf::internal::TSanWrite(&_impl_);
7879 _internal_mutable_var_index()->Add(value);
7880 // @@protoc_insertion_point(field_add:operations_research.PartialVariableAssignment.var_index)
7881}
7882inline const ::google::protobuf::RepeatedField<::int32_t>& PartialVariableAssignment::var_index() const
7883 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7884 // @@protoc_insertion_point(field_list:operations_research.PartialVariableAssignment.var_index)
7885 return _internal_var_index();
7886}
7887inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL PartialVariableAssignment::mutable_var_index()
7888 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7889 // @@protoc_insertion_point(field_mutable_list:operations_research.PartialVariableAssignment.var_index)
7890 ::google::protobuf::internal::TSanWrite(&_impl_);
7891 return _internal_mutable_var_index();
7892}
7893inline const ::google::protobuf::RepeatedField<::int32_t>&
7894PartialVariableAssignment::_internal_var_index() const {
7895 ::google::protobuf::internal::TSanRead(&_impl_);
7896 return _impl_.var_index_;
7897}
7898inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL
7899PartialVariableAssignment::_internal_mutable_var_index() {
7900 ::google::protobuf::internal::TSanRead(&_impl_);
7901 return &_impl_.var_index_;
7902}
7903
7904// repeated double var_value = 2 [packed = true];
7905inline int PartialVariableAssignment::_internal_var_value_size() const {
7906 return _internal_var_value().size();
7907}
7909 return _internal_var_value_size();
7910}
7912 ::google::protobuf::internal::TSanWrite(&_impl_);
7913 _impl_.var_value_.Clear();
7914}
7915inline double PartialVariableAssignment::var_value(int index) const {
7916 // @@protoc_insertion_point(field_get:operations_research.PartialVariableAssignment.var_value)
7917 return _internal_var_value().Get(index);
7919inline void PartialVariableAssignment::set_var_value(int index, double value) {
7920 _internal_mutable_var_value()->Set(index, value);
7921 // @@protoc_insertion_point(field_set:operations_research.PartialVariableAssignment.var_value)
7922}
7924 ::google::protobuf::internal::TSanWrite(&_impl_);
7925 _internal_mutable_var_value()->Add(value);
7926 // @@protoc_insertion_point(field_add:operations_research.PartialVariableAssignment.var_value)
7927}
7928inline const ::google::protobuf::RepeatedField<double>& PartialVariableAssignment::var_value() const
7929 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7930 // @@protoc_insertion_point(field_list:operations_research.PartialVariableAssignment.var_value)
7931 return _internal_var_value();
7932}
7933inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL PartialVariableAssignment::mutable_var_value()
7934 ABSL_ATTRIBUTE_LIFETIME_BOUND {
7935 // @@protoc_insertion_point(field_mutable_list:operations_research.PartialVariableAssignment.var_value)
7936 ::google::protobuf::internal::TSanWrite(&_impl_);
7937 return _internal_mutable_var_value();
7938}
7939inline const ::google::protobuf::RepeatedField<double>&
7940PartialVariableAssignment::_internal_var_value() const {
7941 ::google::protobuf::internal::TSanRead(&_impl_);
7942 return _impl_.var_value_;
7943}
7944inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL
7945PartialVariableAssignment::_internal_mutable_var_value() {
7946 ::google::protobuf::internal::TSanRead(&_impl_);
7947 return &_impl_.var_value_;
7948}
7949
7950// -------------------------------------------------------------------
7952// MPModelProto_Annotation
7953
7954// optional .operations_research.MPModelProto.Annotation.TargetType target_type = 1;
7956 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
7957 return value;
7958}
7960 ::google::protobuf::internal::TSanWrite(&_impl_);
7961 _impl_.target_type_ = 0;
7962 _impl_._has_bits_[0] &= ~0x00000008u;
7963}
7964inline ::operations_research::MPModelProto_Annotation_TargetType MPModelProto_Annotation::target_type() const {
7965 // @@protoc_insertion_point(field_get:operations_research.MPModelProto.Annotation.target_type)
7966 return _internal_target_type();
7967}
7969 _internal_set_target_type(value);
7970 _impl_._has_bits_[0] |= 0x00000008u;
7971 // @@protoc_insertion_point(field_set:operations_research.MPModelProto.Annotation.target_type)
7972}
7973inline ::operations_research::MPModelProto_Annotation_TargetType MPModelProto_Annotation::_internal_target_type() const {
7974 ::google::protobuf::internal::TSanRead(&_impl_);
7975 return static_cast<::operations_research::MPModelProto_Annotation_TargetType>(_impl_.target_type_);
7976}
7977inline void MPModelProto_Annotation::_internal_set_target_type(::operations_research::MPModelProto_Annotation_TargetType value) {
7978 ::google::protobuf::internal::TSanWrite(&_impl_);
7979
7980 assert(::google::protobuf::internal::ValidateEnum(
7982 _impl_.target_type_ = value;
7983}
7984
7985// optional int32 target_index = 2;
7987 bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
7988 return value;
7989}
7991 ::google::protobuf::internal::TSanWrite(&_impl_);
7992 _impl_.target_index_ = 0;
7993 _impl_._has_bits_[0] &= ~0x00000010u;
7994}
7995inline ::int32_t MPModelProto_Annotation::target_index() const {
7996 // @@protoc_insertion_point(field_get:operations_research.MPModelProto.Annotation.target_index)
7997 return _internal_target_index();
7998}
7999inline void MPModelProto_Annotation::set_target_index(::int32_t value) {
8000 _internal_set_target_index(value);
8001 _impl_._has_bits_[0] |= 0x00000010u;
8002 // @@protoc_insertion_point(field_set:operations_research.MPModelProto.Annotation.target_index)
8003}
8004inline ::int32_t MPModelProto_Annotation::_internal_target_index() const {
8005 ::google::protobuf::internal::TSanRead(&_impl_);
8006 return _impl_.target_index_;
8007}
8008inline void MPModelProto_Annotation::_internal_set_target_index(::int32_t value) {
8009 ::google::protobuf::internal::TSanWrite(&_impl_);
8010 _impl_.target_index_ = value;
8011}
8012
8013// optional string target_name = 3;
8014inline bool MPModelProto_Annotation::has_target_name() const {
8015 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
8016 return value;
8017}
8019 ::google::protobuf::internal::TSanWrite(&_impl_);
8020 _impl_.target_name_.ClearToEmpty();
8021 _impl_._has_bits_[0] &= ~0x00000001u;
8022}
8023inline const ::std::string& MPModelProto_Annotation::target_name() const
8024 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8025 // @@protoc_insertion_point(field_get:operations_research.MPModelProto.Annotation.target_name)
8026 return _internal_target_name();
8028template <typename Arg_, typename... Args_>
8029PROTOBUF_ALWAYS_INLINE void MPModelProto_Annotation::set_target_name(Arg_&& arg, Args_... args) {
8030 ::google::protobuf::internal::TSanWrite(&_impl_);
8031 _impl_._has_bits_[0] |= 0x00000001u;
8032 _impl_.target_name_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
8033 // @@protoc_insertion_point(field_set:operations_research.MPModelProto.Annotation.target_name)
8034}
8035inline ::std::string* PROTOBUF_NONNULL MPModelProto_Annotation::mutable_target_name()
8036 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8037 ::std::string* _s = _internal_mutable_target_name();
8038 // @@protoc_insertion_point(field_mutable:operations_research.MPModelProto.Annotation.target_name)
8039 return _s;
8040}
8041inline const ::std::string& MPModelProto_Annotation::_internal_target_name() const {
8042 ::google::protobuf::internal::TSanRead(&_impl_);
8043 return _impl_.target_name_.Get();
8044}
8045inline void MPModelProto_Annotation::_internal_set_target_name(const ::std::string& value) {
8046 ::google::protobuf::internal::TSanWrite(&_impl_);
8047 _impl_._has_bits_[0] |= 0x00000001u;
8048 _impl_.target_name_.Set(value, GetArena());
8049}
8050inline ::std::string* PROTOBUF_NONNULL MPModelProto_Annotation::_internal_mutable_target_name() {
8051 ::google::protobuf::internal::TSanWrite(&_impl_);
8052 _impl_._has_bits_[0] |= 0x00000001u;
8053 return _impl_.target_name_.Mutable( GetArena());
8054}
8055inline ::std::string* PROTOBUF_NULLABLE MPModelProto_Annotation::release_target_name() {
8056 ::google::protobuf::internal::TSanWrite(&_impl_);
8057 // @@protoc_insertion_point(field_release:operations_research.MPModelProto.Annotation.target_name)
8058 if ((_impl_._has_bits_[0] & 0x00000001u) == 0) {
8059 return nullptr;
8061 _impl_._has_bits_[0] &= ~0x00000001u;
8062 auto* released = _impl_.target_name_.Release();
8063 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
8064 _impl_.target_name_.Set("", GetArena());
8065 }
8066 return released;
8067}
8068inline void MPModelProto_Annotation::set_allocated_target_name(::std::string* PROTOBUF_NULLABLE value) {
8069 ::google::protobuf::internal::TSanWrite(&_impl_);
8070 if (value != nullptr) {
8071 _impl_._has_bits_[0] |= 0x00000001u;
8072 } else {
8073 _impl_._has_bits_[0] &= ~0x00000001u;
8074 }
8075 _impl_.target_name_.SetAllocated(value, GetArena());
8076 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.target_name_.IsDefault()) {
8077 _impl_.target_name_.Set("", GetArena());
8078 }
8079 // @@protoc_insertion_point(field_set_allocated:operations_research.MPModelProto.Annotation.target_name)
8080}
8081
8082// optional string payload_key = 4;
8083inline bool MPModelProto_Annotation::has_payload_key() const {
8084 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
8085 return value;
8086}
8088 ::google::protobuf::internal::TSanWrite(&_impl_);
8089 _impl_.payload_key_.ClearToEmpty();
8090 _impl_._has_bits_[0] &= ~0x00000002u;
8091}
8092inline const ::std::string& MPModelProto_Annotation::payload_key() const
8093 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8094 // @@protoc_insertion_point(field_get:operations_research.MPModelProto.Annotation.payload_key)
8095 return _internal_payload_key();
8096}
8097template <typename Arg_, typename... Args_>
8098PROTOBUF_ALWAYS_INLINE void MPModelProto_Annotation::set_payload_key(Arg_&& arg, Args_... args) {
8099 ::google::protobuf::internal::TSanWrite(&_impl_);
8100 _impl_._has_bits_[0] |= 0x00000002u;
8101 _impl_.payload_key_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
8102 // @@protoc_insertion_point(field_set:operations_research.MPModelProto.Annotation.payload_key)
8103}
8104inline ::std::string* PROTOBUF_NONNULL MPModelProto_Annotation::mutable_payload_key()
8105 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8106 ::std::string* _s = _internal_mutable_payload_key();
8107 // @@protoc_insertion_point(field_mutable:operations_research.MPModelProto.Annotation.payload_key)
8108 return _s;
8109}
8110inline const ::std::string& MPModelProto_Annotation::_internal_payload_key() const {
8111 ::google::protobuf::internal::TSanRead(&_impl_);
8112 return _impl_.payload_key_.Get();
8113}
8114inline void MPModelProto_Annotation::_internal_set_payload_key(const ::std::string& value) {
8115 ::google::protobuf::internal::TSanWrite(&_impl_);
8116 _impl_._has_bits_[0] |= 0x00000002u;
8117 _impl_.payload_key_.Set(value, GetArena());
8118}
8119inline ::std::string* PROTOBUF_NONNULL MPModelProto_Annotation::_internal_mutable_payload_key() {
8120 ::google::protobuf::internal::TSanWrite(&_impl_);
8121 _impl_._has_bits_[0] |= 0x00000002u;
8122 return _impl_.payload_key_.Mutable( GetArena());
8123}
8124inline ::std::string* PROTOBUF_NULLABLE MPModelProto_Annotation::release_payload_key() {
8125 ::google::protobuf::internal::TSanWrite(&_impl_);
8126 // @@protoc_insertion_point(field_release:operations_research.MPModelProto.Annotation.payload_key)
8127 if ((_impl_._has_bits_[0] & 0x00000002u) == 0) {
8128 return nullptr;
8130 _impl_._has_bits_[0] &= ~0x00000002u;
8131 auto* released = _impl_.payload_key_.Release();
8132 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
8133 _impl_.payload_key_.Set("", GetArena());
8134 }
8135 return released;
8136}
8137inline void MPModelProto_Annotation::set_allocated_payload_key(::std::string* PROTOBUF_NULLABLE value) {
8138 ::google::protobuf::internal::TSanWrite(&_impl_);
8139 if (value != nullptr) {
8140 _impl_._has_bits_[0] |= 0x00000002u;
8141 } else {
8142 _impl_._has_bits_[0] &= ~0x00000002u;
8143 }
8144 _impl_.payload_key_.SetAllocated(value, GetArena());
8145 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.payload_key_.IsDefault()) {
8146 _impl_.payload_key_.Set("", GetArena());
8147 }
8148 // @@protoc_insertion_point(field_set_allocated:operations_research.MPModelProto.Annotation.payload_key)
8149}
8150
8151// optional string payload_value = 5;
8153 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
8154 return value;
8155}
8157 ::google::protobuf::internal::TSanWrite(&_impl_);
8158 _impl_.payload_value_.ClearToEmpty();
8159 _impl_._has_bits_[0] &= ~0x00000004u;
8160}
8161inline const ::std::string& MPModelProto_Annotation::payload_value() const
8162 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8163 // @@protoc_insertion_point(field_get:operations_research.MPModelProto.Annotation.payload_value)
8164 return _internal_payload_value();
8165}
8166template <typename Arg_, typename... Args_>
8167PROTOBUF_ALWAYS_INLINE void MPModelProto_Annotation::set_payload_value(Arg_&& arg, Args_... args) {
8168 ::google::protobuf::internal::TSanWrite(&_impl_);
8169 _impl_._has_bits_[0] |= 0x00000004u;
8170 _impl_.payload_value_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
8171 // @@protoc_insertion_point(field_set:operations_research.MPModelProto.Annotation.payload_value)
8172}
8173inline ::std::string* PROTOBUF_NONNULL MPModelProto_Annotation::mutable_payload_value()
8174 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8175 ::std::string* _s = _internal_mutable_payload_value();
8176 // @@protoc_insertion_point(field_mutable:operations_research.MPModelProto.Annotation.payload_value)
8177 return _s;
8178}
8179inline const ::std::string& MPModelProto_Annotation::_internal_payload_value() const {
8180 ::google::protobuf::internal::TSanRead(&_impl_);
8181 return _impl_.payload_value_.Get();
8182}
8183inline void MPModelProto_Annotation::_internal_set_payload_value(const ::std::string& value) {
8184 ::google::protobuf::internal::TSanWrite(&_impl_);
8185 _impl_._has_bits_[0] |= 0x00000004u;
8186 _impl_.payload_value_.Set(value, GetArena());
8187}
8188inline ::std::string* PROTOBUF_NONNULL MPModelProto_Annotation::_internal_mutable_payload_value() {
8189 ::google::protobuf::internal::TSanWrite(&_impl_);
8190 _impl_._has_bits_[0] |= 0x00000004u;
8191 return _impl_.payload_value_.Mutable( GetArena());
8192}
8193inline ::std::string* PROTOBUF_NULLABLE MPModelProto_Annotation::release_payload_value() {
8194 ::google::protobuf::internal::TSanWrite(&_impl_);
8195 // @@protoc_insertion_point(field_release:operations_research.MPModelProto.Annotation.payload_value)
8196 if ((_impl_._has_bits_[0] & 0x00000004u) == 0) {
8197 return nullptr;
8199 _impl_._has_bits_[0] &= ~0x00000004u;
8200 auto* released = _impl_.payload_value_.Release();
8201 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
8202 _impl_.payload_value_.Set("", GetArena());
8203 }
8204 return released;
8205}
8206inline void MPModelProto_Annotation::set_allocated_payload_value(::std::string* PROTOBUF_NULLABLE value) {
8207 ::google::protobuf::internal::TSanWrite(&_impl_);
8208 if (value != nullptr) {
8209 _impl_._has_bits_[0] |= 0x00000004u;
8210 } else {
8211 _impl_._has_bits_[0] &= ~0x00000004u;
8212 }
8213 _impl_.payload_value_.SetAllocated(value, GetArena());
8214 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.payload_value_.IsDefault()) {
8215 _impl_.payload_value_.Set("", GetArena());
8216 }
8217 // @@protoc_insertion_point(field_set_allocated:operations_research.MPModelProto.Annotation.payload_value)
8218}
8219
8220// -------------------------------------------------------------------
8221
8222// MPModelProto
8223
8224// repeated .operations_research.MPVariableProto variable = 3;
8225inline int MPModelProto::_internal_variable_size() const {
8226 return _internal_variable().size();
8227}
8228inline int MPModelProto::variable_size() const {
8229 return _internal_variable_size();
8231inline void MPModelProto::clear_variable() {
8232 ::google::protobuf::internal::TSanWrite(&_impl_);
8233 _impl_.variable_.Clear();
8234}
8235inline ::operations_research::MPVariableProto* PROTOBUF_NONNULL MPModelProto::mutable_variable(int index)
8236 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8237 // @@protoc_insertion_point(field_mutable:operations_research.MPModelProto.variable)
8238 return _internal_mutable_variable()->Mutable(index);
8239}
8240inline ::google::protobuf::RepeatedPtrField<::operations_research::MPVariableProto>* PROTOBUF_NONNULL MPModelProto::mutable_variable()
8241 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8242 // @@protoc_insertion_point(field_mutable_list:operations_research.MPModelProto.variable)
8243 ::google::protobuf::internal::TSanWrite(&_impl_);
8244 return _internal_mutable_variable();
8245}
8246inline const ::operations_research::MPVariableProto& MPModelProto::variable(int index) const
8247 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8248 // @@protoc_insertion_point(field_get:operations_research.MPModelProto.variable)
8249 return _internal_variable().Get(index);
8250}
8251inline ::operations_research::MPVariableProto* PROTOBUF_NONNULL MPModelProto::add_variable()
8252 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8253 ::google::protobuf::internal::TSanWrite(&_impl_);
8254 ::operations_research::MPVariableProto* _add = _internal_mutable_variable()->Add();
8255 // @@protoc_insertion_point(field_add:operations_research.MPModelProto.variable)
8256 return _add;
8257}
8258inline const ::google::protobuf::RepeatedPtrField<::operations_research::MPVariableProto>& MPModelProto::variable() const
8259 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8260 // @@protoc_insertion_point(field_list:operations_research.MPModelProto.variable)
8261 return _internal_variable();
8262}
8263inline const ::google::protobuf::RepeatedPtrField<::operations_research::MPVariableProto>&
8264MPModelProto::_internal_variable() const {
8265 ::google::protobuf::internal::TSanRead(&_impl_);
8266 return _impl_.variable_;
8267}
8268inline ::google::protobuf::RepeatedPtrField<::operations_research::MPVariableProto>* PROTOBUF_NONNULL
8269MPModelProto::_internal_mutable_variable() {
8270 ::google::protobuf::internal::TSanRead(&_impl_);
8271 return &_impl_.variable_;
8272}
8274// repeated .operations_research.MPConstraintProto constraint = 4;
8275inline int MPModelProto::_internal_constraint_size() const {
8276 return _internal_constraint().size();
8277}
8279 return _internal_constraint_size();
8280}
8281inline void MPModelProto::clear_constraint() {
8282 ::google::protobuf::internal::TSanWrite(&_impl_);
8283 _impl_.constraint_.Clear();
8285inline ::operations_research::MPConstraintProto* PROTOBUF_NONNULL MPModelProto::mutable_constraint(int index)
8286 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8287 // @@protoc_insertion_point(field_mutable:operations_research.MPModelProto.constraint)
8288 return _internal_mutable_constraint()->Mutable(index);
8290inline ::google::protobuf::RepeatedPtrField<::operations_research::MPConstraintProto>* PROTOBUF_NONNULL MPModelProto::mutable_constraint()
8291 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8292 // @@protoc_insertion_point(field_mutable_list:operations_research.MPModelProto.constraint)
8293 ::google::protobuf::internal::TSanWrite(&_impl_);
8294 return _internal_mutable_constraint();
8295}
8296inline const ::operations_research::MPConstraintProto& MPModelProto::constraint(int index) const
8297 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8298 // @@protoc_insertion_point(field_get:operations_research.MPModelProto.constraint)
8299 return _internal_constraint().Get(index);
8300}
8301inline ::operations_research::MPConstraintProto* PROTOBUF_NONNULL MPModelProto::add_constraint()
8302 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8303 ::google::protobuf::internal::TSanWrite(&_impl_);
8304 ::operations_research::MPConstraintProto* _add = _internal_mutable_constraint()->Add();
8305 // @@protoc_insertion_point(field_add:operations_research.MPModelProto.constraint)
8306 return _add;
8307}
8308inline const ::google::protobuf::RepeatedPtrField<::operations_research::MPConstraintProto>& MPModelProto::constraint() const
8309 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8310 // @@protoc_insertion_point(field_list:operations_research.MPModelProto.constraint)
8311 return _internal_constraint();
8312}
8313inline const ::google::protobuf::RepeatedPtrField<::operations_research::MPConstraintProto>&
8314MPModelProto::_internal_constraint() const {
8315 ::google::protobuf::internal::TSanRead(&_impl_);
8316 return _impl_.constraint_;
8317}
8318inline ::google::protobuf::RepeatedPtrField<::operations_research::MPConstraintProto>* PROTOBUF_NONNULL
8319MPModelProto::_internal_mutable_constraint() {
8320 ::google::protobuf::internal::TSanRead(&_impl_);
8321 return &_impl_.constraint_;
8322}
8324// repeated .operations_research.MPGeneralConstraintProto general_constraint = 7;
8325inline int MPModelProto::_internal_general_constraint_size() const {
8326 return _internal_general_constraint().size();
8327}
8329 return _internal_general_constraint_size();
8330}
8332 ::google::protobuf::internal::TSanWrite(&_impl_);
8333 _impl_.general_constraint_.Clear();
8335inline ::operations_research::MPGeneralConstraintProto* PROTOBUF_NONNULL MPModelProto::mutable_general_constraint(int index)
8336 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8337 // @@protoc_insertion_point(field_mutable:operations_research.MPModelProto.general_constraint)
8338 return _internal_mutable_general_constraint()->Mutable(index);
8340inline ::google::protobuf::RepeatedPtrField<::operations_research::MPGeneralConstraintProto>* PROTOBUF_NONNULL MPModelProto::mutable_general_constraint()
8341 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8342 // @@protoc_insertion_point(field_mutable_list:operations_research.MPModelProto.general_constraint)
8343 ::google::protobuf::internal::TSanWrite(&_impl_);
8344 return _internal_mutable_general_constraint();
8345}
8346inline const ::operations_research::MPGeneralConstraintProto& MPModelProto::general_constraint(int index) const
8347 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8348 // @@protoc_insertion_point(field_get:operations_research.MPModelProto.general_constraint)
8349 return _internal_general_constraint().Get(index);
8350}
8351inline ::operations_research::MPGeneralConstraintProto* PROTOBUF_NONNULL MPModelProto::add_general_constraint()
8352 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8353 ::google::protobuf::internal::TSanWrite(&_impl_);
8354 ::operations_research::MPGeneralConstraintProto* _add = _internal_mutable_general_constraint()->Add();
8355 // @@protoc_insertion_point(field_add:operations_research.MPModelProto.general_constraint)
8356 return _add;
8357}
8358inline const ::google::protobuf::RepeatedPtrField<::operations_research::MPGeneralConstraintProto>& MPModelProto::general_constraint() const
8359 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8360 // @@protoc_insertion_point(field_list:operations_research.MPModelProto.general_constraint)
8361 return _internal_general_constraint();
8362}
8363inline const ::google::protobuf::RepeatedPtrField<::operations_research::MPGeneralConstraintProto>&
8364MPModelProto::_internal_general_constraint() const {
8365 ::google::protobuf::internal::TSanRead(&_impl_);
8366 return _impl_.general_constraint_;
8367}
8368inline ::google::protobuf::RepeatedPtrField<::operations_research::MPGeneralConstraintProto>* PROTOBUF_NONNULL
8369MPModelProto::_internal_mutable_general_constraint() {
8370 ::google::protobuf::internal::TSanRead(&_impl_);
8371 return &_impl_.general_constraint_;
8372}
8374// optional bool maximize = 1 [default = false];
8375inline bool MPModelProto::has_maximize() const {
8376 bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
8377 return value;
8379inline void MPModelProto::clear_maximize() {
8380 ::google::protobuf::internal::TSanWrite(&_impl_);
8381 _impl_.maximize_ = false;
8382 _impl_._has_bits_[0] &= ~0x00000010u;
8383}
8384inline bool MPModelProto::maximize() const {
8385 // @@protoc_insertion_point(field_get:operations_research.MPModelProto.maximize)
8386 return _internal_maximize();
8387}
8388inline void MPModelProto::set_maximize(bool value) {
8389 _internal_set_maximize(value);
8390 _impl_._has_bits_[0] |= 0x00000010u;
8391 // @@protoc_insertion_point(field_set:operations_research.MPModelProto.maximize)
8392}
8393inline bool MPModelProto::_internal_maximize() const {
8394 ::google::protobuf::internal::TSanRead(&_impl_);
8395 return _impl_.maximize_;
8397inline void MPModelProto::_internal_set_maximize(bool value) {
8398 ::google::protobuf::internal::TSanWrite(&_impl_);
8399 _impl_.maximize_ = value;
8400}
8401
8402// optional double objective_offset = 2 [default = 0];
8403inline bool MPModelProto::has_objective_offset() const {
8404 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
8405 return value;
8406}
8408 ::google::protobuf::internal::TSanWrite(&_impl_);
8409 _impl_.objective_offset_ = 0;
8410 _impl_._has_bits_[0] &= ~0x00000008u;
8411}
8412inline double MPModelProto::objective_offset() const {
8413 // @@protoc_insertion_point(field_get:operations_research.MPModelProto.objective_offset)
8414 return _internal_objective_offset();
8415}
8416inline void MPModelProto::set_objective_offset(double value) {
8417 _internal_set_objective_offset(value);
8418 _impl_._has_bits_[0] |= 0x00000008u;
8419 // @@protoc_insertion_point(field_set:operations_research.MPModelProto.objective_offset)
8420}
8421inline double MPModelProto::_internal_objective_offset() const {
8422 ::google::protobuf::internal::TSanRead(&_impl_);
8423 return _impl_.objective_offset_;
8424}
8425inline void MPModelProto::_internal_set_objective_offset(double value) {
8426 ::google::protobuf::internal::TSanWrite(&_impl_);
8427 _impl_.objective_offset_ = value;
8428}
8429
8430// optional .operations_research.MPQuadraticObjective quadratic_objective = 8;
8431inline bool MPModelProto::has_quadratic_objective() const {
8432 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
8433 PROTOBUF_ASSUME(!value || _impl_.quadratic_objective_ != nullptr);
8434 return value;
8435}
8437 ::google::protobuf::internal::TSanWrite(&_impl_);
8438 if (_impl_.quadratic_objective_ != nullptr) _impl_.quadratic_objective_->Clear();
8439 _impl_._has_bits_[0] &= ~0x00000004u;
8440}
8441inline const ::operations_research::MPQuadraticObjective& MPModelProto::_internal_quadratic_objective() const {
8442 ::google::protobuf::internal::TSanRead(&_impl_);
8443 const ::operations_research::MPQuadraticObjective* p = _impl_.quadratic_objective_;
8446inline const ::operations_research::MPQuadraticObjective& MPModelProto::quadratic_objective() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
8447 // @@protoc_insertion_point(field_get:operations_research.MPModelProto.quadratic_objective)
8448 return _internal_quadratic_objective();
8449}
8451 ::operations_research::MPQuadraticObjective* PROTOBUF_NULLABLE value) {
8452 ::google::protobuf::internal::TSanWrite(&_impl_);
8453 if (GetArena() == nullptr) {
8454 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.quadratic_objective_);
8455 }
8456 _impl_.quadratic_objective_ = reinterpret_cast<::operations_research::MPQuadraticObjective*>(value);
8457 if (value != nullptr) {
8458 _impl_._has_bits_[0] |= 0x00000004u;
8459 } else {
8460 _impl_._has_bits_[0] &= ~0x00000004u;
8461 }
8462 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.MPModelProto.quadratic_objective)
8463}
8464inline ::operations_research::MPQuadraticObjective* PROTOBUF_NULLABLE MPModelProto::release_quadratic_objective() {
8465 ::google::protobuf::internal::TSanWrite(&_impl_);
8466
8467 _impl_._has_bits_[0] &= ~0x00000004u;
8468 ::operations_research::MPQuadraticObjective* released = _impl_.quadratic_objective_;
8469 _impl_.quadratic_objective_ = nullptr;
8470 if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
8471 auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
8472 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
8473 if (GetArena() == nullptr) {
8474 delete old;
8475 }
8476 } else {
8477 if (GetArena() != nullptr) {
8478 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
8479 }
8480 }
8481 return released;
8482}
8483inline ::operations_research::MPQuadraticObjective* PROTOBUF_NULLABLE MPModelProto::unsafe_arena_release_quadratic_objective() {
8484 ::google::protobuf::internal::TSanWrite(&_impl_);
8485 // @@protoc_insertion_point(field_release:operations_research.MPModelProto.quadratic_objective)
8486
8487 _impl_._has_bits_[0] &= ~0x00000004u;
8489 _impl_.quadratic_objective_ = nullptr;
8490 return temp;
8491}
8492inline ::operations_research::MPQuadraticObjective* PROTOBUF_NONNULL MPModelProto::_internal_mutable_quadratic_objective() {
8493 ::google::protobuf::internal::TSanWrite(&_impl_);
8494 if (_impl_.quadratic_objective_ == nullptr) {
8495 auto* p = ::google::protobuf::Message::DefaultConstruct<::operations_research::MPQuadraticObjective>(GetArena());
8496 _impl_.quadratic_objective_ = reinterpret_cast<::operations_research::MPQuadraticObjective*>(p);
8497 }
8498 return _impl_.quadratic_objective_;
8499}
8500inline ::operations_research::MPQuadraticObjective* PROTOBUF_NONNULL MPModelProto::mutable_quadratic_objective()
8501 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8502 _impl_._has_bits_[0] |= 0x00000004u;
8503 ::operations_research::MPQuadraticObjective* _msg = _internal_mutable_quadratic_objective();
8504 // @@protoc_insertion_point(field_mutable:operations_research.MPModelProto.quadratic_objective)
8505 return _msg;
8506}
8508 ::google::protobuf::Arena* message_arena = GetArena();
8509 ::google::protobuf::internal::TSanWrite(&_impl_);
8510 if (message_arena == nullptr) {
8511 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.quadratic_objective_);
8512 }
8513
8514 if (value != nullptr) {
8515 ::google::protobuf::Arena* submessage_arena = value->GetArena();
8516 if (message_arena != submessage_arena) {
8517 value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
8518 }
8519 _impl_._has_bits_[0] |= 0x00000004u;
8520 } else {
8521 _impl_._has_bits_[0] &= ~0x00000004u;
8522 }
8523
8524 _impl_.quadratic_objective_ = reinterpret_cast<::operations_research::MPQuadraticObjective*>(value);
8525 // @@protoc_insertion_point(field_set_allocated:operations_research.MPModelProto.quadratic_objective)
8526}
8527
8528// optional string name = 5 [default = ""];
8529inline bool MPModelProto::has_name() const {
8530 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
8531 return value;
8532}
8533inline void MPModelProto::clear_name() {
8534 ::google::protobuf::internal::TSanWrite(&_impl_);
8535 _impl_.name_.ClearToEmpty();
8536 _impl_._has_bits_[0] &= ~0x00000001u;
8537}
8538inline const ::std::string& MPModelProto::name() const
8539 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8540 // @@protoc_insertion_point(field_get:operations_research.MPModelProto.name)
8541 return _internal_name();
8542}
8543template <typename Arg_, typename... Args_>
8544PROTOBUF_ALWAYS_INLINE void MPModelProto::set_name(Arg_&& arg, Args_... args) {
8545 ::google::protobuf::internal::TSanWrite(&_impl_);
8546 _impl_._has_bits_[0] |= 0x00000001u;
8547 _impl_.name_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
8548 // @@protoc_insertion_point(field_set:operations_research.MPModelProto.name)
8549}
8550inline ::std::string* PROTOBUF_NONNULL MPModelProto::mutable_name()
8551 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8552 ::std::string* _s = _internal_mutable_name();
8553 // @@protoc_insertion_point(field_mutable:operations_research.MPModelProto.name)
8554 return _s;
8555}
8556inline const ::std::string& MPModelProto::_internal_name() const {
8557 ::google::protobuf::internal::TSanRead(&_impl_);
8558 return _impl_.name_.Get();
8559}
8560inline void MPModelProto::_internal_set_name(const ::std::string& value) {
8561 ::google::protobuf::internal::TSanWrite(&_impl_);
8562 _impl_._has_bits_[0] |= 0x00000001u;
8563 _impl_.name_.Set(value, GetArena());
8564}
8565inline ::std::string* PROTOBUF_NONNULL MPModelProto::_internal_mutable_name() {
8566 ::google::protobuf::internal::TSanWrite(&_impl_);
8567 _impl_._has_bits_[0] |= 0x00000001u;
8568 return _impl_.name_.Mutable( GetArena());
8569}
8570inline ::std::string* PROTOBUF_NULLABLE MPModelProto::release_name() {
8571 ::google::protobuf::internal::TSanWrite(&_impl_);
8572 // @@protoc_insertion_point(field_release:operations_research.MPModelProto.name)
8573 if ((_impl_._has_bits_[0] & 0x00000001u) == 0) {
8574 return nullptr;
8575 }
8576 _impl_._has_bits_[0] &= ~0x00000001u;
8577 auto* released = _impl_.name_.Release();
8578 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
8579 _impl_.name_.Set("", GetArena());
8580 }
8581 return released;
8583inline void MPModelProto::set_allocated_name(::std::string* PROTOBUF_NULLABLE value) {
8584 ::google::protobuf::internal::TSanWrite(&_impl_);
8585 if (value != nullptr) {
8586 _impl_._has_bits_[0] |= 0x00000001u;
8587 } else {
8588 _impl_._has_bits_[0] &= ~0x00000001u;
8589 }
8590 _impl_.name_.SetAllocated(value, GetArena());
8591 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) {
8592 _impl_.name_.Set("", GetArena());
8593 }
8594 // @@protoc_insertion_point(field_set_allocated:operations_research.MPModelProto.name)
8595}
8596
8597// optional .operations_research.PartialVariableAssignment solution_hint = 6;
8598inline bool MPModelProto::has_solution_hint() const {
8599 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
8600 PROTOBUF_ASSUME(!value || _impl_.solution_hint_ != nullptr);
8601 return value;
8602}
8604 ::google::protobuf::internal::TSanWrite(&_impl_);
8605 if (_impl_.solution_hint_ != nullptr) _impl_.solution_hint_->Clear();
8606 _impl_._has_bits_[0] &= ~0x00000002u;
8607}
8608inline const ::operations_research::PartialVariableAssignment& MPModelProto::_internal_solution_hint() const {
8609 ::google::protobuf::internal::TSanRead(&_impl_);
8610 const ::operations_research::PartialVariableAssignment* p = _impl_.solution_hint_;
8612}
8613inline const ::operations_research::PartialVariableAssignment& MPModelProto::solution_hint() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
8614 // @@protoc_insertion_point(field_get:operations_research.MPModelProto.solution_hint)
8615 return _internal_solution_hint();
8616}
8618 ::operations_research::PartialVariableAssignment* PROTOBUF_NULLABLE value) {
8619 ::google::protobuf::internal::TSanWrite(&_impl_);
8620 if (GetArena() == nullptr) {
8621 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.solution_hint_);
8622 }
8623 _impl_.solution_hint_ = reinterpret_cast<::operations_research::PartialVariableAssignment*>(value);
8624 if (value != nullptr) {
8625 _impl_._has_bits_[0] |= 0x00000002u;
8626 } else {
8627 _impl_._has_bits_[0] &= ~0x00000002u;
8628 }
8629 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.MPModelProto.solution_hint)
8630}
8631inline ::operations_research::PartialVariableAssignment* PROTOBUF_NULLABLE MPModelProto::release_solution_hint() {
8632 ::google::protobuf::internal::TSanWrite(&_impl_);
8633
8634 _impl_._has_bits_[0] &= ~0x00000002u;
8635 ::operations_research::PartialVariableAssignment* released = _impl_.solution_hint_;
8636 _impl_.solution_hint_ = nullptr;
8637 if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
8638 auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
8639 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
8640 if (GetArena() == nullptr) {
8641 delete old;
8642 }
8643 } else {
8644 if (GetArena() != nullptr) {
8645 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
8646 }
8647 }
8648 return released;
8649}
8650inline ::operations_research::PartialVariableAssignment* PROTOBUF_NULLABLE MPModelProto::unsafe_arena_release_solution_hint() {
8651 ::google::protobuf::internal::TSanWrite(&_impl_);
8652 // @@protoc_insertion_point(field_release:operations_research.MPModelProto.solution_hint)
8653
8654 _impl_._has_bits_[0] &= ~0x00000002u;
8656 _impl_.solution_hint_ = nullptr;
8657 return temp;
8658}
8659inline ::operations_research::PartialVariableAssignment* PROTOBUF_NONNULL MPModelProto::_internal_mutable_solution_hint() {
8660 ::google::protobuf::internal::TSanWrite(&_impl_);
8661 if (_impl_.solution_hint_ == nullptr) {
8662 auto* p = ::google::protobuf::Message::DefaultConstruct<::operations_research::PartialVariableAssignment>(GetArena());
8663 _impl_.solution_hint_ = reinterpret_cast<::operations_research::PartialVariableAssignment*>(p);
8664 }
8665 return _impl_.solution_hint_;
8666}
8667inline ::operations_research::PartialVariableAssignment* PROTOBUF_NONNULL MPModelProto::mutable_solution_hint()
8668 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8669 _impl_._has_bits_[0] |= 0x00000002u;
8670 ::operations_research::PartialVariableAssignment* _msg = _internal_mutable_solution_hint();
8671 // @@protoc_insertion_point(field_mutable:operations_research.MPModelProto.solution_hint)
8672 return _msg;
8673}
8675 ::google::protobuf::Arena* message_arena = GetArena();
8676 ::google::protobuf::internal::TSanWrite(&_impl_);
8677 if (message_arena == nullptr) {
8678 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.solution_hint_);
8679 }
8680
8681 if (value != nullptr) {
8682 ::google::protobuf::Arena* submessage_arena = value->GetArena();
8683 if (message_arena != submessage_arena) {
8684 value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
8685 }
8686 _impl_._has_bits_[0] |= 0x00000002u;
8687 } else {
8688 _impl_._has_bits_[0] &= ~0x00000002u;
8689 }
8690
8691 _impl_.solution_hint_ = reinterpret_cast<::operations_research::PartialVariableAssignment*>(value);
8692 // @@protoc_insertion_point(field_set_allocated:operations_research.MPModelProto.solution_hint)
8693}
8694
8695// repeated .operations_research.MPModelProto.Annotation annotation = 9;
8696inline int MPModelProto::_internal_annotation_size() const {
8697 return _internal_annotation().size();
8698}
8699inline int MPModelProto::annotation_size() const {
8700 return _internal_annotation_size();
8701}
8702inline void MPModelProto::clear_annotation() {
8703 ::google::protobuf::internal::TSanWrite(&_impl_);
8704 _impl_.annotation_.Clear();
8706inline ::operations_research::MPModelProto_Annotation* PROTOBUF_NONNULL MPModelProto::mutable_annotation(int index)
8707 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8708 // @@protoc_insertion_point(field_mutable:operations_research.MPModelProto.annotation)
8709 return _internal_mutable_annotation()->Mutable(index);
8710}
8711inline ::google::protobuf::RepeatedPtrField<::operations_research::MPModelProto_Annotation>* PROTOBUF_NONNULL MPModelProto::mutable_annotation()
8712 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8713 // @@protoc_insertion_point(field_mutable_list:operations_research.MPModelProto.annotation)
8714 ::google::protobuf::internal::TSanWrite(&_impl_);
8715 return _internal_mutable_annotation();
8716}
8717inline const ::operations_research::MPModelProto_Annotation& MPModelProto::annotation(int index) const
8718 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8719 // @@protoc_insertion_point(field_get:operations_research.MPModelProto.annotation)
8720 return _internal_annotation().Get(index);
8721}
8722inline ::operations_research::MPModelProto_Annotation* PROTOBUF_NONNULL MPModelProto::add_annotation()
8723 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8724 ::google::protobuf::internal::TSanWrite(&_impl_);
8725 ::operations_research::MPModelProto_Annotation* _add = _internal_mutable_annotation()->Add();
8726 // @@protoc_insertion_point(field_add:operations_research.MPModelProto.annotation)
8727 return _add;
8728}
8729inline const ::google::protobuf::RepeatedPtrField<::operations_research::MPModelProto_Annotation>& MPModelProto::annotation() const
8730 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8731 // @@protoc_insertion_point(field_list:operations_research.MPModelProto.annotation)
8732 return _internal_annotation();
8733}
8734inline const ::google::protobuf::RepeatedPtrField<::operations_research::MPModelProto_Annotation>&
8735MPModelProto::_internal_annotation() const {
8736 ::google::protobuf::internal::TSanRead(&_impl_);
8737 return _impl_.annotation_;
8738}
8739inline ::google::protobuf::RepeatedPtrField<::operations_research::MPModelProto_Annotation>* PROTOBUF_NONNULL
8740MPModelProto::_internal_mutable_annotation() {
8741 ::google::protobuf::internal::TSanRead(&_impl_);
8742 return &_impl_.annotation_;
8743}
8745// -------------------------------------------------------------------
8746
8747// OptionalDouble
8748
8749// optional double value = 1;
8750inline bool OptionalDouble::has_value() const {
8751 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
8752 return value;
8753}
8754inline void OptionalDouble::clear_value() {
8755 ::google::protobuf::internal::TSanWrite(&_impl_);
8756 _impl_.value_ = 0;
8757 _impl_._has_bits_[0] &= ~0x00000001u;
8758}
8759inline double OptionalDouble::value() const {
8760 // @@protoc_insertion_point(field_get:operations_research.OptionalDouble.value)
8761 return _internal_value();
8762}
8763inline void OptionalDouble::set_value(double value) {
8764 _internal_set_value(value);
8765 _impl_._has_bits_[0] |= 0x00000001u;
8766 // @@protoc_insertion_point(field_set:operations_research.OptionalDouble.value)
8768inline double OptionalDouble::_internal_value() const {
8769 ::google::protobuf::internal::TSanRead(&_impl_);
8770 return _impl_.value_;
8771}
8772inline void OptionalDouble::_internal_set_value(double value) {
8773 ::google::protobuf::internal::TSanWrite(&_impl_);
8774 _impl_.value_ = value;
8775}
8776
8777// -------------------------------------------------------------------
8778
8779// MPSolverCommonParameters
8780
8781// optional .operations_research.OptionalDouble relative_mip_gap = 1;
8783 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
8784 PROTOBUF_ASSUME(!value || _impl_.relative_mip_gap_ != nullptr);
8785 return value;
8786}
8788 ::google::protobuf::internal::TSanWrite(&_impl_);
8789 if (_impl_.relative_mip_gap_ != nullptr) _impl_.relative_mip_gap_->Clear();
8790 _impl_._has_bits_[0] &= ~0x00000001u;
8791}
8792inline const ::operations_research::OptionalDouble& MPSolverCommonParameters::_internal_relative_mip_gap() const {
8793 ::google::protobuf::internal::TSanRead(&_impl_);
8794 const ::operations_research::OptionalDouble* p = _impl_.relative_mip_gap_;
8795 return p != nullptr ? *p : reinterpret_cast<const ::operations_research::OptionalDouble&>(::operations_research::_OptionalDouble_default_instance_);
8796}
8797inline const ::operations_research::OptionalDouble& MPSolverCommonParameters::relative_mip_gap() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
8798 // @@protoc_insertion_point(field_get:operations_research.MPSolverCommonParameters.relative_mip_gap)
8799 return _internal_relative_mip_gap();
8800}
8803 ::google::protobuf::internal::TSanWrite(&_impl_);
8804 if (GetArena() == nullptr) {
8805 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.relative_mip_gap_);
8806 }
8807 _impl_.relative_mip_gap_ = reinterpret_cast<::operations_research::OptionalDouble*>(value);
8808 if (value != nullptr) {
8809 _impl_._has_bits_[0] |= 0x00000001u;
8810 } else {
8811 _impl_._has_bits_[0] &= ~0x00000001u;
8812 }
8813 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.MPSolverCommonParameters.relative_mip_gap)
8814}
8815inline ::operations_research::OptionalDouble* PROTOBUF_NULLABLE MPSolverCommonParameters::release_relative_mip_gap() {
8816 ::google::protobuf::internal::TSanWrite(&_impl_);
8817
8818 _impl_._has_bits_[0] &= ~0x00000001u;
8819 ::operations_research::OptionalDouble* released = _impl_.relative_mip_gap_;
8820 _impl_.relative_mip_gap_ = nullptr;
8821 if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
8822 auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
8823 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
8824 if (GetArena() == nullptr) {
8825 delete old;
8826 }
8827 } else {
8828 if (GetArena() != nullptr) {
8829 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
8830 }
8831 }
8832 return released;
8833}
8834inline ::operations_research::OptionalDouble* PROTOBUF_NULLABLE MPSolverCommonParameters::unsafe_arena_release_relative_mip_gap() {
8835 ::google::protobuf::internal::TSanWrite(&_impl_);
8836 // @@protoc_insertion_point(field_release:operations_research.MPSolverCommonParameters.relative_mip_gap)
8838 _impl_._has_bits_[0] &= ~0x00000001u;
8839 ::operations_research::OptionalDouble* temp = _impl_.relative_mip_gap_;
8840 _impl_.relative_mip_gap_ = nullptr;
8841 return temp;
8842}
8843inline ::operations_research::OptionalDouble* PROTOBUF_NONNULL MPSolverCommonParameters::_internal_mutable_relative_mip_gap() {
8844 ::google::protobuf::internal::TSanWrite(&_impl_);
8845 if (_impl_.relative_mip_gap_ == nullptr) {
8846 auto* p = ::google::protobuf::Message::DefaultConstruct<::operations_research::OptionalDouble>(GetArena());
8847 _impl_.relative_mip_gap_ = reinterpret_cast<::operations_research::OptionalDouble*>(p);
8848 }
8849 return _impl_.relative_mip_gap_;
8850}
8851inline ::operations_research::OptionalDouble* PROTOBUF_NONNULL MPSolverCommonParameters::mutable_relative_mip_gap()
8852 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8853 _impl_._has_bits_[0] |= 0x00000001u;
8854 ::operations_research::OptionalDouble* _msg = _internal_mutable_relative_mip_gap();
8855 // @@protoc_insertion_point(field_mutable:operations_research.MPSolverCommonParameters.relative_mip_gap)
8856 return _msg;
8857}
8859 ::google::protobuf::Arena* message_arena = GetArena();
8860 ::google::protobuf::internal::TSanWrite(&_impl_);
8861 if (message_arena == nullptr) {
8862 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.relative_mip_gap_);
8863 }
8864
8865 if (value != nullptr) {
8866 ::google::protobuf::Arena* submessage_arena = value->GetArena();
8867 if (message_arena != submessage_arena) {
8868 value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
8869 }
8870 _impl_._has_bits_[0] |= 0x00000001u;
8871 } else {
8872 _impl_._has_bits_[0] &= ~0x00000001u;
8873 }
8875 _impl_.relative_mip_gap_ = reinterpret_cast<::operations_research::OptionalDouble*>(value);
8876 // @@protoc_insertion_point(field_set_allocated:operations_research.MPSolverCommonParameters.relative_mip_gap)
8877}
8878
8879// optional .operations_research.OptionalDouble primal_tolerance = 2;
8881 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
8882 PROTOBUF_ASSUME(!value || _impl_.primal_tolerance_ != nullptr);
8883 return value;
8884}
8886 ::google::protobuf::internal::TSanWrite(&_impl_);
8887 if (_impl_.primal_tolerance_ != nullptr) _impl_.primal_tolerance_->Clear();
8888 _impl_._has_bits_[0] &= ~0x00000002u;
8889}
8890inline const ::operations_research::OptionalDouble& MPSolverCommonParameters::_internal_primal_tolerance() const {
8891 ::google::protobuf::internal::TSanRead(&_impl_);
8892 const ::operations_research::OptionalDouble* p = _impl_.primal_tolerance_;
8893 return p != nullptr ? *p : reinterpret_cast<const ::operations_research::OptionalDouble&>(::operations_research::_OptionalDouble_default_instance_);
8894}
8895inline const ::operations_research::OptionalDouble& MPSolverCommonParameters::primal_tolerance() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
8896 // @@protoc_insertion_point(field_get:operations_research.MPSolverCommonParameters.primal_tolerance)
8897 return _internal_primal_tolerance();
8900 ::operations_research::OptionalDouble* PROTOBUF_NULLABLE value) {
8901 ::google::protobuf::internal::TSanWrite(&_impl_);
8902 if (GetArena() == nullptr) {
8903 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.primal_tolerance_);
8904 }
8905 _impl_.primal_tolerance_ = reinterpret_cast<::operations_research::OptionalDouble*>(value);
8906 if (value != nullptr) {
8907 _impl_._has_bits_[0] |= 0x00000002u;
8908 } else {
8909 _impl_._has_bits_[0] &= ~0x00000002u;
8910 }
8911 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.MPSolverCommonParameters.primal_tolerance)
8912}
8913inline ::operations_research::OptionalDouble* PROTOBUF_NULLABLE MPSolverCommonParameters::release_primal_tolerance() {
8914 ::google::protobuf::internal::TSanWrite(&_impl_);
8915
8916 _impl_._has_bits_[0] &= ~0x00000002u;
8917 ::operations_research::OptionalDouble* released = _impl_.primal_tolerance_;
8918 _impl_.primal_tolerance_ = nullptr;
8919 if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
8920 auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
8921 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
8922 if (GetArena() == nullptr) {
8923 delete old;
8924 }
8925 } else {
8926 if (GetArena() != nullptr) {
8927 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
8928 }
8929 }
8930 return released;
8931}
8932inline ::operations_research::OptionalDouble* PROTOBUF_NULLABLE MPSolverCommonParameters::unsafe_arena_release_primal_tolerance() {
8933 ::google::protobuf::internal::TSanWrite(&_impl_);
8934 // @@protoc_insertion_point(field_release:operations_research.MPSolverCommonParameters.primal_tolerance)
8936 _impl_._has_bits_[0] &= ~0x00000002u;
8937 ::operations_research::OptionalDouble* temp = _impl_.primal_tolerance_;
8938 _impl_.primal_tolerance_ = nullptr;
8939 return temp;
8940}
8941inline ::operations_research::OptionalDouble* PROTOBUF_NONNULL MPSolverCommonParameters::_internal_mutable_primal_tolerance() {
8942 ::google::protobuf::internal::TSanWrite(&_impl_);
8943 if (_impl_.primal_tolerance_ == nullptr) {
8944 auto* p = ::google::protobuf::Message::DefaultConstruct<::operations_research::OptionalDouble>(GetArena());
8945 _impl_.primal_tolerance_ = reinterpret_cast<::operations_research::OptionalDouble*>(p);
8946 }
8947 return _impl_.primal_tolerance_;
8948}
8949inline ::operations_research::OptionalDouble* PROTOBUF_NONNULL MPSolverCommonParameters::mutable_primal_tolerance()
8950 ABSL_ATTRIBUTE_LIFETIME_BOUND {
8951 _impl_._has_bits_[0] |= 0x00000002u;
8952 ::operations_research::OptionalDouble* _msg = _internal_mutable_primal_tolerance();
8953 // @@protoc_insertion_point(field_mutable:operations_research.MPSolverCommonParameters.primal_tolerance)
8954 return _msg;
8955}
8957 ::google::protobuf::Arena* message_arena = GetArena();
8958 ::google::protobuf::internal::TSanWrite(&_impl_);
8959 if (message_arena == nullptr) {
8960 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.primal_tolerance_);
8961 }
8962
8963 if (value != nullptr) {
8964 ::google::protobuf::Arena* submessage_arena = value->GetArena();
8965 if (message_arena != submessage_arena) {
8966 value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
8967 }
8968 _impl_._has_bits_[0] |= 0x00000002u;
8969 } else {
8970 _impl_._has_bits_[0] &= ~0x00000002u;
8971 }
8973 _impl_.primal_tolerance_ = reinterpret_cast<::operations_research::OptionalDouble*>(value);
8974 // @@protoc_insertion_point(field_set_allocated:operations_research.MPSolverCommonParameters.primal_tolerance)
8975}
8976
8977// optional .operations_research.OptionalDouble dual_tolerance = 3;
8979 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
8980 PROTOBUF_ASSUME(!value || _impl_.dual_tolerance_ != nullptr);
8981 return value;
8982}
8984 ::google::protobuf::internal::TSanWrite(&_impl_);
8985 if (_impl_.dual_tolerance_ != nullptr) _impl_.dual_tolerance_->Clear();
8986 _impl_._has_bits_[0] &= ~0x00000004u;
8987}
8988inline const ::operations_research::OptionalDouble& MPSolverCommonParameters::_internal_dual_tolerance() const {
8989 ::google::protobuf::internal::TSanRead(&_impl_);
8990 const ::operations_research::OptionalDouble* p = _impl_.dual_tolerance_;
8991 return p != nullptr ? *p : reinterpret_cast<const ::operations_research::OptionalDouble&>(::operations_research::_OptionalDouble_default_instance_);
8992}
8993inline const ::operations_research::OptionalDouble& MPSolverCommonParameters::dual_tolerance() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
8994 // @@protoc_insertion_point(field_get:operations_research.MPSolverCommonParameters.dual_tolerance)
8995 return _internal_dual_tolerance();
8998 ::operations_research::OptionalDouble* PROTOBUF_NULLABLE value) {
8999 ::google::protobuf::internal::TSanWrite(&_impl_);
9000 if (GetArena() == nullptr) {
9001 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.dual_tolerance_);
9002 }
9003 _impl_.dual_tolerance_ = reinterpret_cast<::operations_research::OptionalDouble*>(value);
9004 if (value != nullptr) {
9005 _impl_._has_bits_[0] |= 0x00000004u;
9006 } else {
9007 _impl_._has_bits_[0] &= ~0x00000004u;
9008 }
9009 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.MPSolverCommonParameters.dual_tolerance)
9010}
9011inline ::operations_research::OptionalDouble* PROTOBUF_NULLABLE MPSolverCommonParameters::release_dual_tolerance() {
9012 ::google::protobuf::internal::TSanWrite(&_impl_);
9013
9014 _impl_._has_bits_[0] &= ~0x00000004u;
9015 ::operations_research::OptionalDouble* released = _impl_.dual_tolerance_;
9016 _impl_.dual_tolerance_ = nullptr;
9017 if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
9018 auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
9019 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
9020 if (GetArena() == nullptr) {
9021 delete old;
9022 }
9023 } else {
9024 if (GetArena() != nullptr) {
9025 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
9026 }
9027 }
9028 return released;
9029}
9030inline ::operations_research::OptionalDouble* PROTOBUF_NULLABLE MPSolverCommonParameters::unsafe_arena_release_dual_tolerance() {
9031 ::google::protobuf::internal::TSanWrite(&_impl_);
9032 // @@protoc_insertion_point(field_release:operations_research.MPSolverCommonParameters.dual_tolerance)
9034 _impl_._has_bits_[0] &= ~0x00000004u;
9035 ::operations_research::OptionalDouble* temp = _impl_.dual_tolerance_;
9036 _impl_.dual_tolerance_ = nullptr;
9037 return temp;
9038}
9039inline ::operations_research::OptionalDouble* PROTOBUF_NONNULL MPSolverCommonParameters::_internal_mutable_dual_tolerance() {
9040 ::google::protobuf::internal::TSanWrite(&_impl_);
9041 if (_impl_.dual_tolerance_ == nullptr) {
9042 auto* p = ::google::protobuf::Message::DefaultConstruct<::operations_research::OptionalDouble>(GetArena());
9043 _impl_.dual_tolerance_ = reinterpret_cast<::operations_research::OptionalDouble*>(p);
9044 }
9045 return _impl_.dual_tolerance_;
9046}
9047inline ::operations_research::OptionalDouble* PROTOBUF_NONNULL MPSolverCommonParameters::mutable_dual_tolerance()
9048 ABSL_ATTRIBUTE_LIFETIME_BOUND {
9049 _impl_._has_bits_[0] |= 0x00000004u;
9050 ::operations_research::OptionalDouble* _msg = _internal_mutable_dual_tolerance();
9051 // @@protoc_insertion_point(field_mutable:operations_research.MPSolverCommonParameters.dual_tolerance)
9052 return _msg;
9053}
9055 ::google::protobuf::Arena* message_arena = GetArena();
9056 ::google::protobuf::internal::TSanWrite(&_impl_);
9057 if (message_arena == nullptr) {
9058 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.dual_tolerance_);
9059 }
9060
9061 if (value != nullptr) {
9062 ::google::protobuf::Arena* submessage_arena = value->GetArena();
9063 if (message_arena != submessage_arena) {
9064 value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
9065 }
9066 _impl_._has_bits_[0] |= 0x00000004u;
9067 } else {
9068 _impl_._has_bits_[0] &= ~0x00000004u;
9069 }
9071 _impl_.dual_tolerance_ = reinterpret_cast<::operations_research::OptionalDouble*>(value);
9072 // @@protoc_insertion_point(field_set_allocated:operations_research.MPSolverCommonParameters.dual_tolerance)
9073}
9074
9075// optional .operations_research.MPSolverCommonParameters.LPAlgorithmValues lp_algorithm = 4 [default = LP_ALGO_UNSPECIFIED];
9077 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
9078 return value;
9079}
9081 ::google::protobuf::internal::TSanWrite(&_impl_);
9082 _impl_.lp_algorithm_ = 0;
9083 _impl_._has_bits_[0] &= ~0x00000008u;
9084}
9085inline ::operations_research::MPSolverCommonParameters_LPAlgorithmValues MPSolverCommonParameters::lp_algorithm() const {
9086 // @@protoc_insertion_point(field_get:operations_research.MPSolverCommonParameters.lp_algorithm)
9087 return _internal_lp_algorithm();
9088}
9090 _internal_set_lp_algorithm(value);
9091 _impl_._has_bits_[0] |= 0x00000008u;
9092 // @@protoc_insertion_point(field_set:operations_research.MPSolverCommonParameters.lp_algorithm)
9093}
9094inline ::operations_research::MPSolverCommonParameters_LPAlgorithmValues MPSolverCommonParameters::_internal_lp_algorithm() const {
9095 ::google::protobuf::internal::TSanRead(&_impl_);
9097}
9098inline void MPSolverCommonParameters::_internal_set_lp_algorithm(::operations_research::MPSolverCommonParameters_LPAlgorithmValues value) {
9099 ::google::protobuf::internal::TSanWrite(&_impl_);
9100
9101 assert(::google::protobuf::internal::ValidateEnum(
9103 _impl_.lp_algorithm_ = value;
9104}
9105
9106// optional .operations_research.OptionalBoolean presolve = 5 [default = BOOL_UNSPECIFIED];
9107inline bool MPSolverCommonParameters::has_presolve() const {
9108 bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
9109 return value;
9110}
9112 ::google::protobuf::internal::TSanWrite(&_impl_);
9113 _impl_.presolve_ = 0;
9114 _impl_._has_bits_[0] &= ~0x00000010u;
9115}
9116inline ::operations_research::OptionalBoolean MPSolverCommonParameters::presolve() const {
9117 // @@protoc_insertion_point(field_get:operations_research.MPSolverCommonParameters.presolve)
9118 return _internal_presolve();
9119}
9121 _internal_set_presolve(value);
9122 _impl_._has_bits_[0] |= 0x00000010u;
9123 // @@protoc_insertion_point(field_set:operations_research.MPSolverCommonParameters.presolve)
9124}
9125inline ::operations_research::OptionalBoolean MPSolverCommonParameters::_internal_presolve() const {
9126 ::google::protobuf::internal::TSanRead(&_impl_);
9127 return static_cast<::operations_research::OptionalBoolean>(_impl_.presolve_);
9128}
9129inline void MPSolverCommonParameters::_internal_set_presolve(::operations_research::OptionalBoolean value) {
9130 ::google::protobuf::internal::TSanWrite(&_impl_);
9131
9132 assert(::google::protobuf::internal::ValidateEnum(
9134 _impl_.presolve_ = value;
9135}
9136
9137// optional .operations_research.OptionalBoolean scaling = 7 [default = BOOL_UNSPECIFIED];
9138inline bool MPSolverCommonParameters::has_scaling() const {
9139 bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
9140 return value;
9141}
9143 ::google::protobuf::internal::TSanWrite(&_impl_);
9144 _impl_.scaling_ = 0;
9145 _impl_._has_bits_[0] &= ~0x00000020u;
9146}
9147inline ::operations_research::OptionalBoolean MPSolverCommonParameters::scaling() const {
9148 // @@protoc_insertion_point(field_get:operations_research.MPSolverCommonParameters.scaling)
9149 return _internal_scaling();
9150}
9152 _internal_set_scaling(value);
9153 _impl_._has_bits_[0] |= 0x00000020u;
9154 // @@protoc_insertion_point(field_set:operations_research.MPSolverCommonParameters.scaling)
9155}
9156inline ::operations_research::OptionalBoolean MPSolverCommonParameters::_internal_scaling() const {
9157 ::google::protobuf::internal::TSanRead(&_impl_);
9158 return static_cast<::operations_research::OptionalBoolean>(_impl_.scaling_);
9159}
9160inline void MPSolverCommonParameters::_internal_set_scaling(::operations_research::OptionalBoolean value) {
9161 ::google::protobuf::internal::TSanWrite(&_impl_);
9162
9163 assert(::google::protobuf::internal::ValidateEnum(
9165 _impl_.scaling_ = value;
9166}
9167
9168// -------------------------------------------------------------------
9169
9170// -------------------------------------------------------------------
9171
9172// -------------------------------------------------------------------
9173
9174// MPModelDeltaProto
9175
9176// optional string baseline_model_file_path = 1;
9178 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
9179 return value;
9180}
9182 ::google::protobuf::internal::TSanWrite(&_impl_);
9183 _impl_.baseline_model_file_path_.ClearToEmpty();
9184 _impl_._has_bits_[0] &= ~0x00000001u;
9185}
9186inline const ::std::string& MPModelDeltaProto::baseline_model_file_path() const
9187 ABSL_ATTRIBUTE_LIFETIME_BOUND {
9188 // @@protoc_insertion_point(field_get:operations_research.MPModelDeltaProto.baseline_model_file_path)
9189 return _internal_baseline_model_file_path();
9190}
9191template <typename Arg_, typename... Args_>
9192PROTOBUF_ALWAYS_INLINE void MPModelDeltaProto::set_baseline_model_file_path(Arg_&& arg, Args_... args) {
9193 ::google::protobuf::internal::TSanWrite(&_impl_);
9194 _impl_._has_bits_[0] |= 0x00000001u;
9195 _impl_.baseline_model_file_path_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
9196 // @@protoc_insertion_point(field_set:operations_research.MPModelDeltaProto.baseline_model_file_path)
9197}
9198inline ::std::string* PROTOBUF_NONNULL MPModelDeltaProto::mutable_baseline_model_file_path()
9199 ABSL_ATTRIBUTE_LIFETIME_BOUND {
9200 ::std::string* _s = _internal_mutable_baseline_model_file_path();
9201 // @@protoc_insertion_point(field_mutable:operations_research.MPModelDeltaProto.baseline_model_file_path)
9202 return _s;
9203}
9204inline const ::std::string& MPModelDeltaProto::_internal_baseline_model_file_path() const {
9205 ::google::protobuf::internal::TSanRead(&_impl_);
9206 return _impl_.baseline_model_file_path_.Get();
9207}
9208inline void MPModelDeltaProto::_internal_set_baseline_model_file_path(const ::std::string& value) {
9209 ::google::protobuf::internal::TSanWrite(&_impl_);
9210 _impl_._has_bits_[0] |= 0x00000001u;
9211 _impl_.baseline_model_file_path_.Set(value, GetArena());
9212}
9213inline ::std::string* PROTOBUF_NONNULL MPModelDeltaProto::_internal_mutable_baseline_model_file_path() {
9214 ::google::protobuf::internal::TSanWrite(&_impl_);
9215 _impl_._has_bits_[0] |= 0x00000001u;
9216 return _impl_.baseline_model_file_path_.Mutable( GetArena());
9217}
9218inline ::std::string* PROTOBUF_NULLABLE MPModelDeltaProto::release_baseline_model_file_path() {
9219 ::google::protobuf::internal::TSanWrite(&_impl_);
9220 // @@protoc_insertion_point(field_release:operations_research.MPModelDeltaProto.baseline_model_file_path)
9221 if ((_impl_._has_bits_[0] & 0x00000001u) == 0) {
9222 return nullptr;
9223 }
9224 _impl_._has_bits_[0] &= ~0x00000001u;
9225 auto* released = _impl_.baseline_model_file_path_.Release();
9226 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
9227 _impl_.baseline_model_file_path_.Set("", GetArena());
9228 }
9229 return released;
9230}
9231inline void MPModelDeltaProto::set_allocated_baseline_model_file_path(::std::string* PROTOBUF_NULLABLE value) {
9232 ::google::protobuf::internal::TSanWrite(&_impl_);
9233 if (value != nullptr) {
9234 _impl_._has_bits_[0] |= 0x00000001u;
9235 } else {
9236 _impl_._has_bits_[0] &= ~0x00000001u;
9237 }
9238 _impl_.baseline_model_file_path_.SetAllocated(value, GetArena());
9239 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.baseline_model_file_path_.IsDefault()) {
9240 _impl_.baseline_model_file_path_.Set("", GetArena());
9242 // @@protoc_insertion_point(field_set_allocated:operations_research.MPModelDeltaProto.baseline_model_file_path)
9243}
9244
9245// map<int32, .operations_research.MPVariableProto> variable_overrides = 2;
9246inline int MPModelDeltaProto::_internal_variable_overrides_size() const {
9247 return _internal_variable_overrides().size();
9248}
9250 return _internal_variable_overrides_size();
9251}
9253 ::google::protobuf::internal::TSanWrite(&_impl_);
9254 _impl_.variable_overrides_.Clear();
9255}
9256inline const ::google::protobuf::Map<::int32_t, ::operations_research::MPVariableProto>& MPModelDeltaProto::_internal_variable_overrides() const {
9257 ::google::protobuf::internal::TSanRead(&_impl_);
9258 return _impl_.variable_overrides_.GetMap();
9259}
9260inline const ::google::protobuf::Map<::int32_t, ::operations_research::MPVariableProto>& MPModelDeltaProto::variable_overrides() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
9261 // @@protoc_insertion_point(field_map:operations_research.MPModelDeltaProto.variable_overrides)
9262 return _internal_variable_overrides();
9263}
9264inline ::google::protobuf::Map<::int32_t, ::operations_research::MPVariableProto>* PROTOBUF_NONNULL MPModelDeltaProto::_internal_mutable_variable_overrides() {
9265 ::google::protobuf::internal::TSanWrite(&_impl_);
9266 return _impl_.variable_overrides_.MutableMap();
9267}
9268inline ::google::protobuf::Map<::int32_t, ::operations_research::MPVariableProto>* PROTOBUF_NONNULL MPModelDeltaProto::mutable_variable_overrides()
9269 ABSL_ATTRIBUTE_LIFETIME_BOUND {
9270 // @@protoc_insertion_point(field_mutable_map:operations_research.MPModelDeltaProto.variable_overrides)
9271 return _internal_mutable_variable_overrides();
9272}
9273
9274// map<int32, .operations_research.MPConstraintProto> constraint_overrides = 3;
9275inline int MPModelDeltaProto::_internal_constraint_overrides_size() const {
9276 return _internal_constraint_overrides().size();
9277}
9279 return _internal_constraint_overrides_size();
9280}
9282 ::google::protobuf::internal::TSanWrite(&_impl_);
9283 _impl_.constraint_overrides_.Clear();
9284}
9285inline const ::google::protobuf::Map<::int32_t, ::operations_research::MPConstraintProto>& MPModelDeltaProto::_internal_constraint_overrides() const {
9286 ::google::protobuf::internal::TSanRead(&_impl_);
9287 return _impl_.constraint_overrides_.GetMap();
9288}
9289inline const ::google::protobuf::Map<::int32_t, ::operations_research::MPConstraintProto>& MPModelDeltaProto::constraint_overrides() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
9290 // @@protoc_insertion_point(field_map:operations_research.MPModelDeltaProto.constraint_overrides)
9291 return _internal_constraint_overrides();
9293inline ::google::protobuf::Map<::int32_t, ::operations_research::MPConstraintProto>* PROTOBUF_NONNULL MPModelDeltaProto::_internal_mutable_constraint_overrides() {
9294 ::google::protobuf::internal::TSanWrite(&_impl_);
9295 return _impl_.constraint_overrides_.MutableMap();
9296}
9297inline ::google::protobuf::Map<::int32_t, ::operations_research::MPConstraintProto>* PROTOBUF_NONNULL MPModelDeltaProto::mutable_constraint_overrides()
9298 ABSL_ATTRIBUTE_LIFETIME_BOUND {
9299 // @@protoc_insertion_point(field_mutable_map:operations_research.MPModelDeltaProto.constraint_overrides)
9300 return _internal_mutable_constraint_overrides();
9301}
9302
9303// -------------------------------------------------------------------
9304
9305// MPModelRequest
9306
9307// optional .operations_research.MPModelProto model = 1;
9308inline bool MPModelRequest::has_model() const {
9309 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
9310 PROTOBUF_ASSUME(!value || _impl_.model_ != nullptr);
9311 return value;
9312}
9313inline void MPModelRequest::clear_model() {
9314 ::google::protobuf::internal::TSanWrite(&_impl_);
9315 if (_impl_.model_ != nullptr) _impl_.model_->Clear();
9316 _impl_._has_bits_[0] &= ~0x00000002u;
9317}
9318inline const ::operations_research::MPModelProto& MPModelRequest::_internal_model() const {
9319 ::google::protobuf::internal::TSanRead(&_impl_);
9320 const ::operations_research::MPModelProto* p = _impl_.model_;
9322}
9323inline const ::operations_research::MPModelProto& MPModelRequest::model() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
9324 // @@protoc_insertion_point(field_get:operations_research.MPModelRequest.model)
9325 return _internal_model();
9326}
9328 ::operations_research::MPModelProto* PROTOBUF_NULLABLE value) {
9329 ::google::protobuf::internal::TSanWrite(&_impl_);
9330 if (GetArena() == nullptr) {
9331 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.model_);
9333 _impl_.model_ = reinterpret_cast<::operations_research::MPModelProto*>(value);
9334 if (value != nullptr) {
9335 _impl_._has_bits_[0] |= 0x00000002u;
9336 } else {
9337 _impl_._has_bits_[0] &= ~0x00000002u;
9338 }
9339 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.MPModelRequest.model)
9341inline ::operations_research::MPModelProto* PROTOBUF_NULLABLE MPModelRequest::release_model() {
9342 ::google::protobuf::internal::TSanWrite(&_impl_);
9343
9344 _impl_._has_bits_[0] &= ~0x00000002u;
9345 ::operations_research::MPModelProto* released = _impl_.model_;
9346 _impl_.model_ = nullptr;
9347 if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
9348 auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
9349 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
9350 if (GetArena() == nullptr) {
9351 delete old;
9353 } else {
9354 if (GetArena() != nullptr) {
9355 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
9356 }
9358 return released;
9359}
9360inline ::operations_research::MPModelProto* PROTOBUF_NULLABLE MPModelRequest::unsafe_arena_release_model() {
9361 ::google::protobuf::internal::TSanWrite(&_impl_);
9362 // @@protoc_insertion_point(field_release:operations_research.MPModelRequest.model)
9363
9364 _impl_._has_bits_[0] &= ~0x00000002u;
9365 ::operations_research::MPModelProto* temp = _impl_.model_;
9366 _impl_.model_ = nullptr;
9367 return temp;
9368}
9369inline ::operations_research::MPModelProto* PROTOBUF_NONNULL MPModelRequest::_internal_mutable_model() {
9370 ::google::protobuf::internal::TSanWrite(&_impl_);
9371 if (_impl_.model_ == nullptr) {
9372 auto* p = ::google::protobuf::Message::DefaultConstruct<::operations_research::MPModelProto>(GetArena());
9373 _impl_.model_ = reinterpret_cast<::operations_research::MPModelProto*>(p);
9374 }
9375 return _impl_.model_;
9376}
9377inline ::operations_research::MPModelProto* PROTOBUF_NONNULL MPModelRequest::mutable_model()
9378 ABSL_ATTRIBUTE_LIFETIME_BOUND {
9379 _impl_._has_bits_[0] |= 0x00000002u;
9380 ::operations_research::MPModelProto* _msg = _internal_mutable_model();
9381 // @@protoc_insertion_point(field_mutable:operations_research.MPModelRequest.model)
9382 return _msg;
9383}
9384inline void MPModelRequest::set_allocated_model(::operations_research::MPModelProto* PROTOBUF_NULLABLE value) {
9385 ::google::protobuf::Arena* message_arena = GetArena();
9386 ::google::protobuf::internal::TSanWrite(&_impl_);
9387 if (message_arena == nullptr) {
9388 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.model_);
9389 }
9390
9391 if (value != nullptr) {
9392 ::google::protobuf::Arena* submessage_arena = value->GetArena();
9393 if (message_arena != submessage_arena) {
9394 value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
9395 }
9396 _impl_._has_bits_[0] |= 0x00000002u;
9397 } else {
9398 _impl_._has_bits_[0] &= ~0x00000002u;
9399 }
9400
9401 _impl_.model_ = reinterpret_cast<::operations_research::MPModelProto*>(value);
9402 // @@protoc_insertion_point(field_set_allocated:operations_research.MPModelRequest.model)
9403}
9405// optional .operations_research.MPModelRequest.SolverType solver_type = 2 [default = GLOP_LINEAR_PROGRAMMING];
9406inline bool MPModelRequest::has_solver_type() const {
9407 bool value = (_impl_._has_bits_[0] & 0x00000080u) != 0;
9408 return value;
9409}
9411 ::google::protobuf::internal::TSanWrite(&_impl_);
9412 _impl_.solver_type_ = 2;
9413 _impl_._has_bits_[0] &= ~0x00000080u;
9414}
9415inline ::operations_research::MPModelRequest_SolverType MPModelRequest::solver_type() const {
9416 // @@protoc_insertion_point(field_get:operations_research.MPModelRequest.solver_type)
9417 return _internal_solver_type();
9418}
9420 _internal_set_solver_type(value);
9421 _impl_._has_bits_[0] |= 0x00000080u;
9422 // @@protoc_insertion_point(field_set:operations_research.MPModelRequest.solver_type)
9423}
9424inline ::operations_research::MPModelRequest_SolverType MPModelRequest::_internal_solver_type() const {
9425 ::google::protobuf::internal::TSanRead(&_impl_);
9426 return static_cast<::operations_research::MPModelRequest_SolverType>(_impl_.solver_type_);
9427}
9428inline void MPModelRequest::_internal_set_solver_type(::operations_research::MPModelRequest_SolverType value) {
9429 ::google::protobuf::internal::TSanWrite(&_impl_);
9430
9431 assert(::google::protobuf::internal::ValidateEnum(
9433 _impl_.solver_type_ = value;
9434}
9435
9436// optional double solver_time_limit_seconds = 3;
9438 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
9439 return value;
9440}
9442 ::google::protobuf::internal::TSanWrite(&_impl_);
9443 _impl_.solver_time_limit_seconds_ = 0;
9444 _impl_._has_bits_[0] &= ~0x00000008u;
9445}
9446inline double MPModelRequest::solver_time_limit_seconds() const {
9447 // @@protoc_insertion_point(field_get:operations_research.MPModelRequest.solver_time_limit_seconds)
9448 return _internal_solver_time_limit_seconds();
9449}
9451 _internal_set_solver_time_limit_seconds(value);
9452 _impl_._has_bits_[0] |= 0x00000008u;
9453 // @@protoc_insertion_point(field_set:operations_research.MPModelRequest.solver_time_limit_seconds)
9455inline double MPModelRequest::_internal_solver_time_limit_seconds() const {
9456 ::google::protobuf::internal::TSanRead(&_impl_);
9457 return _impl_.solver_time_limit_seconds_;
9458}
9459inline void MPModelRequest::_internal_set_solver_time_limit_seconds(double value) {
9460 ::google::protobuf::internal::TSanWrite(&_impl_);
9461 _impl_.solver_time_limit_seconds_ = value;
9462}
9464// optional bool enable_internal_solver_output = 4 [default = false];
9466 bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
9467 return value;
9468}
9470 ::google::protobuf::internal::TSanWrite(&_impl_);
9471 _impl_.enable_internal_solver_output_ = false;
9472 _impl_._has_bits_[0] &= ~0x00000010u;
9473}
9475 // @@protoc_insertion_point(field_get:operations_research.MPModelRequest.enable_internal_solver_output)
9476 return _internal_enable_internal_solver_output();
9477}
9479 _internal_set_enable_internal_solver_output(value);
9480 _impl_._has_bits_[0] |= 0x00000010u;
9481 // @@protoc_insertion_point(field_set:operations_research.MPModelRequest.enable_internal_solver_output)
9482}
9483inline bool MPModelRequest::_internal_enable_internal_solver_output() const {
9484 ::google::protobuf::internal::TSanRead(&_impl_);
9485 return _impl_.enable_internal_solver_output_;
9486}
9487inline void MPModelRequest::_internal_set_enable_internal_solver_output(bool value) {
9488 ::google::protobuf::internal::TSanWrite(&_impl_);
9489 _impl_.enable_internal_solver_output_ = value;
9491
9492// optional string solver_specific_parameters = 5;
9494 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
9495 return value;
9496}
9498 ::google::protobuf::internal::TSanWrite(&_impl_);
9499 _impl_.solver_specific_parameters_.ClearToEmpty();
9500 _impl_._has_bits_[0] &= ~0x00000001u;
9501}
9502inline const ::std::string& MPModelRequest::solver_specific_parameters() const
9503 ABSL_ATTRIBUTE_LIFETIME_BOUND {
9504 // @@protoc_insertion_point(field_get:operations_research.MPModelRequest.solver_specific_parameters)
9505 return _internal_solver_specific_parameters();
9506}
9507template <typename Arg_, typename... Args_>
9508PROTOBUF_ALWAYS_INLINE void MPModelRequest::set_solver_specific_parameters(Arg_&& arg, Args_... args) {
9509 ::google::protobuf::internal::TSanWrite(&_impl_);
9510 _impl_._has_bits_[0] |= 0x00000001u;
9511 _impl_.solver_specific_parameters_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
9512 // @@protoc_insertion_point(field_set:operations_research.MPModelRequest.solver_specific_parameters)
9514inline ::std::string* PROTOBUF_NONNULL MPModelRequest::mutable_solver_specific_parameters()
9515 ABSL_ATTRIBUTE_LIFETIME_BOUND {
9516 ::std::string* _s = _internal_mutable_solver_specific_parameters();
9517 // @@protoc_insertion_point(field_mutable:operations_research.MPModelRequest.solver_specific_parameters)
9518 return _s;
9519}
9520inline const ::std::string& MPModelRequest::_internal_solver_specific_parameters() const {
9521 ::google::protobuf::internal::TSanRead(&_impl_);
9522 return _impl_.solver_specific_parameters_.Get();
9523}
9524inline void MPModelRequest::_internal_set_solver_specific_parameters(const ::std::string& value) {
9525 ::google::protobuf::internal::TSanWrite(&_impl_);
9526 _impl_._has_bits_[0] |= 0x00000001u;
9527 _impl_.solver_specific_parameters_.Set(value, GetArena());
9528}
9529inline ::std::string* PROTOBUF_NONNULL MPModelRequest::_internal_mutable_solver_specific_parameters() {
9530 ::google::protobuf::internal::TSanWrite(&_impl_);
9531 _impl_._has_bits_[0] |= 0x00000001u;
9532 return _impl_.solver_specific_parameters_.Mutable( GetArena());
9533}
9534inline ::std::string* PROTOBUF_NULLABLE MPModelRequest::release_solver_specific_parameters() {
9535 ::google::protobuf::internal::TSanWrite(&_impl_);
9536 // @@protoc_insertion_point(field_release:operations_research.MPModelRequest.solver_specific_parameters)
9537 if ((_impl_._has_bits_[0] & 0x00000001u) == 0) {
9538 return nullptr;
9539 }
9540 _impl_._has_bits_[0] &= ~0x00000001u;
9541 auto* released = _impl_.solver_specific_parameters_.Release();
9542 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
9543 _impl_.solver_specific_parameters_.Set("", GetArena());
9544 }
9545 return released;
9547inline void MPModelRequest::set_allocated_solver_specific_parameters(::std::string* PROTOBUF_NULLABLE value) {
9548 ::google::protobuf::internal::TSanWrite(&_impl_);
9549 if (value != nullptr) {
9550 _impl_._has_bits_[0] |= 0x00000001u;
9551 } else {
9552 _impl_._has_bits_[0] &= ~0x00000001u;
9553 }
9554 _impl_.solver_specific_parameters_.SetAllocated(value, GetArena());
9555 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.solver_specific_parameters_.IsDefault()) {
9556 _impl_.solver_specific_parameters_.Set("", GetArena());
9557 }
9558 // @@protoc_insertion_point(field_set_allocated:operations_research.MPModelRequest.solver_specific_parameters)
9559}
9560
9561// optional bool ignore_solver_specific_parameters_failure = 9 [default = false];
9563 bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
9564 return value;
9565}
9567 ::google::protobuf::internal::TSanWrite(&_impl_);
9568 _impl_.ignore_solver_specific_parameters_failure_ = false;
9569 _impl_._has_bits_[0] &= ~0x00000020u;
9570}
9572 // @@protoc_insertion_point(field_get:operations_research.MPModelRequest.ignore_solver_specific_parameters_failure)
9573 return _internal_ignore_solver_specific_parameters_failure();
9574}
9576 _internal_set_ignore_solver_specific_parameters_failure(value);
9577 _impl_._has_bits_[0] |= 0x00000020u;
9578 // @@protoc_insertion_point(field_set:operations_research.MPModelRequest.ignore_solver_specific_parameters_failure)
9579}
9580inline bool MPModelRequest::_internal_ignore_solver_specific_parameters_failure() const {
9581 ::google::protobuf::internal::TSanRead(&_impl_);
9582 return _impl_.ignore_solver_specific_parameters_failure_;
9583}
9584inline void MPModelRequest::_internal_set_ignore_solver_specific_parameters_failure(bool value) {
9585 ::google::protobuf::internal::TSanWrite(&_impl_);
9586 _impl_.ignore_solver_specific_parameters_failure_ = value;
9587}
9588
9589// optional .operations_research.MPModelDeltaProto model_delta = 8;
9590inline bool MPModelRequest::has_model_delta() const {
9591 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
9592 PROTOBUF_ASSUME(!value || _impl_.model_delta_ != nullptr);
9593 return value;
9594}
9596 ::google::protobuf::internal::TSanWrite(&_impl_);
9597 if (_impl_.model_delta_ != nullptr) _impl_.model_delta_->Clear();
9598 _impl_._has_bits_[0] &= ~0x00000004u;
9599}
9600inline const ::operations_research::MPModelDeltaProto& MPModelRequest::_internal_model_delta() const {
9601 ::google::protobuf::internal::TSanRead(&_impl_);
9602 const ::operations_research::MPModelDeltaProto* p = _impl_.model_delta_;
9604}
9605inline const ::operations_research::MPModelDeltaProto& MPModelRequest::model_delta() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
9606 // @@protoc_insertion_point(field_get:operations_research.MPModelRequest.model_delta)
9607 return _internal_model_delta();
9608}
9611 ::google::protobuf::internal::TSanWrite(&_impl_);
9612 if (GetArena() == nullptr) {
9613 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.model_delta_);
9614 }
9615 _impl_.model_delta_ = reinterpret_cast<::operations_research::MPModelDeltaProto*>(value);
9616 if (value != nullptr) {
9617 _impl_._has_bits_[0] |= 0x00000004u;
9618 } else {
9619 _impl_._has_bits_[0] &= ~0x00000004u;
9620 }
9621 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.MPModelRequest.model_delta)
9622}
9623inline ::operations_research::MPModelDeltaProto* PROTOBUF_NULLABLE MPModelRequest::release_model_delta() {
9624 ::google::protobuf::internal::TSanWrite(&_impl_);
9625
9626 _impl_._has_bits_[0] &= ~0x00000004u;
9627 ::operations_research::MPModelDeltaProto* released = _impl_.model_delta_;
9628 _impl_.model_delta_ = nullptr;
9629 if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
9630 auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
9631 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
9632 if (GetArena() == nullptr) {
9633 delete old;
9635 } else {
9636 if (GetArena() != nullptr) {
9637 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
9638 }
9640 return released;
9641}
9642inline ::operations_research::MPModelDeltaProto* PROTOBUF_NULLABLE MPModelRequest::unsafe_arena_release_model_delta() {
9643 ::google::protobuf::internal::TSanWrite(&_impl_);
9644 // @@protoc_insertion_point(field_release:operations_research.MPModelRequest.model_delta)
9645
9646 _impl_._has_bits_[0] &= ~0x00000004u;
9647 ::operations_research::MPModelDeltaProto* temp = _impl_.model_delta_;
9648 _impl_.model_delta_ = nullptr;
9649 return temp;
9650}
9651inline ::operations_research::MPModelDeltaProto* PROTOBUF_NONNULL MPModelRequest::_internal_mutable_model_delta() {
9652 ::google::protobuf::internal::TSanWrite(&_impl_);
9653 if (_impl_.model_delta_ == nullptr) {
9654 auto* p = ::google::protobuf::Message::DefaultConstruct<::operations_research::MPModelDeltaProto>(GetArena());
9655 _impl_.model_delta_ = reinterpret_cast<::operations_research::MPModelDeltaProto*>(p);
9656 }
9657 return _impl_.model_delta_;
9658}
9659inline ::operations_research::MPModelDeltaProto* PROTOBUF_NONNULL MPModelRequest::mutable_model_delta()
9660 ABSL_ATTRIBUTE_LIFETIME_BOUND {
9661 _impl_._has_bits_[0] |= 0x00000004u;
9662 ::operations_research::MPModelDeltaProto* _msg = _internal_mutable_model_delta();
9663 // @@protoc_insertion_point(field_mutable:operations_research.MPModelRequest.model_delta)
9664 return _msg;
9665}
9666inline void MPModelRequest::set_allocated_model_delta(::operations_research::MPModelDeltaProto* PROTOBUF_NULLABLE value) {
9667 ::google::protobuf::Arena* message_arena = GetArena();
9668 ::google::protobuf::internal::TSanWrite(&_impl_);
9669 if (message_arena == nullptr) {
9670 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.model_delta_);
9671 }
9672
9673 if (value != nullptr) {
9674 ::google::protobuf::Arena* submessage_arena = value->GetArena();
9675 if (message_arena != submessage_arena) {
9676 value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
9677 }
9678 _impl_._has_bits_[0] |= 0x00000004u;
9679 } else {
9680 _impl_._has_bits_[0] &= ~0x00000004u;
9681 }
9682
9683 _impl_.model_delta_ = reinterpret_cast<::operations_research::MPModelDeltaProto*>(value);
9684 // @@protoc_insertion_point(field_set_allocated:operations_research.MPModelRequest.model_delta)
9685}
9687// optional int32 populate_additional_solutions_up_to = 11 [default = 0];
9689 bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0;
9690 return value;
9691}
9693 ::google::protobuf::internal::TSanWrite(&_impl_);
9694 _impl_.populate_additional_solutions_up_to_ = 0;
9695 _impl_._has_bits_[0] &= ~0x00000040u;
9696}
9698 // @@protoc_insertion_point(field_get:operations_research.MPModelRequest.populate_additional_solutions_up_to)
9699 return _internal_populate_additional_solutions_up_to();
9700}
9702 _internal_set_populate_additional_solutions_up_to(value);
9703 _impl_._has_bits_[0] |= 0x00000040u;
9704 // @@protoc_insertion_point(field_set:operations_research.MPModelRequest.populate_additional_solutions_up_to)
9705}
9706inline ::int32_t MPModelRequest::_internal_populate_additional_solutions_up_to() const {
9707 ::google::protobuf::internal::TSanRead(&_impl_);
9708 return _impl_.populate_additional_solutions_up_to_;
9709}
9710inline void MPModelRequest::_internal_set_populate_additional_solutions_up_to(::int32_t value) {
9711 ::google::protobuf::internal::TSanWrite(&_impl_);
9712 _impl_.populate_additional_solutions_up_to_ = value;
9713}
9714
9715// -------------------------------------------------------------------
9716
9717// MPSolution
9718
9719// optional double objective_value = 1;
9720inline bool MPSolution::has_objective_value() const {
9721 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
9722 return value;
9723}
9725 ::google::protobuf::internal::TSanWrite(&_impl_);
9726 _impl_.objective_value_ = 0;
9727 _impl_._has_bits_[0] &= ~0x00000001u;
9728}
9729inline double MPSolution::objective_value() const {
9730 // @@protoc_insertion_point(field_get:operations_research.MPSolution.objective_value)
9731 return _internal_objective_value();
9733inline void MPSolution::set_objective_value(double value) {
9734 _internal_set_objective_value(value);
9735 _impl_._has_bits_[0] |= 0x00000001u;
9736 // @@protoc_insertion_point(field_set:operations_research.MPSolution.objective_value)
9737}
9738inline double MPSolution::_internal_objective_value() const {
9739 ::google::protobuf::internal::TSanRead(&_impl_);
9740 return _impl_.objective_value_;
9742inline void MPSolution::_internal_set_objective_value(double value) {
9743 ::google::protobuf::internal::TSanWrite(&_impl_);
9744 _impl_.objective_value_ = value;
9746
9747// repeated double variable_value = 2 [packed = true];
9748inline int MPSolution::_internal_variable_value_size() const {
9749 return _internal_variable_value().size();
9750}
9751inline int MPSolution::variable_value_size() const {
9752 return _internal_variable_value_size();
9753}
9755 ::google::protobuf::internal::TSanWrite(&_impl_);
9756 _impl_.variable_value_.Clear();
9757}
9758inline double MPSolution::variable_value(int index) const {
9759 // @@protoc_insertion_point(field_get:operations_research.MPSolution.variable_value)
9760 return _internal_variable_value().Get(index);
9761}
9762inline void MPSolution::set_variable_value(int index, double value) {
9763 _internal_mutable_variable_value()->Set(index, value);
9764 // @@protoc_insertion_point(field_set:operations_research.MPSolution.variable_value)
9766inline void MPSolution::add_variable_value(double value) {
9767 ::google::protobuf::internal::TSanWrite(&_impl_);
9768 _internal_mutable_variable_value()->Add(value);
9769 // @@protoc_insertion_point(field_add:operations_research.MPSolution.variable_value)
9770}
9771inline const ::google::protobuf::RepeatedField<double>& MPSolution::variable_value() const
9772 ABSL_ATTRIBUTE_LIFETIME_BOUND {
9773 // @@protoc_insertion_point(field_list:operations_research.MPSolution.variable_value)
9774 return _internal_variable_value();
9775}
9776inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL MPSolution::mutable_variable_value()
9777 ABSL_ATTRIBUTE_LIFETIME_BOUND {
9778 // @@protoc_insertion_point(field_mutable_list:operations_research.MPSolution.variable_value)
9779 ::google::protobuf::internal::TSanWrite(&_impl_);
9780 return _internal_mutable_variable_value();
9781}
9782inline const ::google::protobuf::RepeatedField<double>&
9783MPSolution::_internal_variable_value() const {
9784 ::google::protobuf::internal::TSanRead(&_impl_);
9785 return _impl_.variable_value_;
9786}
9787inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL
9788MPSolution::_internal_mutable_variable_value() {
9789 ::google::protobuf::internal::TSanRead(&_impl_);
9790 return &_impl_.variable_value_;
9791}
9792
9793// -------------------------------------------------------------------
9794
9795// MPSolveInfo
9797// optional double solve_wall_time_seconds = 1;
9798inline bool MPSolveInfo::has_solve_wall_time_seconds() const {
9799 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
9800 return value;
9801}
9803 ::google::protobuf::internal::TSanWrite(&_impl_);
9804 _impl_.solve_wall_time_seconds_ = 0;
9805 _impl_._has_bits_[0] &= ~0x00000001u;
9806}
9808 // @@protoc_insertion_point(field_get:operations_research.MPSolveInfo.solve_wall_time_seconds)
9809 return _internal_solve_wall_time_seconds();
9810}
9812 _internal_set_solve_wall_time_seconds(value);
9813 _impl_._has_bits_[0] |= 0x00000001u;
9814 // @@protoc_insertion_point(field_set:operations_research.MPSolveInfo.solve_wall_time_seconds)
9815}
9816inline double MPSolveInfo::_internal_solve_wall_time_seconds() const {
9817 ::google::protobuf::internal::TSanRead(&_impl_);
9818 return _impl_.solve_wall_time_seconds_;
9819}
9820inline void MPSolveInfo::_internal_set_solve_wall_time_seconds(double value) {
9821 ::google::protobuf::internal::TSanWrite(&_impl_);
9822 _impl_.solve_wall_time_seconds_ = value;
9823}
9824
9825// optional double solve_user_time_seconds = 2;
9826inline bool MPSolveInfo::has_solve_user_time_seconds() const {
9827 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
9828 return value;
9829}
9831 ::google::protobuf::internal::TSanWrite(&_impl_);
9832 _impl_.solve_user_time_seconds_ = 0;
9833 _impl_._has_bits_[0] &= ~0x00000002u;
9834}
9835inline double MPSolveInfo::solve_user_time_seconds() const {
9836 // @@protoc_insertion_point(field_get:operations_research.MPSolveInfo.solve_user_time_seconds)
9837 return _internal_solve_user_time_seconds();
9838}
9839inline void MPSolveInfo::set_solve_user_time_seconds(double value) {
9840 _internal_set_solve_user_time_seconds(value);
9841 _impl_._has_bits_[0] |= 0x00000002u;
9842 // @@protoc_insertion_point(field_set:operations_research.MPSolveInfo.solve_user_time_seconds)
9843}
9844inline double MPSolveInfo::_internal_solve_user_time_seconds() const {
9845 ::google::protobuf::internal::TSanRead(&_impl_);
9846 return _impl_.solve_user_time_seconds_;
9847}
9848inline void MPSolveInfo::_internal_set_solve_user_time_seconds(double value) {
9849 ::google::protobuf::internal::TSanWrite(&_impl_);
9850 _impl_.solve_user_time_seconds_ = value;
9851}
9852
9853// -------------------------------------------------------------------
9854
9855// MPSolutionResponse
9856
9857// optional .operations_research.MPSolverResponseStatus status = 1 [default = MPSOLVER_UNKNOWN_STATUS];
9858inline bool MPSolutionResponse::has_status() const {
9859 bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
9860 return value;
9861}
9863 ::google::protobuf::internal::TSanWrite(&_impl_);
9864 _impl_.status_ = 99;
9865 _impl_._has_bits_[0] &= ~0x00000020u;
9866}
9867inline ::operations_research::MPSolverResponseStatus MPSolutionResponse::status() const {
9868 // @@protoc_insertion_point(field_get:operations_research.MPSolutionResponse.status)
9869 return _internal_status();
9870}
9872 _internal_set_status(value);
9873 _impl_._has_bits_[0] |= 0x00000020u;
9874 // @@protoc_insertion_point(field_set:operations_research.MPSolutionResponse.status)
9875}
9876inline ::operations_research::MPSolverResponseStatus MPSolutionResponse::_internal_status() const {
9877 ::google::protobuf::internal::TSanRead(&_impl_);
9878 return static_cast<::operations_research::MPSolverResponseStatus>(_impl_.status_);
9879}
9880inline void MPSolutionResponse::_internal_set_status(::operations_research::MPSolverResponseStatus value) {
9881 ::google::protobuf::internal::TSanWrite(&_impl_);
9882
9883 assert(::google::protobuf::internal::ValidateEnum(
9885 _impl_.status_ = value;
9886}
9887
9888// optional string status_str = 7;
9889inline bool MPSolutionResponse::has_status_str() const {
9890 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
9891 return value;
9892}
9894 ::google::protobuf::internal::TSanWrite(&_impl_);
9895 _impl_.status_str_.ClearToEmpty();
9896 _impl_._has_bits_[0] &= ~0x00000001u;
9897}
9898inline const ::std::string& MPSolutionResponse::status_str() const
9899 ABSL_ATTRIBUTE_LIFETIME_BOUND {
9900 // @@protoc_insertion_point(field_get:operations_research.MPSolutionResponse.status_str)
9901 return _internal_status_str();
9902}
9903template <typename Arg_, typename... Args_>
9904PROTOBUF_ALWAYS_INLINE void MPSolutionResponse::set_status_str(Arg_&& arg, Args_... args) {
9905 ::google::protobuf::internal::TSanWrite(&_impl_);
9906 _impl_._has_bits_[0] |= 0x00000001u;
9907 _impl_.status_str_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
9908 // @@protoc_insertion_point(field_set:operations_research.MPSolutionResponse.status_str)
9910inline ::std::string* PROTOBUF_NONNULL MPSolutionResponse::mutable_status_str()
9911 ABSL_ATTRIBUTE_LIFETIME_BOUND {
9912 ::std::string* _s = _internal_mutable_status_str();
9913 // @@protoc_insertion_point(field_mutable:operations_research.MPSolutionResponse.status_str)
9914 return _s;
9915}
9916inline const ::std::string& MPSolutionResponse::_internal_status_str() const {
9917 ::google::protobuf::internal::TSanRead(&_impl_);
9918 return _impl_.status_str_.Get();
9919}
9920inline void MPSolutionResponse::_internal_set_status_str(const ::std::string& value) {
9921 ::google::protobuf::internal::TSanWrite(&_impl_);
9922 _impl_._has_bits_[0] |= 0x00000001u;
9923 _impl_.status_str_.Set(value, GetArena());
9924}
9925inline ::std::string* PROTOBUF_NONNULL MPSolutionResponse::_internal_mutable_status_str() {
9926 ::google::protobuf::internal::TSanWrite(&_impl_);
9927 _impl_._has_bits_[0] |= 0x00000001u;
9928 return _impl_.status_str_.Mutable( GetArena());
9929}
9930inline ::std::string* PROTOBUF_NULLABLE MPSolutionResponse::release_status_str() {
9931 ::google::protobuf::internal::TSanWrite(&_impl_);
9932 // @@protoc_insertion_point(field_release:operations_research.MPSolutionResponse.status_str)
9933 if ((_impl_._has_bits_[0] & 0x00000001u) == 0) {
9934 return nullptr;
9935 }
9936 _impl_._has_bits_[0] &= ~0x00000001u;
9937 auto* released = _impl_.status_str_.Release();
9938 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
9939 _impl_.status_str_.Set("", GetArena());
9941 return released;
9942}
9943inline void MPSolutionResponse::set_allocated_status_str(::std::string* PROTOBUF_NULLABLE value) {
9944 ::google::protobuf::internal::TSanWrite(&_impl_);
9945 if (value != nullptr) {
9946 _impl_._has_bits_[0] |= 0x00000001u;
9947 } else {
9948 _impl_._has_bits_[0] &= ~0x00000001u;
9949 }
9950 _impl_.status_str_.SetAllocated(value, GetArena());
9951 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.status_str_.IsDefault()) {
9952 _impl_.status_str_.Set("", GetArena());
9953 }
9954 // @@protoc_insertion_point(field_set_allocated:operations_research.MPSolutionResponse.status_str)
9955}
9956
9957// optional double objective_value = 2;
9958inline bool MPSolutionResponse::has_objective_value() const {
9959 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
9960 return value;
9961}
9963 ::google::protobuf::internal::TSanWrite(&_impl_);
9964 _impl_.objective_value_ = 0;
9965 _impl_._has_bits_[0] &= ~0x00000008u;
9966}
9967inline double MPSolutionResponse::objective_value() const {
9968 // @@protoc_insertion_point(field_get:operations_research.MPSolutionResponse.objective_value)
9969 return _internal_objective_value();
9970}
9971inline void MPSolutionResponse::set_objective_value(double value) {
9972 _internal_set_objective_value(value);
9973 _impl_._has_bits_[0] |= 0x00000008u;
9974 // @@protoc_insertion_point(field_set:operations_research.MPSolutionResponse.objective_value)
9975}
9976inline double MPSolutionResponse::_internal_objective_value() const {
9977 ::google::protobuf::internal::TSanRead(&_impl_);
9978 return _impl_.objective_value_;
9979}
9980inline void MPSolutionResponse::_internal_set_objective_value(double value) {
9981 ::google::protobuf::internal::TSanWrite(&_impl_);
9982 _impl_.objective_value_ = value;
9983}
9984
9985// optional double best_objective_bound = 5;
9987 bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
9988 return value;
9989}
9991 ::google::protobuf::internal::TSanWrite(&_impl_);
9992 _impl_.best_objective_bound_ = 0;
9993 _impl_._has_bits_[0] &= ~0x00000010u;
9994}
9995inline double MPSolutionResponse::best_objective_bound() const {
9996 // @@protoc_insertion_point(field_get:operations_research.MPSolutionResponse.best_objective_bound)
9997 return _internal_best_objective_bound();
9998}
9999inline void MPSolutionResponse::set_best_objective_bound(double value) {
10000 _internal_set_best_objective_bound(value);
10001 _impl_._has_bits_[0] |= 0x00000010u;
10002 // @@protoc_insertion_point(field_set:operations_research.MPSolutionResponse.best_objective_bound)
10003}
10004inline double MPSolutionResponse::_internal_best_objective_bound() const {
10005 ::google::protobuf::internal::TSanRead(&_impl_);
10006 return _impl_.best_objective_bound_;
10007}
10008inline void MPSolutionResponse::_internal_set_best_objective_bound(double value) {
10009 ::google::protobuf::internal::TSanWrite(&_impl_);
10010 _impl_.best_objective_bound_ = value;
10011}
10012
10013// repeated double variable_value = 3 [packed = true];
10014inline int MPSolutionResponse::_internal_variable_value_size() const {
10015 return _internal_variable_value().size();
10016}
10017inline int MPSolutionResponse::variable_value_size() const {
10018 return _internal_variable_value_size();
10019}
10021 ::google::protobuf::internal::TSanWrite(&_impl_);
10022 _impl_.variable_value_.Clear();
10023}
10024inline double MPSolutionResponse::variable_value(int index) const {
10025 // @@protoc_insertion_point(field_get:operations_research.MPSolutionResponse.variable_value)
10026 return _internal_variable_value().Get(index);
10027}
10028inline void MPSolutionResponse::set_variable_value(int index, double value) {
10029 _internal_mutable_variable_value()->Set(index, value);
10030 // @@protoc_insertion_point(field_set:operations_research.MPSolutionResponse.variable_value)
10031}
10032inline void MPSolutionResponse::add_variable_value(double value) {
10033 ::google::protobuf::internal::TSanWrite(&_impl_);
10034 _internal_mutable_variable_value()->Add(value);
10035 // @@protoc_insertion_point(field_add:operations_research.MPSolutionResponse.variable_value)
10036}
10037inline const ::google::protobuf::RepeatedField<double>& MPSolutionResponse::variable_value() const
10038 ABSL_ATTRIBUTE_LIFETIME_BOUND {
10039 // @@protoc_insertion_point(field_list:operations_research.MPSolutionResponse.variable_value)
10040 return _internal_variable_value();
10041}
10042inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL MPSolutionResponse::mutable_variable_value()
10043 ABSL_ATTRIBUTE_LIFETIME_BOUND {
10044 // @@protoc_insertion_point(field_mutable_list:operations_research.MPSolutionResponse.variable_value)
10045 ::google::protobuf::internal::TSanWrite(&_impl_);
10046 return _internal_mutable_variable_value();
10047}
10048inline const ::google::protobuf::RepeatedField<double>&
10049MPSolutionResponse::_internal_variable_value() const {
10050 ::google::protobuf::internal::TSanRead(&_impl_);
10051 return _impl_.variable_value_;
10052}
10053inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL
10054MPSolutionResponse::_internal_mutable_variable_value() {
10055 ::google::protobuf::internal::TSanRead(&_impl_);
10056 return &_impl_.variable_value_;
10057}
10058
10059// optional .operations_research.MPSolveInfo solve_info = 10;
10060inline bool MPSolutionResponse::has_solve_info() const {
10061 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
10062 PROTOBUF_ASSUME(!value || _impl_.solve_info_ != nullptr);
10063 return value;
10066 ::google::protobuf::internal::TSanWrite(&_impl_);
10067 if (_impl_.solve_info_ != nullptr) _impl_.solve_info_->Clear();
10068 _impl_._has_bits_[0] &= ~0x00000004u;
10069}
10070inline const ::operations_research::MPSolveInfo& MPSolutionResponse::_internal_solve_info() const {
10071 ::google::protobuf::internal::TSanRead(&_impl_);
10072 const ::operations_research::MPSolveInfo* p = _impl_.solve_info_;
10073 return p != nullptr ? *p : reinterpret_cast<const ::operations_research::MPSolveInfo&>(::operations_research::_MPSolveInfo_default_instance_);
10074}
10075inline const ::operations_research::MPSolveInfo& MPSolutionResponse::solve_info() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
10076 // @@protoc_insertion_point(field_get:operations_research.MPSolutionResponse.solve_info)
10077 return _internal_solve_info();
10078}
10080 ::operations_research::MPSolveInfo* PROTOBUF_NULLABLE value) {
10081 ::google::protobuf::internal::TSanWrite(&_impl_);
10082 if (GetArena() == nullptr) {
10083 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.solve_info_);
10085 _impl_.solve_info_ = reinterpret_cast<::operations_research::MPSolveInfo*>(value);
10086 if (value != nullptr) {
10087 _impl_._has_bits_[0] |= 0x00000004u;
10088 } else {
10089 _impl_._has_bits_[0] &= ~0x00000004u;
10090 }
10091 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.MPSolutionResponse.solve_info)
10092}
10093inline ::operations_research::MPSolveInfo* PROTOBUF_NULLABLE MPSolutionResponse::release_solve_info() {
10094 ::google::protobuf::internal::TSanWrite(&_impl_);
10095
10096 _impl_._has_bits_[0] &= ~0x00000004u;
10097 ::operations_research::MPSolveInfo* released = _impl_.solve_info_;
10098 _impl_.solve_info_ = nullptr;
10099 if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
10100 auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
10101 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
10102 if (GetArena() == nullptr) {
10103 delete old;
10104 }
10105 } else {
10106 if (GetArena() != nullptr) {
10107 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
10108 }
10109 }
10110 return released;
10111}
10112inline ::operations_research::MPSolveInfo* PROTOBUF_NULLABLE MPSolutionResponse::unsafe_arena_release_solve_info() {
10113 ::google::protobuf::internal::TSanWrite(&_impl_);
10114 // @@protoc_insertion_point(field_release:operations_research.MPSolutionResponse.solve_info)
10115
10116 _impl_._has_bits_[0] &= ~0x00000004u;
10117 ::operations_research::MPSolveInfo* temp = _impl_.solve_info_;
10118 _impl_.solve_info_ = nullptr;
10119 return temp;
10120}
10121inline ::operations_research::MPSolveInfo* PROTOBUF_NONNULL MPSolutionResponse::_internal_mutable_solve_info() {
10122 ::google::protobuf::internal::TSanWrite(&_impl_);
10123 if (_impl_.solve_info_ == nullptr) {
10124 auto* p = ::google::protobuf::Message::DefaultConstruct<::operations_research::MPSolveInfo>(GetArena());
10125 _impl_.solve_info_ = reinterpret_cast<::operations_research::MPSolveInfo*>(p);
10127 return _impl_.solve_info_;
10128}
10129inline ::operations_research::MPSolveInfo* PROTOBUF_NONNULL MPSolutionResponse::mutable_solve_info()
10130 ABSL_ATTRIBUTE_LIFETIME_BOUND {
10131 _impl_._has_bits_[0] |= 0x00000004u;
10132 ::operations_research::MPSolveInfo* _msg = _internal_mutable_solve_info();
10133 // @@protoc_insertion_point(field_mutable:operations_research.MPSolutionResponse.solve_info)
10134 return _msg;
10135}
10136inline void MPSolutionResponse::set_allocated_solve_info(::operations_research::MPSolveInfo* PROTOBUF_NULLABLE value) {
10137 ::google::protobuf::Arena* message_arena = GetArena();
10138 ::google::protobuf::internal::TSanWrite(&_impl_);
10139 if (message_arena == nullptr) {
10140 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.solve_info_);
10141 }
10142
10143 if (value != nullptr) {
10144 ::google::protobuf::Arena* submessage_arena = value->GetArena();
10145 if (message_arena != submessage_arena) {
10146 value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
10147 }
10148 _impl_._has_bits_[0] |= 0x00000004u;
10149 } else {
10150 _impl_._has_bits_[0] &= ~0x00000004u;
10151 }
10152
10153 _impl_.solve_info_ = reinterpret_cast<::operations_research::MPSolveInfo*>(value);
10154 // @@protoc_insertion_point(field_set_allocated:operations_research.MPSolutionResponse.solve_info)
10155}
10156
10157// optional bytes solver_specific_info = 11;
10159 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
10160 return value;
10161}
10163 ::google::protobuf::internal::TSanWrite(&_impl_);
10164 _impl_.solver_specific_info_.ClearToEmpty();
10165 _impl_._has_bits_[0] &= ~0x00000002u;
10166}
10167inline const ::std::string& MPSolutionResponse::solver_specific_info() const
10168 ABSL_ATTRIBUTE_LIFETIME_BOUND {
10169 // @@protoc_insertion_point(field_get:operations_research.MPSolutionResponse.solver_specific_info)
10170 return _internal_solver_specific_info();
10171}
10172template <typename Arg_, typename... Args_>
10173PROTOBUF_ALWAYS_INLINE void MPSolutionResponse::set_solver_specific_info(Arg_&& arg, Args_... args) {
10174 ::google::protobuf::internal::TSanWrite(&_impl_);
10175 _impl_._has_bits_[0] |= 0x00000002u;
10176 _impl_.solver_specific_info_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
10177 // @@protoc_insertion_point(field_set:operations_research.MPSolutionResponse.solver_specific_info)
10178}
10179inline ::std::string* PROTOBUF_NONNULL MPSolutionResponse::mutable_solver_specific_info()
10180 ABSL_ATTRIBUTE_LIFETIME_BOUND {
10181 ::std::string* _s = _internal_mutable_solver_specific_info();
10182 // @@protoc_insertion_point(field_mutable:operations_research.MPSolutionResponse.solver_specific_info)
10183 return _s;
10184}
10185inline const ::std::string& MPSolutionResponse::_internal_solver_specific_info() const {
10186 ::google::protobuf::internal::TSanRead(&_impl_);
10187 return _impl_.solver_specific_info_.Get();
10188}
10189inline void MPSolutionResponse::_internal_set_solver_specific_info(const ::std::string& value) {
10190 ::google::protobuf::internal::TSanWrite(&_impl_);
10191 _impl_._has_bits_[0] |= 0x00000002u;
10192 _impl_.solver_specific_info_.Set(value, GetArena());
10193}
10194inline ::std::string* PROTOBUF_NONNULL MPSolutionResponse::_internal_mutable_solver_specific_info() {
10195 ::google::protobuf::internal::TSanWrite(&_impl_);
10196 _impl_._has_bits_[0] |= 0x00000002u;
10197 return _impl_.solver_specific_info_.Mutable( GetArena());
10198}
10199inline ::std::string* PROTOBUF_NULLABLE MPSolutionResponse::release_solver_specific_info() {
10200 ::google::protobuf::internal::TSanWrite(&_impl_);
10201 // @@protoc_insertion_point(field_release:operations_research.MPSolutionResponse.solver_specific_info)
10202 if ((_impl_._has_bits_[0] & 0x00000002u) == 0) {
10203 return nullptr;
10204 }
10205 _impl_._has_bits_[0] &= ~0x00000002u;
10206 auto* released = _impl_.solver_specific_info_.Release();
10207 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
10208 _impl_.solver_specific_info_.Set("", GetArena());
10210 return released;
10211}
10212inline void MPSolutionResponse::set_allocated_solver_specific_info(::std::string* PROTOBUF_NULLABLE value) {
10213 ::google::protobuf::internal::TSanWrite(&_impl_);
10214 if (value != nullptr) {
10215 _impl_._has_bits_[0] |= 0x00000002u;
10216 } else {
10217 _impl_._has_bits_[0] &= ~0x00000002u;
10218 }
10219 _impl_.solver_specific_info_.SetAllocated(value, GetArena());
10220 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.solver_specific_info_.IsDefault()) {
10221 _impl_.solver_specific_info_.Set("", GetArena());
10222 }
10223 // @@protoc_insertion_point(field_set_allocated:operations_research.MPSolutionResponse.solver_specific_info)
10224}
10225
10226// repeated double dual_value = 4 [packed = true];
10227inline int MPSolutionResponse::_internal_dual_value_size() const {
10228 return _internal_dual_value().size();
10229}
10230inline int MPSolutionResponse::dual_value_size() const {
10231 return _internal_dual_value_size();
10232}
10234 ::google::protobuf::internal::TSanWrite(&_impl_);
10235 _impl_.dual_value_.Clear();
10236}
10237inline double MPSolutionResponse::dual_value(int index) const {
10238 // @@protoc_insertion_point(field_get:operations_research.MPSolutionResponse.dual_value)
10239 return _internal_dual_value().Get(index);
10240}
10241inline void MPSolutionResponse::set_dual_value(int index, double value) {
10242 _internal_mutable_dual_value()->Set(index, value);
10243 // @@protoc_insertion_point(field_set:operations_research.MPSolutionResponse.dual_value)
10244}
10245inline void MPSolutionResponse::add_dual_value(double value) {
10246 ::google::protobuf::internal::TSanWrite(&_impl_);
10247 _internal_mutable_dual_value()->Add(value);
10248 // @@protoc_insertion_point(field_add:operations_research.MPSolutionResponse.dual_value)
10249}
10250inline const ::google::protobuf::RepeatedField<double>& MPSolutionResponse::dual_value() const
10251 ABSL_ATTRIBUTE_LIFETIME_BOUND {
10252 // @@protoc_insertion_point(field_list:operations_research.MPSolutionResponse.dual_value)
10253 return _internal_dual_value();
10254}
10255inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL MPSolutionResponse::mutable_dual_value()
10256 ABSL_ATTRIBUTE_LIFETIME_BOUND {
10257 // @@protoc_insertion_point(field_mutable_list:operations_research.MPSolutionResponse.dual_value)
10258 ::google::protobuf::internal::TSanWrite(&_impl_);
10259 return _internal_mutable_dual_value();
10260}
10261inline const ::google::protobuf::RepeatedField<double>&
10262MPSolutionResponse::_internal_dual_value() const {
10263 ::google::protobuf::internal::TSanRead(&_impl_);
10264 return _impl_.dual_value_;
10265}
10266inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL
10267MPSolutionResponse::_internal_mutable_dual_value() {
10268 ::google::protobuf::internal::TSanRead(&_impl_);
10269 return &_impl_.dual_value_;
10270}
10271
10272// repeated double reduced_cost = 6 [packed = true];
10273inline int MPSolutionResponse::_internal_reduced_cost_size() const {
10274 return _internal_reduced_cost().size();
10275}
10276inline int MPSolutionResponse::reduced_cost_size() const {
10277 return _internal_reduced_cost_size();
10278}
10280 ::google::protobuf::internal::TSanWrite(&_impl_);
10281 _impl_.reduced_cost_.Clear();
10282}
10283inline double MPSolutionResponse::reduced_cost(int index) const {
10284 // @@protoc_insertion_point(field_get:operations_research.MPSolutionResponse.reduced_cost)
10285 return _internal_reduced_cost().Get(index);
10286}
10287inline void MPSolutionResponse::set_reduced_cost(int index, double value) {
10288 _internal_mutable_reduced_cost()->Set(index, value);
10289 // @@protoc_insertion_point(field_set:operations_research.MPSolutionResponse.reduced_cost)
10290}
10291inline void MPSolutionResponse::add_reduced_cost(double value) {
10292 ::google::protobuf::internal::TSanWrite(&_impl_);
10293 _internal_mutable_reduced_cost()->Add(value);
10294 // @@protoc_insertion_point(field_add:operations_research.MPSolutionResponse.reduced_cost)
10295}
10296inline const ::google::protobuf::RepeatedField<double>& MPSolutionResponse::reduced_cost() const
10297 ABSL_ATTRIBUTE_LIFETIME_BOUND {
10298 // @@protoc_insertion_point(field_list:operations_research.MPSolutionResponse.reduced_cost)
10299 return _internal_reduced_cost();
10300}
10301inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL MPSolutionResponse::mutable_reduced_cost()
10302 ABSL_ATTRIBUTE_LIFETIME_BOUND {
10303 // @@protoc_insertion_point(field_mutable_list:operations_research.MPSolutionResponse.reduced_cost)
10304 ::google::protobuf::internal::TSanWrite(&_impl_);
10305 return _internal_mutable_reduced_cost();
10306}
10307inline const ::google::protobuf::RepeatedField<double>&
10308MPSolutionResponse::_internal_reduced_cost() const {
10309 ::google::protobuf::internal::TSanRead(&_impl_);
10310 return _impl_.reduced_cost_;
10311}
10312inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL
10313MPSolutionResponse::_internal_mutable_reduced_cost() {
10314 ::google::protobuf::internal::TSanRead(&_impl_);
10315 return &_impl_.reduced_cost_;
10316}
10317
10318// repeated .operations_research.MPSolution additional_solutions = 8;
10319inline int MPSolutionResponse::_internal_additional_solutions_size() const {
10320 return _internal_additional_solutions().size();
10321}
10323 return _internal_additional_solutions_size();
10324}
10326 ::google::protobuf::internal::TSanWrite(&_impl_);
10327 _impl_.additional_solutions_.Clear();
10328}
10329inline ::operations_research::MPSolution* PROTOBUF_NONNULL MPSolutionResponse::mutable_additional_solutions(int index)
10330 ABSL_ATTRIBUTE_LIFETIME_BOUND {
10331 // @@protoc_insertion_point(field_mutable:operations_research.MPSolutionResponse.additional_solutions)
10332 return _internal_mutable_additional_solutions()->Mutable(index);
10333}
10334inline ::google::protobuf::RepeatedPtrField<::operations_research::MPSolution>* PROTOBUF_NONNULL MPSolutionResponse::mutable_additional_solutions()
10335 ABSL_ATTRIBUTE_LIFETIME_BOUND {
10336 // @@protoc_insertion_point(field_mutable_list:operations_research.MPSolutionResponse.additional_solutions)
10337 ::google::protobuf::internal::TSanWrite(&_impl_);
10338 return _internal_mutable_additional_solutions();
10339}
10340inline const ::operations_research::MPSolution& MPSolutionResponse::additional_solutions(int index) const
10341 ABSL_ATTRIBUTE_LIFETIME_BOUND {
10342 // @@protoc_insertion_point(field_get:operations_research.MPSolutionResponse.additional_solutions)
10343 return _internal_additional_solutions().Get(index);
10344}
10345inline ::operations_research::MPSolution* PROTOBUF_NONNULL MPSolutionResponse::add_additional_solutions()
10346 ABSL_ATTRIBUTE_LIFETIME_BOUND {
10347 ::google::protobuf::internal::TSanWrite(&_impl_);
10348 ::operations_research::MPSolution* _add = _internal_mutable_additional_solutions()->Add();
10349 // @@protoc_insertion_point(field_add:operations_research.MPSolutionResponse.additional_solutions)
10350 return _add;
10351}
10352inline const ::google::protobuf::RepeatedPtrField<::operations_research::MPSolution>& MPSolutionResponse::additional_solutions() const
10353 ABSL_ATTRIBUTE_LIFETIME_BOUND {
10354 // @@protoc_insertion_point(field_list:operations_research.MPSolutionResponse.additional_solutions)
10355 return _internal_additional_solutions();
10356}
10357inline const ::google::protobuf::RepeatedPtrField<::operations_research::MPSolution>&
10358MPSolutionResponse::_internal_additional_solutions() const {
10359 ::google::protobuf::internal::TSanRead(&_impl_);
10360 return _impl_.additional_solutions_;
10361}
10362inline ::google::protobuf::RepeatedPtrField<::operations_research::MPSolution>* PROTOBUF_NONNULL
10363MPSolutionResponse::_internal_mutable_additional_solutions() {
10364 ::google::protobuf::internal::TSanRead(&_impl_);
10365 return &_impl_.additional_solutions_;
10366}
10367
10368#ifdef __GNUC__
10369#pragma GCC diagnostic pop
10370#endif // __GNUC__
10371
10372// @@protoc_insertion_point(namespace_scope)
10373} // namespace operations_research
10374
10375
10376namespace google {
10377namespace protobuf {
10378
10379template <>
10380struct is_proto_enum<::operations_research::MPSosConstraint_Type> : std::true_type {};
10381template <>
10382inline const EnumDescriptor* PROTOBUF_NONNULL GetEnumDescriptor<::operations_research::MPSosConstraint_Type>() {
10383 return ::operations_research::MPSosConstraint_Type_descriptor();
10384}
10385template <>
10386struct is_proto_enum<::operations_research::MPModelProto_Annotation_TargetType> : std::true_type {};
10387template <>
10388inline const EnumDescriptor* PROTOBUF_NONNULL GetEnumDescriptor<::operations_research::MPModelProto_Annotation_TargetType>() {
10389 return ::operations_research::MPModelProto_Annotation_TargetType_descriptor();
10390}
10391template <>
10393template <>
10394inline const EnumDescriptor* PROTOBUF_NONNULL GetEnumDescriptor<::operations_research::MPSolverCommonParameters_LPAlgorithmValues>() {
10395 return ::operations_research::MPSolverCommonParameters_LPAlgorithmValues_descriptor();
10396}
10397template <>
10398struct is_proto_enum<::operations_research::MPModelRequest_SolverType> : std::true_type {};
10399template <>
10400inline const EnumDescriptor* PROTOBUF_NONNULL GetEnumDescriptor<::operations_research::MPModelRequest_SolverType>() {
10401 return ::operations_research::MPModelRequest_SolverType_descriptor();
10402}
10403template <>
10404struct is_proto_enum<::operations_research::MPSolverResponseStatus> : std::true_type {};
10405template <>
10406inline const EnumDescriptor* PROTOBUF_NONNULL GetEnumDescriptor<::operations_research::MPSolverResponseStatus>() {
10407 return ::operations_research::MPSolverResponseStatus_descriptor();
10408}
10409
10410} // namespace protobuf
10411} // namespace google
10412
10413// @@protoc_insertion_point(global_scope)
10414
10415#include "google/protobuf/port_undef.inc"
10416
10417#endif // ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto_2epb_2eh
void UnsafeArenaSwap(MPAbsConstraint *PROTOBUF_NONNULL other)
void CopyFrom(const MPAbsConstraint &from)
::google::protobuf::Metadata GetMetadata() const
bool has_resultant_var_index() const
optional int32 resultant_var_index = 2;
bool has_var_index() const
optional int32 var_index = 1;
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
implements Message -------------------------------------------—
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::Metadata GetMetadata() const
::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
implements Message -------------------------------------------—
friend void swap(MPArrayConstraint &a, MPArrayConstraint &b)
bool has_resultant_var_index() const
optional int32 resultant_var_index = 2;
void set_var_index(int index, ::int32_t value)
int var_index_size() const
repeated int32 var_index = 1;
void Swap(MPArrayWithConstantConstraint *PROTOBUF_NONNULL other)
static const MPArrayWithConstantConstraint & default_instance()
int var_index_size() const
repeated int32 var_index = 1;
::google::protobuf::RepeatedField<::int32_t > *PROTOBUF_NONNULL mutable_var_index()
bool has_constant() const
optional double constant = 2;
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL GetDescriptor()
void MergeFrom(const MPArrayWithConstantConstraint &from)
bool has_resultant_var_index() const
optional int32 resultant_var_index = 3;
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)
::google::protobuf::Metadata GetMetadata() const
bool has_name() const
optional string name = 4 [default = ""];
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()
bool has_upper_bound() const
optional double upper_bound = 3 [default = inf];
const ::std::string & name() const
const ::google::protobuf::RepeatedField< double > & coefficient() const
bool has_is_lazy() const
optional bool is_lazy = 5 [default = false];
static constexpr auto InternalGenerateClassData_()
void MergeFrom(const MPConstraintProto &from)
int var_index_size() const
repeated int32 var_index = 6 [packed = true];
void Swap(MPConstraintProto *PROTOBUF_NONNULL other)
int coefficient_size() const
repeated double coefficient = 7 [packed = true];
void CopyFrom(const MPConstraintProto &from)
static const MPConstraintProto & default_instance()
bool has_lower_bound() const
optional double lower_bound = 2 [default = -inf];
friend void swap(MPConstraintProto &a, MPConstraintProto &b)
void set_allocated_name(::std::string *PROTOBUF_NULLABLE value)
::google::protobuf::Metadata GetMetadata() const
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)
bool has_quadratic_constraint() const
.operations_research.MPQuadraticConstraint quadratic_constraint = 4;
void set_allocated_abs_constraint(::operations_research::MPAbsConstraint *PROTOBUF_NULLABLE value)
bool has_min_constraint() const
.operations_research.MPArrayWithConstantConstraint min_constraint = 8;
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)
bool has_max_constraint() const
.operations_research.MPArrayWithConstantConstraint max_constraint = 9;
::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()
bool has_or_constraint() const
.operations_research.MPArrayConstraint or_constraint = 7;
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()
bool has_name() const
optional string name = 1 [default = ""];
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)
bool has_sos_constraint() const
.operations_research.MPSosConstraint sos_constraint = 3;
bool has_indicator_constraint() const
.operations_research.MPIndicatorConstraint indicator_constraint = 2;
::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()
bool has_abs_constraint() const
.operations_research.MPAbsConstraint abs_constraint = 5;
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()
bool has_and_constraint() const
.operations_research.MPArrayConstraint and_constraint = 6;
::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
implements Message -------------------------------------------—
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)
bool has_var_value() const
optional int32 var_value = 2;
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()
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
void unsafe_arena_set_allocated_constraint(::operations_research::MPConstraintProto *PROTOBUF_NULLABLE value)
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
::operations_research::MPConstraintProto *PROTOBUF_NONNULL mutable_constraint()
MPIndicatorConstraint *PROTOBUF_NONNULL New(::google::protobuf::Arena *PROTOBUF_NULLABLE arena=nullptr) const
implements Message -------------------------------------------—
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)
bool has_constraint() const
optional .operations_research.MPConstraintProto constraint = 3;
::google::protobuf::Metadata GetMetadata() const
MPIndicatorConstraint & operator=(const MPIndicatorConstraint &from)
bool has_var_index() const
optional int32 var_index = 1;
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()
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
MPModelDeltaProto & operator=(const MPModelDeltaProto &from)
const ::std::string & baseline_model_file_path() const
int constraint_overrides_size() const
map<int32, .operations_research.MPConstraintProto> constraint_overrides = 3;
void set_allocated_baseline_model_file_path(::std::string *PROTOBUF_NULLABLE value)
MPModelDeltaProto *PROTOBUF_NONNULL New(::google::protobuf::Arena *PROTOBUF_NULLABLE arena=nullptr) const
implements Message -------------------------------------------—
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
int variable_overrides_size() const
map<int32, .operations_research.MPVariableProto> variable_overrides = 2;
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
bool has_baseline_model_file_path() const
optional string baseline_model_file_path = 1;
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)
bool has_payload_value() const
optional string payload_value = 5;
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()
bool has_target_type() const
optional .operations_research.MPModelProto.Annotation.TargetType target_type = 1;
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()
bool has_payload_key() const
optional string payload_key = 4;
::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()
bool has_target_index() const
optional int32 target_index = 2;
bool has_target_name() const
optional string target_name = 3;
MPModelProto_Annotation_TargetType TargetType
nested types -------------------------------------------------—
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)
::google::protobuf::Metadata GetMetadata() const
bool has_objective_offset() const
optional double objective_offset = 2 [default = 0];
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()
int variable_size() const
repeated .operations_research.MPVariableProto variable = 3;
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL descriptor()
::operations_research::PartialVariableAssignment *PROTOBUF_NULLABLE unsafe_arena_release_solution_hint()
MPModelProto_Annotation Annotation
nested types -------------------------------------------------—
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
static constexpr auto InternalNewImpl_()
::std::string *PROTOBUF_NONNULL mutable_name()
int annotation_size() const
repeated .operations_research.MPModelProto.Annotation annotation = 9;
::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
implements Message -------------------------------------------—
::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
int general_constraint_size() const
repeated .operations_research.MPGeneralConstraintProto general_constraint = 7;
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()
bool has_name() const
optional string name = 5 [default = ""];
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()
bool has_quadratic_objective() const
optional .operations_research.MPQuadraticObjective quadratic_objective = 8;
void unsafe_arena_set_allocated_quadratic_objective(::operations_research::MPQuadraticObjective *PROTOBUF_NULLABLE value)
bool has_solution_hint() const
optional .operations_research.PartialVariableAssignment solution_hint = 6;
static constexpr int kIndexInFileMessages
const ::google::protobuf::RepeatedPtrField<::operations_research::MPVariableProto > & variable() const
bool has_maximize() const
optional bool maximize = 1 [default = false];
::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)
int constraint_size() const
repeated .operations_research.MPConstraintProto constraint = 4;
friend class ::google::protobuf::Arena
MPModelRequest *PROTOBUF_NONNULL New(::google::protobuf::Arena *PROTOBUF_NULLABLE arena=nullptr) const
implements Message -------------------------------------------—
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)
bool has_solver_specific_parameters() const
optional string solver_specific_parameters = 5;
::operations_research::MPModelDeltaProto *PROTOBUF_NULLABLE unsafe_arena_release_model_delta()
MPModelRequest_SolverType SolverType
nested types -------------------------------------------------—
::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()
bool has_populate_additional_solutions_up_to() const
optional int32 populate_additional_solutions_up_to = 11 [default = 0];
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)
bool has_solver_time_limit_seconds() const
optional double solver_time_limit_seconds = 3;
void Swap(MPModelRequest *PROTOBUF_NONNULL other)
bool has_ignore_solver_specific_parameters_failure() const
optional bool ignore_solver_specific_parameters_failure = 9 [default = false];
static constexpr SolverType XPRESS_LINEAR_PROGRAMMING
::operations_research::MPModelDeltaProto *PROTOBUF_NONNULL mutable_model_delta()
bool has_solver_type() const
optional .operations_research.MPModelRequest.SolverType solver_type = 2 [default = GLOP_LINEAR_PROGRA...
::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)
bool has_enable_internal_solver_output() const
optional bool enable_internal_solver_output = 4 [default = false];
static constexpr SolverType GUROBI_LINEAR_PROGRAMMING
static constexpr SolverType CPLEX_MIXED_INTEGER_PROGRAMMING
bool has_model_delta() const
optional .operations_research.MPModelDeltaProto model_delta = 8;
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
bool has_model() const
optional .operations_research.MPModelProto model = 1;
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()
int qcoefficient_size() const
repeated double qcoefficient = 5;
int qvar2_index_size() const
repeated int32 qvar2_index = 4;
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()
int qvar1_index_size() const
repeated int32 qvar1_index = 3;
int var_index_size() const
repeated int32 var_index = 1;
int coefficient_size() const
repeated double coefficient = 2;
::google::protobuf::RepeatedField< double > *PROTOBUF_NONNULL mutable_qcoefficient()
::google::protobuf::Metadata GetMetadata() const
bool has_upper_bound() const
optional double upper_bound = 7 [default = inf];
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL descriptor()
const ::google::protobuf::RepeatedField<::int32_t > & qvar1_index() const
bool has_lower_bound() const
optional double lower_bound = 6 [default = -inf];
::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()
::google::protobuf::Metadata GetMetadata() const
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
int qvar1_index_size() const
repeated int32 qvar1_index = 1;
int qvar2_index_size() const
repeated int32 qvar2_index = 2;
::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)
int coefficient_size() const
repeated double coefficient = 3;
static const MPQuadraticObjective & default_instance()
void UnsafeArenaSwap(MPQuadraticObjective *PROTOBUF_NONNULL other)
MPQuadraticObjective *PROTOBUF_NONNULL New(::google::protobuf::Arena *PROTOBUF_NULLABLE arena=nullptr) const
implements Message -------------------------------------------—
friend class ::google::protobuf::Arena
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()
bool has_solver_specific_info() const
optional bytes solver_specific_info = 11;
::operations_research::MPSolveInfo *PROTOBUF_NONNULL mutable_solve_info()
static const MPSolutionResponse & default_instance()
::google::protobuf::RepeatedPtrField<::operations_research::MPSolution > *PROTOBUF_NONNULL mutable_additional_solutions()
bool has_best_objective_bound() const
optional double best_objective_bound = 5;
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)
int reduced_cost_size() const
repeated double reduced_cost = 6 [packed = true];
::std::string *PROTOBUF_NONNULL mutable_status_str()
const ::google::protobuf::RepeatedPtrField<::operations_research::MPSolution > & additional_solutions() const
int additional_solutions_size() const
repeated .operations_research.MPSolution additional_solutions = 8;
const ::google::protobuf::RepeatedField< double > & reduced_cost() const
void set_dual_value(int index, double value)
bool has_objective_value() const
optional double objective_value = 2;
::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
bool has_status_str() const
optional string status_str = 7;
::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)
int dual_value_size() const
repeated double dual_value = 4 [packed = true];
void set_allocated_solver_specific_info(::std::string *PROTOBUF_NULLABLE value)
bool has_status() const
optional .operations_research.MPSolverResponseStatus status = 1 [default = MPSOLVER_UNKNOWN_STATUS];
::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
implements Message -------------------------------------------—
int variable_value_size() const
repeated double variable_value = 3 [packed = true];
bool has_solve_info() const
optional .operations_research.MPSolveInfo solve_info = 10;
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
int variable_value_size() const
repeated double variable_value = 2 [packed = true];
::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)
static constexpr auto InternalGenerateClassData_()
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
implements Message -------------------------------------------—
static constexpr int kIndexInFileMessages
friend void swap(MPSolution &a, MPSolution &b)
::google::protobuf::Metadata GetMetadata() const
const ::google::protobuf::RepeatedField< double > & variable_value() const
bool has_objective_value() const
optional double objective_value = 1;
static constexpr auto InternalNewImpl_()
static const MPSolution & default_instance()
friend class ::google::protobuf::Arena
void Swap(MPSolveInfo *PROTOBUF_NONNULL other)
static constexpr auto InternalNewImpl_()
bool has_solve_wall_time_seconds() const
optional double solve_wall_time_seconds = 1;
static const ::google::protobuf::Reflection *PROTOBUF_NONNULL GetReflection()
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
::google::protobuf::Metadata GetMetadata() const
static constexpr auto InternalGenerateClassData_()
MPSolveInfo *PROTOBUF_NONNULL New(::google::protobuf::Arena *PROTOBUF_NULLABLE arena=nullptr) const
implements Message -------------------------------------------—
::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()
bool has_solve_user_time_seconds() const
optional double solve_user_time_seconds = 2;
static const MPSolveInfo & default_instance()
void set_solve_user_time_seconds(double value)
MPSolveInfo & operator=(const MPSolveInfo &from)
void MergeFrom(const MPSolveInfo &from)
friend class ::google::protobuf::Arena
static constexpr LPAlgorithmValues LP_ALGO_DUAL
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
static constexpr LPAlgorithmValues LP_ALGO_UNSPECIFIED
::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
implements Message -------------------------------------------—
void set_lp_algorithm(::operations_research::MPSolverCommonParameters_LPAlgorithmValues value)
bool has_primal_tolerance() const
optional .operations_research.OptionalDouble primal_tolerance = 2;
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()
static constexpr LPAlgorithmValues LP_ALGO_PRIMAL
::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)
static constexpr LPAlgorithmValues LP_ALGO_BARRIER
MPSolverCommonParameters_LPAlgorithmValues LPAlgorithmValues
nested types -------------------------------------------------—
bool has_relative_mip_gap() const
optional .operations_research.OptionalDouble relative_mip_gap = 1;
bool has_presolve() const
optional .operations_research.OptionalBoolean presolve = 5 [default = BOOL_UNSPECIFIED];
bool has_dual_tolerance() const
optional .operations_research.OptionalDouble dual_tolerance = 3;
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
bool has_scaling() const
optional .operations_research.OptionalBoolean scaling = 7 [default = BOOL_UNSPECIFIED];
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)
bool has_lp_algorithm() const
optional .operations_research.MPSolverCommonParameters.LPAlgorithmValues lp_algorithm = 4 [default = ...
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
bool has_type() const
optional .operations_research.MPSosConstraint.Type type = 1 [default = SOS1_DEFAULT];
::operations_research::MPSosConstraint_Type type() const
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
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
int weight_size() const
repeated double weight = 3;
static const ::google::protobuf::EnumDescriptor *PROTOBUF_NONNULL Type_descriptor()
MPSosConstraint_Type Type
nested types -------------------------------------------------—
void MergeFrom(const MPSosConstraint &from)
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
::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()
::google::protobuf::Metadata GetMetadata() const
void set_type(::operations_research::MPSosConstraint_Type value)
int var_index_size() const
repeated int32 var_index = 2;
void set_var_index(int index, ::int32_t value)
static constexpr auto InternalGenerateClassData_()
::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
implements Message -------------------------------------------—
friend class ::google::protobuf::Arena
::std::string *PROTOBUF_NONNULL mutable_name()
friend class ::google::protobuf::MessageLite
void CopyFrom(const MPVariableProto &from)
bool has_upper_bound() const
optional double upper_bound = 2 [default = inf];
void MergeFrom(const MPVariableProto &from)
void set_name(Arg_ &&arg, Args_... args)
PROTOBUF_CONSTEXPR MPVariableProto(::google::protobuf::internal::ConstantInitialized)
bool has_lower_bound() const
optional double lower_bound = 1 [default = -inf];
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()
bool has_is_integer() const
optional bool is_integer = 4 [default = false];
MPVariableProto & operator=(const MPVariableProto &from)
bool has_branching_priority() const
optional int32 branching_priority = 6 [default = 0];
friend void swap(MPVariableProto &a, MPVariableProto &b)
bool has_name() const
optional string name = 5 [default = ""];
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()
bool has_objective_coefficient() const
optional double objective_coefficient = 3 [default = 0];
void Swap(MPVariableProto *PROTOBUF_NONNULL other)
void Swap(OptionalDouble *PROTOBUF_NONNULL other)
friend class ::google::protobuf::MessageLite
bool has_value() const
optional double value = 1;
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)
PartialVariableAssignment(::google::protobuf::Arena *PROTOBUF_NULLABLE arena, PartialVariableAssignment &&from) noexcept
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
int var_index_size() const
repeated int32 var_index = 1 [packed = true];
PROTOBUF_CONSTEXPR PartialVariableAssignment(::google::protobuf::internal::ConstantInitialized)
::google::protobuf::RepeatedField<::int32_t > *PROTOBUF_NONNULL mutable_var_index()
int var_value_size() const
repeated double var_value = 2 [packed = true];
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()
In SWIG mode, we don't want anything besides these top-level includes.
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_
Internal implementation detail – do not use these members.