10#include "google/protobuf/io/coded_stream.h"
11#include "google/protobuf/generated_message_tctable_impl.h"
12#include "google/protobuf/extension_set.h"
13#include "google/protobuf/generated_message_util.h"
14#include "google/protobuf/wire_format_lite.h"
15#include "google/protobuf/descriptor.h"
16#include "google/protobuf/generated_message_reflection.h"
17#include "google/protobuf/reflection_ops.h"
18#include "google/protobuf/wire_format.h"
22#include "google/protobuf/port_def.inc"
23PROTOBUF_PRAGMA_INIT_SEG
26namespace _fl = ::google::protobuf::internal::field_layout;
30inline constexpr LinearObjective::Impl_::Impl_(
31 ::_pbi::ConstantInitialized) noexcept
40#if defined(PROTOBUF_CUSTOM_VTABLE)
43 : ::google::protobuf::Message(),
45 _impl_(::_pbi::ConstantInitialized()) {
55PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
58inline constexpr LinearBooleanConstraint::Impl_::Impl_(
59 ::_pbi::ConstantInitialized) noexcept
64 &::google::protobuf::internal::fixed_address_empty_string,
65 ::_pbi::ConstantInitialized()),
66 lower_bound_{::int64_t{0}},
67 upper_bound_{::int64_t{0}} {}
71#if defined(PROTOBUF_CUSTOM_VTABLE)
74 : ::google::protobuf::Message(),
76 _impl_(::_pbi::ConstantInitialized()) {
86PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
89inline constexpr BooleanAssignment::Impl_::Impl_(
90 ::_pbi::ConstantInitialized) noexcept
96#if defined(PROTOBUF_CUSTOM_VTABLE)
99 : ::google::protobuf::Message(),
101 _impl_(::_pbi::ConstantInitialized()) {
111PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
114inline constexpr LinearBooleanProblem::Impl_::Impl_(
115 ::_pbi::ConstantInitialized) noexcept
120 &::google::protobuf::internal::fixed_address_empty_string,
121 ::_pbi::ConstantInitialized()),
123 assignment_{
nullptr},
125 original_num_variables_{0} {}
129#if defined(PROTOBUF_CUSTOM_VTABLE)
132 : ::google::protobuf::Message(),
134 _impl_(::_pbi::ConstantInitialized()) {
144PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
148static constexpr const ::_pb::EnumDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE
150static constexpr const ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE
200static const ::_pbi::MigrationSchema
215 "\n!ortools/sat/boolean_problem.proto\022\027ope"
216 "rations_research.sat\"{\n\027LinearBooleanCon"
217 "straint\022\020\n\010literals\030\001 \003(\005\022\024\n\014coefficient"
218 "s\030\002 \003(\003\022\023\n\013lower_bound\030\003 \001(\003\022\023\n\013upper_bo"
219 "und\030\004 \001(\003\022\016\n\004name\030\005 \001(\t:\000\"g\n\017LinearObjec"
220 "tive\022\020\n\010literals\030\001 \003(\005\022\024\n\014coefficients\030\002"
221 " \003(\003\022\021\n\006offset\030\003 \001(\001:\0010\022\031\n\016scaling_facto"
222 "r\030\004 \001(\001:\0011\"%\n\021BooleanAssignment\022\020\n\010liter"
223 "als\030\001 \003(\005\"\264\002\n\024LinearBooleanProblem\022\016\n\004na"
224 "me\030\001 \001(\t:\000\022\025\n\rnum_variables\030\003 \001(\005\022E\n\013con"
225 "straints\030\004 \003(\01320.operations_research.sat"
226 ".LinearBooleanConstraint\022;\n\tobjective\030\005 "
227 "\001(\0132(.operations_research.sat.LinearObje"
228 "ctive\022\021\n\tvar_names\030\006 \003(\t\022>\n\nassignment\030\007"
229 " \001(\0132*.operations_research.sat.BooleanAs"
230 "signment\022\036\n\026original_num_variables\030\010 \001(\005"
231 "B/\n\026com.google.ortools.satP\001\252\002\022Google.Or"
239 descriptor_table_protodef_ortools_2fsat_2fboolean_5fproblem_2eproto,
240 "ortools/sat/boolean_problem.proto",
258 decltype(::std::declval<LinearBooleanConstraint>()._impl_._has_bits_);
264#if defined(PROTOBUF_CUSTOM_VTABLE)
267 : ::google::protobuf::Message(arena) {
272PROTOBUF_NDEBUG_INLINE LinearBooleanConstraint::Impl_::Impl_(
273 ::google::protobuf::internal::InternalVisibility visibility,
274 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
275 const ::operations_research::sat::LinearBooleanConstraint& from_msg)
276 : _has_bits_{from._has_bits_},
278 literals_{visibility, arena, from.literals_},
279 coefficients_{visibility, arena, from.coefficients_},
280 name_(arena, from.name_) {}
283 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
285#if defined(PROTOBUF_CUSTOM_VTABLE)
288 : ::google::protobuf::Message(arena) {
292 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
293 from._internal_metadata_);
294 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
295 ::memcpy(
reinterpret_cast<char *
>(&
_impl_) +
296 offsetof(Impl_, lower_bound_),
297 reinterpret_cast<const char *
>(&from._impl_) +
298 offsetof(Impl_, lower_bound_),
299 offsetof(Impl_, upper_bound_) -
300 offsetof(Impl_, lower_bound_) +
301 sizeof(Impl_::upper_bound_));
305PROTOBUF_NDEBUG_INLINE LinearBooleanConstraint::Impl_::Impl_(
306 ::google::protobuf::internal::InternalVisibility visibility,
307 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
309 literals_{visibility, arena},
310 coefficients_{visibility, arena},
313inline void LinearBooleanConstraint::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
314 new (&
_impl_) Impl_(internal_visibility(), arena);
315 ::memset(
reinterpret_cast<char *
>(&
_impl_) +
316 offsetof(Impl_, lower_bound_),
318 offsetof(Impl_, upper_bound_) -
319 offsetof(Impl_, lower_bound_) +
320 sizeof(Impl_::upper_bound_));
326inline void LinearBooleanConstraint::SharedDtor(MessageLite& self) {
328 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
329 ABSL_DCHECK(this_.GetArena() ==
nullptr);
330 this_.
_impl_.name_.Destroy();
335 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
336 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
340 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
343 InternalGetArenaOffset(
344 ::google::protobuf::Message::internal_visibility()),
347 InternalGetArenaOffset(
348 ::google::protobuf::Message::internal_visibility()),
350 if (arena_bits.has_value()) {
351 return ::google::protobuf::internal::MessageCreator::CopyInit(
360 return ::google::protobuf::internal::ClassDataFull{
361 ::google::protobuf::internal::ClassData{
366 &LinearBooleanConstraint::MergeImpl,
367 ::google::protobuf::Message::GetNewImpl<LinearBooleanConstraint>(),
368#if defined(PROTOBUF_CUSTOM_VTABLE)
369 &LinearBooleanConstraint::SharedDtor,
376 &LinearBooleanConstraint::kDescriptorMethods,
382PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
386PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
392PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
393const ::_pbi::TcParseTable<3, 5, 0, 60, 2>
394LinearBooleanConstraint::_table_ = {
399 offsetof(
decltype(_table_), field_lookup_table),
401 offsetof(
decltype(_table_), field_entries),
404 offsetof(
decltype(_table_), field_names),
407 ::_pbi::TcParser::GenericFallback,
408 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
409 ::_pbi::TcParser::GetTable<::operations_research::sat::LinearBooleanConstraint>(),
412 {::_pbi::TcParser::MiniParse, {}},
414 {::_pbi::TcParser::FastV32R1,
417 {::_pbi::TcParser::FastV64R1,
420 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(
LinearBooleanConstraint, _impl_.lower_bound_), 1>(),
423 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(
LinearBooleanConstraint, _impl_.upper_bound_), 2>(),
426 {::_pbi::TcParser::FastSS1,
428 {::_pbi::TcParser::MiniParse, {}},
429 {::_pbi::TcParser::MiniParse, {}},
435 (0 | ::_fl::kFcRepeated | ::_fl::kInt32)},
438 (0 | ::_fl::kFcRepeated | ::_fl::kInt64)},
441 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
444 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
447 (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)},
452 "operations_research.sat.LinearBooleanConstraint"
458 ::google::protobuf::internal::TSanWrite(&
_impl_);
459 ::uint32_t cached_has_bits = 0;
461 (void) cached_has_bits;
464 _impl_.coefficients_.Clear();
465 cached_has_bits =
_impl_._has_bits_[0];
466 if ((cached_has_bits & 0x00000001u) != 0) {
467 _impl_.name_.ClearNonDefaultToEmpty();
469 if ((cached_has_bits & 0x00000006u) != 0) {
470 ::memset(&
_impl_.lower_bound_, 0,
static_cast<::
size_t>(
471 reinterpret_cast<char*
>(&
_impl_.upper_bound_) -
472 reinterpret_cast<char*
>(&
_impl_.lower_bound_)) +
sizeof(
_impl_.upper_bound_));
474 _impl_._has_bits_.Clear();
475 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
478#if defined(PROTOBUF_CUSTOM_VTABLE)
480 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
481 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
485 ::uint8_t* PROTOBUF_NONNULL target,
486 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
490 ::uint32_t cached_has_bits = 0;
491 (void)cached_has_bits;
494 for (
int i = 0, n = this_._internal_literals_size();
i < n; ++
i) {
495 target = stream->EnsureSpace(target);
496 target = ::_pbi::WireFormatLite::WriteInt32ToArray(
497 1, this_._internal_literals().Get(
i), target);
501 for (
int i = 0, n = this_._internal_coefficients_size();
i < n; ++
i) {
502 target = stream->EnsureSpace(target);
503 target = ::_pbi::WireFormatLite::WriteInt64ToArray(
504 2, this_._internal_coefficients().Get(
i), target);
507 cached_has_bits = this_.
_impl_._has_bits_[0];
509 if ((cached_has_bits & 0x00000002u) != 0) {
511 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>(
512 stream, this_._internal_lower_bound(), target);
516 if ((cached_has_bits & 0x00000004u) != 0) {
518 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<4>(
519 stream, this_._internal_upper_bound(), target);
523 if ((cached_has_bits & 0x00000001u) != 0) {
524 const ::std::string& _s = this_._internal_name();
525 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(),
static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE,
526 "operations_research.sat.LinearBooleanConstraint.name");
527 target = stream->WriteStringMaybeAliased(5, _s, target);
530 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
532 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
533 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
539#if defined(PROTOBUF_CUSTOM_VTABLE)
547 ::size_t total_size = 0;
549 ::uint32_t cached_has_bits = 0;
551 (void)cached_has_bits;
553 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
557 ::size_t data_size = ::_pbi::WireFormatLite::Int32Size(
558 this_._internal_literals());
559 ::size_t tag_size = ::size_t{1} *
560 ::_pbi::FromIntSize(this_._internal_literals_size());
561 total_size += tag_size + data_size;
565 ::size_t data_size = ::_pbi::WireFormatLite::Int64Size(
566 this_._internal_coefficients());
567 ::size_t tag_size = ::size_t{1} *
568 ::_pbi::FromIntSize(this_._internal_coefficients_size());
569 total_size += tag_size + data_size;
572 cached_has_bits = this_.
_impl_._has_bits_[0];
573 if ((cached_has_bits & 0x00000007u) != 0) {
575 if ((cached_has_bits & 0x00000001u) != 0) {
576 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
577 this_._internal_name());
580 if ((cached_has_bits & 0x00000002u) != 0) {
581 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
582 this_._internal_lower_bound());
585 if ((cached_has_bits & 0x00000004u) != 0) {
586 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
587 this_._internal_upper_bound());
590 return this_.MaybeComputeUnknownFieldsSize(total_size,
591 &this_.
_impl_._cached_size_);
594void LinearBooleanConstraint::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
598 ABSL_DCHECK_NE(&from, _this);
599 ::uint32_t cached_has_bits = 0;
600 (void) cached_has_bits;
602 _this->_internal_mutable_literals()->MergeFrom(from._internal_literals());
603 _this->_internal_mutable_coefficients()->MergeFrom(from._internal_coefficients());
604 cached_has_bits = from._impl_._has_bits_[0];
605 if ((cached_has_bits & 0x00000007u) != 0) {
606 if ((cached_has_bits & 0x00000001u) != 0) {
607 _this->_internal_set_name(from._internal_name());
609 if ((cached_has_bits & 0x00000002u) != 0) {
610 _this->_impl_.lower_bound_ = from._impl_.lower_bound_;
612 if ((cached_has_bits & 0x00000004u) != 0) {
613 _this->_impl_.upper_bound_ = from._impl_.upper_bound_;
616 _this->_impl_._has_bits_[0] |= cached_has_bits;
617 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
622 if (&from ==
this)
return;
630 auto* arena = GetArena();
631 ABSL_DCHECK_EQ(arena, other->GetArena());
632 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
633 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
634 _impl_.literals_.InternalSwap(&other->_impl_.literals_);
635 _impl_.coefficients_.InternalSwap(&other->_impl_.coefficients_);
636 ::_pbi::ArenaStringPtr::InternalSwap(&
_impl_.name_, &other->_impl_.name_, arena);
637 ::google::protobuf::internal::memswap<
641 reinterpret_cast<char*
>(&
_impl_.lower_bound_),
642 reinterpret_cast<char*
>(&other->_impl_.lower_bound_));
646 return ::google::protobuf::Message::GetMetadataImpl(
GetClassData()->full());
653 decltype(::std::declval<LinearObjective>()._impl_._has_bits_);
659#if defined(PROTOBUF_CUSTOM_VTABLE)
662 : ::google::protobuf::Message(arena) {
667PROTOBUF_NDEBUG_INLINE LinearObjective::Impl_::Impl_(
668 ::google::protobuf::internal::InternalVisibility visibility,
669 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
670 const ::operations_research::sat::LinearObjective& from_msg)
671 : _has_bits_{from._has_bits_},
673 literals_{visibility, arena, from.literals_},
674 coefficients_{visibility, arena, from.coefficients_} {}
677 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
679#if defined(PROTOBUF_CUSTOM_VTABLE)
682 : ::google::protobuf::Message(arena) {
686 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
687 from._internal_metadata_);
688 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
689 ::memcpy(
reinterpret_cast<char *
>(&
_impl_) +
690 offsetof(Impl_, offset_),
691 reinterpret_cast<const char *
>(&from._impl_) +
692 offsetof(Impl_, offset_),
693 offsetof(Impl_, scaling_factor_) -
694 offsetof(Impl_, offset_) +
695 sizeof(Impl_::scaling_factor_));
699PROTOBUF_NDEBUG_INLINE LinearObjective::Impl_::Impl_(
700 ::google::protobuf::internal::InternalVisibility visibility,
701 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
703 literals_{visibility, arena},
704 coefficients_{visibility, arena},
705 scaling_factor_{1} {}
707inline void LinearObjective::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
708 new (&
_impl_) Impl_(internal_visibility(), arena);
715inline void LinearObjective::SharedDtor(
MessageLite& self) {
717 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
718 ABSL_DCHECK(this_.GetArena() ==
nullptr);
723 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
724 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
728 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
731 InternalGetArenaOffset(
735 InternalGetArenaOffset(
738 if (arena_bits.has_value()) {
739 return ::google::protobuf::internal::MessageCreator::CopyInit(
740 sizeof(LinearObjective), alignof(LinearObjective), *arena_bits);
742 return ::google::protobuf::internal::MessageCreator(&LinearObjective::PlacementNew_,
743 sizeof(LinearObjective),
744 alignof(LinearObjective));
748 return ::google::protobuf::internal::ClassDataFull{
749 ::google::protobuf::internal::ClassData{
754 &LinearObjective::MergeImpl,
755 ::google::protobuf::Message::GetNewImpl<LinearObjective>(),
756#if defined(PROTOBUF_CUSTOM_VTABLE)
757 &LinearObjective::SharedDtor,
764 &LinearObjective::kDescriptorMethods,
770PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
774PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
780PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
781const ::_pbi::TcParseTable<2, 4, 0, 0, 2>
782LinearObjective::_table_ = {
787 offsetof(
decltype(_table_), field_lookup_table),
789 offsetof(
decltype(_table_), field_entries),
792 offsetof(
decltype(_table_), field_names),
795 ::_pbi::TcParser::GenericFallback,
796 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
797 ::_pbi::TcParser::GetTable<::operations_research::sat::LinearObjective>(),
801 {::_pbi::TcParser::FastF64S1,
802 {33, 1, 0, PROTOBUF_FIELD_OFFSET(LinearObjective,
_impl_.scaling_factor_)}},
804 {::_pbi::TcParser::FastV32R1,
805 {8, 63, 0, PROTOBUF_FIELD_OFFSET(LinearObjective,
_impl_.literals_)}},
807 {::_pbi::TcParser::FastV64R1,
808 {16, 63, 0, PROTOBUF_FIELD_OFFSET(LinearObjective,
_impl_.coefficients_)}},
810 {::_pbi::TcParser::FastF64S1,
811 {25, 0, 0, PROTOBUF_FIELD_OFFSET(LinearObjective,
_impl_.offset_)}},
816 {PROTOBUF_FIELD_OFFSET(LinearObjective,
_impl_.literals_), -1, 0,
817 (0 | ::_fl::kFcRepeated | ::_fl::kInt32)},
819 {PROTOBUF_FIELD_OFFSET(LinearObjective,
_impl_.coefficients_), -1, 0,
820 (0 | ::_fl::kFcRepeated | ::_fl::kInt64)},
823 (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
826 (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
834 ::google::protobuf::internal::TSanWrite(&
_impl_);
835 ::uint32_t cached_has_bits = 0;
837 (void) cached_has_bits;
840 _impl_.coefficients_.Clear();
841 cached_has_bits =
_impl_._has_bits_[0];
842 if ((cached_has_bits & 0x00000003u) != 0) {
844 _impl_.scaling_factor_ = 1;
846 _impl_._has_bits_.Clear();
847 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
850#if defined(PROTOBUF_CUSTOM_VTABLE)
852 const ::google::protobuf::MessageLite&
base, ::uint8_t* PROTOBUF_NONNULL target,
853 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
854 const LinearObjective& this_ =
static_cast<const LinearObjective&
>(
base);
857 ::uint8_t* PROTOBUF_NONNULL target,
858 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
862 ::uint32_t cached_has_bits = 0;
863 (void)cached_has_bits;
866 for (
int i = 0, n = this_._internal_literals_size();
i < n; ++
i) {
867 target = stream->EnsureSpace(target);
868 target = ::_pbi::WireFormatLite::WriteInt32ToArray(
869 1, this_._internal_literals().Get(
i), target);
873 for (
int i = 0, n = this_._internal_coefficients_size();
i < n; ++
i) {
874 target = stream->EnsureSpace(target);
875 target = ::_pbi::WireFormatLite::WriteInt64ToArray(
876 2, this_._internal_coefficients().Get(
i), target);
879 cached_has_bits = this_.
_impl_._has_bits_[0];
881 if ((cached_has_bits & 0x00000001u) != 0) {
882 target = stream->EnsureSpace(target);
883 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
884 3, this_._internal_offset(), target);
888 if ((cached_has_bits & 0x00000002u) != 0) {
889 target = stream->EnsureSpace(target);
890 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
891 4, this_._internal_scaling_factor(), target);
894 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
896 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
897 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
903#if defined(PROTOBUF_CUSTOM_VTABLE)
911 ::size_t total_size = 0;
913 ::uint32_t cached_has_bits = 0;
915 (void)cached_has_bits;
917 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
921 ::size_t data_size = ::_pbi::WireFormatLite::Int32Size(
922 this_._internal_literals());
923 ::size_t tag_size = ::size_t{1} *
924 ::_pbi::FromIntSize(this_._internal_literals_size());
925 total_size += tag_size + data_size;
929 ::size_t data_size = ::_pbi::WireFormatLite::Int64Size(
930 this_._internal_coefficients());
931 ::size_t tag_size = ::size_t{1} *
932 ::_pbi::FromIntSize(this_._internal_coefficients_size());
933 total_size += tag_size + data_size;
936 cached_has_bits = this_.
_impl_._has_bits_[0];
937 total_size += ::absl::popcount(0x00000003u & cached_has_bits) * 9;
938 return this_.MaybeComputeUnknownFieldsSize(total_size,
939 &this_.
_impl_._cached_size_);
942void LinearObjective::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
943 auto*
const _this =
static_cast<LinearObjective*
>(&to_msg);
944 auto& from =
static_cast<const LinearObjective&
>(from_msg);
946 ABSL_DCHECK_NE(&from, _this);
947 ::uint32_t cached_has_bits = 0;
948 (void) cached_has_bits;
950 _this->_internal_mutable_literals()->MergeFrom(from._internal_literals());
951 _this->_internal_mutable_coefficients()->MergeFrom(from._internal_coefficients());
952 cached_has_bits = from._impl_._has_bits_[0];
953 if ((cached_has_bits & 0x00000003u) != 0) {
954 if ((cached_has_bits & 0x00000001u) != 0) {
955 _this->_impl_.offset_ = from._impl_.offset_;
957 if ((cached_has_bits & 0x00000002u) != 0) {
958 _this->_impl_.scaling_factor_ = from._impl_.scaling_factor_;
961 _this->_impl_._has_bits_[0] |= cached_has_bits;
962 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
967 if (&from ==
this)
return;
973void LinearObjective::InternalSwap(
LinearObjective* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
975 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
976 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
977 _impl_.literals_.InternalSwap(&other->_impl_.literals_);
978 _impl_.coefficients_.InternalSwap(&other->_impl_.coefficients_);
979 ::google::protobuf::internal::memswap<
983 reinterpret_cast<char*
>(&
_impl_.offset_),
984 reinterpret_cast<char*
>(&other->_impl_.offset_));
988 return ::google::protobuf::Message::GetMetadataImpl(
GetClassData()->full());
997#if defined(PROTOBUF_CUSTOM_VTABLE)
1000 : ::google::protobuf::Message(arena) {
1005PROTOBUF_NDEBUG_INLINE BooleanAssignment::Impl_::Impl_(
1006 ::google::protobuf::internal::InternalVisibility visibility,
1007 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
1008 const ::operations_research::sat::BooleanAssignment& from_msg)
1009 : literals_{visibility, arena, from.literals_},
1013 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1014 const BooleanAssignment& from)
1015#if defined(PROTOBUF_CUSTOM_VTABLE)
1018 : ::google::protobuf::Message(arena) {
1022 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
1023 from._internal_metadata_);
1024 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1028PROTOBUF_NDEBUG_INLINE BooleanAssignment::Impl_::Impl_(
1029 ::google::protobuf::internal::InternalVisibility visibility,
1030 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1031 : literals_{visibility, arena},
1034inline void BooleanAssignment::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1035 new (&
_impl_) Impl_(internal_visibility(), arena);
1041inline void BooleanAssignment::SharedDtor(MessageLite& self) {
1043 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1044 ABSL_DCHECK(this_.GetArena() ==
nullptr);
1049 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
1050 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1054 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
1057 InternalGetArenaOffset(
1060 if (arena_bits.has_value()) {
1061 return ::google::protobuf::internal::MessageCreator::ZeroInit(
1062 sizeof(BooleanAssignment), alignof(BooleanAssignment), *arena_bits);
1064 return ::google::protobuf::internal::MessageCreator(&BooleanAssignment::PlacementNew_,
1065 sizeof(BooleanAssignment),
1066 alignof(BooleanAssignment));
1070 return ::google::protobuf::internal::ClassDataFull{
1071 ::google::protobuf::internal::ClassData{
1076 &BooleanAssignment::MergeImpl,
1077 ::google::protobuf::Message::GetNewImpl<BooleanAssignment>(),
1078#if defined(PROTOBUF_CUSTOM_VTABLE)
1079 &BooleanAssignment::SharedDtor,
1086 &BooleanAssignment::kDescriptorMethods,
1092PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1096PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1102PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1103const ::_pbi::TcParseTable<0, 1, 0, 0, 2>
1104BooleanAssignment::_table_ = {
1109 offsetof(
decltype(_table_), field_lookup_table),
1111 offsetof(
decltype(_table_), field_entries),
1114 offsetof(
decltype(_table_), field_names),
1117 ::_pbi::TcParser::GenericFallback,
1118 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1119 ::_pbi::TcParser::GetTable<::operations_research::sat::BooleanAssignment>(),
1123 {::_pbi::TcParser::FastV32R1,
1130 (0 | ::_fl::kFcRepeated | ::_fl::kInt32)},
1138 ::google::protobuf::internal::TSanWrite(&
_impl_);
1139 ::uint32_t cached_has_bits = 0;
1141 (void) cached_has_bits;
1143 _impl_.literals_.Clear();
1144 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1147#if defined(PROTOBUF_CUSTOM_VTABLE)
1149 const ::google::protobuf::MessageLite&
base, ::uint8_t* PROTOBUF_NONNULL target,
1150 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1154 ::uint8_t* PROTOBUF_NONNULL target,
1155 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
1159 ::uint32_t cached_has_bits = 0;
1160 (void)cached_has_bits;
1163 for (
int i = 0, n = this_._internal_literals_size();
i < n; ++
i) {
1164 target = stream->EnsureSpace(target);
1165 target = ::_pbi::WireFormatLite::WriteInt32ToArray(
1166 1, this_._internal_literals().Get(
i), target);
1169 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1171 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1172 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1178#if defined(PROTOBUF_CUSTOM_VTABLE)
1186 ::size_t total_size = 0;
1188 ::uint32_t cached_has_bits = 0;
1190 (void)cached_has_bits;
1192 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1196 ::size_t data_size = ::_pbi::WireFormatLite::Int32Size(
1197 this_._internal_literals());
1198 ::size_t tag_size = ::size_t{1} *
1199 ::_pbi::FromIntSize(this_._internal_literals_size());
1200 total_size += tag_size + data_size;
1203 return this_.MaybeComputeUnknownFieldsSize(total_size,
1204 &this_._impl_._cached_size_);
1207void BooleanAssignment::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
1211 ABSL_DCHECK_NE(&from, _this);
1212 ::uint32_t cached_has_bits = 0;
1213 (void) cached_has_bits;
1215 _this->_internal_mutable_literals()->MergeFrom(from._internal_literals());
1216 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
1221 if (&from ==
this)
return;
1227void BooleanAssignment::InternalSwap(
BooleanAssignment* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1229 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1230 _impl_.literals_.InternalSwap(&other->_impl_.literals_);
1234 return ::google::protobuf::Message::GetMetadataImpl(
GetClassData()->full());
1241 decltype(::std::declval<LinearBooleanProblem>()._impl_._has_bits_);
1247#if defined(PROTOBUF_CUSTOM_VTABLE)
1250 : ::google::protobuf::Message(arena) {
1255PROTOBUF_NDEBUG_INLINE LinearBooleanProblem::Impl_::Impl_(
1256 ::google::protobuf::internal::InternalVisibility visibility,
1257 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
1258 const ::operations_research::sat::LinearBooleanProblem& from_msg)
1259 : _has_bits_{from._has_bits_},
1261 constraints_{visibility, arena, from.constraints_},
1262 var_names_{visibility, arena, from.var_names_},
1263 name_(arena, from.name_) {}
1266 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1267 const LinearBooleanProblem& from)
1268#if defined(PROTOBUF_CUSTOM_VTABLE)
1271 : ::google::protobuf::Message(arena) {
1275 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
1276 from._internal_metadata_);
1277 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1278 ::uint32_t cached_has_bits =
_impl_._has_bits_[0];
1279 _impl_.objective_ = ((cached_has_bits & 0x00000002u) != 0)
1280 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.objective_)
1282 _impl_.assignment_ = ((cached_has_bits & 0x00000004u) != 0)
1283 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.assignment_)
1285 ::memcpy(
reinterpret_cast<char *
>(&
_impl_) +
1286 offsetof(Impl_, num_variables_),
1287 reinterpret_cast<const char *
>(&from._impl_) +
1288 offsetof(Impl_, num_variables_),
1289 offsetof(Impl_, original_num_variables_) -
1290 offsetof(Impl_, num_variables_) +
1291 sizeof(Impl_::original_num_variables_));
1295PROTOBUF_NDEBUG_INLINE LinearBooleanProblem::Impl_::Impl_(
1296 ::google::protobuf::internal::InternalVisibility visibility,
1297 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1299 constraints_{visibility, arena},
1300 var_names_{visibility, arena},
1303inline void LinearBooleanProblem::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1304 new (&
_impl_) Impl_(internal_visibility(), arena);
1305 ::memset(
reinterpret_cast<char *
>(&
_impl_) +
1306 offsetof(Impl_, objective_),
1308 offsetof(Impl_, original_num_variables_) -
1309 offsetof(Impl_, objective_) +
1310 sizeof(Impl_::original_num_variables_));
1318 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1319 ABSL_DCHECK(this_.GetArena() ==
nullptr);
1320 this_.
_impl_.name_.Destroy();
1321 delete this_.
_impl_.objective_;
1322 delete this_.
_impl_.assignment_;
1327 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
1328 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1332 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
1335 InternalGetArenaOffset(
1336 ::google::protobuf::Message::internal_visibility()),
1339 InternalGetArenaOffset(
1342 if (arena_bits.has_value()) {
1343 return ::google::protobuf::internal::MessageCreator::CopyInit(
1344 sizeof(LinearBooleanProblem), alignof(LinearBooleanProblem), *arena_bits);
1346 return ::google::protobuf::internal::MessageCreator(&LinearBooleanProblem::PlacementNew_,
1347 sizeof(LinearBooleanProblem),
1348 alignof(LinearBooleanProblem));
1352 return ::google::protobuf::internal::ClassDataFull{
1353 ::google::protobuf::internal::ClassData{
1358 &LinearBooleanProblem::MergeImpl,
1359 ::google::protobuf::Message::GetNewImpl<LinearBooleanProblem>(),
1360#if defined(PROTOBUF_CUSTOM_VTABLE)
1361 &LinearBooleanProblem::SharedDtor,
1368 &LinearBooleanProblem::kDescriptorMethods,
1374PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1378PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1384PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1385const ::_pbi::TcParseTable<3, 7, 3, 66, 2>
1386LinearBooleanProblem::_table_ = {
1391 offsetof(
decltype(_table_), field_lookup_table),
1393 offsetof(
decltype(_table_), field_entries),
1396 offsetof(
decltype(_table_), aux_entries),
1399 ::_pbi::TcParser::GenericFallback,
1400 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1401 ::_pbi::TcParser::GetTable<::operations_research::sat::LinearBooleanProblem>(),
1408 {::_pbi::TcParser::FastSS1,
1410 {::_pbi::TcParser::MiniParse, {}},
1415 {::_pbi::TcParser::FastMtR1,
1418 {::_pbi::TcParser::FastMtS1,
1421 {::_pbi::TcParser::FastSR1,
1424 {::_pbi::TcParser::FastMtS1,
1431 (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)},
1434 (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
1437 (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
1440 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1443 (0 | ::_fl::kFcRepeated | ::_fl::kRawString | ::_fl::kRepSString)},
1446 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1449 (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
1452 {::_pbi::TcParser::GetTable<::operations_research::sat::LinearBooleanConstraint>()},
1453 {::_pbi::TcParser::GetTable<::operations_research::sat::LinearObjective>()},
1454 {::_pbi::TcParser::GetTable<::operations_research::sat::BooleanAssignment>()},
1457 "\54\4\0\0\0\11\0\0"
1458 "operations_research.sat.LinearBooleanProblem"
1465 ::google::protobuf::internal::TSanWrite(&
_impl_);
1466 ::uint32_t cached_has_bits = 0;
1468 (void) cached_has_bits;
1470 _impl_.constraints_.Clear();
1471 _impl_.var_names_.Clear();
1472 cached_has_bits =
_impl_._has_bits_[0];
1473 if ((cached_has_bits & 0x00000007u) != 0) {
1474 if ((cached_has_bits & 0x00000001u) != 0) {
1475 _impl_.name_.ClearNonDefaultToEmpty();
1477 if ((cached_has_bits & 0x00000002u) != 0) {
1478 ABSL_DCHECK(
_impl_.objective_ !=
nullptr);
1479 _impl_.objective_->Clear();
1481 if ((cached_has_bits & 0x00000004u) != 0) {
1482 ABSL_DCHECK(
_impl_.assignment_ !=
nullptr);
1483 _impl_.assignment_->Clear();
1486 if ((cached_has_bits & 0x00000018u) != 0) {
1487 ::memset(&
_impl_.num_variables_, 0,
static_cast<::
size_t>(
1488 reinterpret_cast<char*
>(&
_impl_.original_num_variables_) -
1489 reinterpret_cast<char*
>(&
_impl_.num_variables_)) +
sizeof(
_impl_.original_num_variables_));
1491 _impl_._has_bits_.Clear();
1492 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1495#if defined(PROTOBUF_CUSTOM_VTABLE)
1497 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1498 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1502 ::uint8_t* PROTOBUF_NONNULL target,
1503 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
1507 ::uint32_t cached_has_bits = 0;
1508 (void)cached_has_bits;
1510 cached_has_bits = this_._impl_._has_bits_[0];
1512 if ((cached_has_bits & 0x00000001u) != 0) {
1513 const ::std::string& _s = this_._internal_name();
1514 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(),
static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE,
1515 "operations_research.sat.LinearBooleanProblem.name");
1516 target = stream->WriteStringMaybeAliased(1, _s, target);
1520 if ((cached_has_bits & 0x00000008u) != 0) {
1522 ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>(
1523 stream, this_._internal_num_variables(), target);
1527 for (
unsigned i = 0, n =
static_cast<unsigned>(
1528 this_._internal_constraints_size());
1530 const auto& repfield = this_._internal_constraints().Get(
i);
1532 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1533 4, repfield, repfield.GetCachedSize(),
1538 if ((cached_has_bits & 0x00000002u) != 0) {
1539 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1540 5, *this_._impl_.objective_, this_._impl_.objective_->GetCachedSize(), target,
1545 for (
int i = 0, n = this_._internal_var_names_size();
i < n; ++
i) {
1546 const auto& s = this_._internal_var_names().Get(
i);
1547 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(s.data(),
static_cast<int>(s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE,
1548 "operations_research.sat.LinearBooleanProblem.var_names");
1549 target = stream->WriteString(6, s, target);
1553 if ((cached_has_bits & 0x00000004u) != 0) {
1554 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1555 7, *this_._impl_.assignment_, this_._impl_.assignment_->GetCachedSize(), target,
1560 if ((cached_has_bits & 0x00000010u) != 0) {
1562 ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<8>(
1563 stream, this_._internal_original_num_variables(), target);
1566 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1568 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1569 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1575#if defined(PROTOBUF_CUSTOM_VTABLE)
1583 ::size_t total_size = 0;
1585 ::uint32_t cached_has_bits = 0;
1587 (void)cached_has_bits;
1589 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1593 total_size += 1UL * this_._internal_constraints_size();
1594 for (
const auto& msg : this_._internal_constraints()) {
1595 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
1601 1 * ::google::protobuf::internal::FromIntSize(this_._internal_var_names().size());
1602 for (
int i = 0, n = this_._internal_var_names().size();
i < n; ++
i) {
1603 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
1604 this_._internal_var_names().Get(
i));
1608 cached_has_bits = this_._impl_._has_bits_[0];
1609 if ((cached_has_bits & 0x0000001fu) != 0) {
1611 if ((cached_has_bits & 0x00000001u) != 0) {
1612 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
1613 this_._internal_name());
1616 if ((cached_has_bits & 0x00000002u) != 0) {
1618 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.objective_);
1621 if ((cached_has_bits & 0x00000004u) != 0) {
1623 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.assignment_);
1626 if ((cached_has_bits & 0x00000008u) != 0) {
1627 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
1628 this_._internal_num_variables());
1631 if ((cached_has_bits & 0x00000010u) != 0) {
1632 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
1633 this_._internal_original_num_variables());
1636 return this_.MaybeComputeUnknownFieldsSize(total_size,
1637 &this_._impl_._cached_size_);
1640void LinearBooleanProblem::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
1645 ABSL_DCHECK_NE(&from, _this);
1646 ::uint32_t cached_has_bits = 0;
1647 (void) cached_has_bits;
1649 _this->_internal_mutable_constraints()->MergeFrom(
1650 from._internal_constraints());
1651 _this->_internal_mutable_var_names()->MergeFrom(from._internal_var_names());
1652 cached_has_bits = from._impl_._has_bits_[0];
1653 if ((cached_has_bits & 0x0000001fu) != 0) {
1654 if ((cached_has_bits & 0x00000001u) != 0) {
1655 _this->_internal_set_name(from._internal_name());
1657 if ((cached_has_bits & 0x00000002u) != 0) {
1658 ABSL_DCHECK(from._impl_.objective_ !=
nullptr);
1659 if (_this->_impl_.objective_ ==
nullptr) {
1660 _this->_impl_.objective_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.objective_);
1662 _this->_impl_.objective_->MergeFrom(*from._impl_.objective_);
1665 if ((cached_has_bits & 0x00000004u) != 0) {
1666 ABSL_DCHECK(from._impl_.assignment_ !=
nullptr);
1667 if (_this->_impl_.assignment_ ==
nullptr) {
1668 _this->_impl_.assignment_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.assignment_);
1670 _this->_impl_.assignment_->MergeFrom(*from._impl_.assignment_);
1673 if ((cached_has_bits & 0x00000008u) != 0) {
1674 _this->_impl_.num_variables_ = from._impl_.num_variables_;
1676 if ((cached_has_bits & 0x00000010u) != 0) {
1677 _this->_impl_.original_num_variables_ = from._impl_.original_num_variables_;
1680 _this->_impl_._has_bits_[0] |= cached_has_bits;
1681 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
1686 if (&from ==
this)
return;
1692void LinearBooleanProblem::InternalSwap(
LinearBooleanProblem* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1694 auto* arena = GetArena();
1695 ABSL_DCHECK_EQ(arena, other->GetArena());
1696 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1697 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1698 _impl_.constraints_.InternalSwap(&other->_impl_.constraints_);
1699 _impl_.var_names_.InternalSwap(&other->_impl_.var_names_);
1700 ::_pbi::ArenaStringPtr::InternalSwap(&
_impl_.name_, &other->_impl_.name_, arena);
1701 ::google::protobuf::internal::memswap<
1705 reinterpret_cast<char*
>(&
_impl_.objective_),
1706 reinterpret_cast<char*
>(&other->_impl_.objective_));
1710 return ::google::protobuf::Message::GetMetadataImpl(
GetClassData()->full());
1720PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
1723 ::std::false_type{});
1724#include "google/protobuf/port_undef.inc"
static constexprconst ::_pb::EnumDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_enum_descriptors_ortools_2fsat_2fboolean_5fproblem_2eproto
::absl::once_flag descriptor_table_ortools_2fsat_2fboolean_5fproblem_2eproto_once
const ::uint32_t TableStruct_ortools_2fsat_2fboolean_5fproblem_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold)
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fsat_2fboolean_5fproblem_2eproto
static constexprconst ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_service_descriptors_ortools_2fsat_2fboolean_5fproblem_2eproto
static PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::std::false_type _static_init2_
@protoc_insertion_point(global_scope)
static const ::_pb::Message *PROTOBUF_NONNULL const file_default_instances[]
decltype(::std::declval< LinearBooleanConstraint >()._impl_._has_bits_) HasBits
static constexpr ::int32_t kHasBitsOffset
decltype(::std::declval< LinearObjective >()._impl_._has_bits_) HasBits
friend class ::google::protobuf::MessageLite
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
static constexpr auto InternalGenerateClassData_()
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
::google::protobuf::Metadata GetMetadata() const
static constexpr auto InternalNewImpl_()
void MergeFrom(const BooleanAssignment &from)
void CopyFrom(const BooleanAssignment &from)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
~BooleanAssignment() PROTOBUF_FINAL
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
::size_t ByteSizeLong() const final
static constexpr ::int32_t kHasBitsOffset
static constexpr auto InternalGenerateClassData_()
friend class ::google::protobuf::MessageLite
friend void swap(LinearBooleanConstraint &a, LinearBooleanConstraint &b)
::google::protobuf::Metadata GetMetadata() const
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
void CopyFrom(const LinearBooleanConstraint &from)
static constexpr auto InternalNewImpl_()
LinearBooleanConstraint()
::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)
~LinearBooleanConstraint() PROTOBUF_FINAL
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
static constexpr ::int32_t kHasBitsOffset
friend class ::google::protobuf::MessageLite
static constexpr auto InternalGenerateClassData_()
void CopyFrom(const LinearBooleanProblem &from)
void MergeFrom(const LinearBooleanProblem &from)
::google::protobuf::Metadata GetMetadata() const
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
static constexpr auto InternalNewImpl_()
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
~LinearBooleanProblem() PROTOBUF_FINAL
::size_t ByteSizeLong() const final
friend class ::google::protobuf::Arena
friend void swap(LinearBooleanProblem &a, LinearBooleanProblem &b)
static constexpr ::int32_t kHasBitsOffset
::size_t ByteSizeLong() const final
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
void MergeFrom(const LinearObjective &from)
static constexpr auto InternalGenerateClassData_()
::google::protobuf::Metadata GetMetadata() const
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
~LinearObjective() PROTOBUF_FINAL
void CopyFrom(const LinearObjective &from)
static constexpr auto InternalNewImpl_()
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
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_
In SWIG mode, we don't want anything besides these top-level includes.
static constexpr ::_pbi::MigrationSchema *PROTOBUF_NULLABLE schemas
~BooleanAssignmentDefaultTypeInternal()
PROTOBUF_CONSTEXPR BooleanAssignmentDefaultTypeInternal()
BooleanAssignment _instance
~LinearBooleanConstraintDefaultTypeInternal()
PROTOBUF_CONSTEXPR LinearBooleanConstraintDefaultTypeInternal()
LinearBooleanConstraint _instance
PROTOBUF_CONSTEXPR LinearBooleanProblemDefaultTypeInternal()
~LinearBooleanProblemDefaultTypeInternal()
LinearBooleanProblem _instance
~LinearObjectiveDefaultTypeInternal()
LinearObjective _instance
PROTOBUF_CONSTEXPR LinearObjectiveDefaultTypeInternal()