Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
sparse_containers.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/sparse_containers.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 SparseVectorFilterProto::Impl_::Impl_(
31 ::_pbi::ConstantInitialized) noexcept
32 : _cached_size_{0},
33 filtered_ids_{},
34 _filtered_ids_cached_byte_size_{0},
35 skip_zero_values_{false},
36 filter_by_ids_{false} {}
37
38template <typename>
39PROTOBUF_CONSTEXPR SparseVectorFilterProto::SparseVectorFilterProto(::_pbi::ConstantInitialized)
40#if defined(PROTOBUF_CUSTOM_VTABLE)
41 : ::google::protobuf::Message(SparseVectorFilterProto_class_data_.base()),
42#else // PROTOBUF_CUSTOM_VTABLE
43 : ::google::protobuf::Message(),
44#endif // PROTOBUF_CUSTOM_VTABLE
45 _impl_(::_pbi::ConstantInitialized()) {
46}
54
55PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
57
58inline constexpr SparseInt32VectorProto::Impl_::Impl_(
59 ::_pbi::ConstantInitialized) noexcept
60 : _cached_size_{0},
61 ids_{},
62 _ids_cached_byte_size_{0},
63 values_{},
64 _values_cached_byte_size_{0} {}
65
66template <typename>
67PROTOBUF_CONSTEXPR SparseInt32VectorProto::SparseInt32VectorProto(::_pbi::ConstantInitialized)
68#if defined(PROTOBUF_CUSTOM_VTABLE)
69 : ::google::protobuf::Message(SparseInt32VectorProto_class_data_.base()),
70#else // PROTOBUF_CUSTOM_VTABLE
71 : ::google::protobuf::Message(),
72#endif // PROTOBUF_CUSTOM_VTABLE
73 _impl_(::_pbi::ConstantInitialized()) {
74}
82
83PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
85
86inline constexpr SparseDoubleVectorProto::Impl_::Impl_(
87 ::_pbi::ConstantInitialized) noexcept
88 : _cached_size_{0},
89 ids_{},
90 _ids_cached_byte_size_{0},
91 values_{} {}
92
93template <typename>
94PROTOBUF_CONSTEXPR SparseDoubleVectorProto::SparseDoubleVectorProto(::_pbi::ConstantInitialized)
95#if defined(PROTOBUF_CUSTOM_VTABLE)
96 : ::google::protobuf::Message(SparseDoubleVectorProto_class_data_.base()),
97#else // PROTOBUF_CUSTOM_VTABLE
98 : ::google::protobuf::Message(),
99#endif // PROTOBUF_CUSTOM_VTABLE
100 _impl_(::_pbi::ConstantInitialized()) {
101}
109
110PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
112
113inline constexpr SparseDoubleMatrixProto::Impl_::Impl_(
114 ::_pbi::ConstantInitialized) noexcept
115 : _cached_size_{0},
116 row_ids_{},
117 _row_ids_cached_byte_size_{0},
118 column_ids_{},
119 _column_ids_cached_byte_size_{0},
120 coefficients_{} {}
121
122template <typename>
123PROTOBUF_CONSTEXPR SparseDoubleMatrixProto::SparseDoubleMatrixProto(::_pbi::ConstantInitialized)
124#if defined(PROTOBUF_CUSTOM_VTABLE)
125 : ::google::protobuf::Message(SparseDoubleMatrixProto_class_data_.base()),
126#else // PROTOBUF_CUSTOM_VTABLE
127 : ::google::protobuf::Message(),
128#endif // PROTOBUF_CUSTOM_VTABLE
129 _impl_(::_pbi::ConstantInitialized()) {
130}
138
139PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
141
142inline constexpr SparseBoolVectorProto::Impl_::Impl_(
143 ::_pbi::ConstantInitialized) noexcept
144 : _cached_size_{0},
145 ids_{},
146 _ids_cached_byte_size_{0},
147 values_{} {}
148
149template <typename>
150PROTOBUF_CONSTEXPR SparseBoolVectorProto::SparseBoolVectorProto(::_pbi::ConstantInitialized)
151#if defined(PROTOBUF_CUSTOM_VTABLE)
152 : ::google::protobuf::Message(SparseBoolVectorProto_class_data_.base()),
153#else // PROTOBUF_CUSTOM_VTABLE
154 : ::google::protobuf::Message(),
155#endif // PROTOBUF_CUSTOM_VTABLE
156 _impl_(::_pbi::ConstantInitialized()) {
157}
165
166PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
168
169inline constexpr LinearExpressionProto::Impl_::Impl_(
170 ::_pbi::ConstantInitialized) noexcept
171 : _cached_size_{0},
172 ids_{},
173 _ids_cached_byte_size_{0},
174 coefficients_{},
175 offset_{0} {}
176
177template <typename>
178PROTOBUF_CONSTEXPR LinearExpressionProto::LinearExpressionProto(::_pbi::ConstantInitialized)
179#if defined(PROTOBUF_CUSTOM_VTABLE)
180 : ::google::protobuf::Message(LinearExpressionProto_class_data_.base()),
181#else // PROTOBUF_CUSTOM_VTABLE
182 : ::google::protobuf::Message(),
183#endif // PROTOBUF_CUSTOM_VTABLE
184 _impl_(::_pbi::ConstantInitialized()) {
185}
193
194PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
196} // namespace math_opt
197} // namespace operations_research
198static constexpr const ::_pb::EnumDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
200static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
202const ::uint32_t
204 protodesc_cold) = {
205 0x081, // bitmap
206 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SparseDoubleVectorProto, _impl_._has_bits_),
207 5, // hasbit index offset
208 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SparseDoubleVectorProto, _impl_.ids_),
209 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SparseDoubleVectorProto, _impl_.values_),
210 0,
211 1,
212 0x081, // bitmap
213 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SparseBoolVectorProto, _impl_._has_bits_),
214 5, // hasbit index offset
215 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SparseBoolVectorProto, _impl_.ids_),
216 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SparseBoolVectorProto, _impl_.values_),
217 0,
218 1,
219 0x081, // bitmap
220 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SparseInt32VectorProto, _impl_._has_bits_),
221 5, // hasbit index offset
222 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SparseInt32VectorProto, _impl_.ids_),
223 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SparseInt32VectorProto, _impl_.values_),
224 0,
225 1,
226 0x081, // bitmap
227 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SparseVectorFilterProto, _impl_._has_bits_),
228 6, // hasbit index offset
229 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SparseVectorFilterProto, _impl_.skip_zero_values_),
230 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SparseVectorFilterProto, _impl_.filter_by_ids_),
231 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SparseVectorFilterProto, _impl_.filtered_ids_),
232 1,
233 2,
234 0,
235 0x081, // bitmap
236 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SparseDoubleMatrixProto, _impl_._has_bits_),
237 6, // hasbit index offset
238 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SparseDoubleMatrixProto, _impl_.row_ids_),
239 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SparseDoubleMatrixProto, _impl_.column_ids_),
240 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SparseDoubleMatrixProto, _impl_.coefficients_),
241 0,
242 1,
243 2,
244 0x081, // bitmap
245 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::LinearExpressionProto, _impl_._has_bits_),
246 6, // hasbit index offset
247 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::LinearExpressionProto, _impl_.ids_),
248 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::LinearExpressionProto, _impl_.coefficients_),
249 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::LinearExpressionProto, _impl_.offset_),
250 0,
251 1,
252 2,
253};
254
255static const ::_pbi::MigrationSchema
256 schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
263};
272const char descriptor_table_protodef_ortools_2fmath_5fopt_2fsparse_5fcontainers_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
273 protodesc_cold) = {
274 "\n(ortools/math_opt/sparse_containers.pro"
275 "to\022\034operations_research.math_opt\"6\n\027Spar"
276 "seDoubleVectorProto\022\013\n\003ids\030\001 \003(\003\022\016\n\006valu"
277 "es\030\002 \003(\001\"4\n\025SparseBoolVectorProto\022\013\n\003ids"
278 "\030\001 \003(\003\022\016\n\006values\030\002 \003(\010\"5\n\026SparseInt32Vec"
279 "torProto\022\013\n\003ids\030\001 \003(\003\022\016\n\006values\030\002 \003(\005\"`\n"
280 "\027SparseVectorFilterProto\022\030\n\020skip_zero_va"
281 "lues\030\001 \001(\010\022\025\n\rfilter_by_ids\030\002 \001(\010\022\024\n\014fil"
282 "tered_ids\030\003 \003(\003\"T\n\027SparseDoubleMatrixPro"
283 "to\022\017\n\007row_ids\030\001 \003(\003\022\022\n\ncolumn_ids\030\002 \003(\003\022"
284 "\024\n\014coefficients\030\003 \003(\001\"J\n\025LinearExpressio"
285 "nProto\022\013\n\003ids\030\001 \003(\003\022\024\n\014coefficients\030\002 \003("
286 "\001\022\016\n\006offset\030\003 \001(\001B\036\n\032com.google.ortools."
287 "mathoptP\001b\006proto3"
288};
290PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fsparse_5fcontainers_2eproto = {
291 false,
292 false,
293 537,
294 descriptor_table_protodef_ortools_2fmath_5fopt_2fsparse_5fcontainers_2eproto,
295 "ortools/math_opt/sparse_containers.proto",
297 nullptr,
298 0,
299 6,
300 schemas,
305};
306namespace operations_research {
307namespace math_opt {
308// ===================================================================
309
311 public:
312 using HasBits =
313 decltype(::std::declval<SparseDoubleVectorProto>()._impl_._has_bits_);
314 static constexpr ::int32_t kHasBitsOffset =
315 8 * PROTOBUF_FIELD_OFFSET(SparseDoubleVectorProto, _impl_._has_bits_);
316};
317
318SparseDoubleVectorProto::SparseDoubleVectorProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
319#if defined(PROTOBUF_CUSTOM_VTABLE)
320 : ::google::protobuf::Message(arena, SparseDoubleVectorProto_class_data_.base()) {
321#else // PROTOBUF_CUSTOM_VTABLE
322 : ::google::protobuf::Message(arena) {
323#endif // PROTOBUF_CUSTOM_VTABLE
324 SharedCtor(arena);
325 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.SparseDoubleVectorProto)
326}
327PROTOBUF_NDEBUG_INLINE SparseDoubleVectorProto::Impl_::Impl_(
328 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
329 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
330 [[maybe_unused]] const ::operations_research::math_opt::SparseDoubleVectorProto& from_msg)
331 : _has_bits_{from._has_bits_},
332 _cached_size_{0},
333 ids_{visibility, arena, from.ids_},
334 _ids_cached_byte_size_{0},
335 values_{visibility, arena, from.values_} {}
336
338 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
339 const SparseDoubleVectorProto& from)
340#if defined(PROTOBUF_CUSTOM_VTABLE)
341 : ::google::protobuf::Message(arena, SparseDoubleVectorProto_class_data_.base()) {
342#else // PROTOBUF_CUSTOM_VTABLE
343 : ::google::protobuf::Message(arena) {
344#endif // PROTOBUF_CUSTOM_VTABLE
345 SparseDoubleVectorProto* const _this = this;
346 (void)_this;
347 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
348 from._internal_metadata_);
349 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
350
351 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.SparseDoubleVectorProto)
352}
353PROTOBUF_NDEBUG_INLINE SparseDoubleVectorProto::Impl_::Impl_(
354 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
355 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
356 : _cached_size_{0},
357 ids_{visibility, arena},
358 _ids_cached_byte_size_{0},
359 values_{visibility, arena} {}
360
361inline void SparseDoubleVectorProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
362 new (&_impl_) Impl_(internal_visibility(), arena);
363}
365 // @@protoc_insertion_point(destructor:operations_research.math_opt.SparseDoubleVectorProto)
366 SharedDtor(*this);
367}
368inline void SparseDoubleVectorProto::SharedDtor(MessageLite& self) {
369 SparseDoubleVectorProto& this_ = static_cast<SparseDoubleVectorProto&>(self);
370 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
371 this_.CheckHasBitConsistency();
372 }
373 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
374 ABSL_DCHECK(this_.GetArena() == nullptr);
375 this_._impl_.~Impl_();
376}
377
378inline void* PROTOBUF_NONNULL SparseDoubleVectorProto::PlacementNew_(
379 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
380 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
381 return ::new (mem) SparseDoubleVectorProto(arena);
382}
383constexpr auto SparseDoubleVectorProto::InternalNewImpl_() {
384 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
385 PROTOBUF_FIELD_OFFSET(SparseDoubleVectorProto, _impl_.ids_) +
386 decltype(SparseDoubleVectorProto::_impl_.ids_)::
387 InternalGetArenaOffset(
388 ::google::protobuf::Message::internal_visibility()),
389 PROTOBUF_FIELD_OFFSET(SparseDoubleVectorProto, _impl_.values_) +
390 decltype(SparseDoubleVectorProto::_impl_.values_)::
391 InternalGetArenaOffset(
392 ::google::protobuf::Message::internal_visibility()),
393 });
394 if (arena_bits.has_value()) {
395 return ::google::protobuf::internal::MessageCreator::ZeroInit(
396 sizeof(SparseDoubleVectorProto), alignof(SparseDoubleVectorProto), *arena_bits);
397 } else {
398 return ::google::protobuf::internal::MessageCreator(&SparseDoubleVectorProto::PlacementNew_,
399 sizeof(SparseDoubleVectorProto),
400 alignof(SparseDoubleVectorProto));
401 }
402}
404 return ::google::protobuf::internal::ClassDataFull{
405 ::google::protobuf::internal::ClassData{
407 &_table_.header,
408 nullptr, // OnDemandRegisterArenaDtor
409 nullptr, // IsInitialized
410 &SparseDoubleVectorProto::MergeImpl,
411 ::google::protobuf::Message::GetNewImpl<SparseDoubleVectorProto>(),
412#if defined(PROTOBUF_CUSTOM_VTABLE)
413 &SparseDoubleVectorProto::SharedDtor,
414 ::google::protobuf::Message::GetClearImpl<SparseDoubleVectorProto>(), &SparseDoubleVectorProto::ByteSizeLong,
416#endif // PROTOBUF_CUSTOM_VTABLE
417 PROTOBUF_FIELD_OFFSET(SparseDoubleVectorProto, _impl_._cached_size_),
418 false,
419 },
420 &SparseDoubleVectorProto::kDescriptorMethods,
422 nullptr, // tracker
423 };
424}
425
426PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
427 ::google::protobuf::internal::ClassDataFull SparseDoubleVectorProto_class_data_ =
429
430PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
431SparseDoubleVectorProto::GetClassData() const {
432 ::google::protobuf::internal::PrefetchToLocalCache(&SparseDoubleVectorProto_class_data_);
433 ::google::protobuf::internal::PrefetchToLocalCache(SparseDoubleVectorProto_class_data_.tc_table);
435}
436PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
437const ::_pbi::TcParseTable<1, 2, 0, 0, 2>
438SparseDoubleVectorProto::_table_ = {
439 {
440 PROTOBUF_FIELD_OFFSET(SparseDoubleVectorProto, _impl_._has_bits_),
441 0, // no _extensions_
442 2, 8, // max_field_number, fast_idx_mask
443 offsetof(decltype(_table_), field_lookup_table),
444 4294967292, // skipmap
445 offsetof(decltype(_table_), field_entries),
446 2, // num_field_entries
447 0, // num_aux_entries
448 offsetof(decltype(_table_), field_names), // no aux_entries
450 nullptr, // post_loop_handler
451 ::_pbi::TcParser::GenericFallback, // fallback
452 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
453 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleVectorProto>(), // to_prefetch
454 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
455 }, {{
456 // repeated double values = 2;
457 {::_pbi::TcParser::FastF64P1,
458 {18, 1, 0,
459 PROTOBUF_FIELD_OFFSET(SparseDoubleVectorProto, _impl_.values_)}},
460 // repeated int64 ids = 1;
461 {::_pbi::TcParser::FastV64P1,
462 {10, 0, 0,
463 PROTOBUF_FIELD_OFFSET(SparseDoubleVectorProto, _impl_.ids_)}},
464 }}, {{
465 65535, 65535
466 }}, {{
467 // repeated int64 ids = 1;
468 {PROTOBUF_FIELD_OFFSET(SparseDoubleVectorProto, _impl_.ids_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
469 // repeated double values = 2;
470 {PROTOBUF_FIELD_OFFSET(SparseDoubleVectorProto, _impl_.values_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)},
471 }},
472 // no aux_entries
473 {{
474 }},
475};
476PROTOBUF_NOINLINE void SparseDoubleVectorProto::Clear() {
477// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.SparseDoubleVectorProto)
478 ::google::protobuf::internal::TSanWrite(&_impl_);
479 ::uint32_t cached_has_bits = 0;
480 // Prevent compiler warnings about cached_has_bits being unused
481 (void) cached_has_bits;
482
483 cached_has_bits = _impl_._has_bits_[0];
484 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
485 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
486 _impl_.ids_.Clear();
487 }
488 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
489 _impl_.values_.Clear();
490 }
491 }
492 _impl_._has_bits_.Clear();
493 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
494}
495
496#if defined(PROTOBUF_CUSTOM_VTABLE)
497::uint8_t* PROTOBUF_NONNULL SparseDoubleVectorProto::_InternalSerialize(
498 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
499 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
500 const SparseDoubleVectorProto& this_ = static_cast<const SparseDoubleVectorProto&>(base);
501#else // PROTOBUF_CUSTOM_VTABLE
502::uint8_t* PROTOBUF_NONNULL SparseDoubleVectorProto::_InternalSerialize(
503 ::uint8_t* PROTOBUF_NONNULL target,
504 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
505 const SparseDoubleVectorProto& this_ = *this;
506#endif // PROTOBUF_CUSTOM_VTABLE
507 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
508 this_.CheckHasBitConsistency();
509 }
510 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.SparseDoubleVectorProto)
511 ::uint32_t cached_has_bits = 0;
512 (void)cached_has_bits;
513
514 cached_has_bits = this_._impl_._has_bits_[0];
515 // repeated int64 ids = 1;
516 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
517 {
518 int byte_size = this_._impl_._ids_cached_byte_size_.Get();
519 if (byte_size > 0) {
520 target = stream->WriteInt64Packed(
521 1, this_._internal_ids(), byte_size, target);
522 }
523 }
524 }
525
526 // repeated double values = 2;
527 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
528 if (this_._internal_values_size() > 0) {
529 target = stream->WriteFixedPacked(2, this_._internal_values(), target);
530 }
531 }
532
533 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
534 target =
535 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
536 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
537 }
538 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.SparseDoubleVectorProto)
539 return target;
540}
541
542#if defined(PROTOBUF_CUSTOM_VTABLE)
544 const SparseDoubleVectorProto& this_ = static_cast<const SparseDoubleVectorProto&>(base);
545#else // PROTOBUF_CUSTOM_VTABLE
547 const SparseDoubleVectorProto& this_ = *this;
548#endif // PROTOBUF_CUSTOM_VTABLE
549 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.SparseDoubleVectorProto)
550 ::size_t total_size = 0;
551
552 ::uint32_t cached_has_bits = 0;
553 // Prevent compiler warnings about cached_has_bits being unused
554 (void)cached_has_bits;
555
556 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
557 cached_has_bits = this_._impl_._has_bits_[0];
558 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
559 // repeated int64 ids = 1;
560 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
561 total_size +=
562 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
563 this_._internal_ids(), 1,
564 this_._impl_._ids_cached_byte_size_);
565 }
566 // repeated double values = 2;
567 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
568 ::size_t data_size = ::size_t{8} *
569 ::_pbi::FromIntSize(this_._internal_values_size());
570 ::size_t tag_size = data_size == 0
571 ? 0
572 : 1 + ::_pbi::WireFormatLite::Int32Size(
573 static_cast<::int32_t>(data_size));
574 total_size += tag_size + data_size;
575 }
576 }
577 return this_.MaybeComputeUnknownFieldsSize(total_size,
578 &this_._impl_._cached_size_);
579}
580
581void SparseDoubleVectorProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
582 const ::google::protobuf::MessageLite& from_msg) {
583 auto* const _this =
584 static_cast<SparseDoubleVectorProto*>(&to_msg);
585 auto& from = static_cast<const SparseDoubleVectorProto&>(from_msg);
586 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
587 from.CheckHasBitConsistency();
588 }
589 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.SparseDoubleVectorProto)
590 ABSL_DCHECK_NE(&from, _this);
591 ::uint32_t cached_has_bits = 0;
592 (void)cached_has_bits;
593
594 cached_has_bits = from._impl_._has_bits_[0];
595 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
596 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
597 _this->_internal_mutable_ids()->MergeFrom(from._internal_ids());
598 }
599 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
600 _this->_internal_mutable_values()->MergeFrom(from._internal_values());
601 }
602 }
603 _this->_impl_._has_bits_[0] |= cached_has_bits;
604 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
605 from._internal_metadata_);
606}
607
609 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.SparseDoubleVectorProto)
610 if (&from == this) return;
611 Clear();
612 MergeFrom(from);
613}
614
615
616void SparseDoubleVectorProto::InternalSwap(SparseDoubleVectorProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
617 using ::std::swap;
618 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
619 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
620 _impl_.ids_.InternalSwap(&other->_impl_.ids_);
621 _impl_.values_.InternalSwap(&other->_impl_.values_);
622}
623
624::google::protobuf::Metadata SparseDoubleVectorProto::GetMetadata() const {
625 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
626}
627// ===================================================================
628
630 public:
631 using HasBits =
632 decltype(::std::declval<SparseBoolVectorProto>()._impl_._has_bits_);
633 static constexpr ::int32_t kHasBitsOffset =
634 8 * PROTOBUF_FIELD_OFFSET(SparseBoolVectorProto, _impl_._has_bits_);
636
637SparseBoolVectorProto::SparseBoolVectorProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
638#if defined(PROTOBUF_CUSTOM_VTABLE)
639 : ::google::protobuf::Message(arena, SparseBoolVectorProto_class_data_.base()) {
640#else // PROTOBUF_CUSTOM_VTABLE
641 : ::google::protobuf::Message(arena) {
642#endif // PROTOBUF_CUSTOM_VTABLE
643 SharedCtor(arena);
644 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.SparseBoolVectorProto)
645}
646PROTOBUF_NDEBUG_INLINE SparseBoolVectorProto::Impl_::Impl_(
647 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
648 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
649 [[maybe_unused]] const ::operations_research::math_opt::SparseBoolVectorProto& from_msg)
650 : _has_bits_{from._has_bits_},
651 _cached_size_{0},
652 ids_{visibility, arena, from.ids_},
653 _ids_cached_byte_size_{0},
654 values_{visibility, arena, from.values_} {}
655
657 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
658 const SparseBoolVectorProto& from)
659#if defined(PROTOBUF_CUSTOM_VTABLE)
660 : ::google::protobuf::Message(arena, SparseBoolVectorProto_class_data_.base()) {
661#else // PROTOBUF_CUSTOM_VTABLE
662 : ::google::protobuf::Message(arena) {
663#endif // PROTOBUF_CUSTOM_VTABLE
664 SparseBoolVectorProto* const _this = this;
665 (void)_this;
666 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
667 from._internal_metadata_);
668 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
669
670 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.SparseBoolVectorProto)
671}
672PROTOBUF_NDEBUG_INLINE SparseBoolVectorProto::Impl_::Impl_(
673 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
674 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
675 : _cached_size_{0},
676 ids_{visibility, arena},
677 _ids_cached_byte_size_{0},
678 values_{visibility, arena} {}
679
680inline void SparseBoolVectorProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
681 new (&_impl_) Impl_(internal_visibility(), arena);
682}
684 // @@protoc_insertion_point(destructor:operations_research.math_opt.SparseBoolVectorProto)
685 SharedDtor(*this);
686}
687inline void SparseBoolVectorProto::SharedDtor(MessageLite& self) {
688 SparseBoolVectorProto& this_ = static_cast<SparseBoolVectorProto&>(self);
689 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
690 this_.CheckHasBitConsistency();
691 }
692 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
693 ABSL_DCHECK(this_.GetArena() == nullptr);
694 this_._impl_.~Impl_();
695}
696
697inline void* PROTOBUF_NONNULL SparseBoolVectorProto::PlacementNew_(
698 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
699 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
700 return ::new (mem) SparseBoolVectorProto(arena);
701}
702constexpr auto SparseBoolVectorProto::InternalNewImpl_() {
703 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
704 PROTOBUF_FIELD_OFFSET(SparseBoolVectorProto, _impl_.ids_) +
705 decltype(SparseBoolVectorProto::_impl_.ids_)::
706 InternalGetArenaOffset(
707 ::google::protobuf::Message::internal_visibility()),
708 PROTOBUF_FIELD_OFFSET(SparseBoolVectorProto, _impl_.values_) +
709 decltype(SparseBoolVectorProto::_impl_.values_)::
710 InternalGetArenaOffset(
711 ::google::protobuf::Message::internal_visibility()),
712 });
713 if (arena_bits.has_value()) {
714 return ::google::protobuf::internal::MessageCreator::ZeroInit(
715 sizeof(SparseBoolVectorProto), alignof(SparseBoolVectorProto), *arena_bits);
716 } else {
717 return ::google::protobuf::internal::MessageCreator(&SparseBoolVectorProto::PlacementNew_,
718 sizeof(SparseBoolVectorProto),
719 alignof(SparseBoolVectorProto));
720 }
721}
723 return ::google::protobuf::internal::ClassDataFull{
724 ::google::protobuf::internal::ClassData{
726 &_table_.header,
727 nullptr, // OnDemandRegisterArenaDtor
728 nullptr, // IsInitialized
729 &SparseBoolVectorProto::MergeImpl,
730 ::google::protobuf::Message::GetNewImpl<SparseBoolVectorProto>(),
731#if defined(PROTOBUF_CUSTOM_VTABLE)
732 &SparseBoolVectorProto::SharedDtor,
733 ::google::protobuf::Message::GetClearImpl<SparseBoolVectorProto>(), &SparseBoolVectorProto::ByteSizeLong,
735#endif // PROTOBUF_CUSTOM_VTABLE
736 PROTOBUF_FIELD_OFFSET(SparseBoolVectorProto, _impl_._cached_size_),
737 false,
738 },
739 &SparseBoolVectorProto::kDescriptorMethods,
741 nullptr, // tracker
742 };
743}
744
745PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
746 ::google::protobuf::internal::ClassDataFull SparseBoolVectorProto_class_data_ =
749PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
750SparseBoolVectorProto::GetClassData() const {
751 ::google::protobuf::internal::PrefetchToLocalCache(&SparseBoolVectorProto_class_data_);
752 ::google::protobuf::internal::PrefetchToLocalCache(SparseBoolVectorProto_class_data_.tc_table);
754}
755PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
756const ::_pbi::TcParseTable<1, 2, 0, 0, 2>
757SparseBoolVectorProto::_table_ = {
758 {
759 PROTOBUF_FIELD_OFFSET(SparseBoolVectorProto, _impl_._has_bits_),
760 0, // no _extensions_
761 2, 8, // max_field_number, fast_idx_mask
762 offsetof(decltype(_table_), field_lookup_table),
763 4294967292, // skipmap
764 offsetof(decltype(_table_), field_entries),
765 2, // num_field_entries
766 0, // num_aux_entries
767 offsetof(decltype(_table_), field_names), // no aux_entries
769 nullptr, // post_loop_handler
770 ::_pbi::TcParser::GenericFallback, // fallback
771 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
772 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseBoolVectorProto>(), // to_prefetch
773 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
774 }, {{
775 // repeated bool values = 2;
776 {::_pbi::TcParser::FastV8P1,
777 {18, 1, 0,
778 PROTOBUF_FIELD_OFFSET(SparseBoolVectorProto, _impl_.values_)}},
779 // repeated int64 ids = 1;
780 {::_pbi::TcParser::FastV64P1,
781 {10, 0, 0,
782 PROTOBUF_FIELD_OFFSET(SparseBoolVectorProto, _impl_.ids_)}},
783 }}, {{
784 65535, 65535
785 }}, {{
786 // repeated int64 ids = 1;
787 {PROTOBUF_FIELD_OFFSET(SparseBoolVectorProto, _impl_.ids_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
788 // repeated bool values = 2;
789 {PROTOBUF_FIELD_OFFSET(SparseBoolVectorProto, _impl_.values_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedBool)},
790 }},
791 // no aux_entries
792 {{
793 }},
794};
795PROTOBUF_NOINLINE void SparseBoolVectorProto::Clear() {
796// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.SparseBoolVectorProto)
797 ::google::protobuf::internal::TSanWrite(&_impl_);
798 ::uint32_t cached_has_bits = 0;
799 // Prevent compiler warnings about cached_has_bits being unused
800 (void) cached_has_bits;
801
802 cached_has_bits = _impl_._has_bits_[0];
803 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
804 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
805 _impl_.ids_.Clear();
806 }
807 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
808 _impl_.values_.Clear();
809 }
810 }
811 _impl_._has_bits_.Clear();
812 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
813}
814
815#if defined(PROTOBUF_CUSTOM_VTABLE)
816::uint8_t* PROTOBUF_NONNULL SparseBoolVectorProto::_InternalSerialize(
817 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
818 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
819 const SparseBoolVectorProto& this_ = static_cast<const SparseBoolVectorProto&>(base);
820#else // PROTOBUF_CUSTOM_VTABLE
821::uint8_t* PROTOBUF_NONNULL SparseBoolVectorProto::_InternalSerialize(
822 ::uint8_t* PROTOBUF_NONNULL target,
823 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
824 const SparseBoolVectorProto& this_ = *this;
825#endif // PROTOBUF_CUSTOM_VTABLE
826 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
827 this_.CheckHasBitConsistency();
828 }
829 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.SparseBoolVectorProto)
830 ::uint32_t cached_has_bits = 0;
831 (void)cached_has_bits;
832
833 cached_has_bits = this_._impl_._has_bits_[0];
834 // repeated int64 ids = 1;
835 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
836 {
837 int byte_size = this_._impl_._ids_cached_byte_size_.Get();
838 if (byte_size > 0) {
839 target = stream->WriteInt64Packed(
840 1, this_._internal_ids(), byte_size, target);
841 }
842 }
843 }
844
845 // repeated bool values = 2;
846 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
847 if (this_._internal_values_size() > 0) {
848 target = stream->WriteFixedPacked(2, this_._internal_values(), target);
849 }
850 }
851
852 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
853 target =
854 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
855 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
856 }
857 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.SparseBoolVectorProto)
858 return target;
859}
860
861#if defined(PROTOBUF_CUSTOM_VTABLE)
863 const SparseBoolVectorProto& this_ = static_cast<const SparseBoolVectorProto&>(base);
864#else // PROTOBUF_CUSTOM_VTABLE
866 const SparseBoolVectorProto& this_ = *this;
867#endif // PROTOBUF_CUSTOM_VTABLE
868 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.SparseBoolVectorProto)
869 ::size_t total_size = 0;
870
871 ::uint32_t cached_has_bits = 0;
872 // Prevent compiler warnings about cached_has_bits being unused
873 (void)cached_has_bits;
874
875 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
876 cached_has_bits = this_._impl_._has_bits_[0];
877 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
878 // repeated int64 ids = 1;
879 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
880 total_size +=
881 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
882 this_._internal_ids(), 1,
883 this_._impl_._ids_cached_byte_size_);
884 }
885 // repeated bool values = 2;
886 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
887 ::size_t data_size = ::size_t{1} *
888 ::_pbi::FromIntSize(this_._internal_values_size());
889 ::size_t tag_size = data_size == 0
890 ? 0
891 : 1 + ::_pbi::WireFormatLite::Int32Size(
892 static_cast<::int32_t>(data_size));
893 total_size += tag_size + data_size;
894 }
895 }
896 return this_.MaybeComputeUnknownFieldsSize(total_size,
897 &this_._impl_._cached_size_);
898}
899
900void SparseBoolVectorProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
901 const ::google::protobuf::MessageLite& from_msg) {
902 auto* const _this =
903 static_cast<SparseBoolVectorProto*>(&to_msg);
904 auto& from = static_cast<const SparseBoolVectorProto&>(from_msg);
905 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
906 from.CheckHasBitConsistency();
907 }
908 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.SparseBoolVectorProto)
909 ABSL_DCHECK_NE(&from, _this);
910 ::uint32_t cached_has_bits = 0;
911 (void)cached_has_bits;
912
913 cached_has_bits = from._impl_._has_bits_[0];
914 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
915 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
916 _this->_internal_mutable_ids()->MergeFrom(from._internal_ids());
917 }
918 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
919 _this->_internal_mutable_values()->MergeFrom(from._internal_values());
920 }
921 }
922 _this->_impl_._has_bits_[0] |= cached_has_bits;
923 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
924 from._internal_metadata_);
925}
926
928 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.SparseBoolVectorProto)
929 if (&from == this) return;
930 Clear();
931 MergeFrom(from);
932}
933
934
935void SparseBoolVectorProto::InternalSwap(SparseBoolVectorProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
936 using ::std::swap;
937 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
938 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
939 _impl_.ids_.InternalSwap(&other->_impl_.ids_);
940 _impl_.values_.InternalSwap(&other->_impl_.values_);
941}
942
943::google::protobuf::Metadata SparseBoolVectorProto::GetMetadata() const {
944 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
946// ===================================================================
947
949 public:
950 using HasBits =
951 decltype(::std::declval<SparseInt32VectorProto>()._impl_._has_bits_);
952 static constexpr ::int32_t kHasBitsOffset =
953 8 * PROTOBUF_FIELD_OFFSET(SparseInt32VectorProto, _impl_._has_bits_);
954};
956SparseInt32VectorProto::SparseInt32VectorProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
957#if defined(PROTOBUF_CUSTOM_VTABLE)
958 : ::google::protobuf::Message(arena, SparseInt32VectorProto_class_data_.base()) {
959#else // PROTOBUF_CUSTOM_VTABLE
960 : ::google::protobuf::Message(arena) {
961#endif // PROTOBUF_CUSTOM_VTABLE
962 SharedCtor(arena);
963 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.SparseInt32VectorProto)
964}
965PROTOBUF_NDEBUG_INLINE SparseInt32VectorProto::Impl_::Impl_(
966 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
967 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
968 [[maybe_unused]] const ::operations_research::math_opt::SparseInt32VectorProto& from_msg)
969 : _has_bits_{from._has_bits_},
970 _cached_size_{0},
971 ids_{visibility, arena, from.ids_},
972 _ids_cached_byte_size_{0},
973 values_{visibility, arena, from.values_},
974 _values_cached_byte_size_{0} {}
975
977 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
978 const SparseInt32VectorProto& from)
979#if defined(PROTOBUF_CUSTOM_VTABLE)
980 : ::google::protobuf::Message(arena, SparseInt32VectorProto_class_data_.base()) {
981#else // PROTOBUF_CUSTOM_VTABLE
982 : ::google::protobuf::Message(arena) {
983#endif // PROTOBUF_CUSTOM_VTABLE
984 SparseInt32VectorProto* const _this = this;
985 (void)_this;
986 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
987 from._internal_metadata_);
988 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
989
990 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.SparseInt32VectorProto)
991}
992PROTOBUF_NDEBUG_INLINE SparseInt32VectorProto::Impl_::Impl_(
993 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
994 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
995 : _cached_size_{0},
996 ids_{visibility, arena},
997 _ids_cached_byte_size_{0},
998 values_{visibility, arena},
999 _values_cached_byte_size_{0} {}
1000
1001inline void SparseInt32VectorProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1002 new (&_impl_) Impl_(internal_visibility(), arena);
1003}
1005 // @@protoc_insertion_point(destructor:operations_research.math_opt.SparseInt32VectorProto)
1006 SharedDtor(*this);
1008inline void SparseInt32VectorProto::SharedDtor(MessageLite& self) {
1009 SparseInt32VectorProto& this_ = static_cast<SparseInt32VectorProto&>(self);
1010 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1011 this_.CheckHasBitConsistency();
1012 }
1013 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1014 ABSL_DCHECK(this_.GetArena() == nullptr);
1015 this_._impl_.~Impl_();
1016}
1017
1018inline void* PROTOBUF_NONNULL SparseInt32VectorProto::PlacementNew_(
1019 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1020 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1021 return ::new (mem) SparseInt32VectorProto(arena);
1022}
1023constexpr auto SparseInt32VectorProto::InternalNewImpl_() {
1024 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
1025 PROTOBUF_FIELD_OFFSET(SparseInt32VectorProto, _impl_.ids_) +
1026 decltype(SparseInt32VectorProto::_impl_.ids_)::
1027 InternalGetArenaOffset(
1028 ::google::protobuf::Message::internal_visibility()),
1029 PROTOBUF_FIELD_OFFSET(SparseInt32VectorProto, _impl_.values_) +
1030 decltype(SparseInt32VectorProto::_impl_.values_)::
1031 InternalGetArenaOffset(
1032 ::google::protobuf::Message::internal_visibility()),
1033 });
1034 if (arena_bits.has_value()) {
1035 return ::google::protobuf::internal::MessageCreator::ZeroInit(
1036 sizeof(SparseInt32VectorProto), alignof(SparseInt32VectorProto), *arena_bits);
1037 } else {
1038 return ::google::protobuf::internal::MessageCreator(&SparseInt32VectorProto::PlacementNew_,
1039 sizeof(SparseInt32VectorProto),
1040 alignof(SparseInt32VectorProto));
1041 }
1042}
1044 return ::google::protobuf::internal::ClassDataFull{
1045 ::google::protobuf::internal::ClassData{
1047 &_table_.header,
1048 nullptr, // OnDemandRegisterArenaDtor
1049 nullptr, // IsInitialized
1050 &SparseInt32VectorProto::MergeImpl,
1051 ::google::protobuf::Message::GetNewImpl<SparseInt32VectorProto>(),
1052#if defined(PROTOBUF_CUSTOM_VTABLE)
1053 &SparseInt32VectorProto::SharedDtor,
1054 ::google::protobuf::Message::GetClearImpl<SparseInt32VectorProto>(), &SparseInt32VectorProto::ByteSizeLong,
1056#endif // PROTOBUF_CUSTOM_VTABLE
1057 PROTOBUF_FIELD_OFFSET(SparseInt32VectorProto, _impl_._cached_size_),
1058 false,
1059 },
1060 &SparseInt32VectorProto::kDescriptorMethods,
1062 nullptr, // tracker
1063 };
1064}
1065
1066PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1067 ::google::protobuf::internal::ClassDataFull SparseInt32VectorProto_class_data_ =
1069
1070PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1071SparseInt32VectorProto::GetClassData() const {
1072 ::google::protobuf::internal::PrefetchToLocalCache(&SparseInt32VectorProto_class_data_);
1073 ::google::protobuf::internal::PrefetchToLocalCache(SparseInt32VectorProto_class_data_.tc_table);
1075}
1076PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1077const ::_pbi::TcParseTable<1, 2, 0, 0, 2>
1078SparseInt32VectorProto::_table_ = {
1079 {
1080 PROTOBUF_FIELD_OFFSET(SparseInt32VectorProto, _impl_._has_bits_),
1081 0, // no _extensions_
1082 2, 8, // max_field_number, fast_idx_mask
1083 offsetof(decltype(_table_), field_lookup_table),
1084 4294967292, // skipmap
1085 offsetof(decltype(_table_), field_entries),
1086 2, // num_field_entries
1087 0, // num_aux_entries
1088 offsetof(decltype(_table_), field_names), // no aux_entries
1090 nullptr, // post_loop_handler
1091 ::_pbi::TcParser::GenericFallback, // fallback
1092 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1093 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseInt32VectorProto>(), // to_prefetch
1094 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
1095 }, {{
1096 // repeated int32 values = 2;
1097 {::_pbi::TcParser::FastV32P1,
1098 {18, 1, 0,
1099 PROTOBUF_FIELD_OFFSET(SparseInt32VectorProto, _impl_.values_)}},
1100 // repeated int64 ids = 1;
1101 {::_pbi::TcParser::FastV64P1,
1102 {10, 0, 0,
1103 PROTOBUF_FIELD_OFFSET(SparseInt32VectorProto, _impl_.ids_)}},
1104 }}, {{
1105 65535, 65535
1106 }}, {{
1107 // repeated int64 ids = 1;
1108 {PROTOBUF_FIELD_OFFSET(SparseInt32VectorProto, _impl_.ids_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
1109 // repeated int32 values = 2;
1110 {PROTOBUF_FIELD_OFFSET(SparseInt32VectorProto, _impl_.values_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)},
1111 }},
1112 // no aux_entries
1113 {{
1114 }},
1115};
1116PROTOBUF_NOINLINE void SparseInt32VectorProto::Clear() {
1117// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.SparseInt32VectorProto)
1118 ::google::protobuf::internal::TSanWrite(&_impl_);
1119 ::uint32_t cached_has_bits = 0;
1120 // Prevent compiler warnings about cached_has_bits being unused
1121 (void) cached_has_bits;
1122
1123 cached_has_bits = _impl_._has_bits_[0];
1124 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
1125 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1126 _impl_.ids_.Clear();
1127 }
1128 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1129 _impl_.values_.Clear();
1130 }
1131 }
1132 _impl_._has_bits_.Clear();
1133 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1134}
1135
1136#if defined(PROTOBUF_CUSTOM_VTABLE)
1137::uint8_t* PROTOBUF_NONNULL SparseInt32VectorProto::_InternalSerialize(
1138 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1139 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1140 const SparseInt32VectorProto& this_ = static_cast<const SparseInt32VectorProto&>(base);
1141#else // PROTOBUF_CUSTOM_VTABLE
1142::uint8_t* PROTOBUF_NONNULL SparseInt32VectorProto::_InternalSerialize(
1143 ::uint8_t* PROTOBUF_NONNULL target,
1144 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1145 const SparseInt32VectorProto& this_ = *this;
1146#endif // PROTOBUF_CUSTOM_VTABLE
1147 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1148 this_.CheckHasBitConsistency();
1149 }
1150 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.SparseInt32VectorProto)
1151 ::uint32_t cached_has_bits = 0;
1152 (void)cached_has_bits;
1153
1154 cached_has_bits = this_._impl_._has_bits_[0];
1155 // repeated int64 ids = 1;
1156 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1157 {
1158 int byte_size = this_._impl_._ids_cached_byte_size_.Get();
1159 if (byte_size > 0) {
1160 target = stream->WriteInt64Packed(
1161 1, this_._internal_ids(), byte_size, target);
1162 }
1163 }
1164 }
1165
1166 // repeated int32 values = 2;
1167 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1168 {
1169 int byte_size = this_._impl_._values_cached_byte_size_.Get();
1170 if (byte_size > 0) {
1171 target = stream->WriteInt32Packed(
1172 2, this_._internal_values(), byte_size, target);
1173 }
1174 }
1175 }
1176
1177 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1178 target =
1179 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1180 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1181 }
1182 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.SparseInt32VectorProto)
1183 return target;
1184}
1185
1186#if defined(PROTOBUF_CUSTOM_VTABLE)
1188 const SparseInt32VectorProto& this_ = static_cast<const SparseInt32VectorProto&>(base);
1189#else // PROTOBUF_CUSTOM_VTABLE
1190::size_t SparseInt32VectorProto::ByteSizeLong() const {
1191 const SparseInt32VectorProto& this_ = *this;
1192#endif // PROTOBUF_CUSTOM_VTABLE
1193 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.SparseInt32VectorProto)
1194 ::size_t total_size = 0;
1195
1196 ::uint32_t cached_has_bits = 0;
1197 // Prevent compiler warnings about cached_has_bits being unused
1198 (void)cached_has_bits;
1199
1200 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1201 cached_has_bits = this_._impl_._has_bits_[0];
1202 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
1203 // repeated int64 ids = 1;
1204 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1205 total_size +=
1206 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
1207 this_._internal_ids(), 1,
1208 this_._impl_._ids_cached_byte_size_);
1209 }
1210 // repeated int32 values = 2;
1211 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1212 total_size +=
1213 ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize(
1214 this_._internal_values(), 1,
1215 this_._impl_._values_cached_byte_size_);
1216 }
1217 }
1218 return this_.MaybeComputeUnknownFieldsSize(total_size,
1219 &this_._impl_._cached_size_);
1220}
1221
1222void SparseInt32VectorProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
1223 const ::google::protobuf::MessageLite& from_msg) {
1224 auto* const _this =
1225 static_cast<SparseInt32VectorProto*>(&to_msg);
1226 auto& from = static_cast<const SparseInt32VectorProto&>(from_msg);
1227 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1228 from.CheckHasBitConsistency();
1229 }
1230 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.SparseInt32VectorProto)
1231 ABSL_DCHECK_NE(&from, _this);
1232 ::uint32_t cached_has_bits = 0;
1233 (void)cached_has_bits;
1234
1235 cached_has_bits = from._impl_._has_bits_[0];
1236 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
1237 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1238 _this->_internal_mutable_ids()->MergeFrom(from._internal_ids());
1239 }
1240 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1241 _this->_internal_mutable_values()->MergeFrom(from._internal_values());
1242 }
1243 }
1244 _this->_impl_._has_bits_[0] |= cached_has_bits;
1245 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1246 from._internal_metadata_);
1247}
1248
1249void SparseInt32VectorProto::CopyFrom(const SparseInt32VectorProto& from) {
1250 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.SparseInt32VectorProto)
1251 if (&from == this) return;
1253 MergeFrom(from);
1254}
1255
1256
1257void SparseInt32VectorProto::InternalSwap(SparseInt32VectorProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1258 using ::std::swap;
1259 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1260 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1261 _impl_.ids_.InternalSwap(&other->_impl_.ids_);
1262 _impl_.values_.InternalSwap(&other->_impl_.values_);
1263}
1264
1265::google::protobuf::Metadata SparseInt32VectorProto::GetMetadata() const {
1266 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1267}
1268// ===================================================================
1269
1271 public:
1272 using HasBits =
1273 decltype(::std::declval<SparseVectorFilterProto>()._impl_._has_bits_);
1274 static constexpr ::int32_t kHasBitsOffset =
1275 8 * PROTOBUF_FIELD_OFFSET(SparseVectorFilterProto, _impl_._has_bits_);
1277
1278SparseVectorFilterProto::SparseVectorFilterProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1279#if defined(PROTOBUF_CUSTOM_VTABLE)
1280 : ::google::protobuf::Message(arena, SparseVectorFilterProto_class_data_.base()) {
1281#else // PROTOBUF_CUSTOM_VTABLE
1282 : ::google::protobuf::Message(arena) {
1283#endif // PROTOBUF_CUSTOM_VTABLE
1284 SharedCtor(arena);
1285 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.SparseVectorFilterProto)
1286}
1287PROTOBUF_NDEBUG_INLINE SparseVectorFilterProto::Impl_::Impl_(
1288 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1289 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
1290 [[maybe_unused]] const ::operations_research::math_opt::SparseVectorFilterProto& from_msg)
1291 : _has_bits_{from._has_bits_},
1292 _cached_size_{0},
1293 filtered_ids_{visibility, arena, from.filtered_ids_},
1294 _filtered_ids_cached_byte_size_{0} {}
1295
1297 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1298 const SparseVectorFilterProto& from)
1299#if defined(PROTOBUF_CUSTOM_VTABLE)
1300 : ::google::protobuf::Message(arena, SparseVectorFilterProto_class_data_.base()) {
1301#else // PROTOBUF_CUSTOM_VTABLE
1302 : ::google::protobuf::Message(arena) {
1303#endif // PROTOBUF_CUSTOM_VTABLE
1304 SparseVectorFilterProto* const _this = this;
1305 (void)_this;
1306 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1307 from._internal_metadata_);
1308 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1309 ::memcpy(reinterpret_cast<char*>(&_impl_) +
1310 offsetof(Impl_, skip_zero_values_),
1311 reinterpret_cast<const char*>(&from._impl_) +
1312 offsetof(Impl_, skip_zero_values_),
1313 offsetof(Impl_, filter_by_ids_) -
1314 offsetof(Impl_, skip_zero_values_) +
1315 sizeof(Impl_::filter_by_ids_));
1316
1317 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.SparseVectorFilterProto)
1318}
1319PROTOBUF_NDEBUG_INLINE SparseVectorFilterProto::Impl_::Impl_(
1320 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1321 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1322 : _cached_size_{0},
1323 filtered_ids_{visibility, arena},
1324 _filtered_ids_cached_byte_size_{0} {}
1325
1326inline void SparseVectorFilterProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1327 new (&_impl_) Impl_(internal_visibility(), arena);
1328 ::memset(reinterpret_cast<char*>(&_impl_) +
1329 offsetof(Impl_, skip_zero_values_),
1330 0,
1331 offsetof(Impl_, filter_by_ids_) -
1332 offsetof(Impl_, skip_zero_values_) +
1333 sizeof(Impl_::filter_by_ids_));
1334}
1336 // @@protoc_insertion_point(destructor:operations_research.math_opt.SparseVectorFilterProto)
1337 SharedDtor(*this);
1338}
1339inline void SparseVectorFilterProto::SharedDtor(MessageLite& self) {
1340 SparseVectorFilterProto& this_ = static_cast<SparseVectorFilterProto&>(self);
1341 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1342 this_.CheckHasBitConsistency();
1343 }
1344 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1345 ABSL_DCHECK(this_.GetArena() == nullptr);
1346 this_._impl_.~Impl_();
1347}
1348
1349inline void* PROTOBUF_NONNULL SparseVectorFilterProto::PlacementNew_(
1350 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1351 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1352 return ::new (mem) SparseVectorFilterProto(arena);
1353}
1354constexpr auto SparseVectorFilterProto::InternalNewImpl_() {
1355 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
1356 PROTOBUF_FIELD_OFFSET(SparseVectorFilterProto, _impl_.filtered_ids_) +
1357 decltype(SparseVectorFilterProto::_impl_.filtered_ids_)::
1358 InternalGetArenaOffset(
1359 ::google::protobuf::Message::internal_visibility()),
1360 });
1361 if (arena_bits.has_value()) {
1362 return ::google::protobuf::internal::MessageCreator::ZeroInit(
1363 sizeof(SparseVectorFilterProto), alignof(SparseVectorFilterProto), *arena_bits);
1364 } else {
1365 return ::google::protobuf::internal::MessageCreator(&SparseVectorFilterProto::PlacementNew_,
1366 sizeof(SparseVectorFilterProto),
1367 alignof(SparseVectorFilterProto));
1368 }
1369}
1371 return ::google::protobuf::internal::ClassDataFull{
1372 ::google::protobuf::internal::ClassData{
1374 &_table_.header,
1375 nullptr, // OnDemandRegisterArenaDtor
1376 nullptr, // IsInitialized
1377 &SparseVectorFilterProto::MergeImpl,
1378 ::google::protobuf::Message::GetNewImpl<SparseVectorFilterProto>(),
1379#if defined(PROTOBUF_CUSTOM_VTABLE)
1380 &SparseVectorFilterProto::SharedDtor,
1381 ::google::protobuf::Message::GetClearImpl<SparseVectorFilterProto>(), &SparseVectorFilterProto::ByteSizeLong,
1383#endif // PROTOBUF_CUSTOM_VTABLE
1384 PROTOBUF_FIELD_OFFSET(SparseVectorFilterProto, _impl_._cached_size_),
1385 false,
1386 },
1387 &SparseVectorFilterProto::kDescriptorMethods,
1389 nullptr, // tracker
1390 };
1391}
1392
1393PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1394 ::google::protobuf::internal::ClassDataFull SparseVectorFilterProto_class_data_ =
1396
1397PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1398SparseVectorFilterProto::GetClassData() const {
1399 ::google::protobuf::internal::PrefetchToLocalCache(&SparseVectorFilterProto_class_data_);
1400 ::google::protobuf::internal::PrefetchToLocalCache(SparseVectorFilterProto_class_data_.tc_table);
1402}
1403PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1404const ::_pbi::TcParseTable<2, 3, 0, 0, 2>
1405SparseVectorFilterProto::_table_ = {
1406 {
1407 PROTOBUF_FIELD_OFFSET(SparseVectorFilterProto, _impl_._has_bits_),
1408 0, // no _extensions_
1409 3, 24, // max_field_number, fast_idx_mask
1410 offsetof(decltype(_table_), field_lookup_table),
1411 4294967288, // skipmap
1412 offsetof(decltype(_table_), field_entries),
1413 3, // num_field_entries
1414 0, // num_aux_entries
1415 offsetof(decltype(_table_), field_names), // no aux_entries
1417 nullptr, // post_loop_handler
1418 ::_pbi::TcParser::GenericFallback, // fallback
1419 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1420 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseVectorFilterProto>(), // to_prefetch
1421 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
1422 }, {{
1423 {::_pbi::TcParser::MiniParse, {}},
1424 // bool skip_zero_values = 1;
1425 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(SparseVectorFilterProto, _impl_.skip_zero_values_), 1>(),
1426 {8, 1, 0,
1427 PROTOBUF_FIELD_OFFSET(SparseVectorFilterProto, _impl_.skip_zero_values_)}},
1428 // bool filter_by_ids = 2;
1429 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(SparseVectorFilterProto, _impl_.filter_by_ids_), 2>(),
1430 {16, 2, 0,
1431 PROTOBUF_FIELD_OFFSET(SparseVectorFilterProto, _impl_.filter_by_ids_)}},
1432 // repeated int64 filtered_ids = 3;
1433 {::_pbi::TcParser::FastV64P1,
1434 {26, 0, 0,
1435 PROTOBUF_FIELD_OFFSET(SparseVectorFilterProto, _impl_.filtered_ids_)}},
1436 }}, {{
1437 65535, 65535
1438 }}, {{
1439 // bool skip_zero_values = 1;
1440 {PROTOBUF_FIELD_OFFSET(SparseVectorFilterProto, _impl_.skip_zero_values_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
1441 // bool filter_by_ids = 2;
1442 {PROTOBUF_FIELD_OFFSET(SparseVectorFilterProto, _impl_.filter_by_ids_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
1443 // repeated int64 filtered_ids = 3;
1444 {PROTOBUF_FIELD_OFFSET(SparseVectorFilterProto, _impl_.filtered_ids_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
1445 }},
1446 // no aux_entries
1447 {{
1448 }},
1449};
1450PROTOBUF_NOINLINE void SparseVectorFilterProto::Clear() {
1451// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.SparseVectorFilterProto)
1452 ::google::protobuf::internal::TSanWrite(&_impl_);
1453 ::uint32_t cached_has_bits = 0;
1454 // Prevent compiler warnings about cached_has_bits being unused
1455 (void) cached_has_bits;
1456
1457 cached_has_bits = _impl_._has_bits_[0];
1458 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1459 _impl_.filtered_ids_.Clear();
1460 }
1461 ::memset(&_impl_.skip_zero_values_, 0, static_cast<::size_t>(
1462 reinterpret_cast<char*>(&_impl_.filter_by_ids_) -
1463 reinterpret_cast<char*>(&_impl_.skip_zero_values_)) + sizeof(_impl_.filter_by_ids_));
1464 _impl_._has_bits_.Clear();
1465 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1466}
1467
1468#if defined(PROTOBUF_CUSTOM_VTABLE)
1469::uint8_t* PROTOBUF_NONNULL SparseVectorFilterProto::_InternalSerialize(
1470 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1471 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1472 const SparseVectorFilterProto& this_ = static_cast<const SparseVectorFilterProto&>(base);
1473#else // PROTOBUF_CUSTOM_VTABLE
1474::uint8_t* PROTOBUF_NONNULL SparseVectorFilterProto::_InternalSerialize(
1475 ::uint8_t* PROTOBUF_NONNULL target,
1476 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1477 const SparseVectorFilterProto& this_ = *this;
1478#endif // PROTOBUF_CUSTOM_VTABLE
1479 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1480 this_.CheckHasBitConsistency();
1481 }
1482 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.SparseVectorFilterProto)
1483 ::uint32_t cached_has_bits = 0;
1484 (void)cached_has_bits;
1485
1486 cached_has_bits = this_._impl_._has_bits_[0];
1487 // bool skip_zero_values = 1;
1488 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1489 if (this_._internal_skip_zero_values() != 0) {
1490 target = stream->EnsureSpace(target);
1491 target = ::_pbi::WireFormatLite::WriteBoolToArray(
1492 1, this_._internal_skip_zero_values(), target);
1493 }
1494 }
1495
1496 // bool filter_by_ids = 2;
1497 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1498 if (this_._internal_filter_by_ids() != 0) {
1499 target = stream->EnsureSpace(target);
1500 target = ::_pbi::WireFormatLite::WriteBoolToArray(
1501 2, this_._internal_filter_by_ids(), target);
1502 }
1503 }
1504
1505 // repeated int64 filtered_ids = 3;
1506 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1507 {
1508 int byte_size = this_._impl_._filtered_ids_cached_byte_size_.Get();
1509 if (byte_size > 0) {
1510 target = stream->WriteInt64Packed(
1511 3, this_._internal_filtered_ids(), byte_size, target);
1512 }
1513 }
1514 }
1515
1516 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1517 target =
1518 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1519 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1520 }
1521 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.SparseVectorFilterProto)
1522 return target;
1523}
1524
1525#if defined(PROTOBUF_CUSTOM_VTABLE)
1527 const SparseVectorFilterProto& this_ = static_cast<const SparseVectorFilterProto&>(base);
1528#else // PROTOBUF_CUSTOM_VTABLE
1530 const SparseVectorFilterProto& this_ = *this;
1531#endif // PROTOBUF_CUSTOM_VTABLE
1532 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.SparseVectorFilterProto)
1533 ::size_t total_size = 0;
1534
1535 ::uint32_t cached_has_bits = 0;
1536 // Prevent compiler warnings about cached_has_bits being unused
1537 (void)cached_has_bits;
1538
1539 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1540 cached_has_bits = this_._impl_._has_bits_[0];
1541 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
1542 // repeated int64 filtered_ids = 3;
1543 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1544 total_size +=
1545 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
1546 this_._internal_filtered_ids(), 1,
1547 this_._impl_._filtered_ids_cached_byte_size_);
1548 }
1549 // bool skip_zero_values = 1;
1550 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1551 if (this_._internal_skip_zero_values() != 0) {
1552 total_size += 2;
1553 }
1554 }
1555 // bool filter_by_ids = 2;
1556 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1557 if (this_._internal_filter_by_ids() != 0) {
1558 total_size += 2;
1559 }
1560 }
1561 }
1562 return this_.MaybeComputeUnknownFieldsSize(total_size,
1563 &this_._impl_._cached_size_);
1564}
1565
1566void SparseVectorFilterProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
1567 const ::google::protobuf::MessageLite& from_msg) {
1568 auto* const _this =
1569 static_cast<SparseVectorFilterProto*>(&to_msg);
1570 auto& from = static_cast<const SparseVectorFilterProto&>(from_msg);
1571 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1572 from.CheckHasBitConsistency();
1573 }
1574 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.SparseVectorFilterProto)
1575 ABSL_DCHECK_NE(&from, _this);
1576 ::uint32_t cached_has_bits = 0;
1577 (void)cached_has_bits;
1578
1579 cached_has_bits = from._impl_._has_bits_[0];
1580 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
1581 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1582 _this->_internal_mutable_filtered_ids()->MergeFrom(from._internal_filtered_ids());
1583 }
1584 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1585 if (from._internal_skip_zero_values() != 0) {
1586 _this->_impl_.skip_zero_values_ = from._impl_.skip_zero_values_;
1587 }
1588 }
1589 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1590 if (from._internal_filter_by_ids() != 0) {
1591 _this->_impl_.filter_by_ids_ = from._impl_.filter_by_ids_;
1592 }
1593 }
1594 }
1595 _this->_impl_._has_bits_[0] |= cached_has_bits;
1596 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1597 from._internal_metadata_);
1598}
1599
1600void SparseVectorFilterProto::CopyFrom(const SparseVectorFilterProto& from) {
1601 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.SparseVectorFilterProto)
1602 if (&from == this) return;
1603 Clear();
1605}
1606
1607
1608void SparseVectorFilterProto::InternalSwap(SparseVectorFilterProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1609 using ::std::swap;
1610 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1611 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1612 _impl_.filtered_ids_.InternalSwap(&other->_impl_.filtered_ids_);
1613 ::google::protobuf::internal::memswap<
1614 PROTOBUF_FIELD_OFFSET(SparseVectorFilterProto, _impl_.filter_by_ids_)
1615 + sizeof(SparseVectorFilterProto::_impl_.filter_by_ids_)
1616 - PROTOBUF_FIELD_OFFSET(SparseVectorFilterProto, _impl_.skip_zero_values_)>(
1617 reinterpret_cast<char*>(&_impl_.skip_zero_values_),
1618 reinterpret_cast<char*>(&other->_impl_.skip_zero_values_));
1619}
1620
1621::google::protobuf::Metadata SparseVectorFilterProto::GetMetadata() const {
1622 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1623}
1624// ===================================================================
1627 public:
1628 using HasBits =
1629 decltype(::std::declval<SparseDoubleMatrixProto>()._impl_._has_bits_);
1630 static constexpr ::int32_t kHasBitsOffset =
1631 8 * PROTOBUF_FIELD_OFFSET(SparseDoubleMatrixProto, _impl_._has_bits_);
1632};
1634SparseDoubleMatrixProto::SparseDoubleMatrixProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1635#if defined(PROTOBUF_CUSTOM_VTABLE)
1636 : ::google::protobuf::Message(arena, SparseDoubleMatrixProto_class_data_.base()) {
1637#else // PROTOBUF_CUSTOM_VTABLE
1638 : ::google::protobuf::Message(arena) {
1639#endif // PROTOBUF_CUSTOM_VTABLE
1640 SharedCtor(arena);
1641 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.SparseDoubleMatrixProto)
1642}
1643PROTOBUF_NDEBUG_INLINE SparseDoubleMatrixProto::Impl_::Impl_(
1644 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1645 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
1646 [[maybe_unused]] const ::operations_research::math_opt::SparseDoubleMatrixProto& from_msg)
1647 : _has_bits_{from._has_bits_},
1648 _cached_size_{0},
1649 row_ids_{visibility, arena, from.row_ids_},
1650 _row_ids_cached_byte_size_{0},
1651 column_ids_{visibility, arena, from.column_ids_},
1652 _column_ids_cached_byte_size_{0},
1653 coefficients_{visibility, arena, from.coefficients_} {}
1654
1656 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1657 const SparseDoubleMatrixProto& from)
1658#if defined(PROTOBUF_CUSTOM_VTABLE)
1659 : ::google::protobuf::Message(arena, SparseDoubleMatrixProto_class_data_.base()) {
1660#else // PROTOBUF_CUSTOM_VTABLE
1661 : ::google::protobuf::Message(arena) {
1662#endif // PROTOBUF_CUSTOM_VTABLE
1663 SparseDoubleMatrixProto* const _this = this;
1664 (void)_this;
1665 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1666 from._internal_metadata_);
1667 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1668
1669 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.SparseDoubleMatrixProto)
1670}
1671PROTOBUF_NDEBUG_INLINE SparseDoubleMatrixProto::Impl_::Impl_(
1672 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1673 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1674 : _cached_size_{0},
1675 row_ids_{visibility, arena},
1676 _row_ids_cached_byte_size_{0},
1677 column_ids_{visibility, arena},
1678 _column_ids_cached_byte_size_{0},
1679 coefficients_{visibility, arena} {}
1680
1681inline void SparseDoubleMatrixProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1682 new (&_impl_) Impl_(internal_visibility(), arena);
1683}
1685 // @@protoc_insertion_point(destructor:operations_research.math_opt.SparseDoubleMatrixProto)
1686 SharedDtor(*this);
1687}
1688inline void SparseDoubleMatrixProto::SharedDtor(MessageLite& self) {
1690 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1691 this_.CheckHasBitConsistency();
1692 }
1693 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1694 ABSL_DCHECK(this_.GetArena() == nullptr);
1695 this_._impl_.~Impl_();
1696}
1697
1698inline void* PROTOBUF_NONNULL SparseDoubleMatrixProto::PlacementNew_(
1699 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1700 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1701 return ::new (mem) SparseDoubleMatrixProto(arena);
1702}
1703constexpr auto SparseDoubleMatrixProto::InternalNewImpl_() {
1704 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
1705 PROTOBUF_FIELD_OFFSET(SparseDoubleMatrixProto, _impl_.row_ids_) +
1706 decltype(SparseDoubleMatrixProto::_impl_.row_ids_)::
1707 InternalGetArenaOffset(
1708 ::google::protobuf::Message::internal_visibility()),
1709 PROTOBUF_FIELD_OFFSET(SparseDoubleMatrixProto, _impl_.column_ids_) +
1710 decltype(SparseDoubleMatrixProto::_impl_.column_ids_)::
1711 InternalGetArenaOffset(
1712 ::google::protobuf::Message::internal_visibility()),
1713 PROTOBUF_FIELD_OFFSET(SparseDoubleMatrixProto, _impl_.coefficients_) +
1714 decltype(SparseDoubleMatrixProto::_impl_.coefficients_)::
1715 InternalGetArenaOffset(
1716 ::google::protobuf::Message::internal_visibility()),
1717 });
1718 if (arena_bits.has_value()) {
1719 return ::google::protobuf::internal::MessageCreator::ZeroInit(
1720 sizeof(SparseDoubleMatrixProto), alignof(SparseDoubleMatrixProto), *arena_bits);
1721 } else {
1722 return ::google::protobuf::internal::MessageCreator(&SparseDoubleMatrixProto::PlacementNew_,
1723 sizeof(SparseDoubleMatrixProto),
1724 alignof(SparseDoubleMatrixProto));
1725 }
1726}
1728 return ::google::protobuf::internal::ClassDataFull{
1729 ::google::protobuf::internal::ClassData{
1731 &_table_.header,
1732 nullptr, // OnDemandRegisterArenaDtor
1733 nullptr, // IsInitialized
1734 &SparseDoubleMatrixProto::MergeImpl,
1735 ::google::protobuf::Message::GetNewImpl<SparseDoubleMatrixProto>(),
1736#if defined(PROTOBUF_CUSTOM_VTABLE)
1737 &SparseDoubleMatrixProto::SharedDtor,
1738 ::google::protobuf::Message::GetClearImpl<SparseDoubleMatrixProto>(), &SparseDoubleMatrixProto::ByteSizeLong,
1740#endif // PROTOBUF_CUSTOM_VTABLE
1741 PROTOBUF_FIELD_OFFSET(SparseDoubleMatrixProto, _impl_._cached_size_),
1742 false,
1743 },
1744 &SparseDoubleMatrixProto::kDescriptorMethods,
1746 nullptr, // tracker
1747 };
1748}
1749
1750PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1751 ::google::protobuf::internal::ClassDataFull SparseDoubleMatrixProto_class_data_ =
1753
1754PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1755SparseDoubleMatrixProto::GetClassData() const {
1756 ::google::protobuf::internal::PrefetchToLocalCache(&SparseDoubleMatrixProto_class_data_);
1757 ::google::protobuf::internal::PrefetchToLocalCache(SparseDoubleMatrixProto_class_data_.tc_table);
1759}
1760PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1761const ::_pbi::TcParseTable<2, 3, 0, 0, 2>
1762SparseDoubleMatrixProto::_table_ = {
1763 {
1764 PROTOBUF_FIELD_OFFSET(SparseDoubleMatrixProto, _impl_._has_bits_),
1765 0, // no _extensions_
1766 3, 24, // max_field_number, fast_idx_mask
1767 offsetof(decltype(_table_), field_lookup_table),
1768 4294967288, // skipmap
1769 offsetof(decltype(_table_), field_entries),
1770 3, // num_field_entries
1771 0, // num_aux_entries
1772 offsetof(decltype(_table_), field_names), // no aux_entries
1774 nullptr, // post_loop_handler
1775 ::_pbi::TcParser::GenericFallback, // fallback
1776 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1777 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleMatrixProto>(), // to_prefetch
1778 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
1779 }, {{
1780 {::_pbi::TcParser::MiniParse, {}},
1781 // repeated int64 row_ids = 1;
1782 {::_pbi::TcParser::FastV64P1,
1783 {10, 0, 0,
1784 PROTOBUF_FIELD_OFFSET(SparseDoubleMatrixProto, _impl_.row_ids_)}},
1785 // repeated int64 column_ids = 2;
1786 {::_pbi::TcParser::FastV64P1,
1787 {18, 1, 0,
1788 PROTOBUF_FIELD_OFFSET(SparseDoubleMatrixProto, _impl_.column_ids_)}},
1789 // repeated double coefficients = 3;
1790 {::_pbi::TcParser::FastF64P1,
1791 {26, 2, 0,
1792 PROTOBUF_FIELD_OFFSET(SparseDoubleMatrixProto, _impl_.coefficients_)}},
1793 }}, {{
1794 65535, 65535
1795 }}, {{
1796 // repeated int64 row_ids = 1;
1797 {PROTOBUF_FIELD_OFFSET(SparseDoubleMatrixProto, _impl_.row_ids_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
1798 // repeated int64 column_ids = 2;
1799 {PROTOBUF_FIELD_OFFSET(SparseDoubleMatrixProto, _impl_.column_ids_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
1800 // repeated double coefficients = 3;
1801 {PROTOBUF_FIELD_OFFSET(SparseDoubleMatrixProto, _impl_.coefficients_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)},
1802 }},
1803 // no aux_entries
1804 {{
1805 }},
1806};
1807PROTOBUF_NOINLINE void SparseDoubleMatrixProto::Clear() {
1808// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.SparseDoubleMatrixProto)
1809 ::google::protobuf::internal::TSanWrite(&_impl_);
1810 ::uint32_t cached_has_bits = 0;
1811 // Prevent compiler warnings about cached_has_bits being unused
1812 (void) cached_has_bits;
1813
1814 cached_has_bits = _impl_._has_bits_[0];
1815 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
1816 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1817 _impl_.row_ids_.Clear();
1818 }
1819 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1820 _impl_.column_ids_.Clear();
1821 }
1822 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
1823 _impl_.coefficients_.Clear();
1824 }
1825 }
1826 _impl_._has_bits_.Clear();
1827 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1828}
1829
1830#if defined(PROTOBUF_CUSTOM_VTABLE)
1831::uint8_t* PROTOBUF_NONNULL SparseDoubleMatrixProto::_InternalSerialize(
1832 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1833 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1834 const SparseDoubleMatrixProto& this_ = static_cast<const SparseDoubleMatrixProto&>(base);
1835#else // PROTOBUF_CUSTOM_VTABLE
1836::uint8_t* PROTOBUF_NONNULL SparseDoubleMatrixProto::_InternalSerialize(
1837 ::uint8_t* PROTOBUF_NONNULL target,
1838 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1839 const SparseDoubleMatrixProto& this_ = *this;
1840#endif // PROTOBUF_CUSTOM_VTABLE
1841 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1842 this_.CheckHasBitConsistency();
1843 }
1844 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.SparseDoubleMatrixProto)
1845 ::uint32_t cached_has_bits = 0;
1846 (void)cached_has_bits;
1847
1848 cached_has_bits = this_._impl_._has_bits_[0];
1849 // repeated int64 row_ids = 1;
1850 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1851 {
1852 int byte_size = this_._impl_._row_ids_cached_byte_size_.Get();
1853 if (byte_size > 0) {
1854 target = stream->WriteInt64Packed(
1855 1, this_._internal_row_ids(), byte_size, target);
1856 }
1857 }
1858 }
1859
1860 // repeated int64 column_ids = 2;
1861 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1862 {
1863 int byte_size = this_._impl_._column_ids_cached_byte_size_.Get();
1864 if (byte_size > 0) {
1865 target = stream->WriteInt64Packed(
1866 2, this_._internal_column_ids(), byte_size, target);
1867 }
1868 }
1869 }
1870
1871 // repeated double coefficients = 3;
1872 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
1873 if (this_._internal_coefficients_size() > 0) {
1874 target = stream->WriteFixedPacked(3, this_._internal_coefficients(), target);
1875 }
1876 }
1877
1878 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1879 target =
1880 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1881 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1882 }
1883 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.SparseDoubleMatrixProto)
1884 return target;
1885}
1886
1887#if defined(PROTOBUF_CUSTOM_VTABLE)
1889 const SparseDoubleMatrixProto& this_ = static_cast<const SparseDoubleMatrixProto&>(base);
1890#else // PROTOBUF_CUSTOM_VTABLE
1892 const SparseDoubleMatrixProto& this_ = *this;
1893#endif // PROTOBUF_CUSTOM_VTABLE
1894 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.SparseDoubleMatrixProto)
1895 ::size_t total_size = 0;
1897 ::uint32_t cached_has_bits = 0;
1898 // Prevent compiler warnings about cached_has_bits being unused
1899 (void)cached_has_bits;
1900
1901 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1902 cached_has_bits = this_._impl_._has_bits_[0];
1903 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
1904 // repeated int64 row_ids = 1;
1905 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1906 total_size +=
1907 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
1908 this_._internal_row_ids(), 1,
1909 this_._impl_._row_ids_cached_byte_size_);
1910 }
1911 // repeated int64 column_ids = 2;
1912 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1913 total_size +=
1914 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
1915 this_._internal_column_ids(), 1,
1916 this_._impl_._column_ids_cached_byte_size_);
1917 }
1918 // repeated double coefficients = 3;
1919 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
1920 ::size_t data_size = ::size_t{8} *
1921 ::_pbi::FromIntSize(this_._internal_coefficients_size());
1922 ::size_t tag_size = data_size == 0
1923 ? 0
1924 : 1 + ::_pbi::WireFormatLite::Int32Size(
1925 static_cast<::int32_t>(data_size));
1926 total_size += tag_size + data_size;
1927 }
1928 }
1929 return this_.MaybeComputeUnknownFieldsSize(total_size,
1930 &this_._impl_._cached_size_);
1931}
1932
1933void SparseDoubleMatrixProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
1934 const ::google::protobuf::MessageLite& from_msg) {
1935 auto* const _this =
1936 static_cast<SparseDoubleMatrixProto*>(&to_msg);
1937 auto& from = static_cast<const SparseDoubleMatrixProto&>(from_msg);
1938 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1939 from.CheckHasBitConsistency();
1940 }
1941 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.SparseDoubleMatrixProto)
1942 ABSL_DCHECK_NE(&from, _this);
1943 ::uint32_t cached_has_bits = 0;
1944 (void)cached_has_bits;
1945
1946 cached_has_bits = from._impl_._has_bits_[0];
1947 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
1948 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1949 _this->_internal_mutable_row_ids()->MergeFrom(from._internal_row_ids());
1950 }
1951 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1952 _this->_internal_mutable_column_ids()->MergeFrom(from._internal_column_ids());
1953 }
1954 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
1955 _this->_internal_mutable_coefficients()->MergeFrom(from._internal_coefficients());
1956 }
1957 }
1958 _this->_impl_._has_bits_[0] |= cached_has_bits;
1959 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1960 from._internal_metadata_);
1961}
1962
1963void SparseDoubleMatrixProto::CopyFrom(const SparseDoubleMatrixProto& from) {
1964 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.SparseDoubleMatrixProto)
1965 if (&from == this) return;
1966 Clear();
1967 MergeFrom(from);
1969
1970
1971void SparseDoubleMatrixProto::InternalSwap(SparseDoubleMatrixProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1972 using ::std::swap;
1973 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1974 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1975 _impl_.row_ids_.InternalSwap(&other->_impl_.row_ids_);
1976 _impl_.column_ids_.InternalSwap(&other->_impl_.column_ids_);
1977 _impl_.coefficients_.InternalSwap(&other->_impl_.coefficients_);
1978}
1979
1980::google::protobuf::Metadata SparseDoubleMatrixProto::GetMetadata() const {
1981 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1982}
1983// ===================================================================
1984
1986 public:
1987 using HasBits =
1988 decltype(::std::declval<LinearExpressionProto>()._impl_._has_bits_);
1989 static constexpr ::int32_t kHasBitsOffset =
1990 8 * PROTOBUF_FIELD_OFFSET(LinearExpressionProto, _impl_._has_bits_);
1992
1993LinearExpressionProto::LinearExpressionProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1994#if defined(PROTOBUF_CUSTOM_VTABLE)
1995 : ::google::protobuf::Message(arena, LinearExpressionProto_class_data_.base()) {
1996#else // PROTOBUF_CUSTOM_VTABLE
1997 : ::google::protobuf::Message(arena) {
1998#endif // PROTOBUF_CUSTOM_VTABLE
1999 SharedCtor(arena);
2000 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.LinearExpressionProto)
2001}
2002PROTOBUF_NDEBUG_INLINE LinearExpressionProto::Impl_::Impl_(
2003 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
2004 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
2005 [[maybe_unused]] const ::operations_research::math_opt::LinearExpressionProto& from_msg)
2006 : _has_bits_{from._has_bits_},
2007 _cached_size_{0},
2008 ids_{visibility, arena, from.ids_},
2009 _ids_cached_byte_size_{0},
2010 coefficients_{visibility, arena, from.coefficients_} {}
2011
2013 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
2014 const LinearExpressionProto& from)
2015#if defined(PROTOBUF_CUSTOM_VTABLE)
2016 : ::google::protobuf::Message(arena, LinearExpressionProto_class_data_.base()) {
2017#else // PROTOBUF_CUSTOM_VTABLE
2018 : ::google::protobuf::Message(arena) {
2019#endif // PROTOBUF_CUSTOM_VTABLE
2020 LinearExpressionProto* const _this = this;
2021 (void)_this;
2022 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
2023 from._internal_metadata_);
2024 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
2025 _impl_.offset_ = from._impl_.offset_;
2026
2027 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.LinearExpressionProto)
2028}
2029PROTOBUF_NDEBUG_INLINE LinearExpressionProto::Impl_::Impl_(
2030 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
2031 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
2032 : _cached_size_{0},
2033 ids_{visibility, arena},
2034 _ids_cached_byte_size_{0},
2035 coefficients_{visibility, arena} {}
2036
2037inline void LinearExpressionProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
2038 new (&_impl_) Impl_(internal_visibility(), arena);
2039 _impl_.offset_ = {};
2040}
2042 // @@protoc_insertion_point(destructor:operations_research.math_opt.LinearExpressionProto)
2043 SharedDtor(*this);
2044}
2045inline void LinearExpressionProto::SharedDtor(MessageLite& self) {
2046 LinearExpressionProto& this_ = static_cast<LinearExpressionProto&>(self);
2047 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2048 this_.CheckHasBitConsistency();
2049 }
2050 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
2051 ABSL_DCHECK(this_.GetArena() == nullptr);
2052 this_._impl_.~Impl_();
2053}
2054
2055inline void* PROTOBUF_NONNULL LinearExpressionProto::PlacementNew_(
2056 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
2057 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
2058 return ::new (mem) LinearExpressionProto(arena);
2059}
2060constexpr auto LinearExpressionProto::InternalNewImpl_() {
2061 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
2062 PROTOBUF_FIELD_OFFSET(LinearExpressionProto, _impl_.ids_) +
2063 decltype(LinearExpressionProto::_impl_.ids_)::
2064 InternalGetArenaOffset(
2065 ::google::protobuf::Message::internal_visibility()),
2066 PROTOBUF_FIELD_OFFSET(LinearExpressionProto, _impl_.coefficients_) +
2067 decltype(LinearExpressionProto::_impl_.coefficients_)::
2068 InternalGetArenaOffset(
2069 ::google::protobuf::Message::internal_visibility()),
2070 });
2071 if (arena_bits.has_value()) {
2072 return ::google::protobuf::internal::MessageCreator::ZeroInit(
2073 sizeof(LinearExpressionProto), alignof(LinearExpressionProto), *arena_bits);
2074 } else {
2075 return ::google::protobuf::internal::MessageCreator(&LinearExpressionProto::PlacementNew_,
2076 sizeof(LinearExpressionProto),
2077 alignof(LinearExpressionProto));
2078 }
2079}
2081 return ::google::protobuf::internal::ClassDataFull{
2082 ::google::protobuf::internal::ClassData{
2084 &_table_.header,
2085 nullptr, // OnDemandRegisterArenaDtor
2086 nullptr, // IsInitialized
2087 &LinearExpressionProto::MergeImpl,
2088 ::google::protobuf::Message::GetNewImpl<LinearExpressionProto>(),
2089#if defined(PROTOBUF_CUSTOM_VTABLE)
2090 &LinearExpressionProto::SharedDtor,
2091 ::google::protobuf::Message::GetClearImpl<LinearExpressionProto>(), &LinearExpressionProto::ByteSizeLong,
2093#endif // PROTOBUF_CUSTOM_VTABLE
2094 PROTOBUF_FIELD_OFFSET(LinearExpressionProto, _impl_._cached_size_),
2095 false,
2096 },
2097 &LinearExpressionProto::kDescriptorMethods,
2099 nullptr, // tracker
2100 };
2101}
2102
2103PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
2104 ::google::protobuf::internal::ClassDataFull LinearExpressionProto_class_data_ =
2106
2107PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
2108LinearExpressionProto::GetClassData() const {
2109 ::google::protobuf::internal::PrefetchToLocalCache(&LinearExpressionProto_class_data_);
2110 ::google::protobuf::internal::PrefetchToLocalCache(LinearExpressionProto_class_data_.tc_table);
2112}
2113PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
2114const ::_pbi::TcParseTable<2, 3, 0, 0, 2>
2115LinearExpressionProto::_table_ = {
2116 {
2117 PROTOBUF_FIELD_OFFSET(LinearExpressionProto, _impl_._has_bits_),
2118 0, // no _extensions_
2119 3, 24, // max_field_number, fast_idx_mask
2120 offsetof(decltype(_table_), field_lookup_table),
2121 4294967288, // skipmap
2122 offsetof(decltype(_table_), field_entries),
2123 3, // num_field_entries
2124 0, // num_aux_entries
2125 offsetof(decltype(_table_), field_names), // no aux_entries
2127 nullptr, // post_loop_handler
2128 ::_pbi::TcParser::GenericFallback, // fallback
2129 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
2130 ::_pbi::TcParser::GetTable<::operations_research::math_opt::LinearExpressionProto>(), // to_prefetch
2131 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
2132 }, {{
2133 {::_pbi::TcParser::MiniParse, {}},
2134 // repeated int64 ids = 1;
2135 {::_pbi::TcParser::FastV64P1,
2136 {10, 0, 0,
2137 PROTOBUF_FIELD_OFFSET(LinearExpressionProto, _impl_.ids_)}},
2138 // repeated double coefficients = 2;
2139 {::_pbi::TcParser::FastF64P1,
2140 {18, 1, 0,
2141 PROTOBUF_FIELD_OFFSET(LinearExpressionProto, _impl_.coefficients_)}},
2142 // double offset = 3;
2143 {::_pbi::TcParser::FastF64S1,
2144 {25, 2, 0,
2145 PROTOBUF_FIELD_OFFSET(LinearExpressionProto, _impl_.offset_)}},
2146 }}, {{
2147 65535, 65535
2148 }}, {{
2149 // repeated int64 ids = 1;
2150 {PROTOBUF_FIELD_OFFSET(LinearExpressionProto, _impl_.ids_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
2151 // repeated double coefficients = 2;
2152 {PROTOBUF_FIELD_OFFSET(LinearExpressionProto, _impl_.coefficients_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)},
2153 // double offset = 3;
2154 {PROTOBUF_FIELD_OFFSET(LinearExpressionProto, _impl_.offset_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
2155 }},
2156 // no aux_entries
2157 {{
2158 }},
2159};
2160PROTOBUF_NOINLINE void LinearExpressionProto::Clear() {
2161// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.LinearExpressionProto)
2162 ::google::protobuf::internal::TSanWrite(&_impl_);
2163 ::uint32_t cached_has_bits = 0;
2164 // Prevent compiler warnings about cached_has_bits being unused
2165 (void) cached_has_bits;
2167 cached_has_bits = _impl_._has_bits_[0];
2168 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
2169 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
2170 _impl_.ids_.Clear();
2171 }
2172 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
2173 _impl_.coefficients_.Clear();
2174 }
2175 }
2176 _impl_.offset_ = 0;
2177 _impl_._has_bits_.Clear();
2178 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
2179}
2180
2181#if defined(PROTOBUF_CUSTOM_VTABLE)
2182::uint8_t* PROTOBUF_NONNULL LinearExpressionProto::_InternalSerialize(
2183 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
2184 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
2185 const LinearExpressionProto& this_ = static_cast<const LinearExpressionProto&>(base);
2186#else // PROTOBUF_CUSTOM_VTABLE
2187::uint8_t* PROTOBUF_NONNULL LinearExpressionProto::_InternalSerialize(
2188 ::uint8_t* PROTOBUF_NONNULL target,
2189 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
2190 const LinearExpressionProto& this_ = *this;
2191#endif // PROTOBUF_CUSTOM_VTABLE
2192 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2193 this_.CheckHasBitConsistency();
2194 }
2195 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.LinearExpressionProto)
2196 ::uint32_t cached_has_bits = 0;
2197 (void)cached_has_bits;
2198
2199 cached_has_bits = this_._impl_._has_bits_[0];
2200 // repeated int64 ids = 1;
2201 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
2202 {
2203 int byte_size = this_._impl_._ids_cached_byte_size_.Get();
2204 if (byte_size > 0) {
2205 target = stream->WriteInt64Packed(
2206 1, this_._internal_ids(), byte_size, target);
2207 }
2208 }
2209 }
2210
2211 // repeated double coefficients = 2;
2212 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
2213 if (this_._internal_coefficients_size() > 0) {
2214 target = stream->WriteFixedPacked(2, this_._internal_coefficients(), target);
2215 }
2216 }
2217
2218 // double offset = 3;
2219 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
2220 if (::absl::bit_cast<::uint64_t>(this_._internal_offset()) != 0) {
2221 target = stream->EnsureSpace(target);
2222 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
2223 3, this_._internal_offset(), target);
2224 }
2225 }
2226
2227 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
2228 target =
2229 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2230 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
2231 }
2232 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.LinearExpressionProto)
2233 return target;
2234}
2235
2236#if defined(PROTOBUF_CUSTOM_VTABLE)
2238 const LinearExpressionProto& this_ = static_cast<const LinearExpressionProto&>(base);
2239#else // PROTOBUF_CUSTOM_VTABLE
2240::size_t LinearExpressionProto::ByteSizeLong() const {
2241 const LinearExpressionProto& this_ = *this;
2242#endif // PROTOBUF_CUSTOM_VTABLE
2243 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.LinearExpressionProto)
2244 ::size_t total_size = 0;
2245
2246 ::uint32_t cached_has_bits = 0;
2247 // Prevent compiler warnings about cached_has_bits being unused
2248 (void)cached_has_bits;
2249
2250 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
2251 cached_has_bits = this_._impl_._has_bits_[0];
2252 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
2253 // repeated int64 ids = 1;
2254 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
2255 total_size +=
2256 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
2257 this_._internal_ids(), 1,
2258 this_._impl_._ids_cached_byte_size_);
2259 }
2260 // repeated double coefficients = 2;
2261 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
2262 ::size_t data_size = ::size_t{8} *
2263 ::_pbi::FromIntSize(this_._internal_coefficients_size());
2264 ::size_t tag_size = data_size == 0
2265 ? 0
2266 : 1 + ::_pbi::WireFormatLite::Int32Size(
2267 static_cast<::int32_t>(data_size));
2268 total_size += tag_size + data_size;
2269 }
2270 // double offset = 3;
2271 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
2272 if (::absl::bit_cast<::uint64_t>(this_._internal_offset()) != 0) {
2273 total_size += 9;
2274 }
2275 }
2276 }
2277 return this_.MaybeComputeUnknownFieldsSize(total_size,
2278 &this_._impl_._cached_size_);
2279}
2280
2281void LinearExpressionProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
2282 const ::google::protobuf::MessageLite& from_msg) {
2283 auto* const _this =
2284 static_cast<LinearExpressionProto*>(&to_msg);
2285 auto& from = static_cast<const LinearExpressionProto&>(from_msg);
2286 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2287 from.CheckHasBitConsistency();
2288 }
2289 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.LinearExpressionProto)
2290 ABSL_DCHECK_NE(&from, _this);
2291 ::uint32_t cached_has_bits = 0;
2292 (void)cached_has_bits;
2293
2294 cached_has_bits = from._impl_._has_bits_[0];
2295 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
2296 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
2297 _this->_internal_mutable_ids()->MergeFrom(from._internal_ids());
2298 }
2299 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
2300 _this->_internal_mutable_coefficients()->MergeFrom(from._internal_coefficients());
2301 }
2302 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
2303 if (::absl::bit_cast<::uint64_t>(from._internal_offset()) != 0) {
2304 _this->_impl_.offset_ = from._impl_.offset_;
2305 }
2306 }
2307 }
2308 _this->_impl_._has_bits_[0] |= cached_has_bits;
2309 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
2310 from._internal_metadata_);
2311}
2312
2313void LinearExpressionProto::CopyFrom(const LinearExpressionProto& from) {
2314 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.LinearExpressionProto)
2315 if (&from == this) return;
2316 Clear();
2317 MergeFrom(from);
2318}
2320
2321void LinearExpressionProto::InternalSwap(LinearExpressionProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
2322 using ::std::swap;
2323 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2324 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2325 _impl_.ids_.InternalSwap(&other->_impl_.ids_);
2326 _impl_.coefficients_.InternalSwap(&other->_impl_.coefficients_);
2327 swap(_impl_.offset_, other->_impl_.offset_);
2328}
2329
2330::google::protobuf::Metadata LinearExpressionProto::GetMetadata() const {
2331 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
2332}
2333// @@protoc_insertion_point(namespace_scope)
2334} // namespace math_opt
2335} // namespace operations_research
2336namespace google {
2337namespace protobuf {
2338} // namespace protobuf
2339} // namespace google
2340// @@protoc_insertion_point(global_scope)
2341PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
2342 _static_init2_ [[maybe_unused]] =
2344 ::std::false_type{});
2345#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[]
void MergeFrom(const LinearExpressionProto &from)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
decltype(::std::declval< SparseBoolVectorProto >()._impl_._has_bits_) HasBits
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
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
void MergeFrom(const SparseBoolVectorProto &from)
friend void swap(SparseBoolVectorProto &a, SparseBoolVectorProto &b)
void MergeFrom(const SparseDoubleMatrixProto &from)
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
decltype(::std::declval< SparseDoubleVectorProto >()._impl_._has_bits_) HasBits
void CopyFrom(const SparseDoubleVectorProto &from)
friend void swap(SparseDoubleVectorProto &a, SparseDoubleVectorProto &b)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
void MergeFrom(const SparseDoubleVectorProto &from)
::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
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void MergeFrom(const SparseInt32VectorProto &from)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
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
void MergeFrom(const SparseVectorFilterProto &from)
static constexpr ::_pbi::MigrationSchema *PROTOBUF_NULLABLE schemas
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SparseInt32VectorProto_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LinearExpressionProtoDefaultTypeInternal _LinearExpressionProto_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SparseDoubleVectorProto_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SparseDoubleVectorProtoDefaultTypeInternal _SparseDoubleVectorProto_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SparseVectorFilterProtoDefaultTypeInternal _SparseVectorFilterProto_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SparseInt32VectorProtoDefaultTypeInternal _SparseInt32VectorProto_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SparseDoubleMatrixProtoDefaultTypeInternal _SparseDoubleMatrixProto_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SparseDoubleMatrixProto_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SparseVectorFilterProto_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SparseBoolVectorProto_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull LinearExpressionProto_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SparseBoolVectorProtoDefaultTypeInternal _SparseBoolVectorProto_default_instance_
OR-Tools root namespace.
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fsparse_5fcontainers_2eproto
static constexprconst ::_pb::EnumDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_enum_descriptors_ortools_2fmath_5fopt_2fsparse_5fcontainers_2eproto
static constexprconst ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_service_descriptors_ortools_2fmath_5fopt_2fsparse_5fcontainers_2eproto
::absl::once_flag descriptor_table_ortools_2fmath_5fopt_2fsparse_5fcontainers_2eproto_once
const ::uint32_t TableStruct_ortools_2fmath_5fopt_2fsparse_5fcontainers_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold)