Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
sparse_containers.pb.h
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
6#ifndef ortools_2fmath_5fopt_2fsparse_5fcontainers_2eproto_2epb_2eh
7#define ortools_2fmath_5fopt_2fsparse_5fcontainers_2eproto_2epb_2eh
8
9#include <limits>
10#include <string>
11#include <type_traits>
12#include <utility>
13
14#include "google/protobuf/runtime_version.h"
15#if PROTOBUF_VERSION != 6033001
16#error "Protobuf C++ gencode is built with an incompatible version of"
17#error "Protobuf C++ headers/runtime. See"
18#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp"
19#endif
20#include "google/protobuf/io/coded_stream.h"
21#include "google/protobuf/arena.h"
22#include "google/protobuf/arenastring.h"
23#include "google/protobuf/generated_message_tctable_decl.h"
24#include "google/protobuf/generated_message_util.h"
25#include "google/protobuf/metadata_lite.h"
26#include "google/protobuf/generated_message_reflection.h"
27#include "google/protobuf/message.h"
28#include "google/protobuf/message_lite.h"
29#include "google/protobuf/repeated_field.h" // IWYU pragma: export
30#include "google/protobuf/extension_set.h" // IWYU pragma: export
31#include "google/protobuf/unknown_field_set.h"
32// @@protoc_insertion_point(includes)
33
34// Must be included last.
35#include "google/protobuf/port_def.inc"
36
37#define PROTOBUF_INTERNAL_EXPORT_ortools_2fmath_5fopt_2fsparse_5fcontainers_2eproto OR_PROTO_DLL
38
39namespace google {
40namespace protobuf {
41namespace internal {
42template <typename T>
43::absl::string_view GetAnyMessageName();
44} // namespace internal
45} // namespace protobuf
46} // namespace google
47
48// Internal implementation detail -- do not use these members.
50 static const ::uint32_t offsets[];
51};
52extern "C" {
53OR_PROTO_DLL extern const ::google::protobuf::internal::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fsparse_5fcontainers_2eproto;
54} // extern "C"
55namespace operations_research {
56namespace math_opt {
60OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull LinearExpressionProto_class_data_;
64OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull SparseBoolVectorProto_class_data_;
68OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull SparseDoubleMatrixProto_class_data_;
72OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull SparseDoubleVectorProto_class_data_;
76OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull SparseInt32VectorProto_class_data_;
80OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull SparseVectorFilterProto_class_data_;
81} // namespace math_opt
82} // namespace operations_research
83namespace google {
84namespace protobuf {
85} // namespace protobuf
86} // namespace google
87
88namespace operations_research {
89namespace math_opt {
90
91// ===================================================================
92
93
94// -------------------------------------------------------------------
95
96class OR_PROTO_DLL SparseVectorFilterProto final : public ::google::protobuf::Message
97/* @@protoc_insertion_point(class_definition:operations_research.math_opt.SparseVectorFilterProto) */ {
98 public:
100 ~SparseVectorFilterProto() PROTOBUF_FINAL;
102#if defined(PROTOBUF_CUSTOM_VTABLE)
103 void operator delete(SparseVectorFilterProto* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
104 SharedDtor(*msg);
105 ::google::protobuf::internal::SizedDelete(msg, sizeof(SparseVectorFilterProto));
106 }
107#endif
108
109 template <typename = void>
110 explicit PROTOBUF_CONSTEXPR SparseVectorFilterProto(::google::protobuf::internal::ConstantInitialized);
111
114 : SparseVectorFilterProto(nullptr, ::std::move(from)) {}
117 return *this;
118 }
119 inline SparseVectorFilterProto& operator=(SparseVectorFilterProto&& from) noexcept {
120 if (this == &from) return *this;
121 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
122 InternalSwap(&from);
123 } else {
124 CopyFrom(from);
125 }
126 return *this;
127 }
128
129 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
130 ABSL_ATTRIBUTE_LIFETIME_BOUND {
131 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
132 }
133 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
134 ABSL_ATTRIBUTE_LIFETIME_BOUND {
135 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
136 }
137
138 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
139 return GetDescriptor();
141 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
142 return default_instance().GetMetadata().descriptor;
144 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
145 return default_instance().GetMetadata().reflection;
147 static const SparseVectorFilterProto& default_instance() {
148 return *reinterpret_cast<const SparseVectorFilterProto*>(
150 }
151 static constexpr int kIndexInFileMessages = 3;
152 friend void swap(SparseVectorFilterProto& a, SparseVectorFilterProto& b) { a.Swap(&b); }
153 inline void Swap(SparseVectorFilterProto* PROTOBUF_NONNULL other) {
154 if (other == this) return;
155 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
156 InternalSwap(other);
157 } else {
158 ::google::protobuf::internal::GenericSwap(this, other);
159 }
160 }
161 void UnsafeArenaSwap(SparseVectorFilterProto* PROTOBUF_NONNULL other) {
162 if (other == this) return;
163 ABSL_DCHECK(GetArena() == other->GetArena());
164 InternalSwap(other);
165 }
166
167 // implements Message ----------------------------------------------
168
169 SparseVectorFilterProto* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
170 return ::google::protobuf::Message::DefaultConstruct<SparseVectorFilterProto>(arena);
172 using ::google::protobuf::Message::CopyFrom;
173 void CopyFrom(const SparseVectorFilterProto& from);
174 using ::google::protobuf::Message::MergeFrom;
175 void MergeFrom(const SparseVectorFilterProto& from) { SparseVectorFilterProto::MergeImpl(*this, from); }
176
177 private:
178 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
179 const ::google::protobuf::MessageLite& from_msg);
180
181 public:
182 bool IsInitialized() const {
183 return true;
185 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
186 #if defined(PROTOBUF_CUSTOM_VTABLE)
187 private:
188 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
189 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
190 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
191 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
192
193 public:
194 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
195 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
196 ::uint8_t* PROTOBUF_NONNULL target,
197 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
198 return _InternalSerialize(*this, target, stream);
199 }
200 #else // PROTOBUF_CUSTOM_VTABLE
201 ::size_t ByteSizeLong() const final;
202 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
203 ::uint8_t* PROTOBUF_NONNULL target,
204 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
205 #endif // PROTOBUF_CUSTOM_VTABLE
206 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
207
208 private:
209 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
210 static void SharedDtor(MessageLite& self);
211 void InternalSwap(SparseVectorFilterProto* PROTOBUF_NONNULL other);
212 private:
213 template <typename T>
214 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
215 static ::absl::string_view FullMessageName() { return "operations_research.math_opt.SparseVectorFilterProto"; }
216
217 explicit SparseVectorFilterProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
218 SparseVectorFilterProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SparseVectorFilterProto& from);
220 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SparseVectorFilterProto&& from) noexcept
221 : SparseVectorFilterProto(arena) {
222 *this = ::std::move(from);
223 }
224 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
225 static void* PROTOBUF_NONNULL PlacementNew_(
226 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
227 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
228 static constexpr auto InternalNewImpl_();
229
230 public:
231 static constexpr auto InternalGenerateClassData_();
232
233 ::google::protobuf::Metadata GetMetadata() const;
234 // nested types ----------------------------------------------------
235
236 // accessors -------------------------------------------------------
237 enum : int {
238 kFilteredIdsFieldNumber = 3,
239 kSkipZeroValuesFieldNumber = 1,
241 };
242 // repeated int64 filtered_ids = 3;
243 int filtered_ids_size() const;
244 private:
245 int _internal_filtered_ids_size() const;
246
247 public:
248 void clear_filtered_ids() ;
249 ::int64_t filtered_ids(int index) const;
250 void set_filtered_ids(int index, ::int64_t value);
251 void add_filtered_ids(::int64_t value);
252 const ::google::protobuf::RepeatedField<::int64_t>& filtered_ids() const;
253 ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL mutable_filtered_ids();
254
255 private:
256 const ::google::protobuf::RepeatedField<::int64_t>& _internal_filtered_ids() const;
257 ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL _internal_mutable_filtered_ids();
258
259 public:
260 // bool skip_zero_values = 1;
262 bool skip_zero_values() const;
263 void set_skip_zero_values(bool value);
264
265 private:
266 bool _internal_skip_zero_values() const;
267 void _internal_set_skip_zero_values(bool value);
268
269 public:
270 // bool filter_by_ids = 2;
271 void clear_filter_by_ids() ;
272 bool filter_by_ids() const;
273 void set_filter_by_ids(bool value);
274
275 private:
276 bool _internal_filter_by_ids() const;
277 void _internal_set_filter_by_ids(bool value);
278
279 public:
280 // @@protoc_insertion_point(class_scope:operations_research.math_opt.SparseVectorFilterProto)
281 private:
282 class _Internal;
283 friend class ::google::protobuf::internal::TcParser;
284 static const ::google::protobuf::internal::TcParseTable<2, 3,
285 0, 0,
286 2>
287 _table_;
288
289 friend class ::google::protobuf::MessageLite;
290 friend class ::google::protobuf::Arena;
291 template <typename T>
292 friend class ::google::protobuf::Arena::InternalHelper;
293 using InternalArenaConstructable_ = void;
294 using DestructorSkippable_ = void;
295 struct Impl_ {
296 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
297 inline explicit Impl_(
298 ::google::protobuf::internal::InternalVisibility visibility,
299 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
300 inline explicit Impl_(
301 ::google::protobuf::internal::InternalVisibility visibility,
302 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
303 const SparseVectorFilterProto& from_msg);
304 ::google::protobuf::internal::HasBits<1> _has_bits_;
305 ::google::protobuf::internal::CachedSize _cached_size_;
306 ::google::protobuf::RepeatedField<::int64_t> filtered_ids_;
307 ::google::protobuf::internal::CachedSize _filtered_ids_cached_byte_size_;
308 bool skip_zero_values_;
309 bool filter_by_ids_;
310 PROTOBUF_TSAN_DECLARE_MEMBER
311 };
312 union { Impl_ _impl_; };
313 friend struct ::TableStruct_ortools_2fmath_5fopt_2fsparse_5fcontainers_2eproto;
316OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull SparseVectorFilterProto_class_data_;
317// -------------------------------------------------------------------
318
319class OR_PROTO_DLL SparseInt32VectorProto final : public ::google::protobuf::Message
320/* @@protoc_insertion_point(class_definition:operations_research.math_opt.SparseInt32VectorProto) */ {
321 public:
323 ~SparseInt32VectorProto() PROTOBUF_FINAL;
324
325#if defined(PROTOBUF_CUSTOM_VTABLE)
326 void operator delete(SparseInt32VectorProto* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
327 SharedDtor(*msg);
328 ::google::protobuf::internal::SizedDelete(msg, sizeof(SparseInt32VectorProto));
329 }
330#endif
331
332 template <typename = void>
333 explicit PROTOBUF_CONSTEXPR SparseInt32VectorProto(::google::protobuf::internal::ConstantInitialized);
334
335 inline SparseInt32VectorProto(const SparseInt32VectorProto& from) : SparseInt32VectorProto(nullptr, from) {}
337 : SparseInt32VectorProto(nullptr, ::std::move(from)) {}
339 CopyFrom(from);
340 return *this;
342 inline SparseInt32VectorProto& operator=(SparseInt32VectorProto&& from) noexcept {
343 if (this == &from) return *this;
344 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
345 InternalSwap(&from);
346 } else {
347 CopyFrom(from);
348 }
349 return *this;
350 }
351
352 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
353 ABSL_ATTRIBUTE_LIFETIME_BOUND {
354 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
356 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
357 ABSL_ATTRIBUTE_LIFETIME_BOUND {
358 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
360
361 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
362 return GetDescriptor();
363 }
364 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
365 return default_instance().GetMetadata().descriptor;
366 }
367 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
368 return default_instance().GetMetadata().reflection;
369 }
374 static constexpr int kIndexInFileMessages = 2;
375 friend void swap(SparseInt32VectorProto& a, SparseInt32VectorProto& b) { a.Swap(&b); }
376 inline void Swap(SparseInt32VectorProto* PROTOBUF_NONNULL other) {
377 if (other == this) return;
378 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
379 InternalSwap(other);
380 } else {
381 ::google::protobuf::internal::GenericSwap(this, other);
382 }
383 }
384 void UnsafeArenaSwap(SparseInt32VectorProto* PROTOBUF_NONNULL other) {
385 if (other == this) return;
386 ABSL_DCHECK(GetArena() == other->GetArena());
387 InternalSwap(other);
388 }
389
390 // implements Message ----------------------------------------------
391
392 SparseInt32VectorProto* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
393 return ::google::protobuf::Message::DefaultConstruct<SparseInt32VectorProto>(arena);
394 }
395 using ::google::protobuf::Message::CopyFrom;
396 void CopyFrom(const SparseInt32VectorProto& from);
397 using ::google::protobuf::Message::MergeFrom;
398 void MergeFrom(const SparseInt32VectorProto& from) { SparseInt32VectorProto::MergeImpl(*this, from); }
399
400 private:
401 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
402 const ::google::protobuf::MessageLite& from_msg);
403
404 public:
405 bool IsInitialized() const {
406 return true;
407 }
408 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
409 #if defined(PROTOBUF_CUSTOM_VTABLE)
410 private:
411 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
412 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
413 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
414 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
415
416 public:
417 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
418 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
419 ::uint8_t* PROTOBUF_NONNULL target,
420 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
421 return _InternalSerialize(*this, target, stream);
422 }
423 #else // PROTOBUF_CUSTOM_VTABLE
424 ::size_t ByteSizeLong() const final;
425 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
426 ::uint8_t* PROTOBUF_NONNULL target,
427 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
428 #endif // PROTOBUF_CUSTOM_VTABLE
429 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
430
431 private:
432 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
433 static void SharedDtor(MessageLite& self);
434 void InternalSwap(SparseInt32VectorProto* PROTOBUF_NONNULL other);
435 private:
436 template <typename T>
437 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
438 static ::absl::string_view FullMessageName() { return "operations_research.math_opt.SparseInt32VectorProto"; }
439
440 explicit SparseInt32VectorProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
441 SparseInt32VectorProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SparseInt32VectorProto& from);
443 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SparseInt32VectorProto&& from) noexcept
444 : SparseInt32VectorProto(arena) {
445 *this = ::std::move(from);
446 }
447 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
448 static void* PROTOBUF_NONNULL PlacementNew_(
449 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
450 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
451 static constexpr auto InternalNewImpl_();
452
453 public:
454 static constexpr auto InternalGenerateClassData_();
455
456 ::google::protobuf::Metadata GetMetadata() const;
457 // nested types ----------------------------------------------------
458
459 // accessors -------------------------------------------------------
460 enum : int {
461 kIdsFieldNumber = 1,
462 kValuesFieldNumber = 2,
463 };
464 // repeated int64 ids = 1;
465 int ids_size() const;
466 private:
467 int _internal_ids_size() const;
468
469 public:
470 void clear_ids() ;
471 ::int64_t ids(int index) const;
472 void set_ids(int index, ::int64_t value);
473 void add_ids(::int64_t value);
474 const ::google::protobuf::RepeatedField<::int64_t>& ids() const;
475 ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL mutable_ids();
476
477 private:
478 const ::google::protobuf::RepeatedField<::int64_t>& _internal_ids() const;
479 ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL _internal_mutable_ids();
480
481 public:
482 // repeated int32 values = 2;
483 int values_size() const;
484 private:
485 int _internal_values_size() const;
486
487 public:
488 void clear_values() ;
489 ::int32_t values(int index) const;
490 void set_values(int index, ::int32_t value);
491 void add_values(::int32_t value);
492 const ::google::protobuf::RepeatedField<::int32_t>& values() const;
493 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL mutable_values();
494
495 private:
496 const ::google::protobuf::RepeatedField<::int32_t>& _internal_values() const;
497 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_values();
498
499 public:
500 // @@protoc_insertion_point(class_scope:operations_research.math_opt.SparseInt32VectorProto)
501 private:
502 class _Internal;
503 friend class ::google::protobuf::internal::TcParser;
504 static const ::google::protobuf::internal::TcParseTable<1, 2,
505 0, 0,
506 2>
507 _table_;
508
509 friend class ::google::protobuf::MessageLite;
510 friend class ::google::protobuf::Arena;
511 template <typename T>
512 friend class ::google::protobuf::Arena::InternalHelper;
513 using InternalArenaConstructable_ = void;
514 using DestructorSkippable_ = void;
515 struct Impl_ {
516 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
517 inline explicit Impl_(
518 ::google::protobuf::internal::InternalVisibility visibility,
519 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
520 inline explicit Impl_(
521 ::google::protobuf::internal::InternalVisibility visibility,
522 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
523 const SparseInt32VectorProto& from_msg);
524 ::google::protobuf::internal::HasBits<1> _has_bits_;
525 ::google::protobuf::internal::CachedSize _cached_size_;
526 ::google::protobuf::RepeatedField<::int64_t> ids_;
527 ::google::protobuf::internal::CachedSize _ids_cached_byte_size_;
528 ::google::protobuf::RepeatedField<::int32_t> values_;
529 ::google::protobuf::internal::CachedSize _values_cached_byte_size_;
530 PROTOBUF_TSAN_DECLARE_MEMBER
531 };
532 union { Impl_ _impl_; };
533 friend struct ::TableStruct_ortools_2fmath_5fopt_2fsparse_5fcontainers_2eproto;
534};
536OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull SparseInt32VectorProto_class_data_;
537// -------------------------------------------------------------------
538
539class OR_PROTO_DLL SparseDoubleVectorProto final : public ::google::protobuf::Message
540/* @@protoc_insertion_point(class_definition:operations_research.math_opt.SparseDoubleVectorProto) */ {
541 public:
543 ~SparseDoubleVectorProto() PROTOBUF_FINAL;
544
545#if defined(PROTOBUF_CUSTOM_VTABLE)
546 void operator delete(SparseDoubleVectorProto* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
547 SharedDtor(*msg);
548 ::google::protobuf::internal::SizedDelete(msg, sizeof(SparseDoubleVectorProto));
549 }
550#endif
551
552 template <typename = void>
553 explicit PROTOBUF_CONSTEXPR SparseDoubleVectorProto(::google::protobuf::internal::ConstantInitialized);
554
555 inline SparseDoubleVectorProto(const SparseDoubleVectorProto& from) : SparseDoubleVectorProto(nullptr, from) {}
556 inline SparseDoubleVectorProto(SparseDoubleVectorProto&& from) noexcept
557 : SparseDoubleVectorProto(nullptr, ::std::move(from)) {}
558 inline SparseDoubleVectorProto& operator=(const SparseDoubleVectorProto& from) {
559 CopyFrom(from);
560 return *this;
561 }
563 if (this == &from) return *this;
564 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
565 InternalSwap(&from);
566 } else {
567 CopyFrom(from);
568 }
569 return *this;
570 }
571
572 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
573 ABSL_ATTRIBUTE_LIFETIME_BOUND {
574 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
575 }
576 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
577 ABSL_ATTRIBUTE_LIFETIME_BOUND {
578 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
579 }
581 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
582 return GetDescriptor();
583 }
584 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
585 return default_instance().GetMetadata().descriptor;
586 }
587 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
588 return default_instance().GetMetadata().reflection;
589 }
590 static const SparseDoubleVectorProto& default_instance() {
591 return *reinterpret_cast<const SparseDoubleVectorProto*>(
593 }
594 static constexpr int kIndexInFileMessages = 0;
595 friend void swap(SparseDoubleVectorProto& a, SparseDoubleVectorProto& b) { a.Swap(&b); }
596 inline void Swap(SparseDoubleVectorProto* PROTOBUF_NONNULL other) {
597 if (other == this) return;
598 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
599 InternalSwap(other);
600 } else {
601 ::google::protobuf::internal::GenericSwap(this, other);
602 }
603 }
604 void UnsafeArenaSwap(SparseDoubleVectorProto* PROTOBUF_NONNULL other) {
605 if (other == this) return;
606 ABSL_DCHECK(GetArena() == other->GetArena());
607 InternalSwap(other);
609
610 // implements Message ----------------------------------------------
611
612 SparseDoubleVectorProto* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
613 return ::google::protobuf::Message::DefaultConstruct<SparseDoubleVectorProto>(arena);
614 }
615 using ::google::protobuf::Message::CopyFrom;
617 using ::google::protobuf::Message::MergeFrom;
618 void MergeFrom(const SparseDoubleVectorProto& from) { SparseDoubleVectorProto::MergeImpl(*this, from); }
619
620 private:
621 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
622 const ::google::protobuf::MessageLite& from_msg);
623
624 public:
625 bool IsInitialized() const {
626 return true;
627 }
628 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
629 #if defined(PROTOBUF_CUSTOM_VTABLE)
630 private:
631 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
632 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
633 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
634 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
635
636 public:
637 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
638 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
639 ::uint8_t* PROTOBUF_NONNULL target,
640 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
641 return _InternalSerialize(*this, target, stream);
642 }
643 #else // PROTOBUF_CUSTOM_VTABLE
644 ::size_t ByteSizeLong() const final;
645 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
646 ::uint8_t* PROTOBUF_NONNULL target,
647 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
648 #endif // PROTOBUF_CUSTOM_VTABLE
649 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
650
651 private:
652 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
653 static void SharedDtor(MessageLite& self);
654 void InternalSwap(SparseDoubleVectorProto* PROTOBUF_NONNULL other);
655 private:
656 template <typename T>
657 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
658 static ::absl::string_view FullMessageName() { return "operations_research.math_opt.SparseDoubleVectorProto"; }
659
660 explicit SparseDoubleVectorProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
661 SparseDoubleVectorProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SparseDoubleVectorProto& from);
663 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SparseDoubleVectorProto&& from) noexcept
664 : SparseDoubleVectorProto(arena) {
665 *this = ::std::move(from);
666 }
667 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
668 static void* PROTOBUF_NONNULL PlacementNew_(
669 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
670 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
671 static constexpr auto InternalNewImpl_();
672
673 public:
674 static constexpr auto InternalGenerateClassData_();
675
676 ::google::protobuf::Metadata GetMetadata() const;
677 // nested types ----------------------------------------------------
678
679 // accessors -------------------------------------------------------
680 enum : int {
681 kIdsFieldNumber = 1,
682 kValuesFieldNumber = 2,
683 };
684 // repeated int64 ids = 1;
685 int ids_size() const;
686 private:
687 int _internal_ids_size() const;
688
689 public:
690 void clear_ids() ;
691 ::int64_t ids(int index) const;
692 void set_ids(int index, ::int64_t value);
693 void add_ids(::int64_t value);
694 const ::google::protobuf::RepeatedField<::int64_t>& ids() const;
695 ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL mutable_ids();
696
697 private:
698 const ::google::protobuf::RepeatedField<::int64_t>& _internal_ids() const;
699 ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL _internal_mutable_ids();
700
701 public:
702 // repeated double values = 2;
703 int values_size() const;
704 private:
705 int _internal_values_size() const;
706
707 public:
708 void clear_values() ;
709 double values(int index) const;
710 void set_values(int index, double value);
711 void add_values(double value);
712 const ::google::protobuf::RepeatedField<double>& values() const;
713 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL mutable_values();
714
715 private:
716 const ::google::protobuf::RepeatedField<double>& _internal_values() const;
717 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL _internal_mutable_values();
718
719 public:
720 // @@protoc_insertion_point(class_scope:operations_research.math_opt.SparseDoubleVectorProto)
721 private:
722 class _Internal;
723 friend class ::google::protobuf::internal::TcParser;
724 static const ::google::protobuf::internal::TcParseTable<1, 2,
725 0, 0,
726 2>
727 _table_;
728
729 friend class ::google::protobuf::MessageLite;
730 friend class ::google::protobuf::Arena;
731 template <typename T>
732 friend class ::google::protobuf::Arena::InternalHelper;
733 using InternalArenaConstructable_ = void;
734 using DestructorSkippable_ = void;
735 struct Impl_ {
736 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
737 inline explicit Impl_(
738 ::google::protobuf::internal::InternalVisibility visibility,
739 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
740 inline explicit Impl_(
741 ::google::protobuf::internal::InternalVisibility visibility,
742 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
743 const SparseDoubleVectorProto& from_msg);
744 ::google::protobuf::internal::HasBits<1> _has_bits_;
745 ::google::protobuf::internal::CachedSize _cached_size_;
746 ::google::protobuf::RepeatedField<::int64_t> ids_;
747 ::google::protobuf::internal::CachedSize _ids_cached_byte_size_;
748 ::google::protobuf::RepeatedField<double> values_;
749 PROTOBUF_TSAN_DECLARE_MEMBER
750 };
751 union { Impl_ _impl_; };
752 friend struct ::TableStruct_ortools_2fmath_5fopt_2fsparse_5fcontainers_2eproto;
753};
754
755OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull SparseDoubleVectorProto_class_data_;
756// -------------------------------------------------------------------
757
758class OR_PROTO_DLL SparseDoubleMatrixProto final : public ::google::protobuf::Message
759/* @@protoc_insertion_point(class_definition:operations_research.math_opt.SparseDoubleMatrixProto) */ {
760 public:
762 ~SparseDoubleMatrixProto() PROTOBUF_FINAL;
764#if defined(PROTOBUF_CUSTOM_VTABLE)
765 void operator delete(SparseDoubleMatrixProto* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
766 SharedDtor(*msg);
767 ::google::protobuf::internal::SizedDelete(msg, sizeof(SparseDoubleMatrixProto));
768 }
769#endif
770
771 template <typename = void>
772 explicit PROTOBUF_CONSTEXPR SparseDoubleMatrixProto(::google::protobuf::internal::ConstantInitialized);
773
774 inline SparseDoubleMatrixProto(const SparseDoubleMatrixProto& from) : SparseDoubleMatrixProto(nullptr, from) {}
775 inline SparseDoubleMatrixProto(SparseDoubleMatrixProto&& from) noexcept
776 : SparseDoubleMatrixProto(nullptr, ::std::move(from)) {}
778 CopyFrom(from);
779 return *this;
781 inline SparseDoubleMatrixProto& operator=(SparseDoubleMatrixProto&& from) noexcept {
782 if (this == &from) return *this;
783 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
784 InternalSwap(&from);
785 } else {
786 CopyFrom(from);
787 }
788 return *this;
789 }
790
791 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
792 ABSL_ATTRIBUTE_LIFETIME_BOUND {
793 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
794 }
795 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
796 ABSL_ATTRIBUTE_LIFETIME_BOUND {
797 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
798 }
799
800 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
801 return GetDescriptor();
802 }
803 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
804 return default_instance().GetMetadata().descriptor;
806 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
807 return default_instance().GetMetadata().reflection;
809 static const SparseDoubleMatrixProto& default_instance() {
810 return *reinterpret_cast<const SparseDoubleMatrixProto*>(
812 }
813 static constexpr int kIndexInFileMessages = 4;
815 inline void Swap(SparseDoubleMatrixProto* PROTOBUF_NONNULL other) {
816 if (other == this) return;
817 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
818 InternalSwap(other);
819 } else {
820 ::google::protobuf::internal::GenericSwap(this, other);
821 }
822 }
823 void UnsafeArenaSwap(SparseDoubleMatrixProto* PROTOBUF_NONNULL other) {
824 if (other == this) return;
825 ABSL_DCHECK(GetArena() == other->GetArena());
826 InternalSwap(other);
827 }
829 // implements Message ----------------------------------------------
830
831 SparseDoubleMatrixProto* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
832 return ::google::protobuf::Message::DefaultConstruct<SparseDoubleMatrixProto>(arena);
833 }
834 using ::google::protobuf::Message::CopyFrom;
835 void CopyFrom(const SparseDoubleMatrixProto& from);
836 using ::google::protobuf::Message::MergeFrom;
837 void MergeFrom(const SparseDoubleMatrixProto& from) { SparseDoubleMatrixProto::MergeImpl(*this, from); }
838
839 private:
840 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
841 const ::google::protobuf::MessageLite& from_msg);
843 public:
844 bool IsInitialized() const {
845 return true;
846 }
847 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
848 #if defined(PROTOBUF_CUSTOM_VTABLE)
849 private:
850 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
851 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
852 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
853 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
854
855 public:
856 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
857 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
858 ::uint8_t* PROTOBUF_NONNULL target,
859 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
860 return _InternalSerialize(*this, target, stream);
861 }
862 #else // PROTOBUF_CUSTOM_VTABLE
863 ::size_t ByteSizeLong() const final;
864 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
865 ::uint8_t* PROTOBUF_NONNULL target,
866 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
867 #endif // PROTOBUF_CUSTOM_VTABLE
868 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
869
870 private:
871 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
872 static void SharedDtor(MessageLite& self);
873 void InternalSwap(SparseDoubleMatrixProto* PROTOBUF_NONNULL other);
874 private:
875 template <typename T>
876 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
877 static ::absl::string_view FullMessageName() { return "operations_research.math_opt.SparseDoubleMatrixProto"; }
878
879 explicit SparseDoubleMatrixProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
880 SparseDoubleMatrixProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SparseDoubleMatrixProto& from);
882 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SparseDoubleMatrixProto&& from) noexcept
883 : SparseDoubleMatrixProto(arena) {
884 *this = ::std::move(from);
885 }
886 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
887 static void* PROTOBUF_NONNULL PlacementNew_(
888 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
889 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
890 static constexpr auto InternalNewImpl_();
891
892 public:
893 static constexpr auto InternalGenerateClassData_();
894
895 ::google::protobuf::Metadata GetMetadata() const;
896 // nested types ----------------------------------------------------
897
898 // accessors -------------------------------------------------------
899 enum : int {
900 kRowIdsFieldNumber = 1,
901 kColumnIdsFieldNumber = 2,
902 kCoefficientsFieldNumber = 3,
903 };
904 // repeated int64 row_ids = 1;
905 int row_ids_size() const;
906 private:
907 int _internal_row_ids_size() const;
908
909 public:
910 void clear_row_ids() ;
911 ::int64_t row_ids(int index) const;
912 void set_row_ids(int index, ::int64_t value);
913 void add_row_ids(::int64_t value);
914 const ::google::protobuf::RepeatedField<::int64_t>& row_ids() const;
915 ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL mutable_row_ids();
916
917 private:
918 const ::google::protobuf::RepeatedField<::int64_t>& _internal_row_ids() const;
919 ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL _internal_mutable_row_ids();
920
921 public:
922 // repeated int64 column_ids = 2;
923 int column_ids_size() const;
924 private:
925 int _internal_column_ids_size() const;
926
927 public:
928 void clear_column_ids() ;
929 ::int64_t column_ids(int index) const;
930 void set_column_ids(int index, ::int64_t value);
931 void add_column_ids(::int64_t value);
932 const ::google::protobuf::RepeatedField<::int64_t>& column_ids() const;
933 ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL mutable_column_ids();
934
935 private:
936 const ::google::protobuf::RepeatedField<::int64_t>& _internal_column_ids() const;
937 ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL _internal_mutable_column_ids();
938
939 public:
940 // repeated double coefficients = 3;
941 int coefficients_size() const;
942 private:
943 int _internal_coefficients_size() const;
944
945 public:
946 void clear_coefficients() ;
947 double coefficients(int index) const;
948 void set_coefficients(int index, double value);
949 void add_coefficients(double value);
950 const ::google::protobuf::RepeatedField<double>& coefficients() const;
951 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL mutable_coefficients();
952
953 private:
954 const ::google::protobuf::RepeatedField<double>& _internal_coefficients() const;
955 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL _internal_mutable_coefficients();
956
957 public:
958 // @@protoc_insertion_point(class_scope:operations_research.math_opt.SparseDoubleMatrixProto)
959 private:
960 class _Internal;
961 friend class ::google::protobuf::internal::TcParser;
962 static const ::google::protobuf::internal::TcParseTable<2, 3,
963 0, 0,
964 2>
965 _table_;
967 friend class ::google::protobuf::MessageLite;
968 friend class ::google::protobuf::Arena;
969 template <typename T>
970 friend class ::google::protobuf::Arena::InternalHelper;
971 using InternalArenaConstructable_ = void;
972 using DestructorSkippable_ = void;
973 struct Impl_ {
974 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
975 inline explicit Impl_(
976 ::google::protobuf::internal::InternalVisibility visibility,
977 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
978 inline explicit Impl_(
979 ::google::protobuf::internal::InternalVisibility visibility,
980 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
981 const SparseDoubleMatrixProto& from_msg);
982 ::google::protobuf::internal::HasBits<1> _has_bits_;
983 ::google::protobuf::internal::CachedSize _cached_size_;
984 ::google::protobuf::RepeatedField<::int64_t> row_ids_;
985 ::google::protobuf::internal::CachedSize _row_ids_cached_byte_size_;
986 ::google::protobuf::RepeatedField<::int64_t> column_ids_;
987 ::google::protobuf::internal::CachedSize _column_ids_cached_byte_size_;
988 ::google::protobuf::RepeatedField<double> coefficients_;
989 PROTOBUF_TSAN_DECLARE_MEMBER
990 };
991 union { Impl_ _impl_; };
992 friend struct ::TableStruct_ortools_2fmath_5fopt_2fsparse_5fcontainers_2eproto;
993};
994
995OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull SparseDoubleMatrixProto_class_data_;
996// -------------------------------------------------------------------
998class OR_PROTO_DLL SparseBoolVectorProto final : public ::google::protobuf::Message
999/* @@protoc_insertion_point(class_definition:operations_research.math_opt.SparseBoolVectorProto) */ {
1000 public:
1001 inline SparseBoolVectorProto() : SparseBoolVectorProto(nullptr) {}
1002 ~SparseBoolVectorProto() PROTOBUF_FINAL;
1003
1004#if defined(PROTOBUF_CUSTOM_VTABLE)
1005 void operator delete(SparseBoolVectorProto* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
1006 SharedDtor(*msg);
1007 ::google::protobuf::internal::SizedDelete(msg, sizeof(SparseBoolVectorProto));
1008 }
1009#endif
1010
1011 template <typename = void>
1012 explicit PROTOBUF_CONSTEXPR SparseBoolVectorProto(::google::protobuf::internal::ConstantInitialized);
1013
1014 inline SparseBoolVectorProto(const SparseBoolVectorProto& from) : SparseBoolVectorProto(nullptr, from) {}
1015 inline SparseBoolVectorProto(SparseBoolVectorProto&& from) noexcept
1016 : SparseBoolVectorProto(nullptr, ::std::move(from)) {}
1017 inline SparseBoolVectorProto& operator=(const SparseBoolVectorProto& from) {
1019 return *this;
1022 if (this == &from) return *this;
1023 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
1024 InternalSwap(&from);
1025 } else {
1026 CopyFrom(from);
1028 return *this;
1029 }
1030
1031 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
1032 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1033 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
1034 }
1035 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
1036 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1037 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
1038 }
1039
1040 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
1042 }
1043 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
1044 return default_instance().GetMetadata().descriptor;
1045 }
1046 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
1047 return default_instance().GetMetadata().reflection;
1048 }
1050 return *reinterpret_cast<const SparseBoolVectorProto*>(
1053 static constexpr int kIndexInFileMessages = 1;
1054 friend void swap(SparseBoolVectorProto& a, SparseBoolVectorProto& b) { a.Swap(&b); }
1055 inline void Swap(SparseBoolVectorProto* PROTOBUF_NONNULL other) {
1056 if (other == this) return;
1057 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
1058 InternalSwap(other);
1059 } else {
1060 ::google::protobuf::internal::GenericSwap(this, other);
1062 }
1063 void UnsafeArenaSwap(SparseBoolVectorProto* PROTOBUF_NONNULL other) {
1064 if (other == this) return;
1065 ABSL_DCHECK(GetArena() == other->GetArena());
1066 InternalSwap(other);
1067 }
1068
1069 // implements Message ----------------------------------------------
1070
1071 SparseBoolVectorProto* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
1072 return ::google::protobuf::Message::DefaultConstruct<SparseBoolVectorProto>(arena);
1073 }
1074 using ::google::protobuf::Message::CopyFrom;
1075 void CopyFrom(const SparseBoolVectorProto& from);
1076 using ::google::protobuf::Message::MergeFrom;
1077 void MergeFrom(const SparseBoolVectorProto& from) { SparseBoolVectorProto::MergeImpl(*this, from); }
1078
1079 private:
1080 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
1081 const ::google::protobuf::MessageLite& from_msg);
1082
1083 public:
1084 bool IsInitialized() const {
1085 return true;
1086 }
1087 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
1088 #if defined(PROTOBUF_CUSTOM_VTABLE)
1089 private:
1090 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
1091 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
1092 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
1093 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
1094
1095 public:
1096 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
1097 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
1098 ::uint8_t* PROTOBUF_NONNULL target,
1099 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1100 return _InternalSerialize(*this, target, stream);
1101 }
1102 #else // PROTOBUF_CUSTOM_VTABLE
1103 ::size_t ByteSizeLong() const final;
1104 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
1105 ::uint8_t* PROTOBUF_NONNULL target,
1106 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
1107 #endif // PROTOBUF_CUSTOM_VTABLE
1108 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
1109
1110 private:
1111 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1112 static void SharedDtor(MessageLite& self);
1113 void InternalSwap(SparseBoolVectorProto* PROTOBUF_NONNULL other);
1114 private:
1115 template <typename T>
1116 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
1117 static ::absl::string_view FullMessageName() { return "operations_research.math_opt.SparseBoolVectorProto"; }
1118
1119 explicit SparseBoolVectorProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1120 SparseBoolVectorProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SparseBoolVectorProto& from);
1122 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SparseBoolVectorProto&& from) noexcept
1123 : SparseBoolVectorProto(arena) {
1124 *this = ::std::move(from);
1125 }
1126 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
1127 static void* PROTOBUF_NONNULL PlacementNew_(
1128 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1129 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1130 static constexpr auto InternalNewImpl_();
1131
1132 public:
1133 static constexpr auto InternalGenerateClassData_();
1134
1135 ::google::protobuf::Metadata GetMetadata() const;
1136 // nested types ----------------------------------------------------
1137
1138 // accessors -------------------------------------------------------
1139 enum : int {
1140 kIdsFieldNumber = 1,
1141 kValuesFieldNumber = 2,
1142 };
1143 // repeated int64 ids = 1;
1144 int ids_size() const;
1145 private:
1146 int _internal_ids_size() const;
1148 public:
1149 void clear_ids() ;
1150 ::int64_t ids(int index) const;
1151 void set_ids(int index, ::int64_t value);
1152 void add_ids(::int64_t value);
1153 const ::google::protobuf::RepeatedField<::int64_t>& ids() const;
1154 ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL mutable_ids();
1155
1156 private:
1157 const ::google::protobuf::RepeatedField<::int64_t>& _internal_ids() const;
1158 ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL _internal_mutable_ids();
1159
1160 public:
1161 // repeated bool values = 2;
1162 int values_size() const;
1163 private:
1164 int _internal_values_size() const;
1165
1166 public:
1167 void clear_values() ;
1168 bool values(int index) const;
1169 void set_values(int index, bool value);
1170 void add_values(bool value);
1171 const ::google::protobuf::RepeatedField<bool>& values() const;
1172 ::google::protobuf::RepeatedField<bool>* PROTOBUF_NONNULL mutable_values();
1173
1174 private:
1175 const ::google::protobuf::RepeatedField<bool>& _internal_values() const;
1176 ::google::protobuf::RepeatedField<bool>* PROTOBUF_NONNULL _internal_mutable_values();
1177
1178 public:
1179 // @@protoc_insertion_point(class_scope:operations_research.math_opt.SparseBoolVectorProto)
1180 private:
1181 class _Internal;
1182 friend class ::google::protobuf::internal::TcParser;
1183 static const ::google::protobuf::internal::TcParseTable<1, 2,
1184 0, 0,
1185 2>
1186 _table_;
1187
1188 friend class ::google::protobuf::MessageLite;
1189 friend class ::google::protobuf::Arena;
1190 template <typename T>
1191 friend class ::google::protobuf::Arena::InternalHelper;
1192 using InternalArenaConstructable_ = void;
1193 using DestructorSkippable_ = void;
1194 struct Impl_ {
1195 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
1196 inline explicit Impl_(
1197 ::google::protobuf::internal::InternalVisibility visibility,
1198 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1199 inline explicit Impl_(
1200 ::google::protobuf::internal::InternalVisibility visibility,
1201 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
1202 const SparseBoolVectorProto& from_msg);
1203 ::google::protobuf::internal::HasBits<1> _has_bits_;
1204 ::google::protobuf::internal::CachedSize _cached_size_;
1205 ::google::protobuf::RepeatedField<::int64_t> ids_;
1206 ::google::protobuf::internal::CachedSize _ids_cached_byte_size_;
1207 ::google::protobuf::RepeatedField<bool> values_;
1208 PROTOBUF_TSAN_DECLARE_MEMBER
1209 };
1210 union { Impl_ _impl_; };
1211 friend struct ::TableStruct_ortools_2fmath_5fopt_2fsparse_5fcontainers_2eproto;
1212};
1213
1214OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull SparseBoolVectorProto_class_data_;
1215// -------------------------------------------------------------------
1217class OR_PROTO_DLL LinearExpressionProto final : public ::google::protobuf::Message
1218/* @@protoc_insertion_point(class_definition:operations_research.math_opt.LinearExpressionProto) */ {
1219 public:
1220 inline LinearExpressionProto() : LinearExpressionProto(nullptr) {}
1221 ~LinearExpressionProto() PROTOBUF_FINAL;
1222
1223#if defined(PROTOBUF_CUSTOM_VTABLE)
1224 void operator delete(LinearExpressionProto* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
1225 SharedDtor(*msg);
1226 ::google::protobuf::internal::SizedDelete(msg, sizeof(LinearExpressionProto));
1228#endif
1229
1230 template <typename = void>
1231 explicit PROTOBUF_CONSTEXPR LinearExpressionProto(::google::protobuf::internal::ConstantInitialized);
1232
1233 inline LinearExpressionProto(const LinearExpressionProto& from) : LinearExpressionProto(nullptr, from) {}
1234 inline LinearExpressionProto(LinearExpressionProto&& from) noexcept
1235 : LinearExpressionProto(nullptr, ::std::move(from)) {}
1236 inline LinearExpressionProto& operator=(const LinearExpressionProto& from) {
1237 CopyFrom(from);
1238 return *this;
1239 }
1241 if (this == &from) return *this;
1242 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
1243 InternalSwap(&from);
1244 } else {
1245 CopyFrom(from);
1246 }
1247 return *this;
1248 }
1249
1250 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
1251 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1252 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
1253 }
1254 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
1255 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1256 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
1258
1259 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
1260 return GetDescriptor();
1262 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
1263 return default_instance().GetMetadata().descriptor;
1264 }
1265 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
1266 return default_instance().GetMetadata().reflection;
1267 }
1268 static const LinearExpressionProto& default_instance() {
1269 return *reinterpret_cast<const LinearExpressionProto*>(
1271 }
1272 static constexpr int kIndexInFileMessages = 5;
1273 friend void swap(LinearExpressionProto& a, LinearExpressionProto& b) { a.Swap(&b); }
1274 inline void Swap(LinearExpressionProto* PROTOBUF_NONNULL other) {
1275 if (other == this) return;
1276 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
1277 InternalSwap(other);
1278 } else {
1279 ::google::protobuf::internal::GenericSwap(this, other);
1282 void UnsafeArenaSwap(LinearExpressionProto* PROTOBUF_NONNULL other) {
1283 if (other == this) return;
1284 ABSL_DCHECK(GetArena() == other->GetArena());
1285 InternalSwap(other);
1286 }
1287
1288 // implements Message ----------------------------------------------
1290 LinearExpressionProto* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
1291 return ::google::protobuf::Message::DefaultConstruct<LinearExpressionProto>(arena);
1292 }
1293 using ::google::protobuf::Message::CopyFrom;
1294 void CopyFrom(const LinearExpressionProto& from);
1295 using ::google::protobuf::Message::MergeFrom;
1296 void MergeFrom(const LinearExpressionProto& from) { LinearExpressionProto::MergeImpl(*this, from); }
1298 private:
1299 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
1300 const ::google::protobuf::MessageLite& from_msg);
1301
1302 public:
1303 bool IsInitialized() const {
1304 return true;
1305 }
1306 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
1307 #if defined(PROTOBUF_CUSTOM_VTABLE)
1308 private:
1309 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
1310 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
1311 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
1312 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
1313
1314 public:
1315 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
1316 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
1317 ::uint8_t* PROTOBUF_NONNULL target,
1318 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1319 return _InternalSerialize(*this, target, stream);
1320 }
1321 #else // PROTOBUF_CUSTOM_VTABLE
1322 ::size_t ByteSizeLong() const final;
1323 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
1324 ::uint8_t* PROTOBUF_NONNULL target,
1325 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
1326 #endif // PROTOBUF_CUSTOM_VTABLE
1327 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
1328
1329 private:
1330 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1331 static void SharedDtor(MessageLite& self);
1332 void InternalSwap(LinearExpressionProto* PROTOBUF_NONNULL other);
1333 private:
1334 template <typename T>
1335 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
1336 static ::absl::string_view FullMessageName() { return "operations_research.math_opt.LinearExpressionProto"; }
1337
1338 explicit LinearExpressionProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1339 LinearExpressionProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const LinearExpressionProto& from);
1341 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, LinearExpressionProto&& from) noexcept
1342 : LinearExpressionProto(arena) {
1343 *this = ::std::move(from);
1344 }
1345 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
1346 static void* PROTOBUF_NONNULL PlacementNew_(
1347 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1348 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1349 static constexpr auto InternalNewImpl_();
1350
1351 public:
1352 static constexpr auto InternalGenerateClassData_();
1353
1354 ::google::protobuf::Metadata GetMetadata() const;
1355 // nested types ----------------------------------------------------
1356
1357 // accessors -------------------------------------------------------
1358 enum : int {
1359 kIdsFieldNumber = 1,
1360 kCoefficientsFieldNumber = 2,
1361 kOffsetFieldNumber = 3,
1362 };
1363 // repeated int64 ids = 1;
1364 int ids_size() const;
1365 private:
1366 int _internal_ids_size() const;
1368 public:
1369 void clear_ids() ;
1370 ::int64_t ids(int index) const;
1371 void set_ids(int index, ::int64_t value);
1372 void add_ids(::int64_t value);
1373 const ::google::protobuf::RepeatedField<::int64_t>& ids() const;
1374 ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL mutable_ids();
1375
1376 private:
1377 const ::google::protobuf::RepeatedField<::int64_t>& _internal_ids() const;
1378 ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL _internal_mutable_ids();
1379
1380 public:
1381 // repeated double coefficients = 2;
1382 int coefficients_size() const;
1383 private:
1384 int _internal_coefficients_size() const;
1385
1386 public:
1387 void clear_coefficients() ;
1388 double coefficients(int index) const;
1389 void set_coefficients(int index, double value);
1390 void add_coefficients(double value);
1391 const ::google::protobuf::RepeatedField<double>& coefficients() const;
1392 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL mutable_coefficients();
1393
1394 private:
1395 const ::google::protobuf::RepeatedField<double>& _internal_coefficients() const;
1396 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL _internal_mutable_coefficients();
1397
1398 public:
1399 // double offset = 3;
1400 void clear_offset() ;
1401 double offset() const;
1402 void set_offset(double value);
1403
1404 private:
1405 double _internal_offset() const;
1406 void _internal_set_offset(double value);
1407
1408 public:
1409 // @@protoc_insertion_point(class_scope:operations_research.math_opt.LinearExpressionProto)
1410 private:
1411 class _Internal;
1412 friend class ::google::protobuf::internal::TcParser;
1413 static const ::google::protobuf::internal::TcParseTable<2, 3,
1414 0, 0,
1415 2>
1416 _table_;
1417
1418 friend class ::google::protobuf::MessageLite;
1419 friend class ::google::protobuf::Arena;
1420 template <typename T>
1421 friend class ::google::protobuf::Arena::InternalHelper;
1422 using InternalArenaConstructable_ = void;
1423 using DestructorSkippable_ = void;
1424 struct Impl_ {
1425 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
1426 inline explicit Impl_(
1427 ::google::protobuf::internal::InternalVisibility visibility,
1428 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1429 inline explicit Impl_(
1430 ::google::protobuf::internal::InternalVisibility visibility,
1431 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
1432 const LinearExpressionProto& from_msg);
1433 ::google::protobuf::internal::HasBits<1> _has_bits_;
1434 ::google::protobuf::internal::CachedSize _cached_size_;
1435 ::google::protobuf::RepeatedField<::int64_t> ids_;
1436 ::google::protobuf::internal::CachedSize _ids_cached_byte_size_;
1437 ::google::protobuf::RepeatedField<double> coefficients_;
1438 double offset_;
1439 PROTOBUF_TSAN_DECLARE_MEMBER
1440 };
1441 union { Impl_ _impl_; };
1442 friend struct ::TableStruct_ortools_2fmath_5fopt_2fsparse_5fcontainers_2eproto;
1443};
1444
1445OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull LinearExpressionProto_class_data_;
1446
1447// ===================================================================
1450
1451
1452// ===================================================================
1453
1454
1455#ifdef __GNUC__
1456#pragma GCC diagnostic push
1457#pragma GCC diagnostic ignored "-Wstrict-aliasing"
1458#endif // __GNUC__
1459// -------------------------------------------------------------------
1460
1461// SparseDoubleVectorProto
1462
1463// repeated int64 ids = 1;
1464inline int SparseDoubleVectorProto::_internal_ids_size() const {
1465 return _internal_ids().size();
1466}
1467inline int SparseDoubleVectorProto::ids_size() const {
1468 return _internal_ids_size();
1469}
1471 ::google::protobuf::internal::TSanWrite(&_impl_);
1472 _impl_.ids_.Clear();
1473 ClearHasBitForRepeated(_impl_._has_bits_[0],
1474 0x00000001U);
1475}
1476inline ::int64_t SparseDoubleVectorProto::ids(int index) const {
1477 // @@protoc_insertion_point(field_get:operations_research.math_opt.SparseDoubleVectorProto.ids)
1478 return _internal_ids().Get(index);
1479}
1480inline void SparseDoubleVectorProto::set_ids(int index, ::int64_t value) {
1481 _internal_mutable_ids()->Set(index, value);
1482 // @@protoc_insertion_point(field_set:operations_research.math_opt.SparseDoubleVectorProto.ids)
1483}
1484inline void SparseDoubleVectorProto::add_ids(::int64_t value) {
1485 ::google::protobuf::internal::TSanWrite(&_impl_);
1486 _internal_mutable_ids()->Add(value);
1487 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U);
1488 // @@protoc_insertion_point(field_add:operations_research.math_opt.SparseDoubleVectorProto.ids)
1489}
1490inline const ::google::protobuf::RepeatedField<::int64_t>& SparseDoubleVectorProto::ids() const
1491 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1492 // @@protoc_insertion_point(field_list:operations_research.math_opt.SparseDoubleVectorProto.ids)
1493 return _internal_ids();
1495inline ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL SparseDoubleVectorProto::mutable_ids()
1496 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1497 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U);
1498 // @@protoc_insertion_point(field_mutable_list:operations_research.math_opt.SparseDoubleVectorProto.ids)
1499 ::google::protobuf::internal::TSanWrite(&_impl_);
1500 return _internal_mutable_ids();
1501}
1502inline const ::google::protobuf::RepeatedField<::int64_t>&
1503SparseDoubleVectorProto::_internal_ids() const {
1504 ::google::protobuf::internal::TSanRead(&_impl_);
1505 return _impl_.ids_;
1506}
1507inline ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL
1508SparseDoubleVectorProto::_internal_mutable_ids() {
1509 ::google::protobuf::internal::TSanRead(&_impl_);
1510 return &_impl_.ids_;
1511}
1512
1513// repeated double values = 2;
1514inline int SparseDoubleVectorProto::_internal_values_size() const {
1515 return _internal_values().size();
1516}
1517inline int SparseDoubleVectorProto::values_size() const {
1518 return _internal_values_size();
1519}
1521 ::google::protobuf::internal::TSanWrite(&_impl_);
1522 _impl_.values_.Clear();
1523 ClearHasBitForRepeated(_impl_._has_bits_[0],
1524 0x00000002U);
1525}
1526inline double SparseDoubleVectorProto::values(int index) const {
1527 // @@protoc_insertion_point(field_get:operations_research.math_opt.SparseDoubleVectorProto.values)
1528 return _internal_values().Get(index);
1529}
1530inline void SparseDoubleVectorProto::set_values(int index, double value) {
1531 _internal_mutable_values()->Set(index, value);
1532 // @@protoc_insertion_point(field_set:operations_research.math_opt.SparseDoubleVectorProto.values)
1533}
1534inline void SparseDoubleVectorProto::add_values(double value) {
1535 ::google::protobuf::internal::TSanWrite(&_impl_);
1536 _internal_mutable_values()->Add(value);
1537 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U);
1538 // @@protoc_insertion_point(field_add:operations_research.math_opt.SparseDoubleVectorProto.values)
1539}
1540inline const ::google::protobuf::RepeatedField<double>& SparseDoubleVectorProto::values() const
1541 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1542 // @@protoc_insertion_point(field_list:operations_research.math_opt.SparseDoubleVectorProto.values)
1543 return _internal_values();
1545inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL SparseDoubleVectorProto::mutable_values()
1546 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1547 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U);
1548 // @@protoc_insertion_point(field_mutable_list:operations_research.math_opt.SparseDoubleVectorProto.values)
1549 ::google::protobuf::internal::TSanWrite(&_impl_);
1550 return _internal_mutable_values();
1551}
1552inline const ::google::protobuf::RepeatedField<double>&
1553SparseDoubleVectorProto::_internal_values() const {
1554 ::google::protobuf::internal::TSanRead(&_impl_);
1555 return _impl_.values_;
1556}
1557inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL
1558SparseDoubleVectorProto::_internal_mutable_values() {
1559 ::google::protobuf::internal::TSanRead(&_impl_);
1560 return &_impl_.values_;
1561}
1562
1563// -------------------------------------------------------------------
1564
1565// SparseBoolVectorProto
1566
1567// repeated int64 ids = 1;
1568inline int SparseBoolVectorProto::_internal_ids_size() const {
1569 return _internal_ids().size();
1570}
1571inline int SparseBoolVectorProto::ids_size() const {
1572 return _internal_ids_size();
1573}
1575 ::google::protobuf::internal::TSanWrite(&_impl_);
1576 _impl_.ids_.Clear();
1577 ClearHasBitForRepeated(_impl_._has_bits_[0],
1578 0x00000001U);
1579}
1580inline ::int64_t SparseBoolVectorProto::ids(int index) const {
1581 // @@protoc_insertion_point(field_get:operations_research.math_opt.SparseBoolVectorProto.ids)
1582 return _internal_ids().Get(index);
1583}
1584inline void SparseBoolVectorProto::set_ids(int index, ::int64_t value) {
1585 _internal_mutable_ids()->Set(index, value);
1586 // @@protoc_insertion_point(field_set:operations_research.math_opt.SparseBoolVectorProto.ids)
1587}
1588inline void SparseBoolVectorProto::add_ids(::int64_t value) {
1589 ::google::protobuf::internal::TSanWrite(&_impl_);
1590 _internal_mutable_ids()->Add(value);
1591 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U);
1592 // @@protoc_insertion_point(field_add:operations_research.math_opt.SparseBoolVectorProto.ids)
1593}
1594inline const ::google::protobuf::RepeatedField<::int64_t>& SparseBoolVectorProto::ids() const
1595 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1596 // @@protoc_insertion_point(field_list:operations_research.math_opt.SparseBoolVectorProto.ids)
1597 return _internal_ids();
1598}
1599inline ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL SparseBoolVectorProto::mutable_ids()
1600 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1601 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U);
1602 // @@protoc_insertion_point(field_mutable_list:operations_research.math_opt.SparseBoolVectorProto.ids)
1603 ::google::protobuf::internal::TSanWrite(&_impl_);
1604 return _internal_mutable_ids();
1606inline const ::google::protobuf::RepeatedField<::int64_t>&
1607SparseBoolVectorProto::_internal_ids() const {
1608 ::google::protobuf::internal::TSanRead(&_impl_);
1609 return _impl_.ids_;
1611inline ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL
1612SparseBoolVectorProto::_internal_mutable_ids() {
1613 ::google::protobuf::internal::TSanRead(&_impl_);
1614 return &_impl_.ids_;
1615}
1616
1617// repeated bool values = 2;
1618inline int SparseBoolVectorProto::_internal_values_size() const {
1619 return _internal_values().size();
1620}
1621inline int SparseBoolVectorProto::values_size() const {
1622 return _internal_values_size();
1623}
1625 ::google::protobuf::internal::TSanWrite(&_impl_);
1626 _impl_.values_.Clear();
1627 ClearHasBitForRepeated(_impl_._has_bits_[0],
1628 0x00000002U);
1629}
1630inline bool SparseBoolVectorProto::values(int index) const {
1631 // @@protoc_insertion_point(field_get:operations_research.math_opt.SparseBoolVectorProto.values)
1632 return _internal_values().Get(index);
1633}
1634inline void SparseBoolVectorProto::set_values(int index, bool value) {
1635 _internal_mutable_values()->Set(index, value);
1636 // @@protoc_insertion_point(field_set:operations_research.math_opt.SparseBoolVectorProto.values)
1637}
1638inline void SparseBoolVectorProto::add_values(bool value) {
1639 ::google::protobuf::internal::TSanWrite(&_impl_);
1640 _internal_mutable_values()->Add(value);
1641 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U);
1642 // @@protoc_insertion_point(field_add:operations_research.math_opt.SparseBoolVectorProto.values)
1643}
1644inline const ::google::protobuf::RepeatedField<bool>& SparseBoolVectorProto::values() const
1645 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1646 // @@protoc_insertion_point(field_list:operations_research.math_opt.SparseBoolVectorProto.values)
1647 return _internal_values();
1648}
1649inline ::google::protobuf::RepeatedField<bool>* PROTOBUF_NONNULL SparseBoolVectorProto::mutable_values()
1650 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1651 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U);
1652 // @@protoc_insertion_point(field_mutable_list:operations_research.math_opt.SparseBoolVectorProto.values)
1653 ::google::protobuf::internal::TSanWrite(&_impl_);
1654 return _internal_mutable_values();
1656inline const ::google::protobuf::RepeatedField<bool>&
1657SparseBoolVectorProto::_internal_values() const {
1658 ::google::protobuf::internal::TSanRead(&_impl_);
1659 return _impl_.values_;
1661inline ::google::protobuf::RepeatedField<bool>* PROTOBUF_NONNULL
1662SparseBoolVectorProto::_internal_mutable_values() {
1663 ::google::protobuf::internal::TSanRead(&_impl_);
1664 return &_impl_.values_;
1665}
1666
1667// -------------------------------------------------------------------
1668
1669// SparseInt32VectorProto
1670
1671// repeated int64 ids = 1;
1672inline int SparseInt32VectorProto::_internal_ids_size() const {
1673 return _internal_ids().size();
1674}
1675inline int SparseInt32VectorProto::ids_size() const {
1676 return _internal_ids_size();
1677}
1679 ::google::protobuf::internal::TSanWrite(&_impl_);
1680 _impl_.ids_.Clear();
1681 ClearHasBitForRepeated(_impl_._has_bits_[0],
1682 0x00000001U);
1683}
1684inline ::int64_t SparseInt32VectorProto::ids(int index) const {
1685 // @@protoc_insertion_point(field_get:operations_research.math_opt.SparseInt32VectorProto.ids)
1686 return _internal_ids().Get(index);
1688inline void SparseInt32VectorProto::set_ids(int index, ::int64_t value) {
1689 _internal_mutable_ids()->Set(index, value);
1690 // @@protoc_insertion_point(field_set:operations_research.math_opt.SparseInt32VectorProto.ids)
1691}
1692inline void SparseInt32VectorProto::add_ids(::int64_t value) {
1693 ::google::protobuf::internal::TSanWrite(&_impl_);
1694 _internal_mutable_ids()->Add(value);
1695 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U);
1696 // @@protoc_insertion_point(field_add:operations_research.math_opt.SparseInt32VectorProto.ids)
1697}
1698inline const ::google::protobuf::RepeatedField<::int64_t>& SparseInt32VectorProto::ids() const
1699 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1700 // @@protoc_insertion_point(field_list:operations_research.math_opt.SparseInt32VectorProto.ids)
1701 return _internal_ids();
1702}
1703inline ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL SparseInt32VectorProto::mutable_ids()
1704 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1705 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U);
1706 // @@protoc_insertion_point(field_mutable_list:operations_research.math_opt.SparseInt32VectorProto.ids)
1707 ::google::protobuf::internal::TSanWrite(&_impl_);
1708 return _internal_mutable_ids();
1709}
1710inline const ::google::protobuf::RepeatedField<::int64_t>&
1711SparseInt32VectorProto::_internal_ids() const {
1712 ::google::protobuf::internal::TSanRead(&_impl_);
1713 return _impl_.ids_;
1714}
1715inline ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL
1716SparseInt32VectorProto::_internal_mutable_ids() {
1717 ::google::protobuf::internal::TSanRead(&_impl_);
1718 return &_impl_.ids_;
1719}
1720
1721// repeated int32 values = 2;
1722inline int SparseInt32VectorProto::_internal_values_size() const {
1723 return _internal_values().size();
1724}
1725inline int SparseInt32VectorProto::values_size() const {
1726 return _internal_values_size();
1727}
1729 ::google::protobuf::internal::TSanWrite(&_impl_);
1730 _impl_.values_.Clear();
1731 ClearHasBitForRepeated(_impl_._has_bits_[0],
1732 0x00000002U);
1733}
1734inline ::int32_t SparseInt32VectorProto::values(int index) const {
1735 // @@protoc_insertion_point(field_get:operations_research.math_opt.SparseInt32VectorProto.values)
1736 return _internal_values().Get(index);
1738inline void SparseInt32VectorProto::set_values(int index, ::int32_t value) {
1739 _internal_mutable_values()->Set(index, value);
1740 // @@protoc_insertion_point(field_set:operations_research.math_opt.SparseInt32VectorProto.values)
1741}
1742inline void SparseInt32VectorProto::add_values(::int32_t value) {
1743 ::google::protobuf::internal::TSanWrite(&_impl_);
1744 _internal_mutable_values()->Add(value);
1745 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U);
1746 // @@protoc_insertion_point(field_add:operations_research.math_opt.SparseInt32VectorProto.values)
1747}
1748inline const ::google::protobuf::RepeatedField<::int32_t>& SparseInt32VectorProto::values() const
1749 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1750 // @@protoc_insertion_point(field_list:operations_research.math_opt.SparseInt32VectorProto.values)
1751 return _internal_values();
1752}
1753inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL SparseInt32VectorProto::mutable_values()
1754 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1755 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U);
1756 // @@protoc_insertion_point(field_mutable_list:operations_research.math_opt.SparseInt32VectorProto.values)
1757 ::google::protobuf::internal::TSanWrite(&_impl_);
1758 return _internal_mutable_values();
1759}
1760inline const ::google::protobuf::RepeatedField<::int32_t>&
1761SparseInt32VectorProto::_internal_values() const {
1762 ::google::protobuf::internal::TSanRead(&_impl_);
1763 return _impl_.values_;
1764}
1765inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL
1766SparseInt32VectorProto::_internal_mutable_values() {
1767 ::google::protobuf::internal::TSanRead(&_impl_);
1768 return &_impl_.values_;
1769}
1770
1771// -------------------------------------------------------------------
1772
1773// SparseVectorFilterProto
1774
1775// bool skip_zero_values = 1;
1777 ::google::protobuf::internal::TSanWrite(&_impl_);
1778 _impl_.skip_zero_values_ = false;
1779 ClearHasBit(_impl_._has_bits_[0],
1780 0x00000002U);
1781}
1783 // @@protoc_insertion_point(field_get:operations_research.math_opt.SparseVectorFilterProto.skip_zero_values)
1784 return _internal_skip_zero_values();
1785}
1786inline void SparseVectorFilterProto::set_skip_zero_values(bool value) {
1787 _internal_set_skip_zero_values(value);
1788 SetHasBit(_impl_._has_bits_[0], 0x00000002U);
1789 // @@protoc_insertion_point(field_set:operations_research.math_opt.SparseVectorFilterProto.skip_zero_values)
1790}
1791inline bool SparseVectorFilterProto::_internal_skip_zero_values() const {
1792 ::google::protobuf::internal::TSanRead(&_impl_);
1793 return _impl_.skip_zero_values_;
1794}
1795inline void SparseVectorFilterProto::_internal_set_skip_zero_values(bool value) {
1796 ::google::protobuf::internal::TSanWrite(&_impl_);
1797 _impl_.skip_zero_values_ = value;
1798}
1800// bool filter_by_ids = 2;
1802 ::google::protobuf::internal::TSanWrite(&_impl_);
1803 _impl_.filter_by_ids_ = false;
1804 ClearHasBit(_impl_._has_bits_[0],
1805 0x00000004U);
1806}
1807inline bool SparseVectorFilterProto::filter_by_ids() const {
1808 // @@protoc_insertion_point(field_get:operations_research.math_opt.SparseVectorFilterProto.filter_by_ids)
1809 return _internal_filter_by_ids();
1810}
1811inline void SparseVectorFilterProto::set_filter_by_ids(bool value) {
1812 _internal_set_filter_by_ids(value);
1813 SetHasBit(_impl_._has_bits_[0], 0x00000004U);
1814 // @@protoc_insertion_point(field_set:operations_research.math_opt.SparseVectorFilterProto.filter_by_ids)
1815}
1816inline bool SparseVectorFilterProto::_internal_filter_by_ids() const {
1817 ::google::protobuf::internal::TSanRead(&_impl_);
1818 return _impl_.filter_by_ids_;
1819}
1820inline void SparseVectorFilterProto::_internal_set_filter_by_ids(bool value) {
1821 ::google::protobuf::internal::TSanWrite(&_impl_);
1822 _impl_.filter_by_ids_ = value;
1823}
1825// repeated int64 filtered_ids = 3;
1826inline int SparseVectorFilterProto::_internal_filtered_ids_size() const {
1827 return _internal_filtered_ids().size();
1828}
1830 return _internal_filtered_ids_size();
1831}
1833 ::google::protobuf::internal::TSanWrite(&_impl_);
1834 _impl_.filtered_ids_.Clear();
1835 ClearHasBitForRepeated(_impl_._has_bits_[0],
1836 0x00000001U);
1837}
1838inline ::int64_t SparseVectorFilterProto::filtered_ids(int index) const {
1839 // @@protoc_insertion_point(field_get:operations_research.math_opt.SparseVectorFilterProto.filtered_ids)
1840 return _internal_filtered_ids().Get(index);
1841}
1842inline void SparseVectorFilterProto::set_filtered_ids(int index, ::int64_t value) {
1843 _internal_mutable_filtered_ids()->Set(index, value);
1844 // @@protoc_insertion_point(field_set:operations_research.math_opt.SparseVectorFilterProto.filtered_ids)
1846inline void SparseVectorFilterProto::add_filtered_ids(::int64_t value) {
1847 ::google::protobuf::internal::TSanWrite(&_impl_);
1848 _internal_mutable_filtered_ids()->Add(value);
1849 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U);
1850 // @@protoc_insertion_point(field_add:operations_research.math_opt.SparseVectorFilterProto.filtered_ids)
1852inline const ::google::protobuf::RepeatedField<::int64_t>& SparseVectorFilterProto::filtered_ids() const
1853 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1854 // @@protoc_insertion_point(field_list:operations_research.math_opt.SparseVectorFilterProto.filtered_ids)
1855 return _internal_filtered_ids();
1856}
1857inline ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL SparseVectorFilterProto::mutable_filtered_ids()
1858 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1859 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U);
1860 // @@protoc_insertion_point(field_mutable_list:operations_research.math_opt.SparseVectorFilterProto.filtered_ids)
1861 ::google::protobuf::internal::TSanWrite(&_impl_);
1862 return _internal_mutable_filtered_ids();
1863}
1864inline const ::google::protobuf::RepeatedField<::int64_t>&
1865SparseVectorFilterProto::_internal_filtered_ids() const {
1866 ::google::protobuf::internal::TSanRead(&_impl_);
1867 return _impl_.filtered_ids_;
1868}
1869inline ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL
1870SparseVectorFilterProto::_internal_mutable_filtered_ids() {
1871 ::google::protobuf::internal::TSanRead(&_impl_);
1872 return &_impl_.filtered_ids_;
1873}
1874
1875// -------------------------------------------------------------------
1876
1877// SparseDoubleMatrixProto
1878
1879// repeated int64 row_ids = 1;
1880inline int SparseDoubleMatrixProto::_internal_row_ids_size() const {
1881 return _internal_row_ids().size();
1882}
1883inline int SparseDoubleMatrixProto::row_ids_size() const {
1884 return _internal_row_ids_size();
1885}
1887 ::google::protobuf::internal::TSanWrite(&_impl_);
1888 _impl_.row_ids_.Clear();
1889 ClearHasBitForRepeated(_impl_._has_bits_[0],
1890 0x00000001U);
1891}
1892inline ::int64_t SparseDoubleMatrixProto::row_ids(int index) const {
1893 // @@protoc_insertion_point(field_get:operations_research.math_opt.SparseDoubleMatrixProto.row_ids)
1894 return _internal_row_ids().Get(index);
1895}
1896inline void SparseDoubleMatrixProto::set_row_ids(int index, ::int64_t value) {
1897 _internal_mutable_row_ids()->Set(index, value);
1898 // @@protoc_insertion_point(field_set:operations_research.math_opt.SparseDoubleMatrixProto.row_ids)
1899}
1900inline void SparseDoubleMatrixProto::add_row_ids(::int64_t value) {
1901 ::google::protobuf::internal::TSanWrite(&_impl_);
1902 _internal_mutable_row_ids()->Add(value);
1903 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U);
1904 // @@protoc_insertion_point(field_add:operations_research.math_opt.SparseDoubleMatrixProto.row_ids)
1905}
1906inline const ::google::protobuf::RepeatedField<::int64_t>& SparseDoubleMatrixProto::row_ids() const
1907 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1908 // @@protoc_insertion_point(field_list:operations_research.math_opt.SparseDoubleMatrixProto.row_ids)
1909 return _internal_row_ids();
1911inline ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL SparseDoubleMatrixProto::mutable_row_ids()
1912 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1913 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U);
1914 // @@protoc_insertion_point(field_mutable_list:operations_research.math_opt.SparseDoubleMatrixProto.row_ids)
1915 ::google::protobuf::internal::TSanWrite(&_impl_);
1916 return _internal_mutable_row_ids();
1917}
1918inline const ::google::protobuf::RepeatedField<::int64_t>&
1919SparseDoubleMatrixProto::_internal_row_ids() const {
1920 ::google::protobuf::internal::TSanRead(&_impl_);
1921 return _impl_.row_ids_;
1922}
1923inline ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL
1924SparseDoubleMatrixProto::_internal_mutable_row_ids() {
1925 ::google::protobuf::internal::TSanRead(&_impl_);
1926 return &_impl_.row_ids_;
1927}
1928
1929// repeated int64 column_ids = 2;
1930inline int SparseDoubleMatrixProto::_internal_column_ids_size() const {
1931 return _internal_column_ids().size();
1932}
1934 return _internal_column_ids_size();
1935}
1937 ::google::protobuf::internal::TSanWrite(&_impl_);
1938 _impl_.column_ids_.Clear();
1939 ClearHasBitForRepeated(_impl_._has_bits_[0],
1940 0x00000002U);
1941}
1942inline ::int64_t SparseDoubleMatrixProto::column_ids(int index) const {
1943 // @@protoc_insertion_point(field_get:operations_research.math_opt.SparseDoubleMatrixProto.column_ids)
1944 return _internal_column_ids().Get(index);
1945}
1946inline void SparseDoubleMatrixProto::set_column_ids(int index, ::int64_t value) {
1947 _internal_mutable_column_ids()->Set(index, value);
1948 // @@protoc_insertion_point(field_set:operations_research.math_opt.SparseDoubleMatrixProto.column_ids)
1949}
1950inline void SparseDoubleMatrixProto::add_column_ids(::int64_t value) {
1951 ::google::protobuf::internal::TSanWrite(&_impl_);
1952 _internal_mutable_column_ids()->Add(value);
1953 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U);
1954 // @@protoc_insertion_point(field_add:operations_research.math_opt.SparseDoubleMatrixProto.column_ids)
1955}
1956inline const ::google::protobuf::RepeatedField<::int64_t>& SparseDoubleMatrixProto::column_ids() const
1957 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1958 // @@protoc_insertion_point(field_list:operations_research.math_opt.SparseDoubleMatrixProto.column_ids)
1959 return _internal_column_ids();
1961inline ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL SparseDoubleMatrixProto::mutable_column_ids()
1962 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1963 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U);
1964 // @@protoc_insertion_point(field_mutable_list:operations_research.math_opt.SparseDoubleMatrixProto.column_ids)
1965 ::google::protobuf::internal::TSanWrite(&_impl_);
1966 return _internal_mutable_column_ids();
1967}
1968inline const ::google::protobuf::RepeatedField<::int64_t>&
1969SparseDoubleMatrixProto::_internal_column_ids() const {
1970 ::google::protobuf::internal::TSanRead(&_impl_);
1971 return _impl_.column_ids_;
1972}
1973inline ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL
1974SparseDoubleMatrixProto::_internal_mutable_column_ids() {
1975 ::google::protobuf::internal::TSanRead(&_impl_);
1976 return &_impl_.column_ids_;
1977}
1978
1979// repeated double coefficients = 3;
1980inline int SparseDoubleMatrixProto::_internal_coefficients_size() const {
1981 return _internal_coefficients().size();
1982}
1984 return _internal_coefficients_size();
1985}
1987 ::google::protobuf::internal::TSanWrite(&_impl_);
1988 _impl_.coefficients_.Clear();
1989 ClearHasBitForRepeated(_impl_._has_bits_[0],
1990 0x00000004U);
1991}
1992inline double SparseDoubleMatrixProto::coefficients(int index) const {
1993 // @@protoc_insertion_point(field_get:operations_research.math_opt.SparseDoubleMatrixProto.coefficients)
1994 return _internal_coefficients().Get(index);
1995}
1996inline void SparseDoubleMatrixProto::set_coefficients(int index, double value) {
1997 _internal_mutable_coefficients()->Set(index, value);
1998 // @@protoc_insertion_point(field_set:operations_research.math_opt.SparseDoubleMatrixProto.coefficients)
1999}
2001 ::google::protobuf::internal::TSanWrite(&_impl_);
2002 _internal_mutable_coefficients()->Add(value);
2003 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000004U);
2004 // @@protoc_insertion_point(field_add:operations_research.math_opt.SparseDoubleMatrixProto.coefficients)
2005}
2006inline const ::google::protobuf::RepeatedField<double>& SparseDoubleMatrixProto::coefficients() const
2007 ABSL_ATTRIBUTE_LIFETIME_BOUND {
2008 // @@protoc_insertion_point(field_list:operations_research.math_opt.SparseDoubleMatrixProto.coefficients)
2009 return _internal_coefficients();
2011inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL SparseDoubleMatrixProto::mutable_coefficients()
2012 ABSL_ATTRIBUTE_LIFETIME_BOUND {
2013 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000004U);
2014 // @@protoc_insertion_point(field_mutable_list:operations_research.math_opt.SparseDoubleMatrixProto.coefficients)
2015 ::google::protobuf::internal::TSanWrite(&_impl_);
2016 return _internal_mutable_coefficients();
2017}
2018inline const ::google::protobuf::RepeatedField<double>&
2019SparseDoubleMatrixProto::_internal_coefficients() const {
2020 ::google::protobuf::internal::TSanRead(&_impl_);
2021 return _impl_.coefficients_;
2022}
2023inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL
2024SparseDoubleMatrixProto::_internal_mutable_coefficients() {
2025 ::google::protobuf::internal::TSanRead(&_impl_);
2026 return &_impl_.coefficients_;
2027}
2028
2029// -------------------------------------------------------------------
2030
2031// LinearExpressionProto
2032
2033// repeated int64 ids = 1;
2034inline int LinearExpressionProto::_internal_ids_size() const {
2035 return _internal_ids().size();
2036}
2037inline int LinearExpressionProto::ids_size() const {
2038 return _internal_ids_size();
2039}
2041 ::google::protobuf::internal::TSanWrite(&_impl_);
2042 _impl_.ids_.Clear();
2043 ClearHasBitForRepeated(_impl_._has_bits_[0],
2044 0x00000001U);
2045}
2046inline ::int64_t LinearExpressionProto::ids(int index) const {
2047 // @@protoc_insertion_point(field_get:operations_research.math_opt.LinearExpressionProto.ids)
2048 return _internal_ids().Get(index);
2049}
2050inline void LinearExpressionProto::set_ids(int index, ::int64_t value) {
2051 _internal_mutable_ids()->Set(index, value);
2052 // @@protoc_insertion_point(field_set:operations_research.math_opt.LinearExpressionProto.ids)
2053}
2054inline void LinearExpressionProto::add_ids(::int64_t value) {
2055 ::google::protobuf::internal::TSanWrite(&_impl_);
2056 _internal_mutable_ids()->Add(value);
2057 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U);
2058 // @@protoc_insertion_point(field_add:operations_research.math_opt.LinearExpressionProto.ids)
2059}
2060inline const ::google::protobuf::RepeatedField<::int64_t>& LinearExpressionProto::ids() const
2061 ABSL_ATTRIBUTE_LIFETIME_BOUND {
2062 // @@protoc_insertion_point(field_list:operations_research.math_opt.LinearExpressionProto.ids)
2063 return _internal_ids();
2064}
2065inline ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL LinearExpressionProto::mutable_ids()
2066 ABSL_ATTRIBUTE_LIFETIME_BOUND {
2067 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U);
2068 // @@protoc_insertion_point(field_mutable_list:operations_research.math_opt.LinearExpressionProto.ids)
2069 ::google::protobuf::internal::TSanWrite(&_impl_);
2070 return _internal_mutable_ids();
2071}
2072inline const ::google::protobuf::RepeatedField<::int64_t>&
2073LinearExpressionProto::_internal_ids() const {
2074 ::google::protobuf::internal::TSanRead(&_impl_);
2075 return _impl_.ids_;
2076}
2077inline ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL
2078LinearExpressionProto::_internal_mutable_ids() {
2079 ::google::protobuf::internal::TSanRead(&_impl_);
2080 return &_impl_.ids_;
2081}
2082
2083// repeated double coefficients = 2;
2084inline int LinearExpressionProto::_internal_coefficients_size() const {
2085 return _internal_coefficients().size();
2086}
2088 return _internal_coefficients_size();
2089}
2091 ::google::protobuf::internal::TSanWrite(&_impl_);
2092 _impl_.coefficients_.Clear();
2093 ClearHasBitForRepeated(_impl_._has_bits_[0],
2094 0x00000002U);
2095}
2096inline double LinearExpressionProto::coefficients(int index) const {
2097 // @@protoc_insertion_point(field_get:operations_research.math_opt.LinearExpressionProto.coefficients)
2098 return _internal_coefficients().Get(index);
2099}
2100inline void LinearExpressionProto::set_coefficients(int index, double value) {
2101 _internal_mutable_coefficients()->Set(index, value);
2102 // @@protoc_insertion_point(field_set:operations_research.math_opt.LinearExpressionProto.coefficients)
2103}
2104inline void LinearExpressionProto::add_coefficients(double value) {
2105 ::google::protobuf::internal::TSanWrite(&_impl_);
2106 _internal_mutable_coefficients()->Add(value);
2107 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U);
2108 // @@protoc_insertion_point(field_add:operations_research.math_opt.LinearExpressionProto.coefficients)
2109}
2110inline const ::google::protobuf::RepeatedField<double>& LinearExpressionProto::coefficients() const
2111 ABSL_ATTRIBUTE_LIFETIME_BOUND {
2112 // @@protoc_insertion_point(field_list:operations_research.math_opt.LinearExpressionProto.coefficients)
2113 return _internal_coefficients();
2114}
2115inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL LinearExpressionProto::mutable_coefficients()
2116 ABSL_ATTRIBUTE_LIFETIME_BOUND {
2117 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U);
2118 // @@protoc_insertion_point(field_mutable_list:operations_research.math_opt.LinearExpressionProto.coefficients)
2119 ::google::protobuf::internal::TSanWrite(&_impl_);
2120 return _internal_mutable_coefficients();
2121}
2122inline const ::google::protobuf::RepeatedField<double>&
2123LinearExpressionProto::_internal_coefficients() const {
2124 ::google::protobuf::internal::TSanRead(&_impl_);
2125 return _impl_.coefficients_;
2126}
2127inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL
2128LinearExpressionProto::_internal_mutable_coefficients() {
2129 ::google::protobuf::internal::TSanRead(&_impl_);
2130 return &_impl_.coefficients_;
2131}
2132
2133// double offset = 3;
2135 ::google::protobuf::internal::TSanWrite(&_impl_);
2136 _impl_.offset_ = 0;
2137 ClearHasBit(_impl_._has_bits_[0],
2138 0x00000004U);
2139}
2140inline double LinearExpressionProto::offset() const {
2141 // @@protoc_insertion_point(field_get:operations_research.math_opt.LinearExpressionProto.offset)
2142 return _internal_offset();
2143}
2144inline void LinearExpressionProto::set_offset(double value) {
2145 _internal_set_offset(value);
2146 SetHasBit(_impl_._has_bits_[0], 0x00000004U);
2147 // @@protoc_insertion_point(field_set:operations_research.math_opt.LinearExpressionProto.offset)
2148}
2149inline double LinearExpressionProto::_internal_offset() const {
2150 ::google::protobuf::internal::TSanRead(&_impl_);
2151 return _impl_.offset_;
2152}
2153inline void LinearExpressionProto::_internal_set_offset(double value) {
2154 ::google::protobuf::internal::TSanWrite(&_impl_);
2155 _impl_.offset_ = value;
2156}
2157
2158#ifdef __GNUC__
2159#pragma GCC diagnostic pop
2160#endif // __GNUC__
2161
2162// @@protoc_insertion_point(namespace_scope)
2163} // namespace math_opt
2164} // namespace operations_research
2165
2166
2167// @@protoc_insertion_point(global_scope)
2168
2169#include "google/protobuf/port_undef.inc"
2170
2171#endif // ortools_2fmath_5fopt_2fsparse_5fcontainers_2eproto_2epb_2eh
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
const ::google::protobuf::RepeatedField< double > & coefficients() const
void Swap(LinearExpressionProto *PROTOBUF_NONNULL other)
::google::protobuf::RepeatedField<::int64_t > *PROTOBUF_NONNULL mutable_ids()
friend void swap(LinearExpressionProto &a, LinearExpressionProto &b)
const ::google::protobuf::RepeatedField<::int64_t > & ids() const
LinearExpressionProto *PROTOBUF_NONNULL New(::google::protobuf::Arena *PROTOBUF_NULLABLE arena=nullptr) const
::google::protobuf::RepeatedField< double > *PROTOBUF_NONNULL mutable_coefficients()
LinearExpressionProto & operator=(const LinearExpressionProto &from)
static const LinearExpressionProto & default_instance()
const ::google::protobuf::RepeatedField< bool > & values() const
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL GetDescriptor()
SparseBoolVectorProto *PROTOBUF_NONNULL New(::google::protobuf::Arena *PROTOBUF_NULLABLE arena=nullptr) const
static const SparseBoolVectorProto & default_instance()
::google::protobuf::RepeatedField< bool > *PROTOBUF_NONNULL mutable_values()
::google::protobuf::RepeatedField<::int64_t > *PROTOBUF_NONNULL mutable_ids()
static const ::google::protobuf::Reflection *PROTOBUF_NONNULL GetReflection()
const ::google::protobuf::RepeatedField<::int64_t > & ids() const
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void MergeFrom(const SparseBoolVectorProto &from)
SparseBoolVectorProto & operator=(const SparseBoolVectorProto &from)
void Swap(SparseBoolVectorProto *PROTOBUF_NONNULL other)
SparseDoubleMatrixProto & operator=(const SparseDoubleMatrixProto &from)
void MergeFrom(const SparseDoubleMatrixProto &from)
const ::google::protobuf::RepeatedField<::int64_t > & row_ids() const
friend void swap(SparseDoubleMatrixProto &a, SparseDoubleMatrixProto &b)
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL descriptor()
const ::google::protobuf::RepeatedField<::int64_t > & column_ids() const
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
const ::google::protobuf::RepeatedField< double > & coefficients() const
SparseDoubleMatrixProto *PROTOBUF_NONNULL New(::google::protobuf::Arena *PROTOBUF_NULLABLE arena=nullptr) const
::google::protobuf::RepeatedField<::int64_t > *PROTOBUF_NONNULL mutable_column_ids()
::google::protobuf::RepeatedField<::int64_t > *PROTOBUF_NONNULL mutable_row_ids()
::google::protobuf::RepeatedField< double > *PROTOBUF_NONNULL mutable_coefficients()
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL GetDescriptor()
void Swap(SparseDoubleMatrixProto *PROTOBUF_NONNULL other)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
void CopyFrom(const SparseDoubleVectorProto &from)
friend void swap(SparseDoubleVectorProto &a, SparseDoubleVectorProto &b)
PROTOBUF_CONSTEXPR SparseDoubleVectorProto(::google::protobuf::internal::ConstantInitialized)
const ::google::protobuf::RepeatedField<::int64_t > & ids() const
inline ::google::protobuf::UnknownFieldSet *PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND
::google::protobuf::RepeatedField<::int64_t > *PROTOBUF_NONNULL mutable_ids()
static const SparseDoubleVectorProto & default_instance()
void MergeFrom(const SparseDoubleVectorProto &from)
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL descriptor()
::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
SparseDoubleVectorProto & operator=(const SparseDoubleVectorProto &from)
const ::google::protobuf::RepeatedField< double > & values() const
void Swap(SparseDoubleVectorProto *PROTOBUF_NONNULL other)
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL GetDescriptor()
::google::protobuf::RepeatedField< double > *PROTOBUF_NONNULL mutable_values()
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void MergeFrom(const SparseInt32VectorProto &from)
static const ::google::protobuf::Reflection *PROTOBUF_NONNULL GetReflection()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
const ::google::protobuf::RepeatedField<::int32_t > & values() const
SparseInt32VectorProto & operator=(const SparseInt32VectorProto &from)
const ::google::protobuf::RepeatedField<::int64_t > & ids() const
static const SparseInt32VectorProto & default_instance()
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
::google::protobuf::RepeatedField<::int64_t > *PROTOBUF_NONNULL mutable_ids()
void Swap(SparseInt32VectorProto *PROTOBUF_NONNULL other)
PROTOBUF_CONSTEXPR SparseInt32VectorProto(::google::protobuf::internal::ConstantInitialized)
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL GetDescriptor()
::google::protobuf::RepeatedField<::int32_t > *PROTOBUF_NONNULL mutable_values()
PROTOBUF_CONSTEXPR SparseVectorFilterProto(::google::protobuf::internal::ConstantInitialized)
::google::protobuf::RepeatedField<::int64_t > *PROTOBUF_NONNULL mutable_filtered_ids()
SparseVectorFilterProto & operator=(const SparseVectorFilterProto &from)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
SparseVectorFilterProto(const SparseVectorFilterProto &from)
const ::google::protobuf::RepeatedField<::int64_t > & filtered_ids() const
void Swap(SparseVectorFilterProto *PROTOBUF_NONNULL other)
::absl::string_view GetAnyMessageName()
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