6#ifndef ortools_2fsat_2fboolean_5fproblem_2eproto_2epb_2eh
7#define ortools_2fsat_2fboolean_5fproblem_2eproto_2epb_2eh
14#include "google/protobuf/runtime_version.h"
15#if PROTOBUF_VERSION != 6033001
16#error "Protobuf C++ gencode is built with an incompatible version of"
17#error "Protobuf C++ headers/runtime. See"
18#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp"
20#include "google/protobuf/io/coded_stream.h"
21#include "google/protobuf/arena.h"
22#include "google/protobuf/arenastring.h"
23#include "google/protobuf/generated_message_tctable_decl.h"
24#include "google/protobuf/generated_message_util.h"
25#include "google/protobuf/metadata_lite.h"
26#include "google/protobuf/generated_message_reflection.h"
27#include "google/protobuf/message.h"
28#include "google/protobuf/message_lite.h"
29#include "google/protobuf/repeated_field.h"
30#include "google/protobuf/extension_set.h"
31#include "google/protobuf/unknown_field_set.h"
35#include "google/protobuf/port_def.inc"
37#define PROTOBUF_INTERNAL_EXPORT_ortools_2fsat_2fboolean_5fproblem_2eproto OR_PROTO_DLL
88class OR_PROTO_DLL
LinearObjective final :
public ::google::protobuf::Message
94#if defined(PROTOBUF_CUSTOM_VTABLE)
95 void operator delete(
LinearObjective* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
97 ::google::protobuf::internal::SizedDelete(msg,
sizeof(
LinearObjective));
101 template <
typename =
void>
102 explicit PROTOBUF_CONSTEXPR
LinearObjective(::google::protobuf::internal::ConstantInitialized);
112 if (
this == &from)
return *
this;
113 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
121 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
122 ABSL_ATTRIBUTE_LIFETIME_BOUND {
123 return _internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
125 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
126 ABSL_ATTRIBUTE_LIFETIME_BOUND {
127 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
130 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
131 return GetDescriptor();
133 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
134 return default_instance().GetMetadata().descriptor;
136 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
137 return default_instance().GetMetadata().reflection;
143 static constexpr int kIndexInFileMessages = 1;
146 if (other ==
this)
return;
147 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
150 ::google::protobuf::internal::GenericSwap(
this, other);
153 void UnsafeArenaSwap(LinearObjective* PROTOBUF_NONNULL other) {
154 if (other ==
this)
return;
155 ABSL_DCHECK(GetArena() == other->GetArena());
161 LinearObjective* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena =
nullptr)
const {
162 return ::google::protobuf::Message::DefaultConstruct<LinearObjective>(arena);
164 using ::google::protobuf::Message::CopyFrom;
166 using ::google::protobuf::Message::MergeFrom;
167 void MergeFrom(
const LinearObjective& from) { LinearObjective::MergeImpl(*
this, from); }
170 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
171 const ::google::protobuf::MessageLite& from_msg);
177 ABSL_ATTRIBUTE_REINITIALIZES
void Clear() PROTOBUF_FINAL;
178 #if defined(PROTOBUF_CUSTOM_VTABLE)
180 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
181 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
182 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
183 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
186 ::size_t ByteSizeLong()
const {
return ByteSizeLong(*
this); }
187 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
188 ::uint8_t* PROTOBUF_NONNULL target,
189 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
190 return _InternalSerialize(*
this, target, stream);
193 ::size_t ByteSizeLong() const final;
194 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
195 ::uint8_t* PROTOBUF_NONNULL target,
196 ::
google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
198 int GetCachedSize()
const {
return _impl_._cached_size_.Get(); }
201 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
205 template <
typename T>
207 static ::absl::string_view FullMessageName() {
return "operations_research.sat.LinearObjective"; }
209 explicit LinearObjective(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
212 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
LinearObjective&& from) noexcept
214 *
this = ::std::move(from);
216 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
217 static
void* PROTOBUF_NONNULL PlacementNew_(
218 const
void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
219 ::
google::protobuf::Arena* PROTOBUF_NULLABLE arena);
220 static constexpr auto InternalNewImpl_();
223 static constexpr auto InternalGenerateClassData_();
225 ::
google::protobuf::Metadata GetMetadata() const;
230 kLiteralsFieldNumber = 1,
231 kCoefficientsFieldNumber = 2,
238 int _internal_literals_size()
const;
242 ::int32_t
literals(
int index)
const;
245 const ::google::protobuf::RepeatedField<::int32_t>&
literals()
const;
246 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL
mutable_literals();
249 const ::google::protobuf::RepeatedField<::int32_t>& _internal_literals()
const;
250 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_literals();
256 int _internal_coefficients_size()
const;
263 const ::google::protobuf::RepeatedField<::int64_t>&
coefficients()
const;
267 const ::google::protobuf::RepeatedField<::int64_t>& _internal_coefficients()
const;
268 ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL _internal_mutable_coefficients();
278 double _internal_offset()
const;
279 void _internal_set_offset(
double value);
289 double _internal_scaling_factor()
const;
290 void _internal_set_scaling_factor(
double value);
296 friend class ::google::protobuf::internal::TcParser;
297 static const ::google::protobuf::internal::TcParseTable<2, 4,
302 friend class ::google::protobuf::MessageLite;
303 friend class ::google::protobuf::Arena;
304 template <
typename T>
305 friend class ::google::protobuf::Arena::InternalHelper;
306 using InternalArenaConstructable_ = void;
307 using DestructorSkippable_ = void;
309 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized)
noexcept;
310 inline explicit Impl_(
311 ::google::protobuf::internal::InternalVisibility visibility,
312 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
313 inline explicit Impl_(
314 ::google::protobuf::internal::InternalVisibility visibility,
315 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
317 ::google::protobuf::internal::HasBits<1> _has_bits_;
318 ::google::protobuf::internal::CachedSize _cached_size_;
319 ::google::protobuf::RepeatedField<::int32_t> literals_;
320 ::google::protobuf::RepeatedField<::int64_t> coefficients_;
322 double scaling_factor_;
323 PROTOBUF_TSAN_DECLARE_MEMBER
325 union { Impl_ _impl_; };
326 friend struct ::TableStruct_ortools_2fsat_2fboolean_5fproblem_2eproto;
338#if defined(PROTOBUF_CUSTOM_VTABLE)
345 template <
typename =
void>
356 if (
this == &from)
return *
this;
357 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
365 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
366 ABSL_ATTRIBUTE_LIFETIME_BOUND {
367 return _internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
369 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
370 ABSL_ATTRIBUTE_LIFETIME_BOUND {
371 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
374 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
375 return GetDescriptor();
377 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL
GetDescriptor() {
380 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL
GetReflection() {
387 static constexpr int kIndexInFileMessages = 0;
389 inline void Swap(LinearBooleanConstraint* PROTOBUF_NONNULL other) {
390 if (other ==
this)
return;
391 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
394 ::google::protobuf::internal::GenericSwap(
this, other);
397 void UnsafeArenaSwap(LinearBooleanConstraint* PROTOBUF_NONNULL other) {
398 if (other ==
this)
return;
399 ABSL_DCHECK(GetArena() == other->GetArena());
405 LinearBooleanConstraint* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena =
nullptr)
const {
406 return ::google::protobuf::Message::DefaultConstruct<LinearBooleanConstraint>(arena);
408 using ::google::protobuf::Message::CopyFrom;
410 using ::google::protobuf::Message::MergeFrom;
414 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
415 const ::google::protobuf::MessageLite& from_msg);
421 ABSL_ATTRIBUTE_REINITIALIZES
void Clear() PROTOBUF_FINAL;
422 #if defined(PROTOBUF_CUSTOM_VTABLE)
424 static ::size_t
ByteSizeLong(const ::google::protobuf::MessageLite& msg);
426 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
427 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
431 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
432 ::uint8_t* PROTOBUF_NONNULL target,
433 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
434 return _InternalSerialize(*
this, target, stream);
437 ::size_t ByteSizeLong() const final;
438 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
439 ::uint8_t* PROTOBUF_NONNULL target,
440 ::
google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
442 int GetCachedSize()
const {
return _impl_._cached_size_.Get(); }
445 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
449 template <
typename T>
451 static ::absl::string_view FullMessageName() {
return "operations_research.sat.LinearBooleanConstraint"; }
458 *
this = ::std::move(from);
460 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
461 static
void* PROTOBUF_NONNULL PlacementNew_(
462 const
void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
463 ::
google::protobuf::Arena* PROTOBUF_NULLABLE arena);
464 static constexpr auto InternalNewImpl_();
467 static constexpr auto InternalGenerateClassData_();
469 ::
google::protobuf::Metadata GetMetadata() const;
474 kLiteralsFieldNumber = 1,
475 kCoefficientsFieldNumber = 2,
476 kNameFieldNumber = 5,
483 int _internal_literals_size()
const;
487 ::int32_t
literals(
int index)
const;
490 const ::google::protobuf::RepeatedField<::int32_t>&
literals()
const;
491 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL
mutable_literals();
494 const ::google::protobuf::RepeatedField<::int32_t>& _internal_literals()
const;
495 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_literals();
501 int _internal_coefficients_size()
const;
508 const ::google::protobuf::RepeatedField<::int64_t>&
coefficients()
const;
512 const ::google::protobuf::RepeatedField<::int64_t>& _internal_coefficients()
const;
513 ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL _internal_mutable_coefficients();
519 const ::std::string&
name()
const;
520 template <
typename Arg_ = const ::std::string&,
typename... Args_>
521 void set_name(Arg_&& arg, Args_... args);
523 [[nodiscard]] ::std::string* PROTOBUF_NULLABLE
release_name();
527 const ::std::string& _internal_name()
const;
528 PROTOBUF_ALWAYS_INLINE
void _internal_set_name(const ::std::string& value);
529 ::std::string* PROTOBUF_NONNULL _internal_mutable_name();
539 ::int64_t _internal_lower_bound()
const;
540 void _internal_set_lower_bound(::int64_t value);
550 ::int64_t _internal_upper_bound()
const;
551 void _internal_set_upper_bound(::int64_t value);
557 friend class ::google::protobuf::internal::TcParser;
558 static const ::google::protobuf::internal::TcParseTable<3, 5,
563 friend class ::google::protobuf::MessageLite;
564 friend class ::google::protobuf::Arena;
565 template <
typename T>
566 friend class ::google::protobuf::Arena::InternalHelper;
567 using InternalArenaConstructable_ = void;
568 using DestructorSkippable_ = void;
570 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized)
noexcept;
571 inline explicit Impl_(
572 ::google::protobuf::internal::InternalVisibility visibility,
573 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
574 inline explicit Impl_(
575 ::google::protobuf::internal::InternalVisibility visibility,
576 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
578 ::google::protobuf::internal::HasBits<1> _has_bits_;
579 ::google::protobuf::internal::CachedSize _cached_size_;
580 ::google::protobuf::RepeatedField<::int32_t> literals_;
581 ::google::protobuf::RepeatedField<::int64_t> coefficients_;
582 ::google::protobuf::internal::ArenaStringPtr name_;
583 ::int64_t lower_bound_;
584 ::int64_t upper_bound_;
585 PROTOBUF_TSAN_DECLARE_MEMBER
587 union { Impl_ _impl_; };
588 friend struct ::TableStruct_ortools_2fsat_2fboolean_5fproblem_2eproto;
600#if defined(PROTOBUF_CUSTOM_VTABLE)
607 template <
typename =
void>
608 explicit PROTOBUF_CONSTEXPR
BooleanAssignment(::google::protobuf::internal::ConstantInitialized);
611 inline BooleanAssignment(BooleanAssignment&& from) noexcept
618 if (
this == &from)
return *
this;
619 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
627 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
628 ABSL_ATTRIBUTE_LIFETIME_BOUND {
629 return _internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
632 ABSL_ATTRIBUTE_LIFETIME_BOUND {
633 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
636 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL
descriptor() {
639 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
642 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
652 if (other ==
this)
return;
653 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
656 ::google::protobuf::internal::GenericSwap(
this, other);
659 void UnsafeArenaSwap(BooleanAssignment* PROTOBUF_NONNULL other) {
660 if (other ==
this)
return;
661 ABSL_DCHECK(GetArena() == other->GetArena());
667 BooleanAssignment* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena =
nullptr)
const {
668 return ::google::protobuf::Message::DefaultConstruct<BooleanAssignment>(arena);
670 using ::google::protobuf::Message::CopyFrom;
672 using ::google::protobuf::Message::MergeFrom;
676 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
677 const ::google::protobuf::MessageLite& from_msg);
683 ABSL_ATTRIBUTE_REINITIALIZES
void Clear() PROTOBUF_FINAL;
684 #if defined(PROTOBUF_CUSTOM_VTABLE)
686 static ::size_t
ByteSizeLong(const ::google::protobuf::MessageLite& msg);
688 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
689 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
693 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
694 ::uint8_t* PROTOBUF_NONNULL target,
695 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
696 return _InternalSerialize(*
this, target, stream);
699 ::size_t ByteSizeLong() const final;
700 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
701 ::uint8_t* PROTOBUF_NONNULL target,
702 ::
google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
704 int GetCachedSize()
const {
return _impl_._cached_size_.Get(); }
707 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
711 template <
typename T>
713 static ::absl::string_view FullMessageName() {
return "operations_research.sat.BooleanAssignment"; }
718 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
BooleanAssignment&& from) noexcept
720 *
this = ::std::move(from);
722 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
723 static
void* PROTOBUF_NONNULL PlacementNew_(
724 const
void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
725 ::
google::protobuf::Arena* PROTOBUF_NULLABLE arena);
726 static constexpr auto InternalNewImpl_();
729 static constexpr auto InternalGenerateClassData_();
731 ::
google::protobuf::Metadata GetMetadata() const;
736 kLiteralsFieldNumber = 1,
739 int literals_size()
const;
741 int _internal_literals_size()
const;
745 ::int32_t
literals(
int index)
const;
748 const ::google::protobuf::RepeatedField<::int32_t>&
literals()
const;
749 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL
mutable_literals();
752 const ::google::protobuf::RepeatedField<::int32_t>& _internal_literals()
const;
753 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_literals();
759 friend class ::google::protobuf::internal::TcParser;
760 static const ::google::protobuf::internal::TcParseTable<0, 1,
765 friend class ::google::protobuf::MessageLite;
766 friend class ::google::protobuf::Arena;
767 template <
typename T>
768 friend class ::google::protobuf::Arena::InternalHelper;
769 using InternalArenaConstructable_ = void;
770 using DestructorSkippable_ = void;
772 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized)
noexcept;
773 inline explicit Impl_(
774 ::google::protobuf::internal::InternalVisibility visibility,
775 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
776 inline explicit Impl_(
777 ::google::protobuf::internal::InternalVisibility visibility,
778 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
780 ::google::protobuf::internal::HasBits<1> _has_bits_;
781 ::google::protobuf::internal::CachedSize _cached_size_;
782 ::google::protobuf::RepeatedField<::int32_t> literals_;
783 PROTOBUF_TSAN_DECLARE_MEMBER
785 union { Impl_ _impl_; };
786 friend struct ::TableStruct_ortools_2fsat_2fboolean_5fproblem_2eproto;
798#if defined(PROTOBUF_CUSTOM_VTABLE)
805 template <
typename =
void>
806 explicit PROTOBUF_CONSTEXPR
LinearBooleanProblem(::google::protobuf::internal::ConstantInitialized);
809 inline LinearBooleanProblem(LinearBooleanProblem&& from) noexcept
810 : LinearBooleanProblem(
nullptr, ::std::move(from)) {}
816 if (
this == &from)
return *
this;
817 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
825 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
826 ABSL_ATTRIBUTE_LIFETIME_BOUND {
827 return _internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
829 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
830 ABSL_ATTRIBUTE_LIFETIME_BOUND {
831 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
834 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL
descriptor() {
837 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
838 return default_instance().GetMetadata().descriptor;
840 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
841 return default_instance().GetMetadata().reflection;
847 static constexpr int kIndexInFileMessages = 3;
850 if (other ==
this)
return;
851 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
854 ::google::protobuf::internal::GenericSwap(
this, other);
857 void UnsafeArenaSwap(LinearBooleanProblem* PROTOBUF_NONNULL other) {
858 if (other ==
this)
return;
859 ABSL_DCHECK(GetArena() == other->GetArena());
865 LinearBooleanProblem* PROTOBUF_NONNULL
New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena =
nullptr)
const {
866 return ::google::protobuf::Message::DefaultConstruct<LinearBooleanProblem>(arena);
868 using ::google::protobuf::Message::CopyFrom;
870 using ::google::protobuf::Message::MergeFrom;
874 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
875 const ::google::protobuf::MessageLite& from_msg);
881 ABSL_ATTRIBUTE_REINITIALIZES
void Clear() PROTOBUF_FINAL;
882 #if defined(PROTOBUF_CUSTOM_VTABLE)
884 static ::size_t
ByteSizeLong(const ::google::protobuf::MessageLite& msg);
886 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
887 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
891 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
892 ::uint8_t* PROTOBUF_NONNULL target,
893 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
894 return _InternalSerialize(*
this, target, stream);
897 ::size_t ByteSizeLong() const final;
898 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
899 ::uint8_t* PROTOBUF_NONNULL target,
900 ::
google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
902 int GetCachedSize()
const {
return _impl_._cached_size_.Get(); }
905 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
906 static void SharedDtor(MessageLite& self);
909 template <
typename T>
911 static ::absl::string_view FullMessageName() {
return "operations_research.sat.LinearBooleanProblem"; }
918 *
this = ::std::move(from);
920 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
921 static
void* PROTOBUF_NONNULL PlacementNew_(
922 const
void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
923 ::
google::protobuf::Arena* PROTOBUF_NULLABLE arena);
924 static constexpr auto InternalNewImpl_();
927 static constexpr auto InternalGenerateClassData_();
929 ::
google::protobuf::Metadata GetMetadata() const;
934 kConstraintsFieldNumber = 4,
935 kVarNamesFieldNumber = 6,
936 kNameFieldNumber = 1,
937 kObjectiveFieldNumber = 5,
938 kAssignmentFieldNumber = 7,
945 int _internal_constraints_size()
const;
950 ::google::protobuf::RepeatedPtrField<::operations_research::sat::LinearBooleanConstraint>* PROTOBUF_NONNULL
mutable_constraints();
953 const ::google::protobuf::RepeatedPtrField<::operations_research::sat::LinearBooleanConstraint>& _internal_constraints()
const;
954 ::google::protobuf::RepeatedPtrField<::operations_research::sat::LinearBooleanConstraint>* PROTOBUF_NONNULL _internal_mutable_constraints();
956 const ::operations_research::sat::LinearBooleanConstraint&
constraints(
int index)
const;
958 const ::google::protobuf::RepeatedPtrField<::operations_research::sat::LinearBooleanConstraint>&
constraints()
const;
962 int _internal_var_names_size()
const;
966 const ::std::string&
var_names(
int index)
const;
968 template <
typename Arg_ = const ::std::string&,
typename... Args_>
971 template <
typename Arg_ = const ::std::string&,
typename... Args_>
973 const ::google::protobuf::RepeatedPtrField<::std::string>&
var_names()
const;
974 ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL
mutable_var_names();
977 const ::google::protobuf::RepeatedPtrField<::std::string>& _internal_var_names()
const;
978 ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL _internal_mutable_var_names();
984 const ::std::string&
name()
const;
985 template <
typename Arg_ = const ::std::string&,
typename... Args_>
986 void set_name(Arg_&& arg, Args_... args);
988 [[nodiscard]] ::std::string* PROTOBUF_NULLABLE
release_name();
992 const ::std::string& _internal_name()
const;
993 PROTOBUF_ALWAYS_INLINE
void _internal_set_name(const ::std::string& value);
994 ::std::string* PROTOBUF_NONNULL _internal_mutable_name();
1000 const ::operations_research::sat::LinearObjective&
objective()
const;
1008 const ::operations_research::sat::LinearObjective& _internal_objective()
const;
1015 const ::operations_research::sat::BooleanAssignment&
assignment()
const;
1023 const ::operations_research::sat::BooleanAssignment& _internal_assignment()
const;
1034 ::int32_t _internal_num_variables()
const;
1035 void _internal_set_num_variables(::int32_t value);
1045 ::int32_t _internal_original_num_variables()
const;
1046 void _internal_set_original_num_variables(::int32_t value);
1052 friend class ::google::protobuf::internal::TcParser;
1053 static const ::google::protobuf::internal::TcParseTable<3, 7,
1058 friend class ::google::protobuf::MessageLite;
1059 friend class ::google::protobuf::Arena;
1060 template <
typename T>
1061 friend class ::google::protobuf::Arena::InternalHelper;
1062 using InternalArenaConstructable_ = void;
1063 using DestructorSkippable_ = void;
1065 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized)
noexcept;
1066 inline explicit Impl_(
1067 ::google::protobuf::internal::InternalVisibility visibility,
1068 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1069 inline explicit Impl_(
1070 ::google::protobuf::internal::InternalVisibility visibility,
1071 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
1073 ::google::protobuf::internal::HasBits<1> _has_bits_;
1074 ::google::protobuf::internal::CachedSize _cached_size_;
1075 ::google::protobuf::RepeatedPtrField< ::operations_research::sat::LinearBooleanConstraint > constraints_;
1076 ::google::protobuf::RepeatedPtrField<::std::string> var_names_;
1077 ::google::protobuf::internal::ArenaStringPtr name_;
1080 ::int32_t num_variables_;
1081 ::int32_t original_num_variables_;
1082 PROTOBUF_TSAN_DECLARE_MEMBER
1084 union { Impl_ _impl_; };
1085 friend struct ::TableStruct_ortools_2fsat_2fboolean_5fproblem_2eproto;
1099#pragma GCC diagnostic push
1100#pragma GCC diagnostic ignored "-Wstrict-aliasing"
1107inline int LinearBooleanConstraint::_internal_literals_size()
const {
1108 return _internal_literals().size();
1111 return _internal_literals_size();
1114 ::google::protobuf::internal::TSanWrite(&
_impl_);
1115 _impl_.literals_.Clear();
1116 ClearHasBitForRepeated(
_impl_._has_bits_[0],
1121 return _internal_literals().Get(index);
1124 _internal_mutable_literals()->Set(index, value);
1128 ::google::protobuf::internal::TSanWrite(&
_impl_);
1129 _internal_mutable_literals()->Add(value);
1130 SetHasBitForRepeated(
_impl_._has_bits_[0], 0x00000001U);
1134 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1136 return _internal_literals();
1139 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1140 SetHasBitForRepeated(
_impl_._has_bits_[0], 0x00000001U);
1142 ::google::protobuf::internal::TSanWrite(&
_impl_);
1143 return _internal_mutable_literals();
1145inline const ::google::protobuf::RepeatedField<::int32_t>&
1146LinearBooleanConstraint::_internal_literals()
const {
1147 ::google::protobuf::internal::TSanRead(&
_impl_);
1150inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL
1151LinearBooleanConstraint::_internal_mutable_literals() {
1152 ::google::protobuf::internal::TSanRead(&
_impl_);
1153 return &
_impl_.literals_;
1157inline int LinearBooleanConstraint::_internal_coefficients_size()
const {
1158 return _internal_coefficients().size();
1161 return _internal_coefficients_size();
1164 ::google::protobuf::internal::TSanWrite(&
_impl_);
1165 _impl_.coefficients_.Clear();
1166 ClearHasBitForRepeated(
_impl_._has_bits_[0],
1171 return _internal_coefficients().Get(index);
1174 _internal_mutable_coefficients()->Set(index, value);
1178 ::google::protobuf::internal::TSanWrite(&
_impl_);
1179 _internal_mutable_coefficients()->Add(value);
1180 SetHasBitForRepeated(
_impl_._has_bits_[0], 0x00000002U);
1184 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1186 return _internal_coefficients();
1189 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1190 SetHasBitForRepeated(
_impl_._has_bits_[0], 0x00000002U);
1192 ::google::protobuf::internal::TSanWrite(&
_impl_);
1193 return _internal_mutable_coefficients();
1195inline const ::google::protobuf::RepeatedField<::int64_t>&
1196LinearBooleanConstraint::_internal_coefficients()
const {
1197 ::google::protobuf::internal::TSanRead(&
_impl_);
1198 return _impl_.coefficients_;
1200inline ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL
1201LinearBooleanConstraint::_internal_mutable_coefficients() {
1202 ::google::protobuf::internal::TSanRead(&
_impl_);
1203 return &
_impl_.coefficients_;
1208 bool value = CheckHasBit(
_impl_._has_bits_[0], 0x00000008U);
1212 ::google::protobuf::internal::TSanWrite(&
_impl_);
1213 _impl_.lower_bound_ = ::int64_t{0};
1214 ClearHasBit(
_impl_._has_bits_[0],
1219 return _internal_lower_bound();
1222 _internal_set_lower_bound(value);
1223 SetHasBit(
_impl_._has_bits_[0], 0x00000008U);
1226inline ::int64_t LinearBooleanConstraint::_internal_lower_bound()
const {
1227 ::google::protobuf::internal::TSanRead(&
_impl_);
1228 return _impl_.lower_bound_;
1230inline void LinearBooleanConstraint::_internal_set_lower_bound(::int64_t value) {
1231 ::google::protobuf::internal::TSanWrite(&
_impl_);
1232 _impl_.lower_bound_ = value;
1237 bool value = CheckHasBit(
_impl_._has_bits_[0], 0x00000010U);
1241 ::google::protobuf::internal::TSanWrite(&
_impl_);
1242 _impl_.upper_bound_ = ::int64_t{0};
1243 ClearHasBit(
_impl_._has_bits_[0],
1248 return _internal_upper_bound();
1251 _internal_set_upper_bound(value);
1252 SetHasBit(
_impl_._has_bits_[0], 0x00000010U);
1255inline ::int64_t LinearBooleanConstraint::_internal_upper_bound()
const {
1256 ::google::protobuf::internal::TSanRead(&
_impl_);
1257 return _impl_.upper_bound_;
1259inline void LinearBooleanConstraint::_internal_set_upper_bound(::int64_t value) {
1260 ::google::protobuf::internal::TSanWrite(&
_impl_);
1261 _impl_.upper_bound_ = value;
1266 bool value = CheckHasBit(
_impl_._has_bits_[0], 0x00000004U);
1270 ::google::protobuf::internal::TSanWrite(&
_impl_);
1271 _impl_.name_.ClearToEmpty();
1272 ClearHasBit(
_impl_._has_bits_[0],
1276 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1278 return _internal_name();
1280template <
typename Arg_,
typename... Args_>
1282 ::google::protobuf::internal::TSanWrite(&
_impl_);
1283 SetHasBit(
_impl_._has_bits_[0], 0x00000004U);
1284 _impl_.name_.Set(
static_cast<Arg_&&
>(arg), args..., GetArena());
1288 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1289 SetHasBit(
_impl_._has_bits_[0], 0x00000004U);
1290 ::std::string* _s = _internal_mutable_name();
1294inline const ::std::string& LinearBooleanConstraint::_internal_name()
const {
1295 ::google::protobuf::internal::TSanRead(&
_impl_);
1296 return _impl_.name_.Get();
1298inline void LinearBooleanConstraint::_internal_set_name(const ::std::string& value) {
1299 ::google::protobuf::internal::TSanWrite(&
_impl_);
1300 _impl_.name_.Set(value, GetArena());
1302inline ::std::string* PROTOBUF_NONNULL LinearBooleanConstraint::_internal_mutable_name() {
1303 ::google::protobuf::internal::TSanWrite(&
_impl_);
1304 return _impl_.name_.Mutable( GetArena());
1307 ::google::protobuf::internal::TSanWrite(&
_impl_);
1309 if (!CheckHasBit(
_impl_._has_bits_[0], 0x00000004U)) {
1312 ClearHasBit(
_impl_._has_bits_[0], 0x00000004U);
1313 auto* released =
_impl_.name_.Release();
1314 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
1315 _impl_.name_.Set(
"", GetArena());
1320 ::google::protobuf::internal::TSanWrite(&
_impl_);
1321 if (value !=
nullptr) {
1322 SetHasBit(
_impl_._has_bits_[0], 0x00000004U);
1324 ClearHasBit(
_impl_._has_bits_[0], 0x00000004U);
1326 _impl_.name_.SetAllocated(value, GetArena());
1327 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() &&
_impl_.name_.IsDefault()) {
1328 _impl_.name_.Set(
"", GetArena());
1338inline int LinearObjective::_internal_literals_size()
const {
1339 return _internal_literals().size();
1342 return _internal_literals_size();
1345 ::google::protobuf::internal::TSanWrite(&
_impl_);
1346 _impl_.literals_.Clear();
1347 ClearHasBitForRepeated(
_impl_._has_bits_[0],
1352 return _internal_literals().Get(index);
1355 _internal_mutable_literals()->Set(index, value);
1359 ::google::protobuf::internal::TSanWrite(&
_impl_);
1360 _internal_mutable_literals()->Add(value);
1361 SetHasBitForRepeated(
_impl_._has_bits_[0], 0x00000001U);
1365 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1367 return _internal_literals();
1370 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1371 SetHasBitForRepeated(
_impl_._has_bits_[0], 0x00000001U);
1373 ::google::protobuf::internal::TSanWrite(&
_impl_);
1374 return _internal_mutable_literals();
1376inline const ::google::protobuf::RepeatedField<::int32_t>&
1377LinearObjective::_internal_literals()
const {
1378 ::google::protobuf::internal::TSanRead(&
_impl_);
1381inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL
1382LinearObjective::_internal_mutable_literals() {
1383 ::google::protobuf::internal::TSanRead(&
_impl_);
1384 return &
_impl_.literals_;
1388inline int LinearObjective::_internal_coefficients_size()
const {
1389 return _internal_coefficients().size();
1392 return _internal_coefficients_size();
1395 ::google::protobuf::internal::TSanWrite(&
_impl_);
1396 _impl_.coefficients_.Clear();
1397 ClearHasBitForRepeated(
_impl_._has_bits_[0],
1402 return _internal_coefficients().Get(index);
1405 _internal_mutable_coefficients()->Set(index, value);
1409 ::google::protobuf::internal::TSanWrite(&
_impl_);
1410 _internal_mutable_coefficients()->Add(value);
1411 SetHasBitForRepeated(
_impl_._has_bits_[0], 0x00000002U);
1415 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1417 return _internal_coefficients();
1420 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1421 SetHasBitForRepeated(
_impl_._has_bits_[0], 0x00000002U);
1423 ::google::protobuf::internal::TSanWrite(&
_impl_);
1424 return _internal_mutable_coefficients();
1426inline const ::google::protobuf::RepeatedField<::int64_t>&
1427LinearObjective::_internal_coefficients()
const {
1428 ::google::protobuf::internal::TSanRead(&
_impl_);
1429 return _impl_.coefficients_;
1431inline ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL
1432LinearObjective::_internal_mutable_coefficients() {
1433 ::google::protobuf::internal::TSanRead(&
_impl_);
1434 return &
_impl_.coefficients_;
1439 bool value = CheckHasBit(
_impl_._has_bits_[0], 0x00000004U);
1443 ::google::protobuf::internal::TSanWrite(&
_impl_);
1445 ClearHasBit(
_impl_._has_bits_[0],
1450 return _internal_offset();
1453 _internal_set_offset(value);
1454 SetHasBit(
_impl_._has_bits_[0], 0x00000004U);
1457inline double LinearObjective::_internal_offset()
const {
1458 ::google::protobuf::internal::TSanRead(&
_impl_);
1461inline void LinearObjective::_internal_set_offset(
double value) {
1462 ::google::protobuf::internal::TSanWrite(&
_impl_);
1468 bool value = CheckHasBit(
_impl_._has_bits_[0], 0x00000008U);
1472 ::google::protobuf::internal::TSanWrite(&
_impl_);
1473 _impl_.scaling_factor_ = 1;
1474 ClearHasBit(
_impl_._has_bits_[0],
1479 return _internal_scaling_factor();
1482 _internal_set_scaling_factor(value);
1483 SetHasBit(
_impl_._has_bits_[0], 0x00000008U);
1486inline double LinearObjective::_internal_scaling_factor()
const {
1487 ::google::protobuf::internal::TSanRead(&
_impl_);
1488 return _impl_.scaling_factor_;
1490inline void LinearObjective::_internal_set_scaling_factor(
double value) {
1491 ::google::protobuf::internal::TSanWrite(&
_impl_);
1492 _impl_.scaling_factor_ = value;
1500inline int BooleanAssignment::_internal_literals_size()
const {
1501 return _internal_literals().size();
1504 return _internal_literals_size();
1507 ::google::protobuf::internal::TSanWrite(&
_impl_);
1508 _impl_.literals_.Clear();
1509 ClearHasBitForRepeated(
_impl_._has_bits_[0],
1514 return _internal_literals().Get(index);
1517 _internal_mutable_literals()->Set(index, value);
1521 ::google::protobuf::internal::TSanWrite(&
_impl_);
1522 _internal_mutable_literals()->Add(value);
1523 SetHasBitForRepeated(
_impl_._has_bits_[0], 0x00000001U);
1527 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1529 return _internal_literals();
1532 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1533 SetHasBitForRepeated(
_impl_._has_bits_[0], 0x00000001U);
1535 ::google::protobuf::internal::TSanWrite(&
_impl_);
1536 return _internal_mutable_literals();
1538inline const ::google::protobuf::RepeatedField<::int32_t>&
1539BooleanAssignment::_internal_literals()
const {
1540 ::google::protobuf::internal::TSanRead(&
_impl_);
1543inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL
1544BooleanAssignment::_internal_mutable_literals() {
1545 ::google::protobuf::internal::TSanRead(&
_impl_);
1546 return &
_impl_.literals_;
1555 bool value = CheckHasBit(
_impl_._has_bits_[0], 0x00000004U);
1559 ::google::protobuf::internal::TSanWrite(&
_impl_);
1560 _impl_.name_.ClearToEmpty();
1561 ClearHasBit(
_impl_._has_bits_[0],
1565 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1567 return _internal_name();
1569template <
typename Arg_,
typename... Args_>
1571 ::google::protobuf::internal::TSanWrite(&
_impl_);
1572 SetHasBit(
_impl_._has_bits_[0], 0x00000004U);
1573 _impl_.name_.Set(
static_cast<Arg_&&
>(arg), args..., GetArena());
1577 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1578 SetHasBit(
_impl_._has_bits_[0], 0x00000004U);
1579 ::std::string* _s = _internal_mutable_name();
1583inline const ::std::string& LinearBooleanProblem::_internal_name()
const {
1584 ::google::protobuf::internal::TSanRead(&
_impl_);
1585 return _impl_.name_.Get();
1587inline void LinearBooleanProblem::_internal_set_name(const ::std::string& value) {
1588 ::google::protobuf::internal::TSanWrite(&
_impl_);
1589 _impl_.name_.Set(value, GetArena());
1591inline ::std::string* PROTOBUF_NONNULL LinearBooleanProblem::_internal_mutable_name() {
1592 ::google::protobuf::internal::TSanWrite(&
_impl_);
1593 return _impl_.name_.Mutable( GetArena());
1596 ::google::protobuf::internal::TSanWrite(&
_impl_);
1598 if (!CheckHasBit(
_impl_._has_bits_[0], 0x00000004U)) {
1601 ClearHasBit(
_impl_._has_bits_[0], 0x00000004U);
1602 auto* released =
_impl_.name_.Release();
1603 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
1604 _impl_.name_.Set(
"", GetArena());
1609 ::google::protobuf::internal::TSanWrite(&
_impl_);
1610 if (value !=
nullptr) {
1611 SetHasBit(
_impl_._has_bits_[0], 0x00000004U);
1613 ClearHasBit(
_impl_._has_bits_[0], 0x00000004U);
1615 _impl_.name_.SetAllocated(value, GetArena());
1616 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() &&
_impl_.name_.IsDefault()) {
1617 _impl_.name_.Set(
"", GetArena());
1624 bool value = CheckHasBit(
_impl_._has_bits_[0], 0x00000020U);
1628 ::google::protobuf::internal::TSanWrite(&
_impl_);
1629 _impl_.num_variables_ = 0;
1630 ClearHasBit(
_impl_._has_bits_[0],
1635 return _internal_num_variables();
1638 _internal_set_num_variables(value);
1639 SetHasBit(
_impl_._has_bits_[0], 0x00000020U);
1642inline ::int32_t LinearBooleanProblem::_internal_num_variables()
const {
1643 ::google::protobuf::internal::TSanRead(&
_impl_);
1646inline void LinearBooleanProblem::_internal_set_num_variables(::int32_t value) {
1647 ::google::protobuf::internal::TSanWrite(&
_impl_);
1652inline int LinearBooleanProblem::_internal_constraints_size()
const {
1653 return _internal_constraints().size();
1656 return _internal_constraints_size();
1659 ::google::protobuf::internal::TSanWrite(&
_impl_);
1660 _impl_.constraints_.Clear();
1661 ClearHasBitForRepeated(
_impl_._has_bits_[0],
1665 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1667 return _internal_mutable_constraints()->Mutable(index);
1670 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1671 SetHasBitForRepeated(
_impl_._has_bits_[0], 0x00000001U);
1673 ::google::protobuf::internal::TSanWrite(&
_impl_);
1674 return _internal_mutable_constraints();
1677 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1679 return _internal_constraints().Get(index);
1682 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1683 ::google::protobuf::internal::TSanWrite(&
_impl_);
1685 _internal_mutable_constraints()->InternalAddWithArena(
1686 ::google::protobuf::MessageLite::internal_visibility(), GetArena());
1687 SetHasBitForRepeated(
_impl_._has_bits_[0], 0x00000001U);
1692 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1694 return _internal_constraints();
1696inline const ::google::protobuf::RepeatedPtrField<::operations_research::sat::LinearBooleanConstraint>&
1697LinearBooleanProblem::_internal_constraints()
const {
1698 ::google::protobuf::internal::TSanRead(&
_impl_);
1699 return _impl_.constraints_;
1701inline ::google::protobuf::RepeatedPtrField<::operations_research::sat::LinearBooleanConstraint>* PROTOBUF_NONNULL
1702LinearBooleanProblem::_internal_mutable_constraints() {
1703 ::google::protobuf::internal::TSanRead(&
_impl_);
1704 return &
_impl_.constraints_;
1709 bool value = CheckHasBit(
_impl_._has_bits_[0], 0x00000008U);
1710 PROTOBUF_ASSUME(!value ||
_impl_.objective_ !=
nullptr);
1714 ::google::protobuf::internal::TSanWrite(&
_impl_);
1716 ClearHasBit(
_impl_._has_bits_[0],
1719inline const ::operations_research::sat::LinearObjective& LinearBooleanProblem::_internal_objective()
const {
1720 ::google::protobuf::internal::TSanRead(&
_impl_);
1721 const ::operations_research::sat::LinearObjective* p =
_impl_.objective_;
1726 return _internal_objective();
1730 ::google::protobuf::internal::TSanWrite(&
_impl_);
1731 if (GetArena() ==
nullptr) {
1732 delete reinterpret_cast<::google::protobuf::MessageLite*
>(
_impl_.objective_);
1735 if (value !=
nullptr) {
1736 SetHasBit(
_impl_._has_bits_[0], 0x00000008U);
1738 ClearHasBit(
_impl_._has_bits_[0], 0x00000008U);
1743 ::google::protobuf::internal::TSanWrite(&
_impl_);
1745 ClearHasBit(
_impl_._has_bits_[0], 0x00000008U);
1747 _impl_.objective_ =
nullptr;
1748 if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
1749 auto* old =
reinterpret_cast<::google::protobuf::MessageLite*
>(released);
1750 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
1751 if (GetArena() ==
nullptr) {
1755 if (GetArena() !=
nullptr) {
1756 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
1762 ::google::protobuf::internal::TSanWrite(&
_impl_);
1765 ClearHasBit(
_impl_._has_bits_[0], 0x00000008U);
1766 ::operations_research::sat::LinearObjective* temp =
_impl_.objective_;
1767 _impl_.objective_ =
nullptr;
1770inline ::operations_research::sat::LinearObjective* PROTOBUF_NONNULL LinearBooleanProblem::_internal_mutable_objective() {
1771 ::google::protobuf::internal::TSanWrite(&
_impl_);
1773 auto* p = ::google::protobuf::Message::DefaultConstruct<::operations_research::sat::LinearObjective>(GetArena());
1776 return _impl_.objective_;
1779 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1780 SetHasBit(
_impl_._has_bits_[0], 0x00000008U);
1786 ::google::protobuf::Arena* message_arena = GetArena();
1787 ::google::protobuf::internal::TSanWrite(&
_impl_);
1788 if (message_arena ==
nullptr) {
1789 delete reinterpret_cast<::google::protobuf::MessageLite*
>(
_impl_.objective_);
1792 if (value !=
nullptr) {
1793 ::google::protobuf::Arena* submessage_arena = value->GetArena();
1794 if (message_arena != submessage_arena) {
1795 value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
1797 SetHasBit(
_impl_._has_bits_[0], 0x00000008U);
1799 ClearHasBit(
_impl_._has_bits_[0], 0x00000008U);
1807inline int LinearBooleanProblem::_internal_var_names_size()
const {
1808 return _internal_var_names().size();
1811 return _internal_var_names_size();
1814 ::google::protobuf::internal::TSanWrite(&
_impl_);
1815 _impl_.var_names_.Clear();
1816 ClearHasBitForRepeated(
_impl_._has_bits_[0],
1820 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1821 ::google::protobuf::internal::TSanWrite(&
_impl_);
1823 _internal_mutable_var_names()->InternalAddWithArena(
1824 ::google::protobuf::MessageLite::internal_visibility(), GetArena());
1825 SetHasBitForRepeated(
_impl_._has_bits_[0], 0x00000002U);
1830 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1832 return _internal_var_names().Get(index);
1835 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1837 return _internal_mutable_var_names()->Mutable(index);
1839template <
typename Arg_,
typename... Args_>
1841 ::google::protobuf::internal::AssignToString(*_internal_mutable_var_names()->Mutable(index), ::std::forward<Arg_>(value),
1845template <
typename Arg_,
typename... Args_>
1847 ::google::protobuf::internal::TSanWrite(&
_impl_);
1848 ::google::protobuf::internal::AddToRepeatedPtrField(
1849 ::google::protobuf::MessageLite::internal_visibility(), GetArena(),
1850 *_internal_mutable_var_names(), ::std::forward<Arg_>(value),
1852 SetHasBitForRepeated(
_impl_._has_bits_[0], 0x00000002U);
1856 const ABSL_ATTRIBUTE_LIFETIME_BOUND {
1858 return _internal_var_names();
1860inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL
1862 SetHasBitForRepeated(
_impl_._has_bits_[0], 0x00000002U);
1864 ::google::protobuf::internal::TSanWrite(&
_impl_);
1865 return _internal_mutable_var_names();
1867inline const ::google::protobuf::RepeatedPtrField<::std::string>&
1868LinearBooleanProblem::_internal_var_names()
const {
1869 ::google::protobuf::internal::TSanRead(&
_impl_);
1870 return _impl_.var_names_;
1872inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL
1873LinearBooleanProblem::_internal_mutable_var_names() {
1874 ::google::protobuf::internal::TSanRead(&
_impl_);
1875 return &
_impl_.var_names_;
1880 bool value = CheckHasBit(
_impl_._has_bits_[0], 0x00000010U);
1881 PROTOBUF_ASSUME(!value ||
_impl_.assignment_ !=
nullptr);
1885 ::google::protobuf::internal::TSanWrite(&
_impl_);
1887 ClearHasBit(
_impl_._has_bits_[0],
1890inline const ::operations_research::sat::BooleanAssignment& LinearBooleanProblem::_internal_assignment()
const {
1891 ::google::protobuf::internal::TSanRead(&
_impl_);
1892 const ::operations_research::sat::BooleanAssignment* p =
_impl_.assignment_;
1897 return _internal_assignment();
1901 ::google::protobuf::internal::TSanWrite(&
_impl_);
1902 if (GetArena() ==
nullptr) {
1903 delete reinterpret_cast<::google::protobuf::MessageLite*
>(
_impl_.assignment_);
1906 if (value !=
nullptr) {
1907 SetHasBit(
_impl_._has_bits_[0], 0x00000010U);
1909 ClearHasBit(
_impl_._has_bits_[0], 0x00000010U);
1914 ::google::protobuf::internal::TSanWrite(&
_impl_);
1916 ClearHasBit(
_impl_._has_bits_[0], 0x00000010U);
1918 _impl_.assignment_ =
nullptr;
1919 if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
1920 auto* old =
reinterpret_cast<::google::protobuf::MessageLite*
>(released);
1921 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
1922 if (GetArena() ==
nullptr) {
1926 if (GetArena() !=
nullptr) {
1927 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
1933 ::google::protobuf::internal::TSanWrite(&
_impl_);
1936 ClearHasBit(
_impl_._has_bits_[0], 0x00000010U);
1937 ::operations_research::sat::BooleanAssignment* temp =
_impl_.assignment_;
1938 _impl_.assignment_ =
nullptr;
1941inline ::operations_research::sat::BooleanAssignment* PROTOBUF_NONNULL LinearBooleanProblem::_internal_mutable_assignment() {
1942 ::google::protobuf::internal::TSanWrite(&
_impl_);
1944 auto* p = ::google::protobuf::Message::DefaultConstruct<::operations_research::sat::BooleanAssignment>(GetArena());
1947 return _impl_.assignment_;
1950 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1951 SetHasBit(
_impl_._has_bits_[0], 0x00000010U);
1957 ::google::protobuf::Arena* message_arena = GetArena();
1958 ::google::protobuf::internal::TSanWrite(&
_impl_);
1959 if (message_arena ==
nullptr) {
1960 delete reinterpret_cast<::google::protobuf::MessageLite*
>(
_impl_.assignment_);
1963 if (value !=
nullptr) {
1964 ::google::protobuf::Arena* submessage_arena = value->GetArena();
1965 if (message_arena != submessage_arena) {
1966 value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
1968 SetHasBit(
_impl_._has_bits_[0], 0x00000010U);
1970 ClearHasBit(
_impl_._has_bits_[0], 0x00000010U);
1979 bool value = CheckHasBit(
_impl_._has_bits_[0], 0x00000040U);
1983 ::google::protobuf::internal::TSanWrite(&
_impl_);
1984 _impl_.original_num_variables_ = 0;
1985 ClearHasBit(
_impl_._has_bits_[0],
1990 return _internal_original_num_variables();
1993 _internal_set_original_num_variables(value);
1994 SetHasBit(
_impl_._has_bits_[0], 0x00000040U);
1997inline ::int32_t LinearBooleanProblem::_internal_original_num_variables()
const {
1998 ::google::protobuf::internal::TSanRead(&
_impl_);
2001inline void LinearBooleanProblem::_internal_set_original_num_variables(::int32_t value) {
2002 ::google::protobuf::internal::TSanWrite(&
_impl_);
2007#pragma GCC diagnostic pop
2017#include "google/protobuf/port_undef.inc"
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fsat_2fboolean_5fproblem_2eproto
LinearBooleanConstraint()
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL GetDescriptor()
friend class ::google::protobuf::MessageLite
friend void swap(BooleanAssignment &a, BooleanAssignment &b)
::google::protobuf::RepeatedField<::int32_t > *PROTOBUF_NONNULL mutable_literals()
int literals_size() const
BooleanAssignment & operator=(const BooleanAssignment &from)
void add_literals(::int32_t value)
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL descriptor()
static constexpr int kIndexInFileMessages
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
inline ::google::protobuf::UnknownFieldSet *PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND
void Swap(BooleanAssignment *PROTOBUF_NONNULL other)
void MergeFrom(const BooleanAssignment &from)
void CopyFrom(const BooleanAssignment &from)
bool IsInitialized() const
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void set_literals(int index, ::int32_t value)
const ::google::protobuf::RepeatedField<::int32_t > & literals() const
PROTOBUF_CONSTEXPR BooleanAssignment(::google::protobuf::internal::ConstantInitialized)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
::int32_t literals(int index) const
::size_t ByteSizeLong() const final
static const BooleanAssignment & default_instance()
void set_coefficients(int index, ::int64_t value)
void set_allocated_name(::std::string *PROTOBUF_NULLABLE value)
bool IsInitialized() const
friend class ::google::protobuf::MessageLite
int literals_size() const
static const LinearBooleanConstraint & default_instance()
::std::string *PROTOBUF_NULLABLE release_name()
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
int coefficients_size() const
PROTOBUF_CONSTEXPR LinearBooleanConstraint(::google::protobuf::internal::ConstantInitialized)
void set_upper_bound(::int64_t value)
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL GetDescriptor()
void set_literals(int index, ::int32_t value)
::google::protobuf::RepeatedField<::int64_t > *PROTOBUF_NONNULL mutable_coefficients()
void set_name(Arg_ &&arg, Args_... args)
static const ::google::protobuf::Reflection *PROTOBUF_NONNULL GetReflection()
void set_lower_bound(::int64_t value)
void clear_coefficients()
::int32_t literals(int index) const
::google::protobuf::RepeatedField<::int32_t > *PROTOBUF_NONNULL mutable_literals()
void CopyFrom(const LinearBooleanConstraint &from)
bool has_lower_bound() const
const ::std::string & name() const
const ::google::protobuf::RepeatedField<::int32_t > & literals() const
::int64_t lower_bound() const
bool has_upper_bound() const
const ::google::protobuf::RepeatedField<::int64_t > & coefficients() const
LinearBooleanConstraint & operator=(const LinearBooleanConstraint &from)
::int64_t upper_bound() const
LinearBooleanConstraint()
void add_literals(::int32_t value)
void Swap(LinearBooleanConstraint *PROTOBUF_NONNULL other)
::int64_t coefficients(int index) const
::size_t ByteSizeLong() const final
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void MergeFrom(const LinearBooleanConstraint &from)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
::std::string *PROTOBUF_NONNULL mutable_name()
void add_coefficients(::int64_t value)
::operations_research::sat::BooleanAssignment *PROTOBUF_NONNULL mutable_assignment()
void set_name(Arg_ &&arg, Args_... args)
bool has_objective() const
::operations_research::sat::LinearBooleanConstraint *PROTOBUF_NONNULL add_constraints()
const ::operations_research::sat::LinearBooleanConstraint & constraints(int index) const
::operations_research::sat::LinearObjective *PROTOBUF_NULLABLE release_objective()
const ::operations_research::sat::LinearObjective & objective() const
void CopyFrom(const LinearBooleanProblem &from)
::operations_research::sat::BooleanAssignment *PROTOBUF_NULLABLE unsafe_arena_release_assignment()
void MergeFrom(const LinearBooleanProblem &from)
void clear_num_variables()
::google::protobuf::RepeatedPtrField<::operations_research::sat::LinearBooleanConstraint > *PROTOBUF_NONNULL mutable_constraints()
bool IsInitialized() const
void set_num_variables(::int32_t value)
void set_allocated_name(::std::string *PROTOBUF_NULLABLE value)
::google::protobuf::RepeatedPtrField<::std::string > *PROTOBUF_NONNULL mutable_var_names()
const ::google::protobuf::RepeatedPtrField<::operations_research::sat::LinearBooleanConstraint > & constraints() const
const ::google::protobuf::RepeatedPtrField<::std::string > & var_names() const
void set_allocated_objective(::operations_research::sat::LinearObjective *PROTOBUF_NULLABLE value)
bool has_assignment() const
const ::std::string & name() const
::operations_research::sat::BooleanAssignment *PROTOBUF_NULLABLE release_assignment()
::int32_t original_num_variables() const
void Swap(LinearBooleanProblem *PROTOBUF_NONNULL other)
::std::string *PROTOBUF_NONNULL mutable_var_names(int index)
void set_var_names(int index, Arg_ &&value, Args_... args)
::std::string *PROTOBUF_NONNULL mutable_name()
@ kNumVariablesFieldNumber
@ kOriginalNumVariablesFieldNumber
void clear_original_num_variables()
int constraints_size() const
::std::string *PROTOBUF_NONNULL add_var_names()
void set_allocated_assignment(::operations_research::sat::BooleanAssignment *PROTOBUF_NULLABLE value)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
const ::std::string & var_names(int index) const
::std::string *PROTOBUF_NULLABLE release_name()
void unsafe_arena_set_allocated_objective(::operations_research::sat::LinearObjective *PROTOBUF_NULLABLE value)
bool has_num_variables() const
::int32_t num_variables() const
int var_names_size() const
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
::operations_research::sat::LinearObjective *PROTOBUF_NULLABLE unsafe_arena_release_objective()
::operations_research::sat::LinearObjective *PROTOBUF_NONNULL mutable_objective()
LinearBooleanProblem & operator=(const LinearBooleanProblem &from)
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL descriptor()
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL GetDescriptor()
::operations_research::sat::LinearBooleanConstraint *PROTOBUF_NONNULL mutable_constraints(int index)
::size_t ByteSizeLong() const final
void unsafe_arena_set_allocated_assignment(::operations_research::sat::BooleanAssignment *PROTOBUF_NULLABLE value)
const ::operations_research::sat::BooleanAssignment & assignment() const
void set_original_num_variables(::int32_t value)
LinearBooleanProblem *PROTOBUF_NONNULL New(::google::protobuf::Arena *PROTOBUF_NULLABLE arena=nullptr) const
bool has_original_num_variables() const
friend void swap(LinearBooleanProblem &a, LinearBooleanProblem &b)
friend class ::google::protobuf::MessageLite
const ::google::protobuf::RepeatedField<::int32_t > & literals() const
int literals_size() const
bool has_scaling_factor() const
const ::google::protobuf::RepeatedField<::int64_t > & coefficients() const
void add_literals(::int32_t value)
void clear_coefficients()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
void set_literals(int index, ::int32_t value)
void add_coefficients(::int64_t value)
void clear_scaling_factor()
::int64_t coefficients(int index) const
void set_scaling_factor(double value)
::google::protobuf::RepeatedField<::int32_t > *PROTOBUF_NONNULL mutable_literals()
double scaling_factor() const
::int32_t literals(int index) const
::google::protobuf::RepeatedField<::int64_t > *PROTOBUF_NONNULL mutable_coefficients()
LinearObjective(const LinearObjective &from)
PROTOBUF_CONSTEXPR LinearObjective(::google::protobuf::internal::ConstantInitialized)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
@ kScalingFactorFieldNumber
void CopyFrom(const LinearObjective &from)
void Swap(LinearObjective *PROTOBUF_NONNULL other)
void set_coefficients(int index, ::int64_t value)
void set_offset(double value)
bool IsInitialized() const
int coefficients_size() const
LinearObjective & operator=(const LinearObjective &from)
::absl::string_view GetAnyMessageName()
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull BooleanAssignment_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BooleanAssignmentDefaultTypeInternal _BooleanAssignment_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LinearBooleanProblemDefaultTypeInternal _LinearBooleanProblem_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull LinearObjective_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull LinearBooleanProblem_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull LinearBooleanConstraint_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LinearBooleanConstraintDefaultTypeInternal _LinearBooleanConstraint_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LinearObjectiveDefaultTypeInternal _LinearObjective_default_instance_