Google OR-Tools v9.14
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.31.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 != 6031001
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 protected:
218 explicit SparseVectorFilterProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
219 SparseVectorFilterProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SparseVectorFilterProto& from);
221 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SparseVectorFilterProto&& from) noexcept
223 *this = ::std::move(from);
224 }
225 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
226 static void* PROTOBUF_NONNULL PlacementNew_(
227 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
228 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
229 static constexpr auto InternalNewImpl_();
230
231 public:
232 static constexpr auto InternalGenerateClassData_();
233
234 ::google::protobuf::Metadata GetMetadata() const;
235 // nested types ----------------------------------------------------
236
237 // accessors -------------------------------------------------------
238 enum : int {
239 kFilteredIdsFieldNumber = 3,
240 kSkipZeroValuesFieldNumber = 1,
242 };
243 // repeated int64 filtered_ids = 3;
244 int filtered_ids_size() const;
245 private:
246 int _internal_filtered_ids_size() const;
247
248 public:
249 void clear_filtered_ids() ;
250 ::int64_t filtered_ids(int index) const;
251 void set_filtered_ids(int index, ::int64_t value);
252 void add_filtered_ids(::int64_t value);
253 const ::google::protobuf::RepeatedField<::int64_t>& filtered_ids() const;
254 ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL mutable_filtered_ids();
255
256 private:
257 const ::google::protobuf::RepeatedField<::int64_t>& _internal_filtered_ids() const;
258 ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL _internal_mutable_filtered_ids();
259
260 public:
261 // bool skip_zero_values = 1;
263 bool skip_zero_values() const;
264 void set_skip_zero_values(bool value);
265
266 private:
267 bool _internal_skip_zero_values() const;
268 void _internal_set_skip_zero_values(bool value);
269
270 public:
271 // bool filter_by_ids = 2;
272 void clear_filter_by_ids() ;
273 bool filter_by_ids() const;
274 void set_filter_by_ids(bool value);
275
276 private:
277 bool _internal_filter_by_ids() const;
278 void _internal_set_filter_by_ids(bool value);
279
280 public:
281 // @@protoc_insertion_point(class_scope:operations_research.math_opt.SparseVectorFilterProto)
282 private:
283 class _Internal;
284 friend class ::google::protobuf::internal::TcParser;
285 static const ::google::protobuf::internal::TcParseTable<2, 3,
286 0, 0,
287 2>
288 _table_;
289
290 friend class ::google::protobuf::MessageLite;
291 friend class ::google::protobuf::Arena;
292 template <typename T>
293 friend class ::google::protobuf::Arena::InternalHelper;
294 using InternalArenaConstructable_ = void;
295 using DestructorSkippable_ = void;
296 struct Impl_ {
297 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
298 inline explicit Impl_(
299 ::google::protobuf::internal::InternalVisibility visibility,
300 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
301 inline explicit Impl_(
302 ::google::protobuf::internal::InternalVisibility visibility,
303 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
304 const SparseVectorFilterProto& from_msg);
305 ::google::protobuf::internal::HasBits<1> _has_bits_;
306 ::google::protobuf::internal::CachedSize _cached_size_;
307 ::google::protobuf::RepeatedField<::int64_t> filtered_ids_;
308 ::google::protobuf::internal::CachedSize _filtered_ids_cached_byte_size_;
309 bool skip_zero_values_;
310 bool filter_by_ids_;
311 PROTOBUF_TSAN_DECLARE_MEMBER
312 };
313 union { Impl_ _impl_; };
314 friend struct ::TableStruct_ortools_2fmath_5fopt_2fsparse_5fcontainers_2eproto;
317OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull SparseVectorFilterProto_class_data_;
318// -------------------------------------------------------------------
319
320class OR_PROTO_DLL SparseInt32VectorProto final : public ::google::protobuf::Message
321/* @@protoc_insertion_point(class_definition:operations_research.math_opt.SparseInt32VectorProto) */ {
322 public:
324 ~SparseInt32VectorProto() PROTOBUF_FINAL;
325
326#if defined(PROTOBUF_CUSTOM_VTABLE)
327 void operator delete(SparseInt32VectorProto* PROTOBUF_NONNULL msg, std::destroying_delete_t) {
328 SharedDtor(*msg);
329 ::google::protobuf::internal::SizedDelete(msg, sizeof(SparseInt32VectorProto));
330 }
331#endif
332
333 template <typename = void>
334 explicit PROTOBUF_CONSTEXPR SparseInt32VectorProto(::google::protobuf::internal::ConstantInitialized);
335
336 inline SparseInt32VectorProto(const SparseInt32VectorProto& from) : SparseInt32VectorProto(nullptr, from) {}
338 : SparseInt32VectorProto(nullptr, ::std::move(from)) {}
340 CopyFrom(from);
341 return *this;
343 inline SparseInt32VectorProto& operator=(SparseInt32VectorProto&& from) noexcept {
344 if (this == &from) return *this;
345 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
346 InternalSwap(&from);
347 } else {
348 CopyFrom(from);
349 }
350 return *this;
351 }
352
353 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
354 ABSL_ATTRIBUTE_LIFETIME_BOUND {
355 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
357 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
358 ABSL_ATTRIBUTE_LIFETIME_BOUND {
359 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
361
362 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
363 return GetDescriptor();
364 }
365 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
366 return default_instance().GetMetadata().descriptor;
367 }
368 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
369 return default_instance().GetMetadata().reflection;
370 }
375 static constexpr int kIndexInFileMessages = 2;
376 friend void swap(SparseInt32VectorProto& a, SparseInt32VectorProto& b) { a.Swap(&b); }
377 inline void Swap(SparseInt32VectorProto* PROTOBUF_NONNULL other) {
378 if (other == this) return;
379 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
380 InternalSwap(other);
381 } else {
382 ::google::protobuf::internal::GenericSwap(this, other);
383 }
384 }
385 void UnsafeArenaSwap(SparseInt32VectorProto* PROTOBUF_NONNULL other) {
386 if (other == this) return;
387 ABSL_DCHECK(GetArena() == other->GetArena());
388 InternalSwap(other);
389 }
390
391 // implements Message ----------------------------------------------
392
393 SparseInt32VectorProto* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
394 return ::google::protobuf::Message::DefaultConstruct<SparseInt32VectorProto>(arena);
395 }
396 using ::google::protobuf::Message::CopyFrom;
397 void CopyFrom(const SparseInt32VectorProto& from);
398 using ::google::protobuf::Message::MergeFrom;
399 void MergeFrom(const SparseInt32VectorProto& from) { SparseInt32VectorProto::MergeImpl(*this, from); }
400
401 private:
402 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
403 const ::google::protobuf::MessageLite& from_msg);
404
405 public:
406 bool IsInitialized() const {
407 return true;
408 }
409 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
410 #if defined(PROTOBUF_CUSTOM_VTABLE)
411 private:
412 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
413 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
414 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
415 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
416
417 public:
418 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
419 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
420 ::uint8_t* PROTOBUF_NONNULL target,
421 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
422 return _InternalSerialize(*this, target, stream);
423 }
424 #else // PROTOBUF_CUSTOM_VTABLE
425 ::size_t ByteSizeLong() const final;
426 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
427 ::uint8_t* PROTOBUF_NONNULL target,
428 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
429 #endif // PROTOBUF_CUSTOM_VTABLE
430 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
431
432 private:
433 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
434 static void SharedDtor(MessageLite& self);
435 void InternalSwap(SparseInt32VectorProto* PROTOBUF_NONNULL other);
436 private:
437 template <typename T>
438 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
439 static ::absl::string_view FullMessageName() { return "operations_research.math_opt.SparseInt32VectorProto"; }
440
441 protected:
442 explicit SparseInt32VectorProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
443 SparseInt32VectorProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SparseInt32VectorProto& from);
445 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SparseInt32VectorProto&& from) noexcept
446 : SparseInt32VectorProto(arena) {
447 *this = ::std::move(from);
448 }
449 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
450 static void* PROTOBUF_NONNULL PlacementNew_(
451 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
452 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
453 static constexpr auto InternalNewImpl_();
454
455 public:
456 static constexpr auto InternalGenerateClassData_();
457
458 ::google::protobuf::Metadata GetMetadata() const;
459 // nested types ----------------------------------------------------
460
461 // accessors -------------------------------------------------------
462 enum : int {
463 kIdsFieldNumber = 1,
464 kValuesFieldNumber = 2,
465 };
466 // repeated int64 ids = 1;
467 int ids_size() const;
468 private:
469 int _internal_ids_size() const;
470
471 public:
472 void clear_ids() ;
473 ::int64_t ids(int index) const;
474 void set_ids(int index, ::int64_t value);
475 void add_ids(::int64_t value);
476 const ::google::protobuf::RepeatedField<::int64_t>& ids() const;
477 ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL mutable_ids();
478
479 private:
480 const ::google::protobuf::RepeatedField<::int64_t>& _internal_ids() const;
481 ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL _internal_mutable_ids();
482
483 public:
484 // repeated int32 values = 2;
485 int values_size() const;
486 private:
487 int _internal_values_size() const;
488
489 public:
490 void clear_values() ;
491 ::int32_t values(int index) const;
492 void set_values(int index, ::int32_t value);
493 void add_values(::int32_t value);
494 const ::google::protobuf::RepeatedField<::int32_t>& values() const;
495 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL mutable_values();
496
497 private:
498 const ::google::protobuf::RepeatedField<::int32_t>& _internal_values() const;
499 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_values();
500
501 public:
502 // @@protoc_insertion_point(class_scope:operations_research.math_opt.SparseInt32VectorProto)
503 private:
504 class _Internal;
505 friend class ::google::protobuf::internal::TcParser;
506 static const ::google::protobuf::internal::TcParseTable<1, 2,
507 0, 0,
508 2>
509 _table_;
510
511 friend class ::google::protobuf::MessageLite;
512 friend class ::google::protobuf::Arena;
513 template <typename T>
514 friend class ::google::protobuf::Arena::InternalHelper;
515 using InternalArenaConstructable_ = void;
516 using DestructorSkippable_ = void;
517 struct Impl_ {
518 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
519 inline explicit Impl_(
520 ::google::protobuf::internal::InternalVisibility visibility,
521 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
522 inline explicit Impl_(
523 ::google::protobuf::internal::InternalVisibility visibility,
524 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
525 const SparseInt32VectorProto& from_msg);
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 ::google::protobuf::internal::CachedSize _cached_size_;
531 PROTOBUF_TSAN_DECLARE_MEMBER
532 };
533 union { Impl_ _impl_; };
534 friend struct ::TableStruct_ortools_2fmath_5fopt_2fsparse_5fcontainers_2eproto;
535};
537OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull SparseInt32VectorProto_class_data_;
538// -------------------------------------------------------------------
539
540class OR_PROTO_DLL SparseDoubleVectorProto final : public ::google::protobuf::Message
541/* @@protoc_insertion_point(class_definition:operations_research.math_opt.SparseDoubleVectorProto) */ {
542 public:
544 ~SparseDoubleVectorProto() PROTOBUF_FINAL;
545
546#if defined(PROTOBUF_CUSTOM_VTABLE)
547 void operator delete(SparseDoubleVectorProto* PROTOBUF_NONNULL msg, std::destroying_delete_t) {
548 SharedDtor(*msg);
549 ::google::protobuf::internal::SizedDelete(msg, sizeof(SparseDoubleVectorProto));
550 }
551#endif
552
553 template <typename = void>
554 explicit PROTOBUF_CONSTEXPR SparseDoubleVectorProto(::google::protobuf::internal::ConstantInitialized);
555
556 inline SparseDoubleVectorProto(const SparseDoubleVectorProto& from) : SparseDoubleVectorProto(nullptr, from) {}
557 inline SparseDoubleVectorProto(SparseDoubleVectorProto&& from) noexcept
558 : SparseDoubleVectorProto(nullptr, ::std::move(from)) {}
559 inline SparseDoubleVectorProto& operator=(const SparseDoubleVectorProto& from) {
560 CopyFrom(from);
561 return *this;
562 }
564 if (this == &from) return *this;
565 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
566 InternalSwap(&from);
567 } else {
568 CopyFrom(from);
569 }
570 return *this;
571 }
572
573 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
574 ABSL_ATTRIBUTE_LIFETIME_BOUND {
575 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
576 }
577 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
578 ABSL_ATTRIBUTE_LIFETIME_BOUND {
579 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
580 }
582 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
583 return GetDescriptor();
584 }
585 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
586 return default_instance().GetMetadata().descriptor;
587 }
588 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
589 return default_instance().GetMetadata().reflection;
590 }
591 static const SparseDoubleVectorProto& default_instance() {
592 return *reinterpret_cast<const SparseDoubleVectorProto*>(
594 }
595 static constexpr int kIndexInFileMessages = 0;
596 friend void swap(SparseDoubleVectorProto& a, SparseDoubleVectorProto& b) { a.Swap(&b); }
597 inline void Swap(SparseDoubleVectorProto* PROTOBUF_NONNULL other) {
598 if (other == this) return;
599 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
600 InternalSwap(other);
601 } else {
602 ::google::protobuf::internal::GenericSwap(this, other);
603 }
604 }
605 void UnsafeArenaSwap(SparseDoubleVectorProto* PROTOBUF_NONNULL other) {
606 if (other == this) return;
607 ABSL_DCHECK(GetArena() == other->GetArena());
608 InternalSwap(other);
610
611 // implements Message ----------------------------------------------
612
613 SparseDoubleVectorProto* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
614 return ::google::protobuf::Message::DefaultConstruct<SparseDoubleVectorProto>(arena);
615 }
616 using ::google::protobuf::Message::CopyFrom;
618 using ::google::protobuf::Message::MergeFrom;
619 void MergeFrom(const SparseDoubleVectorProto& from) { SparseDoubleVectorProto::MergeImpl(*this, from); }
620
621 private:
622 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
623 const ::google::protobuf::MessageLite& from_msg);
624
625 public:
626 bool IsInitialized() const {
627 return true;
628 }
629 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
630 #if defined(PROTOBUF_CUSTOM_VTABLE)
631 private:
632 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
633 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
634 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
635 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
636
637 public:
638 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
639 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
640 ::uint8_t* PROTOBUF_NONNULL target,
641 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
642 return _InternalSerialize(*this, target, stream);
643 }
644 #else // PROTOBUF_CUSTOM_VTABLE
645 ::size_t ByteSizeLong() const final;
646 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
647 ::uint8_t* PROTOBUF_NONNULL target,
648 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
649 #endif // PROTOBUF_CUSTOM_VTABLE
650 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
651
652 private:
653 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
654 static void SharedDtor(MessageLite& self);
655 void InternalSwap(SparseDoubleVectorProto* PROTOBUF_NONNULL other);
656 private:
657 template <typename T>
658 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
659 static ::absl::string_view FullMessageName() { return "operations_research.math_opt.SparseDoubleVectorProto"; }
660
661 protected:
662 explicit SparseDoubleVectorProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
663 SparseDoubleVectorProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SparseDoubleVectorProto& from);
665 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SparseDoubleVectorProto&& from) noexcept
666 : SparseDoubleVectorProto(arena) {
667 *this = ::std::move(from);
669 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
670 static void* PROTOBUF_NONNULL PlacementNew_(
671 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
672 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
673 static constexpr auto InternalNewImpl_();
674
675 public:
676 static constexpr auto InternalGenerateClassData_();
677
678 ::google::protobuf::Metadata GetMetadata() const;
679 // nested types ----------------------------------------------------
680
681 // accessors -------------------------------------------------------
682 enum : int {
683 kIdsFieldNumber = 1,
684 kValuesFieldNumber = 2,
685 };
686 // repeated int64 ids = 1;
687 int ids_size() const;
688 private:
689 int _internal_ids_size() const;
690
691 public:
692 void clear_ids() ;
693 ::int64_t ids(int index) const;
694 void set_ids(int index, ::int64_t value);
695 void add_ids(::int64_t value);
696 const ::google::protobuf::RepeatedField<::int64_t>& ids() const;
697 ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL mutable_ids();
698
699 private:
700 const ::google::protobuf::RepeatedField<::int64_t>& _internal_ids() const;
701 ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL _internal_mutable_ids();
702
703 public:
704 // repeated double values = 2;
705 int values_size() const;
706 private:
707 int _internal_values_size() const;
708
709 public:
710 void clear_values() ;
711 double values(int index) const;
712 void set_values(int index, double value);
713 void add_values(double value);
714 const ::google::protobuf::RepeatedField<double>& values() const;
715 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL mutable_values();
716
717 private:
718 const ::google::protobuf::RepeatedField<double>& _internal_values() const;
719 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL _internal_mutable_values();
720
721 public:
722 // @@protoc_insertion_point(class_scope:operations_research.math_opt.SparseDoubleVectorProto)
723 private:
724 class _Internal;
725 friend class ::google::protobuf::internal::TcParser;
726 static const ::google::protobuf::internal::TcParseTable<1, 2,
727 0, 0,
728 2>
729 _table_;
730
731 friend class ::google::protobuf::MessageLite;
732 friend class ::google::protobuf::Arena;
733 template <typename T>
734 friend class ::google::protobuf::Arena::InternalHelper;
735 using InternalArenaConstructable_ = void;
736 using DestructorSkippable_ = void;
737 struct Impl_ {
738 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
739 inline explicit Impl_(
740 ::google::protobuf::internal::InternalVisibility visibility,
741 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
742 inline explicit Impl_(
743 ::google::protobuf::internal::InternalVisibility visibility,
744 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
745 const SparseDoubleVectorProto& from_msg);
746 ::google::protobuf::RepeatedField<::int64_t> ids_;
747 ::google::protobuf::internal::CachedSize _ids_cached_byte_size_;
748 ::google::protobuf::RepeatedField<double> values_;
749 ::google::protobuf::internal::CachedSize _cached_size_;
750 PROTOBUF_TSAN_DECLARE_MEMBER
751 };
752 union { Impl_ _impl_; };
753 friend struct ::TableStruct_ortools_2fmath_5fopt_2fsparse_5fcontainers_2eproto;
754};
755
756OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull SparseDoubleVectorProto_class_data_;
757// -------------------------------------------------------------------
758
759class OR_PROTO_DLL SparseDoubleMatrixProto final : public ::google::protobuf::Message
760/* @@protoc_insertion_point(class_definition:operations_research.math_opt.SparseDoubleMatrixProto) */ {
761 public:
763 ~SparseDoubleMatrixProto() PROTOBUF_FINAL;
765#if defined(PROTOBUF_CUSTOM_VTABLE)
766 void operator delete(SparseDoubleMatrixProto* PROTOBUF_NONNULL msg, std::destroying_delete_t) {
767 SharedDtor(*msg);
768 ::google::protobuf::internal::SizedDelete(msg, sizeof(SparseDoubleMatrixProto));
769 }
770#endif
771
772 template <typename = void>
773 explicit PROTOBUF_CONSTEXPR SparseDoubleMatrixProto(::google::protobuf::internal::ConstantInitialized);
774
775 inline SparseDoubleMatrixProto(const SparseDoubleMatrixProto& from) : SparseDoubleMatrixProto(nullptr, from) {}
776 inline SparseDoubleMatrixProto(SparseDoubleMatrixProto&& from) noexcept
777 : SparseDoubleMatrixProto(nullptr, ::std::move(from)) {}
779 CopyFrom(from);
780 return *this;
782 inline SparseDoubleMatrixProto& operator=(SparseDoubleMatrixProto&& from) noexcept {
783 if (this == &from) return *this;
784 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
785 InternalSwap(&from);
786 } else {
787 CopyFrom(from);
788 }
789 return *this;
790 }
791
792 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
793 ABSL_ATTRIBUTE_LIFETIME_BOUND {
794 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
795 }
796 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
797 ABSL_ATTRIBUTE_LIFETIME_BOUND {
798 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
799 }
800
801 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
802 return GetDescriptor();
803 }
804 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
805 return default_instance().GetMetadata().descriptor;
807 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
808 return default_instance().GetMetadata().reflection;
810 static const SparseDoubleMatrixProto& default_instance() {
811 return *reinterpret_cast<const SparseDoubleMatrixProto*>(
813 }
814 static constexpr int kIndexInFileMessages = 4;
816 inline void Swap(SparseDoubleMatrixProto* PROTOBUF_NONNULL other) {
817 if (other == this) return;
818 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
819 InternalSwap(other);
820 } else {
821 ::google::protobuf::internal::GenericSwap(this, other);
822 }
823 }
824 void UnsafeArenaSwap(SparseDoubleMatrixProto* PROTOBUF_NONNULL other) {
825 if (other == this) return;
826 ABSL_DCHECK(GetArena() == other->GetArena());
827 InternalSwap(other);
828 }
830 // implements Message ----------------------------------------------
831
832 SparseDoubleMatrixProto* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
833 return ::google::protobuf::Message::DefaultConstruct<SparseDoubleMatrixProto>(arena);
834 }
835 using ::google::protobuf::Message::CopyFrom;
836 void CopyFrom(const SparseDoubleMatrixProto& from);
837 using ::google::protobuf::Message::MergeFrom;
838 void MergeFrom(const SparseDoubleMatrixProto& from) { SparseDoubleMatrixProto::MergeImpl(*this, from); }
839
840 private:
841 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
842 const ::google::protobuf::MessageLite& from_msg);
844 public:
845 bool IsInitialized() const {
846 return true;
847 }
848 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
849 #if defined(PROTOBUF_CUSTOM_VTABLE)
850 private:
851 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
852 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
853 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
854 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
855
856 public:
857 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
858 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
859 ::uint8_t* PROTOBUF_NONNULL target,
860 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
861 return _InternalSerialize(*this, target, stream);
862 }
863 #else // PROTOBUF_CUSTOM_VTABLE
864 ::size_t ByteSizeLong() const final;
865 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
866 ::uint8_t* PROTOBUF_NONNULL target,
867 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
868 #endif // PROTOBUF_CUSTOM_VTABLE
869 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
870
871 private:
872 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
873 static void SharedDtor(MessageLite& self);
874 void InternalSwap(SparseDoubleMatrixProto* PROTOBUF_NONNULL other);
875 private:
876 template <typename T>
877 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
878 static ::absl::string_view FullMessageName() { return "operations_research.math_opt.SparseDoubleMatrixProto"; }
879
880 protected:
881 explicit SparseDoubleMatrixProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
882 SparseDoubleMatrixProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SparseDoubleMatrixProto& from);
884 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SparseDoubleMatrixProto&& from) noexcept
885 : SparseDoubleMatrixProto(arena) {
886 *this = ::std::move(from);
887 }
888 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
889 static void* PROTOBUF_NONNULL PlacementNew_(
890 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
891 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
892 static constexpr auto InternalNewImpl_();
893
894 public:
895 static constexpr auto InternalGenerateClassData_();
896
897 ::google::protobuf::Metadata GetMetadata() const;
898 // nested types ----------------------------------------------------
899
900 // accessors -------------------------------------------------------
901 enum : int {
905 };
906 // repeated int64 row_ids = 1;
907 int row_ids_size() const;
908 private:
909 int _internal_row_ids_size() const;
910
911 public:
912 void clear_row_ids() ;
913 ::int64_t row_ids(int index) const;
914 void set_row_ids(int index, ::int64_t value);
915 void add_row_ids(::int64_t value);
916 const ::google::protobuf::RepeatedField<::int64_t>& row_ids() const;
917 ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL mutable_row_ids();
918
919 private:
920 const ::google::protobuf::RepeatedField<::int64_t>& _internal_row_ids() const;
921 ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL _internal_mutable_row_ids();
922
923 public:
924 // repeated int64 column_ids = 2;
925 int column_ids_size() const;
926 private:
927 int _internal_column_ids_size() const;
928
929 public:
930 void clear_column_ids() ;
931 ::int64_t column_ids(int index) const;
932 void set_column_ids(int index, ::int64_t value);
933 void add_column_ids(::int64_t value);
934 const ::google::protobuf::RepeatedField<::int64_t>& column_ids() const;
935 ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL mutable_column_ids();
936
937 private:
938 const ::google::protobuf::RepeatedField<::int64_t>& _internal_column_ids() const;
939 ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL _internal_mutable_column_ids();
940
941 public:
942 // repeated double coefficients = 3;
943 int coefficients_size() const;
944 private:
945 int _internal_coefficients_size() const;
946
947 public:
948 void clear_coefficients() ;
949 double coefficients(int index) const;
950 void set_coefficients(int index, double value);
951 void add_coefficients(double value);
952 const ::google::protobuf::RepeatedField<double>& coefficients() const;
953 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL mutable_coefficients();
954
955 private:
956 const ::google::protobuf::RepeatedField<double>& _internal_coefficients() const;
957 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL _internal_mutable_coefficients();
958
959 public:
960 // @@protoc_insertion_point(class_scope:operations_research.math_opt.SparseDoubleMatrixProto)
961 private:
962 class _Internal;
963 friend class ::google::protobuf::internal::TcParser;
964 static const ::google::protobuf::internal::TcParseTable<2, 3,
965 0, 0,
966 2>
967 _table_;
969 friend class ::google::protobuf::MessageLite;
970 friend class ::google::protobuf::Arena;
971 template <typename T>
972 friend class ::google::protobuf::Arena::InternalHelper;
973 using InternalArenaConstructable_ = void;
974 using DestructorSkippable_ = void;
975 struct Impl_ {
976 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
977 inline explicit Impl_(
978 ::google::protobuf::internal::InternalVisibility visibility,
979 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
980 inline explicit Impl_(
981 ::google::protobuf::internal::InternalVisibility visibility,
982 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
983 const SparseDoubleMatrixProto& from_msg);
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 ::google::protobuf::internal::CachedSize _cached_size_;
990 PROTOBUF_TSAN_DECLARE_MEMBER
991 };
992 union { Impl_ _impl_; };
993 friend struct ::TableStruct_ortools_2fmath_5fopt_2fsparse_5fcontainers_2eproto;
994};
995
996OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull SparseDoubleMatrixProto_class_data_;
997// -------------------------------------------------------------------
999class OR_PROTO_DLL SparseBoolVectorProto final : public ::google::protobuf::Message
1000/* @@protoc_insertion_point(class_definition:operations_research.math_opt.SparseBoolVectorProto) */ {
1001 public:
1002 inline SparseBoolVectorProto() : SparseBoolVectorProto(nullptr) {}
1003 ~SparseBoolVectorProto() PROTOBUF_FINAL;
1004
1005#if defined(PROTOBUF_CUSTOM_VTABLE)
1006 void operator delete(SparseBoolVectorProto* PROTOBUF_NONNULL msg, std::destroying_delete_t) {
1007 SharedDtor(*msg);
1008 ::google::protobuf::internal::SizedDelete(msg, sizeof(SparseBoolVectorProto));
1009 }
1010#endif
1011
1012 template <typename = void>
1013 explicit PROTOBUF_CONSTEXPR SparseBoolVectorProto(::google::protobuf::internal::ConstantInitialized);
1014
1015 inline SparseBoolVectorProto(const SparseBoolVectorProto& from) : SparseBoolVectorProto(nullptr, from) {}
1016 inline SparseBoolVectorProto(SparseBoolVectorProto&& from) noexcept
1017 : SparseBoolVectorProto(nullptr, ::std::move(from)) {}
1018 inline SparseBoolVectorProto& operator=(const SparseBoolVectorProto& from) {
1020 return *this;
1023 if (this == &from) return *this;
1024 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
1025 InternalSwap(&from);
1026 } else {
1027 CopyFrom(from);
1029 return *this;
1030 }
1031
1032 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
1033 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1034 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
1035 }
1036 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
1037 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1038 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
1039 }
1040
1041 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
1043 }
1044 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
1045 return default_instance().GetMetadata().descriptor;
1046 }
1047 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
1048 return default_instance().GetMetadata().reflection;
1049 }
1051 return *reinterpret_cast<const SparseBoolVectorProto*>(
1054 static constexpr int kIndexInFileMessages = 1;
1055 friend void swap(SparseBoolVectorProto& a, SparseBoolVectorProto& b) { a.Swap(&b); }
1056 inline void Swap(SparseBoolVectorProto* PROTOBUF_NONNULL other) {
1057 if (other == this) return;
1058 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
1059 InternalSwap(other);
1060 } else {
1061 ::google::protobuf::internal::GenericSwap(this, other);
1063 }
1064 void UnsafeArenaSwap(SparseBoolVectorProto* PROTOBUF_NONNULL other) {
1065 if (other == this) return;
1066 ABSL_DCHECK(GetArena() == other->GetArena());
1067 InternalSwap(other);
1068 }
1069
1070 // implements Message ----------------------------------------------
1071
1072 SparseBoolVectorProto* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
1073 return ::google::protobuf::Message::DefaultConstruct<SparseBoolVectorProto>(arena);
1074 }
1075 using ::google::protobuf::Message::CopyFrom;
1076 void CopyFrom(const SparseBoolVectorProto& from);
1077 using ::google::protobuf::Message::MergeFrom;
1078 void MergeFrom(const SparseBoolVectorProto& from) { SparseBoolVectorProto::MergeImpl(*this, from); }
1079
1080 private:
1081 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
1082 const ::google::protobuf::MessageLite& from_msg);
1083
1084 public:
1085 bool IsInitialized() const {
1086 return true;
1087 }
1088 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
1089 #if defined(PROTOBUF_CUSTOM_VTABLE)
1090 private:
1091 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
1092 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
1093 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
1094 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
1095
1096 public:
1097 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
1098 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
1099 ::uint8_t* PROTOBUF_NONNULL target,
1100 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1101 return _InternalSerialize(*this, target, stream);
1102 }
1103 #else // PROTOBUF_CUSTOM_VTABLE
1104 ::size_t ByteSizeLong() const final;
1105 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
1106 ::uint8_t* PROTOBUF_NONNULL target,
1107 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
1108 #endif // PROTOBUF_CUSTOM_VTABLE
1109 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
1110
1111 private:
1112 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1113 static void SharedDtor(MessageLite& self);
1114 void InternalSwap(SparseBoolVectorProto* PROTOBUF_NONNULL other);
1115 private:
1116 template <typename T>
1117 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
1118 static ::absl::string_view FullMessageName() { return "operations_research.math_opt.SparseBoolVectorProto"; }
1119
1120 protected:
1121 explicit SparseBoolVectorProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1122 SparseBoolVectorProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SparseBoolVectorProto& from);
1124 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SparseBoolVectorProto&& from) noexcept
1125 : SparseBoolVectorProto(arena) {
1126 *this = ::std::move(from);
1127 }
1128 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
1129 static void* PROTOBUF_NONNULL PlacementNew_(
1130 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1131 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1132 static constexpr auto InternalNewImpl_();
1133
1134 public:
1135 static constexpr auto InternalGenerateClassData_();
1136
1137 ::google::protobuf::Metadata GetMetadata() const;
1138 // nested types ----------------------------------------------------
1139
1140 // accessors -------------------------------------------------------
1141 enum : int {
1142 kIdsFieldNumber = 1,
1144 };
1145 // repeated int64 ids = 1;
1146 int ids_size() const;
1147 private:
1148 int _internal_ids_size() const;
1150 public:
1151 void clear_ids() ;
1152 ::int64_t ids(int index) const;
1153 void set_ids(int index, ::int64_t value);
1154 void add_ids(::int64_t value);
1155 const ::google::protobuf::RepeatedField<::int64_t>& ids() const;
1156 ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL mutable_ids();
1157
1158 private:
1159 const ::google::protobuf::RepeatedField<::int64_t>& _internal_ids() const;
1160 ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL _internal_mutable_ids();
1161
1162 public:
1163 // repeated bool values = 2;
1164 int values_size() const;
1165 private:
1166 int _internal_values_size() const;
1167
1168 public:
1169 void clear_values() ;
1170 bool values(int index) const;
1171 void set_values(int index, bool value);
1172 void add_values(bool value);
1173 const ::google::protobuf::RepeatedField<bool>& values() const;
1174 ::google::protobuf::RepeatedField<bool>* PROTOBUF_NONNULL mutable_values();
1175
1176 private:
1177 const ::google::protobuf::RepeatedField<bool>& _internal_values() const;
1178 ::google::protobuf::RepeatedField<bool>* PROTOBUF_NONNULL _internal_mutable_values();
1179
1180 public:
1181 // @@protoc_insertion_point(class_scope:operations_research.math_opt.SparseBoolVectorProto)
1182 private:
1183 class _Internal;
1184 friend class ::google::protobuf::internal::TcParser;
1185 static const ::google::protobuf::internal::TcParseTable<1, 2,
1186 0, 0,
1187 2>
1188 _table_;
1189
1190 friend class ::google::protobuf::MessageLite;
1191 friend class ::google::protobuf::Arena;
1192 template <typename T>
1193 friend class ::google::protobuf::Arena::InternalHelper;
1194 using InternalArenaConstructable_ = void;
1195 using DestructorSkippable_ = void;
1196 struct Impl_ {
1197 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
1198 inline explicit Impl_(
1199 ::google::protobuf::internal::InternalVisibility visibility,
1200 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1201 inline explicit Impl_(
1202 ::google::protobuf::internal::InternalVisibility visibility,
1203 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
1204 const SparseBoolVectorProto& from_msg);
1205 ::google::protobuf::RepeatedField<::int64_t> ids_;
1206 ::google::protobuf::internal::CachedSize _ids_cached_byte_size_;
1207 ::google::protobuf::RepeatedField<bool> values_;
1208 ::google::protobuf::internal::CachedSize _cached_size_;
1209 PROTOBUF_TSAN_DECLARE_MEMBER
1210 };
1211 union { Impl_ _impl_; };
1212 friend struct ::TableStruct_ortools_2fmath_5fopt_2fsparse_5fcontainers_2eproto;
1213};
1214
1215OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull SparseBoolVectorProto_class_data_;
1216// -------------------------------------------------------------------
1218class OR_PROTO_DLL LinearExpressionProto final : public ::google::protobuf::Message
1219/* @@protoc_insertion_point(class_definition:operations_research.math_opt.LinearExpressionProto) */ {
1220 public:
1221 inline LinearExpressionProto() : LinearExpressionProto(nullptr) {}
1222 ~LinearExpressionProto() PROTOBUF_FINAL;
1223
1224#if defined(PROTOBUF_CUSTOM_VTABLE)
1225 void operator delete(LinearExpressionProto* PROTOBUF_NONNULL msg, std::destroying_delete_t) {
1226 SharedDtor(*msg);
1227 ::google::protobuf::internal::SizedDelete(msg, sizeof(LinearExpressionProto));
1229#endif
1230
1231 template <typename = void>
1232 explicit PROTOBUF_CONSTEXPR LinearExpressionProto(::google::protobuf::internal::ConstantInitialized);
1233
1234 inline LinearExpressionProto(const LinearExpressionProto& from) : LinearExpressionProto(nullptr, from) {}
1235 inline LinearExpressionProto(LinearExpressionProto&& from) noexcept
1236 : LinearExpressionProto(nullptr, ::std::move(from)) {}
1237 inline LinearExpressionProto& operator=(const LinearExpressionProto& from) {
1238 CopyFrom(from);
1239 return *this;
1240 }
1242 if (this == &from) return *this;
1243 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
1244 InternalSwap(&from);
1245 } else {
1246 CopyFrom(from);
1247 }
1248 return *this;
1249 }
1250
1251 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
1252 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1253 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
1254 }
1255 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
1256 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1257 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
1259
1260 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
1261 return GetDescriptor();
1263 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
1264 return default_instance().GetMetadata().descriptor;
1265 }
1266 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
1267 return default_instance().GetMetadata().reflection;
1268 }
1269 static const LinearExpressionProto& default_instance() {
1270 return *reinterpret_cast<const LinearExpressionProto*>(
1272 }
1273 static constexpr int kIndexInFileMessages = 5;
1274 friend void swap(LinearExpressionProto& a, LinearExpressionProto& b) { a.Swap(&b); }
1275 inline void Swap(LinearExpressionProto* PROTOBUF_NONNULL other) {
1276 if (other == this) return;
1277 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
1278 InternalSwap(other);
1279 } else {
1280 ::google::protobuf::internal::GenericSwap(this, other);
1283 void UnsafeArenaSwap(LinearExpressionProto* PROTOBUF_NONNULL other) {
1284 if (other == this) return;
1285 ABSL_DCHECK(GetArena() == other->GetArena());
1286 InternalSwap(other);
1287 }
1288
1289 // implements Message ----------------------------------------------
1291 LinearExpressionProto* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
1292 return ::google::protobuf::Message::DefaultConstruct<LinearExpressionProto>(arena);
1293 }
1294 using ::google::protobuf::Message::CopyFrom;
1295 void CopyFrom(const LinearExpressionProto& from);
1296 using ::google::protobuf::Message::MergeFrom;
1297 void MergeFrom(const LinearExpressionProto& from) { LinearExpressionProto::MergeImpl(*this, from); }
1299 private:
1300 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
1301 const ::google::protobuf::MessageLite& from_msg);
1302
1303 public:
1304 bool IsInitialized() const {
1305 return true;
1306 }
1307 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
1308 #if defined(PROTOBUF_CUSTOM_VTABLE)
1309 private:
1310 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
1311 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
1312 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
1313 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
1314
1315 public:
1316 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
1317 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
1318 ::uint8_t* PROTOBUF_NONNULL target,
1319 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1320 return _InternalSerialize(*this, target, stream);
1321 }
1322 #else // PROTOBUF_CUSTOM_VTABLE
1323 ::size_t ByteSizeLong() const final;
1324 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
1325 ::uint8_t* PROTOBUF_NONNULL target,
1326 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
1327 #endif // PROTOBUF_CUSTOM_VTABLE
1328 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
1329
1330 private:
1331 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1332 static void SharedDtor(MessageLite& self);
1333 void InternalSwap(LinearExpressionProto* PROTOBUF_NONNULL other);
1334 private:
1335 template <typename T>
1336 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
1337 static ::absl::string_view FullMessageName() { return "operations_research.math_opt.LinearExpressionProto"; }
1338
1339 protected:
1340 explicit LinearExpressionProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1341 LinearExpressionProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const LinearExpressionProto& from);
1343 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, LinearExpressionProto&& from) noexcept
1344 : LinearExpressionProto(arena) {
1345 *this = ::std::move(from);
1346 }
1347 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
1348 static void* PROTOBUF_NONNULL PlacementNew_(
1349 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1350 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1351 static constexpr auto InternalNewImpl_();
1352
1353 public:
1354 static constexpr auto InternalGenerateClassData_();
1355
1356 ::google::protobuf::Metadata GetMetadata() const;
1357 // nested types ----------------------------------------------------
1358
1359 // accessors -------------------------------------------------------
1360 enum : int {
1361 kIdsFieldNumber = 1,
1364 };
1365 // repeated int64 ids = 1;
1366 int ids_size() const;
1367 private:
1368 int _internal_ids_size() const;
1370 public:
1371 void clear_ids() ;
1372 ::int64_t ids(int index) const;
1373 void set_ids(int index, ::int64_t value);
1374 void add_ids(::int64_t value);
1375 const ::google::protobuf::RepeatedField<::int64_t>& ids() const;
1376 ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL mutable_ids();
1377
1378 private:
1379 const ::google::protobuf::RepeatedField<::int64_t>& _internal_ids() const;
1380 ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL _internal_mutable_ids();
1381
1382 public:
1383 // repeated double coefficients = 2;
1384 int coefficients_size() const;
1385 private:
1386 int _internal_coefficients_size() const;
1387
1388 public:
1389 void clear_coefficients() ;
1390 double coefficients(int index) const;
1391 void set_coefficients(int index, double value);
1392 void add_coefficients(double value);
1393 const ::google::protobuf::RepeatedField<double>& coefficients() const;
1394 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL mutable_coefficients();
1395
1396 private:
1397 const ::google::protobuf::RepeatedField<double>& _internal_coefficients() const;
1398 ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL _internal_mutable_coefficients();
1399
1400 public:
1401 // double offset = 3;
1402 void clear_offset() ;
1403 double offset() const;
1404 void set_offset(double value);
1405
1406 private:
1407 double _internal_offset() const;
1408 void _internal_set_offset(double value);
1409
1410 public:
1411 // @@protoc_insertion_point(class_scope:operations_research.math_opt.LinearExpressionProto)
1412 private:
1413 class _Internal;
1414 friend class ::google::protobuf::internal::TcParser;
1415 static const ::google::protobuf::internal::TcParseTable<2, 3,
1416 0, 0,
1417 2>
1418 _table_;
1419
1420 friend class ::google::protobuf::MessageLite;
1421 friend class ::google::protobuf::Arena;
1422 template <typename T>
1423 friend class ::google::protobuf::Arena::InternalHelper;
1424 using InternalArenaConstructable_ = void;
1425 using DestructorSkippable_ = void;
1426 struct Impl_ {
1427 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
1428 inline explicit Impl_(
1429 ::google::protobuf::internal::InternalVisibility visibility,
1430 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1431 inline explicit Impl_(
1432 ::google::protobuf::internal::InternalVisibility visibility,
1433 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
1434 const LinearExpressionProto& from_msg);
1435 ::google::protobuf::internal::HasBits<1> _has_bits_;
1436 ::google::protobuf::internal::CachedSize _cached_size_;
1437 ::google::protobuf::RepeatedField<::int64_t> ids_;
1438 ::google::protobuf::internal::CachedSize _ids_cached_byte_size_;
1439 ::google::protobuf::RepeatedField<double> coefficients_;
1440 double offset_;
1441 PROTOBUF_TSAN_DECLARE_MEMBER
1442 };
1443 union { Impl_ _impl_; };
1444 friend struct ::TableStruct_ortools_2fmath_5fopt_2fsparse_5fcontainers_2eproto;
1445};
1446
1447OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull LinearExpressionProto_class_data_;
1448
1449// ===================================================================
1452
1453
1454// ===================================================================
1455
1456
1457#ifdef __GNUC__
1458#pragma GCC diagnostic push
1459#pragma GCC diagnostic ignored "-Wstrict-aliasing"
1460#endif // __GNUC__
1461// -------------------------------------------------------------------
1462
1463// SparseDoubleVectorProto
1464
1465// repeated int64 ids = 1;
1466inline int SparseDoubleVectorProto::_internal_ids_size() const {
1467 return _internal_ids().size();
1468}
1469inline int SparseDoubleVectorProto::ids_size() const {
1470 return _internal_ids_size();
1471}
1473 ::google::protobuf::internal::TSanWrite(&_impl_);
1474 _impl_.ids_.Clear();
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);
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 // @@protoc_insertion_point(field_add:operations_research.math_opt.SparseDoubleVectorProto.ids)
1488}
1489inline const ::google::protobuf::RepeatedField<::int64_t>& SparseDoubleVectorProto::ids() const
1490 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1491 // @@protoc_insertion_point(field_list:operations_research.math_opt.SparseDoubleVectorProto.ids)
1492 return _internal_ids();
1493}
1494inline ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL SparseDoubleVectorProto::mutable_ids()
1495 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1496 // @@protoc_insertion_point(field_mutable_list:operations_research.math_opt.SparseDoubleVectorProto.ids)
1497 ::google::protobuf::internal::TSanWrite(&_impl_);
1498 return _internal_mutable_ids();
1500inline const ::google::protobuf::RepeatedField<::int64_t>&
1501SparseDoubleVectorProto::_internal_ids() const {
1502 ::google::protobuf::internal::TSanRead(&_impl_);
1503 return _impl_.ids_;
1505inline ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL
1506SparseDoubleVectorProto::_internal_mutable_ids() {
1507 ::google::protobuf::internal::TSanRead(&_impl_);
1508 return &_impl_.ids_;
1509}
1510
1511// repeated double values = 2;
1512inline int SparseDoubleVectorProto::_internal_values_size() const {
1513 return _internal_values().size();
1514}
1515inline int SparseDoubleVectorProto::values_size() const {
1516 return _internal_values_size();
1517}
1519 ::google::protobuf::internal::TSanWrite(&_impl_);
1520 _impl_.values_.Clear();
1521}
1522inline double SparseDoubleVectorProto::values(int index) const {
1523 // @@protoc_insertion_point(field_get:operations_research.math_opt.SparseDoubleVectorProto.values)
1524 return _internal_values().Get(index);
1526inline void SparseDoubleVectorProto::set_values(int index, double value) {
1527 _internal_mutable_values()->Set(index, value);
1528 // @@protoc_insertion_point(field_set:operations_research.math_opt.SparseDoubleVectorProto.values)
1529}
1530inline void SparseDoubleVectorProto::add_values(double value) {
1531 ::google::protobuf::internal::TSanWrite(&_impl_);
1532 _internal_mutable_values()->Add(value);
1533 // @@protoc_insertion_point(field_add:operations_research.math_opt.SparseDoubleVectorProto.values)
1534}
1535inline const ::google::protobuf::RepeatedField<double>& SparseDoubleVectorProto::values() const
1536 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1537 // @@protoc_insertion_point(field_list:operations_research.math_opt.SparseDoubleVectorProto.values)
1538 return _internal_values();
1539}
1540inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL SparseDoubleVectorProto::mutable_values()
1541 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1542 // @@protoc_insertion_point(field_mutable_list:operations_research.math_opt.SparseDoubleVectorProto.values)
1543 ::google::protobuf::internal::TSanWrite(&_impl_);
1544 return _internal_mutable_values();
1546inline const ::google::protobuf::RepeatedField<double>&
1547SparseDoubleVectorProto::_internal_values() const {
1548 ::google::protobuf::internal::TSanRead(&_impl_);
1549 return _impl_.values_;
1551inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL
1552SparseDoubleVectorProto::_internal_mutable_values() {
1553 ::google::protobuf::internal::TSanRead(&_impl_);
1554 return &_impl_.values_;
1555}
1556
1557// -------------------------------------------------------------------
1558
1559// SparseBoolVectorProto
1560
1561// repeated int64 ids = 1;
1562inline int SparseBoolVectorProto::_internal_ids_size() const {
1563 return _internal_ids().size();
1564}
1565inline int SparseBoolVectorProto::ids_size() const {
1566 return _internal_ids_size();
1567}
1569 ::google::protobuf::internal::TSanWrite(&_impl_);
1570 _impl_.ids_.Clear();
1571}
1572inline ::int64_t SparseBoolVectorProto::ids(int index) const {
1573 // @@protoc_insertion_point(field_get:operations_research.math_opt.SparseBoolVectorProto.ids)
1574 return _internal_ids().Get(index);
1575}
1576inline void SparseBoolVectorProto::set_ids(int index, ::int64_t value) {
1577 _internal_mutable_ids()->Set(index, value);
1578 // @@protoc_insertion_point(field_set:operations_research.math_opt.SparseBoolVectorProto.ids)
1580inline void SparseBoolVectorProto::add_ids(::int64_t value) {
1581 ::google::protobuf::internal::TSanWrite(&_impl_);
1582 _internal_mutable_ids()->Add(value);
1583 // @@protoc_insertion_point(field_add:operations_research.math_opt.SparseBoolVectorProto.ids)
1584}
1585inline const ::google::protobuf::RepeatedField<::int64_t>& SparseBoolVectorProto::ids() const
1586 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1587 // @@protoc_insertion_point(field_list:operations_research.math_opt.SparseBoolVectorProto.ids)
1588 return _internal_ids();
1589}
1590inline ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL SparseBoolVectorProto::mutable_ids()
1591 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1592 // @@protoc_insertion_point(field_mutable_list:operations_research.math_opt.SparseBoolVectorProto.ids)
1593 ::google::protobuf::internal::TSanWrite(&_impl_);
1594 return _internal_mutable_ids();
1595}
1596inline const ::google::protobuf::RepeatedField<::int64_t>&
1597SparseBoolVectorProto::_internal_ids() const {
1598 ::google::protobuf::internal::TSanRead(&_impl_);
1599 return _impl_.ids_;
1600}
1601inline ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL
1602SparseBoolVectorProto::_internal_mutable_ids() {
1603 ::google::protobuf::internal::TSanRead(&_impl_);
1604 return &_impl_.ids_;
1605}
1606
1607// repeated bool values = 2;
1608inline int SparseBoolVectorProto::_internal_values_size() const {
1609 return _internal_values().size();
1610}
1611inline int SparseBoolVectorProto::values_size() const {
1612 return _internal_values_size();
1613}
1615 ::google::protobuf::internal::TSanWrite(&_impl_);
1616 _impl_.values_.Clear();
1617}
1618inline bool SparseBoolVectorProto::values(int index) const {
1619 // @@protoc_insertion_point(field_get:operations_research.math_opt.SparseBoolVectorProto.values)
1620 return _internal_values().Get(index);
1621}
1622inline void SparseBoolVectorProto::set_values(int index, bool value) {
1623 _internal_mutable_values()->Set(index, value);
1624 // @@protoc_insertion_point(field_set:operations_research.math_opt.SparseBoolVectorProto.values)
1626inline void SparseBoolVectorProto::add_values(bool value) {
1627 ::google::protobuf::internal::TSanWrite(&_impl_);
1628 _internal_mutable_values()->Add(value);
1629 // @@protoc_insertion_point(field_add:operations_research.math_opt.SparseBoolVectorProto.values)
1630}
1631inline const ::google::protobuf::RepeatedField<bool>& SparseBoolVectorProto::values() const
1632 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1633 // @@protoc_insertion_point(field_list:operations_research.math_opt.SparseBoolVectorProto.values)
1634 return _internal_values();
1635}
1636inline ::google::protobuf::RepeatedField<bool>* PROTOBUF_NONNULL SparseBoolVectorProto::mutable_values()
1637 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1638 // @@protoc_insertion_point(field_mutable_list:operations_research.math_opt.SparseBoolVectorProto.values)
1639 ::google::protobuf::internal::TSanWrite(&_impl_);
1640 return _internal_mutable_values();
1641}
1642inline const ::google::protobuf::RepeatedField<bool>&
1643SparseBoolVectorProto::_internal_values() const {
1644 ::google::protobuf::internal::TSanRead(&_impl_);
1645 return _impl_.values_;
1646}
1647inline ::google::protobuf::RepeatedField<bool>* PROTOBUF_NONNULL
1648SparseBoolVectorProto::_internal_mutable_values() {
1649 ::google::protobuf::internal::TSanRead(&_impl_);
1650 return &_impl_.values_;
1651}
1652
1653// -------------------------------------------------------------------
1654
1655// SparseInt32VectorProto
1656
1657// repeated int64 ids = 1;
1658inline int SparseInt32VectorProto::_internal_ids_size() const {
1659 return _internal_ids().size();
1660}
1661inline int SparseInt32VectorProto::ids_size() const {
1662 return _internal_ids_size();
1663}
1665 ::google::protobuf::internal::TSanWrite(&_impl_);
1666 _impl_.ids_.Clear();
1667}
1668inline ::int64_t SparseInt32VectorProto::ids(int index) const {
1669 // @@protoc_insertion_point(field_get:operations_research.math_opt.SparseInt32VectorProto.ids)
1670 return _internal_ids().Get(index);
1671}
1672inline void SparseInt32VectorProto::set_ids(int index, ::int64_t value) {
1673 _internal_mutable_ids()->Set(index, value);
1674 // @@protoc_insertion_point(field_set:operations_research.math_opt.SparseInt32VectorProto.ids)
1675}
1676inline void SparseInt32VectorProto::add_ids(::int64_t value) {
1677 ::google::protobuf::internal::TSanWrite(&_impl_);
1678 _internal_mutable_ids()->Add(value);
1679 // @@protoc_insertion_point(field_add:operations_research.math_opt.SparseInt32VectorProto.ids)
1681inline const ::google::protobuf::RepeatedField<::int64_t>& SparseInt32VectorProto::ids() const
1682 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1683 // @@protoc_insertion_point(field_list:operations_research.math_opt.SparseInt32VectorProto.ids)
1684 return _internal_ids();
1685}
1686inline ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL SparseInt32VectorProto::mutable_ids()
1687 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1688 // @@protoc_insertion_point(field_mutable_list:operations_research.math_opt.SparseInt32VectorProto.ids)
1689 ::google::protobuf::internal::TSanWrite(&_impl_);
1690 return _internal_mutable_ids();
1691}
1692inline const ::google::protobuf::RepeatedField<::int64_t>&
1693SparseInt32VectorProto::_internal_ids() const {
1694 ::google::protobuf::internal::TSanRead(&_impl_);
1695 return _impl_.ids_;
1696}
1697inline ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL
1698SparseInt32VectorProto::_internal_mutable_ids() {
1699 ::google::protobuf::internal::TSanRead(&_impl_);
1700 return &_impl_.ids_;
1701}
1702
1703// repeated int32 values = 2;
1704inline int SparseInt32VectorProto::_internal_values_size() const {
1705 return _internal_values().size();
1706}
1707inline int SparseInt32VectorProto::values_size() const {
1708 return _internal_values_size();
1709}
1711 ::google::protobuf::internal::TSanWrite(&_impl_);
1712 _impl_.values_.Clear();
1713}
1714inline ::int32_t SparseInt32VectorProto::values(int index) const {
1715 // @@protoc_insertion_point(field_get:operations_research.math_opt.SparseInt32VectorProto.values)
1716 return _internal_values().Get(index);
1717}
1718inline void SparseInt32VectorProto::set_values(int index, ::int32_t value) {
1719 _internal_mutable_values()->Set(index, value);
1720 // @@protoc_insertion_point(field_set:operations_research.math_opt.SparseInt32VectorProto.values)
1721}
1722inline void SparseInt32VectorProto::add_values(::int32_t value) {
1723 ::google::protobuf::internal::TSanWrite(&_impl_);
1724 _internal_mutable_values()->Add(value);
1725 // @@protoc_insertion_point(field_add:operations_research.math_opt.SparseInt32VectorProto.values)
1727inline const ::google::protobuf::RepeatedField<::int32_t>& SparseInt32VectorProto::values() const
1728 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1729 // @@protoc_insertion_point(field_list:operations_research.math_opt.SparseInt32VectorProto.values)
1730 return _internal_values();
1731}
1732inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL SparseInt32VectorProto::mutable_values()
1733 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1734 // @@protoc_insertion_point(field_mutable_list:operations_research.math_opt.SparseInt32VectorProto.values)
1735 ::google::protobuf::internal::TSanWrite(&_impl_);
1736 return _internal_mutable_values();
1737}
1738inline const ::google::protobuf::RepeatedField<::int32_t>&
1739SparseInt32VectorProto::_internal_values() const {
1740 ::google::protobuf::internal::TSanRead(&_impl_);
1741 return _impl_.values_;
1742}
1743inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL
1744SparseInt32VectorProto::_internal_mutable_values() {
1745 ::google::protobuf::internal::TSanRead(&_impl_);
1746 return &_impl_.values_;
1747}
1748
1749// -------------------------------------------------------------------
1750
1751// SparseVectorFilterProto
1752
1753// bool skip_zero_values = 1;
1755 ::google::protobuf::internal::TSanWrite(&_impl_);
1756 _impl_.skip_zero_values_ = false;
1757 _impl_._has_bits_[0] &= ~0x00000001u;
1758}
1760 // @@protoc_insertion_point(field_get:operations_research.math_opt.SparseVectorFilterProto.skip_zero_values)
1761 return _internal_skip_zero_values();
1762}
1763inline void SparseVectorFilterProto::set_skip_zero_values(bool value) {
1764 _internal_set_skip_zero_values(value);
1765 _impl_._has_bits_[0] |= 0x00000001u;
1766 // @@protoc_insertion_point(field_set:operations_research.math_opt.SparseVectorFilterProto.skip_zero_values)
1768inline bool SparseVectorFilterProto::_internal_skip_zero_values() const {
1769 ::google::protobuf::internal::TSanRead(&_impl_);
1770 return _impl_.skip_zero_values_;
1771}
1772inline void SparseVectorFilterProto::_internal_set_skip_zero_values(bool value) {
1773 ::google::protobuf::internal::TSanWrite(&_impl_);
1774 _impl_.skip_zero_values_ = value;
1775}
1777// bool filter_by_ids = 2;
1779 ::google::protobuf::internal::TSanWrite(&_impl_);
1780 _impl_.filter_by_ids_ = false;
1781 _impl_._has_bits_[0] &= ~0x00000002u;
1782}
1783inline bool SparseVectorFilterProto::filter_by_ids() const {
1784 // @@protoc_insertion_point(field_get:operations_research.math_opt.SparseVectorFilterProto.filter_by_ids)
1785 return _internal_filter_by_ids();
1786}
1787inline void SparseVectorFilterProto::set_filter_by_ids(bool value) {
1788 _internal_set_filter_by_ids(value);
1789 _impl_._has_bits_[0] |= 0x00000002u;
1790 // @@protoc_insertion_point(field_set:operations_research.math_opt.SparseVectorFilterProto.filter_by_ids)
1792inline bool SparseVectorFilterProto::_internal_filter_by_ids() const {
1793 ::google::protobuf::internal::TSanRead(&_impl_);
1794 return _impl_.filter_by_ids_;
1795}
1796inline void SparseVectorFilterProto::_internal_set_filter_by_ids(bool value) {
1797 ::google::protobuf::internal::TSanWrite(&_impl_);
1798 _impl_.filter_by_ids_ = value;
1799}
1801// repeated int64 filtered_ids = 3;
1802inline int SparseVectorFilterProto::_internal_filtered_ids_size() const {
1803 return _internal_filtered_ids().size();
1804}
1806 return _internal_filtered_ids_size();
1807}
1809 ::google::protobuf::internal::TSanWrite(&_impl_);
1810 _impl_.filtered_ids_.Clear();
1811}
1812inline ::int64_t SparseVectorFilterProto::filtered_ids(int index) const {
1813 // @@protoc_insertion_point(field_get:operations_research.math_opt.SparseVectorFilterProto.filtered_ids)
1814 return _internal_filtered_ids().Get(index);
1815}
1816inline void SparseVectorFilterProto::set_filtered_ids(int index, ::int64_t value) {
1817 _internal_mutable_filtered_ids()->Set(index, value);
1818 // @@protoc_insertion_point(field_set:operations_research.math_opt.SparseVectorFilterProto.filtered_ids)
1819}
1820inline void SparseVectorFilterProto::add_filtered_ids(::int64_t value) {
1821 ::google::protobuf::internal::TSanWrite(&_impl_);
1822 _internal_mutable_filtered_ids()->Add(value);
1823 // @@protoc_insertion_point(field_add:operations_research.math_opt.SparseVectorFilterProto.filtered_ids)
1824}
1825inline const ::google::protobuf::RepeatedField<::int64_t>& SparseVectorFilterProto::filtered_ids() const
1826 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1827 // @@protoc_insertion_point(field_list:operations_research.math_opt.SparseVectorFilterProto.filtered_ids)
1828 return _internal_filtered_ids();
1830inline ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL SparseVectorFilterProto::mutable_filtered_ids()
1831 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1832 // @@protoc_insertion_point(field_mutable_list:operations_research.math_opt.SparseVectorFilterProto.filtered_ids)
1833 ::google::protobuf::internal::TSanWrite(&_impl_);
1834 return _internal_mutable_filtered_ids();
1835}
1836inline const ::google::protobuf::RepeatedField<::int64_t>&
1837SparseVectorFilterProto::_internal_filtered_ids() const {
1838 ::google::protobuf::internal::TSanRead(&_impl_);
1839 return _impl_.filtered_ids_;
1840}
1841inline ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL
1842SparseVectorFilterProto::_internal_mutable_filtered_ids() {
1843 ::google::protobuf::internal::TSanRead(&_impl_);
1844 return &_impl_.filtered_ids_;
1845}
1846
1847// -------------------------------------------------------------------
1848
1849// SparseDoubleMatrixProto
1850
1851// repeated int64 row_ids = 1;
1852inline int SparseDoubleMatrixProto::_internal_row_ids_size() const {
1853 return _internal_row_ids().size();
1854}
1855inline int SparseDoubleMatrixProto::row_ids_size() const {
1856 return _internal_row_ids_size();
1857}
1859 ::google::protobuf::internal::TSanWrite(&_impl_);
1860 _impl_.row_ids_.Clear();
1861}
1862inline ::int64_t SparseDoubleMatrixProto::row_ids(int index) const {
1863 // @@protoc_insertion_point(field_get:operations_research.math_opt.SparseDoubleMatrixProto.row_ids)
1864 return _internal_row_ids().Get(index);
1865}
1866inline void SparseDoubleMatrixProto::set_row_ids(int index, ::int64_t value) {
1867 _internal_mutable_row_ids()->Set(index, value);
1868 // @@protoc_insertion_point(field_set:operations_research.math_opt.SparseDoubleMatrixProto.row_ids)
1870inline void SparseDoubleMatrixProto::add_row_ids(::int64_t value) {
1871 ::google::protobuf::internal::TSanWrite(&_impl_);
1872 _internal_mutable_row_ids()->Add(value);
1873 // @@protoc_insertion_point(field_add:operations_research.math_opt.SparseDoubleMatrixProto.row_ids)
1874}
1875inline const ::google::protobuf::RepeatedField<::int64_t>& SparseDoubleMatrixProto::row_ids() const
1876 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1877 // @@protoc_insertion_point(field_list:operations_research.math_opt.SparseDoubleMatrixProto.row_ids)
1878 return _internal_row_ids();
1879}
1880inline ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL SparseDoubleMatrixProto::mutable_row_ids()
1881 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1882 // @@protoc_insertion_point(field_mutable_list:operations_research.math_opt.SparseDoubleMatrixProto.row_ids)
1883 ::google::protobuf::internal::TSanWrite(&_impl_);
1884 return _internal_mutable_row_ids();
1885}
1886inline const ::google::protobuf::RepeatedField<::int64_t>&
1887SparseDoubleMatrixProto::_internal_row_ids() const {
1888 ::google::protobuf::internal::TSanRead(&_impl_);
1889 return _impl_.row_ids_;
1890}
1891inline ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL
1892SparseDoubleMatrixProto::_internal_mutable_row_ids() {
1893 ::google::protobuf::internal::TSanRead(&_impl_);
1894 return &_impl_.row_ids_;
1895}
1896
1897// repeated int64 column_ids = 2;
1898inline int SparseDoubleMatrixProto::_internal_column_ids_size() const {
1899 return _internal_column_ids().size();
1900}
1902 return _internal_column_ids_size();
1903}
1905 ::google::protobuf::internal::TSanWrite(&_impl_);
1906 _impl_.column_ids_.Clear();
1907}
1908inline ::int64_t SparseDoubleMatrixProto::column_ids(int index) const {
1909 // @@protoc_insertion_point(field_get:operations_research.math_opt.SparseDoubleMatrixProto.column_ids)
1910 return _internal_column_ids().Get(index);
1911}
1912inline void SparseDoubleMatrixProto::set_column_ids(int index, ::int64_t value) {
1913 _internal_mutable_column_ids()->Set(index, value);
1914 // @@protoc_insertion_point(field_set:operations_research.math_opt.SparseDoubleMatrixProto.column_ids)
1916inline void SparseDoubleMatrixProto::add_column_ids(::int64_t value) {
1917 ::google::protobuf::internal::TSanWrite(&_impl_);
1918 _internal_mutable_column_ids()->Add(value);
1919 // @@protoc_insertion_point(field_add:operations_research.math_opt.SparseDoubleMatrixProto.column_ids)
1920}
1921inline const ::google::protobuf::RepeatedField<::int64_t>& SparseDoubleMatrixProto::column_ids() const
1922 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1923 // @@protoc_insertion_point(field_list:operations_research.math_opt.SparseDoubleMatrixProto.column_ids)
1924 return _internal_column_ids();
1925}
1926inline ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL SparseDoubleMatrixProto::mutable_column_ids()
1927 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1928 // @@protoc_insertion_point(field_mutable_list:operations_research.math_opt.SparseDoubleMatrixProto.column_ids)
1929 ::google::protobuf::internal::TSanWrite(&_impl_);
1930 return _internal_mutable_column_ids();
1931}
1932inline const ::google::protobuf::RepeatedField<::int64_t>&
1933SparseDoubleMatrixProto::_internal_column_ids() const {
1934 ::google::protobuf::internal::TSanRead(&_impl_);
1935 return _impl_.column_ids_;
1936}
1937inline ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL
1938SparseDoubleMatrixProto::_internal_mutable_column_ids() {
1939 ::google::protobuf::internal::TSanRead(&_impl_);
1940 return &_impl_.column_ids_;
1941}
1942
1943// repeated double coefficients = 3;
1944inline int SparseDoubleMatrixProto::_internal_coefficients_size() const {
1945 return _internal_coefficients().size();
1946}
1948 return _internal_coefficients_size();
1949}
1951 ::google::protobuf::internal::TSanWrite(&_impl_);
1952 _impl_.coefficients_.Clear();
1953}
1954inline double SparseDoubleMatrixProto::coefficients(int index) const {
1955 // @@protoc_insertion_point(field_get:operations_research.math_opt.SparseDoubleMatrixProto.coefficients)
1956 return _internal_coefficients().Get(index);
1957}
1958inline void SparseDoubleMatrixProto::set_coefficients(int index, double value) {
1959 _internal_mutable_coefficients()->Set(index, value);
1960 // @@protoc_insertion_point(field_set:operations_research.math_opt.SparseDoubleMatrixProto.coefficients)
1962inline void SparseDoubleMatrixProto::add_coefficients(double value) {
1963 ::google::protobuf::internal::TSanWrite(&_impl_);
1964 _internal_mutable_coefficients()->Add(value);
1965 // @@protoc_insertion_point(field_add:operations_research.math_opt.SparseDoubleMatrixProto.coefficients)
1966}
1967inline const ::google::protobuf::RepeatedField<double>& SparseDoubleMatrixProto::coefficients() const
1968 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1969 // @@protoc_insertion_point(field_list:operations_research.math_opt.SparseDoubleMatrixProto.coefficients)
1970 return _internal_coefficients();
1971}
1972inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL SparseDoubleMatrixProto::mutable_coefficients()
1973 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1974 // @@protoc_insertion_point(field_mutable_list:operations_research.math_opt.SparseDoubleMatrixProto.coefficients)
1975 ::google::protobuf::internal::TSanWrite(&_impl_);
1976 return _internal_mutable_coefficients();
1977}
1978inline const ::google::protobuf::RepeatedField<double>&
1979SparseDoubleMatrixProto::_internal_coefficients() const {
1980 ::google::protobuf::internal::TSanRead(&_impl_);
1981 return _impl_.coefficients_;
1982}
1983inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL
1984SparseDoubleMatrixProto::_internal_mutable_coefficients() {
1985 ::google::protobuf::internal::TSanRead(&_impl_);
1986 return &_impl_.coefficients_;
1987}
1988
1989// -------------------------------------------------------------------
1990
1991// LinearExpressionProto
1992
1993// repeated int64 ids = 1;
1994inline int LinearExpressionProto::_internal_ids_size() const {
1995 return _internal_ids().size();
1996}
1997inline int LinearExpressionProto::ids_size() const {
1998 return _internal_ids_size();
1999}
2001 ::google::protobuf::internal::TSanWrite(&_impl_);
2002 _impl_.ids_.Clear();
2003}
2004inline ::int64_t LinearExpressionProto::ids(int index) const {
2005 // @@protoc_insertion_point(field_get:operations_research.math_opt.LinearExpressionProto.ids)
2006 return _internal_ids().Get(index);
2007}
2008inline void LinearExpressionProto::set_ids(int index, ::int64_t value) {
2009 _internal_mutable_ids()->Set(index, value);
2010 // @@protoc_insertion_point(field_set:operations_research.math_opt.LinearExpressionProto.ids)
2011}
2012inline void LinearExpressionProto::add_ids(::int64_t value) {
2013 ::google::protobuf::internal::TSanWrite(&_impl_);
2014 _internal_mutable_ids()->Add(value);
2015 // @@protoc_insertion_point(field_add:operations_research.math_opt.LinearExpressionProto.ids)
2016}
2017inline const ::google::protobuf::RepeatedField<::int64_t>& LinearExpressionProto::ids() const
2018 ABSL_ATTRIBUTE_LIFETIME_BOUND {
2019 // @@protoc_insertion_point(field_list:operations_research.math_opt.LinearExpressionProto.ids)
2020 return _internal_ids();
2021}
2022inline ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL LinearExpressionProto::mutable_ids()
2023 ABSL_ATTRIBUTE_LIFETIME_BOUND {
2024 // @@protoc_insertion_point(field_mutable_list:operations_research.math_opt.LinearExpressionProto.ids)
2025 ::google::protobuf::internal::TSanWrite(&_impl_);
2026 return _internal_mutable_ids();
2028inline const ::google::protobuf::RepeatedField<::int64_t>&
2029LinearExpressionProto::_internal_ids() const {
2030 ::google::protobuf::internal::TSanRead(&_impl_);
2031 return _impl_.ids_;
2033inline ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL
2034LinearExpressionProto::_internal_mutable_ids() {
2035 ::google::protobuf::internal::TSanRead(&_impl_);
2036 return &_impl_.ids_;
2038
2039// repeated double coefficients = 2;
2040inline int LinearExpressionProto::_internal_coefficients_size() const {
2041 return _internal_coefficients().size();
2042}
2044 return _internal_coefficients_size();
2045}
2047 ::google::protobuf::internal::TSanWrite(&_impl_);
2048 _impl_.coefficients_.Clear();
2049}
2050inline double LinearExpressionProto::coefficients(int index) const {
2051 // @@protoc_insertion_point(field_get:operations_research.math_opt.LinearExpressionProto.coefficients)
2052 return _internal_coefficients().Get(index);
2053}
2054inline void LinearExpressionProto::set_coefficients(int index, double value) {
2055 _internal_mutable_coefficients()->Set(index, value);
2056 // @@protoc_insertion_point(field_set:operations_research.math_opt.LinearExpressionProto.coefficients)
2057}
2059 ::google::protobuf::internal::TSanWrite(&_impl_);
2060 _internal_mutable_coefficients()->Add(value);
2061 // @@protoc_insertion_point(field_add:operations_research.math_opt.LinearExpressionProto.coefficients)
2062}
2063inline const ::google::protobuf::RepeatedField<double>& LinearExpressionProto::coefficients() const
2064 ABSL_ATTRIBUTE_LIFETIME_BOUND {
2065 // @@protoc_insertion_point(field_list:operations_research.math_opt.LinearExpressionProto.coefficients)
2066 return _internal_coefficients();
2067}
2068inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL LinearExpressionProto::mutable_coefficients()
2069 ABSL_ATTRIBUTE_LIFETIME_BOUND {
2070 // @@protoc_insertion_point(field_mutable_list:operations_research.math_opt.LinearExpressionProto.coefficients)
2071 ::google::protobuf::internal::TSanWrite(&_impl_);
2072 return _internal_mutable_coefficients();
2074inline const ::google::protobuf::RepeatedField<double>&
2075LinearExpressionProto::_internal_coefficients() const {
2076 ::google::protobuf::internal::TSanRead(&_impl_);
2077 return _impl_.coefficients_;
2079inline ::google::protobuf::RepeatedField<double>* PROTOBUF_NONNULL
2080LinearExpressionProto::_internal_mutable_coefficients() {
2081 ::google::protobuf::internal::TSanRead(&_impl_);
2082 return &_impl_.coefficients_;
2084
2085// double offset = 3;
2087 ::google::protobuf::internal::TSanWrite(&_impl_);
2088 _impl_.offset_ = 0;
2089 _impl_._has_bits_[0] &= ~0x00000001u;
2090}
2091inline double LinearExpressionProto::offset() const {
2092 // @@protoc_insertion_point(field_get:operations_research.math_opt.LinearExpressionProto.offset)
2093 return _internal_offset();
2094}
2095inline void LinearExpressionProto::set_offset(double value) {
2096 _internal_set_offset(value);
2097 _impl_._has_bits_[0] |= 0x00000001u;
2098 // @@protoc_insertion_point(field_set:operations_research.math_opt.LinearExpressionProto.offset)
2099}
2100inline double LinearExpressionProto::_internal_offset() const {
2101 ::google::protobuf::internal::TSanRead(&_impl_);
2102 return _impl_.offset_;
2103}
2104inline void LinearExpressionProto::_internal_set_offset(double value) {
2105 ::google::protobuf::internal::TSanWrite(&_impl_);
2106 _impl_.offset_ = value;
2107}
2108
2109#ifdef __GNUC__
2110#pragma GCC diagnostic pop
2111#endif // __GNUC__
2112
2113// @@protoc_insertion_point(namespace_scope)
2114} // namespace math_opt
2115} // namespace operations_research
2116
2117
2118// @@protoc_insertion_point(global_scope)
2119
2120#include "google/protobuf/port_undef.inc"
2121
2122#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
implements Message -------------------------------------------—
::google::protobuf::RepeatedField< double > *PROTOBUF_NONNULL mutable_coefficients()
int coefficients_size() const
repeated double coefficients = 2;
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
implements Message -------------------------------------------—
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
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
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()
int column_ids_size() const
repeated int64 column_ids = 2;
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
int coefficients_size() const
repeated double coefficients = 3;
const ::google::protobuf::RepeatedField< double > & coefficients() const
SparseDoubleMatrixProto *PROTOBUF_NONNULL New(::google::protobuf::Arena *PROTOBUF_NULLABLE arena=nullptr) const
implements Message -------------------------------------------—
::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()
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
void Swap(SparseDoubleMatrixProto *PROTOBUF_NONNULL other)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
void CopyFrom(const SparseDoubleVectorProto &from)
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)
SparseVectorFilterProto(::google::protobuf::Arena *PROTOBUF_NULLABLE arena, SparseVectorFilterProto &&from) noexcept
int filtered_ids_size() const
repeated int64 filtered_ids = 3;
::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()
An object oriented wrapper for quadratic constraints in ModelStorage.
Definition gurobi_isv.cc:28
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SparseInt32VectorProto_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LinearExpressionProtoDefaultTypeInternal _LinearExpressionProto_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SparseDoubleVectorProto_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SparseDoubleVectorProtoDefaultTypeInternal _SparseDoubleVectorProto_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SparseVectorFilterProtoDefaultTypeInternal _SparseVectorFilterProto_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SparseInt32VectorProtoDefaultTypeInternal _SparseInt32VectorProto_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SparseDoubleMatrixProtoDefaultTypeInternal _SparseDoubleMatrixProto_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SparseDoubleMatrixProto_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SparseVectorFilterProto_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SparseBoolVectorProto_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull LinearExpressionProto_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SparseBoolVectorProtoDefaultTypeInternal _SparseBoolVectorProto_default_instance_
In SWIG mode, we don't want anything besides these top-level includes.
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fsparse_5fcontainers_2eproto
Internal implementation detail – do not use these members.