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;
29inline constexpr WorkerInfo::Impl_::Impl_(
30 ::_pbi::ConstantInitialized) noexcept
33 &::google::protobuf::internal::fixed_address_empty_string,
34 ::_pbi::ConstantInitialized()),
39#if defined(PROTOBUF_CUSTOM_VTABLE)
42 : ::google::protobuf::Message(),
44 _impl_(::_pbi::ConstantInitialized()) {
54PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
57inline constexpr SequenceVarAssignment::Impl_::Impl_(
58 ::_pbi::ConstantInitialized) noexcept
61 _forward_sequence_cached_byte_size_{0},
63 _backward_sequence_cached_byte_size_{0},
65 _unperformed_cached_byte_size_{0},
67 &::google::protobuf::internal::fixed_address_empty_string,
68 ::_pbi::ConstantInitialized()),
73#if defined(PROTOBUF_CUSTOM_VTABLE)
76 : ::google::protobuf::Message(),
78 _impl_(::_pbi::ConstantInitialized()) {
88PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
91inline constexpr IntervalVarAssignment::Impl_::Impl_(
92 ::_pbi::ConstantInitialized) noexcept
95 &::google::protobuf::internal::fixed_address_empty_string,
96 ::_pbi::ConstantInitialized()),
97 start_min_{::int64_t{0}},
98 start_max_{::int64_t{0}},
99 duration_min_{::int64_t{0}},
100 duration_max_{::int64_t{0}},
101 end_min_{::int64_t{0}},
102 end_max_{::int64_t{0}},
103 performed_min_{::int64_t{0}},
104 performed_max_{::int64_t{0}},
109#if defined(PROTOBUF_CUSTOM_VTABLE)
112 : ::google::protobuf::Message(),
114 _impl_(::_pbi::ConstantInitialized()) {
124PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
127inline constexpr IntVarAssignment::Impl_::Impl_(
128 ::_pbi::ConstantInitialized) noexcept
131 &::google::protobuf::internal::fixed_address_empty_string,
132 ::_pbi::ConstantInitialized()),
139#if defined(PROTOBUF_CUSTOM_VTABLE)
142 : ::google::protobuf::Message(),
144 _impl_(::_pbi::ConstantInitialized()) {
154PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
157inline constexpr AssignmentProto::Impl_::Impl_(
158 ::_pbi::ConstantInitialized) noexcept
160 int_var_assignment_{},
161 interval_var_assignment_{},
163 sequence_var_assignment_{},
164 worker_info_{
nullptr},
169#if defined(PROTOBUF_CUSTOM_VTABLE)
172 : ::google::protobuf::Message(),
174 _impl_(::_pbi::ConstantInitialized()) {
184PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
187static constexpr const ::_pb::EnumDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
189static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
265static const ::_pbi::MigrationSchema
282 "\n*ortools/constraint_solver/assignment.p"
283 "roto\022\023operations_research\"L\n\020IntVarAssig"
284 "nment\022\016\n\006var_id\030\001 \001(\t\022\013\n\003min\030\002 \001(\003\022\013\n\003ma"
285 "x\030\003 \001(\003\022\016\n\006active\030\004 \001(\010\"\331\001\n\025IntervalVarA"
286 "ssignment\022\016\n\006var_id\030\001 \001(\t\022\021\n\tstart_min\030\002"
287 " \001(\003\022\021\n\tstart_max\030\003 \001(\003\022\024\n\014duration_min\030"
288 "\004 \001(\003\022\024\n\014duration_max\030\005 \001(\003\022\017\n\007end_min\030\006"
289 " \001(\003\022\017\n\007end_max\030\007 \001(\003\022\025\n\rperformed_min\030\010"
290 " \001(\003\022\025\n\rperformed_max\030\t \001(\003\022\016\n\006active\030\n "
291 "\001(\010\"\201\001\n\025SequenceVarAssignment\022\016\n\006var_id\030"
292 "\001 \001(\t\022\030\n\020forward_sequence\030\002 \003(\005\022\031\n\021backw"
293 "ard_sequence\030\003 \003(\005\022\023\n\013unperformed\030\004 \003(\005\022"
294 "\016\n\006active\030\005 \001(\010\",\n\nWorkerInfo\022\021\n\tworker_"
295 "id\030\001 \001(\005\022\013\n\003bns\030\002 \001(\t\"\360\002\n\017AssignmentProt"
296 "o\022A\n\022int_var_assignment\030\001 \003(\0132%.operatio"
297 "ns_research.IntVarAssignment\022K\n\027interval"
298 "_var_assignment\030\002 \003(\0132*.operations_resea"
299 "rch.IntervalVarAssignment\022K\n\027sequence_va"
300 "r_assignment\030\006 \003(\0132*.operations_research"
301 ".SequenceVarAssignment\0228\n\tobjective\030\003 \003("
302 "\0132%.operations_research.IntVarAssignment"
303 "\0224\n\013worker_info\030\004 \001(\0132\037.operations_resea"
304 "rch.WorkerInfo\022\020\n\010is_valid\030\005 \001(\010b\006proto3"
311 descriptor_table_protodef_ortools_2fconstraint_5fsolver_2fassignment_2eproto,
312 "ortools/constraint_solver/assignment.proto",
329 decltype(::std::declval<IntVarAssignment>()._impl_._has_bits_);
335#if defined(PROTOBUF_CUSTOM_VTABLE)
338 : ::google::protobuf::Message(arena) {
343PROTOBUF_NDEBUG_INLINE IntVarAssignment::Impl_::Impl_(
344 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
345 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
346 [[maybe_unused]] const ::operations_research::IntVarAssignment& from_msg)
347 : _has_bits_{from._has_bits_},
349 var_id_(arena, from.var_id_) {}
352 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
354#if defined(PROTOBUF_CUSTOM_VTABLE)
357 : ::google::protobuf::Message(arena) {
361 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
362 from._internal_metadata_);
363 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
364 ::memcpy(
reinterpret_cast<char*
>(&
_impl_) +
365 offsetof(Impl_, min_),
366 reinterpret_cast<const char*
>(&from._impl_) +
367 offsetof(Impl_, min_),
368 offsetof(Impl_, active_) -
369 offsetof(Impl_, min_) +
370 sizeof(Impl_::active_));
374PROTOBUF_NDEBUG_INLINE IntVarAssignment::Impl_::Impl_(
375 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
376 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
380inline void IntVarAssignment::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
381 new (&
_impl_) Impl_(internal_visibility(), arena);
382 ::memset(
reinterpret_cast<char*
>(&
_impl_) +
383 offsetof(Impl_, min_),
385 offsetof(Impl_, active_) -
386 offsetof(Impl_, min_) +
387 sizeof(Impl_::active_));
393inline void IntVarAssignment::SharedDtor(
MessageLite& self) {
395 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
396 this_.CheckHasBitConsistency();
398 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
399 ABSL_DCHECK(this_.GetArena() ==
nullptr);
400 this_.
_impl_.var_id_.Destroy();
404inline void* PROTOBUF_NONNULL IntVarAssignment::PlacementNew_(
405 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
406 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
409constexpr auto IntVarAssignment::InternalNewImpl_() {
410 return ::google::protobuf::internal::MessageCreator::CopyInit(
sizeof(
IntVarAssignment),
414 return ::google::protobuf::internal::ClassDataFull{
415 ::google::protobuf::internal::ClassData{
420 &IntVarAssignment::MergeImpl,
421 ::google::protobuf::Message::GetNewImpl<IntVarAssignment>(),
422#if defined(PROTOBUF_CUSTOM_VTABLE)
423 &IntVarAssignment::SharedDtor,
430 &IntVarAssignment::kDescriptorMethods,
436PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
440PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
441IntVarAssignment::GetClassData()
const {
446PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
447const ::_pbi::TcParseTable<2, 4, 0, 51, 2>
448IntVarAssignment::_table_ = {
453 offsetof(
decltype(_table_), field_lookup_table),
455 offsetof(
decltype(_table_), field_entries),
458 offsetof(
decltype(_table_), field_names),
461 ::_pbi::TcParser::GenericFallback,
462 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
463 ::_pbi::TcParser::GetTable<::operations_research::IntVarAssignment>(),
471 {::_pbi::TcParser::FastUS1,
497 "operations_research.IntVarAssignment"
503 ::google::protobuf::internal::TSanWrite(&
_impl_);
504 ::uint32_t cached_has_bits = 0;
506 (void) cached_has_bits;
508 cached_has_bits =
_impl_._has_bits_[0];
509 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
510 _impl_.var_id_.ClearNonDefaultToEmpty();
512 if (BatchCheckHasBit(cached_has_bits, 0x0000000eU)) {
513 ::memset(&
_impl_.min_, 0,
static_cast<::
size_t>(
514 reinterpret_cast<char*
>(&
_impl_.active_) -
515 reinterpret_cast<char*
>(&
_impl_.min_)) +
sizeof(
_impl_.active_));
517 _impl_._has_bits_.Clear();
518 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
521#if defined(PROTOBUF_CUSTOM_VTABLE)
523 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
524 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
528 ::uint8_t* PROTOBUF_NONNULL target,
529 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
532 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
533 this_.CheckHasBitConsistency();
536 ::uint32_t cached_has_bits = 0;
537 (void)cached_has_bits;
539 cached_has_bits = this_.
_impl_._has_bits_[0];
541 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
542 if (!this_._internal_var_id().empty()) {
543 const ::std::string& _s = this_._internal_var_id();
544 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
545 _s.data(),
static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE,
"operations_research.IntVarAssignment.var_id");
546 target = stream->WriteStringMaybeAliased(1, _s, target);
551 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
552 if (this_._internal_min() != 0) {
554 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
555 stream, this_._internal_min(), target);
560 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
561 if (this_._internal_max() != 0) {
563 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>(
564 stream, this_._internal_max(), target);
569 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
570 if (this_._internal_active() != 0) {
571 target = stream->EnsureSpace(target);
572 target = ::_pbi::WireFormatLite::WriteBoolToArray(
573 4, this_._internal_active(), target);
577 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
579 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
580 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
586#if defined(PROTOBUF_CUSTOM_VTABLE)
594 ::size_t total_size = 0;
596 ::uint32_t cached_has_bits = 0;
598 (void)cached_has_bits;
600 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
601 cached_has_bits = this_.
_impl_._has_bits_[0];
602 if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
604 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
605 if (!this_._internal_var_id().empty()) {
606 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
607 this_._internal_var_id());
611 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
612 if (this_._internal_min() != 0) {
613 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
614 this_._internal_min());
618 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
619 if (this_._internal_max() != 0) {
620 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
621 this_._internal_max());
625 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
626 if (this_._internal_active() != 0) {
631 return this_.MaybeComputeUnknownFieldsSize(total_size,
632 &this_.
_impl_._cached_size_);
635void IntVarAssignment::MergeImpl(::google::protobuf::MessageLite& to_msg,
636 const ::google::protobuf::MessageLite& from_msg) {
640 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
641 from.CheckHasBitConsistency();
644 ABSL_DCHECK_NE(&from, _this);
645 ::uint32_t cached_has_bits = 0;
646 (void)cached_has_bits;
648 cached_has_bits = from._impl_._has_bits_[0];
649 if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
650 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
651 if (!from._internal_var_id().empty()) {
652 _this->_internal_set_var_id(from._internal_var_id());
654 if (_this->_impl_.var_id_.IsDefault()) {
655 _this->_internal_set_var_id(
"");
659 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
660 if (from._internal_min() != 0) {
661 _this->_impl_.min_ = from._impl_.min_;
664 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
665 if (from._internal_max() != 0) {
666 _this->_impl_.max_ = from._impl_.max_;
669 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
670 if (from._internal_active() != 0) {
671 _this->_impl_.active_ = from._impl_.active_;
675 _this->_impl_._has_bits_[0] |= cached_has_bits;
676 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
677 from._internal_metadata_);
682 if (&from ==
this)
return;
688void IntVarAssignment::InternalSwap(
IntVarAssignment* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
690 auto* arena = GetArena();
691 ABSL_DCHECK_EQ(arena, other->GetArena());
692 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
693 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
694 ::_pbi::ArenaStringPtr::InternalSwap(&
_impl_.var_id_, &other->_impl_.var_id_, arena);
695 ::google::protobuf::internal::memswap<
699 reinterpret_cast<char*
>(&
_impl_.min_),
700 reinterpret_cast<char*
>(&other->_impl_.min_));
704 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
711 decltype(::std::declval<IntervalVarAssignment>()._impl_._has_bits_);
717#if defined(PROTOBUF_CUSTOM_VTABLE)
720 : ::google::protobuf::Message(arena) {
725PROTOBUF_NDEBUG_INLINE IntervalVarAssignment::Impl_::Impl_(
726 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
727 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
728 [[maybe_unused]] const ::operations_research::IntervalVarAssignment& from_msg)
729 : _has_bits_{from._has_bits_},
731 var_id_(arena, from.var_id_) {}
734 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
736#if defined(PROTOBUF_CUSTOM_VTABLE)
739 : ::google::protobuf::Message(arena) {
743 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
744 from._internal_metadata_);
745 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
746 ::memcpy(
reinterpret_cast<char*
>(&
_impl_) +
747 offsetof(Impl_, start_min_),
748 reinterpret_cast<const char*
>(&from._impl_) +
749 offsetof(Impl_, start_min_),
750 offsetof(Impl_, active_) -
751 offsetof(Impl_, start_min_) +
752 sizeof(Impl_::active_));
756PROTOBUF_NDEBUG_INLINE IntervalVarAssignment::Impl_::Impl_(
757 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
758 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
762inline void IntervalVarAssignment::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
763 new (&
_impl_) Impl_(internal_visibility(), arena);
764 ::memset(
reinterpret_cast<char*
>(&
_impl_) +
765 offsetof(Impl_, start_min_),
767 offsetof(Impl_, active_) -
768 offsetof(Impl_, start_min_) +
769 sizeof(Impl_::active_));
775inline void IntervalVarAssignment::SharedDtor(
MessageLite& self) {
777 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
778 this_.CheckHasBitConsistency();
780 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
781 ABSL_DCHECK(this_.GetArena() ==
nullptr);
782 this_.
_impl_.var_id_.Destroy();
786inline void* PROTOBUF_NONNULL IntervalVarAssignment::PlacementNew_(
787 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
788 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
791constexpr auto IntervalVarAssignment::InternalNewImpl_() {
796 return ::google::protobuf::internal::ClassDataFull{
797 ::google::protobuf::internal::ClassData{
802 &IntervalVarAssignment::MergeImpl,
803 ::google::protobuf::Message::GetNewImpl<IntervalVarAssignment>(),
804#if defined(PROTOBUF_CUSTOM_VTABLE)
805 &IntervalVarAssignment::SharedDtor,
812 &IntervalVarAssignment::kDescriptorMethods,
818PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
822PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
823IntervalVarAssignment::GetClassData()
const {
828PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
829const ::_pbi::TcParseTable<4, 10, 0, 64, 2>
830IntervalVarAssignment::_table_ = {
835 offsetof(
decltype(_table_), field_lookup_table),
837 offsetof(
decltype(_table_), field_entries),
840 offsetof(
decltype(_table_), field_names),
843 ::_pbi::TcParser::GenericFallback,
844 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
845 ::_pbi::TcParser::GetTable<::operations_research::IntervalVarAssignment>(),
848 {::_pbi::TcParser::MiniParse, {}},
850 {::_pbi::TcParser::FastUS1,
889 {::_pbi::TcParser::MiniParse, {}},
890 {::_pbi::TcParser::MiniParse, {}},
891 {::_pbi::TcParser::MiniParse, {}},
892 {::_pbi::TcParser::MiniParse, {}},
893 {::_pbi::TcParser::MiniParse, {}},
920 "\51\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
921 "operations_research.IntervalVarAssignment"
927 ::google::protobuf::internal::TSanWrite(&
_impl_);
928 ::uint32_t cached_has_bits = 0;
930 (void) cached_has_bits;
932 cached_has_bits =
_impl_._has_bits_[0];
933 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
934 _impl_.var_id_.ClearNonDefaultToEmpty();
936 if (BatchCheckHasBit(cached_has_bits, 0x000000feU)) {
937 ::memset(&
_impl_.start_min_, 0,
static_cast<::
size_t>(
938 reinterpret_cast<char*
>(&
_impl_.performed_min_) -
939 reinterpret_cast<char*
>(&
_impl_.start_min_)) +
sizeof(
_impl_.performed_min_));
941 if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) {
942 ::memset(&
_impl_.performed_max_, 0,
static_cast<::
size_t>(
943 reinterpret_cast<char*
>(&
_impl_.active_) -
944 reinterpret_cast<char*
>(&
_impl_.performed_max_)) +
sizeof(
_impl_.active_));
946 _impl_._has_bits_.Clear();
947 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
950#if defined(PROTOBUF_CUSTOM_VTABLE)
952 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
953 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
957 ::uint8_t* PROTOBUF_NONNULL target,
958 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
961 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
962 this_.CheckHasBitConsistency();
965 ::uint32_t cached_has_bits = 0;
966 (void)cached_has_bits;
968 cached_has_bits = this_.
_impl_._has_bits_[0];
970 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
971 if (!this_._internal_var_id().empty()) {
972 const ::std::string& _s = this_._internal_var_id();
973 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
974 _s.data(),
static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE,
"operations_research.IntervalVarAssignment.var_id");
975 target = stream->WriteStringMaybeAliased(1, _s, target);
980 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
981 if (this_._internal_start_min() != 0) {
983 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
984 stream, this_._internal_start_min(), target);
989 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
990 if (this_._internal_start_max() != 0) {
992 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>(
993 stream, this_._internal_start_max(), target);
998 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
999 if (this_._internal_duration_min() != 0) {
1001 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<4>(
1002 stream, this_._internal_duration_min(), target);
1007 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
1008 if (this_._internal_duration_max() != 0) {
1010 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<5>(
1011 stream, this_._internal_duration_max(), target);
1016 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
1017 if (this_._internal_end_min() != 0) {
1019 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<6>(
1020 stream, this_._internal_end_min(), target);
1025 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
1026 if (this_._internal_end_max() != 0) {
1028 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<7>(
1029 stream, this_._internal_end_max(), target);
1034 if (CheckHasBit(cached_has_bits, 0x00000080U)) {
1035 if (this_._internal_performed_min() != 0) {
1037 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<8>(
1038 stream, this_._internal_performed_min(), target);
1043 if (CheckHasBit(cached_has_bits, 0x00000100U)) {
1044 if (this_._internal_performed_max() != 0) {
1046 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<9>(
1047 stream, this_._internal_performed_max(), target);
1052 if (CheckHasBit(cached_has_bits, 0x00000200U)) {
1053 if (this_._internal_active() != 0) {
1054 target = stream->EnsureSpace(target);
1055 target = ::_pbi::WireFormatLite::WriteBoolToArray(
1056 10, this_._internal_active(), target);
1060 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1062 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1063 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1069#if defined(PROTOBUF_CUSTOM_VTABLE)
1077 ::size_t total_size = 0;
1079 ::uint32_t cached_has_bits = 0;
1081 (void)cached_has_bits;
1083 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1084 cached_has_bits = this_.
_impl_._has_bits_[0];
1085 if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
1087 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1088 if (!this_._internal_var_id().empty()) {
1089 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
1090 this_._internal_var_id());
1094 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1095 if (this_._internal_start_min() != 0) {
1096 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
1097 this_._internal_start_min());
1101 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1102 if (this_._internal_start_max() != 0) {
1103 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
1104 this_._internal_start_max());
1108 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1109 if (this_._internal_duration_min() != 0) {
1110 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
1111 this_._internal_duration_min());
1115 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
1116 if (this_._internal_duration_max() != 0) {
1117 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
1118 this_._internal_duration_max());
1122 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
1123 if (this_._internal_end_min() != 0) {
1124 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
1125 this_._internal_end_min());
1129 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
1130 if (this_._internal_end_max() != 0) {
1131 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
1132 this_._internal_end_max());
1136 if (CheckHasBit(cached_has_bits, 0x00000080U)) {
1137 if (this_._internal_performed_min() != 0) {
1138 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
1139 this_._internal_performed_min());
1143 if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) {
1145 if (CheckHasBit(cached_has_bits, 0x00000100U)) {
1146 if (this_._internal_performed_max() != 0) {
1147 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
1148 this_._internal_performed_max());
1152 if (CheckHasBit(cached_has_bits, 0x00000200U)) {
1153 if (this_._internal_active() != 0) {
1158 return this_.MaybeComputeUnknownFieldsSize(total_size,
1159 &this_.
_impl_._cached_size_);
1162void IntervalVarAssignment::MergeImpl(::google::protobuf::MessageLite& to_msg,
1163 const ::google::protobuf::MessageLite& from_msg) {
1167 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1168 from.CheckHasBitConsistency();
1171 ABSL_DCHECK_NE(&from, _this);
1172 ::uint32_t cached_has_bits = 0;
1173 (void)cached_has_bits;
1175 cached_has_bits = from._impl_._has_bits_[0];
1176 if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
1177 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1178 if (!from._internal_var_id().empty()) {
1179 _this->_internal_set_var_id(from._internal_var_id());
1181 if (_this->_impl_.var_id_.IsDefault()) {
1182 _this->_internal_set_var_id(
"");
1186 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1187 if (from._internal_start_min() != 0) {
1188 _this->_impl_.start_min_ = from._impl_.start_min_;
1191 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1192 if (from._internal_start_max() != 0) {
1193 _this->_impl_.start_max_ = from._impl_.start_max_;
1196 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1197 if (from._internal_duration_min() != 0) {
1198 _this->_impl_.duration_min_ = from._impl_.duration_min_;
1201 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
1202 if (from._internal_duration_max() != 0) {
1203 _this->_impl_.duration_max_ = from._impl_.duration_max_;
1206 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
1207 if (from._internal_end_min() != 0) {
1208 _this->_impl_.end_min_ = from._impl_.end_min_;
1211 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
1212 if (from._internal_end_max() != 0) {
1213 _this->_impl_.end_max_ = from._impl_.end_max_;
1216 if (CheckHasBit(cached_has_bits, 0x00000080U)) {
1217 if (from._internal_performed_min() != 0) {
1218 _this->_impl_.performed_min_ = from._impl_.performed_min_;
1222 if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) {
1223 if (CheckHasBit(cached_has_bits, 0x00000100U)) {
1224 if (from._internal_performed_max() != 0) {
1225 _this->_impl_.performed_max_ = from._impl_.performed_max_;
1228 if (CheckHasBit(cached_has_bits, 0x00000200U)) {
1229 if (from._internal_active() != 0) {
1230 _this->_impl_.active_ = from._impl_.active_;
1234 _this->_impl_._has_bits_[0] |= cached_has_bits;
1235 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1236 from._internal_metadata_);
1241 if (&from ==
this)
return;
1247void IntervalVarAssignment::InternalSwap(
IntervalVarAssignment* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1249 auto* arena = GetArena();
1250 ABSL_DCHECK_EQ(arena, other->GetArena());
1251 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1252 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1253 ::_pbi::ArenaStringPtr::InternalSwap(&
_impl_.var_id_, &other->_impl_.var_id_, arena);
1254 ::google::protobuf::internal::memswap<
1258 reinterpret_cast<char*
>(&
_impl_.start_min_),
1259 reinterpret_cast<char*
>(&other->_impl_.start_min_));
1263 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1270 decltype(::std::declval<SequenceVarAssignment>()._impl_._has_bits_);
1276#if defined(PROTOBUF_CUSTOM_VTABLE)
1279 : ::google::protobuf::Message(arena) {
1284PROTOBUF_NDEBUG_INLINE SequenceVarAssignment::Impl_::Impl_(
1285 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1286 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
1287 [[maybe_unused]] const ::operations_research::SequenceVarAssignment& from_msg)
1288 : _has_bits_{from._has_bits_},
1290 forward_sequence_{visibility, arena, from.forward_sequence_},
1291 _forward_sequence_cached_byte_size_{0},
1292 backward_sequence_{visibility, arena, from.backward_sequence_},
1293 _backward_sequence_cached_byte_size_{0},
1294 unperformed_{visibility, arena, from.unperformed_},
1295 _unperformed_cached_byte_size_{0},
1296 var_id_(arena, from.var_id_) {}
1299 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1301#if defined(PROTOBUF_CUSTOM_VTABLE)
1304 : ::google::protobuf::Message(arena) {
1308 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
1309 from._internal_metadata_);
1310 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1311 _impl_.active_ = from._impl_.active_;
1315PROTOBUF_NDEBUG_INLINE SequenceVarAssignment::Impl_::Impl_(
1316 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1317 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1319 forward_sequence_{visibility, arena},
1320 _forward_sequence_cached_byte_size_{0},
1321 backward_sequence_{visibility, arena},
1322 _backward_sequence_cached_byte_size_{0},
1323 unperformed_{visibility, arena},
1324 _unperformed_cached_byte_size_{0},
1327inline void SequenceVarAssignment::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1328 new (&
_impl_) Impl_(internal_visibility(), arena);
1335inline void SequenceVarAssignment::SharedDtor(
MessageLite& self) {
1337 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1338 this_.CheckHasBitConsistency();
1340 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1341 ABSL_DCHECK(this_.GetArena() ==
nullptr);
1342 this_.
_impl_.var_id_.Destroy();
1346inline void* PROTOBUF_NONNULL SequenceVarAssignment::PlacementNew_(
1347 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
1348 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1349 return ::new (mem) SequenceVarAssignment(arena);
1351constexpr auto SequenceVarAssignment::InternalNewImpl_() {
1352 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
1353 PROTOBUF_FIELD_OFFSET(SequenceVarAssignment,
_impl_.forward_sequence_) +
1355 InternalGetArenaOffset(
1356 ::google::protobuf::Message::internal_visibility()),
1357 PROTOBUF_FIELD_OFFSET(SequenceVarAssignment,
_impl_.backward_sequence_) +
1358 decltype(SequenceVarAssignment::
_impl_.backward_sequence_)::
1359 InternalGetArenaOffset(
1360 ::google::protobuf::Message::internal_visibility()),
1361 PROTOBUF_FIELD_OFFSET(SequenceVarAssignment,
_impl_.unperformed_) +
1362 decltype(SequenceVarAssignment::
_impl_.unperformed_)::
1363 InternalGetArenaOffset(
1364 ::google::protobuf::Message::internal_visibility()),
1366 if (arena_bits.has_value()) {
1367 return ::google::protobuf::internal::MessageCreator::CopyInit(
1368 sizeof(SequenceVarAssignment), alignof(SequenceVarAssignment), *arena_bits);
1370 return ::google::protobuf::internal::MessageCreator(&SequenceVarAssignment::PlacementNew_,
1371 sizeof(SequenceVarAssignment),
1372 alignof(SequenceVarAssignment));
1376 return ::google::protobuf::internal::ClassDataFull{
1377 ::google::protobuf::internal::ClassData{
1382 &SequenceVarAssignment::MergeImpl,
1383 ::google::protobuf::Message::GetNewImpl<SequenceVarAssignment>(),
1384#if defined(PROTOBUF_CUSTOM_VTABLE)
1385 &SequenceVarAssignment::SharedDtor,
1392 &SequenceVarAssignment::kDescriptorMethods,
1398PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1402PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1403SequenceVarAssignment::GetClassData()
const {
1408PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1409const ::_pbi::TcParseTable<3, 5, 0, 56, 2>
1410SequenceVarAssignment::_table_ = {
1412 PROTOBUF_FIELD_OFFSET(SequenceVarAssignment,
_impl_._has_bits_),
1415 offsetof(
decltype(_table_), field_lookup_table),
1417 offsetof(
decltype(_table_), field_entries),
1420 offsetof(
decltype(_table_), field_names),
1423 ::_pbi::TcParser::GenericFallback,
1424 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1425 ::_pbi::TcParser::GetTable<::operations_research::SequenceVarAssignment>(),
1428 {::_pbi::TcParser::MiniParse, {}},
1430 {::_pbi::TcParser::FastUS1,
1432 PROTOBUF_FIELD_OFFSET(SequenceVarAssignment,
_impl_.var_id_)}},
1434 {::_pbi::TcParser::FastV32P1,
1436 PROTOBUF_FIELD_OFFSET(SequenceVarAssignment,
_impl_.forward_sequence_)}},
1438 {::_pbi::TcParser::FastV32P1,
1440 PROTOBUF_FIELD_OFFSET(SequenceVarAssignment,
_impl_.backward_sequence_)}},
1442 {::_pbi::TcParser::FastV32P1,
1444 PROTOBUF_FIELD_OFFSET(SequenceVarAssignment,
_impl_.unperformed_)}},
1446 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(SequenceVarAssignment,
_impl_.active_), 4>(),
1448 PROTOBUF_FIELD_OFFSET(SequenceVarAssignment,
_impl_.active_)}},
1449 {::_pbi::TcParser::MiniParse, {}},
1450 {::_pbi::TcParser::MiniParse, {}},
1455 {PROTOBUF_FIELD_OFFSET(SequenceVarAssignment,
_impl_.var_id_),
_Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
1457 {PROTOBUF_FIELD_OFFSET(SequenceVarAssignment,
_impl_.forward_sequence_),
_Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)},
1459 {PROTOBUF_FIELD_OFFSET(SequenceVarAssignment,
_impl_.backward_sequence_),
_Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)},
1461 {PROTOBUF_FIELD_OFFSET(SequenceVarAssignment,
_impl_.unperformed_),
_Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)},
1468 "operations_research.SequenceVarAssignment"
1474 ::google::protobuf::internal::TSanWrite(&
_impl_);
1475 ::uint32_t cached_has_bits = 0;
1477 (void) cached_has_bits;
1479 cached_has_bits =
_impl_._has_bits_[0];
1480 if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
1481 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1482 _impl_.forward_sequence_.Clear();
1484 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1485 _impl_.backward_sequence_.Clear();
1487 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
1488 _impl_.unperformed_.Clear();
1490 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1491 _impl_.var_id_.ClearNonDefaultToEmpty();
1495 _impl_._has_bits_.Clear();
1496 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1499#if defined(PROTOBUF_CUSTOM_VTABLE)
1501 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1502 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1503 const SequenceVarAssignment& this_ =
static_cast<const SequenceVarAssignment&
>(base);
1506 ::uint8_t* PROTOBUF_NONNULL target,
1507 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
1510 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1511 this_.CheckHasBitConsistency();
1514 ::uint32_t cached_has_bits = 0;
1515 (void)cached_has_bits;
1517 cached_has_bits = this_.
_impl_._has_bits_[0];
1519 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1520 if (!this_._internal_var_id().empty()) {
1521 const ::std::string& _s = this_._internal_var_id();
1522 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1523 _s.data(),
static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE,
"operations_research.SequenceVarAssignment.var_id");
1524 target = stream->WriteStringMaybeAliased(1, _s, target);
1529 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1531 int byte_size = this_.
_impl_._forward_sequence_cached_byte_size_.Get();
1532 if (byte_size > 0) {
1533 target = stream->WriteInt32Packed(
1534 2, this_._internal_forward_sequence(), byte_size, target);
1540 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1542 int byte_size = this_.
_impl_._backward_sequence_cached_byte_size_.Get();
1543 if (byte_size > 0) {
1544 target = stream->WriteInt32Packed(
1545 3, this_._internal_backward_sequence(), byte_size, target);
1551 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
1553 int byte_size = this_.
_impl_._unperformed_cached_byte_size_.Get();
1554 if (byte_size > 0) {
1555 target = stream->WriteInt32Packed(
1556 4, this_._internal_unperformed(), byte_size, target);
1562 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
1563 if (this_._internal_active() != 0) {
1564 target = stream->EnsureSpace(target);
1565 target = ::_pbi::WireFormatLite::WriteBoolToArray(
1566 5, this_._internal_active(), target);
1570 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1572 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1573 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1579#if defined(PROTOBUF_CUSTOM_VTABLE)
1581 const SequenceVarAssignment& this_ =
static_cast<const SequenceVarAssignment&
>(base);
1584 const SequenceVarAssignment& this_ = *
this;
1587 ::size_t total_size = 0;
1589 ::uint32_t cached_has_bits = 0;
1591 (void)cached_has_bits;
1593 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1594 cached_has_bits = this_._impl_._has_bits_[0];
1595 if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
1597 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1599 ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize(
1600 this_._internal_forward_sequence(), 1,
1601 this_._impl_._forward_sequence_cached_byte_size_);
1604 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1606 ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize(
1607 this_._internal_backward_sequence(), 1,
1608 this_._impl_._backward_sequence_cached_byte_size_);
1611 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
1613 ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize(
1614 this_._internal_unperformed(), 1,
1615 this_._impl_._unperformed_cached_byte_size_);
1618 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1619 if (!this_._internal_var_id().empty()) {
1620 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
1621 this_._internal_var_id());
1625 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
1626 if (this_._internal_active() != 0) {
1631 return this_.MaybeComputeUnknownFieldsSize(total_size,
1632 &this_._impl_._cached_size_);
1635void SequenceVarAssignment::MergeImpl(::google::protobuf::MessageLite& to_msg,
1636 const ::google::protobuf::MessageLite& from_msg) {
1638 static_cast<SequenceVarAssignment*
>(&to_msg);
1639 auto& from =
static_cast<const SequenceVarAssignment&
>(from_msg);
1640 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1641 from.CheckHasBitConsistency();
1644 ABSL_DCHECK_NE(&from, _this);
1645 ::uint32_t cached_has_bits = 0;
1646 (void)cached_has_bits;
1648 cached_has_bits = from._impl_._has_bits_[0];
1649 if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
1650 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1651 _this->_internal_mutable_forward_sequence()->MergeFrom(from._internal_forward_sequence());
1653 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1654 _this->_internal_mutable_backward_sequence()->MergeFrom(from._internal_backward_sequence());
1656 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
1657 _this->_internal_mutable_unperformed()->MergeFrom(from._internal_unperformed());
1659 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1660 if (!from._internal_var_id().empty()) {
1661 _this->_internal_set_var_id(from._internal_var_id());
1663 if (_this->_impl_.var_id_.IsDefault()) {
1664 _this->_internal_set_var_id(
"");
1668 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
1669 if (from._internal_active() != 0) {
1670 _this->_impl_.active_ = from._impl_.active_;
1674 _this->_impl_._has_bits_[0] |= cached_has_bits;
1675 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1676 from._internal_metadata_);
1681 if (&from ==
this)
return;
1687void SequenceVarAssignment::InternalSwap(
SequenceVarAssignment* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1689 auto* arena = GetArena();
1690 ABSL_DCHECK_EQ(arena, other->GetArena());
1691 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1692 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1693 _impl_.forward_sequence_.InternalSwap(&other->_impl_.forward_sequence_);
1694 _impl_.backward_sequence_.InternalSwap(&other->_impl_.backward_sequence_);
1695 _impl_.unperformed_.InternalSwap(&other->_impl_.unperformed_);
1696 ::_pbi::ArenaStringPtr::InternalSwap(&
_impl_.var_id_, &other->_impl_.var_id_, arena);
1701 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1708 decltype(::std::declval<WorkerInfo>()._impl_._has_bits_);
1714#if defined(PROTOBUF_CUSTOM_VTABLE)
1717 : ::google::protobuf::Message(arena) {
1722PROTOBUF_NDEBUG_INLINE WorkerInfo::Impl_::Impl_(
1723 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1724 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
1725 [[maybe_unused]] const ::operations_research::WorkerInfo& from_msg)
1726 : _has_bits_{from._has_bits_},
1728 bns_(arena, from.bns_) {}
1731 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1733#if defined(PROTOBUF_CUSTOM_VTABLE)
1736 : ::google::protobuf::Message(arena) {
1740 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
1741 from._internal_metadata_);
1742 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1743 _impl_.worker_id_ = from._impl_.worker_id_;
1747PROTOBUF_NDEBUG_INLINE WorkerInfo::Impl_::Impl_(
1748 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1749 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1753inline void WorkerInfo::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1754 new (&
_impl_) Impl_(internal_visibility(), arena);
1763 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1764 this_.CheckHasBitConsistency();
1766 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1767 ABSL_DCHECK(this_.GetArena() ==
nullptr);
1768 this_.
_impl_.bns_.Destroy();
1772inline void* PROTOBUF_NONNULL WorkerInfo::PlacementNew_(
1773 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
1774 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1777constexpr auto WorkerInfo::InternalNewImpl_() {
1778 return ::google::protobuf::internal::MessageCreator::CopyInit(
sizeof(WorkerInfo),
1779 alignof(WorkerInfo));
1782 return ::google::protobuf::internal::ClassDataFull{
1783 ::google::protobuf::internal::ClassData{
1788 &WorkerInfo::MergeImpl,
1789 ::google::protobuf::Message::GetNewImpl<WorkerInfo>(),
1790#if defined(PROTOBUF_CUSTOM_VTABLE)
1791 &WorkerInfo::SharedDtor,
1798 &WorkerInfo::kDescriptorMethods,
1804PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1808PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1809WorkerInfo::GetClassData()
const {
1814PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1815const ::_pbi::TcParseTable<1, 2, 0, 42, 2>
1816WorkerInfo::_table_ = {
1818 PROTOBUF_FIELD_OFFSET(WorkerInfo,
_impl_._has_bits_),
1821 offsetof(
decltype(_table_), field_lookup_table),
1823 offsetof(
decltype(_table_), field_entries),
1826 offsetof(
decltype(_table_), field_names),
1829 ::_pbi::TcParser::GenericFallback,
1830 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1831 ::_pbi::TcParser::GetTable<::operations_research::WorkerInfo>(),
1835 {::_pbi::TcParser::FastUS1,
1837 PROTOBUF_FIELD_OFFSET(WorkerInfo,
_impl_.bns_)}},
1839 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(WorkerInfo,
_impl_.worker_id_), 1>(),
1841 PROTOBUF_FIELD_OFFSET(WorkerInfo,
_impl_.worker_id_)}},
1848 {PROTOBUF_FIELD_OFFSET(WorkerInfo,
_impl_.bns_),
_Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
1853 "operations_research.WorkerInfo"
1859 ::google::protobuf::internal::TSanWrite(&
_impl_);
1860 ::uint32_t cached_has_bits = 0;
1862 (void) cached_has_bits;
1864 cached_has_bits =
_impl_._has_bits_[0];
1865 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1866 _impl_.bns_.ClearNonDefaultToEmpty();
1869 _impl_._has_bits_.Clear();
1870 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1873#if defined(PROTOBUF_CUSTOM_VTABLE)
1875 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1876 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1877 const WorkerInfo& this_ =
static_cast<const WorkerInfo&
>(base);
1880 ::uint8_t* PROTOBUF_NONNULL target,
1881 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
1882 const WorkerInfo& this_ = *
this;
1884 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1885 this_.CheckHasBitConsistency();
1888 ::uint32_t cached_has_bits = 0;
1889 (void)cached_has_bits;
1891 cached_has_bits = this_._impl_._has_bits_[0];
1893 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1894 if (this_._internal_worker_id() != 0) {
1896 ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>(
1897 stream, this_._internal_worker_id(), target);
1902 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1903 if (!this_._internal_bns().empty()) {
1904 const ::std::string& _s = this_._internal_bns();
1905 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1906 _s.data(),
static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE,
"operations_research.WorkerInfo.bns");
1907 target = stream->WriteStringMaybeAliased(2, _s, target);
1911 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1913 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1914 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1920#if defined(PROTOBUF_CUSTOM_VTABLE)
1922 const WorkerInfo& this_ =
static_cast<const WorkerInfo&
>(base);
1925 const WorkerInfo& this_ = *
this;
1928 ::size_t total_size = 0;
1930 ::uint32_t cached_has_bits = 0;
1932 (void)cached_has_bits;
1934 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1935 cached_has_bits = this_._impl_._has_bits_[0];
1936 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
1938 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1939 if (!this_._internal_bns().empty()) {
1940 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
1941 this_._internal_bns());
1945 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1946 if (this_._internal_worker_id() != 0) {
1947 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
1948 this_._internal_worker_id());
1952 return this_.MaybeComputeUnknownFieldsSize(total_size,
1953 &this_._impl_._cached_size_);
1956void WorkerInfo::MergeImpl(::google::protobuf::MessageLite& to_msg,
1957 const ::google::protobuf::MessageLite& from_msg) {
1959 static_cast<WorkerInfo*
>(&to_msg);
1960 auto& from =
static_cast<const WorkerInfo&
>(from_msg);
1961 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1962 from.CheckHasBitConsistency();
1965 ABSL_DCHECK_NE(&from, _this);
1966 ::uint32_t cached_has_bits = 0;
1967 (void)cached_has_bits;
1969 cached_has_bits = from._impl_._has_bits_[0];
1970 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
1971 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1972 if (!from._internal_bns().empty()) {
1973 _this->_internal_set_bns(from._internal_bns());
1975 if (_this->_impl_.bns_.IsDefault()) {
1976 _this->_internal_set_bns(
"");
1980 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1981 if (from._internal_worker_id() != 0) {
1982 _this->_impl_.worker_id_ = from._impl_.worker_id_;
1986 _this->_impl_._has_bits_[0] |= cached_has_bits;
1987 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1988 from._internal_metadata_);
1993 if (&from ==
this)
return;
1999void WorkerInfo::InternalSwap(
WorkerInfo* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
2001 auto* arena = GetArena();
2002 ABSL_DCHECK_EQ(arena, other->GetArena());
2003 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2004 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2005 ::_pbi::ArenaStringPtr::InternalSwap(&
_impl_.bns_, &other->_impl_.bns_, arena);
2006 swap(
_impl_.worker_id_, other->_impl_.worker_id_);
2010 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
2017 decltype(::std::declval<AssignmentProto>()._impl_._has_bits_);
2018 static constexpr ::int32_t kHasBitsOffset =
2023#if defined(PROTOBUF_CUSTOM_VTABLE)
2026 : ::google::protobuf::Message(arena) {
2031PROTOBUF_NDEBUG_INLINE AssignmentProto::Impl_::Impl_(
2032 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
2033 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
2034 [[maybe_unused]] const ::operations_research::AssignmentProto& from_msg)
2035 : _has_bits_{from._has_bits_},
2037 int_var_assignment_{visibility, arena, from.int_var_assignment_},
2038 interval_var_assignment_{visibility, arena, from.interval_var_assignment_},
2039 objective_{visibility, arena, from.objective_},
2040 sequence_var_assignment_{visibility, arena, from.sequence_var_assignment_} {}
2043 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
2045#if defined(PROTOBUF_CUSTOM_VTABLE)
2048 : ::google::protobuf::Message(arena) {
2052 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
2053 from._internal_metadata_);
2054 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
2055 ::uint32_t cached_has_bits =
_impl_._has_bits_[0];
2056 _impl_.worker_info_ = (CheckHasBit(cached_has_bits, 0x00000010U))
2057 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.worker_info_)
2059 _impl_.is_valid_ = from._impl_.is_valid_;
2063PROTOBUF_NDEBUG_INLINE AssignmentProto::Impl_::Impl_(
2064 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
2065 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
2067 int_var_assignment_{visibility, arena},
2068 interval_var_assignment_{visibility, arena},
2069 objective_{visibility, arena},
2070 sequence_var_assignment_{visibility, arena} {}
2072inline void AssignmentProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
2073 new (&
_impl_) Impl_(internal_visibility(), arena);
2074 ::memset(
reinterpret_cast<char*
>(&
_impl_) +
2075 offsetof(Impl_, worker_info_),
2077 offsetof(Impl_, is_valid_) -
2078 offsetof(Impl_, worker_info_) +
2079 sizeof(Impl_::is_valid_));
2085inline void AssignmentProto::SharedDtor(
MessageLite& self) {
2087 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2088 this_.CheckHasBitConsistency();
2090 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
2091 ABSL_DCHECK(this_.GetArena() ==
nullptr);
2092 delete this_.
_impl_.worker_info_;
2096inline void* PROTOBUF_NONNULL AssignmentProto::PlacementNew_(
2097 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
2098 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
2099 return ::new (mem) AssignmentProto(arena);
2101constexpr auto AssignmentProto::InternalNewImpl_() {
2102 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
2103 PROTOBUF_FIELD_OFFSET(AssignmentProto,
_impl_.int_var_assignment_) +
2105 InternalGetArenaOffset(
2106 ::google::protobuf::Message::internal_visibility()),
2107 PROTOBUF_FIELD_OFFSET(AssignmentProto,
_impl_.interval_var_assignment_) +
2108 decltype(AssignmentProto::
_impl_.interval_var_assignment_)::
2109 InternalGetArenaOffset(
2110 ::google::protobuf::Message::internal_visibility()),
2111 PROTOBUF_FIELD_OFFSET(AssignmentProto,
_impl_.sequence_var_assignment_) +
2112 decltype(AssignmentProto::
_impl_.sequence_var_assignment_)::
2113 InternalGetArenaOffset(
2114 ::google::protobuf::Message::internal_visibility()),
2115 PROTOBUF_FIELD_OFFSET(AssignmentProto,
_impl_.objective_) +
2116 decltype(AssignmentProto::
_impl_.objective_)::
2117 InternalGetArenaOffset(
2118 ::google::protobuf::Message::internal_visibility()),
2120 if (arena_bits.has_value()) {
2121 return ::google::protobuf::internal::MessageCreator::ZeroInit(
2122 sizeof(AssignmentProto), alignof(AssignmentProto), *arena_bits);
2124 return ::google::protobuf::internal::MessageCreator(&AssignmentProto::PlacementNew_,
2125 sizeof(AssignmentProto),
2126 alignof(AssignmentProto));
2130 return ::google::protobuf::internal::ClassDataFull{
2131 ::google::protobuf::internal::ClassData{
2136 &AssignmentProto::MergeImpl,
2137 ::google::protobuf::Message::GetNewImpl<AssignmentProto>(),
2138#if defined(PROTOBUF_CUSTOM_VTABLE)
2139 &AssignmentProto::SharedDtor,
2146 &AssignmentProto::kDescriptorMethods,
2152PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
2156PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
2157AssignmentProto::GetClassData()
const {
2162PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
2163const ::_pbi::TcParseTable<3, 6, 5, 0, 2>
2164AssignmentProto::_table_ = {
2166 PROTOBUF_FIELD_OFFSET(AssignmentProto,
_impl_._has_bits_),
2169 offsetof(
decltype(_table_), field_lookup_table),
2171 offsetof(
decltype(_table_), field_entries),
2174 offsetof(
decltype(_table_), aux_entries),
2177 ::_pbi::TcParser::GenericFallback,
2178 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
2179 ::_pbi::TcParser::GetTable<::operations_research::AssignmentProto>(),
2182 {::_pbi::TcParser::MiniParse, {}},
2184 {::_pbi::TcParser::FastMtR1,
2186 PROTOBUF_FIELD_OFFSET(AssignmentProto,
_impl_.int_var_assignment_)}},
2188 {::_pbi::TcParser::FastMtR1,
2190 PROTOBUF_FIELD_OFFSET(AssignmentProto,
_impl_.interval_var_assignment_)}},
2192 {::_pbi::TcParser::FastMtR1,
2194 PROTOBUF_FIELD_OFFSET(AssignmentProto,
_impl_.objective_)}},
2196 {::_pbi::TcParser::FastMtS1,
2198 PROTOBUF_FIELD_OFFSET(AssignmentProto,
_impl_.worker_info_)}},
2200 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(AssignmentProto,
_impl_.is_valid_), 5>(),
2202 PROTOBUF_FIELD_OFFSET(AssignmentProto,
_impl_.is_valid_)}},
2204 {::_pbi::TcParser::FastMtR1,
2206 PROTOBUF_FIELD_OFFSET(AssignmentProto,
_impl_.sequence_var_assignment_)}},
2207 {::_pbi::TcParser::MiniParse, {}},
2212 {PROTOBUF_FIELD_OFFSET(AssignmentProto,
_impl_.int_var_assignment_),
_Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
2214 {PROTOBUF_FIELD_OFFSET(AssignmentProto,
_impl_.interval_var_assignment_),
_Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
2216 {PROTOBUF_FIELD_OFFSET(AssignmentProto,
_impl_.objective_),
_Internal::kHasBitsOffset + 2, 2, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
2218 {PROTOBUF_FIELD_OFFSET(AssignmentProto,
_impl_.worker_info_),
_Internal::kHasBitsOffset + 4, 3, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
2222 {PROTOBUF_FIELD_OFFSET(AssignmentProto,
_impl_.sequence_var_assignment_),
_Internal::kHasBitsOffset + 3, 4, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
2225 {::_pbi::TcParser::GetTable<::operations_research::IntVarAssignment>()},
2226 {::_pbi::TcParser::GetTable<::operations_research::IntervalVarAssignment>()},
2227 {::_pbi::TcParser::GetTable<::operations_research::IntVarAssignment>()},
2228 {::_pbi::TcParser::GetTable<::operations_research::WorkerInfo>()},
2229 {::_pbi::TcParser::GetTable<::operations_research::SequenceVarAssignment>()},
2236 ::google::protobuf::internal::TSanWrite(&
_impl_);
2237 ::uint32_t cached_has_bits = 0;
2239 (void) cached_has_bits;
2241 cached_has_bits =
_impl_._has_bits_[0];
2242 if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
2243 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
2244 _impl_.int_var_assignment_.Clear();
2246 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
2247 _impl_.interval_var_assignment_.Clear();
2249 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
2250 _impl_.objective_.Clear();
2252 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
2253 _impl_.sequence_var_assignment_.Clear();
2255 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
2256 ABSL_DCHECK(
_impl_.worker_info_ !=
nullptr);
2257 _impl_.worker_info_->Clear();
2260 _impl_.is_valid_ =
false;
2261 _impl_._has_bits_.Clear();
2262 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
2265#if defined(PROTOBUF_CUSTOM_VTABLE)
2267 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
2268 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
2269 const AssignmentProto& this_ =
static_cast<const AssignmentProto&
>(base);
2272 ::uint8_t* PROTOBUF_NONNULL target,
2273 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
2274 const AssignmentProto& this_ = *
this;
2276 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2277 this_.CheckHasBitConsistency();
2280 ::uint32_t cached_has_bits = 0;
2281 (void)cached_has_bits;
2283 cached_has_bits = this_.
_impl_._has_bits_[0];
2285 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
2286 for (
unsigned i = 0, n =
static_cast<unsigned>(
2287 this_._internal_int_var_assignment_size());
2289 const auto& repfield = this_._internal_int_var_assignment().Get(i);
2291 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2292 1, repfield, repfield.GetCachedSize(),
2298 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
2299 for (
unsigned i = 0, n =
static_cast<unsigned>(
2300 this_._internal_interval_var_assignment_size());
2302 const auto& repfield = this_._internal_interval_var_assignment().Get(i);
2304 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2305 2, repfield, repfield.GetCachedSize(),
2311 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
2312 for (
unsigned i = 0, n =
static_cast<unsigned>(
2313 this_._internal_objective_size());
2315 const auto& repfield = this_._internal_objective().Get(i);
2317 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2318 3, repfield, repfield.GetCachedSize(),
2324 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
2325 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2326 4, *this_._impl_.worker_info_, this_._impl_.worker_info_->GetCachedSize(), target,
2331 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
2332 if (this_._internal_is_valid() != 0) {
2333 target = stream->EnsureSpace(target);
2334 target = ::_pbi::WireFormatLite::WriteBoolToArray(
2335 5, this_._internal_is_valid(), target);
2340 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
2341 for (
unsigned i = 0, n =
static_cast<unsigned>(
2342 this_._internal_sequence_var_assignment_size());
2344 const auto& repfield = this_._internal_sequence_var_assignment().Get(i);
2346 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2347 6, repfield, repfield.GetCachedSize(),
2352 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
2354 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2355 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
2361#if defined(PROTOBUF_CUSTOM_VTABLE)
2363 const AssignmentProto& this_ =
static_cast<const AssignmentProto&
>(base);
2366 const AssignmentProto& this_ = *
this;
2369 ::size_t total_size = 0;
2371 ::uint32_t cached_has_bits = 0;
2373 (void)cached_has_bits;
2375 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
2376 cached_has_bits = this_._impl_._has_bits_[0];
2377 if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) {
2379 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
2380 total_size += 1UL * this_._internal_int_var_assignment_size();
2381 for (
const auto& msg : this_._internal_int_var_assignment()) {
2382 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
2386 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
2387 total_size += 1UL * this_._internal_interval_var_assignment_size();
2388 for (
const auto& msg : this_._internal_interval_var_assignment()) {
2389 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
2393 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
2394 total_size += 1UL * this_._internal_objective_size();
2395 for (
const auto& msg : this_._internal_objective()) {
2396 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
2400 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
2401 total_size += 1UL * this_._internal_sequence_var_assignment_size();
2402 for (
const auto& msg : this_._internal_sequence_var_assignment()) {
2403 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
2407 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
2409 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.worker_info_);
2412 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
2413 if (this_._internal_is_valid() != 0) {
2418 return this_.MaybeComputeUnknownFieldsSize(total_size,
2419 &this_._impl_._cached_size_);
2422void AssignmentProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
2423 const ::google::protobuf::MessageLite& from_msg) {
2425 static_cast<AssignmentProto*
>(&to_msg);
2426 auto& from =
static_cast<const AssignmentProto&
>(from_msg);
2427 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2428 from.CheckHasBitConsistency();
2432 ABSL_DCHECK_NE(&from, _this);
2433 ::uint32_t cached_has_bits = 0;
2434 (void)cached_has_bits;
2436 cached_has_bits = from._impl_._has_bits_[0];
2437 if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) {
2438 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
2439 _this->_internal_mutable_int_var_assignment()->InternalMergeFromWithArena(
2440 ::google::protobuf::MessageLite::internal_visibility(), arena,
2441 from._internal_int_var_assignment());
2443 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
2444 _this->_internal_mutable_interval_var_assignment()->InternalMergeFromWithArena(
2445 ::google::protobuf::MessageLite::internal_visibility(), arena,
2446 from._internal_interval_var_assignment());
2448 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
2449 _this->_internal_mutable_objective()->InternalMergeFromWithArena(
2450 ::google::protobuf::MessageLite::internal_visibility(), arena,
2451 from._internal_objective());
2453 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
2454 _this->_internal_mutable_sequence_var_assignment()->InternalMergeFromWithArena(
2455 ::google::protobuf::MessageLite::internal_visibility(), arena,
2456 from._internal_sequence_var_assignment());
2458 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
2459 ABSL_DCHECK(from._impl_.worker_info_ !=
nullptr);
2460 if (_this->_impl_.worker_info_ ==
nullptr) {
2461 _this->_impl_.worker_info_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.worker_info_);
2463 _this->_impl_.worker_info_->MergeFrom(*from._impl_.worker_info_);
2466 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
2467 if (from._internal_is_valid() != 0) {
2468 _this->_impl_.is_valid_ = from._impl_.is_valid_;
2472 _this->_impl_._has_bits_[0] |= cached_has_bits;
2473 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
2474 from._internal_metadata_);
2479 if (&from ==
this)
return;
2485void AssignmentProto::InternalSwap(
AssignmentProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
2487 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2488 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2489 _impl_.int_var_assignment_.InternalSwap(&other->_impl_.int_var_assignment_);
2490 _impl_.interval_var_assignment_.InternalSwap(&other->_impl_.interval_var_assignment_);
2491 _impl_.objective_.InternalSwap(&other->_impl_.objective_);
2492 _impl_.sequence_var_assignment_.InternalSwap(&other->_impl_.sequence_var_assignment_);
2493 ::google::protobuf::internal::memswap<
2497 reinterpret_cast<char*
>(&
_impl_.worker_info_),
2498 reinterpret_cast<char*
>(&other->_impl_.worker_info_));
2502 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
2511PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
2514 ::std::false_type{});
2515#include "google/protobuf/port_undef.inc"
static constexprconst ::_pb::EnumDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_enum_descriptors_ortools_2fconstraint_5fsolver_2fassignment_2eproto
static constexprconst ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_service_descriptors_ortools_2fconstraint_5fsolver_2fassignment_2eproto
::absl::once_flag descriptor_table_ortools_2fconstraint_5fsolver_2fassignment_2eproto_once
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fconstraint_5fsolver_2fassignment_2eproto
const ::uint32_t TableStruct_ortools_2fconstraint_5fsolver_2fassignment_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold)
static PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::std::false_type _static_init2_
static const ::_pb::Message *PROTOBUF_NONNULL const file_default_instances[]
::size_t ByteSizeLong() const final
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
friend class ::google::protobuf::MessageLite
static constexpr auto InternalGenerateClassData_()
::google::protobuf::Metadata GetMetadata() const
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
void CopyFrom(const AssignmentProto &from)
void MergeFrom(const AssignmentProto &from)
~AssignmentProto() PROTOBUF_FINAL
decltype(::std::declval< IntVarAssignment >()._impl_._has_bits_) HasBits
static constexpr ::int32_t kHasBitsOffset
friend class ::google::protobuf::MessageLite
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
::size_t ByteSizeLong() const final
static constexpr auto InternalGenerateClassData_()
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
friend void swap(IntVarAssignment &a, IntVarAssignment &b)
~IntVarAssignment() PROTOBUF_FINAL
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
void MergeFrom(const IntVarAssignment &from)
::google::protobuf::Metadata GetMetadata() const
void CopyFrom(const IntVarAssignment &from)
static constexpr ::int32_t kHasBitsOffset
decltype(::std::declval< IntervalVarAssignment >()._impl_._has_bits_) HasBits
friend class ::google::protobuf::MessageLite
::google::protobuf::Metadata GetMetadata() const
void MergeFrom(const IntervalVarAssignment &from)
void CopyFrom(const IntervalVarAssignment &from)
static constexpr auto InternalGenerateClassData_()
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
~IntervalVarAssignment() PROTOBUF_FINAL
friend void swap(IntervalVarAssignment &a, IntervalVarAssignment &b)
::size_t ByteSizeLong() const final
friend class ::google::protobuf::Arena
static constexpr ::int32_t kHasBitsOffset
static constexpr auto InternalGenerateClassData_()
void MergeFrom(const SequenceVarAssignment &from)
::google::protobuf::Metadata GetMetadata() const
void CopyFrom(const SequenceVarAssignment &from)
::size_t ByteSizeLong() const final
~SequenceVarAssignment() PROTOBUF_FINAL
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
static constexpr ::int32_t kHasBitsOffset
friend class ::google::protobuf::MessageLite
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
static constexpr auto InternalGenerateClassData_()
::size_t ByteSizeLong() const final
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
~WorkerInfo() PROTOBUF_FINAL
void CopyFrom(const WorkerInfo &from)
::google::protobuf::Metadata GetMetadata() const
void MergeFrom(const WorkerInfo &from)
static constexpr ::_pbi::MigrationSchema *PROTOBUF_NULLABLE schemas
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SequenceVarAssignmentDefaultTypeInternal _SequenceVarAssignment_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull WorkerInfo_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IntVarAssignmentDefaultTypeInternal _IntVarAssignment_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull IntervalVarAssignment_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SequenceVarAssignment_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IntervalVarAssignmentDefaultTypeInternal _IntervalVarAssignment_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull AssignmentProto_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WorkerInfoDefaultTypeInternal _WorkerInfo_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AssignmentProtoDefaultTypeInternal _AssignmentProto_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull IntVarAssignment_class_data_
AssignmentProto _instance
~AssignmentProtoDefaultTypeInternal()
PROTOBUF_CONSTEXPR AssignmentProtoDefaultTypeInternal()
~IntVarAssignmentDefaultTypeInternal()
PROTOBUF_CONSTEXPR IntVarAssignmentDefaultTypeInternal()
IntVarAssignment _instance
~IntervalVarAssignmentDefaultTypeInternal()
IntervalVarAssignment _instance
PROTOBUF_CONSTEXPR IntervalVarAssignmentDefaultTypeInternal()
SequenceVarAssignment _instance
PROTOBUF_CONSTEXPR SequenceVarAssignmentDefaultTypeInternal()
~SequenceVarAssignmentDefaultTypeInternal()
PROTOBUF_CONSTEXPR WorkerInfoDefaultTypeInternal()
~WorkerInfoDefaultTypeInternal()