Google OR-Tools v9.14
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.31.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 0,
237 ~0u,
238 ~0u,
239 ~0u,
240 1,
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 ~0u,
258 ~0u,
259 ~0u,
260 ~0u,
261 0,
262 1,
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 ::google::protobuf::internal::InternalVisibility visibility,
345 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
346 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 ::google::protobuf::internal::InternalVisibility visibility,
376 ::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 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
396 ABSL_DCHECK(this_.GetArena() == nullptr);
397 this_._impl_.var_id_.Destroy();
398 this_._impl_.~Impl_();
399}
400
401inline void* PROTOBUF_NONNULL IntVarAssignment::PlacementNew_(
402 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
403 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
404 return ::new (mem) IntVarAssignment(arena);
405}
406constexpr auto IntVarAssignment::InternalNewImpl_() {
407 return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(IntVarAssignment),
408 alignof(IntVarAssignment));
409}
411 return ::google::protobuf::internal::ClassDataFull{
412 ::google::protobuf::internal::ClassData{
414 &_table_.header,
415 nullptr, // OnDemandRegisterArenaDtor
416 nullptr, // IsInitialized
417 &IntVarAssignment::MergeImpl,
418 ::google::protobuf::Message::GetNewImpl<IntVarAssignment>(),
419#if defined(PROTOBUF_CUSTOM_VTABLE)
420 &IntVarAssignment::SharedDtor,
421 ::google::protobuf::Message::GetClearImpl<IntVarAssignment>(), &IntVarAssignment::ByteSizeLong,
423#endif // PROTOBUF_CUSTOM_VTABLE
424 PROTOBUF_FIELD_OFFSET(IntVarAssignment, _impl_._cached_size_),
425 false,
426 },
427 &IntVarAssignment::kDescriptorMethods,
429 nullptr, // tracker
430 };
431}
432
433PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
434 ::google::protobuf::internal::ClassDataFull IntVarAssignment_class_data_ =
436
437PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
439 ::google::protobuf::internal::PrefetchToLocalCache(&IntVarAssignment_class_data_);
440 ::google::protobuf::internal::PrefetchToLocalCache(IntVarAssignment_class_data_.tc_table);
441 return IntVarAssignment_class_data_.base();
442}
443PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
444const ::_pbi::TcParseTable<2, 4, 0, 51, 2>
445IntVarAssignment::_table_ = {
446 {
447 PROTOBUF_FIELD_OFFSET(IntVarAssignment, _impl_._has_bits_),
448 0, // no _extensions_
449 4, 24, // max_field_number, fast_idx_mask
450 offsetof(decltype(_table_), field_lookup_table),
451 4294967280, // skipmap
452 offsetof(decltype(_table_), field_entries),
453 4, // num_field_entries
454 0, // num_aux_entries
455 offsetof(decltype(_table_), field_names), // no aux_entries
457 nullptr, // post_loop_handler
458 ::_pbi::TcParser::GenericFallback, // fallback
459 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
460 ::_pbi::TcParser::GetTable<::operations_research::IntVarAssignment>(), // to_prefetch
461 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
462 }, {{
463 // bool active = 4;
464 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(IntVarAssignment, _impl_.active_), 3>(),
465 {32, 3, 0, PROTOBUF_FIELD_OFFSET(IntVarAssignment, _impl_.active_)}},
466 // string var_id = 1;
467 {::_pbi::TcParser::FastUS1,
468 {10, 0, 0, PROTOBUF_FIELD_OFFSET(IntVarAssignment, _impl_.var_id_)}},
469 // int64 min = 2;
470 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(IntVarAssignment, _impl_.min_), 1>(),
471 {16, 1, 0, PROTOBUF_FIELD_OFFSET(IntVarAssignment, _impl_.min_)}},
472 // int64 max = 3;
473 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(IntVarAssignment, _impl_.max_), 2>(),
474 {24, 2, 0, PROTOBUF_FIELD_OFFSET(IntVarAssignment, _impl_.max_)}},
475 }}, {{
476 65535, 65535
477 }}, {{
478 // string var_id = 1;
479 {PROTOBUF_FIELD_OFFSET(IntVarAssignment, _impl_.var_id_), _Internal::kHasBitsOffset + 0, 0,
480 (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
481 // int64 min = 2;
482 {PROTOBUF_FIELD_OFFSET(IntVarAssignment, _impl_.min_), _Internal::kHasBitsOffset + 1, 0,
483 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
484 // int64 max = 3;
485 {PROTOBUF_FIELD_OFFSET(IntVarAssignment, _impl_.max_), _Internal::kHasBitsOffset + 2, 0,
486 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
487 // bool active = 4;
488 {PROTOBUF_FIELD_OFFSET(IntVarAssignment, _impl_.active_), _Internal::kHasBitsOffset + 3, 0,
489 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
490 }},
491 // no aux_entries
492 {{
493 "\44\6\0\0\0\0\0\0"
494 "operations_research.IntVarAssignment"
495 "var_id"
496 }},
497};
498PROTOBUF_NOINLINE void IntVarAssignment::Clear() {
499// @@protoc_insertion_point(message_clear_start:operations_research.IntVarAssignment)
500 ::google::protobuf::internal::TSanWrite(&_impl_);
501 ::uint32_t cached_has_bits = 0;
502 // Prevent compiler warnings about cached_has_bits being unused
503 (void) cached_has_bits;
504
505 cached_has_bits = _impl_._has_bits_[0];
506 if ((cached_has_bits & 0x00000001u) != 0) {
507 _impl_.var_id_.ClearNonDefaultToEmpty();
508 }
509 if ((cached_has_bits & 0x0000000eu) != 0) {
510 ::memset(&_impl_.min_, 0, static_cast<::size_t>(
511 reinterpret_cast<char*>(&_impl_.active_) -
512 reinterpret_cast<char*>(&_impl_.min_)) + sizeof(_impl_.active_));
513 }
514 _impl_._has_bits_.Clear();
515 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
516}
517
518#if defined(PROTOBUF_CUSTOM_VTABLE)
519::uint8_t* PROTOBUF_NONNULL IntVarAssignment::_InternalSerialize(
520 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
521 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
522 const IntVarAssignment& this_ = static_cast<const IntVarAssignment&>(base);
523#else // PROTOBUF_CUSTOM_VTABLE
524::uint8_t* PROTOBUF_NONNULL IntVarAssignment::_InternalSerialize(
525 ::uint8_t* PROTOBUF_NONNULL target,
526 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
527 const IntVarAssignment& this_ = *this;
528#endif // PROTOBUF_CUSTOM_VTABLE
529 // @@protoc_insertion_point(serialize_to_array_start:operations_research.IntVarAssignment)
530 ::uint32_t cached_has_bits = 0;
531 (void)cached_has_bits;
532
533 // string var_id = 1;
534 if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) {
535 if (!this_._internal_var_id().empty()) {
536 const ::std::string& _s = this_._internal_var_id();
537 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
538 _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "operations_research.IntVarAssignment.var_id");
539 target = stream->WriteStringMaybeAliased(1, _s, target);
540 }
541 }
542
543 // int64 min = 2;
544 if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) {
545 if (this_._internal_min() != 0) {
546 target =
547 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
548 stream, this_._internal_min(), target);
549 }
550 }
551
552 // int64 max = 3;
553 if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) {
554 if (this_._internal_max() != 0) {
555 target =
556 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>(
557 stream, this_._internal_max(), target);
558 }
559 }
560
561 // bool active = 4;
562 if ((this_._impl_._has_bits_[0] & 0x00000008u) != 0) {
563 if (this_._internal_active() != 0) {
564 target = stream->EnsureSpace(target);
565 target = ::_pbi::WireFormatLite::WriteBoolToArray(
566 4, this_._internal_active(), target);
567 }
568 }
569
570 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
571 target =
572 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
573 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
574 }
575 // @@protoc_insertion_point(serialize_to_array_end:operations_research.IntVarAssignment)
576 return target;
577}
578
579#if defined(PROTOBUF_CUSTOM_VTABLE)
581 const IntVarAssignment& this_ = static_cast<const IntVarAssignment&>(base);
582#else // PROTOBUF_CUSTOM_VTABLE
583::size_t IntVarAssignment::ByteSizeLong() const {
584 const IntVarAssignment& this_ = *this;
585#endif // PROTOBUF_CUSTOM_VTABLE
586 // @@protoc_insertion_point(message_byte_size_start:operations_research.IntVarAssignment)
587 ::size_t total_size = 0;
588
589 ::uint32_t cached_has_bits = 0;
590 // Prevent compiler warnings about cached_has_bits being unused
591 (void)cached_has_bits;
592
593 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
594 cached_has_bits = this_._impl_._has_bits_[0];
595 if ((cached_has_bits & 0x0000000fu) != 0) {
596 // string var_id = 1;
597 if ((cached_has_bits & 0x00000001u) != 0) {
598 if (!this_._internal_var_id().empty()) {
599 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
600 this_._internal_var_id());
601 }
602 }
603 // int64 min = 2;
604 if ((cached_has_bits & 0x00000002u) != 0) {
605 if (this_._internal_min() != 0) {
606 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
607 this_._internal_min());
608 }
609 }
610 // int64 max = 3;
611 if ((cached_has_bits & 0x00000004u) != 0) {
612 if (this_._internal_max() != 0) {
613 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
614 this_._internal_max());
615 }
616 }
617 // bool active = 4;
618 if ((cached_has_bits & 0x00000008u) != 0) {
619 if (this_._internal_active() != 0) {
620 total_size += 2;
621 }
622 }
623 }
624 return this_.MaybeComputeUnknownFieldsSize(total_size,
625 &this_._impl_._cached_size_);
626}
627
628void IntVarAssignment::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
629 auto* const _this = static_cast<IntVarAssignment*>(&to_msg);
630 auto& from = static_cast<const IntVarAssignment&>(from_msg);
631 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.IntVarAssignment)
632 ABSL_DCHECK_NE(&from, _this);
633 ::uint32_t cached_has_bits = 0;
634 (void) cached_has_bits;
635
636 cached_has_bits = from._impl_._has_bits_[0];
637 if ((cached_has_bits & 0x0000000fu) != 0) {
638 if ((cached_has_bits & 0x00000001u) != 0) {
639 if (!from._internal_var_id().empty()) {
640 _this->_internal_set_var_id(from._internal_var_id());
641 } else {
642 if (_this->_impl_.var_id_.IsDefault()) {
643 _this->_internal_set_var_id("");
644 }
645 }
646 }
647 if ((cached_has_bits & 0x00000002u) != 0) {
648 if (from._internal_min() != 0) {
649 _this->_impl_.min_ = from._impl_.min_;
650 }
651 }
652 if ((cached_has_bits & 0x00000004u) != 0) {
653 if (from._internal_max() != 0) {
654 _this->_impl_.max_ = from._impl_.max_;
655 }
656 }
657 if ((cached_has_bits & 0x00000008u) != 0) {
658 if (from._internal_active() != 0) {
659 _this->_impl_.active_ = from._impl_.active_;
660 }
661 }
662 }
663 _this->_impl_._has_bits_[0] |= cached_has_bits;
664 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
665}
666
668// @@protoc_insertion_point(class_specific_copy_from_start:operations_research.IntVarAssignment)
669 if (&from == this) return;
670 Clear();
671 MergeFrom(from);
672}
673
674
675void IntVarAssignment::InternalSwap(IntVarAssignment* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
676 using ::std::swap;
677 auto* arena = GetArena();
678 ABSL_DCHECK_EQ(arena, other->GetArena());
679 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
680 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
681 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.var_id_, &other->_impl_.var_id_, arena);
682 ::google::protobuf::internal::memswap<
683 PROTOBUF_FIELD_OFFSET(IntVarAssignment, _impl_.active_)
684 + sizeof(IntVarAssignment::_impl_.active_)
685 - PROTOBUF_FIELD_OFFSET(IntVarAssignment, _impl_.min_)>(
686 reinterpret_cast<char*>(&_impl_.min_),
687 reinterpret_cast<char*>(&other->_impl_.min_));
688}
689
690::google::protobuf::Metadata IntVarAssignment::GetMetadata() const {
691 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
692}
693// ===================================================================
694
696 public:
697 using HasBits =
698 decltype(::std::declval<IntervalVarAssignment>()._impl_._has_bits_);
699 static constexpr ::int32_t kHasBitsOffset =
700 8 * PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_._has_bits_);
702
703IntervalVarAssignment::IntervalVarAssignment(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
704#if defined(PROTOBUF_CUSTOM_VTABLE)
705 : ::google::protobuf::Message(arena, IntervalVarAssignment_class_data_.base()) {
706#else // PROTOBUF_CUSTOM_VTABLE
707 : ::google::protobuf::Message(arena) {
708#endif // PROTOBUF_CUSTOM_VTABLE
709 SharedCtor(arena);
710 // @@protoc_insertion_point(arena_constructor:operations_research.IntervalVarAssignment)
711}
712PROTOBUF_NDEBUG_INLINE IntervalVarAssignment::Impl_::Impl_(
713 ::google::protobuf::internal::InternalVisibility visibility,
714 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
715 const ::operations_research::IntervalVarAssignment& from_msg)
716 : _has_bits_{from._has_bits_},
717 _cached_size_{0},
718 var_id_(arena, from.var_id_) {}
719
721 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
723#if defined(PROTOBUF_CUSTOM_VTABLE)
724 : ::google::protobuf::Message(arena, IntervalVarAssignment_class_data_.base()) {
725#else // PROTOBUF_CUSTOM_VTABLE
726 : ::google::protobuf::Message(arena) {
727#endif // PROTOBUF_CUSTOM_VTABLE
728 IntervalVarAssignment* const _this = this;
729 (void)_this;
730 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
731 from._internal_metadata_);
732 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
733 ::memcpy(reinterpret_cast<char *>(&_impl_) +
734 offsetof(Impl_, start_min_),
735 reinterpret_cast<const char *>(&from._impl_) +
736 offsetof(Impl_, start_min_),
737 offsetof(Impl_, active_) -
738 offsetof(Impl_, start_min_) +
739 sizeof(Impl_::active_));
740
741 // @@protoc_insertion_point(copy_constructor:operations_research.IntervalVarAssignment)
742}
743PROTOBUF_NDEBUG_INLINE IntervalVarAssignment::Impl_::Impl_(
744 ::google::protobuf::internal::InternalVisibility visibility,
745 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
746 : _cached_size_{0},
747 var_id_(arena) {}
748
749inline void IntervalVarAssignment::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
750 new (&_impl_) Impl_(internal_visibility(), arena);
751 ::memset(reinterpret_cast<char *>(&_impl_) +
752 offsetof(Impl_, start_min_),
753 0,
754 offsetof(Impl_, active_) -
755 offsetof(Impl_, start_min_) +
756 sizeof(Impl_::active_));
757}
759 // @@protoc_insertion_point(destructor:operations_research.IntervalVarAssignment)
760 SharedDtor(*this);
761}
762inline void IntervalVarAssignment::SharedDtor(MessageLite& self) {
763 IntervalVarAssignment& this_ = static_cast<IntervalVarAssignment&>(self);
764 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
765 ABSL_DCHECK(this_.GetArena() == nullptr);
766 this_._impl_.var_id_.Destroy();
767 this_._impl_.~Impl_();
768}
769
770inline void* PROTOBUF_NONNULL IntervalVarAssignment::PlacementNew_(
771 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
772 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
773 return ::new (mem) IntervalVarAssignment(arena);
774}
776 return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(IntervalVarAssignment),
778}
780 return ::google::protobuf::internal::ClassDataFull{
781 ::google::protobuf::internal::ClassData{
783 &_table_.header,
784 nullptr, // OnDemandRegisterArenaDtor
785 nullptr, // IsInitialized
786 &IntervalVarAssignment::MergeImpl,
787 ::google::protobuf::Message::GetNewImpl<IntervalVarAssignment>(),
788#if defined(PROTOBUF_CUSTOM_VTABLE)
789 &IntervalVarAssignment::SharedDtor,
790 ::google::protobuf::Message::GetClearImpl<IntervalVarAssignment>(), &IntervalVarAssignment::ByteSizeLong,
792#endif // PROTOBUF_CUSTOM_VTABLE
793 PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_._cached_size_),
794 false,
795 },
796 &IntervalVarAssignment::kDescriptorMethods,
798 nullptr, // tracker
799 };
800}
801
802PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
803 ::google::protobuf::internal::ClassDataFull IntervalVarAssignment_class_data_ =
806PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
808 ::google::protobuf::internal::PrefetchToLocalCache(&IntervalVarAssignment_class_data_);
809 ::google::protobuf::internal::PrefetchToLocalCache(IntervalVarAssignment_class_data_.tc_table);
811}
812PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
813const ::_pbi::TcParseTable<4, 10, 0, 64, 2>
814IntervalVarAssignment::_table_ = {
815 {
816 PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_._has_bits_),
817 0, // no _extensions_
818 10, 120, // max_field_number, fast_idx_mask
819 offsetof(decltype(_table_), field_lookup_table),
820 4294966272, // skipmap
821 offsetof(decltype(_table_), field_entries),
822 10, // num_field_entries
823 0, // num_aux_entries
824 offsetof(decltype(_table_), field_names), // no aux_entries
826 nullptr, // post_loop_handler
827 ::_pbi::TcParser::GenericFallback, // fallback
828 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
829 ::_pbi::TcParser::GetTable<::operations_research::IntervalVarAssignment>(), // to_prefetch
830 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
831 }, {{
832 {::_pbi::TcParser::MiniParse, {}},
833 // string var_id = 1;
834 {::_pbi::TcParser::FastUS1,
835 {10, 0, 0, PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_.var_id_)}},
836 // int64 start_min = 2;
837 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(IntervalVarAssignment, _impl_.start_min_), 1>(),
838 {16, 1, 0, PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_.start_min_)}},
839 // int64 start_max = 3;
840 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(IntervalVarAssignment, _impl_.start_max_), 2>(),
841 {24, 2, 0, PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_.start_max_)}},
842 // int64 duration_min = 4;
843 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(IntervalVarAssignment, _impl_.duration_min_), 3>(),
844 {32, 3, 0, PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_.duration_min_)}},
845 // int64 duration_max = 5;
846 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(IntervalVarAssignment, _impl_.duration_max_), 4>(),
847 {40, 4, 0, PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_.duration_max_)}},
848 // int64 end_min = 6;
849 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(IntervalVarAssignment, _impl_.end_min_), 5>(),
850 {48, 5, 0, PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_.end_min_)}},
851 // int64 end_max = 7;
852 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(IntervalVarAssignment, _impl_.end_max_), 6>(),
853 {56, 6, 0, PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_.end_max_)}},
854 // int64 performed_min = 8;
855 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(IntervalVarAssignment, _impl_.performed_min_), 7>(),
856 {64, 7, 0, PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_.performed_min_)}},
857 // int64 performed_max = 9;
858 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(IntervalVarAssignment, _impl_.performed_max_), 8>(),
859 {72, 8, 0, PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_.performed_max_)}},
860 // bool active = 10;
861 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(IntervalVarAssignment, _impl_.active_), 9>(),
862 {80, 9, 0, PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_.active_)}},
863 {::_pbi::TcParser::MiniParse, {}},
864 {::_pbi::TcParser::MiniParse, {}},
865 {::_pbi::TcParser::MiniParse, {}},
866 {::_pbi::TcParser::MiniParse, {}},
867 {::_pbi::TcParser::MiniParse, {}},
868 }}, {{
869 65535, 65535
870 }}, {{
871 // string var_id = 1;
872 {PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_.var_id_), _Internal::kHasBitsOffset + 0, 0,
873 (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
874 // int64 start_min = 2;
875 {PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_.start_min_), _Internal::kHasBitsOffset + 1, 0,
876 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
877 // int64 start_max = 3;
878 {PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_.start_max_), _Internal::kHasBitsOffset + 2, 0,
879 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
880 // int64 duration_min = 4;
881 {PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_.duration_min_), _Internal::kHasBitsOffset + 3, 0,
882 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
883 // int64 duration_max = 5;
884 {PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_.duration_max_), _Internal::kHasBitsOffset + 4, 0,
885 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
886 // int64 end_min = 6;
887 {PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_.end_min_), _Internal::kHasBitsOffset + 5, 0,
888 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
889 // int64 end_max = 7;
890 {PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_.end_max_), _Internal::kHasBitsOffset + 6, 0,
891 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
892 // int64 performed_min = 8;
893 {PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_.performed_min_), _Internal::kHasBitsOffset + 7, 0,
894 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
895 // int64 performed_max = 9;
896 {PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_.performed_max_), _Internal::kHasBitsOffset + 8, 0,
897 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
898 // bool active = 10;
899 {PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_.active_), _Internal::kHasBitsOffset + 9, 0,
900 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
901 }},
902 // no aux_entries
903 {{
904 "\51\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
905 "operations_research.IntervalVarAssignment"
906 "var_id"
907 }},
908};
909PROTOBUF_NOINLINE void IntervalVarAssignment::Clear() {
910// @@protoc_insertion_point(message_clear_start:operations_research.IntervalVarAssignment)
911 ::google::protobuf::internal::TSanWrite(&_impl_);
912 ::uint32_t cached_has_bits = 0;
913 // Prevent compiler warnings about cached_has_bits being unused
914 (void) cached_has_bits;
915
916 cached_has_bits = _impl_._has_bits_[0];
917 if ((cached_has_bits & 0x00000001u) != 0) {
918 _impl_.var_id_.ClearNonDefaultToEmpty();
919 }
920 if ((cached_has_bits & 0x000000feu) != 0) {
921 ::memset(&_impl_.start_min_, 0, static_cast<::size_t>(
922 reinterpret_cast<char*>(&_impl_.performed_min_) -
923 reinterpret_cast<char*>(&_impl_.start_min_)) + sizeof(_impl_.performed_min_));
924 }
925 if ((cached_has_bits & 0x00000300u) != 0) {
926 ::memset(&_impl_.performed_max_, 0, static_cast<::size_t>(
927 reinterpret_cast<char*>(&_impl_.active_) -
928 reinterpret_cast<char*>(&_impl_.performed_max_)) + sizeof(_impl_.active_));
929 }
930 _impl_._has_bits_.Clear();
931 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
932}
933
934#if defined(PROTOBUF_CUSTOM_VTABLE)
935::uint8_t* PROTOBUF_NONNULL IntervalVarAssignment::_InternalSerialize(
936 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
937 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
938 const IntervalVarAssignment& this_ = static_cast<const IntervalVarAssignment&>(base);
939#else // PROTOBUF_CUSTOM_VTABLE
940::uint8_t* PROTOBUF_NONNULL IntervalVarAssignment::_InternalSerialize(
941 ::uint8_t* PROTOBUF_NONNULL target,
942 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
943 const IntervalVarAssignment& this_ = *this;
944#endif // PROTOBUF_CUSTOM_VTABLE
945 // @@protoc_insertion_point(serialize_to_array_start:operations_research.IntervalVarAssignment)
946 ::uint32_t cached_has_bits = 0;
947 (void)cached_has_bits;
948
949 // string var_id = 1;
950 if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) {
951 if (!this_._internal_var_id().empty()) {
952 const ::std::string& _s = this_._internal_var_id();
953 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
954 _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "operations_research.IntervalVarAssignment.var_id");
955 target = stream->WriteStringMaybeAliased(1, _s, target);
956 }
957 }
958
959 // int64 start_min = 2;
960 if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) {
961 if (this_._internal_start_min() != 0) {
962 target =
963 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
964 stream, this_._internal_start_min(), target);
965 }
966 }
967
968 // int64 start_max = 3;
969 if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) {
970 if (this_._internal_start_max() != 0) {
971 target =
972 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>(
973 stream, this_._internal_start_max(), target);
974 }
975 }
976
977 // int64 duration_min = 4;
978 if ((this_._impl_._has_bits_[0] & 0x00000008u) != 0) {
979 if (this_._internal_duration_min() != 0) {
980 target =
981 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<4>(
982 stream, this_._internal_duration_min(), target);
983 }
984 }
985
986 // int64 duration_max = 5;
987 if ((this_._impl_._has_bits_[0] & 0x00000010u) != 0) {
988 if (this_._internal_duration_max() != 0) {
989 target =
990 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<5>(
991 stream, this_._internal_duration_max(), target);
992 }
993 }
994
995 // int64 end_min = 6;
996 if ((this_._impl_._has_bits_[0] & 0x00000020u) != 0) {
997 if (this_._internal_end_min() != 0) {
998 target =
999 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<6>(
1000 stream, this_._internal_end_min(), target);
1001 }
1002 }
1003
1004 // int64 end_max = 7;
1005 if ((this_._impl_._has_bits_[0] & 0x00000040u) != 0) {
1006 if (this_._internal_end_max() != 0) {
1007 target =
1008 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<7>(
1009 stream, this_._internal_end_max(), target);
1010 }
1011 }
1012
1013 // int64 performed_min = 8;
1014 if ((this_._impl_._has_bits_[0] & 0x00000080u) != 0) {
1015 if (this_._internal_performed_min() != 0) {
1016 target =
1017 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<8>(
1018 stream, this_._internal_performed_min(), target);
1019 }
1020 }
1021
1022 // int64 performed_max = 9;
1023 if ((this_._impl_._has_bits_[0] & 0x00000100u) != 0) {
1024 if (this_._internal_performed_max() != 0) {
1025 target =
1026 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<9>(
1027 stream, this_._internal_performed_max(), target);
1028 }
1029 }
1030
1031 // bool active = 10;
1032 if ((this_._impl_._has_bits_[0] & 0x00000200u) != 0) {
1033 if (this_._internal_active() != 0) {
1034 target = stream->EnsureSpace(target);
1035 target = ::_pbi::WireFormatLite::WriteBoolToArray(
1036 10, this_._internal_active(), target);
1037 }
1038 }
1039
1040 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1041 target =
1042 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1043 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1044 }
1045 // @@protoc_insertion_point(serialize_to_array_end:operations_research.IntervalVarAssignment)
1046 return target;
1047}
1048
1049#if defined(PROTOBUF_CUSTOM_VTABLE)
1051 const IntervalVarAssignment& this_ = static_cast<const IntervalVarAssignment&>(base);
1052#else // PROTOBUF_CUSTOM_VTABLE
1053::size_t IntervalVarAssignment::ByteSizeLong() const {
1054 const IntervalVarAssignment& this_ = *this;
1055#endif // PROTOBUF_CUSTOM_VTABLE
1056 // @@protoc_insertion_point(message_byte_size_start:operations_research.IntervalVarAssignment)
1057 ::size_t total_size = 0;
1058
1059 ::uint32_t cached_has_bits = 0;
1060 // Prevent compiler warnings about cached_has_bits being unused
1061 (void)cached_has_bits;
1062
1063 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1064 cached_has_bits = this_._impl_._has_bits_[0];
1065 if ((cached_has_bits & 0x000000ffu) != 0) {
1066 // string var_id = 1;
1067 if ((cached_has_bits & 0x00000001u) != 0) {
1068 if (!this_._internal_var_id().empty()) {
1069 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
1070 this_._internal_var_id());
1071 }
1072 }
1073 // int64 start_min = 2;
1074 if ((cached_has_bits & 0x00000002u) != 0) {
1075 if (this_._internal_start_min() != 0) {
1076 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
1077 this_._internal_start_min());
1078 }
1079 }
1080 // int64 start_max = 3;
1081 if ((cached_has_bits & 0x00000004u) != 0) {
1082 if (this_._internal_start_max() != 0) {
1083 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
1084 this_._internal_start_max());
1085 }
1086 }
1087 // int64 duration_min = 4;
1088 if ((cached_has_bits & 0x00000008u) != 0) {
1089 if (this_._internal_duration_min() != 0) {
1090 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
1091 this_._internal_duration_min());
1092 }
1093 }
1094 // int64 duration_max = 5;
1095 if ((cached_has_bits & 0x00000010u) != 0) {
1096 if (this_._internal_duration_max() != 0) {
1097 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
1098 this_._internal_duration_max());
1099 }
1100 }
1101 // int64 end_min = 6;
1102 if ((cached_has_bits & 0x00000020u) != 0) {
1103 if (this_._internal_end_min() != 0) {
1104 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
1105 this_._internal_end_min());
1106 }
1107 }
1108 // int64 end_max = 7;
1109 if ((cached_has_bits & 0x00000040u) != 0) {
1110 if (this_._internal_end_max() != 0) {
1111 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
1112 this_._internal_end_max());
1113 }
1114 }
1115 // int64 performed_min = 8;
1116 if ((cached_has_bits & 0x00000080u) != 0) {
1117 if (this_._internal_performed_min() != 0) {
1118 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
1119 this_._internal_performed_min());
1120 }
1121 }
1122 }
1123 if ((cached_has_bits & 0x00000300u) != 0) {
1124 // int64 performed_max = 9;
1125 if ((cached_has_bits & 0x00000100u) != 0) {
1126 if (this_._internal_performed_max() != 0) {
1127 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
1128 this_._internal_performed_max());
1129 }
1130 }
1131 // bool active = 10;
1132 if ((cached_has_bits & 0x00000200u) != 0) {
1133 if (this_._internal_active() != 0) {
1134 total_size += 2;
1135 }
1136 }
1137 }
1138 return this_.MaybeComputeUnknownFieldsSize(total_size,
1139 &this_._impl_._cached_size_);
1140}
1141
1142void IntervalVarAssignment::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
1143 auto* const _this = static_cast<IntervalVarAssignment*>(&to_msg);
1144 auto& from = static_cast<const IntervalVarAssignment&>(from_msg);
1145 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.IntervalVarAssignment)
1146 ABSL_DCHECK_NE(&from, _this);
1147 ::uint32_t cached_has_bits = 0;
1148 (void) cached_has_bits;
1149
1150 cached_has_bits = from._impl_._has_bits_[0];
1151 if ((cached_has_bits & 0x000000ffu) != 0) {
1152 if ((cached_has_bits & 0x00000001u) != 0) {
1153 if (!from._internal_var_id().empty()) {
1154 _this->_internal_set_var_id(from._internal_var_id());
1155 } else {
1156 if (_this->_impl_.var_id_.IsDefault()) {
1157 _this->_internal_set_var_id("");
1158 }
1159 }
1160 }
1161 if ((cached_has_bits & 0x00000002u) != 0) {
1162 if (from._internal_start_min() != 0) {
1163 _this->_impl_.start_min_ = from._impl_.start_min_;
1164 }
1165 }
1166 if ((cached_has_bits & 0x00000004u) != 0) {
1167 if (from._internal_start_max() != 0) {
1168 _this->_impl_.start_max_ = from._impl_.start_max_;
1169 }
1170 }
1171 if ((cached_has_bits & 0x00000008u) != 0) {
1172 if (from._internal_duration_min() != 0) {
1173 _this->_impl_.duration_min_ = from._impl_.duration_min_;
1174 }
1175 }
1176 if ((cached_has_bits & 0x00000010u) != 0) {
1177 if (from._internal_duration_max() != 0) {
1178 _this->_impl_.duration_max_ = from._impl_.duration_max_;
1179 }
1180 }
1181 if ((cached_has_bits & 0x00000020u) != 0) {
1182 if (from._internal_end_min() != 0) {
1183 _this->_impl_.end_min_ = from._impl_.end_min_;
1184 }
1185 }
1186 if ((cached_has_bits & 0x00000040u) != 0) {
1187 if (from._internal_end_max() != 0) {
1188 _this->_impl_.end_max_ = from._impl_.end_max_;
1189 }
1190 }
1191 if ((cached_has_bits & 0x00000080u) != 0) {
1192 if (from._internal_performed_min() != 0) {
1193 _this->_impl_.performed_min_ = from._impl_.performed_min_;
1194 }
1195 }
1196 }
1197 if ((cached_has_bits & 0x00000300u) != 0) {
1198 if ((cached_has_bits & 0x00000100u) != 0) {
1199 if (from._internal_performed_max() != 0) {
1200 _this->_impl_.performed_max_ = from._impl_.performed_max_;
1201 }
1202 }
1203 if ((cached_has_bits & 0x00000200u) != 0) {
1204 if (from._internal_active() != 0) {
1205 _this->_impl_.active_ = from._impl_.active_;
1206 }
1207 }
1208 }
1209 _this->_impl_._has_bits_[0] |= cached_has_bits;
1210 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
1211}
1212
1213void IntervalVarAssignment::CopyFrom(const IntervalVarAssignment& from) {
1214// @@protoc_insertion_point(class_specific_copy_from_start:operations_research.IntervalVarAssignment)
1215 if (&from == this) return;
1216 Clear();
1217 MergeFrom(from);
1218}
1219
1220
1221void IntervalVarAssignment::InternalSwap(IntervalVarAssignment* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1222 using ::std::swap;
1223 auto* arena = GetArena();
1224 ABSL_DCHECK_EQ(arena, other->GetArena());
1225 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1226 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1227 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.var_id_, &other->_impl_.var_id_, arena);
1228 ::google::protobuf::internal::memswap<
1229 PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_.active_)
1230 + sizeof(IntervalVarAssignment::_impl_.active_)
1231 - PROTOBUF_FIELD_OFFSET(IntervalVarAssignment, _impl_.start_min_)>(
1232 reinterpret_cast<char*>(&_impl_.start_min_),
1233 reinterpret_cast<char*>(&other->_impl_.start_min_));
1234}
1235
1236::google::protobuf::Metadata IntervalVarAssignment::GetMetadata() const {
1237 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1239// ===================================================================
1240
1242 public:
1243 using HasBits =
1244 decltype(::std::declval<SequenceVarAssignment>()._impl_._has_bits_);
1245 static constexpr ::int32_t kHasBitsOffset =
1246 8 * PROTOBUF_FIELD_OFFSET(SequenceVarAssignment, _impl_._has_bits_);
1247};
1249SequenceVarAssignment::SequenceVarAssignment(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1250#if defined(PROTOBUF_CUSTOM_VTABLE)
1251 : ::google::protobuf::Message(arena, SequenceVarAssignment_class_data_.base()) {
1252#else // PROTOBUF_CUSTOM_VTABLE
1253 : ::google::protobuf::Message(arena) {
1254#endif // PROTOBUF_CUSTOM_VTABLE
1255 SharedCtor(arena);
1256 // @@protoc_insertion_point(arena_constructor:operations_research.SequenceVarAssignment)
1257}
1258PROTOBUF_NDEBUG_INLINE SequenceVarAssignment::Impl_::Impl_(
1259 ::google::protobuf::internal::InternalVisibility visibility,
1260 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
1261 const ::operations_research::SequenceVarAssignment& from_msg)
1262 : _has_bits_{from._has_bits_},
1263 _cached_size_{0},
1264 forward_sequence_{visibility, arena, from.forward_sequence_},
1265 _forward_sequence_cached_byte_size_{0},
1266 backward_sequence_{visibility, arena, from.backward_sequence_},
1267 _backward_sequence_cached_byte_size_{0},
1268 unperformed_{visibility, arena, from.unperformed_},
1269 _unperformed_cached_byte_size_{0},
1270 var_id_(arena, from.var_id_) {}
1271
1273 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1274 const SequenceVarAssignment& from)
1275#if defined(PROTOBUF_CUSTOM_VTABLE)
1276 : ::google::protobuf::Message(arena, SequenceVarAssignment_class_data_.base()) {
1277#else // PROTOBUF_CUSTOM_VTABLE
1278 : ::google::protobuf::Message(arena) {
1279#endif // PROTOBUF_CUSTOM_VTABLE
1280 SequenceVarAssignment* const _this = this;
1281 (void)_this;
1282 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1283 from._internal_metadata_);
1284 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1285 _impl_.active_ = from._impl_.active_;
1286
1287 // @@protoc_insertion_point(copy_constructor:operations_research.SequenceVarAssignment)
1288}
1289PROTOBUF_NDEBUG_INLINE SequenceVarAssignment::Impl_::Impl_(
1290 ::google::protobuf::internal::InternalVisibility visibility,
1291 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1292 : _cached_size_{0},
1293 forward_sequence_{visibility, arena},
1294 _forward_sequence_cached_byte_size_{0},
1295 backward_sequence_{visibility, arena},
1296 _backward_sequence_cached_byte_size_{0},
1297 unperformed_{visibility, arena},
1298 _unperformed_cached_byte_size_{0},
1299 var_id_(arena) {}
1300
1301inline void SequenceVarAssignment::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1302 new (&_impl_) Impl_(internal_visibility(), arena);
1303 _impl_.active_ = {};
1304}
1306 // @@protoc_insertion_point(destructor:operations_research.SequenceVarAssignment)
1307 SharedDtor(*this);
1309inline void SequenceVarAssignment::SharedDtor(MessageLite& self) {
1310 SequenceVarAssignment& this_ = static_cast<SequenceVarAssignment&>(self);
1311 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1312 ABSL_DCHECK(this_.GetArena() == nullptr);
1313 this_._impl_.var_id_.Destroy();
1314 this_._impl_.~Impl_();
1315}
1316
1317inline void* PROTOBUF_NONNULL SequenceVarAssignment::PlacementNew_(
1318 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1319 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1320 return ::new (mem) SequenceVarAssignment(arena);
1321}
1323 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
1324 PROTOBUF_FIELD_OFFSET(SequenceVarAssignment, _impl_.forward_sequence_) +
1325 decltype(SequenceVarAssignment::_impl_.forward_sequence_)::
1326 InternalGetArenaOffset(
1327 ::google::protobuf::Message::internal_visibility()),
1328 PROTOBUF_FIELD_OFFSET(SequenceVarAssignment, _impl_.backward_sequence_) +
1329 decltype(SequenceVarAssignment::_impl_.backward_sequence_)::
1330 InternalGetArenaOffset(
1331 ::google::protobuf::Message::internal_visibility()),
1332 PROTOBUF_FIELD_OFFSET(SequenceVarAssignment, _impl_.unperformed_) +
1333 decltype(SequenceVarAssignment::_impl_.unperformed_)::
1334 InternalGetArenaOffset(
1335 ::google::protobuf::Message::internal_visibility()),
1336 });
1337 if (arena_bits.has_value()) {
1338 return ::google::protobuf::internal::MessageCreator::CopyInit(
1339 sizeof(SequenceVarAssignment), alignof(SequenceVarAssignment), *arena_bits);
1340 } else {
1341 return ::google::protobuf::internal::MessageCreator(&SequenceVarAssignment::PlacementNew_,
1342 sizeof(SequenceVarAssignment),
1343 alignof(SequenceVarAssignment));
1344 }
1345}
1347 return ::google::protobuf::internal::ClassDataFull{
1348 ::google::protobuf::internal::ClassData{
1350 &_table_.header,
1351 nullptr, // OnDemandRegisterArenaDtor
1352 nullptr, // IsInitialized
1353 &SequenceVarAssignment::MergeImpl,
1354 ::google::protobuf::Message::GetNewImpl<SequenceVarAssignment>(),
1355#if defined(PROTOBUF_CUSTOM_VTABLE)
1356 &SequenceVarAssignment::SharedDtor,
1357 ::google::protobuf::Message::GetClearImpl<SequenceVarAssignment>(), &SequenceVarAssignment::ByteSizeLong,
1359#endif // PROTOBUF_CUSTOM_VTABLE
1360 PROTOBUF_FIELD_OFFSET(SequenceVarAssignment, _impl_._cached_size_),
1361 false,
1362 },
1363 &SequenceVarAssignment::kDescriptorMethods,
1365 nullptr, // tracker
1366 };
1367}
1368
1369PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1370 ::google::protobuf::internal::ClassDataFull SequenceVarAssignment_class_data_ =
1372
1373PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1375 ::google::protobuf::internal::PrefetchToLocalCache(&SequenceVarAssignment_class_data_);
1376 ::google::protobuf::internal::PrefetchToLocalCache(SequenceVarAssignment_class_data_.tc_table);
1378}
1379PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1380const ::_pbi::TcParseTable<3, 5, 0, 56, 2>
1381SequenceVarAssignment::_table_ = {
1382 {
1383 PROTOBUF_FIELD_OFFSET(SequenceVarAssignment, _impl_._has_bits_),
1384 0, // no _extensions_
1385 5, 56, // max_field_number, fast_idx_mask
1386 offsetof(decltype(_table_), field_lookup_table),
1387 4294967264, // skipmap
1388 offsetof(decltype(_table_), field_entries),
1389 5, // num_field_entries
1390 0, // num_aux_entries
1391 offsetof(decltype(_table_), field_names), // no aux_entries
1393 nullptr, // post_loop_handler
1394 ::_pbi::TcParser::GenericFallback, // fallback
1395 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1396 ::_pbi::TcParser::GetTable<::operations_research::SequenceVarAssignment>(), // to_prefetch
1397 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
1398 }, {{
1399 {::_pbi::TcParser::MiniParse, {}},
1400 // string var_id = 1;
1401 {::_pbi::TcParser::FastUS1,
1402 {10, 0, 0, PROTOBUF_FIELD_OFFSET(SequenceVarAssignment, _impl_.var_id_)}},
1403 // repeated int32 forward_sequence = 2;
1404 {::_pbi::TcParser::FastV32P1,
1405 {18, 63, 0, PROTOBUF_FIELD_OFFSET(SequenceVarAssignment, _impl_.forward_sequence_)}},
1406 // repeated int32 backward_sequence = 3;
1407 {::_pbi::TcParser::FastV32P1,
1408 {26, 63, 0, PROTOBUF_FIELD_OFFSET(SequenceVarAssignment, _impl_.backward_sequence_)}},
1409 // repeated int32 unperformed = 4;
1410 {::_pbi::TcParser::FastV32P1,
1411 {34, 63, 0, PROTOBUF_FIELD_OFFSET(SequenceVarAssignment, _impl_.unperformed_)}},
1412 // bool active = 5;
1413 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(SequenceVarAssignment, _impl_.active_), 1>(),
1414 {40, 1, 0, PROTOBUF_FIELD_OFFSET(SequenceVarAssignment, _impl_.active_)}},
1415 {::_pbi::TcParser::MiniParse, {}},
1416 {::_pbi::TcParser::MiniParse, {}},
1417 }}, {{
1418 65535, 65535
1419 }}, {{
1420 // string var_id = 1;
1421 {PROTOBUF_FIELD_OFFSET(SequenceVarAssignment, _impl_.var_id_), _Internal::kHasBitsOffset + 0, 0,
1422 (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
1423 // repeated int32 forward_sequence = 2;
1424 {PROTOBUF_FIELD_OFFSET(SequenceVarAssignment, _impl_.forward_sequence_), -1, 0,
1425 (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)},
1426 // repeated int32 backward_sequence = 3;
1427 {PROTOBUF_FIELD_OFFSET(SequenceVarAssignment, _impl_.backward_sequence_), -1, 0,
1428 (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)},
1429 // repeated int32 unperformed = 4;
1430 {PROTOBUF_FIELD_OFFSET(SequenceVarAssignment, _impl_.unperformed_), -1, 0,
1431 (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)},
1432 // bool active = 5;
1433 {PROTOBUF_FIELD_OFFSET(SequenceVarAssignment, _impl_.active_), _Internal::kHasBitsOffset + 1, 0,
1434 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
1435 }},
1436 // no aux_entries
1437 {{
1438 "\51\6\0\0\0\0\0\0"
1439 "operations_research.SequenceVarAssignment"
1440 "var_id"
1441 }},
1442};
1443PROTOBUF_NOINLINE void SequenceVarAssignment::Clear() {
1444// @@protoc_insertion_point(message_clear_start:operations_research.SequenceVarAssignment)
1445 ::google::protobuf::internal::TSanWrite(&_impl_);
1446 ::uint32_t cached_has_bits = 0;
1447 // Prevent compiler warnings about cached_has_bits being unused
1448 (void) cached_has_bits;
1449
1450 _impl_.forward_sequence_.Clear();
1451 _impl_.backward_sequence_.Clear();
1452 _impl_.unperformed_.Clear();
1453 cached_has_bits = _impl_._has_bits_[0];
1454 if ((cached_has_bits & 0x00000001u) != 0) {
1455 _impl_.var_id_.ClearNonDefaultToEmpty();
1456 }
1457 _impl_.active_ = false;
1458 _impl_._has_bits_.Clear();
1459 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1460}
1461
1462#if defined(PROTOBUF_CUSTOM_VTABLE)
1463::uint8_t* PROTOBUF_NONNULL SequenceVarAssignment::_InternalSerialize(
1464 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1465 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1466 const SequenceVarAssignment& this_ = static_cast<const SequenceVarAssignment&>(base);
1467#else // PROTOBUF_CUSTOM_VTABLE
1468::uint8_t* PROTOBUF_NONNULL SequenceVarAssignment::_InternalSerialize(
1469 ::uint8_t* PROTOBUF_NONNULL target,
1470 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1471 const SequenceVarAssignment& this_ = *this;
1472#endif // PROTOBUF_CUSTOM_VTABLE
1473 // @@protoc_insertion_point(serialize_to_array_start:operations_research.SequenceVarAssignment)
1474 ::uint32_t cached_has_bits = 0;
1475 (void)cached_has_bits;
1476
1477 // string var_id = 1;
1478 if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) {
1479 if (!this_._internal_var_id().empty()) {
1480 const ::std::string& _s = this_._internal_var_id();
1481 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1482 _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "operations_research.SequenceVarAssignment.var_id");
1483 target = stream->WriteStringMaybeAliased(1, _s, target);
1484 }
1485 }
1486
1487 // repeated int32 forward_sequence = 2;
1488 {
1489 int byte_size = this_._impl_._forward_sequence_cached_byte_size_.Get();
1490 if (byte_size > 0) {
1491 target = stream->WriteInt32Packed(
1492 2, this_._internal_forward_sequence(), byte_size, target);
1493 }
1494 }
1495
1496 // repeated int32 backward_sequence = 3;
1497 {
1498 int byte_size = this_._impl_._backward_sequence_cached_byte_size_.Get();
1499 if (byte_size > 0) {
1500 target = stream->WriteInt32Packed(
1501 3, this_._internal_backward_sequence(), byte_size, target);
1502 }
1503 }
1504
1505 // repeated int32 unperformed = 4;
1506 {
1507 int byte_size = this_._impl_._unperformed_cached_byte_size_.Get();
1508 if (byte_size > 0) {
1509 target = stream->WriteInt32Packed(
1510 4, this_._internal_unperformed(), byte_size, target);
1511 }
1512 }
1513
1514 // bool active = 5;
1515 if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) {
1516 if (this_._internal_active() != 0) {
1517 target = stream->EnsureSpace(target);
1518 target = ::_pbi::WireFormatLite::WriteBoolToArray(
1519 5, this_._internal_active(), target);
1520 }
1521 }
1522
1523 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1524 target =
1525 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1526 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1527 }
1528 // @@protoc_insertion_point(serialize_to_array_end:operations_research.SequenceVarAssignment)
1529 return target;
1530}
1531
1532#if defined(PROTOBUF_CUSTOM_VTABLE)
1534 const SequenceVarAssignment& this_ = static_cast<const SequenceVarAssignment&>(base);
1535#else // PROTOBUF_CUSTOM_VTABLE
1536::size_t SequenceVarAssignment::ByteSizeLong() const {
1537 const SequenceVarAssignment& this_ = *this;
1538#endif // PROTOBUF_CUSTOM_VTABLE
1539 // @@protoc_insertion_point(message_byte_size_start:operations_research.SequenceVarAssignment)
1540 ::size_t total_size = 0;
1541
1542 ::uint32_t cached_has_bits = 0;
1543 // Prevent compiler warnings about cached_has_bits being unused
1544 (void)cached_has_bits;
1545
1546 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1547 {
1548 // repeated int32 forward_sequence = 2;
1549 {
1550 total_size +=
1551 ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize(
1552 this_._internal_forward_sequence(), 1,
1553 this_._impl_._forward_sequence_cached_byte_size_);
1554 }
1555 // repeated int32 backward_sequence = 3;
1556 {
1557 total_size +=
1558 ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize(
1559 this_._internal_backward_sequence(), 1,
1560 this_._impl_._backward_sequence_cached_byte_size_);
1561 }
1562 // repeated int32 unperformed = 4;
1563 {
1564 total_size +=
1565 ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize(
1566 this_._internal_unperformed(), 1,
1567 this_._impl_._unperformed_cached_byte_size_);
1568 }
1569 }
1570 cached_has_bits = this_._impl_._has_bits_[0];
1571 if ((cached_has_bits & 0x00000003u) != 0) {
1572 // string var_id = 1;
1573 if ((cached_has_bits & 0x00000001u) != 0) {
1574 if (!this_._internal_var_id().empty()) {
1575 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
1576 this_._internal_var_id());
1577 }
1578 }
1579 // bool active = 5;
1580 if ((cached_has_bits & 0x00000002u) != 0) {
1581 if (this_._internal_active() != 0) {
1582 total_size += 2;
1583 }
1584 }
1585 }
1586 return this_.MaybeComputeUnknownFieldsSize(total_size,
1587 &this_._impl_._cached_size_);
1588}
1589
1590void SequenceVarAssignment::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
1591 auto* const _this = static_cast<SequenceVarAssignment*>(&to_msg);
1592 auto& from = static_cast<const SequenceVarAssignment&>(from_msg);
1593 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.SequenceVarAssignment)
1594 ABSL_DCHECK_NE(&from, _this);
1595 ::uint32_t cached_has_bits = 0;
1596 (void) cached_has_bits;
1597
1598 _this->_internal_mutable_forward_sequence()->MergeFrom(from._internal_forward_sequence());
1599 _this->_internal_mutable_backward_sequence()->MergeFrom(from._internal_backward_sequence());
1600 _this->_internal_mutable_unperformed()->MergeFrom(from._internal_unperformed());
1601 cached_has_bits = from._impl_._has_bits_[0];
1602 if ((cached_has_bits & 0x00000003u) != 0) {
1603 if ((cached_has_bits & 0x00000001u) != 0) {
1604 if (!from._internal_var_id().empty()) {
1605 _this->_internal_set_var_id(from._internal_var_id());
1606 } else {
1607 if (_this->_impl_.var_id_.IsDefault()) {
1608 _this->_internal_set_var_id("");
1609 }
1610 }
1611 }
1612 if ((cached_has_bits & 0x00000002u) != 0) {
1613 if (from._internal_active() != 0) {
1614 _this->_impl_.active_ = from._impl_.active_;
1615 }
1616 }
1617 }
1618 _this->_impl_._has_bits_[0] |= cached_has_bits;
1619 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
1620}
1621
1623// @@protoc_insertion_point(class_specific_copy_from_start:operations_research.SequenceVarAssignment)
1624 if (&from == this) return;
1626 MergeFrom(from);
1627}
1628
1629
1630void SequenceVarAssignment::InternalSwap(SequenceVarAssignment* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1631 using ::std::swap;
1632 auto* arena = GetArena();
1633 ABSL_DCHECK_EQ(arena, other->GetArena());
1634 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1635 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1636 _impl_.forward_sequence_.InternalSwap(&other->_impl_.forward_sequence_);
1637 _impl_.backward_sequence_.InternalSwap(&other->_impl_.backward_sequence_);
1638 _impl_.unperformed_.InternalSwap(&other->_impl_.unperformed_);
1639 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.var_id_, &other->_impl_.var_id_, arena);
1640 swap(_impl_.active_, other->_impl_.active_);
1641}
1642
1643::google::protobuf::Metadata SequenceVarAssignment::GetMetadata() const {
1644 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1645}
1646// ===================================================================
1647
1649 public:
1650 using HasBits =
1651 decltype(::std::declval<WorkerInfo>()._impl_._has_bits_);
1652 static constexpr ::int32_t kHasBitsOffset =
1653 8 * PROTOBUF_FIELD_OFFSET(WorkerInfo, _impl_._has_bits_);
1655
1656WorkerInfo::WorkerInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1657#if defined(PROTOBUF_CUSTOM_VTABLE)
1658 : ::google::protobuf::Message(arena, WorkerInfo_class_data_.base()) {
1659#else // PROTOBUF_CUSTOM_VTABLE
1660 : ::google::protobuf::Message(arena) {
1661#endif // PROTOBUF_CUSTOM_VTABLE
1662 SharedCtor(arena);
1663 // @@protoc_insertion_point(arena_constructor:operations_research.WorkerInfo)
1664}
1665PROTOBUF_NDEBUG_INLINE WorkerInfo::Impl_::Impl_(
1666 ::google::protobuf::internal::InternalVisibility visibility,
1667 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
1668 const ::operations_research::WorkerInfo& from_msg)
1669 : _has_bits_{from._has_bits_},
1670 _cached_size_{0},
1671 bns_(arena, from.bns_) {}
1672
1674 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1675 const WorkerInfo& from)
1676#if defined(PROTOBUF_CUSTOM_VTABLE)
1677 : ::google::protobuf::Message(arena, WorkerInfo_class_data_.base()) {
1678#else // PROTOBUF_CUSTOM_VTABLE
1679 : ::google::protobuf::Message(arena) {
1680#endif // PROTOBUF_CUSTOM_VTABLE
1681 WorkerInfo* const _this = this;
1682 (void)_this;
1683 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1684 from._internal_metadata_);
1685 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1686 _impl_.worker_id_ = from._impl_.worker_id_;
1687
1688 // @@protoc_insertion_point(copy_constructor:operations_research.WorkerInfo)
1689}
1690PROTOBUF_NDEBUG_INLINE WorkerInfo::Impl_::Impl_(
1691 ::google::protobuf::internal::InternalVisibility visibility,
1692 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1693 : _cached_size_{0},
1694 bns_(arena) {}
1695
1696inline void WorkerInfo::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1697 new (&_impl_) Impl_(internal_visibility(), arena);
1698 _impl_.worker_id_ = {};
1699}
1701 // @@protoc_insertion_point(destructor:operations_research.WorkerInfo)
1702 SharedDtor(*this);
1703}
1704inline void WorkerInfo::SharedDtor(MessageLite& self) {
1705 WorkerInfo& this_ = static_cast<WorkerInfo&>(self);
1706 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1707 ABSL_DCHECK(this_.GetArena() == nullptr);
1708 this_._impl_.bns_.Destroy();
1709 this_._impl_.~Impl_();
1710}
1711
1712inline void* PROTOBUF_NONNULL WorkerInfo::PlacementNew_(
1713 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1714 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1715 return ::new (mem) WorkerInfo(arena);
1717constexpr auto WorkerInfo::InternalNewImpl_() {
1718 return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(WorkerInfo),
1719 alignof(WorkerInfo));
1720}
1722 return ::google::protobuf::internal::ClassDataFull{
1723 ::google::protobuf::internal::ClassData{
1725 &_table_.header,
1726 nullptr, // OnDemandRegisterArenaDtor
1727 nullptr, // IsInitialized
1728 &WorkerInfo::MergeImpl,
1729 ::google::protobuf::Message::GetNewImpl<WorkerInfo>(),
1730#if defined(PROTOBUF_CUSTOM_VTABLE)
1731 &WorkerInfo::SharedDtor,
1732 ::google::protobuf::Message::GetClearImpl<WorkerInfo>(), &WorkerInfo::ByteSizeLong,
1734#endif // PROTOBUF_CUSTOM_VTABLE
1735 PROTOBUF_FIELD_OFFSET(WorkerInfo, _impl_._cached_size_),
1736 false,
1737 },
1738 &WorkerInfo::kDescriptorMethods,
1740 nullptr, // tracker
1741 };
1742}
1743
1744PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1745 ::google::protobuf::internal::ClassDataFull WorkerInfo_class_data_ =
1747
1748PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1750 ::google::protobuf::internal::PrefetchToLocalCache(&WorkerInfo_class_data_);
1751 ::google::protobuf::internal::PrefetchToLocalCache(WorkerInfo_class_data_.tc_table);
1752 return WorkerInfo_class_data_.base();
1754PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1755const ::_pbi::TcParseTable<1, 2, 0, 42, 2>
1756WorkerInfo::_table_ = {
1757 {
1758 PROTOBUF_FIELD_OFFSET(WorkerInfo, _impl_._has_bits_),
1759 0, // no _extensions_
1760 2, 8, // max_field_number, fast_idx_mask
1761 offsetof(decltype(_table_), field_lookup_table),
1762 4294967292, // skipmap
1763 offsetof(decltype(_table_), field_entries),
1764 2, // num_field_entries
1765 0, // num_aux_entries
1766 offsetof(decltype(_table_), field_names), // no aux_entries
1768 nullptr, // post_loop_handler
1769 ::_pbi::TcParser::GenericFallback, // fallback
1770 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1771 ::_pbi::TcParser::GetTable<::operations_research::WorkerInfo>(), // to_prefetch
1772 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
1773 }, {{
1774 // string bns = 2;
1775 {::_pbi::TcParser::FastUS1,
1776 {18, 0, 0, PROTOBUF_FIELD_OFFSET(WorkerInfo, _impl_.bns_)}},
1777 // int32 worker_id = 1;
1778 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(WorkerInfo, _impl_.worker_id_), 1>(),
1779 {8, 1, 0, PROTOBUF_FIELD_OFFSET(WorkerInfo, _impl_.worker_id_)}},
1780 }}, {{
1781 65535, 65535
1782 }}, {{
1783 // int32 worker_id = 1;
1784 {PROTOBUF_FIELD_OFFSET(WorkerInfo, _impl_.worker_id_), _Internal::kHasBitsOffset + 1, 0,
1785 (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
1786 // string bns = 2;
1787 {PROTOBUF_FIELD_OFFSET(WorkerInfo, _impl_.bns_), _Internal::kHasBitsOffset + 0, 0,
1788 (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
1789 }},
1790 // no aux_entries
1791 {{
1792 "\36\0\3\0\0\0\0\0"
1793 "operations_research.WorkerInfo"
1794 "bns"
1795 }},
1796};
1797PROTOBUF_NOINLINE void WorkerInfo::Clear() {
1798// @@protoc_insertion_point(message_clear_start:operations_research.WorkerInfo)
1799 ::google::protobuf::internal::TSanWrite(&_impl_);
1800 ::uint32_t cached_has_bits = 0;
1801 // Prevent compiler warnings about cached_has_bits being unused
1802 (void) cached_has_bits;
1803
1804 cached_has_bits = _impl_._has_bits_[0];
1805 if ((cached_has_bits & 0x00000001u) != 0) {
1806 _impl_.bns_.ClearNonDefaultToEmpty();
1807 }
1808 _impl_.worker_id_ = 0;
1809 _impl_._has_bits_.Clear();
1810 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1811}
1812
1813#if defined(PROTOBUF_CUSTOM_VTABLE)
1814::uint8_t* PROTOBUF_NONNULL WorkerInfo::_InternalSerialize(
1815 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1816 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1817 const WorkerInfo& this_ = static_cast<const WorkerInfo&>(base);
1818#else // PROTOBUF_CUSTOM_VTABLE
1819::uint8_t* PROTOBUF_NONNULL WorkerInfo::_InternalSerialize(
1820 ::uint8_t* PROTOBUF_NONNULL target,
1821 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1822 const WorkerInfo& this_ = *this;
1823#endif // PROTOBUF_CUSTOM_VTABLE
1824 // @@protoc_insertion_point(serialize_to_array_start:operations_research.WorkerInfo)
1825 ::uint32_t cached_has_bits = 0;
1826 (void)cached_has_bits;
1827
1828 // int32 worker_id = 1;
1829 if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) {
1830 if (this_._internal_worker_id() != 0) {
1831 target =
1832 ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>(
1833 stream, this_._internal_worker_id(), target);
1834 }
1835 }
1836
1837 // string bns = 2;
1838 if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) {
1839 if (!this_._internal_bns().empty()) {
1840 const ::std::string& _s = this_._internal_bns();
1841 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1842 _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "operations_research.WorkerInfo.bns");
1843 target = stream->WriteStringMaybeAliased(2, _s, target);
1844 }
1845 }
1846
1847 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1848 target =
1849 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1850 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1851 }
1852 // @@protoc_insertion_point(serialize_to_array_end:operations_research.WorkerInfo)
1853 return target;
1854}
1855
1856#if defined(PROTOBUF_CUSTOM_VTABLE)
1857::size_t WorkerInfo::ByteSizeLong(const MessageLite& base) {
1858 const WorkerInfo& this_ = static_cast<const WorkerInfo&>(base);
1859#else // PROTOBUF_CUSTOM_VTABLE
1860::size_t WorkerInfo::ByteSizeLong() const {
1861 const WorkerInfo& this_ = *this;
1862#endif // PROTOBUF_CUSTOM_VTABLE
1863 // @@protoc_insertion_point(message_byte_size_start:operations_research.WorkerInfo)
1864 ::size_t total_size = 0;
1865
1866 ::uint32_t cached_has_bits = 0;
1867 // Prevent compiler warnings about cached_has_bits being unused
1868 (void)cached_has_bits;
1869
1870 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1871 cached_has_bits = this_._impl_._has_bits_[0];
1872 if ((cached_has_bits & 0x00000003u) != 0) {
1873 // string bns = 2;
1874 if ((cached_has_bits & 0x00000001u) != 0) {
1875 if (!this_._internal_bns().empty()) {
1876 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
1877 this_._internal_bns());
1878 }
1879 }
1880 // int32 worker_id = 1;
1881 if ((cached_has_bits & 0x00000002u) != 0) {
1882 if (this_._internal_worker_id() != 0) {
1883 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
1884 this_._internal_worker_id());
1885 }
1886 }
1887 }
1888 return this_.MaybeComputeUnknownFieldsSize(total_size,
1889 &this_._impl_._cached_size_);
1890}
1891
1892void WorkerInfo::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
1893 auto* const _this = static_cast<WorkerInfo*>(&to_msg);
1894 auto& from = static_cast<const WorkerInfo&>(from_msg);
1895 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.WorkerInfo)
1896 ABSL_DCHECK_NE(&from, _this);
1897 ::uint32_t cached_has_bits = 0;
1898 (void) cached_has_bits;
1899
1900 cached_has_bits = from._impl_._has_bits_[0];
1901 if ((cached_has_bits & 0x00000003u) != 0) {
1902 if ((cached_has_bits & 0x00000001u) != 0) {
1903 if (!from._internal_bns().empty()) {
1904 _this->_internal_set_bns(from._internal_bns());
1905 } else {
1906 if (_this->_impl_.bns_.IsDefault()) {
1907 _this->_internal_set_bns("");
1908 }
1909 }
1910 }
1911 if ((cached_has_bits & 0x00000002u) != 0) {
1912 if (from._internal_worker_id() != 0) {
1913 _this->_impl_.worker_id_ = from._impl_.worker_id_;
1914 }
1915 }
1916 }
1917 _this->_impl_._has_bits_[0] |= cached_has_bits;
1918 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
1919}
1920
1921void WorkerInfo::CopyFrom(const WorkerInfo& from) {
1922// @@protoc_insertion_point(class_specific_copy_from_start:operations_research.WorkerInfo)
1923 if (&from == this) return;
1924 Clear();
1926}
1927
1928
1929void WorkerInfo::InternalSwap(WorkerInfo* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1930 using ::std::swap;
1931 auto* arena = GetArena();
1932 ABSL_DCHECK_EQ(arena, other->GetArena());
1933 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1934 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1935 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.bns_, &other->_impl_.bns_, arena);
1936 swap(_impl_.worker_id_, other->_impl_.worker_id_);
1937}
1938
1939::google::protobuf::Metadata WorkerInfo::GetMetadata() const {
1940 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1941}
1942// ===================================================================
1945 public:
1946 using HasBits =
1947 decltype(::std::declval<AssignmentProto>()._impl_._has_bits_);
1948 static constexpr ::int32_t kHasBitsOffset =
1949 8 * PROTOBUF_FIELD_OFFSET(AssignmentProto, _impl_._has_bits_);
1950};
1952AssignmentProto::AssignmentProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1953#if defined(PROTOBUF_CUSTOM_VTABLE)
1954 : ::google::protobuf::Message(arena, AssignmentProto_class_data_.base()) {
1955#else // PROTOBUF_CUSTOM_VTABLE
1956 : ::google::protobuf::Message(arena) {
1957#endif // PROTOBUF_CUSTOM_VTABLE
1958 SharedCtor(arena);
1959 // @@protoc_insertion_point(arena_constructor:operations_research.AssignmentProto)
1960}
1961PROTOBUF_NDEBUG_INLINE AssignmentProto::Impl_::Impl_(
1962 ::google::protobuf::internal::InternalVisibility visibility,
1963 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
1964 const ::operations_research::AssignmentProto& from_msg)
1965 : _has_bits_{from._has_bits_},
1966 _cached_size_{0},
1967 int_var_assignment_{visibility, arena, from.int_var_assignment_},
1968 interval_var_assignment_{visibility, arena, from.interval_var_assignment_},
1969 objective_{visibility, arena, from.objective_},
1970 sequence_var_assignment_{visibility, arena, from.sequence_var_assignment_} {}
1971
1973 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1974 const AssignmentProto& from)
1975#if defined(PROTOBUF_CUSTOM_VTABLE)
1976 : ::google::protobuf::Message(arena, AssignmentProto_class_data_.base()) {
1977#else // PROTOBUF_CUSTOM_VTABLE
1978 : ::google::protobuf::Message(arena) {
1979#endif // PROTOBUF_CUSTOM_VTABLE
1980 AssignmentProto* const _this = this;
1981 (void)_this;
1982 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1983 from._internal_metadata_);
1984 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1985 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
1986 _impl_.worker_info_ = ((cached_has_bits & 0x00000001u) != 0)
1987 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.worker_info_)
1988 : nullptr;
1989 _impl_.is_valid_ = from._impl_.is_valid_;
1990
1991 // @@protoc_insertion_point(copy_constructor:operations_research.AssignmentProto)
1992}
1993PROTOBUF_NDEBUG_INLINE AssignmentProto::Impl_::Impl_(
1994 ::google::protobuf::internal::InternalVisibility visibility,
1995 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1996 : _cached_size_{0},
1997 int_var_assignment_{visibility, arena},
1998 interval_var_assignment_{visibility, arena},
1999 objective_{visibility, arena},
2000 sequence_var_assignment_{visibility, arena} {}
2001
2002inline void AssignmentProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
2003 new (&_impl_) Impl_(internal_visibility(), arena);
2004 ::memset(reinterpret_cast<char *>(&_impl_) +
2005 offsetof(Impl_, worker_info_),
2006 0,
2007 offsetof(Impl_, is_valid_) -
2008 offsetof(Impl_, worker_info_) +
2009 sizeof(Impl_::is_valid_));
2010}
2012 // @@protoc_insertion_point(destructor:operations_research.AssignmentProto)
2013 SharedDtor(*this);
2014}
2015inline void AssignmentProto::SharedDtor(MessageLite& self) {
2016 AssignmentProto& this_ = static_cast<AssignmentProto&>(self);
2017 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
2018 ABSL_DCHECK(this_.GetArena() == nullptr);
2019 delete this_._impl_.worker_info_;
2020 this_._impl_.~Impl_();
2021}
2022
2023inline void* PROTOBUF_NONNULL AssignmentProto::PlacementNew_(
2024 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
2025 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
2026 return ::new (mem) AssignmentProto(arena);
2027}
2029 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
2030 PROTOBUF_FIELD_OFFSET(AssignmentProto, _impl_.int_var_assignment_) +
2031 decltype(AssignmentProto::_impl_.int_var_assignment_)::
2032 InternalGetArenaOffset(
2033 ::google::protobuf::Message::internal_visibility()),
2034 PROTOBUF_FIELD_OFFSET(AssignmentProto, _impl_.interval_var_assignment_) +
2035 decltype(AssignmentProto::_impl_.interval_var_assignment_)::
2036 InternalGetArenaOffset(
2037 ::google::protobuf::Message::internal_visibility()),
2038 PROTOBUF_FIELD_OFFSET(AssignmentProto, _impl_.sequence_var_assignment_) +
2039 decltype(AssignmentProto::_impl_.sequence_var_assignment_)::
2040 InternalGetArenaOffset(
2041 ::google::protobuf::Message::internal_visibility()),
2042 PROTOBUF_FIELD_OFFSET(AssignmentProto, _impl_.objective_) +
2043 decltype(AssignmentProto::_impl_.objective_)::
2044 InternalGetArenaOffset(
2045 ::google::protobuf::Message::internal_visibility()),
2046 });
2047 if (arena_bits.has_value()) {
2048 return ::google::protobuf::internal::MessageCreator::ZeroInit(
2049 sizeof(AssignmentProto), alignof(AssignmentProto), *arena_bits);
2050 } else {
2051 return ::google::protobuf::internal::MessageCreator(&AssignmentProto::PlacementNew_,
2052 sizeof(AssignmentProto),
2053 alignof(AssignmentProto));
2054 }
2055}
2057 return ::google::protobuf::internal::ClassDataFull{
2058 ::google::protobuf::internal::ClassData{
2060 &_table_.header,
2061 nullptr, // OnDemandRegisterArenaDtor
2062 nullptr, // IsInitialized
2063 &AssignmentProto::MergeImpl,
2064 ::google::protobuf::Message::GetNewImpl<AssignmentProto>(),
2065#if defined(PROTOBUF_CUSTOM_VTABLE)
2066 &AssignmentProto::SharedDtor,
2067 ::google::protobuf::Message::GetClearImpl<AssignmentProto>(), &AssignmentProto::ByteSizeLong,
2069#endif // PROTOBUF_CUSTOM_VTABLE
2070 PROTOBUF_FIELD_OFFSET(AssignmentProto, _impl_._cached_size_),
2071 false,
2072 },
2073 &AssignmentProto::kDescriptorMethods,
2075 nullptr, // tracker
2076 };
2077}
2078
2079PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
2080 ::google::protobuf::internal::ClassDataFull AssignmentProto_class_data_ =
2082
2083PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
2085 ::google::protobuf::internal::PrefetchToLocalCache(&AssignmentProto_class_data_);
2086 ::google::protobuf::internal::PrefetchToLocalCache(AssignmentProto_class_data_.tc_table);
2087 return AssignmentProto_class_data_.base();
2088}
2089PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
2090const ::_pbi::TcParseTable<3, 6, 5, 0, 2>
2091AssignmentProto::_table_ = {
2092 {
2093 PROTOBUF_FIELD_OFFSET(AssignmentProto, _impl_._has_bits_),
2094 0, // no _extensions_
2095 6, 56, // max_field_number, fast_idx_mask
2096 offsetof(decltype(_table_), field_lookup_table),
2097 4294967232, // skipmap
2098 offsetof(decltype(_table_), field_entries),
2099 6, // num_field_entries
2100 5, // num_aux_entries
2101 offsetof(decltype(_table_), aux_entries),
2103 nullptr, // post_loop_handler
2104 ::_pbi::TcParser::GenericFallback, // fallback
2105 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
2106 ::_pbi::TcParser::GetTable<::operations_research::AssignmentProto>(), // to_prefetch
2107 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
2108 }, {{
2109 {::_pbi::TcParser::MiniParse, {}},
2110 // repeated .operations_research.IntVarAssignment int_var_assignment = 1;
2111 {::_pbi::TcParser::FastMtR1,
2112 {10, 63, 0, PROTOBUF_FIELD_OFFSET(AssignmentProto, _impl_.int_var_assignment_)}},
2113 // repeated .operations_research.IntervalVarAssignment interval_var_assignment = 2;
2114 {::_pbi::TcParser::FastMtR1,
2115 {18, 63, 1, PROTOBUF_FIELD_OFFSET(AssignmentProto, _impl_.interval_var_assignment_)}},
2116 // repeated .operations_research.IntVarAssignment objective = 3;
2117 {::_pbi::TcParser::FastMtR1,
2118 {26, 63, 2, PROTOBUF_FIELD_OFFSET(AssignmentProto, _impl_.objective_)}},
2119 // .operations_research.WorkerInfo worker_info = 4;
2120 {::_pbi::TcParser::FastMtS1,
2121 {34, 0, 3, PROTOBUF_FIELD_OFFSET(AssignmentProto, _impl_.worker_info_)}},
2122 // bool is_valid = 5;
2123 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(AssignmentProto, _impl_.is_valid_), 1>(),
2124 {40, 1, 0, PROTOBUF_FIELD_OFFSET(AssignmentProto, _impl_.is_valid_)}},
2125 // repeated .operations_research.SequenceVarAssignment sequence_var_assignment = 6;
2126 {::_pbi::TcParser::FastMtR1,
2127 {50, 63, 4, PROTOBUF_FIELD_OFFSET(AssignmentProto, _impl_.sequence_var_assignment_)}},
2128 {::_pbi::TcParser::MiniParse, {}},
2129 }}, {{
2130 65535, 65535
2131 }}, {{
2132 // repeated .operations_research.IntVarAssignment int_var_assignment = 1;
2133 {PROTOBUF_FIELD_OFFSET(AssignmentProto, _impl_.int_var_assignment_), -1, 0,
2134 (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
2135 // repeated .operations_research.IntervalVarAssignment interval_var_assignment = 2;
2136 {PROTOBUF_FIELD_OFFSET(AssignmentProto, _impl_.interval_var_assignment_), -1, 1,
2137 (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
2138 // repeated .operations_research.IntVarAssignment objective = 3;
2139 {PROTOBUF_FIELD_OFFSET(AssignmentProto, _impl_.objective_), -1, 2,
2140 (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
2141 // .operations_research.WorkerInfo worker_info = 4;
2142 {PROTOBUF_FIELD_OFFSET(AssignmentProto, _impl_.worker_info_), _Internal::kHasBitsOffset + 0, 3,
2143 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
2144 // bool is_valid = 5;
2145 {PROTOBUF_FIELD_OFFSET(AssignmentProto, _impl_.is_valid_), _Internal::kHasBitsOffset + 1, 0,
2146 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
2147 // repeated .operations_research.SequenceVarAssignment sequence_var_assignment = 6;
2148 {PROTOBUF_FIELD_OFFSET(AssignmentProto, _impl_.sequence_var_assignment_), -1, 4,
2149 (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
2150 }},
2151 {{
2152 {::_pbi::TcParser::GetTable<::operations_research::IntVarAssignment>()},
2153 {::_pbi::TcParser::GetTable<::operations_research::IntervalVarAssignment>()},
2154 {::_pbi::TcParser::GetTable<::operations_research::IntVarAssignment>()},
2155 {::_pbi::TcParser::GetTable<::operations_research::WorkerInfo>()},
2156 {::_pbi::TcParser::GetTable<::operations_research::SequenceVarAssignment>()},
2157 }},
2158 {{
2159 }},
2160};
2161PROTOBUF_NOINLINE void AssignmentProto::Clear() {
2162// @@protoc_insertion_point(message_clear_start:operations_research.AssignmentProto)
2163 ::google::protobuf::internal::TSanWrite(&_impl_);
2164 ::uint32_t cached_has_bits = 0;
2165 // Prevent compiler warnings about cached_has_bits being unused
2166 (void) cached_has_bits;
2167
2168 _impl_.int_var_assignment_.Clear();
2169 _impl_.interval_var_assignment_.Clear();
2170 _impl_.objective_.Clear();
2171 _impl_.sequence_var_assignment_.Clear();
2172 cached_has_bits = _impl_._has_bits_[0];
2173 if ((cached_has_bits & 0x00000001u) != 0) {
2174 ABSL_DCHECK(_impl_.worker_info_ != nullptr);
2175 _impl_.worker_info_->Clear();
2176 }
2177 _impl_.is_valid_ = false;
2178 _impl_._has_bits_.Clear();
2179 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
2180}
2181
2182#if defined(PROTOBUF_CUSTOM_VTABLE)
2183::uint8_t* PROTOBUF_NONNULL AssignmentProto::_InternalSerialize(
2184 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
2185 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
2186 const AssignmentProto& this_ = static_cast<const AssignmentProto&>(base);
2187#else // PROTOBUF_CUSTOM_VTABLE
2188::uint8_t* PROTOBUF_NONNULL AssignmentProto::_InternalSerialize(
2189 ::uint8_t* PROTOBUF_NONNULL target,
2190 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
2191 const AssignmentProto& this_ = *this;
2192#endif // PROTOBUF_CUSTOM_VTABLE
2193 // @@protoc_insertion_point(serialize_to_array_start:operations_research.AssignmentProto)
2194 ::uint32_t cached_has_bits = 0;
2195 (void)cached_has_bits;
2196
2197 // repeated .operations_research.IntVarAssignment int_var_assignment = 1;
2198 for (unsigned i = 0, n = static_cast<unsigned>(
2199 this_._internal_int_var_assignment_size());
2200 i < n; i++) {
2201 const auto& repfield = this_._internal_int_var_assignment().Get(i);
2202 target =
2203 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2204 1, repfield, repfield.GetCachedSize(),
2205 target, stream);
2206 }
2207
2208 // repeated .operations_research.IntervalVarAssignment interval_var_assignment = 2;
2209 for (unsigned i = 0, n = static_cast<unsigned>(
2210 this_._internal_interval_var_assignment_size());
2211 i < n; i++) {
2212 const auto& repfield = this_._internal_interval_var_assignment().Get(i);
2213 target =
2214 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2215 2, repfield, repfield.GetCachedSize(),
2216 target, stream);
2217 }
2218
2219 // repeated .operations_research.IntVarAssignment objective = 3;
2220 for (unsigned i = 0, n = static_cast<unsigned>(
2221 this_._internal_objective_size());
2222 i < n; i++) {
2223 const auto& repfield = this_._internal_objective().Get(i);
2224 target =
2225 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2226 3, repfield, repfield.GetCachedSize(),
2227 target, stream);
2228 }
2229
2230 cached_has_bits = this_._impl_._has_bits_[0];
2231 // .operations_research.WorkerInfo worker_info = 4;
2232 if ((cached_has_bits & 0x00000001u) != 0) {
2233 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2234 4, *this_._impl_.worker_info_, this_._impl_.worker_info_->GetCachedSize(), target,
2235 stream);
2236 }
2237
2238 // bool is_valid = 5;
2239 if ((cached_has_bits & 0x00000002u) != 0) {
2240 if (this_._internal_is_valid() != 0) {
2241 target = stream->EnsureSpace(target);
2242 target = ::_pbi::WireFormatLite::WriteBoolToArray(
2243 5, this_._internal_is_valid(), target);
2244 }
2245 }
2246
2247 // repeated .operations_research.SequenceVarAssignment sequence_var_assignment = 6;
2248 for (unsigned i = 0, n = static_cast<unsigned>(
2249 this_._internal_sequence_var_assignment_size());
2250 i < n; i++) {
2251 const auto& repfield = this_._internal_sequence_var_assignment().Get(i);
2252 target =
2253 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2254 6, repfield, repfield.GetCachedSize(),
2255 target, stream);
2256 }
2257
2258 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
2259 target =
2260 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2261 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
2262 }
2263 // @@protoc_insertion_point(serialize_to_array_end:operations_research.AssignmentProto)
2264 return target;
2265}
2266
2267#if defined(PROTOBUF_CUSTOM_VTABLE)
2268::size_t AssignmentProto::ByteSizeLong(const MessageLite& base) {
2269 const AssignmentProto& this_ = static_cast<const AssignmentProto&>(base);
2270#else // PROTOBUF_CUSTOM_VTABLE
2271::size_t AssignmentProto::ByteSizeLong() const {
2272 const AssignmentProto& this_ = *this;
2273#endif // PROTOBUF_CUSTOM_VTABLE
2274 // @@protoc_insertion_point(message_byte_size_start:operations_research.AssignmentProto)
2275 ::size_t total_size = 0;
2277 ::uint32_t cached_has_bits = 0;
2278 // Prevent compiler warnings about cached_has_bits being unused
2279 (void)cached_has_bits;
2280
2281 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
2282 {
2283 // repeated .operations_research.IntVarAssignment int_var_assignment = 1;
2284 {
2285 total_size += 1UL * this_._internal_int_var_assignment_size();
2286 for (const auto& msg : this_._internal_int_var_assignment()) {
2287 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
2288 }
2289 }
2290 // repeated .operations_research.IntervalVarAssignment interval_var_assignment = 2;
2291 {
2292 total_size += 1UL * this_._internal_interval_var_assignment_size();
2293 for (const auto& msg : this_._internal_interval_var_assignment()) {
2294 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
2295 }
2296 }
2297 // repeated .operations_research.IntVarAssignment objective = 3;
2298 {
2299 total_size += 1UL * this_._internal_objective_size();
2300 for (const auto& msg : this_._internal_objective()) {
2301 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
2302 }
2303 }
2304 // repeated .operations_research.SequenceVarAssignment sequence_var_assignment = 6;
2305 {
2306 total_size += 1UL * this_._internal_sequence_var_assignment_size();
2307 for (const auto& msg : this_._internal_sequence_var_assignment()) {
2308 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
2309 }
2310 }
2311 }
2312 cached_has_bits = this_._impl_._has_bits_[0];
2313 if ((cached_has_bits & 0x00000003u) != 0) {
2314 // .operations_research.WorkerInfo worker_info = 4;
2315 if ((cached_has_bits & 0x00000001u) != 0) {
2316 total_size += 1 +
2317 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.worker_info_);
2318 }
2319 // bool is_valid = 5;
2320 if ((cached_has_bits & 0x00000002u) != 0) {
2321 if (this_._internal_is_valid() != 0) {
2322 total_size += 2;
2323 }
2324 }
2325 }
2326 return this_.MaybeComputeUnknownFieldsSize(total_size,
2327 &this_._impl_._cached_size_);
2328}
2329
2330void AssignmentProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
2331 auto* const _this = static_cast<AssignmentProto*>(&to_msg);
2332 auto& from = static_cast<const AssignmentProto&>(from_msg);
2333 ::google::protobuf::Arena* arena = _this->GetArena();
2334 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.AssignmentProto)
2335 ABSL_DCHECK_NE(&from, _this);
2336 ::uint32_t cached_has_bits = 0;
2337 (void) cached_has_bits;
2338
2339 _this->_internal_mutable_int_var_assignment()->MergeFrom(
2340 from._internal_int_var_assignment());
2341 _this->_internal_mutable_interval_var_assignment()->MergeFrom(
2342 from._internal_interval_var_assignment());
2343 _this->_internal_mutable_objective()->MergeFrom(
2344 from._internal_objective());
2345 _this->_internal_mutable_sequence_var_assignment()->MergeFrom(
2346 from._internal_sequence_var_assignment());
2347 cached_has_bits = from._impl_._has_bits_[0];
2348 if ((cached_has_bits & 0x00000003u) != 0) {
2349 if ((cached_has_bits & 0x00000001u) != 0) {
2350 ABSL_DCHECK(from._impl_.worker_info_ != nullptr);
2351 if (_this->_impl_.worker_info_ == nullptr) {
2352 _this->_impl_.worker_info_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.worker_info_);
2353 } else {
2354 _this->_impl_.worker_info_->MergeFrom(*from._impl_.worker_info_);
2355 }
2356 }
2357 if ((cached_has_bits & 0x00000002u) != 0) {
2358 if (from._internal_is_valid() != 0) {
2359 _this->_impl_.is_valid_ = from._impl_.is_valid_;
2360 }
2361 }
2362 }
2363 _this->_impl_._has_bits_[0] |= cached_has_bits;
2364 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
2365}
2366
2368// @@protoc_insertion_point(class_specific_copy_from_start:operations_research.AssignmentProto)
2369 if (&from == this) return;
2370 Clear();
2371 MergeFrom(from);
2373
2374
2375void AssignmentProto::InternalSwap(AssignmentProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
2376 using ::std::swap;
2377 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2378 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2379 _impl_.int_var_assignment_.InternalSwap(&other->_impl_.int_var_assignment_);
2380 _impl_.interval_var_assignment_.InternalSwap(&other->_impl_.interval_var_assignment_);
2381 _impl_.objective_.InternalSwap(&other->_impl_.objective_);
2382 _impl_.sequence_var_assignment_.InternalSwap(&other->_impl_.sequence_var_assignment_);
2383 ::google::protobuf::internal::memswap<
2384 PROTOBUF_FIELD_OFFSET(AssignmentProto, _impl_.is_valid_)
2385 + sizeof(AssignmentProto::_impl_.is_valid_)
2386 - PROTOBUF_FIELD_OFFSET(AssignmentProto, _impl_.worker_info_)>(
2387 reinterpret_cast<char*>(&_impl_.worker_info_),
2388 reinterpret_cast<char*>(&other->_impl_.worker_info_));
2389}
2390
2391::google::protobuf::Metadata AssignmentProto::GetMetadata() const {
2392 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
2393}
2394// @@protoc_insertion_point(namespace_scope)
2395} // namespace operations_research
2396namespace google {
2397namespace protobuf {
2398} // namespace protobuf
2399} // namespace google
2400// @@protoc_insertion_point(global_scope)
2401PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
2402 _static_init2_ [[maybe_unused]] =
2404 ::std::false_type{});
2405#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_
@protoc_insertion_point(global_scope)
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_()
friend void swap(AssignmentProto &a, AssignmentProto &b)
::google::protobuf::Metadata GetMetadata() const
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
void CopyFrom(const AssignmentProto &from)
void MergeFrom(const AssignmentProto &from)
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
static constexpr auto InternalNewImpl_()
friend class ::google::protobuf::Arena
decltype(::std::declval< IntVarAssignment >()._impl_._has_bits_) HasBits
friend class ::google::protobuf::MessageLite
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
::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
static constexpr auto InternalNewImpl_()
void MergeFrom(const IntVarAssignment &from)
::google::protobuf::Metadata GetMetadata() const
void CopyFrom(const IntVarAssignment &from)
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
decltype(::std::declval< IntervalVarAssignment >()._impl_._has_bits_) HasBits
::google::protobuf::Metadata GetMetadata() const
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
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
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
friend class ::google::protobuf::MessageLite
static constexpr auto InternalGenerateClassData_()
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
friend void swap(SequenceVarAssignment &a, SequenceVarAssignment &b)
void MergeFrom(const SequenceVarAssignment &from)
::google::protobuf::Metadata GetMetadata() const
void CopyFrom(const SequenceVarAssignment &from)
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
friend class ::google::protobuf::MessageLite
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
::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
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
void CopyFrom(const WorkerInfo &from)
static constexpr auto InternalNewImpl_()
::google::protobuf::Metadata GetMetadata() const
friend void swap(WorkerInfo &a, WorkerInfo &b)
void MergeFrom(const WorkerInfo &from)
In SWIG mode, we don't want anything besides these top-level includes.
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_
static constexpr ::_pbi::MigrationSchema *PROTOBUF_NULLABLE schemas