10#include "google/protobuf/io/coded_stream.h"
11#include "google/protobuf/generated_message_tctable_impl.h"
12#include "google/protobuf/extension_set.h"
13#include "google/protobuf/generated_message_util.h"
14#include "google/protobuf/wire_format_lite.h"
15#include "google/protobuf/descriptor.h"
16#include "google/protobuf/generated_message_reflection.h"
17#include "google/protobuf/reflection_ops.h"
18#include "google/protobuf/wire_format.h"
22#include "google/protobuf/port_def.inc"
23PROTOBUF_PRAGMA_INIT_SEG
26namespace _fl = ::google::protobuf::internal::field_layout;
30inline constexpr SparseVectorFilterProto::Impl_::Impl_(
31 ::_pbi::ConstantInitialized) noexcept
34 _filtered_ids_cached_byte_size_{0},
35 skip_zero_values_{
false},
36 filter_by_ids_{
false} {}
40#if defined(PROTOBUF_CUSTOM_VTABLE)
43 : ::google::protobuf::Message(),
45 _impl_(::_pbi::ConstantInitialized()) {
55PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
58inline constexpr SparseInt32VectorProto::Impl_::Impl_(
59 ::_pbi::ConstantInitialized) noexcept
61 _ids_cached_byte_size_{0},
63 _values_cached_byte_size_{0},
68#if defined(PROTOBUF_CUSTOM_VTABLE)
71 : ::google::protobuf::Message(),
73 _impl_(::_pbi::ConstantInitialized()) {
83PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
86inline constexpr SparseDoubleVectorProto::Impl_::Impl_(
87 ::_pbi::ConstantInitialized) noexcept
89 _ids_cached_byte_size_{0},
95#if defined(PROTOBUF_CUSTOM_VTABLE)
98 : ::google::protobuf::Message(),
100 _impl_(::_pbi::ConstantInitialized()) {
110PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
113inline constexpr SparseDoubleMatrixProto::Impl_::Impl_(
114 ::_pbi::ConstantInitialized) noexcept
116 _row_ids_cached_byte_size_{0},
118 _column_ids_cached_byte_size_{0},
124#if defined(PROTOBUF_CUSTOM_VTABLE)
127 : ::google::protobuf::Message(),
129 _impl_(::_pbi::ConstantInitialized()) {
139PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
142inline constexpr SparseBoolVectorProto::Impl_::Impl_(
143 ::_pbi::ConstantInitialized) noexcept
145 _ids_cached_byte_size_{0},
151#if defined(PROTOBUF_CUSTOM_VTABLE)
154 : ::google::protobuf::Message(),
156 _impl_(::_pbi::ConstantInitialized()) {
166PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
169inline constexpr LinearExpressionProto::Impl_::Impl_(
170 ::_pbi::ConstantInitialized) noexcept
173 _ids_cached_byte_size_{0},
179#if defined(PROTOBUF_CUSTOM_VTABLE)
182 : ::google::protobuf::Message(),
184 _impl_(::_pbi::ConstantInitialized()) {
194PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
198static constexpr const ::_pb::EnumDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE
200static constexpr const ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE
238static const ::_pbi::MigrationSchema
257 "\n(ortools/math_opt/sparse_containers.pro"
258 "to\022\034operations_research.math_opt\"6\n\027Spar"
259 "seDoubleVectorProto\022\013\n\003ids\030\001 \003(\003\022\016\n\006valu"
260 "es\030\002 \003(\001\"4\n\025SparseBoolVectorProto\022\013\n\003ids"
261 "\030\001 \003(\003\022\016\n\006values\030\002 \003(\010\"5\n\026SparseInt32Vec"
262 "torProto\022\013\n\003ids\030\001 \003(\003\022\016\n\006values\030\002 \003(\005\"`\n"
263 "\027SparseVectorFilterProto\022\030\n\020skip_zero_va"
264 "lues\030\001 \001(\010\022\025\n\rfilter_by_ids\030\002 \001(\010\022\024\n\014fil"
265 "tered_ids\030\003 \003(\003\"T\n\027SparseDoubleMatrixPro"
266 "to\022\017\n\007row_ids\030\001 \003(\003\022\022\n\ncolumn_ids\030\002 \003(\003\022"
267 "\024\n\014coefficients\030\003 \003(\001\"J\n\025LinearExpressio"
268 "nProto\022\013\n\003ids\030\001 \003(\003\022\024\n\014coefficients\030\002 \003("
269 "\001\022\016\n\006offset\030\003 \001(\001B\036\n\032com.google.ortools."
270 "mathoptP\001b\006proto3"
277 descriptor_table_protodef_ortools_2fmath_5fopt_2fsparse_5fcontainers_2eproto,
278 "ortools/math_opt/sparse_containers.proto",
298#if defined(PROTOBUF_CUSTOM_VTABLE)
301 : ::google::protobuf::Message(arena) {
306PROTOBUF_NDEBUG_INLINE SparseDoubleVectorProto::Impl_::Impl_(
307 ::google::protobuf::internal::InternalVisibility visibility,
308 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
309 const ::operations_research::math_opt::SparseDoubleVectorProto& from_msg)
310 : ids_{visibility, arena, from.ids_},
311 _ids_cached_byte_size_{0},
312 values_{visibility, arena, from.values_},
316 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
318#if defined(PROTOBUF_CUSTOM_VTABLE)
321 : ::google::protobuf::Message(arena) {
325 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
326 from._internal_metadata_);
327 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
331PROTOBUF_NDEBUG_INLINE SparseDoubleVectorProto::Impl_::Impl_(
332 ::google::protobuf::internal::InternalVisibility visibility,
333 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
334 : ids_{visibility, arena},
335 _ids_cached_byte_size_{0},
336 values_{visibility, arena},
339inline void SparseDoubleVectorProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
340 new (&
_impl_) Impl_(internal_visibility(), arena);
346inline void SparseDoubleVectorProto::SharedDtor(MessageLite& self) {
348 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
349 ABSL_DCHECK(this_.GetArena() ==
nullptr);
354 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
355 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
359 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
362 InternalGetArenaOffset(
363 ::google::protobuf::Message::internal_visibility()),
366 InternalGetArenaOffset(
367 ::google::protobuf::Message::internal_visibility()),
369 if (arena_bits.has_value()) {
370 return ::google::protobuf::internal::MessageCreator::ZeroInit(
379 return ::google::protobuf::internal::ClassDataFull{
380 ::google::protobuf::internal::ClassData{
385 &SparseDoubleVectorProto::MergeImpl,
386 ::google::protobuf::Message::GetNewImpl<SparseDoubleVectorProto>(),
387#if defined(PROTOBUF_CUSTOM_VTABLE)
388 &SparseDoubleVectorProto::SharedDtor,
395 &SparseDoubleVectorProto::kDescriptorMethods,
401PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
405PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
411PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
412const ::_pbi::TcParseTable<1, 2, 0, 0, 2>
413SparseDoubleVectorProto::_table_ = {
418 offsetof(
decltype(_table_), field_lookup_table),
420 offsetof(
decltype(_table_), field_entries),
423 offsetof(
decltype(_table_), field_names),
426 ::_pbi::TcParser::GenericFallback,
427 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
428 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleVectorProto>(),
432 {::_pbi::TcParser::FastF64P1,
433 {18, 63, 0, PROTOBUF_FIELD_OFFSET(SparseDoubleVectorProto, _impl_.values_)}},
435 {::_pbi::TcParser::FastV64P1,
442 (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
445 (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)},
453 ::google::protobuf::internal::TSanWrite(&
_impl_);
454 ::uint32_t cached_has_bits = 0;
456 (void) cached_has_bits;
460 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
463#if defined(PROTOBUF_CUSTOM_VTABLE)
465 const ::google::protobuf::MessageLite&
base, ::uint8_t* PROTOBUF_NONNULL target,
466 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
470 ::uint8_t* PROTOBUF_NONNULL target,
471 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
475 ::uint32_t cached_has_bits = 0;
476 (void)cached_has_bits;
480 int byte_size = this_.
_impl_._ids_cached_byte_size_.Get();
482 target = stream->WriteInt64Packed(
483 1, this_._internal_ids(), byte_size, target);
488 if (this_._internal_values_size() > 0) {
489 target = stream->WriteFixedPacked(2, this_._internal_values(), target);
492 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
494 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
495 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
501#if defined(PROTOBUF_CUSTOM_VTABLE)
509 ::size_t total_size = 0;
511 ::uint32_t cached_has_bits = 0;
513 (void)cached_has_bits;
515 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
520 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
521 this_._internal_ids(), 1,
522 this_.
_impl_._ids_cached_byte_size_);
526 ::size_t data_size = ::size_t{8} *
527 ::_pbi::FromIntSize(this_._internal_values_size());
528 ::size_t tag_size = data_size == 0
530 : 1 + ::_pbi::WireFormatLite::Int32Size(
531 static_cast<::int32_t
>(data_size));
532 total_size += tag_size + data_size;
535 return this_.MaybeComputeUnknownFieldsSize(total_size,
536 &this_.
_impl_._cached_size_);
539void SparseDoubleVectorProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
543 ABSL_DCHECK_NE(&from, _this);
544 ::uint32_t cached_has_bits = 0;
545 (void) cached_has_bits;
547 _this->_internal_mutable_ids()->MergeFrom(from._internal_ids());
548 _this->_internal_mutable_values()->MergeFrom(from._internal_values());
549 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
554 if (&from ==
this)
return;
562 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
563 _impl_.ids_.InternalSwap(&other->_impl_.ids_);
564 _impl_.values_.InternalSwap(&other->_impl_.values_);
568 return ::google::protobuf::Message::GetMetadataImpl(
GetClassData()->full());
577#if defined(PROTOBUF_CUSTOM_VTABLE)
580 : ::google::protobuf::Message(arena) {
585PROTOBUF_NDEBUG_INLINE SparseBoolVectorProto::Impl_::Impl_(
586 ::google::protobuf::internal::InternalVisibility visibility,
587 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
588 const ::operations_research::math_opt::SparseBoolVectorProto& from_msg)
589 : ids_{visibility, arena, from.ids_},
590 _ids_cached_byte_size_{0},
591 values_{visibility, arena, from.values_},
595 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
597#if defined(PROTOBUF_CUSTOM_VTABLE)
600 : ::google::protobuf::Message(arena) {
604 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
605 from._internal_metadata_);
606 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
610PROTOBUF_NDEBUG_INLINE SparseBoolVectorProto::Impl_::Impl_(
611 ::google::protobuf::internal::InternalVisibility visibility,
612 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
613 : ids_{visibility, arena},
614 _ids_cached_byte_size_{0},
615 values_{visibility, arena},
618inline void SparseBoolVectorProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
619 new (&
_impl_) Impl_(internal_visibility(), arena);
625inline void SparseBoolVectorProto::SharedDtor(
MessageLite& self) {
627 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
628 ABSL_DCHECK(this_.GetArena() ==
nullptr);
633 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
634 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
638 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
641 InternalGetArenaOffset(
645 InternalGetArenaOffset(
648 if (arena_bits.has_value()) {
649 return ::google::protobuf::internal::MessageCreator::ZeroInit(
650 sizeof(SparseBoolVectorProto), alignof(SparseBoolVectorProto), *arena_bits);
652 return ::google::protobuf::internal::MessageCreator(&SparseBoolVectorProto::PlacementNew_,
653 sizeof(SparseBoolVectorProto),
654 alignof(SparseBoolVectorProto));
658 return ::google::protobuf::internal::ClassDataFull{
659 ::google::protobuf::internal::ClassData{
664 &SparseBoolVectorProto::MergeImpl,
665 ::google::protobuf::Message::GetNewImpl<SparseBoolVectorProto>(),
666#if defined(PROTOBUF_CUSTOM_VTABLE)
667 &SparseBoolVectorProto::SharedDtor,
674 &SparseBoolVectorProto::kDescriptorMethods,
680PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
684PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
690PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
691const ::_pbi::TcParseTable<1, 2, 0, 0, 2>
692SparseBoolVectorProto::_table_ = {
697 offsetof(
decltype(_table_), field_lookup_table),
699 offsetof(
decltype(_table_), field_entries),
702 offsetof(
decltype(_table_), field_names),
705 ::_pbi::TcParser::GenericFallback,
706 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
707 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseBoolVectorProto>(),
711 {::_pbi::TcParser::FastV8P1,
712 {18, 63, 0, PROTOBUF_FIELD_OFFSET(SparseBoolVectorProto,
_impl_.values_)}},
714 {::_pbi::TcParser::FastV64P1,
715 {10, 63, 0, PROTOBUF_FIELD_OFFSET(SparseBoolVectorProto,
_impl_.ids_)}},
720 {PROTOBUF_FIELD_OFFSET(SparseBoolVectorProto,
_impl_.ids_), 0, 0,
721 (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
723 {PROTOBUF_FIELD_OFFSET(SparseBoolVectorProto,
_impl_.values_), 0, 0,
724 (0 | ::_fl::kFcRepeated | ::_fl::kPackedBool)},
732 ::google::protobuf::internal::TSanWrite(&
_impl_);
733 ::uint32_t cached_has_bits = 0;
735 (void) cached_has_bits;
739 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
742#if defined(PROTOBUF_CUSTOM_VTABLE)
744 const ::google::protobuf::MessageLite&
base, ::uint8_t* PROTOBUF_NONNULL target,
745 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
749 ::uint8_t* PROTOBUF_NONNULL target,
750 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
754 ::uint32_t cached_has_bits = 0;
755 (void)cached_has_bits;
759 int byte_size = this_.
_impl_._ids_cached_byte_size_.Get();
761 target = stream->WriteInt64Packed(
762 1, this_._internal_ids(), byte_size, target);
767 if (this_._internal_values_size() > 0) {
768 target = stream->WriteFixedPacked(2, this_._internal_values(), target);
771 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
773 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
774 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
780#if defined(PROTOBUF_CUSTOM_VTABLE)
788 ::size_t total_size = 0;
790 ::uint32_t cached_has_bits = 0;
792 (void)cached_has_bits;
794 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
799 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
800 this_._internal_ids(), 1,
801 this_.
_impl_._ids_cached_byte_size_);
805 ::size_t data_size = ::size_t{1} *
806 ::_pbi::FromIntSize(this_._internal_values_size());
807 ::size_t tag_size = data_size == 0
809 : 1 + ::_pbi::WireFormatLite::Int32Size(
810 static_cast<::int32_t
>(data_size));
811 total_size += tag_size + data_size;
814 return this_.MaybeComputeUnknownFieldsSize(total_size,
815 &this_.
_impl_._cached_size_);
818void SparseBoolVectorProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
819 auto*
const _this =
static_cast<SparseBoolVectorProto*
>(&to_msg);
820 auto& from =
static_cast<const SparseBoolVectorProto&
>(from_msg);
822 ABSL_DCHECK_NE(&from, _this);
823 ::uint32_t cached_has_bits = 0;
824 (void) cached_has_bits;
826 _this->_internal_mutable_ids()->MergeFrom(from._internal_ids());
827 _this->_internal_mutable_values()->MergeFrom(from._internal_values());
828 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
833 if (&from ==
this)
return;
839void SparseBoolVectorProto::InternalSwap(
SparseBoolVectorProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
841 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
842 _impl_.ids_.InternalSwap(&other->_impl_.ids_);
843 _impl_.values_.InternalSwap(&other->_impl_.values_);
847 return ::google::protobuf::Message::GetMetadataImpl(
GetClassData()->full());
856#if defined(PROTOBUF_CUSTOM_VTABLE)
859 : ::google::protobuf::Message(arena) {
864PROTOBUF_NDEBUG_INLINE SparseInt32VectorProto::Impl_::Impl_(
865 ::google::protobuf::internal::InternalVisibility visibility,
866 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
867 const ::operations_research::math_opt::SparseInt32VectorProto& from_msg)
868 : ids_{visibility, arena, from.ids_},
869 _ids_cached_byte_size_{0},
870 values_{visibility, arena, from.values_},
871 _values_cached_byte_size_{0},
875 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
876 const SparseInt32VectorProto& from)
877#if defined(PROTOBUF_CUSTOM_VTABLE)
880 : ::google::protobuf::Message(arena) {
884 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
885 from._internal_metadata_);
886 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
890PROTOBUF_NDEBUG_INLINE SparseInt32VectorProto::Impl_::Impl_(
891 ::google::protobuf::internal::InternalVisibility visibility,
892 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
893 : ids_{visibility, arena},
894 _ids_cached_byte_size_{0},
895 values_{visibility, arena},
896 _values_cached_byte_size_{0},
899inline void SparseInt32VectorProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
900 new (&
_impl_) Impl_(internal_visibility(), arena);
906inline void SparseInt32VectorProto::SharedDtor(MessageLite& self) {
908 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
909 ABSL_DCHECK(this_.GetArena() ==
nullptr);
914 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
915 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
919 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
922 InternalGetArenaOffset(
926 InternalGetArenaOffset(
929 if (arena_bits.has_value()) {
930 return ::google::protobuf::internal::MessageCreator::ZeroInit(
931 sizeof(SparseInt32VectorProto), alignof(SparseInt32VectorProto), *arena_bits);
933 return ::google::protobuf::internal::MessageCreator(&SparseInt32VectorProto::PlacementNew_,
934 sizeof(SparseInt32VectorProto),
935 alignof(SparseInt32VectorProto));
939 return ::google::protobuf::internal::ClassDataFull{
940 ::google::protobuf::internal::ClassData{
945 &SparseInt32VectorProto::MergeImpl,
946 ::google::protobuf::Message::GetNewImpl<SparseInt32VectorProto>(),
947#if defined(PROTOBUF_CUSTOM_VTABLE)
948 &SparseInt32VectorProto::SharedDtor,
955 &SparseInt32VectorProto::kDescriptorMethods,
961PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
965PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
971PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
972const ::_pbi::TcParseTable<1, 2, 0, 0, 2>
973SparseInt32VectorProto::_table_ = {
978 offsetof(
decltype(_table_), field_lookup_table),
980 offsetof(
decltype(_table_), field_entries),
983 offsetof(
decltype(_table_), field_names),
986 ::_pbi::TcParser::GenericFallback,
987 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
988 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseInt32VectorProto>(),
992 {::_pbi::TcParser::FastV32P1,
995 {::_pbi::TcParser::FastV64P1,
1002 (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
1005 (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)},
1013 ::google::protobuf::internal::TSanWrite(&
_impl_);
1014 ::uint32_t cached_has_bits = 0;
1016 (void) cached_has_bits;
1020 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1023#if defined(PROTOBUF_CUSTOM_VTABLE)
1025 const ::google::protobuf::MessageLite&
base, ::uint8_t* PROTOBUF_NONNULL target,
1026 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1030 ::uint8_t* PROTOBUF_NONNULL target,
1031 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
1035 ::uint32_t cached_has_bits = 0;
1036 (void)cached_has_bits;
1040 int byte_size = this_.
_impl_._ids_cached_byte_size_.Get();
1041 if (byte_size > 0) {
1042 target = stream->WriteInt64Packed(
1043 1, this_._internal_ids(), byte_size, target);
1049 int byte_size = this_.
_impl_._values_cached_byte_size_.Get();
1050 if (byte_size > 0) {
1051 target = stream->WriteInt32Packed(
1052 2, this_._internal_values(), byte_size, target);
1056 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1058 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1059 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1065#if defined(PROTOBUF_CUSTOM_VTABLE)
1073 ::size_t total_size = 0;
1075 ::uint32_t cached_has_bits = 0;
1077 (void)cached_has_bits;
1079 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1084 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
1085 this_._internal_ids(), 1,
1086 this_._impl_._ids_cached_byte_size_);
1091 ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize(
1092 this_._internal_values(), 1,
1093 this_._impl_._values_cached_byte_size_);
1096 return this_.MaybeComputeUnknownFieldsSize(total_size,
1097 &this_._impl_._cached_size_);
1100void SparseInt32VectorProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
1104 ABSL_DCHECK_NE(&from, _this);
1105 ::uint32_t cached_has_bits = 0;
1106 (void) cached_has_bits;
1108 _this->_internal_mutable_ids()->MergeFrom(from._internal_ids());
1109 _this->_internal_mutable_values()->MergeFrom(from._internal_values());
1110 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
1115 if (&from ==
this)
return;
1121void SparseInt32VectorProto::InternalSwap(
SparseInt32VectorProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1123 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1124 _impl_.ids_.InternalSwap(&other->_impl_.ids_);
1125 _impl_.values_.InternalSwap(&other->_impl_.values_);
1129 return ::google::protobuf::Message::GetMetadataImpl(
GetClassData()->full());
1136 decltype(::std::declval<SparseVectorFilterProto>()._impl_._has_bits_);
1142#if defined(PROTOBUF_CUSTOM_VTABLE)
1145 : ::google::protobuf::Message(arena) {
1150PROTOBUF_NDEBUG_INLINE SparseVectorFilterProto::Impl_::Impl_(
1151 ::google::protobuf::internal::InternalVisibility visibility,
1152 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
1153 const ::operations_research::math_opt::SparseVectorFilterProto& from_msg)
1154 : _has_bits_{from._has_bits_},
1156 filtered_ids_{visibility, arena, from.filtered_ids_},
1157 _filtered_ids_cached_byte_size_{0} {}
1160 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1161 const SparseVectorFilterProto& from)
1162#if defined(PROTOBUF_CUSTOM_VTABLE)
1165 : ::google::protobuf::Message(arena) {
1169 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
1170 from._internal_metadata_);
1171 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1172 ::memcpy(
reinterpret_cast<char *
>(&
_impl_) +
1173 offsetof(Impl_, skip_zero_values_),
1174 reinterpret_cast<const char *
>(&from._impl_) +
1175 offsetof(Impl_, skip_zero_values_),
1176 offsetof(Impl_, filter_by_ids_) -
1177 offsetof(Impl_, skip_zero_values_) +
1178 sizeof(Impl_::filter_by_ids_));
1182PROTOBUF_NDEBUG_INLINE SparseVectorFilterProto::Impl_::Impl_(
1183 ::google::protobuf::internal::InternalVisibility visibility,
1184 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1186 filtered_ids_{visibility, arena},
1187 _filtered_ids_cached_byte_size_{0} {}
1189inline void SparseVectorFilterProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1190 new (&
_impl_) Impl_(internal_visibility(), arena);
1191 ::memset(
reinterpret_cast<char *
>(&
_impl_) +
1192 offsetof(Impl_, skip_zero_values_),
1194 offsetof(Impl_, filter_by_ids_) -
1195 offsetof(Impl_, skip_zero_values_) +
1196 sizeof(Impl_::filter_by_ids_));
1204 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1205 ABSL_DCHECK(this_.GetArena() ==
nullptr);
1210 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
1211 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1215 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
1218 InternalGetArenaOffset(
1219 ::google::protobuf::Message::internal_visibility()),
1221 if (arena_bits.has_value()) {
1222 return ::google::protobuf::internal::MessageCreator::ZeroInit(
1231 return ::google::protobuf::internal::ClassDataFull{
1232 ::google::protobuf::internal::ClassData{
1237 &SparseVectorFilterProto::MergeImpl,
1238 ::google::protobuf::Message::GetNewImpl<SparseVectorFilterProto>(),
1239#if defined(PROTOBUF_CUSTOM_VTABLE)
1240 &SparseVectorFilterProto::SharedDtor,
1247 &SparseVectorFilterProto::kDescriptorMethods,
1253PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1257PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1263PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1264const ::_pbi::TcParseTable<2, 3, 0, 0, 2>
1265SparseVectorFilterProto::_table_ = {
1270 offsetof(
decltype(_table_), field_lookup_table),
1272 offsetof(
decltype(_table_), field_entries),
1275 offsetof(
decltype(_table_), field_names),
1278 ::_pbi::TcParser::GenericFallback,
1279 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1280 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseVectorFilterProto>(),
1283 {::_pbi::TcParser::MiniParse, {}},
1285 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(
SparseVectorFilterProto, _impl_.skip_zero_values_), 0>(),
1291 {::_pbi::TcParser::FastV64P1,
1298 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
1301 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
1304 (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
1312 ::google::protobuf::internal::TSanWrite(&
_impl_);
1313 ::uint32_t cached_has_bits = 0;
1315 (void) cached_has_bits;
1317 _impl_.filtered_ids_.Clear();
1318 ::memset(&
_impl_.skip_zero_values_, 0,
static_cast<::
size_t>(
1319 reinterpret_cast<char*
>(&
_impl_.filter_by_ids_) -
1320 reinterpret_cast<char*
>(&
_impl_.skip_zero_values_)) +
sizeof(
_impl_.filter_by_ids_));
1321 _impl_._has_bits_.Clear();
1322 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1325#if defined(PROTOBUF_CUSTOM_VTABLE)
1327 const ::google::protobuf::MessageLite&
base, ::uint8_t* PROTOBUF_NONNULL target,
1328 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1332 ::uint8_t* PROTOBUF_NONNULL target,
1333 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
1337 ::uint32_t cached_has_bits = 0;
1338 (void)cached_has_bits;
1341 if ((this_.
_impl_._has_bits_[0] & 0x00000001u) != 0) {
1342 if (this_._internal_skip_zero_values() != 0) {
1343 target = stream->EnsureSpace(target);
1344 target = ::_pbi::WireFormatLite::WriteBoolToArray(
1345 1, this_._internal_skip_zero_values(), target);
1350 if ((this_.
_impl_._has_bits_[0] & 0x00000002u) != 0) {
1351 if (this_._internal_filter_by_ids() != 0) {
1352 target = stream->EnsureSpace(target);
1353 target = ::_pbi::WireFormatLite::WriteBoolToArray(
1354 2, this_._internal_filter_by_ids(), target);
1360 int byte_size = this_.
_impl_._filtered_ids_cached_byte_size_.Get();
1361 if (byte_size > 0) {
1362 target = stream->WriteInt64Packed(
1363 3, this_._internal_filtered_ids(), byte_size, target);
1367 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1369 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1370 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1376#if defined(PROTOBUF_CUSTOM_VTABLE)
1384 ::size_t total_size = 0;
1386 ::uint32_t cached_has_bits = 0;
1388 (void)cached_has_bits;
1390 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1395 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
1396 this_._internal_filtered_ids(), 1,
1397 this_._impl_._filtered_ids_cached_byte_size_);
1400 cached_has_bits = this_._impl_._has_bits_[0];
1401 if ((cached_has_bits & 0x00000003u) != 0) {
1403 if ((cached_has_bits & 0x00000001u) != 0) {
1404 if (this_._internal_skip_zero_values() != 0) {
1409 if ((cached_has_bits & 0x00000002u) != 0) {
1410 if (this_._internal_filter_by_ids() != 0) {
1415 return this_.MaybeComputeUnknownFieldsSize(total_size,
1416 &this_._impl_._cached_size_);
1419void SparseVectorFilterProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
1423 ABSL_DCHECK_NE(&from, _this);
1424 ::uint32_t cached_has_bits = 0;
1425 (void) cached_has_bits;
1427 _this->_internal_mutable_filtered_ids()->MergeFrom(from._internal_filtered_ids());
1428 cached_has_bits = from._impl_._has_bits_[0];
1429 if ((cached_has_bits & 0x00000003u) != 0) {
1430 if ((cached_has_bits & 0x00000001u) != 0) {
1431 if (from._internal_skip_zero_values() != 0) {
1432 _this->_impl_.skip_zero_values_ = from._impl_.skip_zero_values_;
1435 if ((cached_has_bits & 0x00000002u) != 0) {
1436 if (from._internal_filter_by_ids() != 0) {
1437 _this->_impl_.filter_by_ids_ = from._impl_.filter_by_ids_;
1441 _this->_impl_._has_bits_[0] |= cached_has_bits;
1442 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
1447 if (&from ==
this)
return;
1453void SparseVectorFilterProto::InternalSwap(
SparseVectorFilterProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1455 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1456 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1457 _impl_.filtered_ids_.InternalSwap(&other->_impl_.filtered_ids_);
1458 ::google::protobuf::internal::memswap<
1462 reinterpret_cast<char*
>(&
_impl_.skip_zero_values_),
1463 reinterpret_cast<char*
>(&other->_impl_.skip_zero_values_));
1467 return ::google::protobuf::Message::GetMetadataImpl(
GetClassData()->full());
1476#if defined(PROTOBUF_CUSTOM_VTABLE)
1479 : ::google::protobuf::Message(arena) {
1484PROTOBUF_NDEBUG_INLINE SparseDoubleMatrixProto::Impl_::Impl_(
1485 ::google::protobuf::internal::InternalVisibility visibility,
1486 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
1487 const ::operations_research::math_opt::SparseDoubleMatrixProto& from_msg)
1488 : row_ids_{visibility, arena, from.row_ids_},
1489 _row_ids_cached_byte_size_{0},
1490 column_ids_{visibility, arena, from.column_ids_},
1491 _column_ids_cached_byte_size_{0},
1492 coefficients_{visibility, arena, from.coefficients_},
1496 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1497 const SparseDoubleMatrixProto& from)
1498#if defined(PROTOBUF_CUSTOM_VTABLE)
1501 : ::google::protobuf::Message(arena) {
1505 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
1506 from._internal_metadata_);
1507 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1511PROTOBUF_NDEBUG_INLINE SparseDoubleMatrixProto::Impl_::Impl_(
1512 ::google::protobuf::internal::InternalVisibility visibility,
1513 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1514 : row_ids_{visibility, arena},
1515 _row_ids_cached_byte_size_{0},
1516 column_ids_{visibility, arena},
1517 _column_ids_cached_byte_size_{0},
1518 coefficients_{visibility, arena},
1521inline void SparseDoubleMatrixProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1522 new (&
_impl_) Impl_(internal_visibility(), arena);
1528inline void SparseDoubleMatrixProto::SharedDtor(MessageLite& self) {
1530 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1531 ABSL_DCHECK(this_.GetArena() ==
nullptr);
1536 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
1537 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1541 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
1544 InternalGetArenaOffset(
1545 ::google::protobuf::Message::internal_visibility()),
1548 InternalGetArenaOffset(
1552 InternalGetArenaOffset(
1555 if (arena_bits.has_value()) {
1556 return ::google::protobuf::internal::MessageCreator::ZeroInit(
1557 sizeof(SparseDoubleMatrixProto), alignof(SparseDoubleMatrixProto), *arena_bits);
1559 return ::google::protobuf::internal::MessageCreator(&SparseDoubleMatrixProto::PlacementNew_,
1560 sizeof(SparseDoubleMatrixProto),
1561 alignof(SparseDoubleMatrixProto));
1565 return ::google::protobuf::internal::ClassDataFull{
1566 ::google::protobuf::internal::ClassData{
1571 &SparseDoubleMatrixProto::MergeImpl,
1572 ::google::protobuf::Message::GetNewImpl<SparseDoubleMatrixProto>(),
1573#if defined(PROTOBUF_CUSTOM_VTABLE)
1574 &SparseDoubleMatrixProto::SharedDtor,
1581 &SparseDoubleMatrixProto::kDescriptorMethods,
1587PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1591PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1597PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1598const ::_pbi::TcParseTable<2, 3, 0, 0, 2>
1599SparseDoubleMatrixProto::_table_ = {
1604 offsetof(
decltype(_table_), field_lookup_table),
1606 offsetof(
decltype(_table_), field_entries),
1609 offsetof(
decltype(_table_), field_names),
1612 ::_pbi::TcParser::GenericFallback,
1613 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1614 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleMatrixProto>(),
1617 {::_pbi::TcParser::MiniParse, {}},
1619 {::_pbi::TcParser::FastV64P1,
1622 {::_pbi::TcParser::FastV64P1,
1625 {::_pbi::TcParser::FastF64P1,
1632 (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
1635 (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
1638 (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)},
1646 ::google::protobuf::internal::TSanWrite(&
_impl_);
1647 ::uint32_t cached_has_bits = 0;
1649 (void) cached_has_bits;
1652 _impl_.column_ids_.Clear();
1653 _impl_.coefficients_.Clear();
1654 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1657#if defined(PROTOBUF_CUSTOM_VTABLE)
1659 const ::google::protobuf::MessageLite&
base, ::uint8_t* PROTOBUF_NONNULL target,
1660 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1664 ::uint8_t* PROTOBUF_NONNULL target,
1665 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
1669 ::uint32_t cached_has_bits = 0;
1670 (void)cached_has_bits;
1674 int byte_size = this_.
_impl_._row_ids_cached_byte_size_.Get();
1675 if (byte_size > 0) {
1676 target = stream->WriteInt64Packed(
1677 1, this_._internal_row_ids(), byte_size, target);
1683 int byte_size = this_.
_impl_._column_ids_cached_byte_size_.Get();
1684 if (byte_size > 0) {
1685 target = stream->WriteInt64Packed(
1686 2, this_._internal_column_ids(), byte_size, target);
1691 if (this_._internal_coefficients_size() > 0) {
1692 target = stream->WriteFixedPacked(3, this_._internal_coefficients(), target);
1695 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1697 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1698 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1704#if defined(PROTOBUF_CUSTOM_VTABLE)
1712 ::size_t total_size = 0;
1714 ::uint32_t cached_has_bits = 0;
1716 (void)cached_has_bits;
1718 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1723 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
1724 this_._internal_row_ids(), 1,
1725 this_._impl_._row_ids_cached_byte_size_);
1730 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
1731 this_._internal_column_ids(), 1,
1732 this_._impl_._column_ids_cached_byte_size_);
1736 ::size_t data_size = ::size_t{8} *
1737 ::_pbi::FromIntSize(this_._internal_coefficients_size());
1738 ::size_t tag_size = data_size == 0
1740 : 1 + ::_pbi::WireFormatLite::Int32Size(
1741 static_cast<::int32_t
>(data_size));
1742 total_size += tag_size + data_size;
1745 return this_.MaybeComputeUnknownFieldsSize(total_size,
1746 &this_._impl_._cached_size_);
1749void SparseDoubleMatrixProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
1753 ABSL_DCHECK_NE(&from, _this);
1754 ::uint32_t cached_has_bits = 0;
1755 (void) cached_has_bits;
1757 _this->_internal_mutable_row_ids()->MergeFrom(from._internal_row_ids());
1758 _this->_internal_mutable_column_ids()->MergeFrom(from._internal_column_ids());
1759 _this->_internal_mutable_coefficients()->MergeFrom(from._internal_coefficients());
1760 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
1765 if (&from ==
this)
return;
1771void SparseDoubleMatrixProto::InternalSwap(
SparseDoubleMatrixProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1773 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1774 _impl_.row_ids_.InternalSwap(&other->_impl_.row_ids_);
1775 _impl_.column_ids_.InternalSwap(&other->_impl_.column_ids_);
1776 _impl_.coefficients_.InternalSwap(&other->_impl_.coefficients_);
1780 return ::google::protobuf::Message::GetMetadataImpl(
GetClassData()->full());
1787 decltype(::std::declval<LinearExpressionProto>()._impl_._has_bits_);
1788 static constexpr ::int32_t kHasBitsOffset =
1793#if defined(PROTOBUF_CUSTOM_VTABLE)
1796 : ::google::protobuf::Message(arena) {
1801PROTOBUF_NDEBUG_INLINE LinearExpressionProto::Impl_::Impl_(
1802 ::google::protobuf::internal::InternalVisibility visibility,
1803 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
1804 const ::operations_research::math_opt::LinearExpressionProto& from_msg)
1805 : _has_bits_{from._has_bits_},
1807 ids_{visibility, arena, from.ids_},
1808 _ids_cached_byte_size_{0},
1809 coefficients_{visibility, arena, from.coefficients_} {}
1812 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1813 const LinearExpressionProto& from)
1814#if defined(PROTOBUF_CUSTOM_VTABLE)
1817 : ::google::protobuf::Message(arena) {
1821 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
1822 from._internal_metadata_);
1823 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1824 _impl_.offset_ = from._impl_.offset_;
1828PROTOBUF_NDEBUG_INLINE LinearExpressionProto::Impl_::Impl_(
1829 ::google::protobuf::internal::InternalVisibility visibility,
1830 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1832 ids_{visibility, arena},
1833 _ids_cached_byte_size_{0},
1834 coefficients_{visibility, arena} {}
1836inline void LinearExpressionProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1837 new (&
_impl_) Impl_(internal_visibility(), arena);
1844inline void LinearExpressionProto::SharedDtor(MessageLite& self) {
1846 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1847 ABSL_DCHECK(this_.GetArena() ==
nullptr);
1848 this_._impl_.~Impl_();
1852 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
1853 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1857 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
1860 InternalGetArenaOffset(
1861 ::google::protobuf::Message::internal_visibility()),
1864 InternalGetArenaOffset(
1867 if (arena_bits.has_value()) {
1868 return ::google::protobuf::internal::MessageCreator::ZeroInit(
1869 sizeof(LinearExpressionProto), alignof(LinearExpressionProto), *arena_bits);
1871 return ::google::protobuf::internal::MessageCreator(&LinearExpressionProto::PlacementNew_,
1872 sizeof(LinearExpressionProto),
1873 alignof(LinearExpressionProto));
1877 return ::google::protobuf::internal::ClassDataFull{
1878 ::google::protobuf::internal::ClassData{
1883 &LinearExpressionProto::MergeImpl,
1884 ::google::protobuf::Message::GetNewImpl<LinearExpressionProto>(),
1885#if defined(PROTOBUF_CUSTOM_VTABLE)
1886 &LinearExpressionProto::SharedDtor,
1893 &LinearExpressionProto::kDescriptorMethods,
1899PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1903PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1909PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1910const ::_pbi::TcParseTable<2, 3, 0, 0, 2>
1911LinearExpressionProto::_table_ = {
1916 offsetof(
decltype(_table_), field_lookup_table),
1918 offsetof(
decltype(_table_), field_entries),
1921 offsetof(
decltype(_table_), field_names),
1924 ::_pbi::TcParser::GenericFallback,
1925 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1926 ::_pbi::TcParser::GetTable<::operations_research::math_opt::LinearExpressionProto>(),
1929 {::_pbi::TcParser::MiniParse, {}},
1931 {::_pbi::TcParser::FastV64P1,
1934 {::_pbi::TcParser::FastF64P1,
1937 {::_pbi::TcParser::FastF64S1,
1944 (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
1947 (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)},
1950 (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
1958 ::google::protobuf::internal::TSanWrite(&
_impl_);
1959 ::uint32_t cached_has_bits = 0;
1961 (void) cached_has_bits;
1964 _impl_.coefficients_.Clear();
1966 _impl_._has_bits_.Clear();
1967 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1970#if defined(PROTOBUF_CUSTOM_VTABLE)
1972 const ::google::protobuf::MessageLite&
base, ::uint8_t* PROTOBUF_NONNULL target,
1973 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1977 ::uint8_t* PROTOBUF_NONNULL target,
1978 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
1982 ::uint32_t cached_has_bits = 0;
1983 (void)cached_has_bits;
1987 int byte_size = this_.
_impl_._ids_cached_byte_size_.Get();
1988 if (byte_size > 0) {
1989 target = stream->WriteInt64Packed(
1990 1, this_._internal_ids(), byte_size, target);
1995 if (this_._internal_coefficients_size() > 0) {
1996 target = stream->WriteFixedPacked(2, this_._internal_coefficients(), target);
2000 if ((this_.
_impl_._has_bits_[0] & 0x00000001u) != 0) {
2001 if (::absl::bit_cast<::uint64_t>(this_._internal_offset()) != 0) {
2002 target = stream->EnsureSpace(target);
2003 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
2004 3, this_._internal_offset(), target);
2008 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
2010 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2011 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
2017#if defined(PROTOBUF_CUSTOM_VTABLE)
2025 ::size_t total_size = 0;
2027 ::uint32_t cached_has_bits = 0;
2029 (void)cached_has_bits;
2031 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
2036 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
2037 this_._internal_ids(), 1,
2038 this_._impl_._ids_cached_byte_size_);
2042 ::size_t data_size = ::size_t{8} *
2043 ::_pbi::FromIntSize(this_._internal_coefficients_size());
2044 ::size_t tag_size = data_size == 0
2046 : 1 + ::_pbi::WireFormatLite::Int32Size(
2047 static_cast<::int32_t
>(data_size));
2048 total_size += tag_size + data_size;
2053 cached_has_bits = this_._impl_._has_bits_[0];
2054 if ((cached_has_bits & 0x00000001u) != 0) {
2055 if (::absl::bit_cast<::uint64_t>(this_._internal_offset()) != 0) {
2060 return this_.MaybeComputeUnknownFieldsSize(total_size,
2061 &this_._impl_._cached_size_);
2064void LinearExpressionProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
2068 ABSL_DCHECK_NE(&from, _this);
2069 ::uint32_t cached_has_bits = 0;
2070 (void) cached_has_bits;
2072 _this->_internal_mutable_ids()->MergeFrom(from._internal_ids());
2073 _this->_internal_mutable_coefficients()->MergeFrom(from._internal_coefficients());
2074 cached_has_bits = from._impl_._has_bits_[0];
2075 if ((cached_has_bits & 0x00000001u) != 0) {
2076 if (::absl::bit_cast<::uint64_t>(from._internal_offset()) != 0) {
2077 _this->_impl_.offset_ = from._impl_.offset_;
2080 _this->_impl_._has_bits_[0] |= cached_has_bits;
2081 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
2086 if (&from ==
this)
return;
2092void LinearExpressionProto::InternalSwap(
LinearExpressionProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
2094 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2095 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2096 _impl_.ids_.InternalSwap(&other->_impl_.ids_);
2097 _impl_.coefficients_.InternalSwap(&other->_impl_.coefficients_);
2102 return ::google::protobuf::Message::GetMetadataImpl(
GetClassData()->full());
2112PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
2115 ::std::false_type{});
2116#include "google/protobuf/port_undef.inc"
static PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::std::false_type _static_init2_
@protoc_insertion_point(global_scope)
static const ::_pb::Message *PROTOBUF_NONNULL const file_default_instances[]
static constexpr ::int32_t kHasBitsOffset
friend class ::google::protobuf::MessageLite
::size_t ByteSizeLong() const final
static constexpr auto InternalNewImpl_()
~LinearExpressionProto() PROTOBUF_FINAL
void MergeFrom(const LinearExpressionProto &from)
::google::protobuf::Metadata GetMetadata() const
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void CopyFrom(const LinearExpressionProto &from)
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
friend void swap(LinearExpressionProto &a, LinearExpressionProto &b)
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
static constexpr auto InternalGenerateClassData_()
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
::google::protobuf::Metadata GetMetadata() const
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
void CopyFrom(const SparseBoolVectorProto &from)
::size_t ByteSizeLong() const final
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
static constexpr auto InternalGenerateClassData_()
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
~SparseBoolVectorProto() PROTOBUF_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)
static constexpr auto InternalNewImpl_()
friend class ::google::protobuf::MessageLite
void MergeFrom(const SparseDoubleMatrixProto &from)
SparseDoubleMatrixProto()
static constexpr auto InternalGenerateClassData_()
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void CopyFrom(const SparseDoubleMatrixProto &from)
::google::protobuf::Metadata GetMetadata() const
::size_t ByteSizeLong() const final
~SparseDoubleMatrixProto() PROTOBUF_FINAL
static constexpr auto InternalNewImpl_()
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
friend class ::google::protobuf::MessageLite
void CopyFrom(const SparseDoubleVectorProto &from)
SparseDoubleVectorProto()
static constexpr auto InternalGenerateClassData_()
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
static constexpr auto InternalNewImpl_()
void MergeFrom(const SparseDoubleVectorProto &from)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
~SparseDoubleVectorProto() PROTOBUF_FINAL
::size_t ByteSizeLong() const final
::google::protobuf::Metadata GetMetadata() const
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
friend class ::google::protobuf::MessageLite
static constexpr auto InternalGenerateClassData_()
~SparseInt32VectorProto() PROTOBUF_FINAL
void MergeFrom(const SparseInt32VectorProto &from)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
::size_t ByteSizeLong() const final
void CopyFrom(const SparseInt32VectorProto &from)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
static constexpr auto InternalNewImpl_()
::google::protobuf::Metadata GetMetadata() const
static constexpr ::int32_t kHasBitsOffset
friend class ::google::protobuf::MessageLite
~SparseVectorFilterProto() PROTOBUF_FINAL
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
static constexpr auto InternalNewImpl_()
friend void swap(SparseVectorFilterProto &a, SparseVectorFilterProto &b)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
static constexpr auto InternalGenerateClassData_()
void MergeFrom(const SparseVectorFilterProto &from)
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
::google::protobuf::Metadata GetMetadata() const
SparseVectorFilterProto()
void CopyFrom(const SparseVectorFilterProto &from)
::size_t ByteSizeLong() const final
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
An object oriented wrapper for quadratic constraints in ModelStorage.
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SparseInt32VectorProto_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LinearExpressionProtoDefaultTypeInternal _LinearExpressionProto_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SparseDoubleVectorProto_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SparseDoubleVectorProtoDefaultTypeInternal _SparseDoubleVectorProto_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SparseVectorFilterProtoDefaultTypeInternal _SparseVectorFilterProto_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SparseInt32VectorProtoDefaultTypeInternal _SparseInt32VectorProto_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SparseDoubleMatrixProtoDefaultTypeInternal _SparseDoubleMatrixProto_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SparseDoubleMatrixProto_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SparseVectorFilterProto_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SparseBoolVectorProto_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull LinearExpressionProto_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SparseBoolVectorProtoDefaultTypeInternal _SparseBoolVectorProto_default_instance_
In SWIG mode, we don't want anything besides these top-level includes.
static constexpr ::_pbi::MigrationSchema *PROTOBUF_NULLABLE schemas
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fsparse_5fcontainers_2eproto
static constexprconst ::_pb::EnumDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_enum_descriptors_ortools_2fmath_5fopt_2fsparse_5fcontainers_2eproto
static constexprconst ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_service_descriptors_ortools_2fmath_5fopt_2fsparse_5fcontainers_2eproto
::absl::once_flag descriptor_table_ortools_2fmath_5fopt_2fsparse_5fcontainers_2eproto_once
const ::uint32_t TableStruct_ortools_2fmath_5fopt_2fsparse_5fcontainers_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold)
LinearExpressionProto _instance
PROTOBUF_CONSTEXPR LinearExpressionProtoDefaultTypeInternal()
~LinearExpressionProtoDefaultTypeInternal()
PROTOBUF_CONSTEXPR SparseBoolVectorProtoDefaultTypeInternal()
~SparseBoolVectorProtoDefaultTypeInternal()
SparseBoolVectorProto _instance
PROTOBUF_CONSTEXPR SparseDoubleMatrixProtoDefaultTypeInternal()
SparseDoubleMatrixProto _instance
~SparseDoubleMatrixProtoDefaultTypeInternal()
PROTOBUF_CONSTEXPR SparseDoubleVectorProtoDefaultTypeInternal()
SparseDoubleVectorProto _instance
~SparseDoubleVectorProtoDefaultTypeInternal()
SparseInt32VectorProto _instance
PROTOBUF_CONSTEXPR SparseInt32VectorProtoDefaultTypeInternal()
~SparseInt32VectorProtoDefaultTypeInternal()
SparseVectorFilterProto _instance
~SparseVectorFilterProtoDefaultTypeInternal()
PROTOBUF_CONSTEXPR SparseVectorFilterProtoDefaultTypeInternal()