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 VariablesProto::Impl_::Impl_(
31 ::_pbi::ConstantInitialized) noexcept
33 _ids_cached_byte_size_{0},
42#if defined(PROTOBUF_CUSTOM_VTABLE)
45 : ::google::protobuf::Message(),
47 _impl_(::_pbi::ConstantInitialized()) {
57PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
60inline constexpr LinearConstraintsProto::Impl_::Impl_(
61 ::_pbi::ConstantInitialized) noexcept
63 _ids_cached_byte_size_{0},
71#if defined(PROTOBUF_CUSTOM_VTABLE)
74 : ::google::protobuf::Message(),
76 _impl_(::_pbi::ConstantInitialized()) {
86PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
89inline constexpr SosConstraintProto::Impl_::Impl_(
90 ::_pbi::ConstantInitialized) noexcept
95 &::google::protobuf::internal::fixed_address_empty_string,
96 ::_pbi::ConstantInitialized()) {}
100#if defined(PROTOBUF_CUSTOM_VTABLE)
103 : ::google::protobuf::Message(),
105 _impl_(::_pbi::ConstantInitialized()) {
115PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
118inline constexpr SecondOrderConeConstraintProto::Impl_::Impl_(
119 ::_pbi::ConstantInitialized) noexcept
121 arguments_to_norm_{},
123 &::google::protobuf::internal::fixed_address_empty_string,
124 ::_pbi::ConstantInitialized()),
125 upper_bound_{
nullptr} {}
129#if defined(PROTOBUF_CUSTOM_VTABLE)
132 : ::google::protobuf::Message(),
134 _impl_(::_pbi::ConstantInitialized()) {
144PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
147inline constexpr QuadraticConstraintProto::Impl_::Impl_(
148 ::_pbi::ConstantInitialized) noexcept
151 &::google::protobuf::internal::fixed_address_empty_string,
152 ::_pbi::ConstantInitialized()),
153 linear_terms_{
nullptr},
154 quadratic_terms_{
nullptr},
160#if defined(PROTOBUF_CUSTOM_VTABLE)
163 : ::google::protobuf::Message(),
165 _impl_(::_pbi::ConstantInitialized()) {
175PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
178inline constexpr ObjectiveProto::Impl_::Impl_(
179 ::_pbi::ConstantInitialized) noexcept
182 &::google::protobuf::internal::fixed_address_empty_string,
183 ::_pbi::ConstantInitialized()),
184 linear_coefficients_{
nullptr},
185 quadratic_coefficients_{
nullptr},
187 priority_{::int64_t{0}},
192#if defined(PROTOBUF_CUSTOM_VTABLE)
195 : ::google::protobuf::Message(),
197 _impl_(::_pbi::ConstantInitialized()) {
207PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
210inline constexpr IndicatorConstraintProto::Impl_::Impl_(
211 ::_pbi::ConstantInitialized) noexcept
214 &::google::protobuf::internal::fixed_address_empty_string,
215 ::_pbi::ConstantInitialized()),
216 expression_{
nullptr},
217 indicator_id_{::int64_t{0}},
220 activate_on_zero_{
false} {}
224#if defined(PROTOBUF_CUSTOM_VTABLE)
227 : ::google::protobuf::Message(),
229 _impl_(::_pbi::ConstantInitialized()) {
239PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
243#if defined(PROTOBUF_CUSTOM_VTABLE)
246 : ModelProto_Sos2ConstraintsEntry_DoNotUse::MapEntry() {
257PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
261#if defined(PROTOBUF_CUSTOM_VTABLE)
264 : ModelProto_Sos1ConstraintsEntry_DoNotUse::MapEntry() {
275PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
279#if defined(PROTOBUF_CUSTOM_VTABLE)
282 : ModelProto_SecondOrderConeConstraintsEntry_DoNotUse::MapEntry() {
293PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
297#if defined(PROTOBUF_CUSTOM_VTABLE)
300 : ModelProto_QuadraticConstraintsEntry_DoNotUse::MapEntry() {
311PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
315#if defined(PROTOBUF_CUSTOM_VTABLE)
318 : ModelProto_IndicatorConstraintsEntry_DoNotUse::MapEntry() {
329PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
333#if defined(PROTOBUF_CUSTOM_VTABLE)
336 : ModelProto_AuxiliaryObjectivesEntry_DoNotUse::MapEntry() {
347PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
350inline constexpr ModelProto::Impl_::Impl_(
351 ::_pbi::ConstantInitialized) noexcept
353 quadratic_constraints_{},
356 indicator_constraints_{},
357 auxiliary_objectives_{},
358 second_order_cone_constraints_{},
360 &::google::protobuf::internal::fixed_address_empty_string,
361 ::_pbi::ConstantInitialized()),
364 linear_constraints_{
nullptr},
365 linear_constraint_matrix_{
nullptr} {}
369#if defined(PROTOBUF_CUSTOM_VTABLE)
372 : ::google::protobuf::Message(),
374 _impl_(::_pbi::ConstantInitialized()) {
384PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
388static constexpr const ::_pb::EnumDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE
390static constexpr const ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE
536static const ::_pbi::MigrationSchema
571 "\n\034ortools/math_opt/model.proto\022\034operatio"
572 "ns_research.math_opt\032(ortools/math_opt/s"
573 "parse_containers.proto\"j\n\016VariablesProto"
574 "\022\013\n\003ids\030\001 \003(\003\022\024\n\014lower_bounds\030\002 \003(\001\022\024\n\014u"
575 "pper_bounds\030\003 \003(\001\022\020\n\010integers\030\004 \003(\010\022\r\n\005n"
576 "ames\030\005 \003(\t\"\375\001\n\016ObjectiveProto\022\020\n\010maximiz"
577 "e\030\001 \001(\010\022\016\n\006offset\030\002 \001(\001\022R\n\023linear_coeffi"
578 "cients\030\003 \001(\01325.operations_research.math_"
579 "opt.SparseDoubleVectorProto\022U\n\026quadratic"
580 "_coefficients\030\004 \001(\01325.operations_researc"
581 "h.math_opt.SparseDoubleMatrixProto\022\014\n\004na"
582 "me\030\005 \001(\t\022\020\n\010priority\030\006 \001(\003\"`\n\026LinearCons"
583 "traintsProto\022\013\n\003ids\030\001 \003(\003\022\024\n\014lower_bound"
584 "s\030\002 \003(\001\022\024\n\014upper_bounds\030\003 \003(\001\022\r\n\005names\030\004"
585 " \003(\t\"\357\001\n\030QuadraticConstraintProto\022K\n\014lin"
586 "ear_terms\030\001 \001(\01325.operations_research.ma"
587 "th_opt.SparseDoubleVectorProto\022N\n\017quadra"
588 "tic_terms\030\002 \001(\01325.operations_research.ma"
589 "th_opt.SparseDoubleMatrixProto\022\023\n\013lower_"
590 "bound\030\003 \001(\001\022\023\n\013upper_bound\030\004 \001(\001\022\014\n\004name"
591 "\030\005 \001(\t\"\310\001\n\036SecondOrderConeConstraintProt"
592 "o\022H\n\013upper_bound\030\001 \001(\01323.operations_rese"
593 "arch.math_opt.LinearExpressionProto\022N\n\021a"
594 "rguments_to_norm\030\002 \003(\01323.operations_rese"
595 "arch.math_opt.LinearExpressionProto\022\014\n\004n"
596 "ame\030\003 \001(\t\"}\n\022SosConstraintProto\022H\n\013expre"
597 "ssions\030\001 \003(\01323.operations_research.math_"
598 "opt.LinearExpressionProto\022\017\n\007weights\030\002 \003"
599 "(\001\022\014\n\004name\030\003 \001(\t\"\343\001\n\030IndicatorConstraint"
600 "Proto\022\031\n\014indicator_id\030\001 \001(\003H\000\210\001\001\022\030\n\020acti"
601 "vate_on_zero\030\006 \001(\010\022I\n\nexpression\030\002 \001(\01325"
602 ".operations_research.math_opt.SparseDoub"
603 "leVectorProto\022\023\n\013lower_bound\030\003 \001(\001\022\023\n\013up"
604 "per_bound\030\004 \001(\001\022\014\n\004name\030\005 \001(\tB\017\n\r_indica"
605 "tor_id\"\272\014\n\nModelProto\022\014\n\004name\030\001 \001(\t\022\?\n\tv"
606 "ariables\030\002 \001(\0132,.operations_research.mat"
607 "h_opt.VariablesProto\022\?\n\tobjective\030\003 \001(\0132"
608 ",.operations_research.math_opt.Objective"
609 "Proto\022_\n\024auxiliary_objectives\030\n \003(\0132A.op"
610 "erations_research.math_opt.ModelProto.Au"
611 "xiliaryObjectivesEntry\022P\n\022linear_constra"
612 "ints\030\004 \001(\01324.operations_research.math_op"
613 "t.LinearConstraintsProto\022W\n\030linear_const"
614 "raint_matrix\030\005 \001(\01325.operations_research"
615 ".math_opt.SparseDoubleMatrixProto\022a\n\025qua"
616 "dratic_constraints\030\006 \003(\0132B.operations_re"
617 "search.math_opt.ModelProto.QuadraticCons"
618 "traintsEntry\022o\n\035second_order_cone_constr"
619 "aints\030\013 \003(\0132H.operations_research.math_o"
620 "pt.ModelProto.SecondOrderConeConstraints"
621 "Entry\022W\n\020sos1_constraints\030\007 \003(\0132=.operat"
622 "ions_research.math_opt.ModelProto.Sos1Co"
623 "nstraintsEntry\022W\n\020sos2_constraints\030\010 \003(\013"
624 "2=.operations_research.math_opt.ModelPro"
625 "to.Sos2ConstraintsEntry\022a\n\025indicator_con"
626 "straints\030\t \003(\0132B.operations_research.mat"
627 "h_opt.ModelProto.IndicatorConstraintsEnt"
628 "ry\032h\n\030AuxiliaryObjectivesEntry\022\013\n\003key\030\001 "
629 "\001(\003\022;\n\005value\030\002 \001(\0132,.operations_research"
630 ".math_opt.ObjectiveProto:\0028\001\032s\n\031Quadrati"
631 "cConstraintsEntry\022\013\n\003key\030\001 \001(\003\022E\n\005value\030"
632 "\002 \001(\01326.operations_research.math_opt.Qua"
633 "draticConstraintProto:\0028\001\032\177\n\037SecondOrder"
634 "ConeConstraintsEntry\022\013\n\003key\030\001 \001(\003\022K\n\005val"
635 "ue\030\002 \001(\0132<.operations_research.math_opt."
636 "SecondOrderConeConstraintProto:\0028\001\032h\n\024So"
637 "s1ConstraintsEntry\022\013\n\003key\030\001 \001(\003\022\?\n\005value"
638 "\030\002 \001(\01320.operations_research.math_opt.So"
639 "sConstraintProto:\0028\001\032h\n\024Sos2ConstraintsE"
640 "ntry\022\013\n\003key\030\001 \001(\003\022\?\n\005value\030\002 \001(\01320.opera"
641 "tions_research.math_opt.SosConstraintPro"
642 "to:\0028\001\032s\n\031IndicatorConstraintsEntry\022\013\n\003k"
643 "ey\030\001 \001(\003\022E\n\005value\030\002 \001(\01326.operations_res"
644 "earch.math_opt.IndicatorConstraintProto:"
645 "\0028\001B\036\n\032com.google.ortools.mathoptP\001b\006pro"
648static const ::_pbi::DescriptorTable* PROTOBUF_NONNULL
const
657 descriptor_table_protodef_ortools_2fmath_5fopt_2fmodel_2eproto,
658 "ortools/math_opt/model.proto",
678#if defined(PROTOBUF_CUSTOM_VTABLE)
681 : ::google::protobuf::Message(arena) {
686PROTOBUF_NDEBUG_INLINE VariablesProto::Impl_::Impl_(
687 ::google::protobuf::internal::InternalVisibility visibility,
688 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
689 const ::operations_research::math_opt::VariablesProto& from_msg)
690 : ids_{visibility, arena, from.ids_},
691 _ids_cached_byte_size_{0},
692 lower_bounds_{visibility, arena, from.lower_bounds_},
693 upper_bounds_{visibility, arena, from.upper_bounds_},
694 integers_{visibility, arena, from.integers_},
695 names_{visibility, arena, from.names_},
699 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
701#if defined(PROTOBUF_CUSTOM_VTABLE)
704 : ::google::protobuf::Message(arena) {
708 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
709 from._internal_metadata_);
710 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
714PROTOBUF_NDEBUG_INLINE VariablesProto::Impl_::Impl_(
715 ::google::protobuf::internal::InternalVisibility visibility,
716 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
717 : ids_{visibility, arena},
718 _ids_cached_byte_size_{0},
719 lower_bounds_{visibility, arena},
720 upper_bounds_{visibility, arena},
721 integers_{visibility, arena},
722 names_{visibility, arena},
725inline void VariablesProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
726 new (&
_impl_) Impl_(internal_visibility(), arena);
732inline void VariablesProto::SharedDtor(MessageLite& self) {
734 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
735 ABSL_DCHECK(this_.GetArena() ==
nullptr);
740 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
741 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
745 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
748 InternalGetArenaOffset(
749 ::google::protobuf::Message::internal_visibility()),
752 InternalGetArenaOffset(
753 ::google::protobuf::Message::internal_visibility()),
756 InternalGetArenaOffset(
757 ::google::protobuf::Message::internal_visibility()),
760 InternalGetArenaOffset(
761 ::google::protobuf::Message::internal_visibility()),
764 InternalGetArenaOffset(
765 ::google::protobuf::Message::internal_visibility()),
767 if (arena_bits.has_value()) {
768 return ::google::protobuf::internal::MessageCreator::ZeroInit(
777 return ::google::protobuf::internal::ClassDataFull{
778 ::google::protobuf::internal::ClassData{
783 &VariablesProto::MergeImpl,
784 ::google::protobuf::Message::GetNewImpl<VariablesProto>(),
785#if defined(PROTOBUF_CUSTOM_VTABLE)
786 &VariablesProto::SharedDtor,
793 &VariablesProto::kDescriptorMethods,
799PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
803PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
809PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
810const ::_pbi::TcParseTable<3, 5, 0, 57, 2>
811VariablesProto::_table_ = {
816 offsetof(
decltype(_table_), field_lookup_table),
818 offsetof(
decltype(_table_), field_entries),
821 offsetof(
decltype(_table_), field_names),
824 ::_pbi::TcParser::GenericFallback,
825 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
826 ::_pbi::TcParser::GetTable<::operations_research::math_opt::VariablesProto>(),
829 {::_pbi::TcParser::MiniParse, {}},
831 {::_pbi::TcParser::FastV64P1,
834 {::_pbi::TcParser::FastF64P1,
835 {18, 63, 0, PROTOBUF_FIELD_OFFSET(
VariablesProto, _impl_.lower_bounds_)}},
837 {::_pbi::TcParser::FastF64P1,
838 {26, 63, 0, PROTOBUF_FIELD_OFFSET(
VariablesProto, _impl_.upper_bounds_)}},
840 {::_pbi::TcParser::FastV8P1,
841 {34, 63, 0, PROTOBUF_FIELD_OFFSET(
VariablesProto, _impl_.integers_)}},
843 {::_pbi::TcParser::FastUR1,
844 {42, 63, 0, PROTOBUF_FIELD_OFFSET(
VariablesProto, _impl_.names_)}},
845 {::_pbi::TcParser::MiniParse, {}},
846 {::_pbi::TcParser::MiniParse, {}},
852 (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
854 {PROTOBUF_FIELD_OFFSET(
VariablesProto, _impl_.lower_bounds_), 0, 0,
855 (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)},
857 {PROTOBUF_FIELD_OFFSET(
VariablesProto, _impl_.upper_bounds_), 0, 0,
858 (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)},
861 (0 | ::_fl::kFcRepeated | ::_fl::kPackedBool)},
864 (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)},
869 "operations_research.math_opt.VariablesProto"
875 ::google::protobuf::internal::TSanWrite(&
_impl_);
876 ::uint32_t cached_has_bits = 0;
878 (void) cached_has_bits;
881 _impl_.lower_bounds_.Clear();
882 _impl_.upper_bounds_.Clear();
885 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
888#if defined(PROTOBUF_CUSTOM_VTABLE)
890 const ::google::protobuf::MessageLite&
base, ::uint8_t* PROTOBUF_NONNULL target,
891 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
895 ::uint8_t* PROTOBUF_NONNULL target,
896 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
900 ::uint32_t cached_has_bits = 0;
901 (void)cached_has_bits;
905 int byte_size = this_.
_impl_._ids_cached_byte_size_.Get();
907 target = stream->WriteInt64Packed(
908 1, this_._internal_ids(), byte_size, target);
913 if (this_._internal_lower_bounds_size() > 0) {
914 target = stream->WriteFixedPacked(2, this_._internal_lower_bounds(), target);
918 if (this_._internal_upper_bounds_size() > 0) {
919 target = stream->WriteFixedPacked(3, this_._internal_upper_bounds(), target);
923 if (this_._internal_integers_size() > 0) {
924 target = stream->WriteFixedPacked(4, this_._internal_integers(), target);
928 for (
int i = 0, n = this_._internal_names_size(); i < n; ++i) {
929 const auto& s = this_._internal_names().Get(i);
930 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
931 s.data(),
static_cast<int>(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE,
"operations_research.math_opt.VariablesProto.names");
932 target = stream->WriteString(5, s, target);
935 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
937 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
938 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
944#if defined(PROTOBUF_CUSTOM_VTABLE)
952 ::size_t total_size = 0;
954 ::uint32_t cached_has_bits = 0;
956 (void)cached_has_bits;
958 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
963 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
964 this_._internal_ids(), 1,
965 this_.
_impl_._ids_cached_byte_size_);
969 ::size_t data_size = ::size_t{8} *
970 ::_pbi::FromIntSize(this_._internal_lower_bounds_size());
971 ::size_t tag_size = data_size == 0
973 : 1 + ::_pbi::WireFormatLite::Int32Size(
974 static_cast<::int32_t
>(data_size));
975 total_size += tag_size + data_size;
979 ::size_t data_size = ::size_t{8} *
980 ::_pbi::FromIntSize(this_._internal_upper_bounds_size());
981 ::size_t tag_size = data_size == 0
983 : 1 + ::_pbi::WireFormatLite::Int32Size(
984 static_cast<::int32_t
>(data_size));
985 total_size += tag_size + data_size;
989 ::size_t data_size = ::size_t{1} *
990 ::_pbi::FromIntSize(this_._internal_integers_size());
991 ::size_t tag_size = data_size == 0
993 : 1 + ::_pbi::WireFormatLite::Int32Size(
994 static_cast<::int32_t
>(data_size));
995 total_size += tag_size + data_size;
1000 1 * ::google::protobuf::internal::FromIntSize(this_._internal_names().size());
1001 for (
int i = 0, n = this_._internal_names().size(); i < n; ++i) {
1002 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
1003 this_._internal_names().Get(i));
1007 return this_.MaybeComputeUnknownFieldsSize(total_size,
1008 &this_.
_impl_._cached_size_);
1011void VariablesProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
1015 ABSL_DCHECK_NE(&from, _this);
1016 ::uint32_t cached_has_bits = 0;
1017 (void) cached_has_bits;
1019 _this->_internal_mutable_ids()->MergeFrom(from._internal_ids());
1020 _this->_internal_mutable_lower_bounds()->MergeFrom(from._internal_lower_bounds());
1021 _this->_internal_mutable_upper_bounds()->MergeFrom(from._internal_upper_bounds());
1022 _this->_internal_mutable_integers()->MergeFrom(from._internal_integers());
1023 _this->_internal_mutable_names()->MergeFrom(from._internal_names());
1024 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
1029 if (&from ==
this)
return;
1035void VariablesProto::InternalSwap(
VariablesProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1037 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1038 _impl_.ids_.InternalSwap(&other->_impl_.ids_);
1039 _impl_.lower_bounds_.InternalSwap(&other->_impl_.lower_bounds_);
1040 _impl_.upper_bounds_.InternalSwap(&other->_impl_.upper_bounds_);
1041 _impl_.integers_.InternalSwap(&other->_impl_.integers_);
1042 _impl_.names_.InternalSwap(&other->_impl_.names_);
1046 return ::google::protobuf::Message::GetMetadataImpl(
GetClassData()->full());
1053 decltype(::std::declval<ObjectiveProto>()._impl_._has_bits_);
1059 ::google::protobuf::internal::TSanWrite(&
_impl_);
1060 if (
_impl_.linear_coefficients_ !=
nullptr)
_impl_.linear_coefficients_->Clear();
1061 _impl_._has_bits_[0] &= ~0x00000002u;
1064 ::google::protobuf::internal::TSanWrite(&
_impl_);
1065 if (
_impl_.quadratic_coefficients_ !=
nullptr)
_impl_.quadratic_coefficients_->Clear();
1066 _impl_._has_bits_[0] &= ~0x00000004u;
1069#if defined(PROTOBUF_CUSTOM_VTABLE)
1072 : ::google::protobuf::Message(arena) {
1077PROTOBUF_NDEBUG_INLINE ObjectiveProto::Impl_::Impl_(
1078 ::google::protobuf::internal::InternalVisibility visibility,
1079 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
1080 const ::operations_research::math_opt::ObjectiveProto& from_msg)
1081 : _has_bits_{from._has_bits_},
1083 name_(arena, from.name_) {}
1086 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1088#if defined(PROTOBUF_CUSTOM_VTABLE)
1091 : ::google::protobuf::Message(arena) {
1095 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
1096 from._internal_metadata_);
1097 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1098 ::uint32_t cached_has_bits =
_impl_._has_bits_[0];
1099 _impl_.linear_coefficients_ = ((cached_has_bits & 0x00000002u) != 0)
1100 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.linear_coefficients_)
1102 _impl_.quadratic_coefficients_ = ((cached_has_bits & 0x00000004u) != 0)
1103 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.quadratic_coefficients_)
1105 ::memcpy(
reinterpret_cast<char *
>(&
_impl_) +
1106 offsetof(Impl_, offset_),
1107 reinterpret_cast<const char *
>(&from._impl_) +
1108 offsetof(Impl_, offset_),
1109 offsetof(Impl_, maximize_) -
1110 offsetof(Impl_, offset_) +
1111 sizeof(Impl_::maximize_));
1115PROTOBUF_NDEBUG_INLINE ObjectiveProto::Impl_::Impl_(
1116 ::google::protobuf::internal::InternalVisibility visibility,
1117 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1121inline void ObjectiveProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1122 new (&
_impl_) Impl_(internal_visibility(), arena);
1123 ::memset(
reinterpret_cast<char *
>(&
_impl_) +
1124 offsetof(Impl_, linear_coefficients_),
1126 offsetof(Impl_, maximize_) -
1127 offsetof(Impl_, linear_coefficients_) +
1128 sizeof(Impl_::maximize_));
1134inline void ObjectiveProto::SharedDtor(
MessageLite& self) {
1136 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1137 ABSL_DCHECK(this_.GetArena() ==
nullptr);
1138 this_.
_impl_.name_.Destroy();
1139 delete this_.
_impl_.linear_coefficients_;
1140 delete this_.
_impl_.quadratic_coefficients_;
1145 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
1146 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1150 return ::google::protobuf::internal::MessageCreator::CopyInit(
sizeof(
ObjectiveProto),
1154 return ::google::protobuf::internal::ClassDataFull{
1155 ::google::protobuf::internal::ClassData{
1160 &ObjectiveProto::MergeImpl,
1161 ::google::protobuf::Message::GetNewImpl<ObjectiveProto>(),
1162#if defined(PROTOBUF_CUSTOM_VTABLE)
1163 &ObjectiveProto::SharedDtor,
1170 &ObjectiveProto::kDescriptorMethods,
1176PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1180PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1186PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1187const ::_pbi::TcParseTable<3, 6, 2, 56, 2>
1188ObjectiveProto::_table_ = {
1193 offsetof(
decltype(_table_), field_lookup_table),
1195 offsetof(
decltype(_table_), field_entries),
1198 offsetof(
decltype(_table_), aux_entries),
1201 ::_pbi::TcParser::GenericFallback,
1202 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1203 ::_pbi::TcParser::GetTable<::operations_research::math_opt::ObjectiveProto>(),
1206 {::_pbi::TcParser::MiniParse, {}},
1208 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(ObjectiveProto,
_impl_.maximize_), 5>(),
1209 {8, 5, 0, PROTOBUF_FIELD_OFFSET(ObjectiveProto,
_impl_.maximize_)}},
1211 {::_pbi::TcParser::FastF64S1,
1212 {17, 3, 0, PROTOBUF_FIELD_OFFSET(ObjectiveProto,
_impl_.offset_)}},
1214 {::_pbi::TcParser::FastMtS1,
1215 {26, 1, 0, PROTOBUF_FIELD_OFFSET(ObjectiveProto,
_impl_.linear_coefficients_)}},
1217 {::_pbi::TcParser::FastMtS1,
1218 {34, 2, 1, PROTOBUF_FIELD_OFFSET(ObjectiveProto,
_impl_.quadratic_coefficients_)}},
1220 {::_pbi::TcParser::FastUS1,
1221 {42, 0, 0, PROTOBUF_FIELD_OFFSET(ObjectiveProto,
_impl_.name_)}},
1223 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ObjectiveProto,
_impl_.priority_), 4>(),
1224 {48, 4, 0, PROTOBUF_FIELD_OFFSET(ObjectiveProto,
_impl_.priority_)}},
1225 {::_pbi::TcParser::MiniParse, {}},
1230 {PROTOBUF_FIELD_OFFSET(ObjectiveProto,
_impl_.maximize_), _Internal::kHasBitsOffset + 5, 0,
1231 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
1233 {PROTOBUF_FIELD_OFFSET(ObjectiveProto,
_impl_.offset_), _Internal::kHasBitsOffset + 3, 0,
1234 (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
1236 {PROTOBUF_FIELD_OFFSET(ObjectiveProto,
_impl_.linear_coefficients_), _Internal::kHasBitsOffset + 1, 0,
1237 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1239 {PROTOBUF_FIELD_OFFSET(ObjectiveProto,
_impl_.quadratic_coefficients_), _Internal::kHasBitsOffset + 2, 1,
1240 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1242 {PROTOBUF_FIELD_OFFSET(ObjectiveProto,
_impl_.name_), _Internal::kHasBitsOffset + 0, 0,
1243 (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
1245 {PROTOBUF_FIELD_OFFSET(ObjectiveProto,
_impl_.priority_), _Internal::kHasBitsOffset + 4, 0,
1246 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
1249 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleVectorProto>()},
1250 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleMatrixProto>()},
1254 "operations_research.math_opt.ObjectiveProto"
1260 ::google::protobuf::internal::TSanWrite(&
_impl_);
1261 ::uint32_t cached_has_bits = 0;
1263 (void) cached_has_bits;
1265 cached_has_bits =
_impl_._has_bits_[0];
1266 if ((cached_has_bits & 0x00000007u) != 0) {
1267 if ((cached_has_bits & 0x00000001u) != 0) {
1268 _impl_.name_.ClearNonDefaultToEmpty();
1270 if ((cached_has_bits & 0x00000002u) != 0) {
1271 ABSL_DCHECK(
_impl_.linear_coefficients_ !=
nullptr);
1272 _impl_.linear_coefficients_->Clear();
1274 if ((cached_has_bits & 0x00000004u) != 0) {
1275 ABSL_DCHECK(
_impl_.quadratic_coefficients_ !=
nullptr);
1276 _impl_.quadratic_coefficients_->Clear();
1279 if ((cached_has_bits & 0x00000038u) != 0) {
1280 ::memset(&
_impl_.offset_, 0,
static_cast<::
size_t>(
1281 reinterpret_cast<char*
>(&
_impl_.maximize_) -
1282 reinterpret_cast<char*
>(&
_impl_.offset_)) +
sizeof(
_impl_.maximize_));
1284 _impl_._has_bits_.Clear();
1285 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1288#if defined(PROTOBUF_CUSTOM_VTABLE)
1290 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1291 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1292 const ObjectiveProto& this_ =
static_cast<const ObjectiveProto&
>(base);
1295 ::uint8_t* PROTOBUF_NONNULL target,
1296 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
1300 ::uint32_t cached_has_bits = 0;
1301 (void)cached_has_bits;
1304 if ((this_.
_impl_._has_bits_[0] & 0x00000020u) != 0) {
1305 if (this_._internal_maximize() != 0) {
1306 target = stream->EnsureSpace(target);
1307 target = ::_pbi::WireFormatLite::WriteBoolToArray(
1308 1, this_._internal_maximize(), target);
1313 if ((this_.
_impl_._has_bits_[0] & 0x00000008u) != 0) {
1314 if (::absl::bit_cast<::uint64_t>(this_._internal_offset()) != 0) {
1315 target = stream->EnsureSpace(target);
1316 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
1317 2, this_._internal_offset(), target);
1321 cached_has_bits = this_.
_impl_._has_bits_[0];
1323 if ((cached_has_bits & 0x00000002u) != 0) {
1324 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1325 3, *this_.
_impl_.linear_coefficients_, this_.
_impl_.linear_coefficients_->GetCachedSize(), target,
1330 if ((cached_has_bits & 0x00000004u) != 0) {
1331 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1332 4, *this_.
_impl_.quadratic_coefficients_, this_.
_impl_.quadratic_coefficients_->GetCachedSize(), target,
1337 if ((cached_has_bits & 0x00000001u) != 0) {
1338 if (!this_._internal_name().empty()) {
1339 const ::std::string& _s = this_._internal_name();
1340 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1341 _s.data(),
static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE,
"operations_research.math_opt.ObjectiveProto.name");
1342 target = stream->WriteStringMaybeAliased(5, _s, target);
1347 if ((cached_has_bits & 0x00000010u) != 0) {
1348 if (this_._internal_priority() != 0) {
1350 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<6>(
1351 stream, this_._internal_priority(), target);
1355 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1357 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1358 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1364#if defined(PROTOBUF_CUSTOM_VTABLE)
1372 ::size_t total_size = 0;
1374 ::uint32_t cached_has_bits = 0;
1376 (void)cached_has_bits;
1378 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1379 cached_has_bits = this_.
_impl_._has_bits_[0];
1380 if ((cached_has_bits & 0x0000003fu) != 0) {
1382 if ((cached_has_bits & 0x00000001u) != 0) {
1383 if (!this_._internal_name().empty()) {
1384 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
1385 this_._internal_name());
1389 if ((cached_has_bits & 0x00000002u) != 0) {
1391 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_.
_impl_.linear_coefficients_);
1394 if ((cached_has_bits & 0x00000004u) != 0) {
1396 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_.
_impl_.quadratic_coefficients_);
1399 if ((cached_has_bits & 0x00000008u) != 0) {
1400 if (::absl::bit_cast<::uint64_t>(this_._internal_offset()) != 0) {
1405 if ((cached_has_bits & 0x00000010u) != 0) {
1406 if (this_._internal_priority() != 0) {
1407 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
1408 this_._internal_priority());
1412 if ((cached_has_bits & 0x00000020u) != 0) {
1413 if (this_._internal_maximize() != 0) {
1418 return this_.MaybeComputeUnknownFieldsSize(total_size,
1419 &this_.
_impl_._cached_size_);
1422void ObjectiveProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
1423 auto*
const _this =
static_cast<ObjectiveProto*
>(&to_msg);
1424 auto& from =
static_cast<const ObjectiveProto&
>(from_msg);
1427 ABSL_DCHECK_NE(&from, _this);
1428 ::uint32_t cached_has_bits = 0;
1429 (void) cached_has_bits;
1431 cached_has_bits = from._impl_._has_bits_[0];
1432 if ((cached_has_bits & 0x0000003fu) != 0) {
1433 if ((cached_has_bits & 0x00000001u) != 0) {
1434 if (!from._internal_name().empty()) {
1435 _this->_internal_set_name(from._internal_name());
1437 if (_this->_impl_.name_.IsDefault()) {
1438 _this->_internal_set_name(
"");
1442 if ((cached_has_bits & 0x00000002u) != 0) {
1443 ABSL_DCHECK(from._impl_.linear_coefficients_ !=
nullptr);
1444 if (_this->_impl_.linear_coefficients_ ==
nullptr) {
1445 _this->_impl_.linear_coefficients_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.linear_coefficients_);
1447 _this->_impl_.linear_coefficients_->MergeFrom(*from._impl_.linear_coefficients_);
1450 if ((cached_has_bits & 0x00000004u) != 0) {
1451 ABSL_DCHECK(from._impl_.quadratic_coefficients_ !=
nullptr);
1452 if (_this->_impl_.quadratic_coefficients_ ==
nullptr) {
1453 _this->_impl_.quadratic_coefficients_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.quadratic_coefficients_);
1455 _this->_impl_.quadratic_coefficients_->MergeFrom(*from._impl_.quadratic_coefficients_);
1458 if ((cached_has_bits & 0x00000008u) != 0) {
1459 if (::absl::bit_cast<::uint64_t>(from._internal_offset()) != 0) {
1460 _this->_impl_.offset_ = from._impl_.offset_;
1463 if ((cached_has_bits & 0x00000010u) != 0) {
1464 if (from._internal_priority() != 0) {
1465 _this->_impl_.priority_ = from._impl_.priority_;
1468 if ((cached_has_bits & 0x00000020u) != 0) {
1469 if (from._internal_maximize() != 0) {
1470 _this->_impl_.maximize_ = from._impl_.maximize_;
1474 _this->_impl_._has_bits_[0] |= cached_has_bits;
1475 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
1480 if (&from ==
this)
return;
1486void ObjectiveProto::InternalSwap(
ObjectiveProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1488 auto* arena = GetArena();
1489 ABSL_DCHECK_EQ(arena, other->GetArena());
1490 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1491 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1492 ::_pbi::ArenaStringPtr::InternalSwap(&
_impl_.name_, &other->_impl_.name_, arena);
1493 ::google::protobuf::internal::memswap<
1497 reinterpret_cast<char*
>(&
_impl_.linear_coefficients_),
1498 reinterpret_cast<char*
>(&other->_impl_.linear_coefficients_));
1502 return ::google::protobuf::Message::GetMetadataImpl(
GetClassData()->full());
1511#if defined(PROTOBUF_CUSTOM_VTABLE)
1514 : ::google::protobuf::Message(arena) {
1519PROTOBUF_NDEBUG_INLINE LinearConstraintsProto::Impl_::Impl_(
1520 ::google::protobuf::internal::InternalVisibility visibility,
1521 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
1522 const ::operations_research::math_opt::LinearConstraintsProto& from_msg)
1523 : ids_{visibility, arena, from.ids_},
1524 _ids_cached_byte_size_{0},
1525 lower_bounds_{visibility, arena, from.lower_bounds_},
1526 upper_bounds_{visibility, arena, from.upper_bounds_},
1527 names_{visibility, arena, from.names_},
1531 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1532 const LinearConstraintsProto& from)
1533#if defined(PROTOBUF_CUSTOM_VTABLE)
1536 : ::google::protobuf::Message(arena) {
1540 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
1541 from._internal_metadata_);
1542 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1546PROTOBUF_NDEBUG_INLINE LinearConstraintsProto::Impl_::Impl_(
1547 ::google::protobuf::internal::InternalVisibility visibility,
1548 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1549 : ids_{visibility, arena},
1550 _ids_cached_byte_size_{0},
1551 lower_bounds_{visibility, arena},
1552 upper_bounds_{visibility, arena},
1553 names_{visibility, arena},
1556inline void LinearConstraintsProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1557 new (&
_impl_) Impl_(internal_visibility(), arena);
1563inline void LinearConstraintsProto::SharedDtor(MessageLite& self) {
1565 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1566 ABSL_DCHECK(this_.GetArena() ==
nullptr);
1571 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
1572 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1576 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
1579 InternalGetArenaOffset(
1583 InternalGetArenaOffset(
1587 InternalGetArenaOffset(
1591 InternalGetArenaOffset(
1594 if (arena_bits.has_value()) {
1595 return ::google::protobuf::internal::MessageCreator::ZeroInit(
1596 sizeof(LinearConstraintsProto), alignof(LinearConstraintsProto), *arena_bits);
1598 return ::google::protobuf::internal::MessageCreator(&LinearConstraintsProto::PlacementNew_,
1599 sizeof(LinearConstraintsProto),
1600 alignof(LinearConstraintsProto));
1604 return ::google::protobuf::internal::ClassDataFull{
1605 ::google::protobuf::internal::ClassData{
1610 &LinearConstraintsProto::MergeImpl,
1611 ::google::protobuf::Message::GetNewImpl<LinearConstraintsProto>(),
1612#if defined(PROTOBUF_CUSTOM_VTABLE)
1613 &LinearConstraintsProto::SharedDtor,
1620 &LinearConstraintsProto::kDescriptorMethods,
1626PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1630PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1636PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1637const ::_pbi::TcParseTable<2, 4, 0, 65, 2>
1638LinearConstraintsProto::_table_ = {
1643 offsetof(
decltype(_table_), field_lookup_table),
1645 offsetof(
decltype(_table_), field_entries),
1648 offsetof(
decltype(_table_), field_names),
1651 ::_pbi::TcParser::GenericFallback,
1652 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1653 ::_pbi::TcParser::GetTable<::operations_research::math_opt::LinearConstraintsProto>(),
1657 {::_pbi::TcParser::FastUR1,
1660 {::_pbi::TcParser::FastV64P1,
1663 {::_pbi::TcParser::FastF64P1,
1666 {::_pbi::TcParser::FastF64P1,
1673 (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
1676 (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)},
1679 (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)},
1682 (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)},
1687 "operations_research.math_opt.LinearConstraintsProto"
1693 ::google::protobuf::internal::TSanWrite(&
_impl_);
1694 ::uint32_t cached_has_bits = 0;
1696 (void) cached_has_bits;
1699 _impl_.lower_bounds_.Clear();
1700 _impl_.upper_bounds_.Clear();
1702 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1705#if defined(PROTOBUF_CUSTOM_VTABLE)
1707 const ::google::protobuf::MessageLite&
base, ::uint8_t* PROTOBUF_NONNULL target,
1708 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1712 ::uint8_t* PROTOBUF_NONNULL target,
1713 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
1717 ::uint32_t cached_has_bits = 0;
1718 (void)cached_has_bits;
1722 int byte_size = this_.
_impl_._ids_cached_byte_size_.Get();
1723 if (byte_size > 0) {
1724 target = stream->WriteInt64Packed(
1725 1, this_._internal_ids(), byte_size, target);
1730 if (this_._internal_lower_bounds_size() > 0) {
1731 target = stream->WriteFixedPacked(2, this_._internal_lower_bounds(), target);
1735 if (this_._internal_upper_bounds_size() > 0) {
1736 target = stream->WriteFixedPacked(3, this_._internal_upper_bounds(), target);
1740 for (
int i = 0, n = this_._internal_names_size(); i < n; ++i) {
1741 const auto& s = this_._internal_names().Get(i);
1742 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1743 s.data(),
static_cast<int>(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE,
"operations_research.math_opt.LinearConstraintsProto.names");
1744 target = stream->WriteString(4, s, target);
1747 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1749 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1750 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1756#if defined(PROTOBUF_CUSTOM_VTABLE)
1764 ::size_t total_size = 0;
1766 ::uint32_t cached_has_bits = 0;
1768 (void)cached_has_bits;
1770 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1775 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
1776 this_._internal_ids(), 1,
1777 this_._impl_._ids_cached_byte_size_);
1781 ::size_t data_size = ::size_t{8} *
1782 ::_pbi::FromIntSize(this_._internal_lower_bounds_size());
1783 ::size_t tag_size = data_size == 0
1785 : 1 + ::_pbi::WireFormatLite::Int32Size(
1786 static_cast<::int32_t
>(data_size));
1787 total_size += tag_size + data_size;
1791 ::size_t data_size = ::size_t{8} *
1792 ::_pbi::FromIntSize(this_._internal_upper_bounds_size());
1793 ::size_t tag_size = data_size == 0
1795 : 1 + ::_pbi::WireFormatLite::Int32Size(
1796 static_cast<::int32_t
>(data_size));
1797 total_size += tag_size + data_size;
1802 1 * ::google::protobuf::internal::FromIntSize(this_._internal_names().size());
1803 for (
int i = 0, n = this_._internal_names().size(); i < n; ++i) {
1804 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
1805 this_._internal_names().Get(i));
1809 return this_.MaybeComputeUnknownFieldsSize(total_size,
1810 &this_._impl_._cached_size_);
1813void LinearConstraintsProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
1817 ABSL_DCHECK_NE(&from, _this);
1818 ::uint32_t cached_has_bits = 0;
1819 (void) cached_has_bits;
1821 _this->_internal_mutable_ids()->MergeFrom(from._internal_ids());
1822 _this->_internal_mutable_lower_bounds()->MergeFrom(from._internal_lower_bounds());
1823 _this->_internal_mutable_upper_bounds()->MergeFrom(from._internal_upper_bounds());
1824 _this->_internal_mutable_names()->MergeFrom(from._internal_names());
1825 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
1830 if (&from ==
this)
return;
1836void LinearConstraintsProto::InternalSwap(
LinearConstraintsProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1838 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1839 _impl_.ids_.InternalSwap(&other->_impl_.ids_);
1840 _impl_.lower_bounds_.InternalSwap(&other->_impl_.lower_bounds_);
1841 _impl_.upper_bounds_.InternalSwap(&other->_impl_.upper_bounds_);
1842 _impl_.names_.InternalSwap(&other->_impl_.names_);
1846 return ::google::protobuf::Message::GetMetadataImpl(
GetClassData()->full());
1853 decltype(::std::declval<QuadraticConstraintProto>()._impl_._has_bits_);
1859 ::google::protobuf::internal::TSanWrite(&
_impl_);
1860 if (
_impl_.linear_terms_ !=
nullptr)
_impl_.linear_terms_->Clear();
1861 _impl_._has_bits_[0] &= ~0x00000002u;
1864 ::google::protobuf::internal::TSanWrite(&
_impl_);
1865 if (
_impl_.quadratic_terms_ !=
nullptr)
_impl_.quadratic_terms_->Clear();
1866 _impl_._has_bits_[0] &= ~0x00000004u;
1869#if defined(PROTOBUF_CUSTOM_VTABLE)
1872 : ::google::protobuf::Message(arena) {
1877PROTOBUF_NDEBUG_INLINE QuadraticConstraintProto::Impl_::Impl_(
1878 ::google::protobuf::internal::InternalVisibility visibility,
1879 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
1880 const ::operations_research::math_opt::QuadraticConstraintProto& from_msg)
1881 : _has_bits_{from._has_bits_},
1883 name_(arena, from.name_) {}
1886 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1887 const QuadraticConstraintProto& from)
1888#if defined(PROTOBUF_CUSTOM_VTABLE)
1891 : ::google::protobuf::Message(arena) {
1895 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
1896 from._internal_metadata_);
1897 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1898 ::uint32_t cached_has_bits =
_impl_._has_bits_[0];
1899 _impl_.linear_terms_ = ((cached_has_bits & 0x00000002u) != 0)
1900 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.linear_terms_)
1902 _impl_.quadratic_terms_ = ((cached_has_bits & 0x00000004u) != 0)
1903 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.quadratic_terms_)
1905 ::memcpy(
reinterpret_cast<char *
>(&
_impl_) +
1906 offsetof(Impl_, lower_bound_),
1907 reinterpret_cast<const char *
>(&from._impl_) +
1908 offsetof(Impl_, lower_bound_),
1909 offsetof(Impl_, upper_bound_) -
1910 offsetof(Impl_, lower_bound_) +
1911 sizeof(Impl_::upper_bound_));
1915PROTOBUF_NDEBUG_INLINE QuadraticConstraintProto::Impl_::Impl_(
1916 ::google::protobuf::internal::InternalVisibility visibility,
1917 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1921inline void QuadraticConstraintProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1922 new (&
_impl_) Impl_(internal_visibility(), arena);
1923 ::memset(
reinterpret_cast<char *
>(&
_impl_) +
1924 offsetof(Impl_, linear_terms_),
1926 offsetof(Impl_, upper_bound_) -
1927 offsetof(Impl_, linear_terms_) +
1928 sizeof(Impl_::upper_bound_));
1936 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1937 ABSL_DCHECK(this_.GetArena() ==
nullptr);
1938 this_.
_impl_.name_.Destroy();
1939 delete this_.
_impl_.linear_terms_;
1940 delete this_.
_impl_.quadratic_terms_;
1945 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
1946 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1954 return ::google::protobuf::internal::ClassDataFull{
1955 ::google::protobuf::internal::ClassData{
1960 &QuadraticConstraintProto::MergeImpl,
1961 ::google::protobuf::Message::GetNewImpl<QuadraticConstraintProto>(),
1962#if defined(PROTOBUF_CUSTOM_VTABLE)
1963 &QuadraticConstraintProto::SharedDtor,
1970 &QuadraticConstraintProto::kDescriptorMethods,
1976PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1980PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1986PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1987const ::_pbi::TcParseTable<3, 5, 2, 66, 2>
1988QuadraticConstraintProto::_table_ = {
1993 offsetof(
decltype(_table_), field_lookup_table),
1995 offsetof(
decltype(_table_), field_entries),
1998 offsetof(
decltype(_table_), aux_entries),
2001 ::_pbi::TcParser::GenericFallback,
2002 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
2003 ::_pbi::TcParser::GetTable<::operations_research::math_opt::QuadraticConstraintProto>(),
2006 {::_pbi::TcParser::MiniParse, {}},
2008 {::_pbi::TcParser::FastMtS1,
2011 {::_pbi::TcParser::FastMtS1,
2014 {::_pbi::TcParser::FastF64S1,
2017 {::_pbi::TcParser::FastF64S1,
2020 {::_pbi::TcParser::FastUS1,
2022 {::_pbi::TcParser::MiniParse, {}},
2023 {::_pbi::TcParser::MiniParse, {}},
2029 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
2032 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
2035 (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
2038 (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
2041 (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
2044 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleVectorProto>()},
2045 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleMatrixProto>()},
2049 "operations_research.math_opt.QuadraticConstraintProto"
2055 ::google::protobuf::internal::TSanWrite(&
_impl_);
2056 ::uint32_t cached_has_bits = 0;
2058 (void) cached_has_bits;
2060 cached_has_bits =
_impl_._has_bits_[0];
2061 if ((cached_has_bits & 0x00000007u) != 0) {
2062 if ((cached_has_bits & 0x00000001u) != 0) {
2063 _impl_.name_.ClearNonDefaultToEmpty();
2065 if ((cached_has_bits & 0x00000002u) != 0) {
2066 ABSL_DCHECK(
_impl_.linear_terms_ !=
nullptr);
2067 _impl_.linear_terms_->Clear();
2069 if ((cached_has_bits & 0x00000004u) != 0) {
2070 ABSL_DCHECK(
_impl_.quadratic_terms_ !=
nullptr);
2071 _impl_.quadratic_terms_->Clear();
2074 if ((cached_has_bits & 0x00000018u) != 0) {
2075 ::memset(&
_impl_.lower_bound_, 0,
static_cast<::
size_t>(
2076 reinterpret_cast<char*
>(&
_impl_.upper_bound_) -
2077 reinterpret_cast<char*
>(&
_impl_.lower_bound_)) +
sizeof(
_impl_.upper_bound_));
2079 _impl_._has_bits_.Clear();
2080 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
2083#if defined(PROTOBUF_CUSTOM_VTABLE)
2085 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
2086 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
2090 ::uint8_t* PROTOBUF_NONNULL target,
2091 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
2095 ::uint32_t cached_has_bits = 0;
2096 (void)cached_has_bits;
2098 cached_has_bits = this_._impl_._has_bits_[0];
2100 if ((cached_has_bits & 0x00000002u) != 0) {
2101 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2102 1, *this_._impl_.linear_terms_, this_._impl_.linear_terms_->GetCachedSize(), target,
2107 if ((cached_has_bits & 0x00000004u) != 0) {
2108 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2109 2, *this_._impl_.quadratic_terms_, this_._impl_.quadratic_terms_->GetCachedSize(), target,
2114 if ((cached_has_bits & 0x00000008u) != 0) {
2115 if (::absl::bit_cast<::uint64_t>(this_._internal_lower_bound()) != 0) {
2116 target = stream->EnsureSpace(target);
2117 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
2118 3, this_._internal_lower_bound(), target);
2123 if ((cached_has_bits & 0x00000010u) != 0) {
2124 if (::absl::bit_cast<::uint64_t>(this_._internal_upper_bound()) != 0) {
2125 target = stream->EnsureSpace(target);
2126 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
2127 4, this_._internal_upper_bound(), target);
2132 if ((cached_has_bits & 0x00000001u) != 0) {
2133 if (!this_._internal_name().empty()) {
2134 const ::std::string& _s = this_._internal_name();
2135 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2136 _s.data(),
static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE,
"operations_research.math_opt.QuadraticConstraintProto.name");
2137 target = stream->WriteStringMaybeAliased(5, _s, target);
2141 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
2143 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2144 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
2150#if defined(PROTOBUF_CUSTOM_VTABLE)
2158 ::size_t total_size = 0;
2160 ::uint32_t cached_has_bits = 0;
2162 (void)cached_has_bits;
2164 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
2165 cached_has_bits = this_._impl_._has_bits_[0];
2166 if ((cached_has_bits & 0x0000001fu) != 0) {
2168 if ((cached_has_bits & 0x00000001u) != 0) {
2169 if (!this_._internal_name().empty()) {
2170 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
2171 this_._internal_name());
2175 if ((cached_has_bits & 0x00000002u) != 0) {
2177 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.linear_terms_);
2180 if ((cached_has_bits & 0x00000004u) != 0) {
2182 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.quadratic_terms_);
2185 if ((cached_has_bits & 0x00000008u) != 0) {
2186 if (::absl::bit_cast<::uint64_t>(this_._internal_lower_bound()) != 0) {
2191 if ((cached_has_bits & 0x00000010u) != 0) {
2192 if (::absl::bit_cast<::uint64_t>(this_._internal_upper_bound()) != 0) {
2197 return this_.MaybeComputeUnknownFieldsSize(total_size,
2198 &this_._impl_._cached_size_);
2201void QuadraticConstraintProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
2206 ABSL_DCHECK_NE(&from, _this);
2207 ::uint32_t cached_has_bits = 0;
2208 (void) cached_has_bits;
2210 cached_has_bits = from._impl_._has_bits_[0];
2211 if ((cached_has_bits & 0x0000001fu) != 0) {
2212 if ((cached_has_bits & 0x00000001u) != 0) {
2213 if (!from._internal_name().empty()) {
2214 _this->_internal_set_name(from._internal_name());
2216 if (_this->_impl_.name_.IsDefault()) {
2217 _this->_internal_set_name(
"");
2221 if ((cached_has_bits & 0x00000002u) != 0) {
2222 ABSL_DCHECK(from._impl_.linear_terms_ !=
nullptr);
2223 if (_this->_impl_.linear_terms_ ==
nullptr) {
2224 _this->_impl_.linear_terms_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.linear_terms_);
2226 _this->_impl_.linear_terms_->MergeFrom(*from._impl_.linear_terms_);
2229 if ((cached_has_bits & 0x00000004u) != 0) {
2230 ABSL_DCHECK(from._impl_.quadratic_terms_ !=
nullptr);
2231 if (_this->_impl_.quadratic_terms_ ==
nullptr) {
2232 _this->_impl_.quadratic_terms_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.quadratic_terms_);
2234 _this->_impl_.quadratic_terms_->MergeFrom(*from._impl_.quadratic_terms_);
2237 if ((cached_has_bits & 0x00000008u) != 0) {
2238 if (::absl::bit_cast<::uint64_t>(from._internal_lower_bound()) != 0) {
2239 _this->_impl_.lower_bound_ = from._impl_.lower_bound_;
2242 if ((cached_has_bits & 0x00000010u) != 0) {
2243 if (::absl::bit_cast<::uint64_t>(from._internal_upper_bound()) != 0) {
2244 _this->_impl_.upper_bound_ = from._impl_.upper_bound_;
2248 _this->_impl_._has_bits_[0] |= cached_has_bits;
2249 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
2254 if (&from ==
this)
return;
2262 auto* arena = GetArena();
2263 ABSL_DCHECK_EQ(arena, other->GetArena());
2264 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2265 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2266 ::_pbi::ArenaStringPtr::InternalSwap(&
_impl_.name_, &other->_impl_.name_, arena);
2267 ::google::protobuf::internal::memswap<
2271 reinterpret_cast<char*
>(&
_impl_.linear_terms_),
2272 reinterpret_cast<char*
>(&other->_impl_.linear_terms_));
2276 return ::google::protobuf::Message::GetMetadataImpl(
GetClassData()->full());
2283 decltype(::std::declval<SecondOrderConeConstraintProto>()._impl_._has_bits_);
2284 static constexpr ::int32_t kHasBitsOffset =
2289 ::google::protobuf::internal::TSanWrite(&
_impl_);
2290 if (
_impl_.upper_bound_ !=
nullptr)
_impl_.upper_bound_->Clear();
2291 _impl_._has_bits_[0] &= ~0x00000002u;
2294 ::google::protobuf::internal::TSanWrite(&
_impl_);
2295 _impl_.arguments_to_norm_.Clear();
2298#if defined(PROTOBUF_CUSTOM_VTABLE)
2301 : ::google::protobuf::Message(arena) {
2306PROTOBUF_NDEBUG_INLINE SecondOrderConeConstraintProto::Impl_::Impl_(
2307 ::google::protobuf::internal::InternalVisibility visibility,
2308 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
2309 const ::operations_research::math_opt::SecondOrderConeConstraintProto& from_msg)
2310 : _has_bits_{from._has_bits_},
2312 arguments_to_norm_{visibility, arena, from.arguments_to_norm_},
2313 name_(arena, from.name_) {}
2316 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
2317 const SecondOrderConeConstraintProto& from)
2318#if defined(PROTOBUF_CUSTOM_VTABLE)
2321 : ::google::protobuf::Message(arena) {
2325 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
2326 from._internal_metadata_);
2327 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
2328 ::uint32_t cached_has_bits =
_impl_._has_bits_[0];
2329 _impl_.upper_bound_ = ((cached_has_bits & 0x00000002u) != 0)
2330 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.upper_bound_)
2335PROTOBUF_NDEBUG_INLINE SecondOrderConeConstraintProto::Impl_::Impl_(
2336 ::google::protobuf::internal::InternalVisibility visibility,
2337 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
2339 arguments_to_norm_{visibility, arena},
2342inline void SecondOrderConeConstraintProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
2343 new (&
_impl_) Impl_(internal_visibility(), arena);
2344 _impl_.upper_bound_ = {};
2350inline void SecondOrderConeConstraintProto::SharedDtor(MessageLite& self) {
2352 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
2353 ABSL_DCHECK(this_.GetArena() ==
nullptr);
2354 this_.
_impl_.name_.Destroy();
2355 delete this_.
_impl_.upper_bound_;
2360 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
2361 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
2365 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
2368 InternalGetArenaOffset(
2369 ::google::protobuf::Message::internal_visibility()),
2371 if (arena_bits.has_value()) {
2372 return ::google::protobuf::internal::MessageCreator::CopyInit(
2381 return ::google::protobuf::internal::ClassDataFull{
2382 ::google::protobuf::internal::ClassData{
2387 &SecondOrderConeConstraintProto::MergeImpl,
2388 ::google::protobuf::Message::GetNewImpl<SecondOrderConeConstraintProto>(),
2389#if defined(PROTOBUF_CUSTOM_VTABLE)
2390 &SecondOrderConeConstraintProto::SharedDtor,
2397 &SecondOrderConeConstraintProto::kDescriptorMethods,
2403PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
2407PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
2413PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
2414const ::_pbi::TcParseTable<2, 3, 2, 72, 2>
2415SecondOrderConeConstraintProto::_table_ = {
2420 offsetof(
decltype(_table_), field_lookup_table),
2422 offsetof(
decltype(_table_), field_entries),
2425 offsetof(
decltype(_table_), aux_entries),
2428 ::_pbi::TcParser::GenericFallback,
2429 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
2430 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SecondOrderConeConstraintProto>(),
2433 {::_pbi::TcParser::MiniParse, {}},
2435 {::_pbi::TcParser::FastMtS1,
2438 {::_pbi::TcParser::FastMtR1,
2441 {::_pbi::TcParser::FastUS1,
2448 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
2451 (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
2454 (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
2457 {::_pbi::TcParser::GetTable<::operations_research::math_opt::LinearExpressionProto>()},
2458 {::_pbi::TcParser::GetTable<::operations_research::math_opt::LinearExpressionProto>()},
2462 "operations_research.math_opt.SecondOrderConeConstraintProto"
2468 ::google::protobuf::internal::TSanWrite(&
_impl_);
2469 ::uint32_t cached_has_bits = 0;
2471 (void) cached_has_bits;
2473 _impl_.arguments_to_norm_.Clear();
2474 cached_has_bits =
_impl_._has_bits_[0];
2475 if ((cached_has_bits & 0x00000003u) != 0) {
2476 if ((cached_has_bits & 0x00000001u) != 0) {
2477 _impl_.name_.ClearNonDefaultToEmpty();
2479 if ((cached_has_bits & 0x00000002u) != 0) {
2480 ABSL_DCHECK(
_impl_.upper_bound_ !=
nullptr);
2481 _impl_.upper_bound_->Clear();
2484 _impl_._has_bits_.Clear();
2485 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
2488#if defined(PROTOBUF_CUSTOM_VTABLE)
2490 const ::google::protobuf::MessageLite&
base, ::uint8_t* PROTOBUF_NONNULL target,
2491 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
2495 ::uint8_t* PROTOBUF_NONNULL target,
2496 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
2500 ::uint32_t cached_has_bits = 0;
2501 (void)cached_has_bits;
2503 cached_has_bits = this_.
_impl_._has_bits_[0];
2505 if ((cached_has_bits & 0x00000002u) != 0) {
2506 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2507 1, *this_._impl_.upper_bound_, this_._impl_.upper_bound_->GetCachedSize(), target,
2512 for (
unsigned i = 0, n =
static_cast<unsigned>(
2513 this_._internal_arguments_to_norm_size());
2515 const auto& repfield = this_._internal_arguments_to_norm().Get(i);
2517 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2518 2, repfield, repfield.GetCachedSize(),
2523 if ((cached_has_bits & 0x00000001u) != 0) {
2524 if (!this_._internal_name().empty()) {
2525 const ::std::string& _s = this_._internal_name();
2526 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2527 _s.data(),
static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE,
"operations_research.math_opt.SecondOrderConeConstraintProto.name");
2528 target = stream->WriteStringMaybeAliased(3, _s, target);
2532 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
2534 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2535 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
2541#if defined(PROTOBUF_CUSTOM_VTABLE)
2549 ::size_t total_size = 0;
2551 ::uint32_t cached_has_bits = 0;
2553 (void)cached_has_bits;
2555 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
2559 total_size += 1UL * this_._internal_arguments_to_norm_size();
2560 for (
const auto& msg : this_._internal_arguments_to_norm()) {
2561 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
2565 cached_has_bits = this_._impl_._has_bits_[0];
2566 if ((cached_has_bits & 0x00000003u) != 0) {
2568 if ((cached_has_bits & 0x00000001u) != 0) {
2569 if (!this_._internal_name().empty()) {
2570 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
2571 this_._internal_name());
2575 if ((cached_has_bits & 0x00000002u) != 0) {
2577 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.upper_bound_);
2580 return this_.MaybeComputeUnknownFieldsSize(total_size,
2581 &this_._impl_._cached_size_);
2584void SecondOrderConeConstraintProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
2589 ABSL_DCHECK_NE(&from, _this);
2590 ::uint32_t cached_has_bits = 0;
2591 (void) cached_has_bits;
2593 _this->_internal_mutable_arguments_to_norm()->MergeFrom(
2594 from._internal_arguments_to_norm());
2595 cached_has_bits = from._impl_._has_bits_[0];
2596 if ((cached_has_bits & 0x00000003u) != 0) {
2597 if ((cached_has_bits & 0x00000001u) != 0) {
2598 if (!from._internal_name().empty()) {
2599 _this->_internal_set_name(from._internal_name());
2601 if (_this->_impl_.name_.IsDefault()) {
2602 _this->_internal_set_name(
"");
2606 if ((cached_has_bits & 0x00000002u) != 0) {
2607 ABSL_DCHECK(from._impl_.upper_bound_ !=
nullptr);
2608 if (_this->_impl_.upper_bound_ ==
nullptr) {
2609 _this->_impl_.upper_bound_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.upper_bound_);
2611 _this->_impl_.upper_bound_->MergeFrom(*from._impl_.upper_bound_);
2615 _this->_impl_._has_bits_[0] |= cached_has_bits;
2616 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
2621 if (&from ==
this)
return;
2629 auto* arena = GetArena();
2630 ABSL_DCHECK_EQ(arena, other->GetArena());
2631 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2632 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2633 _impl_.arguments_to_norm_.InternalSwap(&other->_impl_.arguments_to_norm_);
2634 ::_pbi::ArenaStringPtr::InternalSwap(&
_impl_.name_, &other->_impl_.name_, arena);
2639 return ::google::protobuf::Message::GetMetadataImpl(
GetClassData()->full());
2646 decltype(::std::declval<SosConstraintProto>()._impl_._has_bits_);
2647 static constexpr ::int32_t kHasBitsOffset =
2652 ::google::protobuf::internal::TSanWrite(&
_impl_);
2656#if defined(PROTOBUF_CUSTOM_VTABLE)
2659 : ::google::protobuf::Message(arena) {
2664PROTOBUF_NDEBUG_INLINE SosConstraintProto::Impl_::Impl_(
2665 ::google::protobuf::internal::InternalVisibility visibility,
2666 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
2667 const ::operations_research::math_opt::SosConstraintProto& from_msg)
2668 : _has_bits_{from._has_bits_},
2670 expressions_{visibility, arena, from.expressions_},
2671 weights_{visibility, arena, from.weights_},
2672 name_(arena, from.name_) {}
2675 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
2676 const SosConstraintProto& from)
2677#if defined(PROTOBUF_CUSTOM_VTABLE)
2680 : ::google::protobuf::Message(arena) {
2684 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
2685 from._internal_metadata_);
2686 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
2690PROTOBUF_NDEBUG_INLINE SosConstraintProto::Impl_::Impl_(
2691 ::google::protobuf::internal::InternalVisibility visibility,
2692 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
2694 expressions_{visibility, arena},
2695 weights_{visibility, arena},
2698inline void SosConstraintProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
2699 new (&
_impl_) Impl_(internal_visibility(), arena);
2705inline void SosConstraintProto::SharedDtor(MessageLite& self) {
2707 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
2708 ABSL_DCHECK(this_.GetArena() ==
nullptr);
2709 this_._impl_.name_.Destroy();
2710 this_._impl_.~Impl_();
2714 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
2715 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
2719 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
2722 InternalGetArenaOffset(
2723 ::google::protobuf::Message::internal_visibility()),
2726 InternalGetArenaOffset(
2729 if (arena_bits.has_value()) {
2730 return ::google::protobuf::internal::MessageCreator::CopyInit(
2731 sizeof(SosConstraintProto), alignof(SosConstraintProto), *arena_bits);
2733 return ::google::protobuf::internal::MessageCreator(&SosConstraintProto::PlacementNew_,
2734 sizeof(SosConstraintProto),
2735 alignof(SosConstraintProto));
2739 return ::google::protobuf::internal::ClassDataFull{
2740 ::google::protobuf::internal::ClassData{
2745 &SosConstraintProto::MergeImpl,
2746 ::google::protobuf::Message::GetNewImpl<SosConstraintProto>(),
2747#if defined(PROTOBUF_CUSTOM_VTABLE)
2748 &SosConstraintProto::SharedDtor,
2755 &SosConstraintProto::kDescriptorMethods,
2761PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
2765PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
2771PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
2772const ::_pbi::TcParseTable<2, 3, 1, 60, 2>
2773SosConstraintProto::_table_ = {
2778 offsetof(
decltype(_table_), field_lookup_table),
2780 offsetof(
decltype(_table_), field_entries),
2783 offsetof(
decltype(_table_), aux_entries),
2786 ::_pbi::TcParser::GenericFallback,
2787 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
2788 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SosConstraintProto>(),
2791 {::_pbi::TcParser::MiniParse, {}},
2793 {::_pbi::TcParser::FastMtR1,
2796 {::_pbi::TcParser::FastF64P1,
2799 {::_pbi::TcParser::FastUS1,
2806 (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
2809 (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)},
2812 (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
2815 {::_pbi::TcParser::GetTable<::operations_research::math_opt::LinearExpressionProto>()},
2819 "operations_research.math_opt.SosConstraintProto"
2825 ::google::protobuf::internal::TSanWrite(&
_impl_);
2826 ::uint32_t cached_has_bits = 0;
2828 (void) cached_has_bits;
2830 _impl_.expressions_.Clear();
2832 cached_has_bits =
_impl_._has_bits_[0];
2833 if ((cached_has_bits & 0x00000001u) != 0) {
2834 _impl_.name_.ClearNonDefaultToEmpty();
2836 _impl_._has_bits_.Clear();
2837 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
2840#if defined(PROTOBUF_CUSTOM_VTABLE)
2842 const ::google::protobuf::MessageLite&
base, ::uint8_t* PROTOBUF_NONNULL target,
2843 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
2847 ::uint8_t* PROTOBUF_NONNULL target,
2848 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
2852 ::uint32_t cached_has_bits = 0;
2853 (void)cached_has_bits;
2856 for (
unsigned i = 0, n =
static_cast<unsigned>(
2857 this_._internal_expressions_size());
2859 const auto& repfield = this_._internal_expressions().Get(i);
2861 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2862 1, repfield, repfield.GetCachedSize(),
2867 if (this_._internal_weights_size() > 0) {
2868 target = stream->WriteFixedPacked(2, this_._internal_weights(), target);
2872 if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) {
2873 if (!this_._internal_name().empty()) {
2874 const ::std::string& _s = this_._internal_name();
2875 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2876 _s.data(),
static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE,
"operations_research.math_opt.SosConstraintProto.name");
2877 target = stream->WriteStringMaybeAliased(3, _s, target);
2881 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
2883 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2884 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
2890#if defined(PROTOBUF_CUSTOM_VTABLE)
2898 ::size_t total_size = 0;
2900 ::uint32_t cached_has_bits = 0;
2902 (void)cached_has_bits;
2904 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
2908 total_size += 1UL * this_._internal_expressions_size();
2909 for (
const auto& msg : this_._internal_expressions()) {
2910 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
2915 ::size_t data_size = ::size_t{8} *
2916 ::_pbi::FromIntSize(this_._internal_weights_size());
2917 ::size_t tag_size = data_size == 0
2919 : 1 + ::_pbi::WireFormatLite::Int32Size(
2920 static_cast<::int32_t
>(data_size));
2921 total_size += tag_size + data_size;
2926 cached_has_bits = this_._impl_._has_bits_[0];
2927 if ((cached_has_bits & 0x00000001u) != 0) {
2928 if (!this_._internal_name().empty()) {
2929 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
2930 this_._internal_name());
2934 return this_.MaybeComputeUnknownFieldsSize(total_size,
2935 &this_._impl_._cached_size_);
2938void SosConstraintProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
2942 ABSL_DCHECK_NE(&from, _this);
2943 ::uint32_t cached_has_bits = 0;
2944 (void) cached_has_bits;
2946 _this->_internal_mutable_expressions()->MergeFrom(
2947 from._internal_expressions());
2948 _this->_internal_mutable_weights()->MergeFrom(from._internal_weights());
2949 cached_has_bits = from._impl_._has_bits_[0];
2950 if ((cached_has_bits & 0x00000001u) != 0) {
2951 if (!from._internal_name().empty()) {
2952 _this->_internal_set_name(from._internal_name());
2954 if (_this->_impl_.name_.IsDefault()) {
2955 _this->_internal_set_name(
"");
2959 _this->_impl_._has_bits_[0] |= cached_has_bits;
2960 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
2965 if (&from ==
this)
return;
2971void SosConstraintProto::InternalSwap(
SosConstraintProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
2973 auto* arena = GetArena();
2974 ABSL_DCHECK_EQ(arena, other->GetArena());
2975 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2976 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2977 _impl_.expressions_.InternalSwap(&other->_impl_.expressions_);
2978 _impl_.weights_.InternalSwap(&other->_impl_.weights_);
2979 ::_pbi::ArenaStringPtr::InternalSwap(&
_impl_.name_, &other->_impl_.name_, arena);
2983 return ::google::protobuf::Message::GetMetadataImpl(
GetClassData()->full());
2987class IndicatorConstraintProto::_Internal {
2990 decltype(::std::declval<IndicatorConstraintProto>()._impl_._has_bits_);
2991 static constexpr ::int32_t kHasBitsOffset =
2996 ::google::protobuf::internal::TSanWrite(&
_impl_);
2997 if (
_impl_.expression_ !=
nullptr)
_impl_.expression_->Clear();
3001#if defined(PROTOBUF_CUSTOM_VTABLE)
3004 : ::google::protobuf::Message(arena) {
3009PROTOBUF_NDEBUG_INLINE IndicatorConstraintProto::Impl_::Impl_(
3010 ::google::protobuf::internal::InternalVisibility visibility,
3011 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
3012 const ::operations_research::math_opt::IndicatorConstraintProto& from_msg)
3013 : _has_bits_{from._has_bits_},
3015 name_(arena, from.name_) {}
3018 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
3019 const IndicatorConstraintProto& from)
3020#if defined(PROTOBUF_CUSTOM_VTABLE)
3023 : ::google::protobuf::Message(arena) {
3027 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
3028 from._internal_metadata_);
3029 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
3030 ::uint32_t cached_has_bits =
_impl_._has_bits_[0];
3031 _impl_.expression_ = ((cached_has_bits & 0x00000002u) != 0)
3032 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.expression_)
3034 ::memcpy(
reinterpret_cast<char *
>(&
_impl_) +
3035 offsetof(Impl_, indicator_id_),
3036 reinterpret_cast<const char *
>(&from._impl_) +
3037 offsetof(Impl_, indicator_id_),
3038 offsetof(Impl_, activate_on_zero_) -
3039 offsetof(Impl_, indicator_id_) +
3040 sizeof(Impl_::activate_on_zero_));
3044PROTOBUF_NDEBUG_INLINE IndicatorConstraintProto::Impl_::Impl_(
3045 ::google::protobuf::internal::InternalVisibility visibility,
3046 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
3050inline void IndicatorConstraintProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
3051 new (&
_impl_) Impl_(internal_visibility(), arena);
3052 ::memset(
reinterpret_cast<char *
>(&
_impl_) +
3053 offsetof(Impl_, expression_),
3055 offsetof(Impl_, activate_on_zero_) -
3056 offsetof(Impl_, expression_) +
3057 sizeof(Impl_::activate_on_zero_));
3063inline void IndicatorConstraintProto::SharedDtor(MessageLite& self) {
3065 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
3066 ABSL_DCHECK(this_.GetArena() ==
nullptr);
3067 this_._impl_.name_.Destroy();
3068 delete this_._impl_.expression_;
3069 this_._impl_.~Impl_();
3073 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
3074 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
3082 return ::google::protobuf::internal::ClassDataFull{
3083 ::google::protobuf::internal::ClassData{
3088 &IndicatorConstraintProto::MergeImpl,
3089 ::google::protobuf::Message::GetNewImpl<IndicatorConstraintProto>(),
3090#if defined(PROTOBUF_CUSTOM_VTABLE)
3091 &IndicatorConstraintProto::SharedDtor,
3098 &IndicatorConstraintProto::kDescriptorMethods,
3104PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
3108PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
3114PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
3115const ::_pbi::TcParseTable<3, 6, 1, 66, 2>
3116IndicatorConstraintProto::_table_ = {
3121 offsetof(
decltype(_table_), field_lookup_table),
3123 offsetof(
decltype(_table_), field_entries),
3126 offsetof(
decltype(_table_), aux_entries),
3129 ::_pbi::TcParser::GenericFallback,
3130 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
3131 ::_pbi::TcParser::GetTable<::operations_research::math_opt::IndicatorConstraintProto>(),
3134 {::_pbi::TcParser::MiniParse, {}},
3139 {::_pbi::TcParser::FastMtS1,
3142 {::_pbi::TcParser::FastF64S1,
3145 {::_pbi::TcParser::FastF64S1,
3148 {::_pbi::TcParser::FastUS1,
3153 {::_pbi::TcParser::MiniParse, {}},
3159 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
3162 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
3165 (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
3168 (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
3171 (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
3174 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
3177 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleVectorProto>()},
3181 "operations_research.math_opt.IndicatorConstraintProto"
3187 ::google::protobuf::internal::TSanWrite(&
_impl_);
3188 ::uint32_t cached_has_bits = 0;
3190 (void) cached_has_bits;
3193 if ((cached_has_bits & 0x00000003u) != 0) {
3194 if ((cached_has_bits & 0x00000001u) != 0) {
3195 _impl_.name_.ClearNonDefaultToEmpty();
3197 if ((cached_has_bits & 0x00000002u) != 0) {
3198 ABSL_DCHECK(
_impl_.expression_ !=
nullptr);
3199 _impl_.expression_->Clear();
3202 if ((cached_has_bits & 0x0000003cu) != 0) {
3203 ::memset(&
_impl_.indicator_id_, 0,
static_cast<::
size_t>(
3204 reinterpret_cast<char*
>(&
_impl_.activate_on_zero_) -
3205 reinterpret_cast<char*
>(&
_impl_.indicator_id_)) +
sizeof(
_impl_.activate_on_zero_));
3207 _impl_._has_bits_.Clear();
3208 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
3211#if defined(PROTOBUF_CUSTOM_VTABLE)
3213 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
3214 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
3218 ::uint8_t* PROTOBUF_NONNULL target,
3219 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
3223 ::uint32_t cached_has_bits = 0;
3224 (void)cached_has_bits;
3226 cached_has_bits = this_._impl_._has_bits_[0];
3228 if ((cached_has_bits & 0x00000004u) != 0) {
3230 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
3231 stream, this_._internal_indicator_id(), target);
3235 if ((cached_has_bits & 0x00000002u) != 0) {
3236 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
3237 2, *this_._impl_.expression_, this_._impl_.expression_->GetCachedSize(), target,
3242 if ((cached_has_bits & 0x00000008u) != 0) {
3243 if (::absl::bit_cast<::uint64_t>(this_._internal_lower_bound()) != 0) {
3244 target = stream->EnsureSpace(target);
3245 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
3246 3, this_._internal_lower_bound(), target);
3251 if ((cached_has_bits & 0x00000010u) != 0) {
3252 if (::absl::bit_cast<::uint64_t>(this_._internal_upper_bound()) != 0) {
3253 target = stream->EnsureSpace(target);
3254 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
3255 4, this_._internal_upper_bound(), target);
3260 if ((cached_has_bits & 0x00000001u) != 0) {
3261 if (!this_._internal_name().empty()) {
3262 const ::std::string& _s = this_._internal_name();
3263 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3264 _s.data(),
static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE,
"operations_research.math_opt.IndicatorConstraintProto.name");
3265 target = stream->WriteStringMaybeAliased(5, _s, target);
3270 if ((cached_has_bits & 0x00000020u) != 0) {
3271 if (this_._internal_activate_on_zero() != 0) {
3272 target = stream->EnsureSpace(target);
3273 target = ::_pbi::WireFormatLite::WriteBoolToArray(
3274 6, this_._internal_activate_on_zero(), target);
3278 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
3280 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
3281 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
3287#if defined(PROTOBUF_CUSTOM_VTABLE)
3295 ::size_t total_size = 0;
3297 ::uint32_t cached_has_bits = 0;
3299 (void)cached_has_bits;
3301 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
3302 cached_has_bits = this_._impl_._has_bits_[0];
3303 if ((cached_has_bits & 0x0000003fu) != 0) {
3305 if ((cached_has_bits & 0x00000001u) != 0) {
3306 if (!this_._internal_name().empty()) {
3307 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
3308 this_._internal_name());
3312 if ((cached_has_bits & 0x00000002u) != 0) {
3314 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.expression_);
3317 if ((cached_has_bits & 0x00000004u) != 0) {
3318 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
3319 this_._internal_indicator_id());
3322 if ((cached_has_bits & 0x00000008u) != 0) {
3323 if (::absl::bit_cast<::uint64_t>(this_._internal_lower_bound()) != 0) {
3328 if ((cached_has_bits & 0x00000010u) != 0) {
3329 if (::absl::bit_cast<::uint64_t>(this_._internal_upper_bound()) != 0) {
3334 if ((cached_has_bits & 0x00000020u) != 0) {
3335 if (this_._internal_activate_on_zero() != 0) {
3340 return this_.MaybeComputeUnknownFieldsSize(total_size,
3341 &this_._impl_._cached_size_);
3344void IndicatorConstraintProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
3349 ABSL_DCHECK_NE(&from, _this);
3350 ::uint32_t cached_has_bits = 0;
3351 (void) cached_has_bits;
3353 cached_has_bits = from._impl_._has_bits_[0];
3354 if ((cached_has_bits & 0x0000003fu) != 0) {
3355 if ((cached_has_bits & 0x00000001u) != 0) {
3356 if (!from._internal_name().empty()) {
3357 _this->_internal_set_name(from._internal_name());
3359 if (_this->
_impl_.name_.IsDefault()) {
3360 _this->_internal_set_name(
"");
3364 if ((cached_has_bits & 0x00000002u) != 0) {
3365 ABSL_DCHECK(from._impl_.expression_ !=
nullptr);
3366 if (_this->
_impl_.expression_ ==
nullptr) {
3367 _this->
_impl_.expression_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.expression_);
3372 if ((cached_has_bits & 0x00000004u) != 0) {
3373 _this->
_impl_.indicator_id_ = from._impl_.indicator_id_;
3375 if ((cached_has_bits & 0x00000008u) != 0) {
3376 if (::absl::bit_cast<::uint64_t>(from._internal_lower_bound()) != 0) {
3377 _this->
_impl_.lower_bound_ = from._impl_.lower_bound_;
3380 if ((cached_has_bits & 0x00000010u) != 0) {
3381 if (::absl::bit_cast<::uint64_t>(from._internal_upper_bound()) != 0) {
3382 _this->
_impl_.upper_bound_ = from._impl_.upper_bound_;
3385 if ((cached_has_bits & 0x00000020u) != 0) {
3386 if (from._internal_activate_on_zero() != 0) {
3387 _this->
_impl_.activate_on_zero_ = from._impl_.activate_on_zero_;
3391 _this->
_impl_._has_bits_[0] |= cached_has_bits;
3392 _this->_internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
3397 if (&from ==
this)
return;
3405 auto* arena = GetArena();
3406 ABSL_DCHECK_EQ(arena, other->GetArena());
3407 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
3408 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
3409 ::_pbi::ArenaStringPtr::InternalSwap(&
_impl_.name_, &other->_impl_.name_, arena);
3410 ::google::protobuf::internal::memswap<
3414 reinterpret_cast<char*
>(&
_impl_.expression_),
3415 reinterpret_cast<char*
>(&other->_impl_.expression_));
3419 return ::google::protobuf::Message::GetMetadataImpl(
GetClassData()->full());
3423#if defined(PROTOBUF_CUSTOM_VTABLE)
3432inline void* PROTOBUF_NONNULL ModelProto_AuxiliaryObjectivesEntry_DoNotUse::PlacementNew_(
3433 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
3434 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
3437constexpr auto ModelProto_AuxiliaryObjectivesEntry_DoNotUse::InternalNewImpl_() {
3442 return ::google::protobuf::internal::ClassDataFull{
3443 ::google::protobuf::internal::ClassData{
3448 &ModelProto_AuxiliaryObjectivesEntry_DoNotUse::MergeImpl,
3449 ::google::protobuf::Message::GetNewImpl<ModelProto_AuxiliaryObjectivesEntry_DoNotUse>(),
3450#if defined(PROTOBUF_CUSTOM_VTABLE)
3451 &ModelProto_AuxiliaryObjectivesEntry_DoNotUse::SharedDtor,
3452 static_cast<void (::google::protobuf::MessageLite::*)()
>(&ModelProto_AuxiliaryObjectivesEntry_DoNotUse::ClearImpl),
3453 ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl
3459 &ModelProto_AuxiliaryObjectivesEntry_DoNotUse::kDescriptorMethods,
3465PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
3469PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
3470ModelProto_AuxiliaryObjectivesEntry_DoNotUse::GetClassData()
const {
3475PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
3476const ::_pbi::TcParseTable<1, 2, 1, 0, 2>
3477ModelProto_AuxiliaryObjectivesEntry_DoNotUse::_table_ = {
3479 PROTOBUF_FIELD_OFFSET(ModelProto_AuxiliaryObjectivesEntry_DoNotUse, _impl_._has_bits_),
3482 offsetof(
decltype(_table_), field_lookup_table),
3484 offsetof(
decltype(_table_), field_entries),
3487 offsetof(
decltype(_table_), aux_entries),
3490 ::_pbi::TcParser::DiscardEverythingFallback,
3491 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
3492 ::_pbi::TcParser::GetTable<::operations_research::math_opt::ModelProto_AuxiliaryObjectivesEntry_DoNotUse>(),
3496 {::_pbi::TcParser::FastMtS1,
3497 {18, 0, 0, PROTOBUF_FIELD_OFFSET(ModelProto_AuxiliaryObjectivesEntry_DoNotUse, _impl_.value_)}},
3506 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
3509 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
3512 {::_pbi::TcParser::GetTable<::operations_research::math_opt::ObjectiveProto>()},
3519#if defined(PROTOBUF_CUSTOM_VTABLE)
3522ModelProto_QuadraticConstraintsEntry_DoNotUse::ModelProto_QuadraticConstraintsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
3525ModelProto_QuadraticConstraintsEntry_DoNotUse::ModelProto_QuadraticConstraintsEntry_DoNotUse() : SuperType() {}
3526ModelProto_QuadraticConstraintsEntry_DoNotUse::ModelProto_QuadraticConstraintsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {}
3528inline void* PROTOBUF_NONNULL ModelProto_QuadraticConstraintsEntry_DoNotUse::PlacementNew_(
3529 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
3530 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
3531 return ::new (mem) ModelProto_QuadraticConstraintsEntry_DoNotUse(arena);
3533constexpr auto ModelProto_QuadraticConstraintsEntry_DoNotUse::InternalNewImpl_() {
3538 return ::google::protobuf::internal::ClassDataFull{
3539 ::google::protobuf::internal::ClassData{
3544 &ModelProto_QuadraticConstraintsEntry_DoNotUse::MergeImpl,
3545 ::google::protobuf::Message::GetNewImpl<ModelProto_QuadraticConstraintsEntry_DoNotUse>(),
3546#if defined(PROTOBUF_CUSTOM_VTABLE)
3547 &ModelProto_QuadraticConstraintsEntry_DoNotUse::SharedDtor,
3548 static_cast<void (::google::protobuf::MessageLite::*)()
>(&ModelProto_QuadraticConstraintsEntry_DoNotUse::ClearImpl),
3549 ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl
3555 &ModelProto_QuadraticConstraintsEntry_DoNotUse::kDescriptorMethods,
3561PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
3562 ::google::protobuf::internal::ClassDataFull ModelProto_QuadraticConstraintsEntry_DoNotUse_class_data_ =
3563 ModelProto_QuadraticConstraintsEntry_DoNotUse::InternalGenerateClassData_();
3565PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
3566ModelProto_QuadraticConstraintsEntry_DoNotUse::GetClassData()
const {
3567 ::google::protobuf::internal::PrefetchToLocalCache(&ModelProto_QuadraticConstraintsEntry_DoNotUse_class_data_);
3568 ::google::protobuf::internal::PrefetchToLocalCache(ModelProto_QuadraticConstraintsEntry_DoNotUse_class_data_.tc_table);
3569 return ModelProto_QuadraticConstraintsEntry_DoNotUse_class_data_.base();
3571PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
3572const ::_pbi::TcParseTable<1, 2, 1, 0, 2>
3573ModelProto_QuadraticConstraintsEntry_DoNotUse::_table_ = {
3578 offsetof(
decltype(_table_), field_lookup_table),
3580 offsetof(
decltype(_table_), field_entries),
3583 offsetof(
decltype(_table_), aux_entries),
3586 ::_pbi::TcParser::DiscardEverythingFallback,
3587 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
3588 ::_pbi::TcParser::GetTable<::operations_research::math_opt::ModelProto_QuadraticConstraintsEntry_DoNotUse>(),
3592 {::_pbi::TcParser::FastMtS1,
3602 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
3605 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
3608 {::_pbi::TcParser::GetTable<::operations_research::math_opt::QuadraticConstraintProto>()},
3615#if defined(PROTOBUF_CUSTOM_VTABLE)
3616ModelProto_SecondOrderConeConstraintsEntry_DoNotUse::ModelProto_SecondOrderConeConstraintsEntry_DoNotUse()
3617 : SuperType(ModelProto_SecondOrderConeConstraintsEntry_DoNotUse_class_data_.
base()) {}
3618ModelProto_SecondOrderConeConstraintsEntry_DoNotUse::ModelProto_SecondOrderConeConstraintsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
3619 : SuperType(arena, ModelProto_SecondOrderConeConstraintsEntry_DoNotUse_class_data_.base()) {}
3621ModelProto_SecondOrderConeConstraintsEntry_DoNotUse::ModelProto_SecondOrderConeConstraintsEntry_DoNotUse() : SuperType() {}
3622ModelProto_SecondOrderConeConstraintsEntry_DoNotUse::ModelProto_SecondOrderConeConstraintsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {}
3624inline void* PROTOBUF_NONNULL ModelProto_SecondOrderConeConstraintsEntry_DoNotUse::PlacementNew_(
3625 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
3626 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
3627 return ::new (mem) ModelProto_SecondOrderConeConstraintsEntry_DoNotUse(arena);
3629constexpr auto ModelProto_SecondOrderConeConstraintsEntry_DoNotUse::InternalNewImpl_() {
3630 return ::google::protobuf::internal::MessageCreator::ZeroInit(
sizeof(ModelProto_SecondOrderConeConstraintsEntry_DoNotUse),
3634 return ::google::protobuf::internal::ClassDataFull{
3635 ::google::protobuf::internal::ClassData{
3640 &ModelProto_SecondOrderConeConstraintsEntry_DoNotUse::MergeImpl,
3641 ::google::protobuf::Message::GetNewImpl<ModelProto_SecondOrderConeConstraintsEntry_DoNotUse>(),
3642#if defined(PROTOBUF_CUSTOM_VTABLE)
3643 &ModelProto_SecondOrderConeConstraintsEntry_DoNotUse::SharedDtor,
3644 static_cast<void (::google::protobuf::MessageLite::*)()
>(&ModelProto_SecondOrderConeConstraintsEntry_DoNotUse::ClearImpl),
3645 ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl
3651 &ModelProto_SecondOrderConeConstraintsEntry_DoNotUse::kDescriptorMethods,
3657PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
3658 ::google::protobuf::internal::ClassDataFull ModelProto_SecondOrderConeConstraintsEntry_DoNotUse_class_data_ =
3659 ModelProto_SecondOrderConeConstraintsEntry_DoNotUse::InternalGenerateClassData_();
3661PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
3662ModelProto_SecondOrderConeConstraintsEntry_DoNotUse::GetClassData()
const {
3663 ::google::protobuf::internal::PrefetchToLocalCache(&ModelProto_SecondOrderConeConstraintsEntry_DoNotUse_class_data_);
3664 ::google::protobuf::internal::PrefetchToLocalCache(ModelProto_SecondOrderConeConstraintsEntry_DoNotUse_class_data_.tc_table);
3665 return ModelProto_SecondOrderConeConstraintsEntry_DoNotUse_class_data_.base();
3667PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
3668const ::_pbi::TcParseTable<1, 2, 1, 0, 2>
3669ModelProto_SecondOrderConeConstraintsEntry_DoNotUse::_table_ = {
3674 offsetof(
decltype(_table_), field_lookup_table),
3676 offsetof(
decltype(_table_), field_entries),
3679 offsetof(
decltype(_table_), aux_entries),
3682 ::_pbi::TcParser::DiscardEverythingFallback,
3683 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
3684 ::_pbi::TcParser::GetTable<::operations_research::math_opt::ModelProto_SecondOrderConeConstraintsEntry_DoNotUse>(),
3688 {::_pbi::TcParser::FastMtS1,
3698 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
3701 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
3704 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SecondOrderConeConstraintProto>()},
3711#if defined(PROTOBUF_CUSTOM_VTABLE)
3712ModelProto_Sos1ConstraintsEntry_DoNotUse::ModelProto_Sos1ConstraintsEntry_DoNotUse()
3713 : SuperType(ModelProto_Sos1ConstraintsEntry_DoNotUse_class_data_.
base()) {}
3714ModelProto_Sos1ConstraintsEntry_DoNotUse::ModelProto_Sos1ConstraintsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
3715 : SuperType(arena, ModelProto_Sos1ConstraintsEntry_DoNotUse_class_data_.base()) {}
3717ModelProto_Sos1ConstraintsEntry_DoNotUse::ModelProto_Sos1ConstraintsEntry_DoNotUse() : SuperType() {}
3718ModelProto_Sos1ConstraintsEntry_DoNotUse::ModelProto_Sos1ConstraintsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {}
3720inline void* PROTOBUF_NONNULL ModelProto_Sos1ConstraintsEntry_DoNotUse::PlacementNew_(
3721 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
3722 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
3723 return ::new (mem) ModelProto_Sos1ConstraintsEntry_DoNotUse(arena);
3725constexpr auto ModelProto_Sos1ConstraintsEntry_DoNotUse::InternalNewImpl_() {
3726 return ::google::protobuf::internal::MessageCreator::ZeroInit(
sizeof(ModelProto_Sos1ConstraintsEntry_DoNotUse),
3727 alignof(ModelProto_Sos1ConstraintsEntry_DoNotUse));
3730 return ::google::protobuf::internal::ClassDataFull{
3731 ::google::protobuf::internal::ClassData{
3736 &ModelProto_Sos1ConstraintsEntry_DoNotUse::MergeImpl,
3737 ::google::protobuf::Message::GetNewImpl<ModelProto_Sos1ConstraintsEntry_DoNotUse>(),
3738#if defined(PROTOBUF_CUSTOM_VTABLE)
3739 &ModelProto_Sos1ConstraintsEntry_DoNotUse::SharedDtor,
3740 static_cast<void (::google::protobuf::MessageLite::*)()
>(&ModelProto_Sos1ConstraintsEntry_DoNotUse::ClearImpl),
3741 ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl
3747 &ModelProto_Sos1ConstraintsEntry_DoNotUse::kDescriptorMethods,
3753PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
3754 ::google::protobuf::internal::ClassDataFull ModelProto_Sos1ConstraintsEntry_DoNotUse_class_data_ =
3755 ModelProto_Sos1ConstraintsEntry_DoNotUse::InternalGenerateClassData_();
3757PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
3758ModelProto_Sos1ConstraintsEntry_DoNotUse::GetClassData()
const {
3759 ::google::protobuf::internal::PrefetchToLocalCache(&ModelProto_Sos1ConstraintsEntry_DoNotUse_class_data_);
3760 ::google::protobuf::internal::PrefetchToLocalCache(ModelProto_Sos1ConstraintsEntry_DoNotUse_class_data_.tc_table);
3761 return ModelProto_Sos1ConstraintsEntry_DoNotUse_class_data_.base();
3763PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
3764const ::_pbi::TcParseTable<1, 2, 1, 0, 2>
3765ModelProto_Sos1ConstraintsEntry_DoNotUse::_table_ = {
3770 offsetof(
decltype(_table_), field_lookup_table),
3772 offsetof(
decltype(_table_), field_entries),
3775 offsetof(
decltype(_table_), aux_entries),
3778 ::_pbi::TcParser::DiscardEverythingFallback,
3779 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
3780 ::_pbi::TcParser::GetTable<::operations_research::math_opt::ModelProto_Sos1ConstraintsEntry_DoNotUse>(),
3784 {::_pbi::TcParser::FastMtS1,
3794 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
3797 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
3800 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SosConstraintProto>()},
3807#if defined(PROTOBUF_CUSTOM_VTABLE)
3808ModelProto_Sos2ConstraintsEntry_DoNotUse::ModelProto_Sos2ConstraintsEntry_DoNotUse()
3809 : SuperType(ModelProto_Sos2ConstraintsEntry_DoNotUse_class_data_.
base()) {}
3810ModelProto_Sos2ConstraintsEntry_DoNotUse::ModelProto_Sos2ConstraintsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
3811 : SuperType(arena, ModelProto_Sos2ConstraintsEntry_DoNotUse_class_data_.base()) {}
3813ModelProto_Sos2ConstraintsEntry_DoNotUse::ModelProto_Sos2ConstraintsEntry_DoNotUse() : SuperType() {}
3814ModelProto_Sos2ConstraintsEntry_DoNotUse::ModelProto_Sos2ConstraintsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {}
3816inline void* PROTOBUF_NONNULL ModelProto_Sos2ConstraintsEntry_DoNotUse::PlacementNew_(
3817 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
3818 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
3819 return ::new (mem) ModelProto_Sos2ConstraintsEntry_DoNotUse(arena);
3821constexpr auto ModelProto_Sos2ConstraintsEntry_DoNotUse::InternalNewImpl_() {
3822 return ::google::protobuf::internal::MessageCreator::ZeroInit(
sizeof(ModelProto_Sos2ConstraintsEntry_DoNotUse),
3823 alignof(ModelProto_Sos2ConstraintsEntry_DoNotUse));
3826 return ::google::protobuf::internal::ClassDataFull{
3827 ::google::protobuf::internal::ClassData{
3832 &ModelProto_Sos2ConstraintsEntry_DoNotUse::MergeImpl,
3833 ::google::protobuf::Message::GetNewImpl<ModelProto_Sos2ConstraintsEntry_DoNotUse>(),
3834#if defined(PROTOBUF_CUSTOM_VTABLE)
3835 &ModelProto_Sos2ConstraintsEntry_DoNotUse::SharedDtor,
3836 static_cast<void (::google::protobuf::MessageLite::*)()
>(&ModelProto_Sos2ConstraintsEntry_DoNotUse::ClearImpl),
3837 ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl
3843 &ModelProto_Sos2ConstraintsEntry_DoNotUse::kDescriptorMethods,
3849PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
3850 ::google::protobuf::internal::ClassDataFull ModelProto_Sos2ConstraintsEntry_DoNotUse_class_data_ =
3851 ModelProto_Sos2ConstraintsEntry_DoNotUse::InternalGenerateClassData_();
3853PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
3854ModelProto_Sos2ConstraintsEntry_DoNotUse::GetClassData()
const {
3855 ::google::protobuf::internal::PrefetchToLocalCache(&ModelProto_Sos2ConstraintsEntry_DoNotUse_class_data_);
3856 ::google::protobuf::internal::PrefetchToLocalCache(ModelProto_Sos2ConstraintsEntry_DoNotUse_class_data_.tc_table);
3857 return ModelProto_Sos2ConstraintsEntry_DoNotUse_class_data_.base();
3859PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
3860const ::_pbi::TcParseTable<1, 2, 1, 0, 2>
3861ModelProto_Sos2ConstraintsEntry_DoNotUse::_table_ = {
3866 offsetof(
decltype(_table_), field_lookup_table),
3868 offsetof(
decltype(_table_), field_entries),
3871 offsetof(
decltype(_table_), aux_entries),
3874 ::_pbi::TcParser::DiscardEverythingFallback,
3875 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
3876 ::_pbi::TcParser::GetTable<::operations_research::math_opt::ModelProto_Sos2ConstraintsEntry_DoNotUse>(),
3880 {::_pbi::TcParser::FastMtS1,
3881 {18, 0, 0, PROTOBUF_FIELD_OFFSET(ModelProto_Sos2ConstraintsEntry_DoNotUse, _impl_.value_)}},
3883 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ModelProto_Sos2ConstraintsEntry_DoNotUse, _impl_.key_), 1>(),
3884 {8, 1, 0, PROTOBUF_FIELD_OFFSET(ModelProto_Sos2ConstraintsEntry_DoNotUse, _impl_.key_)}},
3889 {PROTOBUF_FIELD_OFFSET(ModelProto_Sos2ConstraintsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 1, 0,
3890 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
3892 {PROTOBUF_FIELD_OFFSET(ModelProto_Sos2ConstraintsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 0, 0,
3893 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
3896 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SosConstraintProto>()},
3903#if defined(PROTOBUF_CUSTOM_VTABLE)
3904ModelProto_IndicatorConstraintsEntry_DoNotUse::ModelProto_IndicatorConstraintsEntry_DoNotUse()
3906ModelProto_IndicatorConstraintsEntry_DoNotUse::ModelProto_IndicatorConstraintsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
3909ModelProto_IndicatorConstraintsEntry_DoNotUse::ModelProto_IndicatorConstraintsEntry_DoNotUse() : SuperType() {}
3910ModelProto_IndicatorConstraintsEntry_DoNotUse::ModelProto_IndicatorConstraintsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {}
3912inline void* PROTOBUF_NONNULL ModelProto_IndicatorConstraintsEntry_DoNotUse::PlacementNew_(
3913 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
3914 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
3915 return ::new (mem) ModelProto_IndicatorConstraintsEntry_DoNotUse(arena);
3917constexpr auto ModelProto_IndicatorConstraintsEntry_DoNotUse::InternalNewImpl_() {
3918 return ::google::protobuf::internal::MessageCreator::ZeroInit(
sizeof(ModelProto_IndicatorConstraintsEntry_DoNotUse),
3919 alignof(ModelProto_IndicatorConstraintsEntry_DoNotUse));
3921constexpr auto ModelProto_IndicatorConstraintsEntry_DoNotUse::InternalGenerateClassData_() {
3922 return ::google::protobuf::internal::ClassDataFull{
3923 ::google::protobuf::internal::ClassData{
3928 &ModelProto_IndicatorConstraintsEntry_DoNotUse::MergeImpl,
3929 ::google::protobuf::Message::GetNewImpl<ModelProto_IndicatorConstraintsEntry_DoNotUse>(),
3930#if defined(PROTOBUF_CUSTOM_VTABLE)
3931 &ModelProto_IndicatorConstraintsEntry_DoNotUse::SharedDtor,
3932 static_cast<void (::google::protobuf::MessageLite::*)()
>(&ModelProto_IndicatorConstraintsEntry_DoNotUse::ClearImpl),
3933 ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl
3939 &ModelProto_IndicatorConstraintsEntry_DoNotUse::kDescriptorMethods,
3945PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
3946 ::google::protobuf::internal::ClassDataFull ModelProto_IndicatorConstraintsEntry_DoNotUse_class_data_ =
3947 ModelProto_IndicatorConstraintsEntry_DoNotUse::InternalGenerateClassData_();
3949PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
3950ModelProto_IndicatorConstraintsEntry_DoNotUse::GetClassData()
const {
3951 ::google::protobuf::internal::PrefetchToLocalCache(&ModelProto_IndicatorConstraintsEntry_DoNotUse_class_data_);
3952 ::google::protobuf::internal::PrefetchToLocalCache(ModelProto_IndicatorConstraintsEntry_DoNotUse_class_data_.tc_table);
3953 return ModelProto_IndicatorConstraintsEntry_DoNotUse_class_data_.base();
3955PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
3956const ::_pbi::TcParseTable<1, 2, 1, 0, 2>
3957ModelProto_IndicatorConstraintsEntry_DoNotUse::_table_ = {
3962 offsetof(
decltype(_table_), field_lookup_table),
3964 offsetof(
decltype(_table_), field_entries),
3967 offsetof(
decltype(_table_), aux_entries),
3970 ::_pbi::TcParser::DiscardEverythingFallback,
3971 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
3972 ::_pbi::TcParser::GetTable<::operations_research::math_opt::ModelProto_IndicatorConstraintsEntry_DoNotUse>(),
3976 {::_pbi::TcParser::FastMtS1,
3977 {18, 0, 0, PROTOBUF_FIELD_OFFSET(ModelProto_IndicatorConstraintsEntry_DoNotUse, _impl_.value_)}},
3979 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ModelProto_IndicatorConstraintsEntry_DoNotUse, _impl_.key_), 1>(),
3980 {8, 1, 0, PROTOBUF_FIELD_OFFSET(ModelProto_IndicatorConstraintsEntry_DoNotUse, _impl_.key_)}},
3985 {PROTOBUF_FIELD_OFFSET(ModelProto_IndicatorConstraintsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 1, 0,
3986 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
3988 {PROTOBUF_FIELD_OFFSET(ModelProto_IndicatorConstraintsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 0, 0,
3989 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
3992 {::_pbi::TcParser::GetTable<::operations_research::math_opt::IndicatorConstraintProto>()},
3999class ModelProto::_Internal {
4002 decltype(::std::declval<ModelProto>()._impl_._has_bits_);
4003 static constexpr ::int32_t kHasBitsOffset =
4004 8 * PROTOBUF_FIELD_OFFSET(ModelProto, _impl_._has_bits_);
4007void ModelProto::clear_linear_constraint_matrix() {
4008 ::google::protobuf::internal::TSanWrite(&_impl_);
4009 if (_impl_.linear_constraint_matrix_ !=
nullptr) _impl_.linear_constraint_matrix_->Clear();
4010 _impl_._has_bits_[0] &= ~0x00000010u;
4012ModelProto::ModelProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
4013#if defined(PROTOBUF_CUSTOM_VTABLE)
4016 : ::google::protobuf::Message(arena) {
4021PROTOBUF_NDEBUG_INLINE ModelProto::Impl_::Impl_(
4022 ::google::protobuf::internal::InternalVisibility visibility,
4023 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
4024 const ::operations_research::math_opt::ModelProto& from_msg)
4025 : _has_bits_{from._has_bits_},
4027 quadratic_constraints_{visibility, arena, from.quadratic_constraints_},
4028 sos1_constraints_{visibility, arena, from.sos1_constraints_},
4029 sos2_constraints_{visibility, arena, from.sos2_constraints_},
4030 indicator_constraints_{visibility, arena, from.indicator_constraints_},
4031 auxiliary_objectives_{visibility, arena, from.auxiliary_objectives_},
4032 second_order_cone_constraints_{visibility, arena, from.second_order_cone_constraints_},
4033 name_(arena, from.name_) {}
4036 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
4038#if defined(PROTOBUF_CUSTOM_VTABLE)
4041 : ::google::protobuf::Message(arena) {
4045 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
4046 from._internal_metadata_);
4047 new (&_impl_) Impl_(internal_visibility(), arena, from.
_impl_, from);
4048 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
4049 _impl_.variables_ = ((cached_has_bits & 0x00000002u) != 0)
4050 ? ::google::protobuf::Message::CopyConstruct(arena, *from.
_impl_.variables_)
4052 _impl_.objective_ = ((cached_has_bits & 0x00000004u) != 0)
4053 ? ::google::protobuf::Message::CopyConstruct(arena, *from.
_impl_.objective_)
4055 _impl_.linear_constraints_ = ((cached_has_bits & 0x00000008u) != 0)
4056 ? ::google::protobuf::Message::CopyConstruct(arena, *from.
_impl_.linear_constraints_)
4058 _impl_.linear_constraint_matrix_ = ((cached_has_bits & 0x00000010u) != 0)
4059 ? ::google::protobuf::Message::CopyConstruct(arena, *from.
_impl_.linear_constraint_matrix_)
4064PROTOBUF_NDEBUG_INLINE ModelProto::Impl_::Impl_(
4065 ::google::protobuf::internal::InternalVisibility visibility,
4066 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
4068 quadratic_constraints_{visibility, arena},
4069 sos1_constraints_{visibility, arena},
4070 sos2_constraints_{visibility, arena},
4071 indicator_constraints_{visibility, arena},
4072 auxiliary_objectives_{visibility, arena},
4073 second_order_cone_constraints_{visibility, arena},
4076inline void ModelProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
4077 new (&
_impl_) Impl_(internal_visibility(), arena);
4078 ::memset(
reinterpret_cast<char *
>(&
_impl_) +
4079 offsetof(Impl_, variables_),
4081 offsetof(Impl_, linear_constraint_matrix_) -
4082 offsetof(Impl_, variables_) +
4083 sizeof(Impl_::linear_constraint_matrix_));
4089inline void ModelProto::SharedDtor(MessageLite& self) {
4091 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
4092 ABSL_DCHECK(this_.GetArena() ==
nullptr);
4093 this_._impl_.name_.Destroy();
4094 delete this_._impl_.variables_;
4095 delete this_._impl_.objective_;
4096 delete this_._impl_.linear_constraints_;
4097 delete this_._impl_.linear_constraint_matrix_;
4098 this_._impl_.~Impl_();
4102 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
4103 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
4107 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
4110 InternalGetArenaOffset(
4114 InternalGetArenaOffsetAlt(
4118 InternalGetArenaOffset(
4122 InternalGetArenaOffsetAlt(
4126 InternalGetArenaOffset(
4130 InternalGetArenaOffsetAlt(
4134 InternalGetArenaOffset(
4138 InternalGetArenaOffsetAlt(
4142 InternalGetArenaOffset(
4146 InternalGetArenaOffsetAlt(
4150 InternalGetArenaOffset(
4154 InternalGetArenaOffsetAlt(
4157 if (arena_bits.has_value()) {
4158 return ::google::protobuf::internal::MessageCreator::CopyInit(
4159 sizeof(ModelProto), alignof(ModelProto), *arena_bits);
4161 return ::google::protobuf::internal::MessageCreator(&ModelProto::PlacementNew_,
4163 alignof(ModelProto));
4167 return ::google::protobuf::internal::ClassDataFull{
4168 ::google::protobuf::internal::ClassData{
4173 &ModelProto::MergeImpl,
4174 ::google::protobuf::Message::GetNewImpl<ModelProto>(),
4175#if defined(PROTOBUF_CUSTOM_VTABLE)
4176 &ModelProto::SharedDtor,
4183 &ModelProto::kDescriptorMethods,
4189PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
4193PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
4199PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
4200const ::_pbi::TcParseTable<3, 11, 16, 60, 2>
4201ModelProto::_table_ = {
4206 offsetof(
decltype(_table_), field_lookup_table),
4208 offsetof(
decltype(_table_), field_entries),
4211 offsetof(
decltype(_table_), aux_entries),
4214 ::_pbi::TcParser::GenericFallback,
4215 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
4216 ::_pbi::TcParser::GetTable<::operations_research::math_opt::ModelProto>(),
4219 {::_pbi::TcParser::MiniParse, {}},
4221 {::_pbi::TcParser::FastUS1,
4224 {::_pbi::TcParser::FastMtS1,
4227 {::_pbi::TcParser::FastMtS1,
4230 {::_pbi::TcParser::FastMtS1,
4231 {34, 3, 2, PROTOBUF_FIELD_OFFSET(
ModelProto,
_impl_.linear_constraints_)}},
4233 {::_pbi::TcParser::FastMtS1,
4234 {42, 4, 3, PROTOBUF_FIELD_OFFSET(
ModelProto,
_impl_.linear_constraint_matrix_)}},
4235 {::_pbi::TcParser::MiniParse, {}},
4236 {::_pbi::TcParser::MiniParse, {}},
4242 (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
4245 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
4248 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
4251 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
4254 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
4257 (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
4260 (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
4263 (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
4266 (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
4269 (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
4271 {PROTOBUF_FIELD_OFFSET(
ModelProto,
_impl_.second_order_cone_constraints_), -1, 14,
4272 (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
4275 {::_pbi::TcParser::GetTable<::operations_research::math_opt::VariablesProto>()},
4276 {::_pbi::TcParser::GetTable<::operations_research::math_opt::ObjectiveProto>()},
4277 {::_pbi::TcParser::GetTable<::operations_research::math_opt::LinearConstraintsProto>()},
4278 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleMatrixProto>()},
4279 {::_pbi::TcParser::GetMapAuxInfo(0, 0, 0,
4282 {::_pbi::TcParser::GetTable<::operations_research::math_opt::QuadraticConstraintProto>()},
4283 {::_pbi::TcParser::GetMapAuxInfo(0, 0, 0,
4286 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SosConstraintProto>()},
4287 {::_pbi::TcParser::GetMapAuxInfo(0, 0, 0,
4290 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SosConstraintProto>()},
4291 {::_pbi::TcParser::GetMapAuxInfo(0, 0, 0,
4294 {::_pbi::TcParser::GetTable<::operations_research::math_opt::IndicatorConstraintProto>()},
4295 {::_pbi::TcParser::GetMapAuxInfo(0, 0, 0,
4298 {::_pbi::TcParser::GetTable<::operations_research::math_opt::ObjectiveProto>()},
4299 {::_pbi::TcParser::GetMapAuxInfo(0, 0, 0,
4302 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SecondOrderConeConstraintProto>()},
4305 "\47\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
4306 "operations_research.math_opt.ModelProto"
4312 ::google::protobuf::internal::TSanWrite(&
_impl_);
4313 ::uint32_t cached_has_bits = 0;
4315 (void) cached_has_bits;
4317 _impl_.quadratic_constraints_.Clear();
4318 _impl_.sos1_constraints_.Clear();
4319 _impl_.sos2_constraints_.Clear();
4320 _impl_.indicator_constraints_.Clear();
4321 _impl_.auxiliary_objectives_.Clear();
4322 _impl_.second_order_cone_constraints_.Clear();
4323 cached_has_bits =
_impl_._has_bits_[0];
4324 if ((cached_has_bits & 0x0000001fu) != 0) {
4325 if ((cached_has_bits & 0x00000001u) != 0) {
4326 _impl_.name_.ClearNonDefaultToEmpty();
4328 if ((cached_has_bits & 0x00000002u) != 0) {
4329 ABSL_DCHECK(
_impl_.variables_ !=
nullptr);
4330 _impl_.variables_->Clear();
4332 if ((cached_has_bits & 0x00000004u) != 0) {
4333 ABSL_DCHECK(
_impl_.objective_ !=
nullptr);
4334 _impl_.objective_->Clear();
4336 if ((cached_has_bits & 0x00000008u) != 0) {
4337 ABSL_DCHECK(
_impl_.linear_constraints_ !=
nullptr);
4338 _impl_.linear_constraints_->Clear();
4340 if ((cached_has_bits & 0x00000010u) != 0) {
4341 ABSL_DCHECK(
_impl_.linear_constraint_matrix_ !=
nullptr);
4342 _impl_.linear_constraint_matrix_->Clear();
4345 _impl_._has_bits_.Clear();
4346 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
4349#if defined(PROTOBUF_CUSTOM_VTABLE)
4351 const ::google::protobuf::MessageLite&
base, ::uint8_t* PROTOBUF_NONNULL target,
4352 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
4356 ::uint8_t* PROTOBUF_NONNULL target,
4357 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
4361 ::uint32_t cached_has_bits = 0;
4362 (void)cached_has_bits;
4365 if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) {
4366 if (!this_._internal_name().empty()) {
4367 const ::std::string& _s = this_._internal_name();
4368 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
4369 _s.data(),
static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE,
"operations_research.math_opt.ModelProto.name");
4370 target = stream->WriteStringMaybeAliased(1, _s, target);
4374 cached_has_bits = this_._impl_._has_bits_[0];
4376 if ((cached_has_bits & 0x00000002u) != 0) {
4377 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
4378 2, *this_._impl_.variables_, this_._impl_.variables_->GetCachedSize(), target,
4383 if ((cached_has_bits & 0x00000004u) != 0) {
4384 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
4385 3, *this_._impl_.objective_, this_._impl_.objective_->GetCachedSize(), target,
4390 if ((cached_has_bits & 0x00000008u) != 0) {
4391 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
4392 4, *this_._impl_.linear_constraints_, this_._impl_.linear_constraints_->GetCachedSize(), target,
4397 if ((cached_has_bits & 0x00000010u) != 0) {
4398 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
4399 5, *this_._impl_.linear_constraint_matrix_, this_._impl_.linear_constraint_matrix_->GetCachedSize(), target,
4404 if (!this_._internal_quadratic_constraints().empty()) {
4405 using MapType = ::google::protobuf::Map<::int64_t, ::operations_research::math_opt::QuadraticConstraintProto>;
4406 using WireHelper = _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::QuadraticConstraintProto,
4407 _pbi::WireFormatLite::TYPE_INT64,
4408 _pbi::WireFormatLite::TYPE_MESSAGE>;
4409 const auto& field = this_._internal_quadratic_constraints();
4411 if (stream->IsSerializationDeterministic() && field.size() > 1) {
4412 for (
const auto& entry : ::google::protobuf::internal::MapSorterFlat<MapType>(field)) {
4413 target = WireHelper::InternalSerialize(
4414 6, entry.first, entry.second, target, stream);
4417 for (
const auto& entry : field) {
4418 target = WireHelper::InternalSerialize(
4419 6, entry.first, entry.second, target, stream);
4425 if (!this_._internal_sos1_constraints().empty()) {
4426 using MapType = ::google::protobuf::Map<::int64_t, ::operations_research::math_opt::SosConstraintProto>;
4427 using WireHelper = _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::SosConstraintProto,
4428 _pbi::WireFormatLite::TYPE_INT64,
4429 _pbi::WireFormatLite::TYPE_MESSAGE>;
4430 const auto& field = this_._internal_sos1_constraints();
4432 if (stream->IsSerializationDeterministic() && field.size() > 1) {
4433 for (
const auto& entry : ::google::protobuf::internal::MapSorterFlat<MapType>(field)) {
4434 target = WireHelper::InternalSerialize(
4435 7, entry.first, entry.second, target, stream);
4438 for (
const auto& entry : field) {
4439 target = WireHelper::InternalSerialize(
4440 7, entry.first, entry.second, target, stream);
4446 if (!this_._internal_sos2_constraints().empty()) {
4447 using MapType = ::google::protobuf::Map<::int64_t, ::operations_research::math_opt::SosConstraintProto>;
4448 using WireHelper = _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::SosConstraintProto,
4449 _pbi::WireFormatLite::TYPE_INT64,
4450 _pbi::WireFormatLite::TYPE_MESSAGE>;
4451 const auto& field = this_._internal_sos2_constraints();
4453 if (stream->IsSerializationDeterministic() && field.size() > 1) {
4454 for (
const auto& entry : ::google::protobuf::internal::MapSorterFlat<MapType>(field)) {
4455 target = WireHelper::InternalSerialize(
4456 8, entry.first, entry.second, target, stream);
4459 for (
const auto& entry : field) {
4460 target = WireHelper::InternalSerialize(
4461 8, entry.first, entry.second, target, stream);
4467 if (!this_._internal_indicator_constraints().empty()) {
4468 using MapType = ::google::protobuf::Map<::int64_t, ::operations_research::math_opt::IndicatorConstraintProto>;
4469 using WireHelper = _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::IndicatorConstraintProto,
4470 _pbi::WireFormatLite::TYPE_INT64,
4471 _pbi::WireFormatLite::TYPE_MESSAGE>;
4472 const auto& field = this_._internal_indicator_constraints();
4474 if (stream->IsSerializationDeterministic() && field.size() > 1) {
4475 for (
const auto& entry : ::google::protobuf::internal::MapSorterFlat<MapType>(field)) {
4476 target = WireHelper::InternalSerialize(
4477 9, entry.first, entry.second, target, stream);
4480 for (
const auto& entry : field) {
4481 target = WireHelper::InternalSerialize(
4482 9, entry.first, entry.second, target, stream);
4488 if (!this_._internal_auxiliary_objectives().empty()) {
4489 using MapType = ::google::protobuf::Map<::int64_t, ::operations_research::math_opt::ObjectiveProto>;
4490 using WireHelper = _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::ObjectiveProto,
4491 _pbi::WireFormatLite::TYPE_INT64,
4492 _pbi::WireFormatLite::TYPE_MESSAGE>;
4493 const auto& field = this_._internal_auxiliary_objectives();
4495 if (stream->IsSerializationDeterministic() && field.size() > 1) {
4496 for (
const auto& entry : ::google::protobuf::internal::MapSorterFlat<MapType>(field)) {
4497 target = WireHelper::InternalSerialize(
4498 10, entry.first, entry.second, target, stream);
4501 for (
const auto& entry : field) {
4502 target = WireHelper::InternalSerialize(
4503 10, entry.first, entry.second, target, stream);
4509 if (!this_._internal_second_order_cone_constraints().empty()) {
4510 using MapType = ::google::protobuf::Map<::int64_t, ::operations_research::math_opt::SecondOrderConeConstraintProto>;
4511 using WireHelper = _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::SecondOrderConeConstraintProto,
4512 _pbi::WireFormatLite::TYPE_INT64,
4513 _pbi::WireFormatLite::TYPE_MESSAGE>;
4514 const auto& field = this_._internal_second_order_cone_constraints();
4516 if (stream->IsSerializationDeterministic() && field.size() > 1) {
4517 for (
const auto& entry : ::google::protobuf::internal::MapSorterFlat<MapType>(field)) {
4518 target = WireHelper::InternalSerialize(
4519 11, entry.first, entry.second, target, stream);
4522 for (
const auto& entry : field) {
4523 target = WireHelper::InternalSerialize(
4524 11, entry.first, entry.second, target, stream);
4529 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
4531 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
4532 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
4538#if defined(PROTOBUF_CUSTOM_VTABLE)
4546 ::size_t total_size = 0;
4548 ::uint32_t cached_has_bits = 0;
4550 (void)cached_has_bits;
4552 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
4557 1 * ::google::protobuf::internal::FromIntSize(this_._internal_quadratic_constraints_size());
4558 for (
const auto& entry : this_._internal_quadratic_constraints()) {
4560 _pbi::WireFormatLite::TYPE_INT64,
4561 _pbi::WireFormatLite::TYPE_MESSAGE>
::ByteSizeLong(entry.first, entry.second);
4567 1 * ::google::protobuf::internal::FromIntSize(this_._internal_sos1_constraints_size());
4568 for (
const auto& entry : this_._internal_sos1_constraints()) {
4570 _pbi::WireFormatLite::TYPE_INT64,
4571 _pbi::WireFormatLite::TYPE_MESSAGE>
::ByteSizeLong(entry.first, entry.second);
4577 1 * ::google::protobuf::internal::FromIntSize(this_._internal_sos2_constraints_size());
4578 for (
const auto& entry : this_._internal_sos2_constraints()) {
4579 total_size += _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::SosConstraintProto,
4580 _pbi::WireFormatLite::TYPE_INT64,
4581 _pbi::WireFormatLite::TYPE_MESSAGE>
::ByteSizeLong(entry.first, entry.second);
4587 1 * ::google::protobuf::internal::FromIntSize(this_._internal_indicator_constraints_size());
4588 for (
const auto& entry : this_._internal_indicator_constraints()) {
4589 total_size += _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::IndicatorConstraintProto,
4590 _pbi::WireFormatLite::TYPE_INT64,
4591 _pbi::WireFormatLite::TYPE_MESSAGE>
::ByteSizeLong(entry.first, entry.second);
4597 1 * ::google::protobuf::internal::FromIntSize(this_._internal_auxiliary_objectives_size());
4598 for (
const auto& entry : this_._internal_auxiliary_objectives()) {
4599 total_size += _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::ObjectiveProto,
4600 _pbi::WireFormatLite::TYPE_INT64,
4601 _pbi::WireFormatLite::TYPE_MESSAGE>
::ByteSizeLong(entry.first, entry.second);
4607 1 * ::google::protobuf::internal::FromIntSize(this_._internal_second_order_cone_constraints_size());
4608 for (
const auto& entry : this_._internal_second_order_cone_constraints()) {
4609 total_size += _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::SecondOrderConeConstraintProto,
4610 _pbi::WireFormatLite::TYPE_INT64,
4611 _pbi::WireFormatLite::TYPE_MESSAGE>
::ByteSizeLong(entry.first, entry.second);
4615 cached_has_bits = this_._impl_._has_bits_[0];
4616 if ((cached_has_bits & 0x0000001fu) != 0) {
4618 if ((cached_has_bits & 0x00000001u) != 0) {
4619 if (!this_._internal_name().empty()) {
4620 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
4621 this_._internal_name());
4625 if ((cached_has_bits & 0x00000002u) != 0) {
4627 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.variables_);
4630 if ((cached_has_bits & 0x00000004u) != 0) {
4632 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.objective_);
4635 if ((cached_has_bits & 0x00000008u) != 0) {
4637 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.linear_constraints_);
4640 if ((cached_has_bits & 0x00000010u) != 0) {
4642 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.linear_constraint_matrix_);
4645 return this_.MaybeComputeUnknownFieldsSize(total_size,
4646 &this_._impl_._cached_size_);
4649void ModelProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
4650 auto*
const _this =
static_cast<ModelProto*
>(&to_msg);
4651 auto& from =
static_cast<const ModelProto&
>(from_msg);
4654 ABSL_DCHECK_NE(&from, _this);
4655 ::uint32_t cached_has_bits = 0;
4656 (void) cached_has_bits;
4658 _this->
_impl_.quadratic_constraints_.MergeFrom(from.
_impl_.quadratic_constraints_);
4659 _this->
_impl_.sos1_constraints_.MergeFrom(from.
_impl_.sos1_constraints_);
4660 _this->
_impl_.sos2_constraints_.MergeFrom(from.
_impl_.sos2_constraints_);
4661 _this->
_impl_.indicator_constraints_.MergeFrom(from.
_impl_.indicator_constraints_);
4662 _this->
_impl_.auxiliary_objectives_.MergeFrom(from.
_impl_.auxiliary_objectives_);
4663 _this->
_impl_.second_order_cone_constraints_.MergeFrom(from.
_impl_.second_order_cone_constraints_);
4664 cached_has_bits = from.
_impl_._has_bits_[0];
4665 if ((cached_has_bits & 0x0000001fu) != 0) {
4666 if ((cached_has_bits & 0x00000001u) != 0) {
4667 if (!from._internal_name().empty()) {
4668 _this->_internal_set_name(from._internal_name());
4670 if (_this->
_impl_.name_.IsDefault()) {
4671 _this->_internal_set_name(
"");
4675 if ((cached_has_bits & 0x00000002u) != 0) {
4676 ABSL_DCHECK(from.
_impl_.variables_ !=
nullptr);
4677 if (_this->
_impl_.variables_ ==
nullptr) {
4678 _this->
_impl_.variables_ = ::google::protobuf::Message::CopyConstruct(arena, *from.
_impl_.variables_);
4683 if ((cached_has_bits & 0x00000004u) != 0) {
4684 ABSL_DCHECK(from.
_impl_.objective_ !=
nullptr);
4685 if (_this->
_impl_.objective_ ==
nullptr) {
4686 _this->
_impl_.objective_ = ::google::protobuf::Message::CopyConstruct(arena, *from.
_impl_.objective_);
4691 if ((cached_has_bits & 0x00000008u) != 0) {
4692 ABSL_DCHECK(from.
_impl_.linear_constraints_ !=
nullptr);
4693 if (_this->
_impl_.linear_constraints_ ==
nullptr) {
4694 _this->
_impl_.linear_constraints_ = ::google::protobuf::Message::CopyConstruct(arena, *from.
_impl_.linear_constraints_);
4699 if ((cached_has_bits & 0x00000010u) != 0) {
4700 ABSL_DCHECK(from.
_impl_.linear_constraint_matrix_ !=
nullptr);
4701 if (_this->
_impl_.linear_constraint_matrix_ ==
nullptr) {
4702 _this->
_impl_.linear_constraint_matrix_ = ::google::protobuf::Message::CopyConstruct(arena, *from.
_impl_.linear_constraint_matrix_);
4708 _this->
_impl_._has_bits_[0] |= cached_has_bits;
4709 _this->_internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
4714 if (&from ==
this)
return;
4720void ModelProto::InternalSwap(
ModelProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
4722 auto* arena = GetArena();
4723 ABSL_DCHECK_EQ(arena, other->GetArena());
4724 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
4725 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
4726 _impl_.quadratic_constraints_.InternalSwap(&other->_impl_.quadratic_constraints_);
4727 _impl_.sos1_constraints_.InternalSwap(&other->_impl_.sos1_constraints_);
4728 _impl_.sos2_constraints_.InternalSwap(&other->_impl_.sos2_constraints_);
4729 _impl_.indicator_constraints_.InternalSwap(&other->_impl_.indicator_constraints_);
4730 _impl_.auxiliary_objectives_.InternalSwap(&other->_impl_.auxiliary_objectives_);
4731 _impl_.second_order_cone_constraints_.InternalSwap(&other->_impl_.second_order_cone_constraints_);
4732 ::_pbi::ArenaStringPtr::InternalSwap(&
_impl_.name_, &other->_impl_.name_, arena);
4733 ::google::protobuf::internal::memswap<
4737 reinterpret_cast<char*
>(&
_impl_.variables_),
4738 reinterpret_cast<char*
>(&other->_impl_.variables_));
4742 return ::google::protobuf::Message::GetMetadataImpl(
GetClassData()->full());
4752PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
4755 ::std::false_type{});
4756#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
static constexpr auto InternalNewImpl_()
::google::protobuf::Metadata GetMetadata() const
~IndicatorConstraintProto() PROTOBUF_FINAL
::size_t ByteSizeLong() const final
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
friend void swap(IndicatorConstraintProto &a, IndicatorConstraintProto &b)
IndicatorConstraintProto()
void CopyFrom(const IndicatorConstraintProto &from)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
static constexpr auto InternalGenerateClassData_()
void MergeFrom(const IndicatorConstraintProto &from)
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
friend class ::google::protobuf::Arena
friend class ::google::protobuf::MessageLite
~LinearConstraintsProto() PROTOBUF_FINAL
void MergeFrom(const LinearConstraintsProto &from)
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void CopyFrom(const LinearConstraintsProto &from)
::size_t ByteSizeLong() const final
static constexpr auto InternalNewImpl_()
static constexpr auto InternalGenerateClassData_()
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
::google::protobuf::Metadata GetMetadata() const
static constexpr ::int32_t kHasBitsOffset
ModelProto_AuxiliaryObjectivesEntry_DoNotUse()
static constexpr auto InternalGenerateClassData_()
ModelProto_IndicatorConstraintsEntry_DoNotUse()
static constexpr auto InternalGenerateClassData_()
ModelProto_QuadraticConstraintsEntry_DoNotUse()
ModelProto_SecondOrderConeConstraintsEntry_DoNotUse()
static constexpr auto InternalGenerateClassData_()
static constexpr auto InternalGenerateClassData_()
ModelProto_Sos1ConstraintsEntry_DoNotUse()
static constexpr auto InternalGenerateClassData_()
ModelProto_Sos2ConstraintsEntry_DoNotUse()
friend class ::google::protobuf::MessageLite
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
void MergeFrom(const ModelProto &from)
~ModelProto() PROTOBUF_FINAL
static constexpr auto InternalNewImpl_()
void CopyFrom(const ModelProto &from)
::google::protobuf::Metadata GetMetadata() const
friend void swap(ModelProto &a, ModelProto &b)
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
static constexpr auto InternalGenerateClassData_()
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
::size_t ByteSizeLong() const final
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
friend class ::google::protobuf::Arena
static constexpr ::int32_t kHasBitsOffset
decltype(::std::declval< ObjectiveProto >()._impl_._has_bits_) HasBits
void CopyFrom(const ObjectiveProto &from)
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
::google::protobuf::Metadata GetMetadata() const
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
::size_t ByteSizeLong() const final
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
static constexpr auto InternalGenerateClassData_()
static constexpr auto InternalNewImpl_()
void clear_linear_coefficients()
~ObjectiveProto() PROTOBUF_FINAL
void MergeFrom(const ObjectiveProto &from)
void clear_quadratic_coefficients()
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
static constexpr ::int32_t kHasBitsOffset
void MergeFrom(const QuadraticConstraintProto &from)
friend class ::google::protobuf::MessageLite
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
QuadraticConstraintProto()
void clear_linear_terms()
void CopyFrom(const QuadraticConstraintProto &from)
~QuadraticConstraintProto() PROTOBUF_FINAL
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
friend void swap(QuadraticConstraintProto &a, QuadraticConstraintProto &b)
static constexpr auto InternalGenerateClassData_()
::size_t ByteSizeLong() const final
static constexpr auto InternalNewImpl_()
void clear_quadratic_terms()
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
::google::protobuf::Metadata GetMetadata() const
friend class ::google::protobuf::Arena
static constexpr ::int32_t kHasBitsOffset
friend class ::google::protobuf::MessageLite
::google::protobuf::Metadata GetMetadata() const
friend void swap(SecondOrderConeConstraintProto &a, SecondOrderConeConstraintProto &b)
void MergeFrom(const SecondOrderConeConstraintProto &from)
::size_t ByteSizeLong() const final
void CopyFrom(const SecondOrderConeConstraintProto &from)
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
static constexpr auto InternalNewImpl_()
static constexpr auto InternalGenerateClassData_()
void clear_arguments_to_norm()
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
SecondOrderConeConstraintProto()
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
friend class ::google::protobuf::Arena
~SecondOrderConeConstraintProto() PROTOBUF_FINAL
static constexpr ::int32_t kHasBitsOffset
friend class ::google::protobuf::MessageLite
static constexpr auto InternalNewImpl_()
static constexpr auto InternalGenerateClassData_()
friend void swap(SosConstraintProto &a, SosConstraintProto &b)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
::google::protobuf::Metadata GetMetadata() const
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
void MergeFrom(const SosConstraintProto &from)
::size_t ByteSizeLong() const final
~SosConstraintProto() PROTOBUF_FINAL
void CopyFrom(const SosConstraintProto &from)
void MergeFrom(const SparseDoubleMatrixProto &from)
void MergeFrom(const SparseDoubleVectorProto &from)
~VariablesProto() PROTOBUF_FINAL
friend class ::google::protobuf::MessageLite
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
void CopyFrom(const VariablesProto &from)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
static constexpr auto InternalGenerateClassData_()
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
friend void swap(VariablesProto &a, VariablesProto &b)
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
void MergeFrom(const VariablesProto &from)
static constexpr auto InternalNewImpl_()
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
::size_t ByteSizeLong() const final
friend class ::google::protobuf::Arena
::google::protobuf::Metadata GetMetadata() const
static constexprconst ::_pb::EnumDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_enum_descriptors_ortools_2fmath_5fopt_2fmodel_2eproto
::absl::once_flag descriptor_table_ortools_2fmath_5fopt_2fmodel_2eproto_once
static const ::_pbi::DescriptorTable *PROTOBUF_NONNULL const descriptor_table_ortools_2fmath_5fopt_2fmodel_2eproto_deps[1]
static constexprconst ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_service_descriptors_ortools_2fmath_5fopt_2fmodel_2eproto
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fmodel_2eproto
const ::uint32_t TableStruct_ortools_2fmath_5fopt_2fmodel_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold)
An object oriented wrapper for quadratic constraints in ModelStorage.
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ModelProtoDefaultTypeInternal _ModelProto_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ModelProto_AuxiliaryObjectivesEntry_DoNotUseDefaultTypeInternal _ModelProto_AuxiliaryObjectivesEntry_DoNotUse_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SecondOrderConeConstraintProto_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull ModelProto_AuxiliaryObjectivesEntry_DoNotUse_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ModelProto_IndicatorConstraintsEntry_DoNotUseDefaultTypeInternal _ModelProto_IndicatorConstraintsEntry_DoNotUse_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull ModelProto_SecondOrderConeConstraintsEntry_DoNotUse_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ModelProto_QuadraticConstraintsEntry_DoNotUseDefaultTypeInternal _ModelProto_QuadraticConstraintsEntry_DoNotUse_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull ObjectiveProto_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IndicatorConstraintProtoDefaultTypeInternal _IndicatorConstraintProto_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SosConstraintProtoDefaultTypeInternal _SosConstraintProto_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull VariablesProto_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull LinearConstraintsProto_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ObjectiveProtoDefaultTypeInternal _ObjectiveProto_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 QuadraticConstraintProtoDefaultTypeInternal _QuadraticConstraintProto_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull ModelProto_Sos2ConstraintsEntry_DoNotUse_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ModelProto_SecondOrderConeConstraintsEntry_DoNotUseDefaultTypeInternal _ModelProto_SecondOrderConeConstraintsEntry_DoNotUse_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull ModelProto_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull ModelProto_QuadraticConstraintsEntry_DoNotUse_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LinearConstraintsProtoDefaultTypeInternal _LinearConstraintsProto_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SecondOrderConeConstraintProtoDefaultTypeInternal _SecondOrderConeConstraintProto_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VariablesProtoDefaultTypeInternal _VariablesProto_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull ModelProto_IndicatorConstraintsEntry_DoNotUse_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SosConstraintProto_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull QuadraticConstraintProto_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ModelProto_Sos1ConstraintsEntry_DoNotUseDefaultTypeInternal _ModelProto_Sos1ConstraintsEntry_DoNotUse_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull IndicatorConstraintProto_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull ModelProto_Sos1ConstraintsEntry_DoNotUse_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ModelProto_Sos2ConstraintsEntry_DoNotUseDefaultTypeInternal _ModelProto_Sos2ConstraintsEntry_DoNotUse_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
IndicatorConstraintProto _instance
~IndicatorConstraintProtoDefaultTypeInternal()
PROTOBUF_CONSTEXPR IndicatorConstraintProtoDefaultTypeInternal()
LinearConstraintsProto _instance
PROTOBUF_CONSTEXPR LinearConstraintsProtoDefaultTypeInternal()
~LinearConstraintsProtoDefaultTypeInternal()
~ModelProtoDefaultTypeInternal()
PROTOBUF_CONSTEXPR ModelProtoDefaultTypeInternal()
~ModelProto_AuxiliaryObjectivesEntry_DoNotUseDefaultTypeInternal()
ModelProto_AuxiliaryObjectivesEntry_DoNotUse _instance
PROTOBUF_CONSTEXPR ModelProto_AuxiliaryObjectivesEntry_DoNotUseDefaultTypeInternal()
ModelProto_IndicatorConstraintsEntry_DoNotUse _instance
PROTOBUF_CONSTEXPR ModelProto_IndicatorConstraintsEntry_DoNotUseDefaultTypeInternal()
~ModelProto_IndicatorConstraintsEntry_DoNotUseDefaultTypeInternal()
PROTOBUF_CONSTEXPR ModelProto_QuadraticConstraintsEntry_DoNotUseDefaultTypeInternal()
~ModelProto_QuadraticConstraintsEntry_DoNotUseDefaultTypeInternal()
ModelProto_QuadraticConstraintsEntry_DoNotUse _instance
ModelProto_SecondOrderConeConstraintsEntry_DoNotUse _instance
~ModelProto_SecondOrderConeConstraintsEntry_DoNotUseDefaultTypeInternal()
PROTOBUF_CONSTEXPR ModelProto_SecondOrderConeConstraintsEntry_DoNotUseDefaultTypeInternal()
PROTOBUF_CONSTEXPR ModelProto_Sos1ConstraintsEntry_DoNotUseDefaultTypeInternal()
~ModelProto_Sos1ConstraintsEntry_DoNotUseDefaultTypeInternal()
ModelProto_Sos1ConstraintsEntry_DoNotUse _instance
ModelProto_Sos2ConstraintsEntry_DoNotUse _instance
~ModelProto_Sos2ConstraintsEntry_DoNotUseDefaultTypeInternal()
PROTOBUF_CONSTEXPR ModelProto_Sos2ConstraintsEntry_DoNotUseDefaultTypeInternal()
~ObjectiveProtoDefaultTypeInternal()
PROTOBUF_CONSTEXPR ObjectiveProtoDefaultTypeInternal()
QuadraticConstraintProto _instance
~QuadraticConstraintProtoDefaultTypeInternal()
PROTOBUF_CONSTEXPR QuadraticConstraintProtoDefaultTypeInternal()
~SecondOrderConeConstraintProtoDefaultTypeInternal()
SecondOrderConeConstraintProto _instance
PROTOBUF_CONSTEXPR SecondOrderConeConstraintProtoDefaultTypeInternal()
SosConstraintProto _instance
~SosConstraintProtoDefaultTypeInternal()
PROTOBUF_CONSTEXPR SosConstraintProtoDefaultTypeInternal()
~VariablesProtoDefaultTypeInternal()
PROTOBUF_CONSTEXPR VariablesProtoDefaultTypeInternal()