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
62 _ids_cached_byte_size_{0},
64 _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
90 _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
117 _row_ids_cached_byte_size_{0},
119 _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
146 _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
255static const ::_pbi::MigrationSchema
274 "\n(ortools/math_opt/sparse_containers.pro"
275 "to\022\034operations_research.math_opt\"6\n\027Spar"
276 "seDoubleVectorProto\022\013\n\003ids\030\001 \003(\003\022\016\n\006valu"
277 "es\030\002 \003(\001\"4\n\025SparseBoolVectorProto\022\013\n\003ids"
278 "\030\001 \003(\003\022\016\n\006values\030\002 \003(\010\"5\n\026SparseInt32Vec"
279 "torProto\022\013\n\003ids\030\001 \003(\003\022\016\n\006values\030\002 \003(\005\"`\n"
280 "\027SparseVectorFilterProto\022\030\n\020skip_zero_va"
281 "lues\030\001 \001(\010\022\025\n\rfilter_by_ids\030\002 \001(\010\022\024\n\014fil"
282 "tered_ids\030\003 \003(\003\"T\n\027SparseDoubleMatrixPro"
283 "to\022\017\n\007row_ids\030\001 \003(\003\022\022\n\ncolumn_ids\030\002 \003(\003\022"
284 "\024\n\014coefficients\030\003 \003(\001\"J\n\025LinearExpressio"
285 "nProto\022\013\n\003ids\030\001 \003(\003\022\024\n\014coefficients\030\002 \003("
286 "\001\022\016\n\006offset\030\003 \001(\001B\036\n\032com.google.ortools."
287 "mathoptP\001b\006proto3"
294 descriptor_table_protodef_ortools_2fmath_5fopt_2fsparse_5fcontainers_2eproto,
295 "ortools/math_opt/sparse_containers.proto",
313 decltype(::std::declval<SparseDoubleVectorProto>()._impl_._has_bits_);
319#if defined(PROTOBUF_CUSTOM_VTABLE)
322 : ::google::protobuf::Message(arena) {
327PROTOBUF_NDEBUG_INLINE SparseDoubleVectorProto::Impl_::Impl_(
328 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
329 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
330 [[maybe_unused]] const ::operations_research::math_opt::SparseDoubleVectorProto& from_msg)
331 : _has_bits_{from._has_bits_},
333 ids_{visibility, arena, from.ids_},
334 _ids_cached_byte_size_{0},
335 values_{visibility, arena, from.values_} {}
338 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
340#if defined(PROTOBUF_CUSTOM_VTABLE)
343 : ::google::protobuf::Message(arena) {
347 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
348 from._internal_metadata_);
349 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
353PROTOBUF_NDEBUG_INLINE SparseDoubleVectorProto::Impl_::Impl_(
354 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
355 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
357 ids_{visibility, arena},
358 _ids_cached_byte_size_{0},
359 values_{visibility, arena} {}
361inline void SparseDoubleVectorProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
362 new (&
_impl_) Impl_(internal_visibility(), arena);
368inline void SparseDoubleVectorProto::SharedDtor(
MessageLite& self) {
370 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
371 this_.CheckHasBitConsistency();
373 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
374 ABSL_DCHECK(this_.GetArena() ==
nullptr);
378inline void* PROTOBUF_NONNULL SparseDoubleVectorProto::PlacementNew_(
379 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
380 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
383constexpr auto SparseDoubleVectorProto::InternalNewImpl_() {
384 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
387 InternalGetArenaOffset(
388 ::google::protobuf::Message::internal_visibility()),
391 InternalGetArenaOffset(
392 ::google::protobuf::Message::internal_visibility()),
394 if (arena_bits.has_value()) {
395 return ::google::protobuf::internal::MessageCreator::ZeroInit(
396 sizeof(SparseDoubleVectorProto), alignof(SparseDoubleVectorProto), *arena_bits);
398 return ::google::protobuf::internal::MessageCreator(&SparseDoubleVectorProto::PlacementNew_,
399 sizeof(SparseDoubleVectorProto),
400 alignof(SparseDoubleVectorProto));
404 return ::google::protobuf::internal::ClassDataFull{
405 ::google::protobuf::internal::ClassData{
410 &SparseDoubleVectorProto::MergeImpl,
411 ::google::protobuf::Message::GetNewImpl<SparseDoubleVectorProto>(),
412#if defined(PROTOBUF_CUSTOM_VTABLE)
413 &SparseDoubleVectorProto::SharedDtor,
420 &SparseDoubleVectorProto::kDescriptorMethods,
426PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
430PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
431SparseDoubleVectorProto::GetClassData()
const {
436PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
437const ::_pbi::TcParseTable<1, 2, 0, 0, 2>
438SparseDoubleVectorProto::_table_ = {
443 offsetof(
decltype(_table_), field_lookup_table),
445 offsetof(
decltype(_table_), field_entries),
448 offsetof(
decltype(_table_), field_names),
451 ::_pbi::TcParser::GenericFallback,
452 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
453 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleVectorProto>(),
457 {::_pbi::TcParser::FastF64P1,
461 {::_pbi::TcParser::FastV64P1,
478 ::google::protobuf::internal::TSanWrite(&
_impl_);
479 ::uint32_t cached_has_bits = 0;
481 (void) cached_has_bits;
483 cached_has_bits =
_impl_._has_bits_[0];
484 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
485 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
488 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
492 _impl_._has_bits_.Clear();
493 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
496#if defined(PROTOBUF_CUSTOM_VTABLE)
498 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
499 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
503 ::uint8_t* PROTOBUF_NONNULL target,
504 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
507 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
508 this_.CheckHasBitConsistency();
511 ::uint32_t cached_has_bits = 0;
512 (void)cached_has_bits;
514 cached_has_bits = this_.
_impl_._has_bits_[0];
516 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
518 int byte_size = this_.
_impl_._ids_cached_byte_size_.Get();
520 target = stream->WriteInt64Packed(
521 1, this_._internal_ids(), byte_size, target);
527 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
528 if (this_._internal_values_size() > 0) {
529 target = stream->WriteFixedPacked(2, this_._internal_values(), target);
533 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
535 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
536 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
542#if defined(PROTOBUF_CUSTOM_VTABLE)
550 ::size_t total_size = 0;
552 ::uint32_t cached_has_bits = 0;
554 (void)cached_has_bits;
556 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
557 cached_has_bits = this_.
_impl_._has_bits_[0];
558 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
560 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
562 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
563 this_._internal_ids(), 1,
564 this_.
_impl_._ids_cached_byte_size_);
567 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
568 ::size_t data_size = ::size_t{8} *
569 ::_pbi::FromIntSize(this_._internal_values_size());
570 ::size_t tag_size = data_size == 0
572 : 1 + ::_pbi::WireFormatLite::Int32Size(
573 static_cast<::int32_t
>(data_size));
574 total_size += tag_size + data_size;
577 return this_.MaybeComputeUnknownFieldsSize(total_size,
578 &this_.
_impl_._cached_size_);
581void SparseDoubleVectorProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
582 const ::google::protobuf::MessageLite& from_msg) {
586 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
587 from.CheckHasBitConsistency();
590 ABSL_DCHECK_NE(&from, _this);
591 ::uint32_t cached_has_bits = 0;
592 (void)cached_has_bits;
594 cached_has_bits = from._impl_._has_bits_[0];
595 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
596 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
597 _this->_internal_mutable_ids()->MergeFrom(from._internal_ids());
599 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
600 _this->_internal_mutable_values()->MergeFrom(from._internal_values());
603 _this->_impl_._has_bits_[0] |= cached_has_bits;
604 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
605 from._internal_metadata_);
610 if (&from ==
this)
return;
618 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
619 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
620 _impl_.ids_.InternalSwap(&other->_impl_.ids_);
621 _impl_.values_.InternalSwap(&other->_impl_.values_);
625 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
632 decltype(::std::declval<SparseBoolVectorProto>()._impl_._has_bits_);
638#if defined(PROTOBUF_CUSTOM_VTABLE)
641 : ::google::protobuf::Message(arena) {
646PROTOBUF_NDEBUG_INLINE SparseBoolVectorProto::Impl_::Impl_(
647 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
648 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
649 [[maybe_unused]] const ::operations_research::math_opt::SparseBoolVectorProto& from_msg)
650 : _has_bits_{from._has_bits_},
652 ids_{visibility, arena, from.ids_},
653 _ids_cached_byte_size_{0},
654 values_{visibility, arena, from.values_} {}
657 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
659#if defined(PROTOBUF_CUSTOM_VTABLE)
662 : ::google::protobuf::Message(arena) {
666 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
667 from._internal_metadata_);
668 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
672PROTOBUF_NDEBUG_INLINE SparseBoolVectorProto::Impl_::Impl_(
673 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
674 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
676 ids_{visibility, arena},
677 _ids_cached_byte_size_{0},
678 values_{visibility, arena} {}
680inline void SparseBoolVectorProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
681 new (&
_impl_) Impl_(internal_visibility(), arena);
687inline void SparseBoolVectorProto::SharedDtor(
MessageLite& self) {
689 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
690 this_.CheckHasBitConsistency();
692 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
693 ABSL_DCHECK(this_.GetArena() ==
nullptr);
697inline void* PROTOBUF_NONNULL SparseBoolVectorProto::PlacementNew_(
698 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
699 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
702constexpr auto SparseBoolVectorProto::InternalNewImpl_() {
703 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
706 InternalGetArenaOffset(
707 ::google::protobuf::Message::internal_visibility()),
710 InternalGetArenaOffset(
711 ::google::protobuf::Message::internal_visibility()),
713 if (arena_bits.has_value()) {
714 return ::google::protobuf::internal::MessageCreator::ZeroInit(
715 sizeof(SparseBoolVectorProto), alignof(SparseBoolVectorProto), *arena_bits);
717 return ::google::protobuf::internal::MessageCreator(&SparseBoolVectorProto::PlacementNew_,
718 sizeof(SparseBoolVectorProto),
719 alignof(SparseBoolVectorProto));
723 return ::google::protobuf::internal::ClassDataFull{
724 ::google::protobuf::internal::ClassData{
729 &SparseBoolVectorProto::MergeImpl,
730 ::google::protobuf::Message::GetNewImpl<SparseBoolVectorProto>(),
731#if defined(PROTOBUF_CUSTOM_VTABLE)
732 &SparseBoolVectorProto::SharedDtor,
739 &SparseBoolVectorProto::kDescriptorMethods,
745PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
749PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
750SparseBoolVectorProto::GetClassData()
const {
755PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
756const ::_pbi::TcParseTable<1, 2, 0, 0, 2>
757SparseBoolVectorProto::_table_ = {
762 offsetof(
decltype(_table_), field_lookup_table),
764 offsetof(
decltype(_table_), field_entries),
767 offsetof(
decltype(_table_), field_names),
770 ::_pbi::TcParser::GenericFallback,
771 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
772 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseBoolVectorProto>(),
776 {::_pbi::TcParser::FastV8P1,
780 {::_pbi::TcParser::FastV64P1,
797 ::google::protobuf::internal::TSanWrite(&
_impl_);
798 ::uint32_t cached_has_bits = 0;
800 (void) cached_has_bits;
802 cached_has_bits =
_impl_._has_bits_[0];
803 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
804 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
807 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
811 _impl_._has_bits_.Clear();
812 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
815#if defined(PROTOBUF_CUSTOM_VTABLE)
817 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
818 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
822 ::uint8_t* PROTOBUF_NONNULL target,
823 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
826 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
827 this_.CheckHasBitConsistency();
830 ::uint32_t cached_has_bits = 0;
831 (void)cached_has_bits;
833 cached_has_bits = this_.
_impl_._has_bits_[0];
835 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
837 int byte_size = this_.
_impl_._ids_cached_byte_size_.Get();
839 target = stream->WriteInt64Packed(
840 1, this_._internal_ids(), byte_size, target);
846 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
847 if (this_._internal_values_size() > 0) {
848 target = stream->WriteFixedPacked(2, this_._internal_values(), target);
852 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
854 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
855 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
861#if defined(PROTOBUF_CUSTOM_VTABLE)
869 ::size_t total_size = 0;
871 ::uint32_t cached_has_bits = 0;
873 (void)cached_has_bits;
875 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
876 cached_has_bits = this_.
_impl_._has_bits_[0];
877 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
879 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
881 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
882 this_._internal_ids(), 1,
883 this_.
_impl_._ids_cached_byte_size_);
886 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
887 ::size_t data_size = ::size_t{1} *
888 ::_pbi::FromIntSize(this_._internal_values_size());
889 ::size_t tag_size = data_size == 0
891 : 1 + ::_pbi::WireFormatLite::Int32Size(
892 static_cast<::int32_t
>(data_size));
893 total_size += tag_size + data_size;
896 return this_.MaybeComputeUnknownFieldsSize(total_size,
897 &this_.
_impl_._cached_size_);
900void SparseBoolVectorProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
901 const ::google::protobuf::MessageLite& from_msg) {
905 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
906 from.CheckHasBitConsistency();
909 ABSL_DCHECK_NE(&from, _this);
910 ::uint32_t cached_has_bits = 0;
911 (void)cached_has_bits;
913 cached_has_bits = from._impl_._has_bits_[0];
914 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
915 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
916 _this->_internal_mutable_ids()->MergeFrom(from._internal_ids());
918 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
919 _this->_internal_mutable_values()->MergeFrom(from._internal_values());
922 _this->_impl_._has_bits_[0] |= cached_has_bits;
923 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
924 from._internal_metadata_);
929 if (&from ==
this)
return;
935void SparseBoolVectorProto::InternalSwap(
SparseBoolVectorProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
937 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
938 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
939 _impl_.ids_.InternalSwap(&other->_impl_.ids_);
940 _impl_.values_.InternalSwap(&other->_impl_.values_);
944 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
951 decltype(::std::declval<SparseInt32VectorProto>()._impl_._has_bits_);
957#if defined(PROTOBUF_CUSTOM_VTABLE)
960 : ::google::protobuf::Message(arena) {
965PROTOBUF_NDEBUG_INLINE SparseInt32VectorProto::Impl_::Impl_(
966 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
967 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
968 [[maybe_unused]] const ::operations_research::math_opt::SparseInt32VectorProto& from_msg)
969 : _has_bits_{from._has_bits_},
971 ids_{visibility, arena, from.ids_},
972 _ids_cached_byte_size_{0},
973 values_{visibility, arena, from.values_},
974 _values_cached_byte_size_{0} {}
977 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
979#if defined(PROTOBUF_CUSTOM_VTABLE)
982 : ::google::protobuf::Message(arena) {
986 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
987 from._internal_metadata_);
988 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
992PROTOBUF_NDEBUG_INLINE SparseInt32VectorProto::Impl_::Impl_(
993 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
994 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
996 ids_{visibility, arena},
997 _ids_cached_byte_size_{0},
998 values_{visibility, arena},
999 _values_cached_byte_size_{0} {}
1001inline void SparseInt32VectorProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1002 new (&
_impl_) Impl_(internal_visibility(), arena);
1008inline void SparseInt32VectorProto::SharedDtor(
MessageLite& self) {
1010 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1011 this_.CheckHasBitConsistency();
1013 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1014 ABSL_DCHECK(this_.GetArena() ==
nullptr);
1018inline void* PROTOBUF_NONNULL SparseInt32VectorProto::PlacementNew_(
1019 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
1020 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1021 return ::new (mem) SparseInt32VectorProto(arena);
1023constexpr auto SparseInt32VectorProto::InternalNewImpl_() {
1024 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
1025 PROTOBUF_FIELD_OFFSET(SparseInt32VectorProto,
_impl_.ids_) +
1027 InternalGetArenaOffset(
1028 ::google::protobuf::Message::internal_visibility()),
1029 PROTOBUF_FIELD_OFFSET(SparseInt32VectorProto,
_impl_.values_) +
1030 decltype(SparseInt32VectorProto::
_impl_.values_)::
1031 InternalGetArenaOffset(
1032 ::google::protobuf::Message::internal_visibility()),
1034 if (arena_bits.has_value()) {
1035 return ::google::protobuf::internal::MessageCreator::ZeroInit(
1036 sizeof(SparseInt32VectorProto), alignof(SparseInt32VectorProto), *arena_bits);
1038 return ::google::protobuf::internal::MessageCreator(&SparseInt32VectorProto::PlacementNew_,
1039 sizeof(SparseInt32VectorProto),
1040 alignof(SparseInt32VectorProto));
1044 return ::google::protobuf::internal::ClassDataFull{
1045 ::google::protobuf::internal::ClassData{
1050 &SparseInt32VectorProto::MergeImpl,
1051 ::google::protobuf::Message::GetNewImpl<SparseInt32VectorProto>(),
1052#if defined(PROTOBUF_CUSTOM_VTABLE)
1053 &SparseInt32VectorProto::SharedDtor,
1060 &SparseInt32VectorProto::kDescriptorMethods,
1066PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1070PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1071SparseInt32VectorProto::GetClassData()
const {
1076PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1077const ::_pbi::TcParseTable<1, 2, 0, 0, 2>
1078SparseInt32VectorProto::_table_ = {
1080 PROTOBUF_FIELD_OFFSET(SparseInt32VectorProto,
_impl_._has_bits_),
1083 offsetof(
decltype(_table_), field_lookup_table),
1085 offsetof(
decltype(_table_), field_entries),
1088 offsetof(
decltype(_table_), field_names),
1091 ::_pbi::TcParser::GenericFallback,
1092 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1093 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseInt32VectorProto>(),
1097 {::_pbi::TcParser::FastV32P1,
1099 PROTOBUF_FIELD_OFFSET(SparseInt32VectorProto,
_impl_.values_)}},
1101 {::_pbi::TcParser::FastV64P1,
1103 PROTOBUF_FIELD_OFFSET(SparseInt32VectorProto,
_impl_.ids_)}},
1118 ::google::protobuf::internal::TSanWrite(&
_impl_);
1119 ::uint32_t cached_has_bits = 0;
1121 (void) cached_has_bits;
1123 cached_has_bits =
_impl_._has_bits_[0];
1124 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
1125 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1128 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1132 _impl_._has_bits_.Clear();
1133 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1136#if defined(PROTOBUF_CUSTOM_VTABLE)
1138 const ::google::protobuf::MessageLite&
base, ::uint8_t* PROTOBUF_NONNULL target,
1139 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1140 const SparseInt32VectorProto& this_ =
static_cast<const SparseInt32VectorProto&
>(
base);
1143 ::uint8_t* PROTOBUF_NONNULL target,
1144 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
1147 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1148 this_.CheckHasBitConsistency();
1151 ::uint32_t cached_has_bits = 0;
1152 (void)cached_has_bits;
1154 cached_has_bits = this_.
_impl_._has_bits_[0];
1156 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1158 int byte_size = this_.
_impl_._ids_cached_byte_size_.Get();
1159 if (byte_size > 0) {
1160 target = stream->WriteInt64Packed(
1161 1, this_._internal_ids(), byte_size, target);
1167 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1169 int byte_size = this_.
_impl_._values_cached_byte_size_.Get();
1170 if (byte_size > 0) {
1171 target = stream->WriteInt32Packed(
1172 2, this_._internal_values(), byte_size, target);
1177 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1179 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1180 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1186#if defined(PROTOBUF_CUSTOM_VTABLE)
1188 const SparseInt32VectorProto& this_ =
static_cast<const SparseInt32VectorProto&
>(base);
1191 const SparseInt32VectorProto& this_ = *
this;
1194 ::size_t total_size = 0;
1196 ::uint32_t cached_has_bits = 0;
1198 (void)cached_has_bits;
1200 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1201 cached_has_bits = this_._impl_._has_bits_[0];
1202 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
1204 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1206 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
1207 this_._internal_ids(), 1,
1208 this_._impl_._ids_cached_byte_size_);
1211 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1213 ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize(
1214 this_._internal_values(), 1,
1215 this_._impl_._values_cached_byte_size_);
1218 return this_.MaybeComputeUnknownFieldsSize(total_size,
1219 &this_._impl_._cached_size_);
1222void SparseInt32VectorProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
1223 const ::google::protobuf::MessageLite& from_msg) {
1225 static_cast<SparseInt32VectorProto*
>(&to_msg);
1226 auto& from =
static_cast<const SparseInt32VectorProto&
>(from_msg);
1227 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1228 from.CheckHasBitConsistency();
1231 ABSL_DCHECK_NE(&from, _this);
1232 ::uint32_t cached_has_bits = 0;
1233 (void)cached_has_bits;
1235 cached_has_bits = from._impl_._has_bits_[0];
1236 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
1237 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1238 _this->_internal_mutable_ids()->MergeFrom(from._internal_ids());
1240 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1241 _this->_internal_mutable_values()->MergeFrom(from._internal_values());
1244 _this->_impl_._has_bits_[0] |= cached_has_bits;
1245 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1246 from._internal_metadata_);
1251 if (&from ==
this)
return;
1257void SparseInt32VectorProto::InternalSwap(
SparseInt32VectorProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1259 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1260 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1261 _impl_.ids_.InternalSwap(&other->_impl_.ids_);
1262 _impl_.values_.InternalSwap(&other->_impl_.values_);
1266 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1273 decltype(::std::declval<SparseVectorFilterProto>()._impl_._has_bits_);
1279#if defined(PROTOBUF_CUSTOM_VTABLE)
1282 : ::google::protobuf::Message(arena) {
1287PROTOBUF_NDEBUG_INLINE SparseVectorFilterProto::Impl_::Impl_(
1288 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1289 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
1290 [[maybe_unused]] const ::operations_research::math_opt::SparseVectorFilterProto& from_msg)
1291 : _has_bits_{from._has_bits_},
1293 filtered_ids_{visibility, arena, from.filtered_ids_},
1294 _filtered_ids_cached_byte_size_{0} {}
1297 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1299#if defined(PROTOBUF_CUSTOM_VTABLE)
1302 : ::google::protobuf::Message(arena) {
1306 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
1307 from._internal_metadata_);
1308 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1309 ::memcpy(
reinterpret_cast<char*
>(&
_impl_) +
1310 offsetof(Impl_, skip_zero_values_),
1311 reinterpret_cast<const char*
>(&from._impl_) +
1312 offsetof(Impl_, skip_zero_values_),
1313 offsetof(Impl_, filter_by_ids_) -
1314 offsetof(Impl_, skip_zero_values_) +
1315 sizeof(Impl_::filter_by_ids_));
1319PROTOBUF_NDEBUG_INLINE SparseVectorFilterProto::Impl_::Impl_(
1320 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1321 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1323 filtered_ids_{visibility, arena},
1324 _filtered_ids_cached_byte_size_{0} {}
1326inline void SparseVectorFilterProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1327 new (&
_impl_) Impl_(internal_visibility(), arena);
1328 ::memset(
reinterpret_cast<char*
>(&
_impl_) +
1329 offsetof(Impl_, skip_zero_values_),
1331 offsetof(Impl_, filter_by_ids_) -
1332 offsetof(Impl_, skip_zero_values_) +
1333 sizeof(Impl_::filter_by_ids_));
1341 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1342 this_.CheckHasBitConsistency();
1344 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1345 ABSL_DCHECK(this_.GetArena() ==
nullptr);
1349inline void* PROTOBUF_NONNULL SparseVectorFilterProto::PlacementNew_(
1350 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
1351 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1354constexpr auto SparseVectorFilterProto::InternalNewImpl_() {
1355 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
1356 PROTOBUF_FIELD_OFFSET(SparseVectorFilterProto,
_impl_.filtered_ids_) +
1358 InternalGetArenaOffset(
1361 if (arena_bits.has_value()) {
1362 return ::google::protobuf::internal::MessageCreator::ZeroInit(
1363 sizeof(SparseVectorFilterProto), alignof(SparseVectorFilterProto), *arena_bits);
1365 return ::google::protobuf::internal::MessageCreator(&SparseVectorFilterProto::PlacementNew_,
1366 sizeof(SparseVectorFilterProto),
1367 alignof(SparseVectorFilterProto));
1371 return ::google::protobuf::internal::ClassDataFull{
1372 ::google::protobuf::internal::ClassData{
1377 &SparseVectorFilterProto::MergeImpl,
1378 ::google::protobuf::Message::GetNewImpl<SparseVectorFilterProto>(),
1379#if defined(PROTOBUF_CUSTOM_VTABLE)
1380 &SparseVectorFilterProto::SharedDtor,
1387 &SparseVectorFilterProto::kDescriptorMethods,
1393PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1397PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1398SparseVectorFilterProto::GetClassData()
const {
1403PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1404const ::_pbi::TcParseTable<2, 3, 0, 0, 2>
1405SparseVectorFilterProto::_table_ = {
1407 PROTOBUF_FIELD_OFFSET(SparseVectorFilterProto,
_impl_._has_bits_),
1410 offsetof(
decltype(_table_), field_lookup_table),
1412 offsetof(
decltype(_table_), field_entries),
1415 offsetof(
decltype(_table_), field_names),
1418 ::_pbi::TcParser::GenericFallback,
1419 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1420 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseVectorFilterProto>(),
1423 {::_pbi::TcParser::MiniParse, {}},
1425 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(SparseVectorFilterProto,
_impl_.skip_zero_values_), 1>(),
1427 PROTOBUF_FIELD_OFFSET(SparseVectorFilterProto,
_impl_.skip_zero_values_)}},
1429 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(SparseVectorFilterProto,
_impl_.filter_by_ids_), 2>(),
1431 PROTOBUF_FIELD_OFFSET(SparseVectorFilterProto,
_impl_.filter_by_ids_)}},
1433 {::_pbi::TcParser::FastV64P1,
1435 PROTOBUF_FIELD_OFFSET(SparseVectorFilterProto,
_impl_.filtered_ids_)}},
1440 {PROTOBUF_FIELD_OFFSET(SparseVectorFilterProto,
_impl_.skip_zero_values_),
_Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
1444 {PROTOBUF_FIELD_OFFSET(SparseVectorFilterProto,
_impl_.filtered_ids_),
_Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
1452 ::google::protobuf::internal::TSanWrite(&
_impl_);
1453 ::uint32_t cached_has_bits = 0;
1455 (void) cached_has_bits;
1457 cached_has_bits =
_impl_._has_bits_[0];
1458 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1459 _impl_.filtered_ids_.Clear();
1461 ::memset(&
_impl_.skip_zero_values_, 0,
static_cast<::
size_t>(
1462 reinterpret_cast<char*
>(&
_impl_.filter_by_ids_) -
1463 reinterpret_cast<char*
>(&
_impl_.skip_zero_values_)) +
sizeof(
_impl_.filter_by_ids_));
1464 _impl_._has_bits_.Clear();
1465 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1468#if defined(PROTOBUF_CUSTOM_VTABLE)
1470 const ::google::protobuf::MessageLite&
base, ::uint8_t* PROTOBUF_NONNULL target,
1471 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1472 const SparseVectorFilterProto& this_ =
static_cast<const SparseVectorFilterProto&
>(
base);
1475 ::uint8_t* PROTOBUF_NONNULL target,
1476 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
1477 const SparseVectorFilterProto& this_ = *
this;
1479 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1480 this_.CheckHasBitConsistency();
1483 ::uint32_t cached_has_bits = 0;
1484 (void)cached_has_bits;
1486 cached_has_bits = this_._impl_._has_bits_[0];
1488 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1489 if (this_._internal_skip_zero_values() != 0) {
1490 target = stream->EnsureSpace(target);
1491 target = ::_pbi::WireFormatLite::WriteBoolToArray(
1492 1, this_._internal_skip_zero_values(), target);
1497 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1498 if (this_._internal_filter_by_ids() != 0) {
1499 target = stream->EnsureSpace(target);
1500 target = ::_pbi::WireFormatLite::WriteBoolToArray(
1501 2, this_._internal_filter_by_ids(), target);
1506 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1508 int byte_size = this_._impl_._filtered_ids_cached_byte_size_.Get();
1509 if (byte_size > 0) {
1510 target = stream->WriteInt64Packed(
1511 3, this_._internal_filtered_ids(), byte_size, target);
1516 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1518 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1519 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1525#if defined(PROTOBUF_CUSTOM_VTABLE)
1527 const SparseVectorFilterProto& this_ =
static_cast<const SparseVectorFilterProto&
>(base);
1530 const SparseVectorFilterProto& this_ = *
this;
1533 ::size_t total_size = 0;
1535 ::uint32_t cached_has_bits = 0;
1537 (void)cached_has_bits;
1539 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1540 cached_has_bits = this_._impl_._has_bits_[0];
1541 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
1543 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1545 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
1546 this_._internal_filtered_ids(), 1,
1547 this_._impl_._filtered_ids_cached_byte_size_);
1550 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1551 if (this_._internal_skip_zero_values() != 0) {
1556 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1557 if (this_._internal_filter_by_ids() != 0) {
1562 return this_.MaybeComputeUnknownFieldsSize(total_size,
1563 &this_._impl_._cached_size_);
1566void SparseVectorFilterProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
1567 const ::google::protobuf::MessageLite& from_msg) {
1569 static_cast<SparseVectorFilterProto*
>(&to_msg);
1570 auto& from =
static_cast<const SparseVectorFilterProto&
>(from_msg);
1571 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1572 from.CheckHasBitConsistency();
1575 ABSL_DCHECK_NE(&from, _this);
1576 ::uint32_t cached_has_bits = 0;
1577 (void)cached_has_bits;
1579 cached_has_bits = from._impl_._has_bits_[0];
1580 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
1581 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1582 _this->_internal_mutable_filtered_ids()->MergeFrom(from._internal_filtered_ids());
1584 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1585 if (from._internal_skip_zero_values() != 0) {
1586 _this->_impl_.skip_zero_values_ = from._impl_.skip_zero_values_;
1589 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1590 if (from._internal_filter_by_ids() != 0) {
1591 _this->_impl_.filter_by_ids_ = from._impl_.filter_by_ids_;
1595 _this->_impl_._has_bits_[0] |= cached_has_bits;
1596 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1597 from._internal_metadata_);
1602 if (&from ==
this)
return;
1608void SparseVectorFilterProto::InternalSwap(
SparseVectorFilterProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1610 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1611 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1612 _impl_.filtered_ids_.InternalSwap(&other->_impl_.filtered_ids_);
1613 ::google::protobuf::internal::memswap<
1617 reinterpret_cast<char*
>(&
_impl_.skip_zero_values_),
1618 reinterpret_cast<char*
>(&other->_impl_.skip_zero_values_));
1622 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1629 decltype(::std::declval<SparseDoubleMatrixProto>()._impl_._has_bits_);
1630 static constexpr ::int32_t kHasBitsOffset =
1635#if defined(PROTOBUF_CUSTOM_VTABLE)
1638 : ::google::protobuf::Message(arena) {
1643PROTOBUF_NDEBUG_INLINE SparseDoubleMatrixProto::Impl_::Impl_(
1644 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1645 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
1646 [[maybe_unused]] const ::operations_research::math_opt::SparseDoubleMatrixProto& from_msg)
1647 : _has_bits_{from._has_bits_},
1649 row_ids_{visibility, arena, from.row_ids_},
1650 _row_ids_cached_byte_size_{0},
1651 column_ids_{visibility, arena, from.column_ids_},
1652 _column_ids_cached_byte_size_{0},
1653 coefficients_{visibility, arena, from.coefficients_} {}
1656 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1658#if defined(PROTOBUF_CUSTOM_VTABLE)
1661 : ::google::protobuf::Message(arena) {
1665 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
1666 from._internal_metadata_);
1667 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1671PROTOBUF_NDEBUG_INLINE SparseDoubleMatrixProto::Impl_::Impl_(
1672 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1673 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1675 row_ids_{visibility, arena},
1676 _row_ids_cached_byte_size_{0},
1677 column_ids_{visibility, arena},
1678 _column_ids_cached_byte_size_{0},
1679 coefficients_{visibility, arena} {}
1681inline void SparseDoubleMatrixProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1682 new (&
_impl_) Impl_(internal_visibility(), arena);
1688inline void SparseDoubleMatrixProto::SharedDtor(
MessageLite& self) {
1690 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1691 this_.CheckHasBitConsistency();
1693 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1694 ABSL_DCHECK(this_.GetArena() ==
nullptr);
1698inline void* PROTOBUF_NONNULL SparseDoubleMatrixProto::PlacementNew_(
1699 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
1700 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1701 return ::new (mem) SparseDoubleMatrixProto(arena);
1703constexpr auto SparseDoubleMatrixProto::InternalNewImpl_() {
1704 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
1705 PROTOBUF_FIELD_OFFSET(SparseDoubleMatrixProto,
_impl_.row_ids_) +
1707 InternalGetArenaOffset(
1708 ::
google::protobuf::Message::internal_visibility()),
1709 PROTOBUF_FIELD_OFFSET(SparseDoubleMatrixProto,
_impl_.column_ids_) +
1710 decltype(SparseDoubleMatrixProto::
_impl_.column_ids_)::
1711 InternalGetArenaOffset(
1712 ::
google::protobuf::Message::internal_visibility()),
1713 PROTOBUF_FIELD_OFFSET(SparseDoubleMatrixProto,
_impl_.coefficients_) +
1714 decltype(SparseDoubleMatrixProto::
_impl_.coefficients_)::
1715 InternalGetArenaOffset(
1716 ::
google::protobuf::Message::internal_visibility()),
1718 if (arena_bits.has_value()) {
1719 return ::google::protobuf::internal::MessageCreator::ZeroInit(
1720 sizeof(SparseDoubleMatrixProto), alignof(SparseDoubleMatrixProto), *arena_bits);
1722 return ::google::protobuf::internal::MessageCreator(&SparseDoubleMatrixProto::PlacementNew_,
1723 sizeof(SparseDoubleMatrixProto),
1724 alignof(SparseDoubleMatrixProto));
1728 return ::google::protobuf::internal::ClassDataFull{
1729 ::google::protobuf::internal::ClassData{
1734 &SparseDoubleMatrixProto::MergeImpl,
1735 ::google::protobuf::Message::GetNewImpl<SparseDoubleMatrixProto>(),
1736#if defined(PROTOBUF_CUSTOM_VTABLE)
1737 &SparseDoubleMatrixProto::SharedDtor,
1744 &SparseDoubleMatrixProto::kDescriptorMethods,
1750PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1754PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1755SparseDoubleMatrixProto::GetClassData()
const {
1760PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1761const ::_pbi::TcParseTable<2, 3, 0, 0, 2>
1762SparseDoubleMatrixProto::_table_ = {
1764 PROTOBUF_FIELD_OFFSET(SparseDoubleMatrixProto,
_impl_._has_bits_),
1767 offsetof(
decltype(_table_), field_lookup_table),
1769 offsetof(
decltype(_table_), field_entries),
1772 offsetof(
decltype(_table_), field_names),
1775 ::_pbi::TcParser::GenericFallback,
1776 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1777 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleMatrixProto>(),
1780 {::_pbi::TcParser::MiniParse, {}},
1782 {::_pbi::TcParser::FastV64P1,
1784 PROTOBUF_FIELD_OFFSET(SparseDoubleMatrixProto,
_impl_.row_ids_)}},
1786 {::_pbi::TcParser::FastV64P1,
1788 PROTOBUF_FIELD_OFFSET(SparseDoubleMatrixProto,
_impl_.column_ids_)}},
1790 {::_pbi::TcParser::FastF64P1,
1792 PROTOBUF_FIELD_OFFSET(SparseDoubleMatrixProto,
_impl_.coefficients_)}},
1799 {PROTOBUF_FIELD_OFFSET(SparseDoubleMatrixProto,
_impl_.column_ids_),
_Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
1801 {PROTOBUF_FIELD_OFFSET(SparseDoubleMatrixProto,
_impl_.coefficients_),
_Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)},
1809 ::google::protobuf::internal::TSanWrite(&
_impl_);
1810 ::uint32_t cached_has_bits = 0;
1812 (void) cached_has_bits;
1814 cached_has_bits =
_impl_._has_bits_[0];
1815 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
1816 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1819 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1820 _impl_.column_ids_.Clear();
1822 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
1823 _impl_.coefficients_.Clear();
1826 _impl_._has_bits_.Clear();
1827 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1830#if defined(PROTOBUF_CUSTOM_VTABLE)
1832 const ::google::protobuf::MessageLite&
base, ::uint8_t* PROTOBUF_NONNULL target,
1833 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1834 const SparseDoubleMatrixProto& this_ =
static_cast<const SparseDoubleMatrixProto&
>(
base);
1837 ::uint8_t* PROTOBUF_NONNULL target,
1838 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
1839 const SparseDoubleMatrixProto& this_ = *
this;
1841 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1842 this_.CheckHasBitConsistency();
1845 ::uint32_t cached_has_bits = 0;
1846 (void)cached_has_bits;
1848 cached_has_bits = this_.
_impl_._has_bits_[0];
1850 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1852 int byte_size = this_._impl_._row_ids_cached_byte_size_.Get();
1853 if (byte_size > 0) {
1854 target = stream->WriteInt64Packed(
1855 1, this_._internal_row_ids(), byte_size, target);
1861 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1863 int byte_size = this_._impl_._column_ids_cached_byte_size_.Get();
1864 if (byte_size > 0) {
1865 target = stream->WriteInt64Packed(
1866 2, this_._internal_column_ids(), byte_size, target);
1872 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
1873 if (this_._internal_coefficients_size() > 0) {
1874 target = stream->WriteFixedPacked(3, this_._internal_coefficients(), target);
1878 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1880 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1881 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1887#if defined(PROTOBUF_CUSTOM_VTABLE)
1889 const SparseDoubleMatrixProto& this_ =
static_cast<const SparseDoubleMatrixProto&
>(base);
1892 const SparseDoubleMatrixProto& this_ = *
this;
1895 ::size_t total_size = 0;
1897 ::uint32_t cached_has_bits = 0;
1899 (void)cached_has_bits;
1901 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1902 cached_has_bits = this_._impl_._has_bits_[0];
1903 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
1905 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1907 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
1908 this_._internal_row_ids(), 1,
1909 this_._impl_._row_ids_cached_byte_size_);
1912 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1914 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
1915 this_._internal_column_ids(), 1,
1916 this_._impl_._column_ids_cached_byte_size_);
1919 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
1920 ::size_t data_size = ::size_t{8} *
1921 ::_pbi::FromIntSize(this_._internal_coefficients_size());
1922 ::size_t tag_size = data_size == 0
1924 : 1 + ::_pbi::WireFormatLite::Int32Size(
1925 static_cast<::int32_t
>(data_size));
1926 total_size += tag_size + data_size;
1929 return this_.MaybeComputeUnknownFieldsSize(total_size,
1930 &this_._impl_._cached_size_);
1933void SparseDoubleMatrixProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
1934 const ::google::protobuf::MessageLite& from_msg) {
1936 static_cast<SparseDoubleMatrixProto*
>(&to_msg);
1937 auto& from =
static_cast<const SparseDoubleMatrixProto&
>(from_msg);
1938 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1939 from.CheckHasBitConsistency();
1942 ABSL_DCHECK_NE(&from, _this);
1943 ::uint32_t cached_has_bits = 0;
1944 (void)cached_has_bits;
1946 cached_has_bits = from._impl_._has_bits_[0];
1947 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
1948 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1949 _this->_internal_mutable_row_ids()->MergeFrom(from._internal_row_ids());
1951 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1952 _this->_internal_mutable_column_ids()->MergeFrom(from._internal_column_ids());
1954 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
1955 _this->_internal_mutable_coefficients()->MergeFrom(from._internal_coefficients());
1958 _this->_impl_._has_bits_[0] |= cached_has_bits;
1959 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1960 from._internal_metadata_);
1965 if (&from ==
this)
return;
1971void SparseDoubleMatrixProto::InternalSwap(
SparseDoubleMatrixProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1973 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1974 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1975 _impl_.row_ids_.InternalSwap(&other->_impl_.row_ids_);
1976 _impl_.column_ids_.InternalSwap(&other->_impl_.column_ids_);
1977 _impl_.coefficients_.InternalSwap(&other->_impl_.coefficients_);
1981 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1988 decltype(::std::declval<LinearExpressionProto>()._impl_._has_bits_);
1989 static constexpr ::int32_t kHasBitsOffset =
1994#if defined(PROTOBUF_CUSTOM_VTABLE)
1997 : ::google::protobuf::Message(arena) {
2002PROTOBUF_NDEBUG_INLINE LinearExpressionProto::Impl_::Impl_(
2003 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
2004 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
2005 [[maybe_unused]] const ::operations_research::math_opt::LinearExpressionProto& from_msg)
2006 : _has_bits_{from._has_bits_},
2008 ids_{visibility, arena, from.ids_},
2009 _ids_cached_byte_size_{0},
2010 coefficients_{visibility, arena, from.coefficients_} {}
2013 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
2015#if defined(PROTOBUF_CUSTOM_VTABLE)
2018 : ::google::protobuf::Message(arena) {
2022 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
2023 from._internal_metadata_);
2024 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
2025 _impl_.offset_ = from._impl_.offset_;
2029PROTOBUF_NDEBUG_INLINE LinearExpressionProto::Impl_::Impl_(
2030 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
2031 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
2033 ids_{visibility, arena},
2034 _ids_cached_byte_size_{0},
2035 coefficients_{visibility, arena} {}
2037inline void LinearExpressionProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
2038 new (&
_impl_) Impl_(internal_visibility(), arena);
2045inline void LinearExpressionProto::SharedDtor(
MessageLite& self) {
2047 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2048 this_.CheckHasBitConsistency();
2050 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
2051 ABSL_DCHECK(this_.GetArena() ==
nullptr);
2055inline void* PROTOBUF_NONNULL LinearExpressionProto::PlacementNew_(
2056 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
2057 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
2058 return ::new (mem) LinearExpressionProto(arena);
2060constexpr auto LinearExpressionProto::InternalNewImpl_() {
2061 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
2062 PROTOBUF_FIELD_OFFSET(LinearExpressionProto,
_impl_.ids_) +
2064 InternalGetArenaOffset(
2065 ::
google::protobuf::Message::internal_visibility()),
2066 PROTOBUF_FIELD_OFFSET(LinearExpressionProto,
_impl_.coefficients_) +
2067 decltype(LinearExpressionProto::
_impl_.coefficients_)::
2068 InternalGetArenaOffset(
2069 ::
google::protobuf::Message::internal_visibility()),
2071 if (arena_bits.has_value()) {
2072 return ::google::protobuf::internal::MessageCreator::ZeroInit(
2073 sizeof(LinearExpressionProto), alignof(LinearExpressionProto), *arena_bits);
2075 return ::google::protobuf::internal::MessageCreator(&LinearExpressionProto::PlacementNew_,
2076 sizeof(LinearExpressionProto),
2077 alignof(LinearExpressionProto));
2081 return ::google::protobuf::internal::ClassDataFull{
2082 ::google::protobuf::internal::ClassData{
2087 &LinearExpressionProto::MergeImpl,
2088 ::google::protobuf::Message::GetNewImpl<LinearExpressionProto>(),
2089#if defined(PROTOBUF_CUSTOM_VTABLE)
2090 &LinearExpressionProto::SharedDtor,
2097 &LinearExpressionProto::kDescriptorMethods,
2103PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
2107PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
2108LinearExpressionProto::GetClassData()
const {
2113PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
2114const ::_pbi::TcParseTable<2, 3, 0, 0, 2>
2115LinearExpressionProto::_table_ = {
2117 PROTOBUF_FIELD_OFFSET(LinearExpressionProto,
_impl_._has_bits_),
2120 offsetof(
decltype(_table_), field_lookup_table),
2122 offsetof(
decltype(_table_), field_entries),
2125 offsetof(
decltype(_table_), field_names),
2128 ::_pbi::TcParser::GenericFallback,
2129 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
2130 ::_pbi::TcParser::GetTable<::operations_research::math_opt::LinearExpressionProto>(),
2133 {::_pbi::TcParser::MiniParse, {}},
2135 {::_pbi::TcParser::FastV64P1,
2137 PROTOBUF_FIELD_OFFSET(LinearExpressionProto,
_impl_.ids_)}},
2139 {::_pbi::TcParser::FastF64P1,
2141 PROTOBUF_FIELD_OFFSET(LinearExpressionProto,
_impl_.coefficients_)}},
2143 {::_pbi::TcParser::FastF64S1,
2145 PROTOBUF_FIELD_OFFSET(LinearExpressionProto,
_impl_.offset_)}},
2152 {PROTOBUF_FIELD_OFFSET(LinearExpressionProto,
_impl_.coefficients_),
_Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)},
2162 ::google::protobuf::internal::TSanWrite(&
_impl_);
2163 ::uint32_t cached_has_bits = 0;
2165 (void) cached_has_bits;
2167 cached_has_bits =
_impl_._has_bits_[0];
2168 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
2169 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
2172 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
2173 _impl_.coefficients_.Clear();
2177 _impl_._has_bits_.Clear();
2178 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
2181#if defined(PROTOBUF_CUSTOM_VTABLE)
2183 const ::google::protobuf::MessageLite&
base, ::uint8_t* PROTOBUF_NONNULL target,
2184 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
2185 const LinearExpressionProto& this_ =
static_cast<const LinearExpressionProto&
>(
base);
2188 ::uint8_t* PROTOBUF_NONNULL target,
2189 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
2190 const LinearExpressionProto& this_ = *
this;
2192 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2193 this_.CheckHasBitConsistency();
2196 ::uint32_t cached_has_bits = 0;
2197 (void)cached_has_bits;
2199 cached_has_bits = this_.
_impl_._has_bits_[0];
2201 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
2203 int byte_size = this_._impl_._ids_cached_byte_size_.Get();
2204 if (byte_size > 0) {
2205 target = stream->WriteInt64Packed(
2206 1, this_._internal_ids(), byte_size, target);
2212 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
2213 if (this_._internal_coefficients_size() > 0) {
2214 target = stream->WriteFixedPacked(2, this_._internal_coefficients(), target);
2219 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
2220 if (::absl::bit_cast<::uint64_t>(this_._internal_offset()) != 0) {
2221 target = stream->EnsureSpace(target);
2222 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
2223 3, this_._internal_offset(), target);
2227 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
2229 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2230 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
2236#if defined(PROTOBUF_CUSTOM_VTABLE)
2238 const LinearExpressionProto& this_ =
static_cast<const LinearExpressionProto&
>(base);
2241 const LinearExpressionProto& this_ = *
this;
2244 ::size_t total_size = 0;
2246 ::uint32_t cached_has_bits = 0;
2248 (void)cached_has_bits;
2250 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
2251 cached_has_bits = this_._impl_._has_bits_[0];
2252 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
2254 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
2256 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
2257 this_._internal_ids(), 1,
2258 this_._impl_._ids_cached_byte_size_);
2261 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
2262 ::size_t data_size = ::size_t{8} *
2263 ::_pbi::FromIntSize(this_._internal_coefficients_size());
2264 ::size_t tag_size = data_size == 0
2266 : 1 + ::_pbi::WireFormatLite::Int32Size(
2267 static_cast<::int32_t
>(data_size));
2268 total_size += tag_size + data_size;
2271 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
2272 if (::absl::bit_cast<::uint64_t>(this_._internal_offset()) != 0) {
2277 return this_.MaybeComputeUnknownFieldsSize(total_size,
2278 &this_._impl_._cached_size_);
2281void LinearExpressionProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
2282 const ::google::protobuf::MessageLite& from_msg) {
2284 static_cast<LinearExpressionProto*
>(&to_msg);
2285 auto& from =
static_cast<const LinearExpressionProto&
>(from_msg);
2286 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2287 from.CheckHasBitConsistency();
2290 ABSL_DCHECK_NE(&from, _this);
2291 ::uint32_t cached_has_bits = 0;
2292 (void)cached_has_bits;
2294 cached_has_bits = from._impl_._has_bits_[0];
2295 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
2296 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
2297 _this->_internal_mutable_ids()->MergeFrom(from._internal_ids());
2299 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
2300 _this->_internal_mutable_coefficients()->MergeFrom(from._internal_coefficients());
2302 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
2303 if (::absl::bit_cast<::uint64_t>(from._internal_offset()) != 0) {
2304 _this->_impl_.offset_ = from._impl_.offset_;
2308 _this->_impl_._has_bits_[0] |= cached_has_bits;
2309 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
2310 from._internal_metadata_);
2315 if (&from ==
this)
return;
2321void LinearExpressionProto::InternalSwap(
LinearExpressionProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
2323 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2324 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2325 _impl_.ids_.InternalSwap(&other->_impl_.ids_);
2326 _impl_.coefficients_.InternalSwap(&other->_impl_.coefficients_);
2331 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
2341PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
2344 ::std::false_type{});
2345#include "google/protobuf/port_undef.inc"
static PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::std::false_type _static_init2_
static const ::_pb::Message *PROTOBUF_NONNULL const file_default_instances[]
friend class ::google::protobuf::MessageLite
::size_t ByteSizeLong() const final
~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)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
static constexpr auto InternalGenerateClassData_()
static constexpr ::int32_t kHasBitsOffset
decltype(::std::declval< SparseBoolVectorProto >()._impl_._has_bits_) HasBits
friend class ::google::protobuf::MessageLite
::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
void MergeFrom(const SparseBoolVectorProto &from)
friend void swap(SparseBoolVectorProto &a, SparseBoolVectorProto &b)
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 ::int32_t kHasBitsOffset
decltype(::std::declval< SparseDoubleVectorProto >()._impl_._has_bits_) HasBits
friend class ::google::protobuf::MessageLite
void CopyFrom(const SparseDoubleVectorProto &from)
friend void swap(SparseDoubleVectorProto &a, SparseDoubleVectorProto &b)
SparseDoubleVectorProto()
static constexpr auto InternalGenerateClassData_()
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
void MergeFrom(const SparseDoubleVectorProto &from)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
~SparseDoubleVectorProto() PROTOBUF_FINAL
::size_t ByteSizeLong() const final
::google::protobuf::Metadata GetMetadata() const
static constexpr ::int32_t kHasBitsOffset
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
static constexpr auto InternalGenerateClassData_()
~SparseInt32VectorProto() PROTOBUF_FINAL
void MergeFrom(const SparseInt32VectorProto &from)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
::size_t ByteSizeLong() const final
void CopyFrom(const SparseInt32VectorProto &from)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
::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
::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)
::google::protobuf::Metadata GetMetadata() const
SparseVectorFilterProto()
void CopyFrom(const SparseVectorFilterProto &from)
::size_t ByteSizeLong() const final
static constexpr ::_pbi::MigrationSchema *PROTOBUF_NULLABLE schemas
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SparseInt32VectorProto_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LinearExpressionProtoDefaultTypeInternal _LinearExpressionProto_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SparseDoubleVectorProto_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SparseDoubleVectorProtoDefaultTypeInternal _SparseDoubleVectorProto_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SparseVectorFilterProtoDefaultTypeInternal _SparseVectorFilterProto_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SparseInt32VectorProtoDefaultTypeInternal _SparseInt32VectorProto_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SparseDoubleMatrixProtoDefaultTypeInternal _SparseDoubleMatrixProto_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SparseDoubleMatrixProto_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SparseVectorFilterProto_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SparseBoolVectorProto_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull LinearExpressionProto_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SparseBoolVectorProtoDefaultTypeInternal _SparseBoolVectorProto_default_instance_
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()