Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
assignment.pb.cc
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// NO CHECKED-IN PROTOBUF GENCODE
3// source: ortools/constraint_solver/assignment.proto
4// Protobuf C++ Version: 6.33.1
5
7
8#include <algorithm>
9#include <type_traits>
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"
19// @@protoc_insertion_point(includes)
20
21// Must be included last.
22#include "google/protobuf/port_def.inc"
23PROTOBUF_PRAGMA_INIT_SEG
24namespace _pb = ::google::protobuf;
26namespace _fl = ::google::protobuf::internal::field_layout;
27namespace operations_research {
28
29inline constexpr WorkerInfo::Impl_::Impl_(
30 ::_pbi::ConstantInitialized) noexcept
31 : _cached_size_{0},
32 bns_(
33 &::google::protobuf::internal::fixed_address_empty_string,
34 ::_pbi::ConstantInitialized()),
35 worker_id_{0} {}
36
37template <typename>
38PROTOBUF_CONSTEXPR WorkerInfo::WorkerInfo(::_pbi::ConstantInitialized)
39#if defined(PROTOBUF_CUSTOM_VTABLE)
40 : ::google::protobuf::Message(WorkerInfo_class_data_.base()),
41#else // PROTOBUF_CUSTOM_VTABLE
42 : ::google::protobuf::Message(),
43#endif // PROTOBUF_CUSTOM_VTABLE
44 _impl_(::_pbi::ConstantInitialized()) {
45}
47 PROTOBUF_CONSTEXPR WorkerInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
49 union {
51 };
52};
53
54PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
56
57inline constexpr SequenceVarAssignment::Impl_::Impl_(
58 ::_pbi::ConstantInitialized) noexcept
59 : _cached_size_{0},
60 forward_sequence_{},
61 _forward_sequence_cached_byte_size_{0},
62 backward_sequence_{},
63 _backward_sequence_cached_byte_size_{0},
64 unperformed_{},
65 _unperformed_cached_byte_size_{0},
66 var_id_(
67 &::google::protobuf::internal::fixed_address_empty_string,
68 ::_pbi::ConstantInitialized()),
69 active_{false} {}
70
71template <typename>
72PROTOBUF_CONSTEXPR SequenceVarAssignment::SequenceVarAssignment(::_pbi::ConstantInitialized)
73#if defined(PROTOBUF_CUSTOM_VTABLE)
74 : ::google::protobuf::Message(SequenceVarAssignment_class_data_.base()),
75#else // PROTOBUF_CUSTOM_VTABLE
76 : ::google::protobuf::Message(),
77#endif // PROTOBUF_CUSTOM_VTABLE
78 _impl_(::_pbi::ConstantInitialized()) {
79}
87
88PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
90
91inline constexpr IntervalVarAssignment::Impl_::Impl_(
92 ::_pbi::ConstantInitialized) noexcept
93 : _cached_size_{0},
94 var_id_(
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}},
105 active_{false} {}
106
107template <typename>
108PROTOBUF_CONSTEXPR IntervalVarAssignment::IntervalVarAssignment(::_pbi::ConstantInitialized)
109#if defined(PROTOBUF_CUSTOM_VTABLE)
110 : ::google::protobuf::Message(IntervalVarAssignment_class_data_.base()),
111#else // PROTOBUF_CUSTOM_VTABLE
112 : ::google::protobuf::Message(),
113#endif // PROTOBUF_CUSTOM_VTABLE
114 _impl_(::_pbi::ConstantInitialized()) {
115}
123
124PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
126
127inline constexpr IntVarAssignment::Impl_::Impl_(
128 ::_pbi::ConstantInitialized) noexcept
129 : _cached_size_{0},
130 var_id_(
131 &::google::protobuf::internal::fixed_address_empty_string,
132 ::_pbi::ConstantInitialized()),
133 min_{::int64_t{0}},
134 max_{::int64_t{0}},
135 active_{false} {}
136
137template <typename>
138PROTOBUF_CONSTEXPR IntVarAssignment::IntVarAssignment(::_pbi::ConstantInitialized)
139#if defined(PROTOBUF_CUSTOM_VTABLE)
140 : ::google::protobuf::Message(IntVarAssignment_class_data_.base()),
141#else // PROTOBUF_CUSTOM_VTABLE
142 : ::google::protobuf::Message(),
143#endif // PROTOBUF_CUSTOM_VTABLE
144 _impl_(::_pbi::ConstantInitialized()) {
145}
153
154PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
156
157inline constexpr AssignmentProto::Impl_::Impl_(
158 ::_pbi::ConstantInitialized) noexcept
159 : _cached_size_{0},
160 int_var_assignment_{},
161 interval_var_assignment_{},
162 objective_{},
163 sequence_var_assignment_{},
164 worker_info_{nullptr},
165 is_valid_{false} {}
166
167template <typename>
168PROTOBUF_CONSTEXPR AssignmentProto::AssignmentProto(::_pbi::ConstantInitialized)
169#if defined(PROTOBUF_CUSTOM_VTABLE)
170 : ::google::protobuf::Message(AssignmentProto_class_data_.base()),
171#else // PROTOBUF_CUSTOM_VTABLE
172 : ::google::protobuf::Message(),
173#endif // PROTOBUF_CUSTOM_VTABLE
174 _impl_(::_pbi::ConstantInitialized()) {
175}
183
184PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
186} // namespace operations_research
187static constexpr const ::_pb::EnumDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
189static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
191const ::uint32_t
193 protodesc_cold) = {
194 0x081, // bitmap
195 PROTOBUF_FIELD_OFFSET(::operations_research::IntVarAssignment, _impl_._has_bits_),
196 7, // hasbit index offset
197 PROTOBUF_FIELD_OFFSET(::operations_research::IntVarAssignment, _impl_.var_id_),
198 PROTOBUF_FIELD_OFFSET(::operations_research::IntVarAssignment, _impl_.min_),
199 PROTOBUF_FIELD_OFFSET(::operations_research::IntVarAssignment, _impl_.max_),
200 PROTOBUF_FIELD_OFFSET(::operations_research::IntVarAssignment, _impl_.active_),
201 0,
202 1,
203 2,
204 3,
205 0x081, // bitmap
206 PROTOBUF_FIELD_OFFSET(::operations_research::IntervalVarAssignment, _impl_._has_bits_),
207 13, // hasbit index offset
208 PROTOBUF_FIELD_OFFSET(::operations_research::IntervalVarAssignment, _impl_.var_id_),
209 PROTOBUF_FIELD_OFFSET(::operations_research::IntervalVarAssignment, _impl_.start_min_),
210 PROTOBUF_FIELD_OFFSET(::operations_research::IntervalVarAssignment, _impl_.start_max_),
211 PROTOBUF_FIELD_OFFSET(::operations_research::IntervalVarAssignment, _impl_.duration_min_),
212 PROTOBUF_FIELD_OFFSET(::operations_research::IntervalVarAssignment, _impl_.duration_max_),
213 PROTOBUF_FIELD_OFFSET(::operations_research::IntervalVarAssignment, _impl_.end_min_),
214 PROTOBUF_FIELD_OFFSET(::operations_research::IntervalVarAssignment, _impl_.end_max_),
215 PROTOBUF_FIELD_OFFSET(::operations_research::IntervalVarAssignment, _impl_.performed_min_),
216 PROTOBUF_FIELD_OFFSET(::operations_research::IntervalVarAssignment, _impl_.performed_max_),
217 PROTOBUF_FIELD_OFFSET(::operations_research::IntervalVarAssignment, _impl_.active_),
218 0,
219 1,
220 2,
221 3,
222 4,
223 5,
224 6,
225 7,
226 8,
227 9,
228 0x081, // bitmap
229 PROTOBUF_FIELD_OFFSET(::operations_research::SequenceVarAssignment, _impl_._has_bits_),
230 8, // hasbit index offset
231 PROTOBUF_FIELD_OFFSET(::operations_research::SequenceVarAssignment, _impl_.var_id_),
232 PROTOBUF_FIELD_OFFSET(::operations_research::SequenceVarAssignment, _impl_.forward_sequence_),
233 PROTOBUF_FIELD_OFFSET(::operations_research::SequenceVarAssignment, _impl_.backward_sequence_),
234 PROTOBUF_FIELD_OFFSET(::operations_research::SequenceVarAssignment, _impl_.unperformed_),
235 PROTOBUF_FIELD_OFFSET(::operations_research::SequenceVarAssignment, _impl_.active_),
236 3,
237 0,
238 1,
239 2,
240 4,
241 0x081, // bitmap
242 PROTOBUF_FIELD_OFFSET(::operations_research::WorkerInfo, _impl_._has_bits_),
243 5, // hasbit index offset
244 PROTOBUF_FIELD_OFFSET(::operations_research::WorkerInfo, _impl_.worker_id_),
245 PROTOBUF_FIELD_OFFSET(::operations_research::WorkerInfo, _impl_.bns_),
246 1,
247 0,
248 0x081, // bitmap
249 PROTOBUF_FIELD_OFFSET(::operations_research::AssignmentProto, _impl_._has_bits_),
250 9, // hasbit index offset
251 PROTOBUF_FIELD_OFFSET(::operations_research::AssignmentProto, _impl_.int_var_assignment_),
252 PROTOBUF_FIELD_OFFSET(::operations_research::AssignmentProto, _impl_.interval_var_assignment_),
253 PROTOBUF_FIELD_OFFSET(::operations_research::AssignmentProto, _impl_.sequence_var_assignment_),
254 PROTOBUF_FIELD_OFFSET(::operations_research::AssignmentProto, _impl_.objective_),
255 PROTOBUF_FIELD_OFFSET(::operations_research::AssignmentProto, _impl_.worker_info_),
256 PROTOBUF_FIELD_OFFSET(::operations_research::AssignmentProto, _impl_.is_valid_),
257 0,
258 1,
259 3,
260 2,
261 4,
262 5,
263};
264
265static const ::_pbi::MigrationSchema
266 schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
272};
280const char descriptor_table_protodef_ortools_2fconstraint_5fsolver_2fassignment_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
281 protodesc_cold) = {
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"
305};
307PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_ortools_2fconstraint_5fsolver_2fassignment_2eproto = {
308 false,
309 false,
310 920,
311 descriptor_table_protodef_ortools_2fconstraint_5fsolver_2fassignment_2eproto,
312 "ortools/constraint_solver/assignment.proto",
314 nullptr,
315 0,
316 5,
317 schemas,
322};
323namespace operations_research {
324// ===================================================================
325
327 public:
328 using HasBits =
329 decltype(::std::declval<IntVarAssignment>()._impl_._has_bits_);
330 static constexpr ::int32_t kHasBitsOffset =
331 8 * PROTOBUF_FIELD_OFFSET(IntVarAssignment, _impl_._has_bits_);
332};
333
334IntVarAssignment::IntVarAssignment(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
335#if defined(PROTOBUF_CUSTOM_VTABLE)
336 : ::google::protobuf::Message(arena, IntVarAssignment_class_data_.base()) {
337#else // PROTOBUF_CUSTOM_VTABLE
338 : ::google::protobuf::Message(arena) {
339#endif // PROTOBUF_CUSTOM_VTABLE
340 SharedCtor(arena);
341 // @@protoc_insertion_point(arena_constructor:operations_research.IntVarAssignment)
342}
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_},
348 _cached_size_{0},
349 var_id_(arena, from.var_id_) {}
350
352 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
353 const IntVarAssignment& from)
354#if defined(PROTOBUF_CUSTOM_VTABLE)
355 : ::google::protobuf::Message(arena, IntVarAssignment_class_data_.base()) {
356#else // PROTOBUF_CUSTOM_VTABLE
357 : ::google::protobuf::Message(arena) {
358#endif // PROTOBUF_CUSTOM_VTABLE
359 IntVarAssignment* const _this = this;
360 (void)_this;
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_));
371
372 // @@protoc_insertion_point(copy_constructor:operations_research.IntVarAssignment)
373}
374PROTOBUF_NDEBUG_INLINE IntVarAssignment::Impl_::Impl_(
375 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
376 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
377 : _cached_size_{0},
378 var_id_(arena) {}
379
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_),
384 0,
385 offsetof(Impl_, active_) -
386 offsetof(Impl_, min_) +
387 sizeof(Impl_::active_));
388}
390 // @@protoc_insertion_point(destructor:operations_research.IntVarAssignment)
391 SharedDtor(*this);
392}
393inline void IntVarAssignment::SharedDtor(MessageLite& self) {
394 IntVarAssignment& this_ = static_cast<IntVarAssignment&>(self);
395 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
396 this_.CheckHasBitConsistency();
397 }
398 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
399 ABSL_DCHECK(this_.GetArena() == nullptr);
400 this_._impl_.var_id_.Destroy();
401 this_._impl_.~Impl_();
402}
403
404inline void* PROTOBUF_NONNULL IntVarAssignment::PlacementNew_(
405 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
406 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
407 return ::new (mem) IntVarAssignment(arena);
408}
409constexpr auto IntVarAssignment::InternalNewImpl_() {
410 return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(IntVarAssignment),
411 alignof(IntVarAssignment));
412}
414 return ::google::protobuf::internal::ClassDataFull{
415 ::google::protobuf::internal::ClassData{
417 &_table_.header,
418 nullptr, // OnDemandRegisterArenaDtor
419 nullptr, // IsInitialized
420 &IntVarAssignment::MergeImpl,
421 ::google::protobuf::Message::GetNewImpl<IntVarAssignment>(),
422#if defined(PROTOBUF_CUSTOM_VTABLE)
423 &IntVarAssignment::SharedDtor,
424 ::google::protobuf::Message::GetClearImpl<IntVarAssignment>(), &IntVarAssignment::ByteSizeLong,
426#endif // PROTOBUF_CUSTOM_VTABLE
427 PROTOBUF_FIELD_OFFSET(IntVarAssignment, _impl_._cached_size_),
428 false,
429 },
430 &IntVarAssignment::kDescriptorMethods,
432 nullptr, // tracker
433 };
434}
435
436PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
437 ::google::protobuf::internal::ClassDataFull IntVarAssignment_class_data_ =
439
440PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
441IntVarAssignment::GetClassData() const {
442 ::google::protobuf::internal::PrefetchToLocalCache(&IntVarAssignment_class_data_);
443 ::google::protobuf::internal::PrefetchToLocalCache(IntVarAssignment_class_data_.tc_table);
444 return IntVarAssignment_class_data_.base();
445}
446PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
447const ::_pbi::TcParseTable<2, 4, 0, 51, 2>
448IntVarAssignment::_table_ = {
449 {
450 PROTOBUF_FIELD_OFFSET(IntVarAssignment, _impl_._has_bits_),
451 0, // no _extensions_
452 4, 24, // max_field_number, fast_idx_mask
453 offsetof(decltype(_table_), field_lookup_table),
454 4294967280, // skipmap
455 offsetof(decltype(_table_), field_entries),
456 4, // num_field_entries
457 0, // num_aux_entries
458 offsetof(decltype(_table_), field_names), // no aux_entries
460 nullptr, // post_loop_handler
461 ::_pbi::TcParser::GenericFallback, // fallback
462 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
463 ::_pbi::TcParser::GetTable<::operations_research::IntVarAssignment>(), // to_prefetch
464 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
465 }, {{
466 // bool active = 4;
467 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(IntVarAssignment, _impl_.active_), 3>(),
468 {32, 3, 0,
469 PROTOBUF_FIELD_OFFSET(IntVarAssignment, _impl_.active_)}},
470 // string var_id = 1;
471 {::_pbi::TcParser::FastUS1,
472 {10, 0, 0,
473 PROTOBUF_FIELD_OFFSET(IntVarAssignment, _impl_.var_id_)}},
474 // int64 min = 2;
475 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(IntVarAssignment, _impl_.min_), 1>(),
476 {16, 1, 0,
477 PROTOBUF_FIELD_OFFSET(IntVarAssignment, _impl_.min_)}},
478 // int64 max = 3;
479 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(IntVarAssignment, _impl_.max_), 2>(),
480 {24, 2, 0,
481 PROTOBUF_FIELD_OFFSET(IntVarAssignment, _impl_.max_)}},
482 }}, {{
483 65535, 65535
484 }}, {{
485 // string var_id = 1;
486 {PROTOBUF_FIELD_OFFSET(IntVarAssignment, _impl_.var_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
487 // int64 min = 2;
488 {PROTOBUF_FIELD_OFFSET(IntVarAssignment, _impl_.min_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
489 // int64 max = 3;
490 {PROTOBUF_FIELD_OFFSET(IntVarAssignment, _impl_.max_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
491 // bool active = 4;
492 {PROTOBUF_FIELD_OFFSET(IntVarAssignment, _impl_.active_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
493 }},
494 // no aux_entries
495 {{
496 "\44\6\0\0\0\0\0\0"
497 "operations_research.IntVarAssignment"
498 "var_id"
499 }},
500};
501PROTOBUF_NOINLINE void IntVarAssignment::Clear() {
502// @@protoc_insertion_point(message_clear_start:operations_research.IntVarAssignment)
503 ::google::protobuf::internal::TSanWrite(&_impl_);
504 ::uint32_t cached_has_bits = 0;
505 // Prevent compiler warnings about cached_has_bits being unused
506 (void) cached_has_bits;
507
508 cached_has_bits = _impl_._has_bits_[0];
509 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
510 _impl_.var_id_.ClearNonDefaultToEmpty();
511 }
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_));
516 }
517 _impl_._has_bits_.Clear();
518 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
519}
520
521#if defined(PROTOBUF_CUSTOM_VTABLE)
522::uint8_t* PROTOBUF_NONNULL IntVarAssignment::_InternalSerialize(
523 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
524 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
525 const IntVarAssignment& this_ = static_cast<const IntVarAssignment&>(base);
526#else // PROTOBUF_CUSTOM_VTABLE
527::uint8_t* PROTOBUF_NONNULL IntVarAssignment::_InternalSerialize(
528 ::uint8_t* PROTOBUF_NONNULL target,
529 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
530 const IntVarAssignment& this_ = *this;
531#endif // PROTOBUF_CUSTOM_VTABLE
532 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
533 this_.CheckHasBitConsistency();
534 }
535 // @@protoc_insertion_point(serialize_to_array_start:operations_research.IntVarAssignment)
536 ::uint32_t cached_has_bits = 0;
537 (void)cached_has_bits;
538
539 cached_has_bits = this_._impl_._has_bits_[0];
540 // string var_id = 1;
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);
547 }
548 }
549
550 // int64 min = 2;
551 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
552 if (this_._internal_min() != 0) {
553 target =
554 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
555 stream, this_._internal_min(), target);
556 }
557 }
558
559 // int64 max = 3;
560 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
561 if (this_._internal_max() != 0) {
562 target =
563 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>(
564 stream, this_._internal_max(), target);
565 }
566 }
567
568 // bool active = 4;
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);
574 }
575 }
576
577 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
578 target =
579 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
580 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
581 }
582 // @@protoc_insertion_point(serialize_to_array_end:operations_research.IntVarAssignment)
583 return target;
584}
585
586#if defined(PROTOBUF_CUSTOM_VTABLE)
588 const IntVarAssignment& this_ = static_cast<const IntVarAssignment&>(base);
589#else // PROTOBUF_CUSTOM_VTABLE
590::size_t IntVarAssignment::ByteSizeLong() const {
591 const IntVarAssignment& this_ = *this;
592#endif // PROTOBUF_CUSTOM_VTABLE
593 // @@protoc_insertion_point(message_byte_size_start:operations_research.IntVarAssignment)
594 ::size_t total_size = 0;
595
596 ::uint32_t cached_has_bits = 0;
597 // Prevent compiler warnings about cached_has_bits being unused
598 (void)cached_has_bits;
599
600 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
601 cached_has_bits = this_._impl_._has_bits_[0];
602 if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
603 // string var_id = 1;
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());
608 }
609 }
610 // int64 min = 2;
611 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
612 if (this_._internal_min() != 0) {
613 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
614 this_._internal_min());
615 }
616 }
617 // int64 max = 3;
618 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
619 if (this_._internal_max() != 0) {
620 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
621 this_._internal_max());
622 }
623 }
624 // bool active = 4;
625 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
626 if (this_._internal_active() != 0) {
627 total_size += 2;
628 }
629 }
630 }
631 return this_.MaybeComputeUnknownFieldsSize(total_size,
632 &this_._impl_._cached_size_);
633}
634
635void IntVarAssignment::MergeImpl(::google::protobuf::MessageLite& to_msg,
636 const ::google::protobuf::MessageLite& from_msg) {
637 auto* const _this =
638 static_cast<IntVarAssignment*>(&to_msg);
639 auto& from = static_cast<const IntVarAssignment&>(from_msg);
640 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
641 from.CheckHasBitConsistency();
642 }
643 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.IntVarAssignment)
644 ABSL_DCHECK_NE(&from, _this);
645 ::uint32_t cached_has_bits = 0;
646 (void)cached_has_bits;
647
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());
653 } else {
654 if (_this->_impl_.var_id_.IsDefault()) {
655 _this->_internal_set_var_id("");
656 }
657 }
658 }
659 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
660 if (from._internal_min() != 0) {
661 _this->_impl_.min_ = from._impl_.min_;
662 }
663 }
664 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
665 if (from._internal_max() != 0) {
666 _this->_impl_.max_ = from._impl_.max_;
667 }
668 }
669 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
670 if (from._internal_active() != 0) {
671 _this->_impl_.active_ = from._impl_.active_;
672 }
673 }
674 }
675 _this->_impl_._has_bits_[0] |= cached_has_bits;
676 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
677 from._internal_metadata_);
678}
679
681 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.IntVarAssignment)
682 if (&from == this) return;
683 Clear();
684 MergeFrom(from);
685}
686
687
688void IntVarAssignment::InternalSwap(IntVarAssignment* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
689 using ::std::swap;
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<
696 PROTOBUF_FIELD_OFFSET(IntVarAssignment, _impl_.active_)
697 + sizeof(IntVarAssignment::_impl_.active_)
698 - PROTOBUF_FIELD_OFFSET(IntVarAssignment, _impl_.min_)>(
699 reinterpret_cast<char*>(&_impl_.min_),
700 reinterpret_cast<char*>(&other->_impl_.min_));
701}
702
703::google::protobuf::Metadata IntVarAssignment::GetMetadata() const {
704 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
705}
706// ===================================================================
707
709 public:
710 using HasBits =
711 decltype(::std::declval<IntervalVarAssignment>()._impl_._has_bits_);
712 static constexpr ::int32_t kHasBitsOffset =
713 8 * PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_._has_bits_);
715
716IntervalVarAssignment::IntervalVarAssignment(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
717#if defined(PROTOBUF_CUSTOM_VTABLE)
718 : ::google::protobuf::Message(arena, IntervalVarAssignment_class_data_.base()) {
719#else // PROTOBUF_CUSTOM_VTABLE
720 : ::google::protobuf::Message(arena) {
721#endif // PROTOBUF_CUSTOM_VTABLE
722 SharedCtor(arena);
723 // @@protoc_insertion_point(arena_constructor:operations_research.IntervalVarAssignment)
724}
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_},
730 _cached_size_{0},
731 var_id_(arena, from.var_id_) {}
732
734 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
735 const IntervalVarAssignment& from)
736#if defined(PROTOBUF_CUSTOM_VTABLE)
737 : ::google::protobuf::Message(arena, IntervalVarAssignment_class_data_.base()) {
738#else // PROTOBUF_CUSTOM_VTABLE
739 : ::google::protobuf::Message(arena) {
740#endif // PROTOBUF_CUSTOM_VTABLE
741 IntervalVarAssignment* const _this = this;
742 (void)_this;
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_));
753
754 // @@protoc_insertion_point(copy_constructor:operations_research.IntervalVarAssignment)
755}
756PROTOBUF_NDEBUG_INLINE IntervalVarAssignment::Impl_::Impl_(
757 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
758 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
759 : _cached_size_{0},
760 var_id_(arena) {}
761
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_),
766 0,
767 offsetof(Impl_, active_) -
768 offsetof(Impl_, start_min_) +
769 sizeof(Impl_::active_));
770}
772 // @@protoc_insertion_point(destructor:operations_research.IntervalVarAssignment)
773 SharedDtor(*this);
774}
775inline void IntervalVarAssignment::SharedDtor(MessageLite& self) {
776 IntervalVarAssignment& this_ = static_cast<IntervalVarAssignment&>(self);
777 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
778 this_.CheckHasBitConsistency();
779 }
780 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
781 ABSL_DCHECK(this_.GetArena() == nullptr);
782 this_._impl_.var_id_.Destroy();
783 this_._impl_.~Impl_();
784}
785
786inline void* PROTOBUF_NONNULL IntervalVarAssignment::PlacementNew_(
787 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
788 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
789 return ::new (mem) IntervalVarAssignment(arena);
790}
791constexpr auto IntervalVarAssignment::InternalNewImpl_() {
792 return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(IntervalVarAssignment),
793 alignof(IntervalVarAssignment));
794}
796 return ::google::protobuf::internal::ClassDataFull{
797 ::google::protobuf::internal::ClassData{
799 &_table_.header,
800 nullptr, // OnDemandRegisterArenaDtor
801 nullptr, // IsInitialized
802 &IntervalVarAssignment::MergeImpl,
803 ::google::protobuf::Message::GetNewImpl<IntervalVarAssignment>(),
804#if defined(PROTOBUF_CUSTOM_VTABLE)
805 &IntervalVarAssignment::SharedDtor,
806 ::google::protobuf::Message::GetClearImpl<IntervalVarAssignment>(), &IntervalVarAssignment::ByteSizeLong,
808#endif // PROTOBUF_CUSTOM_VTABLE
809 PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_._cached_size_),
810 false,
811 },
812 &IntervalVarAssignment::kDescriptorMethods,
814 nullptr, // tracker
815 };
816}
817
818PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
819 ::google::protobuf::internal::ClassDataFull IntervalVarAssignment_class_data_ =
822PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
823IntervalVarAssignment::GetClassData() const {
824 ::google::protobuf::internal::PrefetchToLocalCache(&IntervalVarAssignment_class_data_);
825 ::google::protobuf::internal::PrefetchToLocalCache(IntervalVarAssignment_class_data_.tc_table);
827}
828PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
829const ::_pbi::TcParseTable<4, 10, 0, 64, 2>
830IntervalVarAssignment::_table_ = {
831 {
832 PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_._has_bits_),
833 0, // no _extensions_
834 10, 120, // max_field_number, fast_idx_mask
835 offsetof(decltype(_table_), field_lookup_table),
836 4294966272, // skipmap
837 offsetof(decltype(_table_), field_entries),
838 10, // num_field_entries
839 0, // num_aux_entries
840 offsetof(decltype(_table_), field_names), // no aux_entries
842 nullptr, // post_loop_handler
843 ::_pbi::TcParser::GenericFallback, // fallback
844 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
845 ::_pbi::TcParser::GetTable<::operations_research::IntervalVarAssignment>(), // to_prefetch
846 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
847 }, {{
848 {::_pbi::TcParser::MiniParse, {}},
849 // string var_id = 1;
850 {::_pbi::TcParser::FastUS1,
851 {10, 0, 0,
852 PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_.var_id_)}},
853 // int64 start_min = 2;
854 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(IntervalVarAssignment, _impl_.start_min_), 1>(),
855 {16, 1, 0,
856 PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_.start_min_)}},
857 // int64 start_max = 3;
858 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(IntervalVarAssignment, _impl_.start_max_), 2>(),
859 {24, 2, 0,
860 PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_.start_max_)}},
861 // int64 duration_min = 4;
862 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(IntervalVarAssignment, _impl_.duration_min_), 3>(),
863 {32, 3, 0,
864 PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_.duration_min_)}},
865 // int64 duration_max = 5;
866 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(IntervalVarAssignment, _impl_.duration_max_), 4>(),
867 {40, 4, 0,
868 PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_.duration_max_)}},
869 // int64 end_min = 6;
870 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(IntervalVarAssignment, _impl_.end_min_), 5>(),
871 {48, 5, 0,
872 PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_.end_min_)}},
873 // int64 end_max = 7;
874 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(IntervalVarAssignment, _impl_.end_max_), 6>(),
875 {56, 6, 0,
876 PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_.end_max_)}},
877 // int64 performed_min = 8;
878 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(IntervalVarAssignment, _impl_.performed_min_), 7>(),
879 {64, 7, 0,
880 PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_.performed_min_)}},
881 // int64 performed_max = 9;
882 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(IntervalVarAssignment, _impl_.performed_max_), 8>(),
883 {72, 8, 0,
884 PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_.performed_max_)}},
885 // bool active = 10;
886 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(IntervalVarAssignment, _impl_.active_), 9>(),
887 {80, 9, 0,
888 PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_.active_)}},
889 {::_pbi::TcParser::MiniParse, {}},
890 {::_pbi::TcParser::MiniParse, {}},
891 {::_pbi::TcParser::MiniParse, {}},
892 {::_pbi::TcParser::MiniParse, {}},
893 {::_pbi::TcParser::MiniParse, {}},
894 }}, {{
895 65535, 65535
896 }}, {{
897 // string var_id = 1;
898 {PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_.var_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
899 // int64 start_min = 2;
900 {PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_.start_min_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
901 // int64 start_max = 3;
902 {PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_.start_max_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
903 // int64 duration_min = 4;
904 {PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_.duration_min_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
905 // int64 duration_max = 5;
906 {PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_.duration_max_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
907 // int64 end_min = 6;
908 {PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_.end_min_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
909 // int64 end_max = 7;
910 {PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_.end_max_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
911 // int64 performed_min = 8;
912 {PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_.performed_min_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
913 // int64 performed_max = 9;
914 {PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_.performed_max_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
915 // bool active = 10;
916 {PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_.active_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
917 }},
918 // no aux_entries
919 {{
920 "\51\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
921 "operations_research.IntervalVarAssignment"
922 "var_id"
923 }},
924};
925PROTOBUF_NOINLINE void IntervalVarAssignment::Clear() {
926// @@protoc_insertion_point(message_clear_start:operations_research.IntervalVarAssignment)
927 ::google::protobuf::internal::TSanWrite(&_impl_);
928 ::uint32_t cached_has_bits = 0;
929 // Prevent compiler warnings about cached_has_bits being unused
930 (void) cached_has_bits;
931
932 cached_has_bits = _impl_._has_bits_[0];
933 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
934 _impl_.var_id_.ClearNonDefaultToEmpty();
935 }
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_));
940 }
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_));
945 }
946 _impl_._has_bits_.Clear();
947 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
948}
949
950#if defined(PROTOBUF_CUSTOM_VTABLE)
951::uint8_t* PROTOBUF_NONNULL IntervalVarAssignment::_InternalSerialize(
952 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
953 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
954 const IntervalVarAssignment& this_ = static_cast<const IntervalVarAssignment&>(base);
955#else // PROTOBUF_CUSTOM_VTABLE
956::uint8_t* PROTOBUF_NONNULL IntervalVarAssignment::_InternalSerialize(
957 ::uint8_t* PROTOBUF_NONNULL target,
958 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
959 const IntervalVarAssignment& this_ = *this;
960#endif // PROTOBUF_CUSTOM_VTABLE
961 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
962 this_.CheckHasBitConsistency();
963 }
964 // @@protoc_insertion_point(serialize_to_array_start:operations_research.IntervalVarAssignment)
965 ::uint32_t cached_has_bits = 0;
966 (void)cached_has_bits;
967
968 cached_has_bits = this_._impl_._has_bits_[0];
969 // string var_id = 1;
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);
976 }
977 }
978
979 // int64 start_min = 2;
980 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
981 if (this_._internal_start_min() != 0) {
982 target =
983 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
984 stream, this_._internal_start_min(), target);
985 }
986 }
987
988 // int64 start_max = 3;
989 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
990 if (this_._internal_start_max() != 0) {
991 target =
992 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>(
993 stream, this_._internal_start_max(), target);
994 }
995 }
996
997 // int64 duration_min = 4;
998 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
999 if (this_._internal_duration_min() != 0) {
1000 target =
1001 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<4>(
1002 stream, this_._internal_duration_min(), target);
1003 }
1004 }
1005
1006 // int64 duration_max = 5;
1007 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
1008 if (this_._internal_duration_max() != 0) {
1009 target =
1010 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<5>(
1011 stream, this_._internal_duration_max(), target);
1012 }
1013 }
1014
1015 // int64 end_min = 6;
1016 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
1017 if (this_._internal_end_min() != 0) {
1018 target =
1019 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<6>(
1020 stream, this_._internal_end_min(), target);
1021 }
1022 }
1023
1024 // int64 end_max = 7;
1025 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
1026 if (this_._internal_end_max() != 0) {
1027 target =
1028 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<7>(
1029 stream, this_._internal_end_max(), target);
1030 }
1031 }
1032
1033 // int64 performed_min = 8;
1034 if (CheckHasBit(cached_has_bits, 0x00000080U)) {
1035 if (this_._internal_performed_min() != 0) {
1036 target =
1037 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<8>(
1038 stream, this_._internal_performed_min(), target);
1039 }
1040 }
1041
1042 // int64 performed_max = 9;
1043 if (CheckHasBit(cached_has_bits, 0x00000100U)) {
1044 if (this_._internal_performed_max() != 0) {
1045 target =
1046 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<9>(
1047 stream, this_._internal_performed_max(), target);
1048 }
1049 }
1050
1051 // bool active = 10;
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);
1057 }
1058 }
1059
1060 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1061 target =
1062 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1063 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1064 }
1065 // @@protoc_insertion_point(serialize_to_array_end:operations_research.IntervalVarAssignment)
1066 return target;
1067}
1068
1069#if defined(PROTOBUF_CUSTOM_VTABLE)
1071 const IntervalVarAssignment& this_ = static_cast<const IntervalVarAssignment&>(base);
1072#else // PROTOBUF_CUSTOM_VTABLE
1073::size_t IntervalVarAssignment::ByteSizeLong() const {
1074 const IntervalVarAssignment& this_ = *this;
1075#endif // PROTOBUF_CUSTOM_VTABLE
1076 // @@protoc_insertion_point(message_byte_size_start:operations_research.IntervalVarAssignment)
1077 ::size_t total_size = 0;
1078
1079 ::uint32_t cached_has_bits = 0;
1080 // Prevent compiler warnings about cached_has_bits being unused
1081 (void)cached_has_bits;
1082
1083 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1084 cached_has_bits = this_._impl_._has_bits_[0];
1085 if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
1086 // string var_id = 1;
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());
1091 }
1092 }
1093 // int64 start_min = 2;
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());
1098 }
1099 }
1100 // int64 start_max = 3;
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());
1105 }
1106 }
1107 // int64 duration_min = 4;
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());
1112 }
1113 }
1114 // int64 duration_max = 5;
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());
1119 }
1120 }
1121 // int64 end_min = 6;
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());
1126 }
1127 }
1128 // int64 end_max = 7;
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());
1133 }
1134 }
1135 // int64 performed_min = 8;
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());
1140 }
1141 }
1142 }
1143 if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) {
1144 // int64 performed_max = 9;
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());
1149 }
1150 }
1151 // bool active = 10;
1152 if (CheckHasBit(cached_has_bits, 0x00000200U)) {
1153 if (this_._internal_active() != 0) {
1154 total_size += 2;
1155 }
1156 }
1157 }
1158 return this_.MaybeComputeUnknownFieldsSize(total_size,
1159 &this_._impl_._cached_size_);
1160}
1161
1162void IntervalVarAssignment::MergeImpl(::google::protobuf::MessageLite& to_msg,
1163 const ::google::protobuf::MessageLite& from_msg) {
1164 auto* const _this =
1165 static_cast<IntervalVarAssignment*>(&to_msg);
1166 auto& from = static_cast<const IntervalVarAssignment&>(from_msg);
1167 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1168 from.CheckHasBitConsistency();
1169 }
1170 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.IntervalVarAssignment)
1171 ABSL_DCHECK_NE(&from, _this);
1172 ::uint32_t cached_has_bits = 0;
1173 (void)cached_has_bits;
1174
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());
1180 } else {
1181 if (_this->_impl_.var_id_.IsDefault()) {
1182 _this->_internal_set_var_id("");
1183 }
1184 }
1185 }
1186 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1187 if (from._internal_start_min() != 0) {
1188 _this->_impl_.start_min_ = from._impl_.start_min_;
1189 }
1190 }
1191 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1192 if (from._internal_start_max() != 0) {
1193 _this->_impl_.start_max_ = from._impl_.start_max_;
1194 }
1195 }
1196 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1197 if (from._internal_duration_min() != 0) {
1198 _this->_impl_.duration_min_ = from._impl_.duration_min_;
1199 }
1200 }
1201 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
1202 if (from._internal_duration_max() != 0) {
1203 _this->_impl_.duration_max_ = from._impl_.duration_max_;
1204 }
1205 }
1206 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
1207 if (from._internal_end_min() != 0) {
1208 _this->_impl_.end_min_ = from._impl_.end_min_;
1209 }
1210 }
1211 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
1212 if (from._internal_end_max() != 0) {
1213 _this->_impl_.end_max_ = from._impl_.end_max_;
1214 }
1215 }
1216 if (CheckHasBit(cached_has_bits, 0x00000080U)) {
1217 if (from._internal_performed_min() != 0) {
1218 _this->_impl_.performed_min_ = from._impl_.performed_min_;
1219 }
1220 }
1221 }
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_;
1226 }
1227 }
1228 if (CheckHasBit(cached_has_bits, 0x00000200U)) {
1229 if (from._internal_active() != 0) {
1230 _this->_impl_.active_ = from._impl_.active_;
1231 }
1232 }
1233 }
1234 _this->_impl_._has_bits_[0] |= cached_has_bits;
1235 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1236 from._internal_metadata_);
1237}
1238
1240 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.IntervalVarAssignment)
1241 if (&from == this) return;
1242 Clear();
1243 MergeFrom(from);
1244}
1245
1246
1247void IntervalVarAssignment::InternalSwap(IntervalVarAssignment* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1248 using ::std::swap;
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<
1255 PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_.active_)
1256 + sizeof(IntervalVarAssignment::_impl_.active_)
1257 - PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_.start_min_)>(
1258 reinterpret_cast<char*>(&_impl_.start_min_),
1259 reinterpret_cast<char*>(&other->_impl_.start_min_));
1260}
1261
1262::google::protobuf::Metadata IntervalVarAssignment::GetMetadata() const {
1263 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1265// ===================================================================
1266
1268 public:
1269 using HasBits =
1270 decltype(::std::declval<SequenceVarAssignment>()._impl_._has_bits_);
1271 static constexpr ::int32_t kHasBitsOffset =
1272 8 * PROTOBUF_FIELD_OFFSET(SequenceVarAssignment, _impl_._has_bits_);
1273};
1275SequenceVarAssignment::SequenceVarAssignment(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1276#if defined(PROTOBUF_CUSTOM_VTABLE)
1277 : ::google::protobuf::Message(arena, SequenceVarAssignment_class_data_.base()) {
1278#else // PROTOBUF_CUSTOM_VTABLE
1279 : ::google::protobuf::Message(arena) {
1280#endif // PROTOBUF_CUSTOM_VTABLE
1281 SharedCtor(arena);
1282 // @@protoc_insertion_point(arena_constructor:operations_research.SequenceVarAssignment)
1283}
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_},
1289 _cached_size_{0},
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_) {}
1297
1299 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1300 const SequenceVarAssignment& from)
1301#if defined(PROTOBUF_CUSTOM_VTABLE)
1302 : ::google::protobuf::Message(arena, SequenceVarAssignment_class_data_.base()) {
1303#else // PROTOBUF_CUSTOM_VTABLE
1304 : ::google::protobuf::Message(arena) {
1305#endif // PROTOBUF_CUSTOM_VTABLE
1306 SequenceVarAssignment* const _this = this;
1307 (void)_this;
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_;
1312
1313 // @@protoc_insertion_point(copy_constructor:operations_research.SequenceVarAssignment)
1314}
1315PROTOBUF_NDEBUG_INLINE SequenceVarAssignment::Impl_::Impl_(
1316 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1317 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1318 : _cached_size_{0},
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},
1325 var_id_(arena) {}
1326
1327inline void SequenceVarAssignment::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1328 new (&_impl_) Impl_(internal_visibility(), arena);
1329 _impl_.active_ = {};
1330}
1332 // @@protoc_insertion_point(destructor:operations_research.SequenceVarAssignment)
1333 SharedDtor(*this);
1335inline void SequenceVarAssignment::SharedDtor(MessageLite& self) {
1336 SequenceVarAssignment& this_ = static_cast<SequenceVarAssignment&>(self);
1337 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1338 this_.CheckHasBitConsistency();
1339 }
1340 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1341 ABSL_DCHECK(this_.GetArena() == nullptr);
1342 this_._impl_.var_id_.Destroy();
1343 this_._impl_.~Impl_();
1344}
1345
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);
1350}
1351constexpr auto SequenceVarAssignment::InternalNewImpl_() {
1352 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
1353 PROTOBUF_FIELD_OFFSET(SequenceVarAssignment, _impl_.forward_sequence_) +
1354 decltype(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()),
1365 });
1366 if (arena_bits.has_value()) {
1367 return ::google::protobuf::internal::MessageCreator::CopyInit(
1368 sizeof(SequenceVarAssignment), alignof(SequenceVarAssignment), *arena_bits);
1369 } else {
1370 return ::google::protobuf::internal::MessageCreator(&SequenceVarAssignment::PlacementNew_,
1371 sizeof(SequenceVarAssignment),
1372 alignof(SequenceVarAssignment));
1373 }
1374}
1376 return ::google::protobuf::internal::ClassDataFull{
1377 ::google::protobuf::internal::ClassData{
1379 &_table_.header,
1380 nullptr, // OnDemandRegisterArenaDtor
1381 nullptr, // IsInitialized
1382 &SequenceVarAssignment::MergeImpl,
1383 ::google::protobuf::Message::GetNewImpl<SequenceVarAssignment>(),
1384#if defined(PROTOBUF_CUSTOM_VTABLE)
1385 &SequenceVarAssignment::SharedDtor,
1386 ::google::protobuf::Message::GetClearImpl<SequenceVarAssignment>(), &SequenceVarAssignment::ByteSizeLong,
1388#endif // PROTOBUF_CUSTOM_VTABLE
1389 PROTOBUF_FIELD_OFFSET(SequenceVarAssignment, _impl_._cached_size_),
1390 false,
1391 },
1392 &SequenceVarAssignment::kDescriptorMethods,
1394 nullptr, // tracker
1395 };
1396}
1397
1398PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1399 ::google::protobuf::internal::ClassDataFull SequenceVarAssignment_class_data_ =
1401
1402PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1403SequenceVarAssignment::GetClassData() const {
1404 ::google::protobuf::internal::PrefetchToLocalCache(&SequenceVarAssignment_class_data_);
1405 ::google::protobuf::internal::PrefetchToLocalCache(SequenceVarAssignment_class_data_.tc_table);
1407}
1408PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1409const ::_pbi::TcParseTable<3, 5, 0, 56, 2>
1410SequenceVarAssignment::_table_ = {
1411 {
1412 PROTOBUF_FIELD_OFFSET(SequenceVarAssignment, _impl_._has_bits_),
1413 0, // no _extensions_
1414 5, 56, // max_field_number, fast_idx_mask
1415 offsetof(decltype(_table_), field_lookup_table),
1416 4294967264, // skipmap
1417 offsetof(decltype(_table_), field_entries),
1418 5, // num_field_entries
1419 0, // num_aux_entries
1420 offsetof(decltype(_table_), field_names), // no aux_entries
1422 nullptr, // post_loop_handler
1423 ::_pbi::TcParser::GenericFallback, // fallback
1424 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1425 ::_pbi::TcParser::GetTable<::operations_research::SequenceVarAssignment>(), // to_prefetch
1426 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
1427 }, {{
1428 {::_pbi::TcParser::MiniParse, {}},
1429 // string var_id = 1;
1430 {::_pbi::TcParser::FastUS1,
1431 {10, 3, 0,
1432 PROTOBUF_FIELD_OFFSET(SequenceVarAssignment, _impl_.var_id_)}},
1433 // repeated int32 forward_sequence = 2;
1434 {::_pbi::TcParser::FastV32P1,
1435 {18, 0, 0,
1436 PROTOBUF_FIELD_OFFSET(SequenceVarAssignment, _impl_.forward_sequence_)}},
1437 // repeated int32 backward_sequence = 3;
1438 {::_pbi::TcParser::FastV32P1,
1439 {26, 1, 0,
1440 PROTOBUF_FIELD_OFFSET(SequenceVarAssignment, _impl_.backward_sequence_)}},
1441 // repeated int32 unperformed = 4;
1442 {::_pbi::TcParser::FastV32P1,
1443 {34, 2, 0,
1444 PROTOBUF_FIELD_OFFSET(SequenceVarAssignment, _impl_.unperformed_)}},
1445 // bool active = 5;
1446 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(SequenceVarAssignment, _impl_.active_), 4>(),
1447 {40, 4, 0,
1448 PROTOBUF_FIELD_OFFSET(SequenceVarAssignment, _impl_.active_)}},
1449 {::_pbi::TcParser::MiniParse, {}},
1450 {::_pbi::TcParser::MiniParse, {}},
1451 }}, {{
1452 65535, 65535
1453 }}, {{
1454 // string var_id = 1;
1455 {PROTOBUF_FIELD_OFFSET(SequenceVarAssignment, _impl_.var_id_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
1456 // repeated int32 forward_sequence = 2;
1457 {PROTOBUF_FIELD_OFFSET(SequenceVarAssignment, _impl_.forward_sequence_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)},
1458 // repeated int32 backward_sequence = 3;
1459 {PROTOBUF_FIELD_OFFSET(SequenceVarAssignment, _impl_.backward_sequence_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)},
1460 // repeated int32 unperformed = 4;
1461 {PROTOBUF_FIELD_OFFSET(SequenceVarAssignment, _impl_.unperformed_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)},
1462 // bool active = 5;
1463 {PROTOBUF_FIELD_OFFSET(SequenceVarAssignment, _impl_.active_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
1464 }},
1465 // no aux_entries
1466 {{
1467 "\51\6\0\0\0\0\0\0"
1468 "operations_research.SequenceVarAssignment"
1469 "var_id"
1470 }},
1471};
1472PROTOBUF_NOINLINE void SequenceVarAssignment::Clear() {
1473// @@protoc_insertion_point(message_clear_start:operations_research.SequenceVarAssignment)
1474 ::google::protobuf::internal::TSanWrite(&_impl_);
1475 ::uint32_t cached_has_bits = 0;
1476 // Prevent compiler warnings about cached_has_bits being unused
1477 (void) cached_has_bits;
1478
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();
1483 }
1484 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1485 _impl_.backward_sequence_.Clear();
1486 }
1487 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
1488 _impl_.unperformed_.Clear();
1489 }
1490 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1491 _impl_.var_id_.ClearNonDefaultToEmpty();
1492 }
1493 }
1494 _impl_.active_ = false;
1495 _impl_._has_bits_.Clear();
1496 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1497}
1498
1499#if defined(PROTOBUF_CUSTOM_VTABLE)
1500::uint8_t* PROTOBUF_NONNULL SequenceVarAssignment::_InternalSerialize(
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);
1504#else // PROTOBUF_CUSTOM_VTABLE
1505::uint8_t* PROTOBUF_NONNULL SequenceVarAssignment::_InternalSerialize(
1506 ::uint8_t* PROTOBUF_NONNULL target,
1507 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1508 const SequenceVarAssignment& this_ = *this;
1509#endif // PROTOBUF_CUSTOM_VTABLE
1510 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1511 this_.CheckHasBitConsistency();
1512 }
1513 // @@protoc_insertion_point(serialize_to_array_start:operations_research.SequenceVarAssignment)
1514 ::uint32_t cached_has_bits = 0;
1515 (void)cached_has_bits;
1516
1517 cached_has_bits = this_._impl_._has_bits_[0];
1518 // string var_id = 1;
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);
1525 }
1526 }
1527
1528 // repeated int32 forward_sequence = 2;
1529 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1530 {
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);
1535 }
1536 }
1537 }
1538
1539 // repeated int32 backward_sequence = 3;
1540 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1541 {
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);
1546 }
1547 }
1548 }
1549
1550 // repeated int32 unperformed = 4;
1551 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
1552 {
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);
1557 }
1558 }
1559 }
1560
1561 // bool active = 5;
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);
1567 }
1568 }
1569
1570 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1571 target =
1572 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1573 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1574 }
1575 // @@protoc_insertion_point(serialize_to_array_end:operations_research.SequenceVarAssignment)
1576 return target;
1577}
1578
1579#if defined(PROTOBUF_CUSTOM_VTABLE)
1581 const SequenceVarAssignment& this_ = static_cast<const SequenceVarAssignment&>(base);
1582#else // PROTOBUF_CUSTOM_VTABLE
1583::size_t SequenceVarAssignment::ByteSizeLong() const {
1584 const SequenceVarAssignment& this_ = *this;
1585#endif // PROTOBUF_CUSTOM_VTABLE
1586 // @@protoc_insertion_point(message_byte_size_start:operations_research.SequenceVarAssignment)
1587 ::size_t total_size = 0;
1588
1589 ::uint32_t cached_has_bits = 0;
1590 // Prevent compiler warnings about cached_has_bits being unused
1591 (void)cached_has_bits;
1592
1593 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1594 cached_has_bits = this_._impl_._has_bits_[0];
1595 if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
1596 // repeated int32 forward_sequence = 2;
1597 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1598 total_size +=
1599 ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize(
1600 this_._internal_forward_sequence(), 1,
1601 this_._impl_._forward_sequence_cached_byte_size_);
1602 }
1603 // repeated int32 backward_sequence = 3;
1604 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1605 total_size +=
1606 ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize(
1607 this_._internal_backward_sequence(), 1,
1608 this_._impl_._backward_sequence_cached_byte_size_);
1609 }
1610 // repeated int32 unperformed = 4;
1611 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
1612 total_size +=
1613 ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize(
1614 this_._internal_unperformed(), 1,
1615 this_._impl_._unperformed_cached_byte_size_);
1616 }
1617 // string var_id = 1;
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());
1622 }
1623 }
1624 // bool active = 5;
1625 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
1626 if (this_._internal_active() != 0) {
1627 total_size += 2;
1628 }
1629 }
1630 }
1631 return this_.MaybeComputeUnknownFieldsSize(total_size,
1632 &this_._impl_._cached_size_);
1633}
1634
1635void SequenceVarAssignment::MergeImpl(::google::protobuf::MessageLite& to_msg,
1636 const ::google::protobuf::MessageLite& from_msg) {
1637 auto* const _this =
1638 static_cast<SequenceVarAssignment*>(&to_msg);
1639 auto& from = static_cast<const SequenceVarAssignment&>(from_msg);
1640 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1641 from.CheckHasBitConsistency();
1642 }
1643 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.SequenceVarAssignment)
1644 ABSL_DCHECK_NE(&from, _this);
1645 ::uint32_t cached_has_bits = 0;
1646 (void)cached_has_bits;
1647
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());
1652 }
1653 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1654 _this->_internal_mutable_backward_sequence()->MergeFrom(from._internal_backward_sequence());
1655 }
1656 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
1657 _this->_internal_mutable_unperformed()->MergeFrom(from._internal_unperformed());
1658 }
1659 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1660 if (!from._internal_var_id().empty()) {
1661 _this->_internal_set_var_id(from._internal_var_id());
1662 } else {
1663 if (_this->_impl_.var_id_.IsDefault()) {
1664 _this->_internal_set_var_id("");
1665 }
1666 }
1667 }
1668 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
1669 if (from._internal_active() != 0) {
1670 _this->_impl_.active_ = from._impl_.active_;
1671 }
1672 }
1673 }
1674 _this->_impl_._has_bits_[0] |= cached_has_bits;
1675 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1676 from._internal_metadata_);
1677}
1678
1679void SequenceVarAssignment::CopyFrom(const SequenceVarAssignment& from) {
1680 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.SequenceVarAssignment)
1681 if (&from == this) return;
1683 MergeFrom(from);
1684}
1685
1686
1687void SequenceVarAssignment::InternalSwap(SequenceVarAssignment* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1688 using ::std::swap;
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);
1697 swap(_impl_.active_, other->_impl_.active_);
1698}
1699
1700::google::protobuf::Metadata SequenceVarAssignment::GetMetadata() const {
1701 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1702}
1703// ===================================================================
1704
1706 public:
1707 using HasBits =
1708 decltype(::std::declval<WorkerInfo>()._impl_._has_bits_);
1709 static constexpr ::int32_t kHasBitsOffset =
1710 8 * PROTOBUF_FIELD_OFFSET(WorkerInfo, _impl_._has_bits_);
1712
1713WorkerInfo::WorkerInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1714#if defined(PROTOBUF_CUSTOM_VTABLE)
1715 : ::google::protobuf::Message(arena, WorkerInfo_class_data_.base()) {
1716#else // PROTOBUF_CUSTOM_VTABLE
1717 : ::google::protobuf::Message(arena) {
1718#endif // PROTOBUF_CUSTOM_VTABLE
1719 SharedCtor(arena);
1720 // @@protoc_insertion_point(arena_constructor:operations_research.WorkerInfo)
1721}
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_},
1727 _cached_size_{0},
1728 bns_(arena, from.bns_) {}
1729
1731 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1732 const WorkerInfo& from)
1733#if defined(PROTOBUF_CUSTOM_VTABLE)
1734 : ::google::protobuf::Message(arena, WorkerInfo_class_data_.base()) {
1735#else // PROTOBUF_CUSTOM_VTABLE
1736 : ::google::protobuf::Message(arena) {
1737#endif // PROTOBUF_CUSTOM_VTABLE
1738 WorkerInfo* const _this = this;
1739 (void)_this;
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_;
1744
1745 // @@protoc_insertion_point(copy_constructor:operations_research.WorkerInfo)
1746}
1747PROTOBUF_NDEBUG_INLINE WorkerInfo::Impl_::Impl_(
1748 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1749 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1750 : _cached_size_{0},
1751 bns_(arena) {}
1752
1753inline void WorkerInfo::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1754 new (&_impl_) Impl_(internal_visibility(), arena);
1755 _impl_.worker_id_ = {};
1756}
1758 // @@protoc_insertion_point(destructor:operations_research.WorkerInfo)
1759 SharedDtor(*this);
1760}
1761inline void WorkerInfo::SharedDtor(MessageLite& self) {
1762 WorkerInfo& this_ = static_cast<WorkerInfo&>(self);
1763 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1764 this_.CheckHasBitConsistency();
1765 }
1766 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1767 ABSL_DCHECK(this_.GetArena() == nullptr);
1768 this_._impl_.bns_.Destroy();
1769 this_._impl_.~Impl_();
1770}
1771
1772inline void* PROTOBUF_NONNULL WorkerInfo::PlacementNew_(
1773 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1774 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1775 return ::new (mem) WorkerInfo(arena);
1776}
1777constexpr auto WorkerInfo::InternalNewImpl_() {
1778 return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(WorkerInfo),
1779 alignof(WorkerInfo));
1780}
1782 return ::google::protobuf::internal::ClassDataFull{
1783 ::google::protobuf::internal::ClassData{
1785 &_table_.header,
1786 nullptr, // OnDemandRegisterArenaDtor
1787 nullptr, // IsInitialized
1788 &WorkerInfo::MergeImpl,
1789 ::google::protobuf::Message::GetNewImpl<WorkerInfo>(),
1790#if defined(PROTOBUF_CUSTOM_VTABLE)
1791 &WorkerInfo::SharedDtor,
1792 ::google::protobuf::Message::GetClearImpl<WorkerInfo>(), &WorkerInfo::ByteSizeLong,
1794#endif // PROTOBUF_CUSTOM_VTABLE
1795 PROTOBUF_FIELD_OFFSET(WorkerInfo, _impl_._cached_size_),
1796 false,
1797 },
1798 &WorkerInfo::kDescriptorMethods,
1800 nullptr, // tracker
1801 };
1802}
1803
1804PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1805 ::google::protobuf::internal::ClassDataFull WorkerInfo_class_data_ =
1807
1808PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1809WorkerInfo::GetClassData() const {
1810 ::google::protobuf::internal::PrefetchToLocalCache(&WorkerInfo_class_data_);
1811 ::google::protobuf::internal::PrefetchToLocalCache(WorkerInfo_class_data_.tc_table);
1812 return WorkerInfo_class_data_.base();
1813}
1814PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1815const ::_pbi::TcParseTable<1, 2, 0, 42, 2>
1816WorkerInfo::_table_ = {
1817 {
1818 PROTOBUF_FIELD_OFFSET(WorkerInfo, _impl_._has_bits_),
1819 0, // no _extensions_
1820 2, 8, // max_field_number, fast_idx_mask
1821 offsetof(decltype(_table_), field_lookup_table),
1822 4294967292, // skipmap
1823 offsetof(decltype(_table_), field_entries),
1824 2, // num_field_entries
1825 0, // num_aux_entries
1826 offsetof(decltype(_table_), field_names), // no aux_entries
1828 nullptr, // post_loop_handler
1829 ::_pbi::TcParser::GenericFallback, // fallback
1830 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1831 ::_pbi::TcParser::GetTable<::operations_research::WorkerInfo>(), // to_prefetch
1832 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
1833 }, {{
1834 // string bns = 2;
1835 {::_pbi::TcParser::FastUS1,
1836 {18, 0, 0,
1837 PROTOBUF_FIELD_OFFSET(WorkerInfo, _impl_.bns_)}},
1838 // int32 worker_id = 1;
1839 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(WorkerInfo, _impl_.worker_id_), 1>(),
1840 {8, 1, 0,
1841 PROTOBUF_FIELD_OFFSET(WorkerInfo, _impl_.worker_id_)}},
1842 }}, {{
1843 65535, 65535
1844 }}, {{
1845 // int32 worker_id = 1;
1846 {PROTOBUF_FIELD_OFFSET(WorkerInfo, _impl_.worker_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
1847 // string bns = 2;
1848 {PROTOBUF_FIELD_OFFSET(WorkerInfo, _impl_.bns_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
1849 }},
1850 // no aux_entries
1851 {{
1852 "\36\0\3\0\0\0\0\0"
1853 "operations_research.WorkerInfo"
1854 "bns"
1855 }},
1856};
1857PROTOBUF_NOINLINE void WorkerInfo::Clear() {
1858// @@protoc_insertion_point(message_clear_start:operations_research.WorkerInfo)
1859 ::google::protobuf::internal::TSanWrite(&_impl_);
1860 ::uint32_t cached_has_bits = 0;
1861 // Prevent compiler warnings about cached_has_bits being unused
1862 (void) cached_has_bits;
1863
1864 cached_has_bits = _impl_._has_bits_[0];
1865 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1866 _impl_.bns_.ClearNonDefaultToEmpty();
1867 }
1868 _impl_.worker_id_ = 0;
1869 _impl_._has_bits_.Clear();
1870 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1871}
1872
1873#if defined(PROTOBUF_CUSTOM_VTABLE)
1874::uint8_t* PROTOBUF_NONNULL WorkerInfo::_InternalSerialize(
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);
1878#else // PROTOBUF_CUSTOM_VTABLE
1879::uint8_t* PROTOBUF_NONNULL WorkerInfo::_InternalSerialize(
1880 ::uint8_t* PROTOBUF_NONNULL target,
1881 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1882 const WorkerInfo& this_ = *this;
1883#endif // PROTOBUF_CUSTOM_VTABLE
1884 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1885 this_.CheckHasBitConsistency();
1886 }
1887 // @@protoc_insertion_point(serialize_to_array_start:operations_research.WorkerInfo)
1888 ::uint32_t cached_has_bits = 0;
1889 (void)cached_has_bits;
1890
1891 cached_has_bits = this_._impl_._has_bits_[0];
1892 // int32 worker_id = 1;
1893 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1894 if (this_._internal_worker_id() != 0) {
1895 target =
1896 ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>(
1897 stream, this_._internal_worker_id(), target);
1898 }
1899 }
1900
1901 // string bns = 2;
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);
1908 }
1909 }
1910
1911 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1912 target =
1913 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1914 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1915 }
1916 // @@protoc_insertion_point(serialize_to_array_end:operations_research.WorkerInfo)
1917 return target;
1918}
1919
1920#if defined(PROTOBUF_CUSTOM_VTABLE)
1921::size_t WorkerInfo::ByteSizeLong(const MessageLite& base) {
1922 const WorkerInfo& this_ = static_cast<const WorkerInfo&>(base);
1923#else // PROTOBUF_CUSTOM_VTABLE
1924::size_t WorkerInfo::ByteSizeLong() const {
1925 const WorkerInfo& this_ = *this;
1926#endif // PROTOBUF_CUSTOM_VTABLE
1927 // @@protoc_insertion_point(message_byte_size_start:operations_research.WorkerInfo)
1928 ::size_t total_size = 0;
1929
1930 ::uint32_t cached_has_bits = 0;
1931 // Prevent compiler warnings about cached_has_bits being unused
1932 (void)cached_has_bits;
1933
1934 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1935 cached_has_bits = this_._impl_._has_bits_[0];
1936 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
1937 // string bns = 2;
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());
1942 }
1943 }
1944 // int32 worker_id = 1;
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());
1949 }
1950 }
1951 }
1952 return this_.MaybeComputeUnknownFieldsSize(total_size,
1953 &this_._impl_._cached_size_);
1954}
1955
1956void WorkerInfo::MergeImpl(::google::protobuf::MessageLite& to_msg,
1957 const ::google::protobuf::MessageLite& from_msg) {
1958 auto* const _this =
1959 static_cast<WorkerInfo*>(&to_msg);
1960 auto& from = static_cast<const WorkerInfo&>(from_msg);
1961 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1962 from.CheckHasBitConsistency();
1963 }
1964 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.WorkerInfo)
1965 ABSL_DCHECK_NE(&from, _this);
1966 ::uint32_t cached_has_bits = 0;
1967 (void)cached_has_bits;
1968
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());
1974 } else {
1975 if (_this->_impl_.bns_.IsDefault()) {
1976 _this->_internal_set_bns("");
1977 }
1978 }
1979 }
1980 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1981 if (from._internal_worker_id() != 0) {
1982 _this->_impl_.worker_id_ = from._impl_.worker_id_;
1983 }
1984 }
1985 }
1986 _this->_impl_._has_bits_[0] |= cached_has_bits;
1987 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1988 from._internal_metadata_);
1989}
1990
1991void WorkerInfo::CopyFrom(const WorkerInfo& from) {
1992 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.WorkerInfo)
1993 if (&from == this) return;
1994 Clear();
1996}
1997
1998
1999void WorkerInfo::InternalSwap(WorkerInfo* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
2000 using ::std::swap;
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_);
2007}
2008
2009::google::protobuf::Metadata WorkerInfo::GetMetadata() const {
2010 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
2011}
2012// ===================================================================
2015 public:
2016 using HasBits =
2017 decltype(::std::declval<AssignmentProto>()._impl_._has_bits_);
2018 static constexpr ::int32_t kHasBitsOffset =
2019 8 * PROTOBUF_FIELD_OFFSET(AssignmentProto, _impl_._has_bits_);
2020};
2022AssignmentProto::AssignmentProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
2023#if defined(PROTOBUF_CUSTOM_VTABLE)
2024 : ::google::protobuf::Message(arena, AssignmentProto_class_data_.base()) {
2025#else // PROTOBUF_CUSTOM_VTABLE
2026 : ::google::protobuf::Message(arena) {
2027#endif // PROTOBUF_CUSTOM_VTABLE
2028 SharedCtor(arena);
2029 // @@protoc_insertion_point(arena_constructor:operations_research.AssignmentProto)
2030}
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_},
2036 _cached_size_{0},
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_} {}
2041
2043 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
2044 const AssignmentProto& from)
2045#if defined(PROTOBUF_CUSTOM_VTABLE)
2046 : ::google::protobuf::Message(arena, AssignmentProto_class_data_.base()) {
2047#else // PROTOBUF_CUSTOM_VTABLE
2048 : ::google::protobuf::Message(arena) {
2049#endif // PROTOBUF_CUSTOM_VTABLE
2050 AssignmentProto* const _this = this;
2051 (void)_this;
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_)
2058 : nullptr;
2059 _impl_.is_valid_ = from._impl_.is_valid_;
2060
2061 // @@protoc_insertion_point(copy_constructor:operations_research.AssignmentProto)
2062}
2063PROTOBUF_NDEBUG_INLINE AssignmentProto::Impl_::Impl_(
2064 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
2065 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
2066 : _cached_size_{0},
2067 int_var_assignment_{visibility, arena},
2068 interval_var_assignment_{visibility, arena},
2069 objective_{visibility, arena},
2070 sequence_var_assignment_{visibility, arena} {}
2071
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_),
2076 0,
2077 offsetof(Impl_, is_valid_) -
2078 offsetof(Impl_, worker_info_) +
2079 sizeof(Impl_::is_valid_));
2080}
2082 // @@protoc_insertion_point(destructor:operations_research.AssignmentProto)
2083 SharedDtor(*this);
2084}
2085inline void AssignmentProto::SharedDtor(MessageLite& self) {
2086 AssignmentProto& this_ = static_cast<AssignmentProto&>(self);
2087 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2088 this_.CheckHasBitConsistency();
2089 }
2090 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
2091 ABSL_DCHECK(this_.GetArena() == nullptr);
2092 delete this_._impl_.worker_info_;
2093 this_._impl_.~Impl_();
2094}
2095
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);
2100}
2101constexpr auto AssignmentProto::InternalNewImpl_() {
2102 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
2103 PROTOBUF_FIELD_OFFSET(AssignmentProto, _impl_.int_var_assignment_) +
2104 decltype(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()),
2119 });
2120 if (arena_bits.has_value()) {
2121 return ::google::protobuf::internal::MessageCreator::ZeroInit(
2122 sizeof(AssignmentProto), alignof(AssignmentProto), *arena_bits);
2123 } else {
2124 return ::google::protobuf::internal::MessageCreator(&AssignmentProto::PlacementNew_,
2125 sizeof(AssignmentProto),
2126 alignof(AssignmentProto));
2127 }
2128}
2130 return ::google::protobuf::internal::ClassDataFull{
2131 ::google::protobuf::internal::ClassData{
2133 &_table_.header,
2134 nullptr, // OnDemandRegisterArenaDtor
2135 nullptr, // IsInitialized
2136 &AssignmentProto::MergeImpl,
2137 ::google::protobuf::Message::GetNewImpl<AssignmentProto>(),
2138#if defined(PROTOBUF_CUSTOM_VTABLE)
2139 &AssignmentProto::SharedDtor,
2140 ::google::protobuf::Message::GetClearImpl<AssignmentProto>(), &AssignmentProto::ByteSizeLong,
2142#endif // PROTOBUF_CUSTOM_VTABLE
2143 PROTOBUF_FIELD_OFFSET(AssignmentProto, _impl_._cached_size_),
2144 false,
2145 },
2146 &AssignmentProto::kDescriptorMethods,
2148 nullptr, // tracker
2149 };
2150}
2151
2152PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
2153 ::google::protobuf::internal::ClassDataFull AssignmentProto_class_data_ =
2155
2156PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
2157AssignmentProto::GetClassData() const {
2158 ::google::protobuf::internal::PrefetchToLocalCache(&AssignmentProto_class_data_);
2159 ::google::protobuf::internal::PrefetchToLocalCache(AssignmentProto_class_data_.tc_table);
2160 return AssignmentProto_class_data_.base();
2161}
2162PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
2163const ::_pbi::TcParseTable<3, 6, 5, 0, 2>
2164AssignmentProto::_table_ = {
2165 {
2166 PROTOBUF_FIELD_OFFSET(AssignmentProto, _impl_._has_bits_),
2167 0, // no _extensions_
2168 6, 56, // max_field_number, fast_idx_mask
2169 offsetof(decltype(_table_), field_lookup_table),
2170 4294967232, // skipmap
2171 offsetof(decltype(_table_), field_entries),
2172 6, // num_field_entries
2173 5, // num_aux_entries
2174 offsetof(decltype(_table_), aux_entries),
2176 nullptr, // post_loop_handler
2177 ::_pbi::TcParser::GenericFallback, // fallback
2178 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
2179 ::_pbi::TcParser::GetTable<::operations_research::AssignmentProto>(), // to_prefetch
2180 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
2181 }, {{
2182 {::_pbi::TcParser::MiniParse, {}},
2183 // repeated .operations_research.IntVarAssignment int_var_assignment = 1;
2184 {::_pbi::TcParser::FastMtR1,
2185 {10, 0, 0,
2186 PROTOBUF_FIELD_OFFSET(AssignmentProto, _impl_.int_var_assignment_)}},
2187 // repeated .operations_research.IntervalVarAssignment interval_var_assignment = 2;
2188 {::_pbi::TcParser::FastMtR1,
2189 {18, 1, 1,
2190 PROTOBUF_FIELD_OFFSET(AssignmentProto, _impl_.interval_var_assignment_)}},
2191 // repeated .operations_research.IntVarAssignment objective = 3;
2192 {::_pbi::TcParser::FastMtR1,
2193 {26, 2, 2,
2194 PROTOBUF_FIELD_OFFSET(AssignmentProto, _impl_.objective_)}},
2195 // .operations_research.WorkerInfo worker_info = 4;
2196 {::_pbi::TcParser::FastMtS1,
2197 {34, 4, 3,
2198 PROTOBUF_FIELD_OFFSET(AssignmentProto, _impl_.worker_info_)}},
2199 // bool is_valid = 5;
2200 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(AssignmentProto, _impl_.is_valid_), 5>(),
2201 {40, 5, 0,
2202 PROTOBUF_FIELD_OFFSET(AssignmentProto, _impl_.is_valid_)}},
2203 // repeated .operations_research.SequenceVarAssignment sequence_var_assignment = 6;
2204 {::_pbi::TcParser::FastMtR1,
2205 {50, 3, 4,
2206 PROTOBUF_FIELD_OFFSET(AssignmentProto, _impl_.sequence_var_assignment_)}},
2207 {::_pbi::TcParser::MiniParse, {}},
2208 }}, {{
2209 65535, 65535
2210 }}, {{
2211 // repeated .operations_research.IntVarAssignment int_var_assignment = 1;
2212 {PROTOBUF_FIELD_OFFSET(AssignmentProto, _impl_.int_var_assignment_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
2213 // repeated .operations_research.IntervalVarAssignment interval_var_assignment = 2;
2214 {PROTOBUF_FIELD_OFFSET(AssignmentProto, _impl_.interval_var_assignment_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
2215 // repeated .operations_research.IntVarAssignment objective = 3;
2216 {PROTOBUF_FIELD_OFFSET(AssignmentProto, _impl_.objective_), _Internal::kHasBitsOffset + 2, 2, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
2217 // .operations_research.WorkerInfo worker_info = 4;
2218 {PROTOBUF_FIELD_OFFSET(AssignmentProto, _impl_.worker_info_), _Internal::kHasBitsOffset + 4, 3, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
2219 // bool is_valid = 5;
2220 {PROTOBUF_FIELD_OFFSET(AssignmentProto, _impl_.is_valid_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
2221 // repeated .operations_research.SequenceVarAssignment sequence_var_assignment = 6;
2222 {PROTOBUF_FIELD_OFFSET(AssignmentProto, _impl_.sequence_var_assignment_), _Internal::kHasBitsOffset + 3, 4, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
2223 }},
2224 {{
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>()},
2230 }},
2231 {{
2232 }},
2233};
2234PROTOBUF_NOINLINE void AssignmentProto::Clear() {
2235// @@protoc_insertion_point(message_clear_start:operations_research.AssignmentProto)
2236 ::google::protobuf::internal::TSanWrite(&_impl_);
2237 ::uint32_t cached_has_bits = 0;
2238 // Prevent compiler warnings about cached_has_bits being unused
2239 (void) cached_has_bits;
2240
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();
2245 }
2246 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
2247 _impl_.interval_var_assignment_.Clear();
2248 }
2249 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
2250 _impl_.objective_.Clear();
2251 }
2252 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
2253 _impl_.sequence_var_assignment_.Clear();
2254 }
2255 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
2256 ABSL_DCHECK(_impl_.worker_info_ != nullptr);
2257 _impl_.worker_info_->Clear();
2258 }
2259 }
2260 _impl_.is_valid_ = false;
2261 _impl_._has_bits_.Clear();
2262 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
2263}
2264
2265#if defined(PROTOBUF_CUSTOM_VTABLE)
2266::uint8_t* PROTOBUF_NONNULL AssignmentProto::_InternalSerialize(
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);
2270#else // PROTOBUF_CUSTOM_VTABLE
2271::uint8_t* PROTOBUF_NONNULL AssignmentProto::_InternalSerialize(
2272 ::uint8_t* PROTOBUF_NONNULL target,
2273 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
2274 const AssignmentProto& this_ = *this;
2275#endif // PROTOBUF_CUSTOM_VTABLE
2276 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2277 this_.CheckHasBitConsistency();
2278 }
2279 // @@protoc_insertion_point(serialize_to_array_start:operations_research.AssignmentProto)
2280 ::uint32_t cached_has_bits = 0;
2281 (void)cached_has_bits;
2282
2283 cached_has_bits = this_._impl_._has_bits_[0];
2284 // repeated .operations_research.IntVarAssignment int_var_assignment = 1;
2285 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
2286 for (unsigned i = 0, n = static_cast<unsigned>(
2287 this_._internal_int_var_assignment_size());
2288 i < n; i++) {
2289 const auto& repfield = this_._internal_int_var_assignment().Get(i);
2290 target =
2291 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2292 1, repfield, repfield.GetCachedSize(),
2293 target, stream);
2294 }
2295 }
2296
2297 // repeated .operations_research.IntervalVarAssignment interval_var_assignment = 2;
2298 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
2299 for (unsigned i = 0, n = static_cast<unsigned>(
2300 this_._internal_interval_var_assignment_size());
2301 i < n; i++) {
2302 const auto& repfield = this_._internal_interval_var_assignment().Get(i);
2303 target =
2304 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2305 2, repfield, repfield.GetCachedSize(),
2306 target, stream);
2307 }
2308 }
2309
2310 // repeated .operations_research.IntVarAssignment objective = 3;
2311 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
2312 for (unsigned i = 0, n = static_cast<unsigned>(
2313 this_._internal_objective_size());
2314 i < n; i++) {
2315 const auto& repfield = this_._internal_objective().Get(i);
2316 target =
2317 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2318 3, repfield, repfield.GetCachedSize(),
2319 target, stream);
2320 }
2321 }
2322
2323 // .operations_research.WorkerInfo worker_info = 4;
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,
2327 stream);
2328 }
2329
2330 // bool is_valid = 5;
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);
2336 }
2337 }
2338
2339 // repeated .operations_research.SequenceVarAssignment sequence_var_assignment = 6;
2340 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
2341 for (unsigned i = 0, n = static_cast<unsigned>(
2342 this_._internal_sequence_var_assignment_size());
2343 i < n; i++) {
2344 const auto& repfield = this_._internal_sequence_var_assignment().Get(i);
2345 target =
2346 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2347 6, repfield, repfield.GetCachedSize(),
2348 target, stream);
2349 }
2350 }
2351
2352 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
2353 target =
2354 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2355 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
2356 }
2357 // @@protoc_insertion_point(serialize_to_array_end:operations_research.AssignmentProto)
2358 return target;
2359}
2360
2361#if defined(PROTOBUF_CUSTOM_VTABLE)
2362::size_t AssignmentProto::ByteSizeLong(const MessageLite& base) {
2363 const AssignmentProto& this_ = static_cast<const AssignmentProto&>(base);
2364#else // PROTOBUF_CUSTOM_VTABLE
2365::size_t AssignmentProto::ByteSizeLong() const {
2366 const AssignmentProto& this_ = *this;
2367#endif // PROTOBUF_CUSTOM_VTABLE
2368 // @@protoc_insertion_point(message_byte_size_start:operations_research.AssignmentProto)
2369 ::size_t total_size = 0;
2371 ::uint32_t cached_has_bits = 0;
2372 // Prevent compiler warnings about cached_has_bits being unused
2373 (void)cached_has_bits;
2374
2375 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
2376 cached_has_bits = this_._impl_._has_bits_[0];
2377 if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) {
2378 // repeated .operations_research.IntVarAssignment int_var_assignment = 1;
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);
2383 }
2384 }
2385 // repeated .operations_research.IntervalVarAssignment interval_var_assignment = 2;
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);
2390 }
2391 }
2392 // repeated .operations_research.IntVarAssignment objective = 3;
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);
2397 }
2398 }
2399 // repeated .operations_research.SequenceVarAssignment sequence_var_assignment = 6;
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);
2404 }
2405 }
2406 // .operations_research.WorkerInfo worker_info = 4;
2407 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
2408 total_size += 1 +
2409 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.worker_info_);
2410 }
2411 // bool is_valid = 5;
2412 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
2413 if (this_._internal_is_valid() != 0) {
2414 total_size += 2;
2415 }
2416 }
2417 }
2418 return this_.MaybeComputeUnknownFieldsSize(total_size,
2419 &this_._impl_._cached_size_);
2420}
2421
2422void AssignmentProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
2423 const ::google::protobuf::MessageLite& from_msg) {
2424 auto* const _this =
2425 static_cast<AssignmentProto*>(&to_msg);
2426 auto& from = static_cast<const AssignmentProto&>(from_msg);
2427 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2428 from.CheckHasBitConsistency();
2429 }
2430 ::google::protobuf::Arena* arena = _this->GetArena();
2431 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.AssignmentProto)
2432 ABSL_DCHECK_NE(&from, _this);
2433 ::uint32_t cached_has_bits = 0;
2434 (void)cached_has_bits;
2435
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());
2442 }
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());
2447 }
2448 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
2449 _this->_internal_mutable_objective()->InternalMergeFromWithArena(
2450 ::google::protobuf::MessageLite::internal_visibility(), arena,
2451 from._internal_objective());
2452 }
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());
2457 }
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_);
2462 } else {
2463 _this->_impl_.worker_info_->MergeFrom(*from._impl_.worker_info_);
2464 }
2465 }
2466 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
2467 if (from._internal_is_valid() != 0) {
2468 _this->_impl_.is_valid_ = from._impl_.is_valid_;
2469 }
2470 }
2471 }
2472 _this->_impl_._has_bits_[0] |= cached_has_bits;
2473 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
2474 from._internal_metadata_);
2475}
2476
2477void AssignmentProto::CopyFrom(const AssignmentProto& from) {
2478 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.AssignmentProto)
2479 if (&from == this) return;
2480 Clear();
2481 MergeFrom(from);
2483
2484
2485void AssignmentProto::InternalSwap(AssignmentProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
2486 using ::std::swap;
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<
2494 PROTOBUF_FIELD_OFFSET(AssignmentProto, _impl_.is_valid_)
2495 + sizeof(AssignmentProto::_impl_.is_valid_)
2496 - PROTOBUF_FIELD_OFFSET(AssignmentProto, _impl_.worker_info_)>(
2497 reinterpret_cast<char*>(&_impl_.worker_info_),
2498 reinterpret_cast<char*>(&other->_impl_.worker_info_));
2499}
2500
2501::google::protobuf::Metadata AssignmentProto::GetMetadata() const {
2502 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
2503}
2504// @@protoc_insertion_point(namespace_scope)
2505} // namespace operations_research
2506namespace google {
2507namespace protobuf {
2508} // namespace protobuf
2509} // namespace google
2510// @@protoc_insertion_point(global_scope)
2511PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
2512 _static_init2_ [[maybe_unused]] =
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[]
::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)
decltype(::std::declval< IntVarAssignment >()._impl_._has_bits_) HasBits
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_()
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
friend void swap(IntVarAssignment &a, IntVarAssignment &b)
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)
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
friend void swap(IntervalVarAssignment &a, IntervalVarAssignment &b)
friend class ::google::protobuf::Arena
static constexpr auto InternalGenerateClassData_()
void MergeFrom(const SequenceVarAssignment &from)
::google::protobuf::Metadata GetMetadata() const
void CopyFrom(const SequenceVarAssignment &from)
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
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
void CopyFrom(const WorkerInfo &from)
::google::protobuf::Metadata GetMetadata() const
void MergeFrom(const WorkerInfo &from)
static constexpr ::_pbi::MigrationSchema *PROTOBUF_NULLABLE schemas
OR-Tools root namespace.
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_