Google OR-Tools v9.14
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.31.1
5
7
8#include <algorithm>
9#include <type_traits>
10#include "google/protobuf/io/coded_stream.h"
11#include "google/protobuf/generated_message_tctable_impl.h"
12#include "google/protobuf/extension_set.h"
13#include "google/protobuf/generated_message_util.h"
14#include "google/protobuf/wire_format_lite.h"
15#include "google/protobuf/descriptor.h"
16#include "google/protobuf/generated_message_reflection.h"
17#include "google/protobuf/reflection_ops.h"
18#include "google/protobuf/wire_format.h"
19// @@protoc_insertion_point(includes)
20
21// Must be included last.
22#include "google/protobuf/port_def.inc"
23PROTOBUF_PRAGMA_INIT_SEG
24namespace _pb = ::google::protobuf;
26namespace _fl = ::google::protobuf::internal::field_layout;
27namespace operations_research {
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 : ids_{},
61 _ids_cached_byte_size_{0},
62 values_{},
63 _values_cached_byte_size_{0},
64 _cached_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 : ids_{},
89 _ids_cached_byte_size_{0},
90 values_{},
91 _cached_size_{0} {}
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 : row_ids_{},
116 _row_ids_cached_byte_size_{0},
117 column_ids_{},
118 _column_ids_cached_byte_size_{0},
119 coefficients_{},
120 _cached_size_{0} {}
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 : ids_{},
145 _ids_cached_byte_size_{0},
146 values_{},
147 _cached_size_{0} {}
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 0x000, // bitmap
206 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SparseDoubleVectorProto, _impl_.ids_),
207 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SparseDoubleVectorProto, _impl_.values_),
208 0x000, // bitmap
209 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SparseBoolVectorProto, _impl_.ids_),
210 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SparseBoolVectorProto, _impl_.values_),
211 0x000, // bitmap
212 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SparseInt32VectorProto, _impl_.ids_),
213 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SparseInt32VectorProto, _impl_.values_),
214 0x081, // bitmap
215 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SparseVectorFilterProto, _impl_._has_bits_),
216 6, // hasbit index offset
217 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SparseVectorFilterProto, _impl_.skip_zero_values_),
218 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SparseVectorFilterProto, _impl_.filter_by_ids_),
219 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SparseVectorFilterProto, _impl_.filtered_ids_),
220 0,
221 1,
222 ~0u,
223 0x000, // bitmap
224 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SparseDoubleMatrixProto, _impl_.row_ids_),
225 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SparseDoubleMatrixProto, _impl_.column_ids_),
226 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SparseDoubleMatrixProto, _impl_.coefficients_),
227 0x081, // bitmap
228 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::LinearExpressionProto, _impl_._has_bits_),
229 6, // hasbit index offset
230 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::LinearExpressionProto, _impl_.ids_),
231 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::LinearExpressionProto, _impl_.coefficients_),
232 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::LinearExpressionProto, _impl_.offset_),
233 ~0u,
234 ~0u,
235 0,
236};
237
238static const ::_pbi::MigrationSchema
239 schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
246};
255const char descriptor_table_protodef_ortools_2fmath_5fopt_2fsparse_5fcontainers_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
256 protodesc_cold) = {
257 "\n(ortools/math_opt/sparse_containers.pro"
258 "to\022\034operations_research.math_opt\"6\n\027Spar"
259 "seDoubleVectorProto\022\013\n\003ids\030\001 \003(\003\022\016\n\006valu"
260 "es\030\002 \003(\001\"4\n\025SparseBoolVectorProto\022\013\n\003ids"
261 "\030\001 \003(\003\022\016\n\006values\030\002 \003(\010\"5\n\026SparseInt32Vec"
262 "torProto\022\013\n\003ids\030\001 \003(\003\022\016\n\006values\030\002 \003(\005\"`\n"
263 "\027SparseVectorFilterProto\022\030\n\020skip_zero_va"
264 "lues\030\001 \001(\010\022\025\n\rfilter_by_ids\030\002 \001(\010\022\024\n\014fil"
265 "tered_ids\030\003 \003(\003\"T\n\027SparseDoubleMatrixPro"
266 "to\022\017\n\007row_ids\030\001 \003(\003\022\022\n\ncolumn_ids\030\002 \003(\003\022"
267 "\024\n\014coefficients\030\003 \003(\001\"J\n\025LinearExpressio"
268 "nProto\022\013\n\003ids\030\001 \003(\003\022\024\n\014coefficients\030\002 \003("
269 "\001\022\016\n\006offset\030\003 \001(\001B\036\n\032com.google.ortools."
270 "mathoptP\001b\006proto3"
271};
273PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fsparse_5fcontainers_2eproto = {
274 false,
275 false,
276 537,
277 descriptor_table_protodef_ortools_2fmath_5fopt_2fsparse_5fcontainers_2eproto,
278 "ortools/math_opt/sparse_containers.proto",
280 nullptr,
281 0,
282 6,
283 schemas,
288};
289namespace operations_research {
290namespace math_opt {
291// ===================================================================
292
294 public:
295};
296
297SparseDoubleVectorProto::SparseDoubleVectorProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
298#if defined(PROTOBUF_CUSTOM_VTABLE)
299 : ::google::protobuf::Message(arena, SparseDoubleVectorProto_class_data_.base()) {
300#else // PROTOBUF_CUSTOM_VTABLE
301 : ::google::protobuf::Message(arena) {
302#endif // PROTOBUF_CUSTOM_VTABLE
303 SharedCtor(arena);
304 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.SparseDoubleVectorProto)
305}
306PROTOBUF_NDEBUG_INLINE SparseDoubleVectorProto::Impl_::Impl_(
307 ::google::protobuf::internal::InternalVisibility visibility,
308 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
309 const ::operations_research::math_opt::SparseDoubleVectorProto& from_msg)
310 : ids_{visibility, arena, from.ids_},
311 _ids_cached_byte_size_{0},
312 values_{visibility, arena, from.values_},
313 _cached_size_{0} {}
314
316 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
317 const SparseDoubleVectorProto& from)
318#if defined(PROTOBUF_CUSTOM_VTABLE)
319 : ::google::protobuf::Message(arena, SparseDoubleVectorProto_class_data_.base()) {
320#else // PROTOBUF_CUSTOM_VTABLE
321 : ::google::protobuf::Message(arena) {
322#endif // PROTOBUF_CUSTOM_VTABLE
323 SparseDoubleVectorProto* const _this = this;
324 (void)_this;
325 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
326 from._internal_metadata_);
327 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
328
329 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.SparseDoubleVectorProto)
330}
331PROTOBUF_NDEBUG_INLINE SparseDoubleVectorProto::Impl_::Impl_(
332 ::google::protobuf::internal::InternalVisibility visibility,
333 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
334 : ids_{visibility, arena},
335 _ids_cached_byte_size_{0},
336 values_{visibility, arena},
337 _cached_size_{0} {}
338
339inline void SparseDoubleVectorProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
340 new (&_impl_) Impl_(internal_visibility(), arena);
341}
343 // @@protoc_insertion_point(destructor:operations_research.math_opt.SparseDoubleVectorProto)
344 SharedDtor(*this);
345}
346inline void SparseDoubleVectorProto::SharedDtor(MessageLite& self) {
347 SparseDoubleVectorProto& this_ = static_cast<SparseDoubleVectorProto&>(self);
348 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
349 ABSL_DCHECK(this_.GetArena() == nullptr);
350 this_._impl_.~Impl_();
351}
352
353inline void* PROTOBUF_NONNULL SparseDoubleVectorProto::PlacementNew_(
354 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
355 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
356 return ::new (mem) SparseDoubleVectorProto(arena);
357}
359 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
360 PROTOBUF_FIELD_OFFSET(SparseDoubleVectorProto, _impl_.ids_) +
361 decltype(SparseDoubleVectorProto::_impl_.ids_)::
362 InternalGetArenaOffset(
363 ::google::protobuf::Message::internal_visibility()),
364 PROTOBUF_FIELD_OFFSET(SparseDoubleVectorProto, _impl_.values_) +
365 decltype(SparseDoubleVectorProto::_impl_.values_)::
366 InternalGetArenaOffset(
367 ::google::protobuf::Message::internal_visibility()),
368 });
369 if (arena_bits.has_value()) {
370 return ::google::protobuf::internal::MessageCreator::ZeroInit(
371 sizeof(SparseDoubleVectorProto), alignof(SparseDoubleVectorProto), *arena_bits);
372 } else {
373 return ::google::protobuf::internal::MessageCreator(&SparseDoubleVectorProto::PlacementNew_,
375 alignof(SparseDoubleVectorProto));
376 }
377}
379 return ::google::protobuf::internal::ClassDataFull{
380 ::google::protobuf::internal::ClassData{
382 &_table_.header,
383 nullptr, // OnDemandRegisterArenaDtor
384 nullptr, // IsInitialized
385 &SparseDoubleVectorProto::MergeImpl,
386 ::google::protobuf::Message::GetNewImpl<SparseDoubleVectorProto>(),
387#if defined(PROTOBUF_CUSTOM_VTABLE)
388 &SparseDoubleVectorProto::SharedDtor,
389 ::google::protobuf::Message::GetClearImpl<SparseDoubleVectorProto>(), &SparseDoubleVectorProto::ByteSizeLong,
391#endif // PROTOBUF_CUSTOM_VTABLE
392 PROTOBUF_FIELD_OFFSET(SparseDoubleVectorProto, _impl_._cached_size_),
393 false,
394 },
395 &SparseDoubleVectorProto::kDescriptorMethods,
397 nullptr, // tracker
398 };
399}
400
401PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
402 ::google::protobuf::internal::ClassDataFull SparseDoubleVectorProto_class_data_ =
404
405PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
407 ::google::protobuf::internal::PrefetchToLocalCache(&SparseDoubleVectorProto_class_data_);
408 ::google::protobuf::internal::PrefetchToLocalCache(SparseDoubleVectorProto_class_data_.tc_table);
410}
411PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
412const ::_pbi::TcParseTable<1, 2, 0, 0, 2>
413SparseDoubleVectorProto::_table_ = {
414 {
415 0, // no _has_bits_
416 0, // no _extensions_
417 2, 8, // max_field_number, fast_idx_mask
418 offsetof(decltype(_table_), field_lookup_table),
419 4294967292, // skipmap
420 offsetof(decltype(_table_), field_entries),
421 2, // num_field_entries
422 0, // num_aux_entries
423 offsetof(decltype(_table_), field_names), // no aux_entries
425 nullptr, // post_loop_handler
426 ::_pbi::TcParser::GenericFallback, // fallback
427 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
428 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleVectorProto>(), // to_prefetch
429 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
430 }, {{
431 // repeated double values = 2;
432 {::_pbi::TcParser::FastF64P1,
433 {18, 63, 0, PROTOBUF_FIELD_OFFSET(SparseDoubleVectorProto, _impl_.values_)}},
434 // repeated int64 ids = 1;
435 {::_pbi::TcParser::FastV64P1,
436 {10, 63, 0, PROTOBUF_FIELD_OFFSET(SparseDoubleVectorProto, _impl_.ids_)}},
437 }}, {{
438 65535, 65535
439 }}, {{
440 // repeated int64 ids = 1;
441 {PROTOBUF_FIELD_OFFSET(SparseDoubleVectorProto, _impl_.ids_), 0, 0,
442 (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
443 // repeated double values = 2;
444 {PROTOBUF_FIELD_OFFSET(SparseDoubleVectorProto, _impl_.values_), 0, 0,
445 (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)},
446 }},
447 // no aux_entries
448 {{
449 }},
450};
451PROTOBUF_NOINLINE void SparseDoubleVectorProto::Clear() {
452// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.SparseDoubleVectorProto)
453 ::google::protobuf::internal::TSanWrite(&_impl_);
454 ::uint32_t cached_has_bits = 0;
455 // Prevent compiler warnings about cached_has_bits being unused
456 (void) cached_has_bits;
457
458 _impl_.ids_.Clear();
459 _impl_.values_.Clear();
460 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
461}
462
463#if defined(PROTOBUF_CUSTOM_VTABLE)
464::uint8_t* PROTOBUF_NONNULL SparseDoubleVectorProto::_InternalSerialize(
465 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
466 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
467 const SparseDoubleVectorProto& this_ = static_cast<const SparseDoubleVectorProto&>(base);
468#else // PROTOBUF_CUSTOM_VTABLE
469::uint8_t* PROTOBUF_NONNULL SparseDoubleVectorProto::_InternalSerialize(
470 ::uint8_t* PROTOBUF_NONNULL target,
471 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
472 const SparseDoubleVectorProto& this_ = *this;
473#endif // PROTOBUF_CUSTOM_VTABLE
474 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.SparseDoubleVectorProto)
475 ::uint32_t cached_has_bits = 0;
476 (void)cached_has_bits;
477
478 // repeated int64 ids = 1;
479 {
480 int byte_size = this_._impl_._ids_cached_byte_size_.Get();
481 if (byte_size > 0) {
482 target = stream->WriteInt64Packed(
483 1, this_._internal_ids(), byte_size, target);
484 }
485 }
486
487 // repeated double values = 2;
488 if (this_._internal_values_size() > 0) {
489 target = stream->WriteFixedPacked(2, this_._internal_values(), target);
490 }
491
492 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
493 target =
494 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
495 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
496 }
497 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.SparseDoubleVectorProto)
498 return target;
499}
500
501#if defined(PROTOBUF_CUSTOM_VTABLE)
503 const SparseDoubleVectorProto& this_ = static_cast<const SparseDoubleVectorProto&>(base);
504#else // PROTOBUF_CUSTOM_VTABLE
506 const SparseDoubleVectorProto& this_ = *this;
507#endif // PROTOBUF_CUSTOM_VTABLE
508 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.SparseDoubleVectorProto)
509 ::size_t total_size = 0;
510
511 ::uint32_t cached_has_bits = 0;
512 // Prevent compiler warnings about cached_has_bits being unused
513 (void)cached_has_bits;
514
515 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
516 {
517 // repeated int64 ids = 1;
518 {
519 total_size +=
520 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
521 this_._internal_ids(), 1,
522 this_._impl_._ids_cached_byte_size_);
523 }
524 // repeated double values = 2;
525 {
526 ::size_t data_size = ::size_t{8} *
527 ::_pbi::FromIntSize(this_._internal_values_size());
528 ::size_t tag_size = data_size == 0
529 ? 0
530 : 1 + ::_pbi::WireFormatLite::Int32Size(
531 static_cast<::int32_t>(data_size));
532 total_size += tag_size + data_size;
533 }
534 }
535 return this_.MaybeComputeUnknownFieldsSize(total_size,
536 &this_._impl_._cached_size_);
537}
538
539void SparseDoubleVectorProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
540 auto* const _this = static_cast<SparseDoubleVectorProto*>(&to_msg);
541 auto& from = static_cast<const SparseDoubleVectorProto&>(from_msg);
542 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.SparseDoubleVectorProto)
543 ABSL_DCHECK_NE(&from, _this);
544 ::uint32_t cached_has_bits = 0;
545 (void) cached_has_bits;
546
547 _this->_internal_mutable_ids()->MergeFrom(from._internal_ids());
548 _this->_internal_mutable_values()->MergeFrom(from._internal_values());
549 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
550}
551
553// @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.SparseDoubleVectorProto)
554 if (&from == this) return;
555 Clear();
556 MergeFrom(from);
557}
558
559
560void SparseDoubleVectorProto::InternalSwap(SparseDoubleVectorProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
561 using ::std::swap;
562 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
563 _impl_.ids_.InternalSwap(&other->_impl_.ids_);
564 _impl_.values_.InternalSwap(&other->_impl_.values_);
565}
566
567::google::protobuf::Metadata SparseDoubleVectorProto::GetMetadata() const {
568 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
569}
570// ===================================================================
571
573 public:
575
576SparseBoolVectorProto::SparseBoolVectorProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
577#if defined(PROTOBUF_CUSTOM_VTABLE)
578 : ::google::protobuf::Message(arena, SparseBoolVectorProto_class_data_.base()) {
579#else // PROTOBUF_CUSTOM_VTABLE
580 : ::google::protobuf::Message(arena) {
581#endif // PROTOBUF_CUSTOM_VTABLE
582 SharedCtor(arena);
583 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.SparseBoolVectorProto)
584}
585PROTOBUF_NDEBUG_INLINE SparseBoolVectorProto::Impl_::Impl_(
586 ::google::protobuf::internal::InternalVisibility visibility,
587 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
588 const ::operations_research::math_opt::SparseBoolVectorProto& from_msg)
589 : ids_{visibility, arena, from.ids_},
590 _ids_cached_byte_size_{0},
591 values_{visibility, arena, from.values_},
592 _cached_size_{0} {}
593
595 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
597#if defined(PROTOBUF_CUSTOM_VTABLE)
598 : ::google::protobuf::Message(arena, SparseBoolVectorProto_class_data_.base()) {
599#else // PROTOBUF_CUSTOM_VTABLE
600 : ::google::protobuf::Message(arena) {
601#endif // PROTOBUF_CUSTOM_VTABLE
602 SparseBoolVectorProto* const _this = this;
603 (void)_this;
604 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
605 from._internal_metadata_);
606 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
607
608 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.SparseBoolVectorProto)
609}
610PROTOBUF_NDEBUG_INLINE SparseBoolVectorProto::Impl_::Impl_(
611 ::google::protobuf::internal::InternalVisibility visibility,
612 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
613 : ids_{visibility, arena},
614 _ids_cached_byte_size_{0},
615 values_{visibility, arena},
616 _cached_size_{0} {}
617
618inline void SparseBoolVectorProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
619 new (&_impl_) Impl_(internal_visibility(), arena);
620}
622 // @@protoc_insertion_point(destructor:operations_research.math_opt.SparseBoolVectorProto)
623 SharedDtor(*this);
624}
625inline void SparseBoolVectorProto::SharedDtor(MessageLite& self) {
626 SparseBoolVectorProto& this_ = static_cast<SparseBoolVectorProto&>(self);
627 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
628 ABSL_DCHECK(this_.GetArena() == nullptr);
629 this_._impl_.~Impl_();
630}
631
632inline void* PROTOBUF_NONNULL SparseBoolVectorProto::PlacementNew_(
633 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
634 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
635 return ::new (mem) SparseBoolVectorProto(arena);
636}
638 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
639 PROTOBUF_FIELD_OFFSET(SparseBoolVectorProto, _impl_.ids_) +
640 decltype(SparseBoolVectorProto::_impl_.ids_)::
641 InternalGetArenaOffset(
642 ::google::protobuf::Message::internal_visibility()),
643 PROTOBUF_FIELD_OFFSET(SparseBoolVectorProto, _impl_.values_) +
644 decltype(SparseBoolVectorProto::_impl_.values_)::
645 InternalGetArenaOffset(
646 ::google::protobuf::Message::internal_visibility()),
647 });
648 if (arena_bits.has_value()) {
649 return ::google::protobuf::internal::MessageCreator::ZeroInit(
650 sizeof(SparseBoolVectorProto), alignof(SparseBoolVectorProto), *arena_bits);
651 } else {
652 return ::google::protobuf::internal::MessageCreator(&SparseBoolVectorProto::PlacementNew_,
653 sizeof(SparseBoolVectorProto),
654 alignof(SparseBoolVectorProto));
655 }
656}
658 return ::google::protobuf::internal::ClassDataFull{
659 ::google::protobuf::internal::ClassData{
661 &_table_.header,
662 nullptr, // OnDemandRegisterArenaDtor
663 nullptr, // IsInitialized
664 &SparseBoolVectorProto::MergeImpl,
665 ::google::protobuf::Message::GetNewImpl<SparseBoolVectorProto>(),
666#if defined(PROTOBUF_CUSTOM_VTABLE)
667 &SparseBoolVectorProto::SharedDtor,
668 ::google::protobuf::Message::GetClearImpl<SparseBoolVectorProto>(), &SparseBoolVectorProto::ByteSizeLong,
670#endif // PROTOBUF_CUSTOM_VTABLE
671 PROTOBUF_FIELD_OFFSET(SparseBoolVectorProto, _impl_._cached_size_),
672 false,
673 },
674 &SparseBoolVectorProto::kDescriptorMethods,
676 nullptr, // tracker
677 };
678}
679
680PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
681 ::google::protobuf::internal::ClassDataFull SparseBoolVectorProto_class_data_ =
684PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
686 ::google::protobuf::internal::PrefetchToLocalCache(&SparseBoolVectorProto_class_data_);
687 ::google::protobuf::internal::PrefetchToLocalCache(SparseBoolVectorProto_class_data_.tc_table);
689}
690PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
691const ::_pbi::TcParseTable<1, 2, 0, 0, 2>
692SparseBoolVectorProto::_table_ = {
693 {
694 0, // no _has_bits_
695 0, // no _extensions_
696 2, 8, // max_field_number, fast_idx_mask
697 offsetof(decltype(_table_), field_lookup_table),
698 4294967292, // skipmap
699 offsetof(decltype(_table_), field_entries),
700 2, // num_field_entries
701 0, // num_aux_entries
702 offsetof(decltype(_table_), field_names), // no aux_entries
704 nullptr, // post_loop_handler
705 ::_pbi::TcParser::GenericFallback, // fallback
706 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
707 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseBoolVectorProto>(), // to_prefetch
708 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
709 }, {{
710 // repeated bool values = 2;
711 {::_pbi::TcParser::FastV8P1,
712 {18, 63, 0, PROTOBUF_FIELD_OFFSET(SparseBoolVectorProto, _impl_.values_)}},
713 // repeated int64 ids = 1;
714 {::_pbi::TcParser::FastV64P1,
715 {10, 63, 0, PROTOBUF_FIELD_OFFSET(SparseBoolVectorProto, _impl_.ids_)}},
716 }}, {{
717 65535, 65535
718 }}, {{
719 // repeated int64 ids = 1;
720 {PROTOBUF_FIELD_OFFSET(SparseBoolVectorProto, _impl_.ids_), 0, 0,
721 (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
722 // repeated bool values = 2;
723 {PROTOBUF_FIELD_OFFSET(SparseBoolVectorProto, _impl_.values_), 0, 0,
724 (0 | ::_fl::kFcRepeated | ::_fl::kPackedBool)},
725 }},
726 // no aux_entries
727 {{
728 }},
729};
730PROTOBUF_NOINLINE void SparseBoolVectorProto::Clear() {
731// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.SparseBoolVectorProto)
732 ::google::protobuf::internal::TSanWrite(&_impl_);
733 ::uint32_t cached_has_bits = 0;
734 // Prevent compiler warnings about cached_has_bits being unused
735 (void) cached_has_bits;
736
737 _impl_.ids_.Clear();
738 _impl_.values_.Clear();
739 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
740}
741
742#if defined(PROTOBUF_CUSTOM_VTABLE)
743::uint8_t* PROTOBUF_NONNULL SparseBoolVectorProto::_InternalSerialize(
744 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
745 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
746 const SparseBoolVectorProto& this_ = static_cast<const SparseBoolVectorProto&>(base);
747#else // PROTOBUF_CUSTOM_VTABLE
748::uint8_t* PROTOBUF_NONNULL SparseBoolVectorProto::_InternalSerialize(
749 ::uint8_t* PROTOBUF_NONNULL target,
750 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
751 const SparseBoolVectorProto& this_ = *this;
752#endif // PROTOBUF_CUSTOM_VTABLE
753 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.SparseBoolVectorProto)
754 ::uint32_t cached_has_bits = 0;
755 (void)cached_has_bits;
756
757 // repeated int64 ids = 1;
758 {
759 int byte_size = this_._impl_._ids_cached_byte_size_.Get();
760 if (byte_size > 0) {
761 target = stream->WriteInt64Packed(
762 1, this_._internal_ids(), byte_size, target);
763 }
764 }
765
766 // repeated bool values = 2;
767 if (this_._internal_values_size() > 0) {
768 target = stream->WriteFixedPacked(2, this_._internal_values(), target);
769 }
770
771 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
772 target =
773 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
774 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
775 }
776 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.SparseBoolVectorProto)
777 return target;
778}
779
780#if defined(PROTOBUF_CUSTOM_VTABLE)
782 const SparseBoolVectorProto& this_ = static_cast<const SparseBoolVectorProto&>(base);
783#else // PROTOBUF_CUSTOM_VTABLE
785 const SparseBoolVectorProto& this_ = *this;
786#endif // PROTOBUF_CUSTOM_VTABLE
787 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.SparseBoolVectorProto)
788 ::size_t total_size = 0;
789
790 ::uint32_t cached_has_bits = 0;
791 // Prevent compiler warnings about cached_has_bits being unused
792 (void)cached_has_bits;
793
794 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
795 {
796 // repeated int64 ids = 1;
797 {
798 total_size +=
799 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
800 this_._internal_ids(), 1,
801 this_._impl_._ids_cached_byte_size_);
802 }
803 // repeated bool values = 2;
804 {
805 ::size_t data_size = ::size_t{1} *
806 ::_pbi::FromIntSize(this_._internal_values_size());
807 ::size_t tag_size = data_size == 0
808 ? 0
809 : 1 + ::_pbi::WireFormatLite::Int32Size(
810 static_cast<::int32_t>(data_size));
811 total_size += tag_size + data_size;
812 }
813 }
814 return this_.MaybeComputeUnknownFieldsSize(total_size,
815 &this_._impl_._cached_size_);
816}
817
818void SparseBoolVectorProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
819 auto* const _this = static_cast<SparseBoolVectorProto*>(&to_msg);
820 auto& from = static_cast<const SparseBoolVectorProto&>(from_msg);
821 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.SparseBoolVectorProto)
822 ABSL_DCHECK_NE(&from, _this);
823 ::uint32_t cached_has_bits = 0;
824 (void) cached_has_bits;
825
826 _this->_internal_mutable_ids()->MergeFrom(from._internal_ids());
827 _this->_internal_mutable_values()->MergeFrom(from._internal_values());
828 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
829}
830
831void SparseBoolVectorProto::CopyFrom(const SparseBoolVectorProto& from) {
832// @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.SparseBoolVectorProto)
833 if (&from == this) return;
834 Clear();
835 MergeFrom(from);
836}
837
838
839void SparseBoolVectorProto::InternalSwap(SparseBoolVectorProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
840 using ::std::swap;
841 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
842 _impl_.ids_.InternalSwap(&other->_impl_.ids_);
843 _impl_.values_.InternalSwap(&other->_impl_.values_);
844}
845
846::google::protobuf::Metadata SparseBoolVectorProto::GetMetadata() const {
847 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
849// ===================================================================
850
852 public:
853};
855SparseInt32VectorProto::SparseInt32VectorProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
856#if defined(PROTOBUF_CUSTOM_VTABLE)
857 : ::google::protobuf::Message(arena, SparseInt32VectorProto_class_data_.base()) {
858#else // PROTOBUF_CUSTOM_VTABLE
859 : ::google::protobuf::Message(arena) {
860#endif // PROTOBUF_CUSTOM_VTABLE
861 SharedCtor(arena);
862 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.SparseInt32VectorProto)
863}
864PROTOBUF_NDEBUG_INLINE SparseInt32VectorProto::Impl_::Impl_(
865 ::google::protobuf::internal::InternalVisibility visibility,
866 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
867 const ::operations_research::math_opt::SparseInt32VectorProto& from_msg)
868 : ids_{visibility, arena, from.ids_},
869 _ids_cached_byte_size_{0},
870 values_{visibility, arena, from.values_},
871 _values_cached_byte_size_{0},
872 _cached_size_{0} {}
873
875 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
876 const SparseInt32VectorProto& from)
877#if defined(PROTOBUF_CUSTOM_VTABLE)
878 : ::google::protobuf::Message(arena, SparseInt32VectorProto_class_data_.base()) {
879#else // PROTOBUF_CUSTOM_VTABLE
880 : ::google::protobuf::Message(arena) {
881#endif // PROTOBUF_CUSTOM_VTABLE
882 SparseInt32VectorProto* const _this = this;
883 (void)_this;
884 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
885 from._internal_metadata_);
886 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
887
888 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.SparseInt32VectorProto)
889}
890PROTOBUF_NDEBUG_INLINE SparseInt32VectorProto::Impl_::Impl_(
891 ::google::protobuf::internal::InternalVisibility visibility,
892 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
893 : ids_{visibility, arena},
894 _ids_cached_byte_size_{0},
895 values_{visibility, arena},
896 _values_cached_byte_size_{0},
897 _cached_size_{0} {}
898
899inline void SparseInt32VectorProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
900 new (&_impl_) Impl_(internal_visibility(), arena);
901}
903 // @@protoc_insertion_point(destructor:operations_research.math_opt.SparseInt32VectorProto)
904 SharedDtor(*this);
906inline void SparseInt32VectorProto::SharedDtor(MessageLite& self) {
907 SparseInt32VectorProto& this_ = static_cast<SparseInt32VectorProto&>(self);
908 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
909 ABSL_DCHECK(this_.GetArena() == nullptr);
910 this_._impl_.~Impl_();
911}
912
913inline void* PROTOBUF_NONNULL SparseInt32VectorProto::PlacementNew_(
914 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
915 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
916 return ::new (mem) SparseInt32VectorProto(arena);
917}
919 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
920 PROTOBUF_FIELD_OFFSET(SparseInt32VectorProto, _impl_.ids_) +
922 InternalGetArenaOffset(
923 ::google::protobuf::Message::internal_visibility()),
924 PROTOBUF_FIELD_OFFSET(SparseInt32VectorProto, _impl_.values_) +
925 decltype(SparseInt32VectorProto::_impl_.values_)::
926 InternalGetArenaOffset(
927 ::google::protobuf::Message::internal_visibility()),
928 });
929 if (arena_bits.has_value()) {
930 return ::google::protobuf::internal::MessageCreator::ZeroInit(
931 sizeof(SparseInt32VectorProto), alignof(SparseInt32VectorProto), *arena_bits);
932 } else {
933 return ::google::protobuf::internal::MessageCreator(&SparseInt32VectorProto::PlacementNew_,
934 sizeof(SparseInt32VectorProto),
935 alignof(SparseInt32VectorProto));
936 }
937}
939 return ::google::protobuf::internal::ClassDataFull{
940 ::google::protobuf::internal::ClassData{
942 &_table_.header,
943 nullptr, // OnDemandRegisterArenaDtor
944 nullptr, // IsInitialized
945 &SparseInt32VectorProto::MergeImpl,
946 ::google::protobuf::Message::GetNewImpl<SparseInt32VectorProto>(),
947#if defined(PROTOBUF_CUSTOM_VTABLE)
948 &SparseInt32VectorProto::SharedDtor,
949 ::google::protobuf::Message::GetClearImpl<SparseInt32VectorProto>(), &SparseInt32VectorProto::ByteSizeLong,
951#endif // PROTOBUF_CUSTOM_VTABLE
952 PROTOBUF_FIELD_OFFSET(SparseInt32VectorProto, _impl_._cached_size_),
953 false,
954 },
955 &SparseInt32VectorProto::kDescriptorMethods,
957 nullptr, // tracker
958 };
959}
960
961PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
962 ::google::protobuf::internal::ClassDataFull SparseInt32VectorProto_class_data_ =
964
965PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
967 ::google::protobuf::internal::PrefetchToLocalCache(&SparseInt32VectorProto_class_data_);
968 ::google::protobuf::internal::PrefetchToLocalCache(SparseInt32VectorProto_class_data_.tc_table);
970}
971PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
972const ::_pbi::TcParseTable<1, 2, 0, 0, 2>
973SparseInt32VectorProto::_table_ = {
974 {
975 0, // no _has_bits_
976 0, // no _extensions_
977 2, 8, // max_field_number, fast_idx_mask
978 offsetof(decltype(_table_), field_lookup_table),
979 4294967292, // skipmap
980 offsetof(decltype(_table_), field_entries),
981 2, // num_field_entries
982 0, // num_aux_entries
983 offsetof(decltype(_table_), field_names), // no aux_entries
985 nullptr, // post_loop_handler
986 ::_pbi::TcParser::GenericFallback, // fallback
987 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
988 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseInt32VectorProto>(), // to_prefetch
989 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
990 }, {{
991 // repeated int32 values = 2;
992 {::_pbi::TcParser::FastV32P1,
993 {18, 63, 0, PROTOBUF_FIELD_OFFSET(SparseInt32VectorProto, _impl_.values_)}},
994 // repeated int64 ids = 1;
995 {::_pbi::TcParser::FastV64P1,
996 {10, 63, 0, PROTOBUF_FIELD_OFFSET(SparseInt32VectorProto, _impl_.ids_)}},
997 }}, {{
998 65535, 65535
999 }}, {{
1000 // repeated int64 ids = 1;
1001 {PROTOBUF_FIELD_OFFSET(SparseInt32VectorProto, _impl_.ids_), 0, 0,
1002 (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
1003 // repeated int32 values = 2;
1004 {PROTOBUF_FIELD_OFFSET(SparseInt32VectorProto, _impl_.values_), 0, 0,
1005 (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)},
1006 }},
1007 // no aux_entries
1008 {{
1009 }},
1010};
1011PROTOBUF_NOINLINE void SparseInt32VectorProto::Clear() {
1012// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.SparseInt32VectorProto)
1013 ::google::protobuf::internal::TSanWrite(&_impl_);
1014 ::uint32_t cached_has_bits = 0;
1015 // Prevent compiler warnings about cached_has_bits being unused
1016 (void) cached_has_bits;
1017
1018 _impl_.ids_.Clear();
1019 _impl_.values_.Clear();
1020 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1021}
1022
1023#if defined(PROTOBUF_CUSTOM_VTABLE)
1024::uint8_t* PROTOBUF_NONNULL SparseInt32VectorProto::_InternalSerialize(
1025 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1026 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1027 const SparseInt32VectorProto& this_ = static_cast<const SparseInt32VectorProto&>(base);
1028#else // PROTOBUF_CUSTOM_VTABLE
1029::uint8_t* PROTOBUF_NONNULL SparseInt32VectorProto::_InternalSerialize(
1030 ::uint8_t* PROTOBUF_NONNULL target,
1031 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1032 const SparseInt32VectorProto& this_ = *this;
1033#endif // PROTOBUF_CUSTOM_VTABLE
1034 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.SparseInt32VectorProto)
1035 ::uint32_t cached_has_bits = 0;
1036 (void)cached_has_bits;
1037
1038 // repeated int64 ids = 1;
1039 {
1040 int byte_size = this_._impl_._ids_cached_byte_size_.Get();
1041 if (byte_size > 0) {
1042 target = stream->WriteInt64Packed(
1043 1, this_._internal_ids(), byte_size, target);
1044 }
1045 }
1046
1047 // repeated int32 values = 2;
1048 {
1049 int byte_size = this_._impl_._values_cached_byte_size_.Get();
1050 if (byte_size > 0) {
1051 target = stream->WriteInt32Packed(
1052 2, this_._internal_values(), byte_size, target);
1053 }
1054 }
1055
1056 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1057 target =
1058 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1059 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1060 }
1061 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.SparseInt32VectorProto)
1062 return target;
1063}
1064
1065#if defined(PROTOBUF_CUSTOM_VTABLE)
1067 const SparseInt32VectorProto& this_ = static_cast<const SparseInt32VectorProto&>(base);
1068#else // PROTOBUF_CUSTOM_VTABLE
1069::size_t SparseInt32VectorProto::ByteSizeLong() const {
1070 const SparseInt32VectorProto& this_ = *this;
1071#endif // PROTOBUF_CUSTOM_VTABLE
1072 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.SparseInt32VectorProto)
1073 ::size_t total_size = 0;
1074
1075 ::uint32_t cached_has_bits = 0;
1076 // Prevent compiler warnings about cached_has_bits being unused
1077 (void)cached_has_bits;
1078
1079 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1080 {
1081 // repeated int64 ids = 1;
1082 {
1083 total_size +=
1084 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
1085 this_._internal_ids(), 1,
1086 this_._impl_._ids_cached_byte_size_);
1087 }
1088 // repeated int32 values = 2;
1089 {
1090 total_size +=
1091 ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize(
1092 this_._internal_values(), 1,
1093 this_._impl_._values_cached_byte_size_);
1094 }
1095 }
1096 return this_.MaybeComputeUnknownFieldsSize(total_size,
1097 &this_._impl_._cached_size_);
1098}
1099
1100void SparseInt32VectorProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
1101 auto* const _this = static_cast<SparseInt32VectorProto*>(&to_msg);
1102 auto& from = static_cast<const SparseInt32VectorProto&>(from_msg);
1103 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.SparseInt32VectorProto)
1104 ABSL_DCHECK_NE(&from, _this);
1105 ::uint32_t cached_has_bits = 0;
1106 (void) cached_has_bits;
1107
1108 _this->_internal_mutable_ids()->MergeFrom(from._internal_ids());
1109 _this->_internal_mutable_values()->MergeFrom(from._internal_values());
1110 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
1111}
1112
1114// @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.SparseInt32VectorProto)
1115 if (&from == this) return;
1117 MergeFrom(from);
1118}
1119
1120
1121void SparseInt32VectorProto::InternalSwap(SparseInt32VectorProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1122 using ::std::swap;
1123 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1124 _impl_.ids_.InternalSwap(&other->_impl_.ids_);
1125 _impl_.values_.InternalSwap(&other->_impl_.values_);
1126}
1127
1128::google::protobuf::Metadata SparseInt32VectorProto::GetMetadata() const {
1129 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1130}
1131// ===================================================================
1132
1134 public:
1135 using HasBits =
1136 decltype(::std::declval<SparseVectorFilterProto>()._impl_._has_bits_);
1137 static constexpr ::int32_t kHasBitsOffset =
1138 8 * PROTOBUF_FIELD_OFFSET(SparseVectorFilterProto, _impl_._has_bits_);
1140
1141SparseVectorFilterProto::SparseVectorFilterProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1142#if defined(PROTOBUF_CUSTOM_VTABLE)
1143 : ::google::protobuf::Message(arena, SparseVectorFilterProto_class_data_.base()) {
1144#else // PROTOBUF_CUSTOM_VTABLE
1145 : ::google::protobuf::Message(arena) {
1146#endif // PROTOBUF_CUSTOM_VTABLE
1147 SharedCtor(arena);
1148 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.SparseVectorFilterProto)
1149}
1150PROTOBUF_NDEBUG_INLINE SparseVectorFilterProto::Impl_::Impl_(
1151 ::google::protobuf::internal::InternalVisibility visibility,
1152 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
1153 const ::operations_research::math_opt::SparseVectorFilterProto& from_msg)
1154 : _has_bits_{from._has_bits_},
1155 _cached_size_{0},
1156 filtered_ids_{visibility, arena, from.filtered_ids_},
1157 _filtered_ids_cached_byte_size_{0} {}
1158
1160 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1161 const SparseVectorFilterProto& from)
1162#if defined(PROTOBUF_CUSTOM_VTABLE)
1163 : ::google::protobuf::Message(arena, SparseVectorFilterProto_class_data_.base()) {
1164#else // PROTOBUF_CUSTOM_VTABLE
1165 : ::google::protobuf::Message(arena) {
1166#endif // PROTOBUF_CUSTOM_VTABLE
1167 SparseVectorFilterProto* const _this = this;
1168 (void)_this;
1169 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1170 from._internal_metadata_);
1171 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1172 ::memcpy(reinterpret_cast<char *>(&_impl_) +
1173 offsetof(Impl_, skip_zero_values_),
1174 reinterpret_cast<const char *>(&from._impl_) +
1175 offsetof(Impl_, skip_zero_values_),
1176 offsetof(Impl_, filter_by_ids_) -
1177 offsetof(Impl_, skip_zero_values_) +
1178 sizeof(Impl_::filter_by_ids_));
1179
1180 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.SparseVectorFilterProto)
1181}
1182PROTOBUF_NDEBUG_INLINE SparseVectorFilterProto::Impl_::Impl_(
1183 ::google::protobuf::internal::InternalVisibility visibility,
1184 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1185 : _cached_size_{0},
1186 filtered_ids_{visibility, arena},
1187 _filtered_ids_cached_byte_size_{0} {}
1188
1189inline void SparseVectorFilterProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1190 new (&_impl_) Impl_(internal_visibility(), arena);
1191 ::memset(reinterpret_cast<char *>(&_impl_) +
1192 offsetof(Impl_, skip_zero_values_),
1193 0,
1194 offsetof(Impl_, filter_by_ids_) -
1195 offsetof(Impl_, skip_zero_values_) +
1196 sizeof(Impl_::filter_by_ids_));
1197}
1199 // @@protoc_insertion_point(destructor:operations_research.math_opt.SparseVectorFilterProto)
1200 SharedDtor(*this);
1201}
1202inline void SparseVectorFilterProto::SharedDtor(MessageLite& self) {
1203 SparseVectorFilterProto& this_ = static_cast<SparseVectorFilterProto&>(self);
1204 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1205 ABSL_DCHECK(this_.GetArena() == nullptr);
1206 this_._impl_.~Impl_();
1207}
1208
1209inline void* PROTOBUF_NONNULL SparseVectorFilterProto::PlacementNew_(
1210 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1211 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1212 return ::new (mem) SparseVectorFilterProto(arena);
1215 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
1216 PROTOBUF_FIELD_OFFSET(SparseVectorFilterProto, _impl_.filtered_ids_) +
1217 decltype(SparseVectorFilterProto::_impl_.filtered_ids_)::
1218 InternalGetArenaOffset(
1219 ::google::protobuf::Message::internal_visibility()),
1220 });
1221 if (arena_bits.has_value()) {
1222 return ::google::protobuf::internal::MessageCreator::ZeroInit(
1223 sizeof(SparseVectorFilterProto), alignof(SparseVectorFilterProto), *arena_bits);
1224 } else {
1225 return ::google::protobuf::internal::MessageCreator(&SparseVectorFilterProto::PlacementNew_,
1227 alignof(SparseVectorFilterProto));
1228 }
1229}
1231 return ::google::protobuf::internal::ClassDataFull{
1232 ::google::protobuf::internal::ClassData{
1234 &_table_.header,
1235 nullptr, // OnDemandRegisterArenaDtor
1236 nullptr, // IsInitialized
1237 &SparseVectorFilterProto::MergeImpl,
1238 ::google::protobuf::Message::GetNewImpl<SparseVectorFilterProto>(),
1239#if defined(PROTOBUF_CUSTOM_VTABLE)
1240 &SparseVectorFilterProto::SharedDtor,
1241 ::google::protobuf::Message::GetClearImpl<SparseVectorFilterProto>(), &SparseVectorFilterProto::ByteSizeLong,
1243#endif // PROTOBUF_CUSTOM_VTABLE
1244 PROTOBUF_FIELD_OFFSET(SparseVectorFilterProto, _impl_._cached_size_),
1245 false,
1246 },
1247 &SparseVectorFilterProto::kDescriptorMethods,
1249 nullptr, // tracker
1250 };
1251}
1252
1253PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1254 ::google::protobuf::internal::ClassDataFull SparseVectorFilterProto_class_data_ =
1256
1257PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1259 ::google::protobuf::internal::PrefetchToLocalCache(&SparseVectorFilterProto_class_data_);
1260 ::google::protobuf::internal::PrefetchToLocalCache(SparseVectorFilterProto_class_data_.tc_table);
1263PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1264const ::_pbi::TcParseTable<2, 3, 0, 0, 2>
1265SparseVectorFilterProto::_table_ = {
1266 {
1267 PROTOBUF_FIELD_OFFSET(SparseVectorFilterProto, _impl_._has_bits_),
1268 0, // no _extensions_
1269 3, 24, // max_field_number, fast_idx_mask
1270 offsetof(decltype(_table_), field_lookup_table),
1271 4294967288, // skipmap
1272 offsetof(decltype(_table_), field_entries),
1273 3, // num_field_entries
1274 0, // num_aux_entries
1275 offsetof(decltype(_table_), field_names), // no aux_entries
1277 nullptr, // post_loop_handler
1278 ::_pbi::TcParser::GenericFallback, // fallback
1279 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1280 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseVectorFilterProto>(), // to_prefetch
1281 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
1282 }, {{
1283 {::_pbi::TcParser::MiniParse, {}},
1284 // bool skip_zero_values = 1;
1285 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(SparseVectorFilterProto, _impl_.skip_zero_values_), 0>(),
1286 {8, 0, 0, PROTOBUF_FIELD_OFFSET(SparseVectorFilterProto, _impl_.skip_zero_values_)}},
1287 // bool filter_by_ids = 2;
1288 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(SparseVectorFilterProto, _impl_.filter_by_ids_), 1>(),
1289 {16, 1, 0, PROTOBUF_FIELD_OFFSET(SparseVectorFilterProto, _impl_.filter_by_ids_)}},
1290 // repeated int64 filtered_ids = 3;
1291 {::_pbi::TcParser::FastV64P1,
1292 {26, 63, 0, PROTOBUF_FIELD_OFFSET(SparseVectorFilterProto, _impl_.filtered_ids_)}},
1293 }}, {{
1294 65535, 65535
1295 }}, {{
1296 // bool skip_zero_values = 1;
1297 {PROTOBUF_FIELD_OFFSET(SparseVectorFilterProto, _impl_.skip_zero_values_), _Internal::kHasBitsOffset + 0, 0,
1298 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
1299 // bool filter_by_ids = 2;
1300 {PROTOBUF_FIELD_OFFSET(SparseVectorFilterProto, _impl_.filter_by_ids_), _Internal::kHasBitsOffset + 1, 0,
1301 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
1302 // repeated int64 filtered_ids = 3;
1303 {PROTOBUF_FIELD_OFFSET(SparseVectorFilterProto, _impl_.filtered_ids_), -1, 0,
1304 (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
1305 }},
1306 // no aux_entries
1307 {{
1308 }},
1309};
1310PROTOBUF_NOINLINE void SparseVectorFilterProto::Clear() {
1311// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.SparseVectorFilterProto)
1312 ::google::protobuf::internal::TSanWrite(&_impl_);
1313 ::uint32_t cached_has_bits = 0;
1314 // Prevent compiler warnings about cached_has_bits being unused
1315 (void) cached_has_bits;
1316
1317 _impl_.filtered_ids_.Clear();
1318 ::memset(&_impl_.skip_zero_values_, 0, static_cast<::size_t>(
1319 reinterpret_cast<char*>(&_impl_.filter_by_ids_) -
1320 reinterpret_cast<char*>(&_impl_.skip_zero_values_)) + sizeof(_impl_.filter_by_ids_));
1321 _impl_._has_bits_.Clear();
1322 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1323}
1324
1325#if defined(PROTOBUF_CUSTOM_VTABLE)
1326::uint8_t* PROTOBUF_NONNULL SparseVectorFilterProto::_InternalSerialize(
1327 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1328 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1329 const SparseVectorFilterProto& this_ = static_cast<const SparseVectorFilterProto&>(base);
1330#else // PROTOBUF_CUSTOM_VTABLE
1331::uint8_t* PROTOBUF_NONNULL SparseVectorFilterProto::_InternalSerialize(
1332 ::uint8_t* PROTOBUF_NONNULL target,
1333 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1334 const SparseVectorFilterProto& this_ = *this;
1335#endif // PROTOBUF_CUSTOM_VTABLE
1336 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.SparseVectorFilterProto)
1337 ::uint32_t cached_has_bits = 0;
1338 (void)cached_has_bits;
1339
1340 // bool skip_zero_values = 1;
1341 if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) {
1342 if (this_._internal_skip_zero_values() != 0) {
1343 target = stream->EnsureSpace(target);
1344 target = ::_pbi::WireFormatLite::WriteBoolToArray(
1345 1, this_._internal_skip_zero_values(), target);
1346 }
1347 }
1348
1349 // bool filter_by_ids = 2;
1350 if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) {
1351 if (this_._internal_filter_by_ids() != 0) {
1352 target = stream->EnsureSpace(target);
1353 target = ::_pbi::WireFormatLite::WriteBoolToArray(
1354 2, this_._internal_filter_by_ids(), target);
1355 }
1356 }
1357
1358 // repeated int64 filtered_ids = 3;
1359 {
1360 int byte_size = this_._impl_._filtered_ids_cached_byte_size_.Get();
1361 if (byte_size > 0) {
1362 target = stream->WriteInt64Packed(
1363 3, this_._internal_filtered_ids(), byte_size, target);
1364 }
1365 }
1366
1367 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1368 target =
1369 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1370 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1371 }
1372 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.SparseVectorFilterProto)
1373 return target;
1374}
1375
1376#if defined(PROTOBUF_CUSTOM_VTABLE)
1378 const SparseVectorFilterProto& this_ = static_cast<const SparseVectorFilterProto&>(base);
1379#else // PROTOBUF_CUSTOM_VTABLE
1381 const SparseVectorFilterProto& this_ = *this;
1382#endif // PROTOBUF_CUSTOM_VTABLE
1383 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.SparseVectorFilterProto)
1384 ::size_t total_size = 0;
1385
1386 ::uint32_t cached_has_bits = 0;
1387 // Prevent compiler warnings about cached_has_bits being unused
1388 (void)cached_has_bits;
1389
1390 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1391 {
1392 // repeated int64 filtered_ids = 3;
1393 {
1394 total_size +=
1395 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
1396 this_._internal_filtered_ids(), 1,
1397 this_._impl_._filtered_ids_cached_byte_size_);
1398 }
1399 }
1400 cached_has_bits = this_._impl_._has_bits_[0];
1401 if ((cached_has_bits & 0x00000003u) != 0) {
1402 // bool skip_zero_values = 1;
1403 if ((cached_has_bits & 0x00000001u) != 0) {
1404 if (this_._internal_skip_zero_values() != 0) {
1405 total_size += 2;
1406 }
1407 }
1408 // bool filter_by_ids = 2;
1409 if ((cached_has_bits & 0x00000002u) != 0) {
1410 if (this_._internal_filter_by_ids() != 0) {
1411 total_size += 2;
1412 }
1413 }
1414 }
1415 return this_.MaybeComputeUnknownFieldsSize(total_size,
1416 &this_._impl_._cached_size_);
1417}
1418
1419void SparseVectorFilterProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
1420 auto* const _this = static_cast<SparseVectorFilterProto*>(&to_msg);
1421 auto& from = static_cast<const SparseVectorFilterProto&>(from_msg);
1422 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.SparseVectorFilterProto)
1423 ABSL_DCHECK_NE(&from, _this);
1424 ::uint32_t cached_has_bits = 0;
1425 (void) cached_has_bits;
1426
1427 _this->_internal_mutable_filtered_ids()->MergeFrom(from._internal_filtered_ids());
1428 cached_has_bits = from._impl_._has_bits_[0];
1429 if ((cached_has_bits & 0x00000003u) != 0) {
1430 if ((cached_has_bits & 0x00000001u) != 0) {
1431 if (from._internal_skip_zero_values() != 0) {
1432 _this->_impl_.skip_zero_values_ = from._impl_.skip_zero_values_;
1433 }
1434 }
1435 if ((cached_has_bits & 0x00000002u) != 0) {
1436 if (from._internal_filter_by_ids() != 0) {
1437 _this->_impl_.filter_by_ids_ = from._impl_.filter_by_ids_;
1438 }
1439 }
1440 }
1441 _this->_impl_._has_bits_[0] |= cached_has_bits;
1442 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
1443}
1444
1446// @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.SparseVectorFilterProto)
1447 if (&from == this) return;
1448 Clear();
1450}
1451
1452
1453void SparseVectorFilterProto::InternalSwap(SparseVectorFilterProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1454 using ::std::swap;
1455 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1456 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1457 _impl_.filtered_ids_.InternalSwap(&other->_impl_.filtered_ids_);
1458 ::google::protobuf::internal::memswap<
1459 PROTOBUF_FIELD_OFFSET(SparseVectorFilterProto, _impl_.filter_by_ids_)
1460 + sizeof(SparseVectorFilterProto::_impl_.filter_by_ids_)
1461 - PROTOBUF_FIELD_OFFSET(SparseVectorFilterProto, _impl_.skip_zero_values_)>(
1462 reinterpret_cast<char*>(&_impl_.skip_zero_values_),
1463 reinterpret_cast<char*>(&other->_impl_.skip_zero_values_));
1464}
1465
1466::google::protobuf::Metadata SparseVectorFilterProto::GetMetadata() const {
1467 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1468}
1469// ===================================================================
1472 public:
1473};
1474
1475SparseDoubleMatrixProto::SparseDoubleMatrixProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1476#if defined(PROTOBUF_CUSTOM_VTABLE)
1477 : ::google::protobuf::Message(arena, SparseDoubleMatrixProto_class_data_.base()) {
1478#else // PROTOBUF_CUSTOM_VTABLE
1479 : ::google::protobuf::Message(arena) {
1480#endif // PROTOBUF_CUSTOM_VTABLE
1481 SharedCtor(arena);
1482 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.SparseDoubleMatrixProto)
1483}
1484PROTOBUF_NDEBUG_INLINE SparseDoubleMatrixProto::Impl_::Impl_(
1485 ::google::protobuf::internal::InternalVisibility visibility,
1486 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
1487 const ::operations_research::math_opt::SparseDoubleMatrixProto& from_msg)
1488 : row_ids_{visibility, arena, from.row_ids_},
1489 _row_ids_cached_byte_size_{0},
1490 column_ids_{visibility, arena, from.column_ids_},
1491 _column_ids_cached_byte_size_{0},
1492 coefficients_{visibility, arena, from.coefficients_},
1493 _cached_size_{0} {}
1494
1496 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1497 const SparseDoubleMatrixProto& from)
1498#if defined(PROTOBUF_CUSTOM_VTABLE)
1499 : ::google::protobuf::Message(arena, SparseDoubleMatrixProto_class_data_.base()) {
1500#else // PROTOBUF_CUSTOM_VTABLE
1501 : ::google::protobuf::Message(arena) {
1502#endif // PROTOBUF_CUSTOM_VTABLE
1503 SparseDoubleMatrixProto* const _this = this;
1504 (void)_this;
1505 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1506 from._internal_metadata_);
1507 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1508
1509 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.SparseDoubleMatrixProto)
1510}
1511PROTOBUF_NDEBUG_INLINE SparseDoubleMatrixProto::Impl_::Impl_(
1512 ::google::protobuf::internal::InternalVisibility visibility,
1513 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1514 : row_ids_{visibility, arena},
1515 _row_ids_cached_byte_size_{0},
1516 column_ids_{visibility, arena},
1517 _column_ids_cached_byte_size_{0},
1518 coefficients_{visibility, arena},
1519 _cached_size_{0} {}
1520
1521inline void SparseDoubleMatrixProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1522 new (&_impl_) Impl_(internal_visibility(), arena);
1523}
1525 // @@protoc_insertion_point(destructor:operations_research.math_opt.SparseDoubleMatrixProto)
1526 SharedDtor(*this);
1527}
1528inline void SparseDoubleMatrixProto::SharedDtor(MessageLite& self) {
1530 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1531 ABSL_DCHECK(this_.GetArena() == nullptr);
1532 this_._impl_.~Impl_();
1533}
1534
1535inline void* PROTOBUF_NONNULL SparseDoubleMatrixProto::PlacementNew_(
1536 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1537 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1538 return ::new (mem) SparseDoubleMatrixProto(arena);
1539}
1541 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
1542 PROTOBUF_FIELD_OFFSET(SparseDoubleMatrixProto, _impl_.row_ids_) +
1543 decltype(SparseDoubleMatrixProto::_impl_.row_ids_)::
1544 InternalGetArenaOffset(
1545 ::google::protobuf::Message::internal_visibility()),
1546 PROTOBUF_FIELD_OFFSET(SparseDoubleMatrixProto, _impl_.column_ids_) +
1547 decltype(SparseDoubleMatrixProto::_impl_.column_ids_)::
1548 InternalGetArenaOffset(
1549 ::google::protobuf::Message::internal_visibility()),
1550 PROTOBUF_FIELD_OFFSET(SparseDoubleMatrixProto, _impl_.coefficients_) +
1551 decltype(SparseDoubleMatrixProto::_impl_.coefficients_)::
1552 InternalGetArenaOffset(
1553 ::google::protobuf::Message::internal_visibility()),
1554 });
1555 if (arena_bits.has_value()) {
1556 return ::google::protobuf::internal::MessageCreator::ZeroInit(
1557 sizeof(SparseDoubleMatrixProto), alignof(SparseDoubleMatrixProto), *arena_bits);
1558 } else {
1559 return ::google::protobuf::internal::MessageCreator(&SparseDoubleMatrixProto::PlacementNew_,
1560 sizeof(SparseDoubleMatrixProto),
1561 alignof(SparseDoubleMatrixProto));
1562 }
1563}
1565 return ::google::protobuf::internal::ClassDataFull{
1566 ::google::protobuf::internal::ClassData{
1568 &_table_.header,
1569 nullptr, // OnDemandRegisterArenaDtor
1570 nullptr, // IsInitialized
1571 &SparseDoubleMatrixProto::MergeImpl,
1572 ::google::protobuf::Message::GetNewImpl<SparseDoubleMatrixProto>(),
1573#if defined(PROTOBUF_CUSTOM_VTABLE)
1574 &SparseDoubleMatrixProto::SharedDtor,
1575 ::google::protobuf::Message::GetClearImpl<SparseDoubleMatrixProto>(), &SparseDoubleMatrixProto::ByteSizeLong,
1577#endif // PROTOBUF_CUSTOM_VTABLE
1578 PROTOBUF_FIELD_OFFSET(SparseDoubleMatrixProto, _impl_._cached_size_),
1579 false,
1580 },
1581 &SparseDoubleMatrixProto::kDescriptorMethods,
1583 nullptr, // tracker
1584 };
1585}
1586
1587PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1588 ::google::protobuf::internal::ClassDataFull SparseDoubleMatrixProto_class_data_ =
1590
1591PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1593 ::google::protobuf::internal::PrefetchToLocalCache(&SparseDoubleMatrixProto_class_data_);
1594 ::google::protobuf::internal::PrefetchToLocalCache(SparseDoubleMatrixProto_class_data_.tc_table);
1596}
1597PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1598const ::_pbi::TcParseTable<2, 3, 0, 0, 2>
1599SparseDoubleMatrixProto::_table_ = {
1600 {
1601 0, // no _has_bits_
1602 0, // no _extensions_
1603 3, 24, // max_field_number, fast_idx_mask
1604 offsetof(decltype(_table_), field_lookup_table),
1605 4294967288, // skipmap
1606 offsetof(decltype(_table_), field_entries),
1607 3, // num_field_entries
1608 0, // num_aux_entries
1609 offsetof(decltype(_table_), field_names), // no aux_entries
1611 nullptr, // post_loop_handler
1612 ::_pbi::TcParser::GenericFallback, // fallback
1613 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1614 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleMatrixProto>(), // to_prefetch
1615 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
1616 }, {{
1617 {::_pbi::TcParser::MiniParse, {}},
1618 // repeated int64 row_ids = 1;
1619 {::_pbi::TcParser::FastV64P1,
1620 {10, 63, 0, PROTOBUF_FIELD_OFFSET(SparseDoubleMatrixProto, _impl_.row_ids_)}},
1621 // repeated int64 column_ids = 2;
1622 {::_pbi::TcParser::FastV64P1,
1623 {18, 63, 0, PROTOBUF_FIELD_OFFSET(SparseDoubleMatrixProto, _impl_.column_ids_)}},
1624 // repeated double coefficients = 3;
1625 {::_pbi::TcParser::FastF64P1,
1626 {26, 63, 0, PROTOBUF_FIELD_OFFSET(SparseDoubleMatrixProto, _impl_.coefficients_)}},
1627 }}, {{
1628 65535, 65535
1629 }}, {{
1630 // repeated int64 row_ids = 1;
1631 {PROTOBUF_FIELD_OFFSET(SparseDoubleMatrixProto, _impl_.row_ids_), 0, 0,
1632 (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
1633 // repeated int64 column_ids = 2;
1634 {PROTOBUF_FIELD_OFFSET(SparseDoubleMatrixProto, _impl_.column_ids_), 0, 0,
1635 (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
1636 // repeated double coefficients = 3;
1637 {PROTOBUF_FIELD_OFFSET(SparseDoubleMatrixProto, _impl_.coefficients_), 0, 0,
1638 (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)},
1639 }},
1640 // no aux_entries
1641 {{
1642 }},
1643};
1644PROTOBUF_NOINLINE void SparseDoubleMatrixProto::Clear() {
1645// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.SparseDoubleMatrixProto)
1646 ::google::protobuf::internal::TSanWrite(&_impl_);
1647 ::uint32_t cached_has_bits = 0;
1648 // Prevent compiler warnings about cached_has_bits being unused
1649 (void) cached_has_bits;
1650
1651 _impl_.row_ids_.Clear();
1652 _impl_.column_ids_.Clear();
1653 _impl_.coefficients_.Clear();
1654 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1655}
1656
1657#if defined(PROTOBUF_CUSTOM_VTABLE)
1658::uint8_t* PROTOBUF_NONNULL SparseDoubleMatrixProto::_InternalSerialize(
1659 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1660 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1661 const SparseDoubleMatrixProto& this_ = static_cast<const SparseDoubleMatrixProto&>(base);
1662#else // PROTOBUF_CUSTOM_VTABLE
1663::uint8_t* PROTOBUF_NONNULL SparseDoubleMatrixProto::_InternalSerialize(
1664 ::uint8_t* PROTOBUF_NONNULL target,
1665 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1666 const SparseDoubleMatrixProto& this_ = *this;
1667#endif // PROTOBUF_CUSTOM_VTABLE
1668 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.SparseDoubleMatrixProto)
1669 ::uint32_t cached_has_bits = 0;
1670 (void)cached_has_bits;
1671
1672 // repeated int64 row_ids = 1;
1673 {
1674 int byte_size = this_._impl_._row_ids_cached_byte_size_.Get();
1675 if (byte_size > 0) {
1676 target = stream->WriteInt64Packed(
1677 1, this_._internal_row_ids(), byte_size, target);
1678 }
1679 }
1680
1681 // repeated int64 column_ids = 2;
1682 {
1683 int byte_size = this_._impl_._column_ids_cached_byte_size_.Get();
1684 if (byte_size > 0) {
1685 target = stream->WriteInt64Packed(
1686 2, this_._internal_column_ids(), byte_size, target);
1687 }
1688 }
1689
1690 // repeated double coefficients = 3;
1691 if (this_._internal_coefficients_size() > 0) {
1692 target = stream->WriteFixedPacked(3, this_._internal_coefficients(), target);
1693 }
1694
1695 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1696 target =
1697 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1698 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1699 }
1700 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.SparseDoubleMatrixProto)
1701 return target;
1702}
1703
1704#if defined(PROTOBUF_CUSTOM_VTABLE)
1706 const SparseDoubleMatrixProto& this_ = static_cast<const SparseDoubleMatrixProto&>(base);
1707#else // PROTOBUF_CUSTOM_VTABLE
1709 const SparseDoubleMatrixProto& this_ = *this;
1710#endif // PROTOBUF_CUSTOM_VTABLE
1711 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.SparseDoubleMatrixProto)
1712 ::size_t total_size = 0;
1714 ::uint32_t cached_has_bits = 0;
1715 // Prevent compiler warnings about cached_has_bits being unused
1716 (void)cached_has_bits;
1717
1718 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1719 {
1720 // repeated int64 row_ids = 1;
1721 {
1722 total_size +=
1723 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
1724 this_._internal_row_ids(), 1,
1725 this_._impl_._row_ids_cached_byte_size_);
1726 }
1727 // repeated int64 column_ids = 2;
1728 {
1729 total_size +=
1730 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
1731 this_._internal_column_ids(), 1,
1732 this_._impl_._column_ids_cached_byte_size_);
1733 }
1734 // repeated double coefficients = 3;
1735 {
1736 ::size_t data_size = ::size_t{8} *
1737 ::_pbi::FromIntSize(this_._internal_coefficients_size());
1738 ::size_t tag_size = data_size == 0
1739 ? 0
1740 : 1 + ::_pbi::WireFormatLite::Int32Size(
1741 static_cast<::int32_t>(data_size));
1742 total_size += tag_size + data_size;
1743 }
1744 }
1745 return this_.MaybeComputeUnknownFieldsSize(total_size,
1746 &this_._impl_._cached_size_);
1747}
1748
1749void SparseDoubleMatrixProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
1750 auto* const _this = static_cast<SparseDoubleMatrixProto*>(&to_msg);
1751 auto& from = static_cast<const SparseDoubleMatrixProto&>(from_msg);
1752 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.SparseDoubleMatrixProto)
1753 ABSL_DCHECK_NE(&from, _this);
1754 ::uint32_t cached_has_bits = 0;
1755 (void) cached_has_bits;
1756
1757 _this->_internal_mutable_row_ids()->MergeFrom(from._internal_row_ids());
1758 _this->_internal_mutable_column_ids()->MergeFrom(from._internal_column_ids());
1759 _this->_internal_mutable_coefficients()->MergeFrom(from._internal_coefficients());
1760 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
1761}
1762
1764// @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.SparseDoubleMatrixProto)
1765 if (&from == this) return;
1766 Clear();
1767 MergeFrom(from);
1769
1770
1771void SparseDoubleMatrixProto::InternalSwap(SparseDoubleMatrixProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1772 using ::std::swap;
1773 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1774 _impl_.row_ids_.InternalSwap(&other->_impl_.row_ids_);
1775 _impl_.column_ids_.InternalSwap(&other->_impl_.column_ids_);
1776 _impl_.coefficients_.InternalSwap(&other->_impl_.coefficients_);
1777}
1778
1779::google::protobuf::Metadata SparseDoubleMatrixProto::GetMetadata() const {
1780 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1781}
1782// ===================================================================
1783
1785 public:
1786 using HasBits =
1787 decltype(::std::declval<LinearExpressionProto>()._impl_._has_bits_);
1788 static constexpr ::int32_t kHasBitsOffset =
1789 8 * PROTOBUF_FIELD_OFFSET(LinearExpressionProto, _impl_._has_bits_);
1791
1792LinearExpressionProto::LinearExpressionProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1793#if defined(PROTOBUF_CUSTOM_VTABLE)
1794 : ::google::protobuf::Message(arena, LinearExpressionProto_class_data_.base()) {
1795#else // PROTOBUF_CUSTOM_VTABLE
1796 : ::google::protobuf::Message(arena) {
1797#endif // PROTOBUF_CUSTOM_VTABLE
1798 SharedCtor(arena);
1799 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.LinearExpressionProto)
1800}
1801PROTOBUF_NDEBUG_INLINE LinearExpressionProto::Impl_::Impl_(
1802 ::google::protobuf::internal::InternalVisibility visibility,
1803 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
1804 const ::operations_research::math_opt::LinearExpressionProto& from_msg)
1805 : _has_bits_{from._has_bits_},
1806 _cached_size_{0},
1807 ids_{visibility, arena, from.ids_},
1808 _ids_cached_byte_size_{0},
1809 coefficients_{visibility, arena, from.coefficients_} {}
1810
1812 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1813 const LinearExpressionProto& from)
1814#if defined(PROTOBUF_CUSTOM_VTABLE)
1815 : ::google::protobuf::Message(arena, LinearExpressionProto_class_data_.base()) {
1816#else // PROTOBUF_CUSTOM_VTABLE
1817 : ::google::protobuf::Message(arena) {
1818#endif // PROTOBUF_CUSTOM_VTABLE
1819 LinearExpressionProto* const _this = this;
1820 (void)_this;
1821 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1822 from._internal_metadata_);
1823 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1824 _impl_.offset_ = from._impl_.offset_;
1825
1826 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.LinearExpressionProto)
1827}
1828PROTOBUF_NDEBUG_INLINE LinearExpressionProto::Impl_::Impl_(
1829 ::google::protobuf::internal::InternalVisibility visibility,
1830 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1831 : _cached_size_{0},
1832 ids_{visibility, arena},
1833 _ids_cached_byte_size_{0},
1834 coefficients_{visibility, arena} {}
1835
1836inline void LinearExpressionProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1837 new (&_impl_) Impl_(internal_visibility(), arena);
1838 _impl_.offset_ = {};
1839}
1841 // @@protoc_insertion_point(destructor:operations_research.math_opt.LinearExpressionProto)
1842 SharedDtor(*this);
1843}
1844inline void LinearExpressionProto::SharedDtor(MessageLite& self) {
1845 LinearExpressionProto& this_ = static_cast<LinearExpressionProto&>(self);
1846 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1847 ABSL_DCHECK(this_.GetArena() == nullptr);
1848 this_._impl_.~Impl_();
1849}
1850
1851inline void* PROTOBUF_NONNULL LinearExpressionProto::PlacementNew_(
1852 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1853 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1854 return ::new (mem) LinearExpressionProto(arena);
1855}
1857 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
1858 PROTOBUF_FIELD_OFFSET(LinearExpressionProto, _impl_.ids_) +
1859 decltype(LinearExpressionProto::_impl_.ids_)::
1860 InternalGetArenaOffset(
1861 ::google::protobuf::Message::internal_visibility()),
1862 PROTOBUF_FIELD_OFFSET(LinearExpressionProto, _impl_.coefficients_) +
1863 decltype(LinearExpressionProto::_impl_.coefficients_)::
1864 InternalGetArenaOffset(
1865 ::google::protobuf::Message::internal_visibility()),
1866 });
1867 if (arena_bits.has_value()) {
1868 return ::google::protobuf::internal::MessageCreator::ZeroInit(
1869 sizeof(LinearExpressionProto), alignof(LinearExpressionProto), *arena_bits);
1870 } else {
1871 return ::google::protobuf::internal::MessageCreator(&LinearExpressionProto::PlacementNew_,
1872 sizeof(LinearExpressionProto),
1873 alignof(LinearExpressionProto));
1874 }
1875}
1877 return ::google::protobuf::internal::ClassDataFull{
1878 ::google::protobuf::internal::ClassData{
1880 &_table_.header,
1881 nullptr, // OnDemandRegisterArenaDtor
1882 nullptr, // IsInitialized
1883 &LinearExpressionProto::MergeImpl,
1884 ::google::protobuf::Message::GetNewImpl<LinearExpressionProto>(),
1885#if defined(PROTOBUF_CUSTOM_VTABLE)
1886 &LinearExpressionProto::SharedDtor,
1887 ::google::protobuf::Message::GetClearImpl<LinearExpressionProto>(), &LinearExpressionProto::ByteSizeLong,
1889#endif // PROTOBUF_CUSTOM_VTABLE
1890 PROTOBUF_FIELD_OFFSET(LinearExpressionProto, _impl_._cached_size_),
1891 false,
1892 },
1893 &LinearExpressionProto::kDescriptorMethods,
1895 nullptr, // tracker
1896 };
1897}
1898
1899PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1900 ::google::protobuf::internal::ClassDataFull LinearExpressionProto_class_data_ =
1902
1903PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1905 ::google::protobuf::internal::PrefetchToLocalCache(&LinearExpressionProto_class_data_);
1906 ::google::protobuf::internal::PrefetchToLocalCache(LinearExpressionProto_class_data_.tc_table);
1908}
1909PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1910const ::_pbi::TcParseTable<2, 3, 0, 0, 2>
1911LinearExpressionProto::_table_ = {
1912 {
1913 PROTOBUF_FIELD_OFFSET(LinearExpressionProto, _impl_._has_bits_),
1914 0, // no _extensions_
1915 3, 24, // max_field_number, fast_idx_mask
1916 offsetof(decltype(_table_), field_lookup_table),
1917 4294967288, // skipmap
1918 offsetof(decltype(_table_), field_entries),
1919 3, // num_field_entries
1920 0, // num_aux_entries
1921 offsetof(decltype(_table_), field_names), // no aux_entries
1923 nullptr, // post_loop_handler
1924 ::_pbi::TcParser::GenericFallback, // fallback
1925 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1926 ::_pbi::TcParser::GetTable<::operations_research::math_opt::LinearExpressionProto>(), // to_prefetch
1927 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
1928 }, {{
1929 {::_pbi::TcParser::MiniParse, {}},
1930 // repeated int64 ids = 1;
1931 {::_pbi::TcParser::FastV64P1,
1932 {10, 63, 0, PROTOBUF_FIELD_OFFSET(LinearExpressionProto, _impl_.ids_)}},
1933 // repeated double coefficients = 2;
1934 {::_pbi::TcParser::FastF64P1,
1935 {18, 63, 0, PROTOBUF_FIELD_OFFSET(LinearExpressionProto, _impl_.coefficients_)}},
1936 // double offset = 3;
1937 {::_pbi::TcParser::FastF64S1,
1938 {25, 0, 0, PROTOBUF_FIELD_OFFSET(LinearExpressionProto, _impl_.offset_)}},
1939 }}, {{
1940 65535, 65535
1941 }}, {{
1942 // repeated int64 ids = 1;
1943 {PROTOBUF_FIELD_OFFSET(LinearExpressionProto, _impl_.ids_), -1, 0,
1944 (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
1945 // repeated double coefficients = 2;
1946 {PROTOBUF_FIELD_OFFSET(LinearExpressionProto, _impl_.coefficients_), -1, 0,
1947 (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)},
1948 // double offset = 3;
1949 {PROTOBUF_FIELD_OFFSET(LinearExpressionProto, _impl_.offset_), _Internal::kHasBitsOffset + 0, 0,
1950 (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
1951 }},
1952 // no aux_entries
1953 {{
1954 }},
1955};
1956PROTOBUF_NOINLINE void LinearExpressionProto::Clear() {
1957// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.LinearExpressionProto)
1958 ::google::protobuf::internal::TSanWrite(&_impl_);
1959 ::uint32_t cached_has_bits = 0;
1960 // Prevent compiler warnings about cached_has_bits being unused
1961 (void) cached_has_bits;
1963 _impl_.ids_.Clear();
1964 _impl_.coefficients_.Clear();
1965 _impl_.offset_ = 0;
1966 _impl_._has_bits_.Clear();
1967 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1968}
1969
1970#if defined(PROTOBUF_CUSTOM_VTABLE)
1971::uint8_t* PROTOBUF_NONNULL LinearExpressionProto::_InternalSerialize(
1972 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1973 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1974 const LinearExpressionProto& this_ = static_cast<const LinearExpressionProto&>(base);
1975#else // PROTOBUF_CUSTOM_VTABLE
1976::uint8_t* PROTOBUF_NONNULL LinearExpressionProto::_InternalSerialize(
1977 ::uint8_t* PROTOBUF_NONNULL target,
1978 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1979 const LinearExpressionProto& this_ = *this;
1980#endif // PROTOBUF_CUSTOM_VTABLE
1981 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.LinearExpressionProto)
1982 ::uint32_t cached_has_bits = 0;
1983 (void)cached_has_bits;
1984
1985 // repeated int64 ids = 1;
1986 {
1987 int byte_size = this_._impl_._ids_cached_byte_size_.Get();
1988 if (byte_size > 0) {
1989 target = stream->WriteInt64Packed(
1990 1, this_._internal_ids(), byte_size, target);
1991 }
1992 }
1993
1994 // repeated double coefficients = 2;
1995 if (this_._internal_coefficients_size() > 0) {
1996 target = stream->WriteFixedPacked(2, this_._internal_coefficients(), target);
1997 }
1998
1999 // double offset = 3;
2000 if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) {
2001 if (::absl::bit_cast<::uint64_t>(this_._internal_offset()) != 0) {
2002 target = stream->EnsureSpace(target);
2003 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
2004 3, this_._internal_offset(), target);
2005 }
2006 }
2007
2008 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
2009 target =
2010 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2011 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
2012 }
2013 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.LinearExpressionProto)
2014 return target;
2015}
2016
2017#if defined(PROTOBUF_CUSTOM_VTABLE)
2019 const LinearExpressionProto& this_ = static_cast<const LinearExpressionProto&>(base);
2020#else // PROTOBUF_CUSTOM_VTABLE
2021::size_t LinearExpressionProto::ByteSizeLong() const {
2022 const LinearExpressionProto& this_ = *this;
2023#endif // PROTOBUF_CUSTOM_VTABLE
2024 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.LinearExpressionProto)
2025 ::size_t total_size = 0;
2026
2027 ::uint32_t cached_has_bits = 0;
2028 // Prevent compiler warnings about cached_has_bits being unused
2029 (void)cached_has_bits;
2030
2031 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
2032 {
2033 // repeated int64 ids = 1;
2034 {
2035 total_size +=
2036 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
2037 this_._internal_ids(), 1,
2038 this_._impl_._ids_cached_byte_size_);
2039 }
2040 // repeated double coefficients = 2;
2041 {
2042 ::size_t data_size = ::size_t{8} *
2043 ::_pbi::FromIntSize(this_._internal_coefficients_size());
2044 ::size_t tag_size = data_size == 0
2045 ? 0
2046 : 1 + ::_pbi::WireFormatLite::Int32Size(
2047 static_cast<::int32_t>(data_size));
2048 total_size += tag_size + data_size;
2049 }
2050 }
2051 {
2052 // double offset = 3;
2053 cached_has_bits = this_._impl_._has_bits_[0];
2054 if ((cached_has_bits & 0x00000001u) != 0) {
2055 if (::absl::bit_cast<::uint64_t>(this_._internal_offset()) != 0) {
2056 total_size += 9;
2057 }
2058 }
2059 }
2060 return this_.MaybeComputeUnknownFieldsSize(total_size,
2061 &this_._impl_._cached_size_);
2062}
2063
2064void LinearExpressionProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
2065 auto* const _this = static_cast<LinearExpressionProto*>(&to_msg);
2066 auto& from = static_cast<const LinearExpressionProto&>(from_msg);
2067 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.LinearExpressionProto)
2068 ABSL_DCHECK_NE(&from, _this);
2069 ::uint32_t cached_has_bits = 0;
2070 (void) cached_has_bits;
2071
2072 _this->_internal_mutable_ids()->MergeFrom(from._internal_ids());
2073 _this->_internal_mutable_coefficients()->MergeFrom(from._internal_coefficients());
2074 cached_has_bits = from._impl_._has_bits_[0];
2075 if ((cached_has_bits & 0x00000001u) != 0) {
2076 if (::absl::bit_cast<::uint64_t>(from._internal_offset()) != 0) {
2077 _this->_impl_.offset_ = from._impl_.offset_;
2078 }
2079 }
2080 _this->_impl_._has_bits_[0] |= cached_has_bits;
2081 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
2082}
2083
2085// @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.LinearExpressionProto)
2086 if (&from == this) return;
2087 Clear();
2088 MergeFrom(from);
2089}
2091
2092void LinearExpressionProto::InternalSwap(LinearExpressionProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
2093 using ::std::swap;
2094 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2095 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2096 _impl_.ids_.InternalSwap(&other->_impl_.ids_);
2097 _impl_.coefficients_.InternalSwap(&other->_impl_.coefficients_);
2098 swap(_impl_.offset_, other->_impl_.offset_);
2099}
2100
2101::google::protobuf::Metadata LinearExpressionProto::GetMetadata() const {
2102 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
2103}
2104// @@protoc_insertion_point(namespace_scope)
2105} // namespace math_opt
2106} // namespace operations_research
2107namespace google {
2108namespace protobuf {
2109} // namespace protobuf
2110} // namespace google
2111// @@protoc_insertion_point(global_scope)
2112PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
2113 _static_init2_ [[maybe_unused]] =
2115 ::std::false_type{});
2116#include "google/protobuf/port_undef.inc"
static PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::std::false_type _static_init2_
@protoc_insertion_point(global_scope)
static const ::_pb::Message *PROTOBUF_NONNULL const file_default_instances[]
void MergeFrom(const LinearExpressionProto &from)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
friend void swap(LinearExpressionProto &a, LinearExpressionProto &b)
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
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
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
void MergeFrom(const SparseBoolVectorProto &from)
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
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
void CopyFrom(const SparseDoubleVectorProto &from)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
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
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
void MergeFrom(const SparseInt32VectorProto &from)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
friend void swap(SparseVectorFilterProto &a, SparseVectorFilterProto &b)
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 SparseVectorFilterProto &from)
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
An object oriented wrapper for quadratic constraints in ModelStorage.
Definition gurobi_isv.cc:28
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_
In SWIG mode, we don't want anything besides these top-level includes.
static constexpr ::_pbi::MigrationSchema *PROTOBUF_NULLABLE schemas
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)