Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
infeasible_subsystem.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/math_opt/infeasible_subsystem.proto
4// Protobuf C++ Version: 6.33.1
5
7
8#include <algorithm>
9#include <type_traits>
10#include "google/protobuf/io/coded_stream.h"
11#include "google/protobuf/generated_message_tctable_impl.h"
12#include "google/protobuf/extension_set.h"
13#include "google/protobuf/generated_message_util.h"
14#include "google/protobuf/wire_format_lite.h"
15#include "google/protobuf/descriptor.h"
16#include "google/protobuf/generated_message_reflection.h"
17#include "google/protobuf/reflection_ops.h"
18#include "google/protobuf/wire_format.h"
19// @@protoc_insertion_point(includes)
20
21// Must be included last.
22#include "google/protobuf/port_def.inc"
23PROTOBUF_PRAGMA_INIT_SEG
24namespace _pb = ::google::protobuf;
26namespace _fl = ::google::protobuf::internal::field_layout;
27namespace operations_research {
28namespace math_opt {
29
30inline constexpr ModelSubsetProto_Bounds::Impl_::Impl_(
31 ::_pbi::ConstantInitialized) noexcept
32 : _cached_size_{0},
33 lower_{false},
34 upper_{false} {}
35
36template <typename>
37PROTOBUF_CONSTEXPR ModelSubsetProto_Bounds::ModelSubsetProto_Bounds(::_pbi::ConstantInitialized)
38#if defined(PROTOBUF_CUSTOM_VTABLE)
39 : ::google::protobuf::Message(ModelSubsetProto_Bounds_class_data_.base()),
40#else // PROTOBUF_CUSTOM_VTABLE
41 : ::google::protobuf::Message(),
42#endif // PROTOBUF_CUSTOM_VTABLE
43 _impl_(::_pbi::ConstantInitialized()) {
44}
52
53PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
55template <typename>
57#if defined(PROTOBUF_CUSTOM_VTABLE)
58 : ModelSubsetProto_VariableBoundsEntry_DoNotUse::MapEntry(ModelSubsetProto_VariableBoundsEntry_DoNotUse_class_data_.base()){}
59#else // PROTOBUF_CUSTOM_VTABLE
60 : ModelSubsetProto_VariableBoundsEntry_DoNotUse::MapEntry() {
61}
62#endif // PROTOBUF_CUSTOM_VTABLE
70
71PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
73template <typename>
75#if defined(PROTOBUF_CUSTOM_VTABLE)
76 : ModelSubsetProto_QuadraticConstraintsEntry_DoNotUse::MapEntry(ModelSubsetProto_QuadraticConstraintsEntry_DoNotUse_class_data_.base()){}
77#else // PROTOBUF_CUSTOM_VTABLE
78 : ModelSubsetProto_QuadraticConstraintsEntry_DoNotUse::MapEntry() {
79}
80#endif // PROTOBUF_CUSTOM_VTABLE
88
89PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
91template <typename>
93#if defined(PROTOBUF_CUSTOM_VTABLE)
94 : ModelSubsetProto_LinearConstraintsEntry_DoNotUse::MapEntry(ModelSubsetProto_LinearConstraintsEntry_DoNotUse_class_data_.base()){}
95#else // PROTOBUF_CUSTOM_VTABLE
96 : ModelSubsetProto_LinearConstraintsEntry_DoNotUse::MapEntry() {
97}
98#endif // PROTOBUF_CUSTOM_VTABLE
106
107PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
109
110inline constexpr ModelSubsetProto::Impl_::Impl_(
111 ::_pbi::ConstantInitialized) noexcept
112 : _cached_size_{0},
113 variable_integrality_{},
114 _variable_integrality_cached_byte_size_{0},
115 second_order_cone_constraints_{},
116 _second_order_cone_constraints_cached_byte_size_{0},
117 sos1_constraints_{},
118 _sos1_constraints_cached_byte_size_{0},
119 sos2_constraints_{},
120 _sos2_constraints_cached_byte_size_{0},
121 indicator_constraints_{},
122 _indicator_constraints_cached_byte_size_{0},
123 variable_bounds_{},
124 linear_constraints_{},
125 quadratic_constraints_{} {}
126
127template <typename>
128PROTOBUF_CONSTEXPR ModelSubsetProto::ModelSubsetProto(::_pbi::ConstantInitialized)
129#if defined(PROTOBUF_CUSTOM_VTABLE)
130 : ::google::protobuf::Message(ModelSubsetProto_class_data_.base()),
131#else // PROTOBUF_CUSTOM_VTABLE
132 : ::google::protobuf::Message(),
133#endif // PROTOBUF_CUSTOM_VTABLE
134 _impl_(::_pbi::ConstantInitialized()) {
135}
143
144PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
146
147inline constexpr ComputeInfeasibleSubsystemResultProto::Impl_::Impl_(
148 ::_pbi::ConstantInitialized) noexcept
149 : _cached_size_{0},
150 infeasible_subsystem_{nullptr},
151 feasibility_{static_cast< ::operations_research::math_opt::FeasibilityStatusProto >(0)},
152 is_minimal_{false} {}
153
154template <typename>
156#if defined(PROTOBUF_CUSTOM_VTABLE)
157 : ::google::protobuf::Message(ComputeInfeasibleSubsystemResultProto_class_data_.base()),
158#else // PROTOBUF_CUSTOM_VTABLE
159 : ::google::protobuf::Message(),
160#endif // PROTOBUF_CUSTOM_VTABLE
161 _impl_(::_pbi::ConstantInitialized()) {
162}
170
171PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
173} // namespace math_opt
174} // namespace operations_research
175static constexpr const ::_pb::EnumDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
177static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
179const ::uint32_t
181 protodesc_cold) = {
182 0x081, // bitmap
183 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelSubsetProto_Bounds, _impl_._has_bits_),
184 5, // hasbit index offset
185 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelSubsetProto_Bounds, _impl_.lower_),
186 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelSubsetProto_Bounds, _impl_.upper_),
187 0,
188 1,
189 0x081, // bitmap
191 5, // hasbit index offset
194 0,
195 1,
196 0x081, // bitmap
198 5, // hasbit index offset
201 0,
202 1,
203 0x081, // bitmap
205 5, // hasbit index offset
208 0,
209 1,
210 0x081, // bitmap
211 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelSubsetProto, _impl_._has_bits_),
212 11, // hasbit index offset
213 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelSubsetProto, _impl_.variable_bounds_),
214 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelSubsetProto, _impl_.variable_integrality_),
215 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelSubsetProto, _impl_.linear_constraints_),
216 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelSubsetProto, _impl_.quadratic_constraints_),
217 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelSubsetProto, _impl_.second_order_cone_constraints_),
218 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelSubsetProto, _impl_.sos1_constraints_),
219 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelSubsetProto, _impl_.sos2_constraints_),
220 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelSubsetProto, _impl_.indicator_constraints_),
221 5,
222 0,
223 6,
224 7,
225 1,
226 2,
227 3,
228 4,
229 0x081, // bitmap
230 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ComputeInfeasibleSubsystemResultProto, _impl_._has_bits_),
231 6, // hasbit index offset
232 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ComputeInfeasibleSubsystemResultProto, _impl_.feasibility_),
233 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ComputeInfeasibleSubsystemResultProto, _impl_.infeasible_subsystem_),
234 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ComputeInfeasibleSubsystemResultProto, _impl_.is_minimal_),
235 1,
236 0,
237 2,
238};
239
240static const ::_pbi::MigrationSchema
241 schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
248};
257const char descriptor_table_protodef_ortools_2fmath_5fopt_2finfeasible_5fsubsystem_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
258 protodesc_cold) = {
259 "\n+ortools/math_opt/infeasible_subsystem."
260 "proto\022\034operations_research.math_opt\032\035ort"
261 "ools/math_opt/result.proto\"\316\006\n\020ModelSubs"
262 "etProto\022[\n\017variable_bounds\030\001 \003(\0132B.opera"
263 "tions_research.math_opt.ModelSubsetProto"
264 ".VariableBoundsEntry\022\034\n\024variable_integra"
265 "lity\030\002 \003(\003\022a\n\022linear_constraints\030\003 \003(\0132E"
266 ".operations_research.math_opt.ModelSubse"
267 "tProto.LinearConstraintsEntry\022g\n\025quadrat"
268 "ic_constraints\030\004 \003(\0132H.operations_resear"
269 "ch.math_opt.ModelSubsetProto.QuadraticCo"
270 "nstraintsEntry\022%\n\035second_order_cone_cons"
271 "traints\030\005 \003(\003\022\030\n\020sos1_constraints\030\006 \003(\003\022"
272 "\030\n\020sos2_constraints\030\007 \003(\003\022\035\n\025indicator_c"
273 "onstraints\030\010 \003(\003\032&\n\006Bounds\022\r\n\005lower\030\001 \001("
274 "\010\022\r\n\005upper\030\002 \001(\010\032l\n\023VariableBoundsEntry\022"
275 "\013\n\003key\030\001 \001(\003\022D\n\005value\030\002 \001(\01325.operations"
276 "_research.math_opt.ModelSubsetProto.Boun"
277 "ds:\0028\001\032o\n\026LinearConstraintsEntry\022\013\n\003key\030"
278 "\001 \001(\003\022D\n\005value\030\002 \001(\01325.operations_resear"
279 "ch.math_opt.ModelSubsetProto.Bounds:\0028\001\032"
280 "r\n\031QuadraticConstraintsEntry\022\013\n\003key\030\001 \001("
281 "\003\022D\n\005value\030\002 \001(\01325.operations_research.m"
282 "ath_opt.ModelSubsetProto.Bounds:\0028\001\"\324\001\n%"
283 "ComputeInfeasibleSubsystemResultProto\022I\n"
284 "\013feasibility\030\001 \001(\01624.operations_research"
285 ".math_opt.FeasibilityStatusProto\022L\n\024infe"
286 "asible_subsystem\030\002 \001(\0132..operations_rese"
287 "arch.math_opt.ModelSubsetProto\022\022\n\nis_min"
288 "imal\030\003 \001(\010B\036\n\032com.google.ortools.mathopt"
289 "P\001b\006proto3"
290};
291static const ::_pbi::DescriptorTable* PROTOBUF_NONNULL const
312namespace operations_research {
313namespace math_opt {
314// ===================================================================
315
317 public:
318 using HasBits =
319 decltype(::std::declval<ModelSubsetProto_Bounds>()._impl_._has_bits_);
320 static constexpr ::int32_t kHasBitsOffset =
321 8 * PROTOBUF_FIELD_OFFSET(ModelSubsetProto_Bounds, _impl_._has_bits_);
322};
323
324ModelSubsetProto_Bounds::ModelSubsetProto_Bounds(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
325#if defined(PROTOBUF_CUSTOM_VTABLE)
326 : ::google::protobuf::Message(arena, ModelSubsetProto_Bounds_class_data_.base()) {
327#else // PROTOBUF_CUSTOM_VTABLE
328 : ::google::protobuf::Message(arena) {
329#endif // PROTOBUF_CUSTOM_VTABLE
330 SharedCtor(arena);
331 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.ModelSubsetProto.Bounds)
332}
334 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ModelSubsetProto_Bounds& from)
335#if defined(PROTOBUF_CUSTOM_VTABLE)
336 : ::google::protobuf::Message(arena, ModelSubsetProto_Bounds_class_data_.base()),
337#else // PROTOBUF_CUSTOM_VTABLE
338 : ::google::protobuf::Message(arena),
339#endif // PROTOBUF_CUSTOM_VTABLE
340 _impl_(from._impl_) {
341 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
342 from._internal_metadata_);
343}
344PROTOBUF_NDEBUG_INLINE ModelSubsetProto_Bounds::Impl_::Impl_(
345 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
346 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
347 : _cached_size_{0} {}
348
349inline void ModelSubsetProto_Bounds::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
350 new (&_impl_) Impl_(internal_visibility(), arena);
351 ::memset(reinterpret_cast<char*>(&_impl_) +
352 offsetof(Impl_, lower_),
353 0,
354 offsetof(Impl_, upper_) -
355 offsetof(Impl_, lower_) +
356 sizeof(Impl_::upper_));
357}
359 // @@protoc_insertion_point(destructor:operations_research.math_opt.ModelSubsetProto.Bounds)
360 SharedDtor(*this);
361}
362inline void ModelSubsetProto_Bounds::SharedDtor(MessageLite& self) {
363 ModelSubsetProto_Bounds& this_ = static_cast<ModelSubsetProto_Bounds&>(self);
364 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
365 this_.CheckHasBitConsistency();
366 }
367 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
368 ABSL_DCHECK(this_.GetArena() == nullptr);
369 this_._impl_.~Impl_();
370}
371
372inline void* PROTOBUF_NONNULL ModelSubsetProto_Bounds::PlacementNew_(
373 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
374 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
375 return ::new (mem) ModelSubsetProto_Bounds(arena);
376}
377constexpr auto ModelSubsetProto_Bounds::InternalNewImpl_() {
378 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ModelSubsetProto_Bounds),
379 alignof(ModelSubsetProto_Bounds));
380}
382 return ::google::protobuf::internal::ClassDataFull{
383 ::google::protobuf::internal::ClassData{
385 &_table_.header,
386 nullptr, // OnDemandRegisterArenaDtor
387 nullptr, // IsInitialized
388 &ModelSubsetProto_Bounds::MergeImpl,
389 ::google::protobuf::Message::GetNewImpl<ModelSubsetProto_Bounds>(),
390#if defined(PROTOBUF_CUSTOM_VTABLE)
391 &ModelSubsetProto_Bounds::SharedDtor,
392 ::google::protobuf::Message::GetClearImpl<ModelSubsetProto_Bounds>(), &ModelSubsetProto_Bounds::ByteSizeLong,
394#endif // PROTOBUF_CUSTOM_VTABLE
395 PROTOBUF_FIELD_OFFSET(ModelSubsetProto_Bounds, _impl_._cached_size_),
396 false,
397 },
398 &ModelSubsetProto_Bounds::kDescriptorMethods,
400 nullptr, // tracker
401 };
402}
403
404PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
405 ::google::protobuf::internal::ClassDataFull ModelSubsetProto_Bounds_class_data_ =
407
408PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
409ModelSubsetProto_Bounds::GetClassData() const {
410 ::google::protobuf::internal::PrefetchToLocalCache(&ModelSubsetProto_Bounds_class_data_);
411 ::google::protobuf::internal::PrefetchToLocalCache(ModelSubsetProto_Bounds_class_data_.tc_table);
413}
414PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
415const ::_pbi::TcParseTable<1, 2, 0, 0, 2>
416ModelSubsetProto_Bounds::_table_ = {
417 {
418 PROTOBUF_FIELD_OFFSET(ModelSubsetProto_Bounds, _impl_._has_bits_),
419 0, // no _extensions_
420 2, 8, // max_field_number, fast_idx_mask
421 offsetof(decltype(_table_), field_lookup_table),
422 4294967292, // skipmap
423 offsetof(decltype(_table_), field_entries),
424 2, // num_field_entries
425 0, // num_aux_entries
426 offsetof(decltype(_table_), field_names), // no aux_entries
428 nullptr, // post_loop_handler
429 ::_pbi::TcParser::GenericFallback, // fallback
430 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
431 ::_pbi::TcParser::GetTable<::operations_research::math_opt::ModelSubsetProto_Bounds>(), // to_prefetch
432 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
433 }, {{
434 // bool upper = 2;
435 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(ModelSubsetProto_Bounds, _impl_.upper_), 1>(),
436 {16, 1, 0,
437 PROTOBUF_FIELD_OFFSET(ModelSubsetProto_Bounds, _impl_.upper_)}},
438 // bool lower = 1;
439 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(ModelSubsetProto_Bounds, _impl_.lower_), 0>(),
440 {8, 0, 0,
441 PROTOBUF_FIELD_OFFSET(ModelSubsetProto_Bounds, _impl_.lower_)}},
442 }}, {{
443 65535, 65535
444 }}, {{
445 // bool lower = 1;
446 {PROTOBUF_FIELD_OFFSET(ModelSubsetProto_Bounds, _impl_.lower_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
447 // bool upper = 2;
448 {PROTOBUF_FIELD_OFFSET(ModelSubsetProto_Bounds, _impl_.upper_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
449 }},
450 // no aux_entries
451 {{
452 }},
453};
454PROTOBUF_NOINLINE void ModelSubsetProto_Bounds::Clear() {
455// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.ModelSubsetProto.Bounds)
456 ::google::protobuf::internal::TSanWrite(&_impl_);
457 ::uint32_t cached_has_bits = 0;
458 // Prevent compiler warnings about cached_has_bits being unused
459 (void) cached_has_bits;
460
461 ::memset(&_impl_.lower_, 0, static_cast<::size_t>(
462 reinterpret_cast<char*>(&_impl_.upper_) -
463 reinterpret_cast<char*>(&_impl_.lower_)) + sizeof(_impl_.upper_));
464 _impl_._has_bits_.Clear();
465 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
466}
467
468#if defined(PROTOBUF_CUSTOM_VTABLE)
469::uint8_t* PROTOBUF_NONNULL ModelSubsetProto_Bounds::_InternalSerialize(
470 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
471 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
472 const ModelSubsetProto_Bounds& this_ = static_cast<const ModelSubsetProto_Bounds&>(base);
473#else // PROTOBUF_CUSTOM_VTABLE
474::uint8_t* PROTOBUF_NONNULL ModelSubsetProto_Bounds::_InternalSerialize(
475 ::uint8_t* PROTOBUF_NONNULL target,
476 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
477 const ModelSubsetProto_Bounds& this_ = *this;
478#endif // PROTOBUF_CUSTOM_VTABLE
479 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
480 this_.CheckHasBitConsistency();
481 }
482 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.ModelSubsetProto.Bounds)
483 ::uint32_t cached_has_bits = 0;
484 (void)cached_has_bits;
485
486 cached_has_bits = this_._impl_._has_bits_[0];
487 // bool lower = 1;
488 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
489 if (this_._internal_lower() != 0) {
490 target = stream->EnsureSpace(target);
491 target = ::_pbi::WireFormatLite::WriteBoolToArray(
492 1, this_._internal_lower(), target);
493 }
494 }
495
496 // bool upper = 2;
497 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
498 if (this_._internal_upper() != 0) {
499 target = stream->EnsureSpace(target);
500 target = ::_pbi::WireFormatLite::WriteBoolToArray(
501 2, this_._internal_upper(), target);
502 }
503 }
504
505 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
506 target =
507 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
508 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
509 }
510 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.ModelSubsetProto.Bounds)
511 return target;
512}
513
514#if defined(PROTOBUF_CUSTOM_VTABLE)
516 const ModelSubsetProto_Bounds& this_ = static_cast<const ModelSubsetProto_Bounds&>(base);
517#else // PROTOBUF_CUSTOM_VTABLE
519 const ModelSubsetProto_Bounds& this_ = *this;
520#endif // PROTOBUF_CUSTOM_VTABLE
521 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.ModelSubsetProto.Bounds)
522 ::size_t total_size = 0;
523
524 ::uint32_t cached_has_bits = 0;
525 // Prevent compiler warnings about cached_has_bits being unused
526 (void)cached_has_bits;
527
528 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
529 cached_has_bits = this_._impl_._has_bits_[0];
530 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
531 // bool lower = 1;
532 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
533 if (this_._internal_lower() != 0) {
534 total_size += 2;
535 }
536 }
537 // bool upper = 2;
538 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
539 if (this_._internal_upper() != 0) {
540 total_size += 2;
541 }
542 }
543 }
544 return this_.MaybeComputeUnknownFieldsSize(total_size,
545 &this_._impl_._cached_size_);
546}
547
548void ModelSubsetProto_Bounds::MergeImpl(::google::protobuf::MessageLite& to_msg,
549 const ::google::protobuf::MessageLite& from_msg) {
550 auto* const _this =
551 static_cast<ModelSubsetProto_Bounds*>(&to_msg);
552 auto& from = static_cast<const ModelSubsetProto_Bounds&>(from_msg);
553 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
554 from.CheckHasBitConsistency();
555 }
556 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.ModelSubsetProto.Bounds)
557 ABSL_DCHECK_NE(&from, _this);
558 ::uint32_t cached_has_bits = 0;
559 (void)cached_has_bits;
560
561 cached_has_bits = from._impl_._has_bits_[0];
562 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
563 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
564 if (from._internal_lower() != 0) {
565 _this->_impl_.lower_ = from._impl_.lower_;
566 }
567 }
568 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
569 if (from._internal_upper() != 0) {
570 _this->_impl_.upper_ = from._impl_.upper_;
571 }
572 }
573 }
574 _this->_impl_._has_bits_[0] |= cached_has_bits;
575 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
576 from._internal_metadata_);
577}
578
580 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.ModelSubsetProto.Bounds)
581 if (&from == this) return;
582 Clear();
583 MergeFrom(from);
584}
585
586
587void ModelSubsetProto_Bounds::InternalSwap(ModelSubsetProto_Bounds* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
588 using ::std::swap;
589 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
590 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
591 ::google::protobuf::internal::memswap<
592 PROTOBUF_FIELD_OFFSET(ModelSubsetProto_Bounds, _impl_.upper_)
593 + sizeof(ModelSubsetProto_Bounds::_impl_.upper_)
594 - PROTOBUF_FIELD_OFFSET(ModelSubsetProto_Bounds, _impl_.lower_)>(
595 reinterpret_cast<char*>(&_impl_.lower_),
596 reinterpret_cast<char*>(&other->_impl_.lower_));
597}
598
599::google::protobuf::Metadata ModelSubsetProto_Bounds::GetMetadata() const {
600 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
601}
602// ===================================================================
603
604#if defined(PROTOBUF_CUSTOM_VTABLE)
609#else // PROTOBUF_CUSTOM_VTABLE
611ModelSubsetProto_VariableBoundsEntry_DoNotUse::ModelSubsetProto_VariableBoundsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {}
612#endif // PROTOBUF_CUSTOM_VTABLE
613inline void* PROTOBUF_NONNULL ModelSubsetProto_VariableBoundsEntry_DoNotUse::PlacementNew_(
614 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
615 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
616 return ::new (mem) ModelSubsetProto_VariableBoundsEntry_DoNotUse(arena);
617}
618constexpr auto ModelSubsetProto_VariableBoundsEntry_DoNotUse::InternalNewImpl_() {
619 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ModelSubsetProto_VariableBoundsEntry_DoNotUse),
621}
623 return ::google::protobuf::internal::ClassDataFull{
624 ::google::protobuf::internal::ClassData{
626 &_table_.header,
627 nullptr, // OnDemandRegisterArenaDtor
628 nullptr, // IsInitialized
629 &ModelSubsetProto_VariableBoundsEntry_DoNotUse::MergeImpl,
630 ::google::protobuf::Message::GetNewImpl<ModelSubsetProto_VariableBoundsEntry_DoNotUse>(),
631#if defined(PROTOBUF_CUSTOM_VTABLE)
632 &ModelSubsetProto_VariableBoundsEntry_DoNotUse::SharedDtor,
633 static_cast<void (::google::protobuf::MessageLite::*)()>(&ModelSubsetProto_VariableBoundsEntry_DoNotUse::ClearImpl),
634 ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl
635 ,
636#endif // PROTOBUF_CUSTOM_VTABLE
637 PROTOBUF_FIELD_OFFSET(ModelSubsetProto_VariableBoundsEntry_DoNotUse, _impl_._cached_size_),
638 false,
639 },
640 &ModelSubsetProto_VariableBoundsEntry_DoNotUse::kDescriptorMethods,
642 nullptr, // tracker
643 };
644}
645
646PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
647 ::google::protobuf::internal::ClassDataFull ModelSubsetProto_VariableBoundsEntry_DoNotUse_class_data_ =
650PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
651ModelSubsetProto_VariableBoundsEntry_DoNotUse::GetClassData() const {
652 ::google::protobuf::internal::PrefetchToLocalCache(&ModelSubsetProto_VariableBoundsEntry_DoNotUse_class_data_);
653 ::google::protobuf::internal::PrefetchToLocalCache(ModelSubsetProto_VariableBoundsEntry_DoNotUse_class_data_.tc_table);
655}
656PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
657const ::_pbi::TcParseTable<1, 2, 1, 0, 2>
658ModelSubsetProto_VariableBoundsEntry_DoNotUse::_table_ = {
659 {
660 PROTOBUF_FIELD_OFFSET(ModelSubsetProto_VariableBoundsEntry_DoNotUse, _impl_._has_bits_),
661 0, // no _extensions_
662 2, 8, // max_field_number, fast_idx_mask
663 offsetof(decltype(_table_), field_lookup_table),
664 4294967292, // skipmap
665 offsetof(decltype(_table_), field_entries),
666 2, // num_field_entries
667 1, // num_aux_entries
668 offsetof(decltype(_table_), aux_entries),
670 nullptr, // post_loop_handler
671 ::_pbi::TcParser::DiscardEverythingFallback, // fallback
672 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
673 ::_pbi::TcParser::GetTable<::operations_research::math_opt::ModelSubsetProto_VariableBoundsEntry_DoNotUse>(), // to_prefetch
674 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
675 }, {{
676 // .operations_research.math_opt.ModelSubsetProto.Bounds value = 2;
677 {::_pbi::TcParser::FastMtS1,
678 {18, 0, 0,
679 PROTOBUF_FIELD_OFFSET(ModelSubsetProto_VariableBoundsEntry_DoNotUse, _impl_.value_)}},
680 // int64 key = 1;
681 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ModelSubsetProto_VariableBoundsEntry_DoNotUse, _impl_.key_), 1>(),
682 {8, 1, 0,
683 PROTOBUF_FIELD_OFFSET(ModelSubsetProto_VariableBoundsEntry_DoNotUse, _impl_.key_)}},
684 }}, {{
685 65535, 65535
686 }}, {{
687 // int64 key = 1;
688 {PROTOBUF_FIELD_OFFSET(ModelSubsetProto_VariableBoundsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
689 // .operations_research.math_opt.ModelSubsetProto.Bounds value = 2;
690 {PROTOBUF_FIELD_OFFSET(ModelSubsetProto_VariableBoundsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
691 }},
692 {{
693 {::_pbi::TcParser::GetTable<::operations_research::math_opt::ModelSubsetProto_Bounds>()},
694 }},
695 {{
696 }},
697};
698// ===================================================================
699
700#if defined(PROTOBUF_CUSTOM_VTABLE)
703ModelSubsetProto_LinearConstraintsEntry_DoNotUse::ModelSubsetProto_LinearConstraintsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
705#else // PROTOBUF_CUSTOM_VTABLE
706ModelSubsetProto_LinearConstraintsEntry_DoNotUse::ModelSubsetProto_LinearConstraintsEntry_DoNotUse() : SuperType() {}
707ModelSubsetProto_LinearConstraintsEntry_DoNotUse::ModelSubsetProto_LinearConstraintsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {}
708#endif // PROTOBUF_CUSTOM_VTABLE
709inline void* PROTOBUF_NONNULL ModelSubsetProto_LinearConstraintsEntry_DoNotUse::PlacementNew_(
710 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
711 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
712 return ::new (mem) ModelSubsetProto_LinearConstraintsEntry_DoNotUse(arena);
713}
714constexpr auto ModelSubsetProto_LinearConstraintsEntry_DoNotUse::InternalNewImpl_() {
715 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ModelSubsetProto_LinearConstraintsEntry_DoNotUse),
717}
718constexpr auto ModelSubsetProto_LinearConstraintsEntry_DoNotUse::InternalGenerateClassData_() {
719 return ::google::protobuf::internal::ClassDataFull{
720 ::google::protobuf::internal::ClassData{
722 &_table_.header,
723 nullptr, // OnDemandRegisterArenaDtor
724 nullptr, // IsInitialized
725 &ModelSubsetProto_LinearConstraintsEntry_DoNotUse::MergeImpl,
726 ::google::protobuf::Message::GetNewImpl<ModelSubsetProto_LinearConstraintsEntry_DoNotUse>(),
727#if defined(PROTOBUF_CUSTOM_VTABLE)
728 &ModelSubsetProto_LinearConstraintsEntry_DoNotUse::SharedDtor,
729 static_cast<void (::google::protobuf::MessageLite::*)()>(&ModelSubsetProto_LinearConstraintsEntry_DoNotUse::ClearImpl),
730 ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl
731 ,
732#endif // PROTOBUF_CUSTOM_VTABLE
733 PROTOBUF_FIELD_OFFSET(ModelSubsetProto_LinearConstraintsEntry_DoNotUse, _impl_._cached_size_),
734 false,
735 },
736 &ModelSubsetProto_LinearConstraintsEntry_DoNotUse::kDescriptorMethods,
738 nullptr, // tracker
739 };
740}
741
742PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
743 ::google::protobuf::internal::ClassDataFull ModelSubsetProto_LinearConstraintsEntry_DoNotUse_class_data_ =
744 ModelSubsetProto_LinearConstraintsEntry_DoNotUse::InternalGenerateClassData_();
745
746PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
747ModelSubsetProto_LinearConstraintsEntry_DoNotUse::GetClassData() const {
748 ::google::protobuf::internal::PrefetchToLocalCache(&ModelSubsetProto_LinearConstraintsEntry_DoNotUse_class_data_);
749 ::google::protobuf::internal::PrefetchToLocalCache(ModelSubsetProto_LinearConstraintsEntry_DoNotUse_class_data_.tc_table);
751}
752PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
753const ::_pbi::TcParseTable<1, 2, 1, 0, 2>
754ModelSubsetProto_LinearConstraintsEntry_DoNotUse::_table_ = {
755 {
756 PROTOBUF_FIELD_OFFSET(ModelSubsetProto_LinearConstraintsEntry_DoNotUse, _impl_._has_bits_),
757 0, // no _extensions_
758 2, 8, // max_field_number, fast_idx_mask
759 offsetof(decltype(_table_), field_lookup_table),
760 4294967292, // skipmap
761 offsetof(decltype(_table_), field_entries),
762 2, // num_field_entries
763 1, // num_aux_entries
764 offsetof(decltype(_table_), aux_entries),
765 ModelSubsetProto_LinearConstraintsEntry_DoNotUse_class_data_.base(),
766 nullptr, // post_loop_handler
767 ::_pbi::TcParser::DiscardEverythingFallback, // fallback
768 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
769 ::_pbi::TcParser::GetTable<::operations_research::math_opt::ModelSubsetProto_LinearConstraintsEntry_DoNotUse>(), // to_prefetch
770 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
771 }, {{
772 // .operations_research.math_opt.ModelSubsetProto.Bounds value = 2;
773 {::_pbi::TcParser::FastMtS1,
774 {18, 0, 0,
775 PROTOBUF_FIELD_OFFSET(ModelSubsetProto_LinearConstraintsEntry_DoNotUse, _impl_.value_)}},
776 // int64 key = 1;
777 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ModelSubsetProto_LinearConstraintsEntry_DoNotUse, _impl_.key_), 1>(),
778 {8, 1, 0,
779 PROTOBUF_FIELD_OFFSET(ModelSubsetProto_LinearConstraintsEntry_DoNotUse, _impl_.key_)}},
780 }}, {{
781 65535, 65535
782 }}, {{
783 // int64 key = 1;
784 {PROTOBUF_FIELD_OFFSET(ModelSubsetProto_LinearConstraintsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
785 // .operations_research.math_opt.ModelSubsetProto.Bounds value = 2;
786 {PROTOBUF_FIELD_OFFSET(ModelSubsetProto_LinearConstraintsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
787 }},
788 {{
789 {::_pbi::TcParser::GetTable<::operations_research::math_opt::ModelSubsetProto_Bounds>()},
790 }},
791 {{
792 }},
793};
794// ===================================================================
795
796#if defined(PROTOBUF_CUSTOM_VTABLE)
797ModelSubsetProto_QuadraticConstraintsEntry_DoNotUse::ModelSubsetProto_QuadraticConstraintsEntry_DoNotUse()
799ModelSubsetProto_QuadraticConstraintsEntry_DoNotUse::ModelSubsetProto_QuadraticConstraintsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
801#else // PROTOBUF_CUSTOM_VTABLE
802ModelSubsetProto_QuadraticConstraintsEntry_DoNotUse::ModelSubsetProto_QuadraticConstraintsEntry_DoNotUse() : SuperType() {}
803ModelSubsetProto_QuadraticConstraintsEntry_DoNotUse::ModelSubsetProto_QuadraticConstraintsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {}
804#endif // PROTOBUF_CUSTOM_VTABLE
805inline void* PROTOBUF_NONNULL ModelSubsetProto_QuadraticConstraintsEntry_DoNotUse::PlacementNew_(
806 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
807 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
809}
810constexpr auto ModelSubsetProto_QuadraticConstraintsEntry_DoNotUse::InternalNewImpl_() {
811 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ModelSubsetProto_QuadraticConstraintsEntry_DoNotUse),
813}
814constexpr auto ModelSubsetProto_QuadraticConstraintsEntry_DoNotUse::InternalGenerateClassData_() {
815 return ::google::protobuf::internal::ClassDataFull{
816 ::google::protobuf::internal::ClassData{
817 &_ModelSubsetProto_QuadraticConstraintsEntry_DoNotUse_default_instance_._instance,
818 &_table_.header,
819 nullptr, // OnDemandRegisterArenaDtor
820 nullptr, // IsInitialized
821 &ModelSubsetProto_QuadraticConstraintsEntry_DoNotUse::MergeImpl,
822 ::google::protobuf::Message::GetNewImpl<ModelSubsetProto_QuadraticConstraintsEntry_DoNotUse>(),
823#if defined(PROTOBUF_CUSTOM_VTABLE)
824 &ModelSubsetProto_QuadraticConstraintsEntry_DoNotUse::SharedDtor,
825 static_cast<void (::google::protobuf::MessageLite::*)()>(&ModelSubsetProto_QuadraticConstraintsEntry_DoNotUse::ClearImpl),
826 ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl
827 ,
828#endif // PROTOBUF_CUSTOM_VTABLE
829 PROTOBUF_FIELD_OFFSET(ModelSubsetProto_QuadraticConstraintsEntry_DoNotUse, _impl_._cached_size_),
830 false,
831 },
832 &ModelSubsetProto_QuadraticConstraintsEntry_DoNotUse::kDescriptorMethods,
834 nullptr, // tracker
835 };
836}
837
838PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
839 ::google::protobuf::internal::ClassDataFull ModelSubsetProto_QuadraticConstraintsEntry_DoNotUse_class_data_ =
840 ModelSubsetProto_QuadraticConstraintsEntry_DoNotUse::InternalGenerateClassData_();
841
842PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
843ModelSubsetProto_QuadraticConstraintsEntry_DoNotUse::GetClassData() const {
844 ::google::protobuf::internal::PrefetchToLocalCache(&ModelSubsetProto_QuadraticConstraintsEntry_DoNotUse_class_data_);
845 ::google::protobuf::internal::PrefetchToLocalCache(ModelSubsetProto_QuadraticConstraintsEntry_DoNotUse_class_data_.tc_table);
847}
848PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
849const ::_pbi::TcParseTable<1, 2, 1, 0, 2>
850ModelSubsetProto_QuadraticConstraintsEntry_DoNotUse::_table_ = {
851 {
852 PROTOBUF_FIELD_OFFSET(ModelSubsetProto_QuadraticConstraintsEntry_DoNotUse, _impl_._has_bits_),
853 0, // no _extensions_
854 2, 8, // max_field_number, fast_idx_mask
855 offsetof(decltype(_table_), field_lookup_table),
856 4294967292, // skipmap
857 offsetof(decltype(_table_), field_entries),
858 2, // num_field_entries
859 1, // num_aux_entries
860 offsetof(decltype(_table_), aux_entries),
861 ModelSubsetProto_QuadraticConstraintsEntry_DoNotUse_class_data_.base(),
862 nullptr, // post_loop_handler
863 ::_pbi::TcParser::DiscardEverythingFallback, // fallback
864 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
865 ::_pbi::TcParser::GetTable<::operations_research::math_opt::ModelSubsetProto_QuadraticConstraintsEntry_DoNotUse>(), // to_prefetch
866 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
867 }, {{
868 // .operations_research.math_opt.ModelSubsetProto.Bounds value = 2;
869 {::_pbi::TcParser::FastMtS1,
870 {18, 0, 0,
871 PROTOBUF_FIELD_OFFSET(ModelSubsetProto_QuadraticConstraintsEntry_DoNotUse, _impl_.value_)}},
872 // int64 key = 1;
873 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ModelSubsetProto_QuadraticConstraintsEntry_DoNotUse, _impl_.key_), 1>(),
874 {8, 1, 0,
875 PROTOBUF_FIELD_OFFSET(ModelSubsetProto_QuadraticConstraintsEntry_DoNotUse, _impl_.key_)}},
876 }}, {{
877 65535, 65535
878 }}, {{
879 // int64 key = 1;
880 {PROTOBUF_FIELD_OFFSET(ModelSubsetProto_QuadraticConstraintsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
881 // .operations_research.math_opt.ModelSubsetProto.Bounds value = 2;
882 {PROTOBUF_FIELD_OFFSET(ModelSubsetProto_QuadraticConstraintsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
883 }},
884 {{
885 {::_pbi::TcParser::GetTable<::operations_research::math_opt::ModelSubsetProto_Bounds>()},
886 }},
887 {{
888 }},
889};
890// ===================================================================
891
892class ModelSubsetProto::_Internal {
893 public:
894 using HasBits =
895 decltype(::std::declval<ModelSubsetProto>()._impl_._has_bits_);
896 static constexpr ::int32_t kHasBitsOffset =
897 8 * PROTOBUF_FIELD_OFFSET(ModelSubsetProto, _impl_._has_bits_);
898};
900ModelSubsetProto::ModelSubsetProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
901#if defined(PROTOBUF_CUSTOM_VTABLE)
902 : ::google::protobuf::Message(arena, ModelSubsetProto_class_data_.base()) {
903#else // PROTOBUF_CUSTOM_VTABLE
904 : ::google::protobuf::Message(arena) {
905#endif // PROTOBUF_CUSTOM_VTABLE
906 SharedCtor(arena);
907 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.ModelSubsetProto)
908}
909PROTOBUF_NDEBUG_INLINE ModelSubsetProto::Impl_::Impl_(
910 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
911 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
912 [[maybe_unused]] const ::operations_research::math_opt::ModelSubsetProto& from_msg)
913 : _has_bits_{from._has_bits_},
914 _cached_size_{0},
915 variable_integrality_{visibility, arena, from.variable_integrality_},
916 _variable_integrality_cached_byte_size_{0},
917 second_order_cone_constraints_{visibility, arena, from.second_order_cone_constraints_},
918 _second_order_cone_constraints_cached_byte_size_{0},
919 sos1_constraints_{visibility, arena, from.sos1_constraints_},
920 _sos1_constraints_cached_byte_size_{0},
921 sos2_constraints_{visibility, arena, from.sos2_constraints_},
922 _sos2_constraints_cached_byte_size_{0},
923 indicator_constraints_{visibility, arena, from.indicator_constraints_},
924 _indicator_constraints_cached_byte_size_{0},
925 variable_bounds_{visibility, arena, from.variable_bounds_},
926 linear_constraints_{visibility, arena, from.linear_constraints_},
927 quadratic_constraints_{visibility, arena, from.quadratic_constraints_} {}
928
930 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
931 const ModelSubsetProto& from)
932#if defined(PROTOBUF_CUSTOM_VTABLE)
933 : ::google::protobuf::Message(arena, ModelSubsetProto_class_data_.base()) {
934#else // PROTOBUF_CUSTOM_VTABLE
935 : ::google::protobuf::Message(arena) {
936#endif // PROTOBUF_CUSTOM_VTABLE
937 ModelSubsetProto* const _this = this;
938 (void)_this;
939 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
940 from._internal_metadata_);
941 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
942
943 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.ModelSubsetProto)
944}
945PROTOBUF_NDEBUG_INLINE ModelSubsetProto::Impl_::Impl_(
946 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
947 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
948 : _cached_size_{0},
949 variable_integrality_{visibility, arena},
950 _variable_integrality_cached_byte_size_{0},
951 second_order_cone_constraints_{visibility, arena},
952 _second_order_cone_constraints_cached_byte_size_{0},
953 sos1_constraints_{visibility, arena},
954 _sos1_constraints_cached_byte_size_{0},
955 sos2_constraints_{visibility, arena},
956 _sos2_constraints_cached_byte_size_{0},
957 indicator_constraints_{visibility, arena},
958 _indicator_constraints_cached_byte_size_{0},
959 variable_bounds_{visibility, arena},
960 linear_constraints_{visibility, arena},
961 quadratic_constraints_{visibility, arena} {}
962
963inline void ModelSubsetProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
964 new (&_impl_) Impl_(internal_visibility(), arena);
965}
967 // @@protoc_insertion_point(destructor:operations_research.math_opt.ModelSubsetProto)
968 SharedDtor(*this);
969}
970inline void ModelSubsetProto::SharedDtor(MessageLite& self) {
971 ModelSubsetProto& this_ = static_cast<ModelSubsetProto&>(self);
972 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
973 this_.CheckHasBitConsistency();
974 }
975 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
976 ABSL_DCHECK(this_.GetArena() == nullptr);
977 this_._impl_.~Impl_();
978}
979
980inline void* PROTOBUF_NONNULL ModelSubsetProto::PlacementNew_(
981 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
982 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
983 return ::new (mem) ModelSubsetProto(arena);
984}
985constexpr auto ModelSubsetProto::InternalNewImpl_() {
986 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
987 PROTOBUF_FIELD_OFFSET(ModelSubsetProto, _impl_.variable_bounds_) +
988 decltype(ModelSubsetProto::_impl_.variable_bounds_)::
989 InternalGetArenaOffset(
990 ::google::protobuf::Message::internal_visibility()),
991 PROTOBUF_FIELD_OFFSET(ModelSubsetProto, _impl_.variable_integrality_) +
992 decltype(ModelSubsetProto::_impl_.variable_integrality_)::
993 InternalGetArenaOffset(
994 ::google::protobuf::Message::internal_visibility()),
995 PROTOBUF_FIELD_OFFSET(ModelSubsetProto, _impl_.linear_constraints_) +
996 decltype(ModelSubsetProto::_impl_.linear_constraints_)::
997 InternalGetArenaOffset(
998 ::google::protobuf::Message::internal_visibility()),
999 PROTOBUF_FIELD_OFFSET(ModelSubsetProto, _impl_.quadratic_constraints_) +
1000 decltype(ModelSubsetProto::_impl_.quadratic_constraints_)::
1001 InternalGetArenaOffset(
1002 ::google::protobuf::Message::internal_visibility()),
1003 PROTOBUF_FIELD_OFFSET(ModelSubsetProto, _impl_.second_order_cone_constraints_) +
1004 decltype(ModelSubsetProto::_impl_.second_order_cone_constraints_)::
1005 InternalGetArenaOffset(
1006 ::google::protobuf::Message::internal_visibility()),
1007 PROTOBUF_FIELD_OFFSET(ModelSubsetProto, _impl_.sos1_constraints_) +
1008 decltype(ModelSubsetProto::_impl_.sos1_constraints_)::
1009 InternalGetArenaOffset(
1010 ::google::protobuf::Message::internal_visibility()),
1011 PROTOBUF_FIELD_OFFSET(ModelSubsetProto, _impl_.sos2_constraints_) +
1012 decltype(ModelSubsetProto::_impl_.sos2_constraints_)::
1013 InternalGetArenaOffset(
1014 ::google::protobuf::Message::internal_visibility()),
1015 PROTOBUF_FIELD_OFFSET(ModelSubsetProto, _impl_.indicator_constraints_) +
1016 decltype(ModelSubsetProto::_impl_.indicator_constraints_)::
1017 InternalGetArenaOffset(
1018 ::google::protobuf::Message::internal_visibility()),
1019 });
1020 if (arena_bits.has_value()) {
1021 return ::google::protobuf::internal::MessageCreator::CopyInit(
1022 sizeof(ModelSubsetProto), alignof(ModelSubsetProto), *arena_bits);
1023 } else {
1024 return ::google::protobuf::internal::MessageCreator(&ModelSubsetProto::PlacementNew_,
1025 sizeof(ModelSubsetProto),
1026 alignof(ModelSubsetProto));
1027 }
1028}
1029constexpr auto ModelSubsetProto::InternalGenerateClassData_() {
1030 return ::google::protobuf::internal::ClassDataFull{
1031 ::google::protobuf::internal::ClassData{
1033 &_table_.header,
1034 nullptr, // OnDemandRegisterArenaDtor
1035 nullptr, // IsInitialized
1036 &ModelSubsetProto::MergeImpl,
1037 ::google::protobuf::Message::GetNewImpl<ModelSubsetProto>(),
1038#if defined(PROTOBUF_CUSTOM_VTABLE)
1039 &ModelSubsetProto::SharedDtor,
1040 ::google::protobuf::Message::GetClearImpl<ModelSubsetProto>(), &ModelSubsetProto::ByteSizeLong,
1042#endif // PROTOBUF_CUSTOM_VTABLE
1043 PROTOBUF_FIELD_OFFSET(ModelSubsetProto, _impl_._cached_size_),
1044 false,
1045 },
1046 &ModelSubsetProto::kDescriptorMethods,
1048 nullptr, // tracker
1049 };
1050}
1051
1052PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1053 ::google::protobuf::internal::ClassDataFull ModelSubsetProto_class_data_ =
1054 ModelSubsetProto::InternalGenerateClassData_();
1055
1056PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1057ModelSubsetProto::GetClassData() const {
1058 ::google::protobuf::internal::PrefetchToLocalCache(&ModelSubsetProto_class_data_);
1059 ::google::protobuf::internal::PrefetchToLocalCache(ModelSubsetProto_class_data_.tc_table);
1060 return ModelSubsetProto_class_data_.base();
1061}
1062PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1063const ::_pbi::TcParseTable<3, 8, 6, 0, 2>
1064ModelSubsetProto::_table_ = {
1065 {
1066 PROTOBUF_FIELD_OFFSET(ModelSubsetProto, _impl_._has_bits_),
1067 0, // no _extensions_
1068 8, 56, // max_field_number, fast_idx_mask
1069 offsetof(decltype(_table_), field_lookup_table),
1070 4294967040, // skipmap
1071 offsetof(decltype(_table_), field_entries),
1072 8, // num_field_entries
1073 6, // num_aux_entries
1074 offsetof(decltype(_table_), aux_entries),
1075 ModelSubsetProto_class_data_.base(),
1076 nullptr, // post_loop_handler
1077 ::_pbi::TcParser::GenericFallback, // fallback
1078 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1079 ::_pbi::TcParser::GetTable<::operations_research::math_opt::ModelSubsetProto>(), // to_prefetch
1080 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
1081 }, {{
1082 // repeated int64 indicator_constraints = 8;
1083 {::_pbi::TcParser::FastV64P1,
1084 {66, 4, 0,
1085 PROTOBUF_FIELD_OFFSET(ModelSubsetProto, _impl_.indicator_constraints_)}},
1086 {::_pbi::TcParser::MiniParse, {}},
1087 // repeated int64 variable_integrality = 2;
1088 {::_pbi::TcParser::FastV64P1,
1089 {18, 0, 0,
1090 PROTOBUF_FIELD_OFFSET(ModelSubsetProto, _impl_.variable_integrality_)}},
1091 {::_pbi::TcParser::MiniParse, {}},
1092 {::_pbi::TcParser::MiniParse, {}},
1093 // repeated int64 second_order_cone_constraints = 5;
1094 {::_pbi::TcParser::FastV64P1,
1095 {42, 1, 0,
1096 PROTOBUF_FIELD_OFFSET(ModelSubsetProto, _impl_.second_order_cone_constraints_)}},
1097 // repeated int64 sos1_constraints = 6;
1098 {::_pbi::TcParser::FastV64P1,
1099 {50, 2, 0,
1100 PROTOBUF_FIELD_OFFSET(ModelSubsetProto, _impl_.sos1_constraints_)}},
1101 // repeated int64 sos2_constraints = 7;
1102 {::_pbi::TcParser::FastV64P1,
1103 {58, 3, 0,
1104 PROTOBUF_FIELD_OFFSET(ModelSubsetProto, _impl_.sos2_constraints_)}},
1105 }}, {{
1106 65535, 65535
1107 }}, {{
1108 // map<int64, .operations_research.math_opt.ModelSubsetProto.Bounds> variable_bounds = 1;
1109 {PROTOBUF_FIELD_OFFSET(ModelSubsetProto, _impl_.variable_bounds_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
1110 // repeated int64 variable_integrality = 2;
1111 {PROTOBUF_FIELD_OFFSET(ModelSubsetProto, _impl_.variable_integrality_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
1112 // map<int64, .operations_research.math_opt.ModelSubsetProto.Bounds> linear_constraints = 3;
1113 {PROTOBUF_FIELD_OFFSET(ModelSubsetProto, _impl_.linear_constraints_), _Internal::kHasBitsOffset + 6, 2, (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
1114 // map<int64, .operations_research.math_opt.ModelSubsetProto.Bounds> quadratic_constraints = 4;
1115 {PROTOBUF_FIELD_OFFSET(ModelSubsetProto, _impl_.quadratic_constraints_), _Internal::kHasBitsOffset + 7, 4, (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
1116 // repeated int64 second_order_cone_constraints = 5;
1117 {PROTOBUF_FIELD_OFFSET(ModelSubsetProto, _impl_.second_order_cone_constraints_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
1118 // repeated int64 sos1_constraints = 6;
1119 {PROTOBUF_FIELD_OFFSET(ModelSubsetProto, _impl_.sos1_constraints_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
1120 // repeated int64 sos2_constraints = 7;
1121 {PROTOBUF_FIELD_OFFSET(ModelSubsetProto, _impl_.sos2_constraints_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
1122 // repeated int64 indicator_constraints = 8;
1123 {PROTOBUF_FIELD_OFFSET(ModelSubsetProto, _impl_.indicator_constraints_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
1124 }},
1125 {{
1126 {::_pbi::TcParser::GetMapAuxInfo(
1127 0, 0, 3, 11, 0)},
1128 {::_pbi::TcParser::GetTable<::operations_research::math_opt::ModelSubsetProto_Bounds>()},
1129 {::_pbi::TcParser::GetMapAuxInfo(
1130 0, 0, 3, 11, 0)},
1131 {::_pbi::TcParser::GetTable<::operations_research::math_opt::ModelSubsetProto_Bounds>()},
1132 {::_pbi::TcParser::GetMapAuxInfo(
1133 0, 0, 3, 11, 0)},
1134 {::_pbi::TcParser::GetTable<::operations_research::math_opt::ModelSubsetProto_Bounds>()},
1135 }},
1136 {{
1137 }},
1138};
1139PROTOBUF_NOINLINE void ModelSubsetProto::Clear() {
1140// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.ModelSubsetProto)
1141 ::google::protobuf::internal::TSanWrite(&_impl_);
1142 ::uint32_t cached_has_bits = 0;
1143 // Prevent compiler warnings about cached_has_bits being unused
1144 (void) cached_has_bits;
1145
1146 cached_has_bits = _impl_._has_bits_[0];
1147 if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
1148 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1149 _impl_.variable_integrality_.Clear();
1150 }
1151 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1152 _impl_.second_order_cone_constraints_.Clear();
1153 }
1154 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
1155 _impl_.sos1_constraints_.Clear();
1156 }
1157 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
1158 _impl_.sos2_constraints_.Clear();
1159 }
1160 if (CheckHasBitForRepeated(cached_has_bits, 0x00000010U)) {
1161 _impl_.indicator_constraints_.Clear();
1162 }
1163 if (CheckHasBitForRepeated(cached_has_bits, 0x00000020U)) {
1164 _impl_.variable_bounds_.Clear();
1165 }
1166 if (CheckHasBitForRepeated(cached_has_bits, 0x00000040U)) {
1167 _impl_.linear_constraints_.Clear();
1168 }
1169 if (CheckHasBitForRepeated(cached_has_bits, 0x00000080U)) {
1170 _impl_.quadratic_constraints_.Clear();
1171 }
1172 }
1173 _impl_._has_bits_.Clear();
1174 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1175}
1176
1177#if defined(PROTOBUF_CUSTOM_VTABLE)
1178::uint8_t* PROTOBUF_NONNULL ModelSubsetProto::_InternalSerialize(
1179 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1180 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1181 const ModelSubsetProto& this_ = static_cast<const ModelSubsetProto&>(base);
1182#else // PROTOBUF_CUSTOM_VTABLE
1183::uint8_t* PROTOBUF_NONNULL ModelSubsetProto::_InternalSerialize(
1184 ::uint8_t* PROTOBUF_NONNULL target,
1185 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1186 const ModelSubsetProto& this_ = *this;
1187#endif // PROTOBUF_CUSTOM_VTABLE
1188 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1189 this_.CheckHasBitConsistency();
1190 }
1191 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.ModelSubsetProto)
1192 ::uint32_t cached_has_bits = 0;
1193 (void)cached_has_bits;
1194
1195 cached_has_bits = this_._impl_._has_bits_[0];
1196 // map<int64, .operations_research.math_opt.ModelSubsetProto.Bounds> variable_bounds = 1;
1197 if (CheckHasBitForRepeated(cached_has_bits, 0x00000020U)) {
1198 if (!this_._internal_variable_bounds().empty()) {
1199 using MapType = ::google::protobuf::Map<::int64_t, ::operations_research::math_opt::ModelSubsetProto_Bounds>;
1200 using WireHelper = _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::ModelSubsetProto_Bounds,
1201 _pbi::WireFormatLite::TYPE_INT64,
1202 _pbi::WireFormatLite::TYPE_MESSAGE>;
1203 const auto& field = this_._internal_variable_bounds();
1204
1205 if (stream->IsSerializationDeterministic() && field.size() > 1) {
1206 for (const auto& entry : ::google::protobuf::internal::MapSorterFlat<MapType>(field)) {
1207 target = WireHelper::InternalSerialize(
1208 1, entry.first, entry.second, target, stream);
1209 }
1210 } else {
1211 for (const auto& entry : field) {
1212 target = WireHelper::InternalSerialize(
1213 1, entry.first, entry.second, target, stream);
1214 }
1215 }
1216 }
1217 }
1218
1219 // repeated int64 variable_integrality = 2;
1220 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1221 {
1222 int byte_size = this_._impl_._variable_integrality_cached_byte_size_.Get();
1223 if (byte_size > 0) {
1224 target = stream->WriteInt64Packed(
1225 2, this_._internal_variable_integrality(), byte_size, target);
1226 }
1227 }
1228 }
1229
1230 // map<int64, .operations_research.math_opt.ModelSubsetProto.Bounds> linear_constraints = 3;
1231 if (CheckHasBitForRepeated(cached_has_bits, 0x00000040U)) {
1232 if (!this_._internal_linear_constraints().empty()) {
1233 using MapType = ::google::protobuf::Map<::int64_t, ::operations_research::math_opt::ModelSubsetProto_Bounds>;
1234 using WireHelper = _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::ModelSubsetProto_Bounds,
1235 _pbi::WireFormatLite::TYPE_INT64,
1236 _pbi::WireFormatLite::TYPE_MESSAGE>;
1237 const auto& field = this_._internal_linear_constraints();
1238
1239 if (stream->IsSerializationDeterministic() && field.size() > 1) {
1240 for (const auto& entry : ::google::protobuf::internal::MapSorterFlat<MapType>(field)) {
1241 target = WireHelper::InternalSerialize(
1242 3, entry.first, entry.second, target, stream);
1243 }
1244 } else {
1245 for (const auto& entry : field) {
1246 target = WireHelper::InternalSerialize(
1247 3, entry.first, entry.second, target, stream);
1248 }
1249 }
1250 }
1251 }
1252
1253 // map<int64, .operations_research.math_opt.ModelSubsetProto.Bounds> quadratic_constraints = 4;
1254 if (CheckHasBitForRepeated(cached_has_bits, 0x00000080U)) {
1255 if (!this_._internal_quadratic_constraints().empty()) {
1256 using MapType = ::google::protobuf::Map<::int64_t, ::operations_research::math_opt::ModelSubsetProto_Bounds>;
1257 using WireHelper = _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::ModelSubsetProto_Bounds,
1258 _pbi::WireFormatLite::TYPE_INT64,
1259 _pbi::WireFormatLite::TYPE_MESSAGE>;
1260 const auto& field = this_._internal_quadratic_constraints();
1261
1262 if (stream->IsSerializationDeterministic() && field.size() > 1) {
1263 for (const auto& entry : ::google::protobuf::internal::MapSorterFlat<MapType>(field)) {
1264 target = WireHelper::InternalSerialize(
1265 4, entry.first, entry.second, target, stream);
1266 }
1267 } else {
1268 for (const auto& entry : field) {
1269 target = WireHelper::InternalSerialize(
1270 4, entry.first, entry.second, target, stream);
1271 }
1272 }
1273 }
1274 }
1275
1276 // repeated int64 second_order_cone_constraints = 5;
1277 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1278 {
1279 int byte_size = this_._impl_._second_order_cone_constraints_cached_byte_size_.Get();
1280 if (byte_size > 0) {
1281 target = stream->WriteInt64Packed(
1282 5, this_._internal_second_order_cone_constraints(), byte_size, target);
1283 }
1284 }
1285 }
1286
1287 // repeated int64 sos1_constraints = 6;
1288 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
1289 {
1290 int byte_size = this_._impl_._sos1_constraints_cached_byte_size_.Get();
1291 if (byte_size > 0) {
1292 target = stream->WriteInt64Packed(
1293 6, this_._internal_sos1_constraints(), byte_size, target);
1294 }
1295 }
1296 }
1297
1298 // repeated int64 sos2_constraints = 7;
1299 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
1300 {
1301 int byte_size = this_._impl_._sos2_constraints_cached_byte_size_.Get();
1302 if (byte_size > 0) {
1303 target = stream->WriteInt64Packed(
1304 7, this_._internal_sos2_constraints(), byte_size, target);
1305 }
1306 }
1307 }
1308
1309 // repeated int64 indicator_constraints = 8;
1310 if (CheckHasBitForRepeated(cached_has_bits, 0x00000010U)) {
1311 {
1312 int byte_size = this_._impl_._indicator_constraints_cached_byte_size_.Get();
1313 if (byte_size > 0) {
1314 target = stream->WriteInt64Packed(
1315 8, this_._internal_indicator_constraints(), byte_size, target);
1316 }
1317 }
1318 }
1319
1320 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1321 target =
1322 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1323 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1324 }
1325 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.ModelSubsetProto)
1326 return target;
1327}
1328
1329#if defined(PROTOBUF_CUSTOM_VTABLE)
1330::size_t ModelSubsetProto::ByteSizeLong(const MessageLite& base) {
1331 const ModelSubsetProto& this_ = static_cast<const ModelSubsetProto&>(base);
1332#else // PROTOBUF_CUSTOM_VTABLE
1333::size_t ModelSubsetProto::ByteSizeLong() const {
1334 const ModelSubsetProto& this_ = *this;
1335#endif // PROTOBUF_CUSTOM_VTABLE
1336 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.ModelSubsetProto)
1337 ::size_t total_size = 0;
1339 ::uint32_t cached_has_bits = 0;
1340 // Prevent compiler warnings about cached_has_bits being unused
1341 (void)cached_has_bits;
1342
1343 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1344 cached_has_bits = this_._impl_._has_bits_[0];
1345 if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
1346 // repeated int64 variable_integrality = 2;
1347 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1348 total_size +=
1349 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
1350 this_._internal_variable_integrality(), 1,
1351 this_._impl_._variable_integrality_cached_byte_size_);
1352 }
1353 // repeated int64 second_order_cone_constraints = 5;
1354 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1355 total_size +=
1356 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
1357 this_._internal_second_order_cone_constraints(), 1,
1358 this_._impl_._second_order_cone_constraints_cached_byte_size_);
1359 }
1360 // repeated int64 sos1_constraints = 6;
1361 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
1362 total_size +=
1363 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
1364 this_._internal_sos1_constraints(), 1,
1365 this_._impl_._sos1_constraints_cached_byte_size_);
1366 }
1367 // repeated int64 sos2_constraints = 7;
1368 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
1369 total_size +=
1370 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
1371 this_._internal_sos2_constraints(), 1,
1372 this_._impl_._sos2_constraints_cached_byte_size_);
1373 }
1374 // repeated int64 indicator_constraints = 8;
1375 if (CheckHasBitForRepeated(cached_has_bits, 0x00000010U)) {
1376 total_size +=
1377 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
1378 this_._internal_indicator_constraints(), 1,
1379 this_._impl_._indicator_constraints_cached_byte_size_);
1380 }
1381 // map<int64, .operations_research.math_opt.ModelSubsetProto.Bounds> variable_bounds = 1;
1382 if (CheckHasBitForRepeated(cached_has_bits, 0x00000020U)) {
1383 total_size +=
1384 1 * ::google::protobuf::internal::FromIntSize(this_._internal_variable_bounds_size());
1385 for (const auto& entry : this_._internal_variable_bounds()) {
1386 total_size += _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::ModelSubsetProto_Bounds,
1387 _pbi::WireFormatLite::TYPE_INT64,
1388 _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second);
1389 }
1390 }
1391 // map<int64, .operations_research.math_opt.ModelSubsetProto.Bounds> linear_constraints = 3;
1392 if (CheckHasBitForRepeated(cached_has_bits, 0x00000040U)) {
1393 total_size +=
1394 1 * ::google::protobuf::internal::FromIntSize(this_._internal_linear_constraints_size());
1395 for (const auto& entry : this_._internal_linear_constraints()) {
1396 total_size += _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::ModelSubsetProto_Bounds,
1397 _pbi::WireFormatLite::TYPE_INT64,
1398 _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second);
1399 }
1400 }
1401 // map<int64, .operations_research.math_opt.ModelSubsetProto.Bounds> quadratic_constraints = 4;
1402 if (CheckHasBitForRepeated(cached_has_bits, 0x00000080U)) {
1403 total_size +=
1404 1 * ::google::protobuf::internal::FromIntSize(this_._internal_quadratic_constraints_size());
1405 for (const auto& entry : this_._internal_quadratic_constraints()) {
1406 total_size += _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::ModelSubsetProto_Bounds,
1407 _pbi::WireFormatLite::TYPE_INT64,
1408 _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second);
1409 }
1410 }
1411 }
1412 return this_.MaybeComputeUnknownFieldsSize(total_size,
1413 &this_._impl_._cached_size_);
1414}
1415
1416void ModelSubsetProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
1417 const ::google::protobuf::MessageLite& from_msg) {
1418 auto* const _this =
1419 static_cast<ModelSubsetProto*>(&to_msg);
1420 auto& from = static_cast<const ModelSubsetProto&>(from_msg);
1421 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1422 from.CheckHasBitConsistency();
1423 }
1424 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.ModelSubsetProto)
1425 ABSL_DCHECK_NE(&from, _this);
1426 ::uint32_t cached_has_bits = 0;
1427 (void)cached_has_bits;
1428
1429 cached_has_bits = from._impl_._has_bits_[0];
1430 if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
1431 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1432 _this->_internal_mutable_variable_integrality()->MergeFrom(from._internal_variable_integrality());
1433 }
1434 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1435 _this->_internal_mutable_second_order_cone_constraints()->MergeFrom(from._internal_second_order_cone_constraints());
1436 }
1437 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
1438 _this->_internal_mutable_sos1_constraints()->MergeFrom(from._internal_sos1_constraints());
1439 }
1440 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
1441 _this->_internal_mutable_sos2_constraints()->MergeFrom(from._internal_sos2_constraints());
1442 }
1443 if (CheckHasBitForRepeated(cached_has_bits, 0x00000010U)) {
1444 _this->_internal_mutable_indicator_constraints()->MergeFrom(from._internal_indicator_constraints());
1445 }
1446 if (CheckHasBitForRepeated(cached_has_bits, 0x00000020U)) {
1447 _this->_impl_.variable_bounds_.MergeFrom(from._impl_.variable_bounds_);
1448 }
1449 if (CheckHasBitForRepeated(cached_has_bits, 0x00000040U)) {
1450 _this->_impl_.linear_constraints_.MergeFrom(from._impl_.linear_constraints_);
1451 }
1452 if (CheckHasBitForRepeated(cached_has_bits, 0x00000080U)) {
1453 _this->_impl_.quadratic_constraints_.MergeFrom(from._impl_.quadratic_constraints_);
1454 }
1455 }
1456 _this->_impl_._has_bits_[0] |= cached_has_bits;
1457 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1458 from._internal_metadata_);
1459}
1460
1461void ModelSubsetProto::CopyFrom(const ModelSubsetProto& from) {
1462 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.ModelSubsetProto)
1463 if (&from == this) return;
1464 Clear();
1465 MergeFrom(from);
1467
1468
1469void ModelSubsetProto::InternalSwap(ModelSubsetProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1470 using ::std::swap;
1471 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1472 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1473 _impl_.variable_integrality_.InternalSwap(&other->_impl_.variable_integrality_);
1474 _impl_.second_order_cone_constraints_.InternalSwap(&other->_impl_.second_order_cone_constraints_);
1475 _impl_.sos1_constraints_.InternalSwap(&other->_impl_.sos1_constraints_);
1476 _impl_.sos2_constraints_.InternalSwap(&other->_impl_.sos2_constraints_);
1477 _impl_.indicator_constraints_.InternalSwap(&other->_impl_.indicator_constraints_);
1478 _impl_.variable_bounds_.InternalSwap(&other->_impl_.variable_bounds_);
1479 _impl_.linear_constraints_.InternalSwap(&other->_impl_.linear_constraints_);
1480 _impl_.quadratic_constraints_.InternalSwap(&other->_impl_.quadratic_constraints_);
1481}
1482
1483::google::protobuf::Metadata ModelSubsetProto::GetMetadata() const {
1484 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1485}
1486// ===================================================================
1487
1489 public:
1490 using HasBits =
1491 decltype(::std::declval<ComputeInfeasibleSubsystemResultProto>()._impl_._has_bits_);
1492 static constexpr ::int32_t kHasBitsOffset =
1493 8 * PROTOBUF_FIELD_OFFSET(ComputeInfeasibleSubsystemResultProto, _impl_._has_bits_);
1495
1497#if defined(PROTOBUF_CUSTOM_VTABLE)
1498 : ::google::protobuf::Message(arena, ComputeInfeasibleSubsystemResultProto_class_data_.base()) {
1499#else // PROTOBUF_CUSTOM_VTABLE
1500 : ::google::protobuf::Message(arena) {
1501#endif // PROTOBUF_CUSTOM_VTABLE
1502 SharedCtor(arena);
1503 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.ComputeInfeasibleSubsystemResultProto)
1504}
1505PROTOBUF_NDEBUG_INLINE ComputeInfeasibleSubsystemResultProto::Impl_::Impl_(
1506 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1507 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
1508 [[maybe_unused]] const ::operations_research::math_opt::ComputeInfeasibleSubsystemResultProto& from_msg)
1509 : _has_bits_{from._has_bits_},
1510 _cached_size_{0} {}
1511
1513 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1515#if defined(PROTOBUF_CUSTOM_VTABLE)
1516 : ::google::protobuf::Message(arena, ComputeInfeasibleSubsystemResultProto_class_data_.base()) {
1517#else // PROTOBUF_CUSTOM_VTABLE
1518 : ::google::protobuf::Message(arena) {
1519#endif // PROTOBUF_CUSTOM_VTABLE
1520 ComputeInfeasibleSubsystemResultProto* const _this = this;
1521 (void)_this;
1522 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1523 from._internal_metadata_);
1524 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1525 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
1526 _impl_.infeasible_subsystem_ = (CheckHasBit(cached_has_bits, 0x00000001U))
1527 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.infeasible_subsystem_)
1528 : nullptr;
1529 ::memcpy(reinterpret_cast<char*>(&_impl_) +
1530 offsetof(Impl_, feasibility_),
1531 reinterpret_cast<const char*>(&from._impl_) +
1532 offsetof(Impl_, feasibility_),
1533 offsetof(Impl_, is_minimal_) -
1534 offsetof(Impl_, feasibility_) +
1535 sizeof(Impl_::is_minimal_));
1536
1537 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.ComputeInfeasibleSubsystemResultProto)
1538}
1539PROTOBUF_NDEBUG_INLINE ComputeInfeasibleSubsystemResultProto::Impl_::Impl_(
1540 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1541 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1542 : _cached_size_{0} {}
1543
1544inline void ComputeInfeasibleSubsystemResultProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1545 new (&_impl_) Impl_(internal_visibility(), arena);
1546 ::memset(reinterpret_cast<char*>(&_impl_) +
1547 offsetof(Impl_, infeasible_subsystem_),
1548 0,
1549 offsetof(Impl_, is_minimal_) -
1550 offsetof(Impl_, infeasible_subsystem_) +
1551 sizeof(Impl_::is_minimal_));
1552}
1554 // @@protoc_insertion_point(destructor:operations_research.math_opt.ComputeInfeasibleSubsystemResultProto)
1555 SharedDtor(*this);
1556}
1557inline void ComputeInfeasibleSubsystemResultProto::SharedDtor(MessageLite& self) {
1559 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1560 this_.CheckHasBitConsistency();
1561 }
1562 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1563 ABSL_DCHECK(this_.GetArena() == nullptr);
1564 delete this_._impl_.infeasible_subsystem_;
1565 this_._impl_.~Impl_();
1566}
1567
1568inline void* PROTOBUF_NONNULL ComputeInfeasibleSubsystemResultProto::PlacementNew_(
1569 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1570 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1571 return ::new (mem) ComputeInfeasibleSubsystemResultProto(arena);
1572}
1573constexpr auto ComputeInfeasibleSubsystemResultProto::InternalNewImpl_() {
1574 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ComputeInfeasibleSubsystemResultProto),
1575 alignof(ComputeInfeasibleSubsystemResultProto));
1576}
1577constexpr auto ComputeInfeasibleSubsystemResultProto::InternalGenerateClassData_() {
1578 return ::google::protobuf::internal::ClassDataFull{
1579 ::google::protobuf::internal::ClassData{
1581 &_table_.header,
1582 nullptr, // OnDemandRegisterArenaDtor
1583 nullptr, // IsInitialized
1584 &ComputeInfeasibleSubsystemResultProto::MergeImpl,
1585 ::google::protobuf::Message::GetNewImpl<ComputeInfeasibleSubsystemResultProto>(),
1586#if defined(PROTOBUF_CUSTOM_VTABLE)
1587 &ComputeInfeasibleSubsystemResultProto::SharedDtor,
1588 ::google::protobuf::Message::GetClearImpl<ComputeInfeasibleSubsystemResultProto>(), &ComputeInfeasibleSubsystemResultProto::ByteSizeLong,
1590#endif // PROTOBUF_CUSTOM_VTABLE
1591 PROTOBUF_FIELD_OFFSET(ComputeInfeasibleSubsystemResultProto, _impl_._cached_size_),
1592 false,
1593 },
1594 &ComputeInfeasibleSubsystemResultProto::kDescriptorMethods,
1596 nullptr, // tracker
1597 };
1598}
1599
1600PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1601 ::google::protobuf::internal::ClassDataFull ComputeInfeasibleSubsystemResultProto_class_data_ =
1602 ComputeInfeasibleSubsystemResultProto::InternalGenerateClassData_();
1603
1604PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1605ComputeInfeasibleSubsystemResultProto::GetClassData() const {
1606 ::google::protobuf::internal::PrefetchToLocalCache(&ComputeInfeasibleSubsystemResultProto_class_data_);
1607 ::google::protobuf::internal::PrefetchToLocalCache(ComputeInfeasibleSubsystemResultProto_class_data_.tc_table);
1609}
1610PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1611const ::_pbi::TcParseTable<2, 3, 1, 0, 2>
1612ComputeInfeasibleSubsystemResultProto::_table_ = {
1613 {
1614 PROTOBUF_FIELD_OFFSET(ComputeInfeasibleSubsystemResultProto, _impl_._has_bits_),
1615 0, // no _extensions_
1616 3, 24, // max_field_number, fast_idx_mask
1617 offsetof(decltype(_table_), field_lookup_table),
1618 4294967288, // skipmap
1619 offsetof(decltype(_table_), field_entries),
1620 3, // num_field_entries
1621 1, // num_aux_entries
1622 offsetof(decltype(_table_), aux_entries),
1623 ComputeInfeasibleSubsystemResultProto_class_data_.base(),
1624 nullptr, // post_loop_handler
1625 ::_pbi::TcParser::GenericFallback, // fallback
1626 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1627 ::_pbi::TcParser::GetTable<::operations_research::math_opt::ComputeInfeasibleSubsystemResultProto>(), // to_prefetch
1628 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
1629 }, {{
1630 {::_pbi::TcParser::MiniParse, {}},
1631 // .operations_research.math_opt.FeasibilityStatusProto feasibility = 1;
1632 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ComputeInfeasibleSubsystemResultProto, _impl_.feasibility_), 1>(),
1633 {8, 1, 0,
1634 PROTOBUF_FIELD_OFFSET(ComputeInfeasibleSubsystemResultProto, _impl_.feasibility_)}},
1635 // .operations_research.math_opt.ModelSubsetProto infeasible_subsystem = 2;
1636 {::_pbi::TcParser::FastMtS1,
1637 {18, 0, 0,
1638 PROTOBUF_FIELD_OFFSET(ComputeInfeasibleSubsystemResultProto, _impl_.infeasible_subsystem_)}},
1639 // bool is_minimal = 3;
1640 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(ComputeInfeasibleSubsystemResultProto, _impl_.is_minimal_), 2>(),
1641 {24, 2, 0,
1642 PROTOBUF_FIELD_OFFSET(ComputeInfeasibleSubsystemResultProto, _impl_.is_minimal_)}},
1643 }}, {{
1644 65535, 65535
1645 }}, {{
1646 // .operations_research.math_opt.FeasibilityStatusProto feasibility = 1;
1647 {PROTOBUF_FIELD_OFFSET(ComputeInfeasibleSubsystemResultProto, _impl_.feasibility_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
1648 // .operations_research.math_opt.ModelSubsetProto infeasible_subsystem = 2;
1649 {PROTOBUF_FIELD_OFFSET(ComputeInfeasibleSubsystemResultProto, _impl_.infeasible_subsystem_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1650 // bool is_minimal = 3;
1651 {PROTOBUF_FIELD_OFFSET(ComputeInfeasibleSubsystemResultProto, _impl_.is_minimal_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
1652 }},
1653 {{
1654 {::_pbi::TcParser::GetTable<::operations_research::math_opt::ModelSubsetProto>()},
1655 }},
1656 {{
1657 }},
1658};
1659PROTOBUF_NOINLINE void ComputeInfeasibleSubsystemResultProto::Clear() {
1660// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.ComputeInfeasibleSubsystemResultProto)
1661 ::google::protobuf::internal::TSanWrite(&_impl_);
1662 ::uint32_t cached_has_bits = 0;
1663 // Prevent compiler warnings about cached_has_bits being unused
1664 (void) cached_has_bits;
1666 cached_has_bits = _impl_._has_bits_[0];
1667 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1668 ABSL_DCHECK(_impl_.infeasible_subsystem_ != nullptr);
1669 _impl_.infeasible_subsystem_->Clear();
1670 }
1671 if (BatchCheckHasBit(cached_has_bits, 0x00000006U)) {
1672 ::memset(&_impl_.feasibility_, 0, static_cast<::size_t>(
1673 reinterpret_cast<char*>(&_impl_.is_minimal_) -
1674 reinterpret_cast<char*>(&_impl_.feasibility_)) + sizeof(_impl_.is_minimal_));
1675 }
1676 _impl_._has_bits_.Clear();
1677 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1678}
1679
1680#if defined(PROTOBUF_CUSTOM_VTABLE)
1681::uint8_t* PROTOBUF_NONNULL ComputeInfeasibleSubsystemResultProto::_InternalSerialize(
1682 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1683 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1684 const ComputeInfeasibleSubsystemResultProto& this_ = static_cast<const ComputeInfeasibleSubsystemResultProto&>(base);
1685#else // PROTOBUF_CUSTOM_VTABLE
1686::uint8_t* PROTOBUF_NONNULL ComputeInfeasibleSubsystemResultProto::_InternalSerialize(
1687 ::uint8_t* PROTOBUF_NONNULL target,
1688 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1689 const ComputeInfeasibleSubsystemResultProto& this_ = *this;
1690#endif // PROTOBUF_CUSTOM_VTABLE
1691 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1692 this_.CheckHasBitConsistency();
1693 }
1694 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.ComputeInfeasibleSubsystemResultProto)
1695 ::uint32_t cached_has_bits = 0;
1696 (void)cached_has_bits;
1697
1698 cached_has_bits = this_._impl_._has_bits_[0];
1699 // .operations_research.math_opt.FeasibilityStatusProto feasibility = 1;
1700 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1701 if (this_._internal_feasibility() != 0) {
1702 target = stream->EnsureSpace(target);
1703 target = ::_pbi::WireFormatLite::WriteEnumToArray(
1704 1, this_._internal_feasibility(), target);
1705 }
1706 }
1707
1708 // .operations_research.math_opt.ModelSubsetProto infeasible_subsystem = 2;
1709 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1710 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1711 2, *this_._impl_.infeasible_subsystem_, this_._impl_.infeasible_subsystem_->GetCachedSize(), target,
1712 stream);
1713 }
1714
1715 // bool is_minimal = 3;
1716 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1717 if (this_._internal_is_minimal() != 0) {
1718 target = stream->EnsureSpace(target);
1719 target = ::_pbi::WireFormatLite::WriteBoolToArray(
1720 3, this_._internal_is_minimal(), target);
1721 }
1722 }
1723
1724 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1725 target =
1726 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1727 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1728 }
1729 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.ComputeInfeasibleSubsystemResultProto)
1730 return target;
1731}
1732
1733#if defined(PROTOBUF_CUSTOM_VTABLE)
1734::size_t ComputeInfeasibleSubsystemResultProto::ByteSizeLong(const MessageLite& base) {
1735 const ComputeInfeasibleSubsystemResultProto& this_ = static_cast<const ComputeInfeasibleSubsystemResultProto&>(base);
1736#else // PROTOBUF_CUSTOM_VTABLE
1737::size_t ComputeInfeasibleSubsystemResultProto::ByteSizeLong() const {
1738 const ComputeInfeasibleSubsystemResultProto& this_ = *this;
1739#endif // PROTOBUF_CUSTOM_VTABLE
1740 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.ComputeInfeasibleSubsystemResultProto)
1741 ::size_t total_size = 0;
1742
1743 ::uint32_t cached_has_bits = 0;
1744 // Prevent compiler warnings about cached_has_bits being unused
1745 (void)cached_has_bits;
1746
1747 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1748 cached_has_bits = this_._impl_._has_bits_[0];
1749 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
1750 // .operations_research.math_opt.ModelSubsetProto infeasible_subsystem = 2;
1751 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1752 total_size += 1 +
1753 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.infeasible_subsystem_);
1754 }
1755 // .operations_research.math_opt.FeasibilityStatusProto feasibility = 1;
1756 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1757 if (this_._internal_feasibility() != 0) {
1758 total_size += 1 +
1759 ::_pbi::WireFormatLite::EnumSize(this_._internal_feasibility());
1760 }
1761 }
1762 // bool is_minimal = 3;
1763 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1764 if (this_._internal_is_minimal() != 0) {
1765 total_size += 2;
1766 }
1767 }
1768 }
1769 return this_.MaybeComputeUnknownFieldsSize(total_size,
1770 &this_._impl_._cached_size_);
1771}
1772
1773void ComputeInfeasibleSubsystemResultProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
1774 const ::google::protobuf::MessageLite& from_msg) {
1775 auto* const _this =
1776 static_cast<ComputeInfeasibleSubsystemResultProto*>(&to_msg);
1777 auto& from = static_cast<const ComputeInfeasibleSubsystemResultProto&>(from_msg);
1778 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1779 from.CheckHasBitConsistency();
1780 }
1781 ::google::protobuf::Arena* arena = _this->GetArena();
1782 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.ComputeInfeasibleSubsystemResultProto)
1783 ABSL_DCHECK_NE(&from, _this);
1784 ::uint32_t cached_has_bits = 0;
1785 (void)cached_has_bits;
1786
1787 cached_has_bits = from._impl_._has_bits_[0];
1788 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
1789 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1790 ABSL_DCHECK(from._impl_.infeasible_subsystem_ != nullptr);
1791 if (_this->_impl_.infeasible_subsystem_ == nullptr) {
1792 _this->_impl_.infeasible_subsystem_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.infeasible_subsystem_);
1793 } else {
1794 _this->_impl_.infeasible_subsystem_->MergeFrom(*from._impl_.infeasible_subsystem_);
1795 }
1796 }
1797 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1798 if (from._internal_feasibility() != 0) {
1799 _this->_impl_.feasibility_ = from._impl_.feasibility_;
1800 }
1801 }
1802 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1803 if (from._internal_is_minimal() != 0) {
1804 _this->_impl_.is_minimal_ = from._impl_.is_minimal_;
1805 }
1806 }
1807 }
1808 _this->_impl_._has_bits_[0] |= cached_has_bits;
1809 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1810 from._internal_metadata_);
1811}
1812
1813void ComputeInfeasibleSubsystemResultProto::CopyFrom(const ComputeInfeasibleSubsystemResultProto& from) {
1814 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.ComputeInfeasibleSubsystemResultProto)
1815 if (&from == this) return;
1816 Clear();
1817 MergeFrom(from);
1818}
1820
1821void ComputeInfeasibleSubsystemResultProto::InternalSwap(ComputeInfeasibleSubsystemResultProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1822 using ::std::swap;
1823 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1824 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1825 ::google::protobuf::internal::memswap<
1826 PROTOBUF_FIELD_OFFSET(ComputeInfeasibleSubsystemResultProto, _impl_.is_minimal_)
1828 - PROTOBUF_FIELD_OFFSET(ComputeInfeasibleSubsystemResultProto, _impl_.infeasible_subsystem_)>(
1829 reinterpret_cast<char*>(&_impl_.infeasible_subsystem_),
1830 reinterpret_cast<char*>(&other->_impl_.infeasible_subsystem_));
1831}
1832
1833::google::protobuf::Metadata ComputeInfeasibleSubsystemResultProto::GetMetadata() const {
1834 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1835}
1836// @@protoc_insertion_point(namespace_scope)
1837} // namespace math_opt
1838} // namespace operations_research
1839namespace google {
1840namespace protobuf {
1841} // namespace protobuf
1842} // namespace google
1843// @@protoc_insertion_point(global_scope)
1844PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
1845 _static_init2_ [[maybe_unused]] =
1847 ::std::false_type{});
1848#include "google/protobuf/port_undef.inc"
static PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::std::false_type _static_init2_
static const ::_pb::Message *PROTOBUF_NONNULL const file_default_instances[]
friend void swap(ComputeInfeasibleSubsystemResultProto &a, ComputeInfeasibleSubsystemResultProto &b)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void MergeFrom(const ComputeInfeasibleSubsystemResultProto &from)
decltype(::std::declval< ModelSubsetProto_Bounds >()._impl_._has_bits_) HasBits
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
friend void swap(ModelSubsetProto_Bounds &a, ModelSubsetProto_Bounds &b)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
static constexpr ::_pbi::MigrationSchema *PROTOBUF_NULLABLE schemas
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2finfeasible_5fsubsystem_2eproto
static constexprconst ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_service_descriptors_ortools_2fmath_5fopt_2finfeasible_5fsubsystem_2eproto
const ::uint32_t TableStruct_ortools_2fmath_5fopt_2finfeasible_5fsubsystem_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold)
static constexprconst ::_pb::EnumDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_enum_descriptors_ortools_2fmath_5fopt_2finfeasible_5fsubsystem_2eproto
::absl::once_flag descriptor_table_ortools_2fmath_5fopt_2finfeasible_5fsubsystem_2eproto_once
static const ::_pbi::DescriptorTable *PROTOBUF_NONNULL const descriptor_table_ortools_2fmath_5fopt_2finfeasible_5fsubsystem_2eproto_deps[1]
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ComputeInfeasibleSubsystemResultProtoDefaultTypeInternal _ComputeInfeasibleSubsystemResultProto_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull ModelSubsetProto_Bounds_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull ComputeInfeasibleSubsystemResultProto_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ModelSubsetProto_BoundsDefaultTypeInternal _ModelSubsetProto_Bounds_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull ModelSubsetProto_LinearConstraintsEntry_DoNotUse_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ModelSubsetProto_QuadraticConstraintsEntry_DoNotUseDefaultTypeInternal _ModelSubsetProto_QuadraticConstraintsEntry_DoNotUse_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ModelSubsetProto_VariableBoundsEntry_DoNotUseDefaultTypeInternal _ModelSubsetProto_VariableBoundsEntry_DoNotUse_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ModelSubsetProtoDefaultTypeInternal _ModelSubsetProto_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull ModelSubsetProto_QuadraticConstraintsEntry_DoNotUse_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull ModelSubsetProto_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull ModelSubsetProto_VariableBoundsEntry_DoNotUse_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ModelSubsetProto_LinearConstraintsEntry_DoNotUseDefaultTypeInternal _ModelSubsetProto_LinearConstraintsEntry_DoNotUse_default_instance_
OR-Tools root namespace.
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fresult_2eproto
Definition result.pb.cc:383