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;
29inline constexpr PartialVariableAssignment::Impl_::Impl_(
30 ::_pbi::ConstantInitialized) noexcept
33 _var_index_cached_byte_size_{0},
38#if defined(PROTOBUF_CUSTOM_VTABLE)
41 : ::google::protobuf::Message(),
43 _impl_(::_pbi::ConstantInitialized()) {
53PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
56inline constexpr OptionalDouble::Impl_::Impl_(
57 ::_pbi::ConstantInitialized) noexcept
63#if defined(PROTOBUF_CUSTOM_VTABLE)
66 : ::google::protobuf::Message(),
68 _impl_(::_pbi::ConstantInitialized()) {
78PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
81inline constexpr MPVariableProto::Impl_::Impl_(
82 ::_pbi::ConstantInitialized) noexcept
85 &::google::protobuf::internal::fixed_address_empty_string,
86 ::_pbi::ConstantInitialized()),
87 objective_coefficient_{0},
89 branching_priority_{0},
90 lower_bound_{-std::numeric_limits<double>::infinity()},
91 upper_bound_{std::numeric_limits<double>::infinity()} {}
95#if defined(PROTOBUF_CUSTOM_VTABLE)
98 : ::google::protobuf::Message(),
100 _impl_(::_pbi::ConstantInitialized()) {
110PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
113inline constexpr MPSosConstraint::Impl_::Impl_(
114 ::_pbi::ConstantInitialized) noexcept
122#if defined(PROTOBUF_CUSTOM_VTABLE)
125 : ::google::protobuf::Message(),
127 _impl_(::_pbi::ConstantInitialized()) {
137PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
140inline constexpr MPSolveInfo::Impl_::Impl_(
141 ::_pbi::ConstantInitialized) noexcept
143 solve_wall_time_seconds_{0},
144 solve_user_time_seconds_{0} {}
148#if defined(PROTOBUF_CUSTOM_VTABLE)
151 : ::google::protobuf::Message(),
153 _impl_(::_pbi::ConstantInitialized()) {
163PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
166inline constexpr MPSolution::Impl_::Impl_(
167 ::_pbi::ConstantInitialized) noexcept
170 objective_value_{0} {}
174#if defined(PROTOBUF_CUSTOM_VTABLE)
177 : ::google::protobuf::Message(),
179 _impl_(::_pbi::ConstantInitialized()) {
189PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
192inline constexpr MPQuadraticObjective::Impl_::Impl_(
193 ::_pbi::ConstantInitialized) noexcept
201#if defined(PROTOBUF_CUSTOM_VTABLE)
204 : ::google::protobuf::Message(),
206 _impl_(::_pbi::ConstantInitialized()) {
216PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
219inline constexpr MPQuadraticConstraint::Impl_::Impl_(
220 ::_pbi::ConstantInitialized) noexcept
227 lower_bound_{-std::numeric_limits<double>::infinity()},
228 upper_bound_{std::numeric_limits<double>::infinity()} {}
232#if defined(PROTOBUF_CUSTOM_VTABLE)
235 : ::google::protobuf::Message(),
237 _impl_(::_pbi::ConstantInitialized()) {
247PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
250inline constexpr MPModelProto_Annotation::Impl_::Impl_(
251 ::_pbi::ConstantInitialized) noexcept
254 &::google::protobuf::internal::fixed_address_empty_string,
255 ::_pbi::ConstantInitialized()),
257 &::google::protobuf::internal::fixed_address_empty_string,
258 ::_pbi::ConstantInitialized()),
260 &::google::protobuf::internal::fixed_address_empty_string,
261 ::_pbi::ConstantInitialized()),
267#if defined(PROTOBUF_CUSTOM_VTABLE)
270 : ::google::protobuf::Message(),
272 _impl_(::_pbi::ConstantInitialized()) {
282PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
285inline constexpr MPConstraintProto::Impl_::Impl_(
286 ::_pbi::ConstantInitialized) noexcept
289 _var_index_cached_byte_size_{0},
292 &::google::protobuf::internal::fixed_address_empty_string,
293 ::_pbi::ConstantInitialized()),
295 lower_bound_{-std::numeric_limits<double>::infinity()},
296 upper_bound_{std::numeric_limits<double>::infinity()} {}
300#if defined(PROTOBUF_CUSTOM_VTABLE)
303 : ::google::protobuf::Message(),
305 _impl_(::_pbi::ConstantInitialized()) {
315PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
318inline constexpr MPArrayWithConstantConstraint::Impl_::Impl_(
319 ::_pbi::ConstantInitialized) noexcept
323 resultant_var_index_{0} {}
327#if defined(PROTOBUF_CUSTOM_VTABLE)
330 : ::google::protobuf::Message(),
332 _impl_(::_pbi::ConstantInitialized()) {
342PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
345inline constexpr MPArrayConstraint::Impl_::Impl_(
346 ::_pbi::ConstantInitialized) noexcept
349 resultant_var_index_{0} {}
353#if defined(PROTOBUF_CUSTOM_VTABLE)
356 : ::google::protobuf::Message(),
358 _impl_(::_pbi::ConstantInitialized()) {
368PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
371inline constexpr MPAbsConstraint::Impl_::Impl_(
372 ::_pbi::ConstantInitialized) noexcept
375 resultant_var_index_{0} {}
379#if defined(PROTOBUF_CUSTOM_VTABLE)
382 : ::google::protobuf::Message(),
384 _impl_(::_pbi::ConstantInitialized()) {
394PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
397inline constexpr MPSolverCommonParameters::Impl_::Impl_(
398 ::_pbi::ConstantInitialized) noexcept
400 relative_mip_gap_{
nullptr},
401 primal_tolerance_{
nullptr},
402 dual_tolerance_{
nullptr},
409#if defined(PROTOBUF_CUSTOM_VTABLE)
412 : ::google::protobuf::Message(),
414 _impl_(::_pbi::ConstantInitialized()) {
424PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
427inline constexpr MPSolutionResponse::Impl_::Impl_(
428 ::_pbi::ConstantInitialized) noexcept
433 additional_solutions_{},
435 &::google::protobuf::internal::fixed_address_empty_string,
436 ::_pbi::ConstantInitialized()),
437 solver_specific_info_(
438 &::google::protobuf::internal::fixed_address_empty_string,
439 ::_pbi::ConstantInitialized()),
440 solve_info_{
nullptr},
442 best_objective_bound_{0},
447#if defined(PROTOBUF_CUSTOM_VTABLE)
450 : ::google::protobuf::Message(),
452 _impl_(::_pbi::ConstantInitialized()) {
462PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
466#if defined(PROTOBUF_CUSTOM_VTABLE)
469 : MPModelDeltaProto_VariableOverridesEntry_DoNotUse::MapEntry() {
480PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
484#if defined(PROTOBUF_CUSTOM_VTABLE)
487 : MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse::MapEntry() {
498PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
501inline constexpr MPIndicatorConstraint::Impl_::Impl_(
502 ::_pbi::ConstantInitialized) noexcept
504 constraint_{
nullptr},
510#if defined(PROTOBUF_CUSTOM_VTABLE)
513 : ::google::protobuf::Message(),
515 _impl_(::_pbi::ConstantInitialized()) {
525PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
528inline constexpr MPModelDeltaProto::Impl_::Impl_(
529 ::_pbi::ConstantInitialized) noexcept
531 baseline_model_file_path_(
532 &::google::protobuf::internal::fixed_address_empty_string,
533 ::_pbi::ConstantInitialized()),
534 variable_overrides_{},
535 constraint_overrides_{} {}
539#if defined(PROTOBUF_CUSTOM_VTABLE)
542 : ::google::protobuf::Message(),
544 _impl_(::_pbi::ConstantInitialized()) {
554PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
557inline constexpr MPGeneralConstraintProto::Impl_::Impl_(
558 ::_pbi::ConstantInitialized) noexcept
561 &::google::protobuf::internal::fixed_address_empty_string,
562 ::_pbi::ConstantInitialized()),
563 general_constraint_{},
568#if defined(PROTOBUF_CUSTOM_VTABLE)
571 : ::google::protobuf::Message(),
573 _impl_(::_pbi::ConstantInitialized()) {
583PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
586inline constexpr MPModelProto::Impl_::Impl_(
587 ::_pbi::ConstantInitialized) noexcept
591 general_constraint_{},
594 &::google::protobuf::internal::fixed_address_empty_string,
595 ::_pbi::ConstantInitialized()),
596 solution_hint_{
nullptr},
597 quadratic_objective_{
nullptr},
598 objective_offset_{0},
603#if defined(PROTOBUF_CUSTOM_VTABLE)
606 : ::google::protobuf::Message(),
608 _impl_(::_pbi::ConstantInitialized()) {
618PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
621inline constexpr MPModelRequest::Impl_::Impl_(
622 ::_pbi::ConstantInitialized) noexcept
624 solver_specific_parameters_(
625 &::google::protobuf::internal::fixed_address_empty_string,
626 ::_pbi::ConstantInitialized()),
628 model_delta_{
nullptr},
629 solver_time_limit_seconds_{0},
630 enable_internal_solver_output_{
false},
631 ignore_solver_specific_parameters_failure_{
false},
632 populate_additional_solutions_up_to_{0},
637#if defined(PROTOBUF_CUSTOM_VTABLE)
640 : ::google::protobuf::Message(),
642 _impl_(::_pbi::ConstantInitialized()) {
652PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
655static const ::_pb::EnumDescriptor* PROTOBUF_NONNULL
657static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
924static const ::_pbi::MigrationSchema
975 "\n)ortools/linear_solver/linear_solver.pr"
976 "oto\022\023operations_research\032#ortools/util/o"
977 "ptional_boolean.proto\"\262\001\n\017MPVariableProt"
978 "o\022\031\n\013lower_bound\030\001 \001(\001:\004-inf\022\030\n\013upper_bo"
979 "und\030\002 \001(\001:\003inf\022 \n\025objective_coefficient\030"
980 "\003 \001(\001:\0010\022\031\n\nis_integer\030\004 \001(\010:\005false\022\016\n\004n"
981 "ame\030\005 \001(\t:\000\022\035\n\022branching_priority\030\006 \001(\005:"
982 "\0010\"\240\001\n\021MPConstraintProto\022\025\n\tvar_index\030\006 "
983 "\003(\005B\002\020\001\022\027\n\013coefficient\030\007 \003(\001B\002\020\001\022\031\n\013lowe"
984 "r_bound\030\002 \001(\001:\004-inf\022\030\n\013upper_bound\030\003 \001(\001"
985 ":\003inf\022\016\n\004name\030\004 \001(\t:\000\022\026\n\007is_lazy\030\005 \001(\010:\005"
986 "false\"\367\004\n\030MPGeneralConstraintProto\022\016\n\004na"
987 "me\030\001 \001(\t:\000\022J\n\024indicator_constraint\030\002 \001(\013"
988 "2*.operations_research.MPIndicatorConstr"
989 "aintH\000\022>\n\016sos_constraint\030\003 \001(\0132$.operati"
990 "ons_research.MPSosConstraintH\000\022J\n\024quadra"
991 "tic_constraint\030\004 \001(\0132*.operations_resear"
992 "ch.MPQuadraticConstraintH\000\022>\n\016abs_constr"
993 "aint\030\005 \001(\0132$.operations_research.MPAbsCo"
994 "nstraintH\000\022@\n\016and_constraint\030\006 \001(\0132&.ope"
995 "rations_research.MPArrayConstraintH\000\022\?\n\r"
996 "or_constraint\030\007 \001(\0132&.operations_researc"
997 "h.MPArrayConstraintH\000\022L\n\016min_constraint\030"
998 "\010 \001(\01322.operations_research.MPArrayWithC"
999 "onstantConstraintH\000\022L\n\016max_constraint\030\t "
1000 "\001(\01322.operations_research.MPArrayWithCon"
1001 "stantConstraintH\000B\024\n\022general_constraint\""
1002 "y\n\025MPIndicatorConstraint\022\021\n\tvar_index\030\001 "
1003 "\001(\005\022\021\n\tvar_value\030\002 \001(\005\022:\n\nconstraint\030\003 \001"
1004 "(\0132&.operations_research.MPConstraintPro"
1005 "to\"\237\001\n\017MPSosConstraint\022E\n\004type\030\001 \001(\0162).o"
1006 "perations_research.MPSosConstraint.Type:"
1007 "\014SOS1_DEFAULT\022\021\n\tvar_index\030\002 \003(\005\022\016\n\006weig"
1008 "ht\030\003 \003(\001\"\"\n\004Type\022\020\n\014SOS1_DEFAULT\020\000\022\010\n\004SO"
1009 "S2\020\001\"\264\001\n\025MPQuadraticConstraint\022\021\n\tvar_in"
1010 "dex\030\001 \003(\005\022\023\n\013coefficient\030\002 \003(\001\022\023\n\013qvar1_"
1011 "index\030\003 \003(\005\022\023\n\013qvar2_index\030\004 \003(\005\022\024\n\014qcoe"
1012 "fficient\030\005 \003(\001\022\031\n\013lower_bound\030\006 \001(\001:\004-in"
1013 "f\022\030\n\013upper_bound\030\007 \001(\001:\003inf\"A\n\017MPAbsCons"
1014 "traint\022\021\n\tvar_index\030\001 \001(\005\022\033\n\023resultant_v"
1015 "ar_index\030\002 \001(\005\"C\n\021MPArrayConstraint\022\021\n\tv"
1016 "ar_index\030\001 \003(\005\022\033\n\023resultant_var_index\030\002 "
1017 "\001(\005\"a\n\035MPArrayWithConstantConstraint\022\021\n\t"
1018 "var_index\030\001 \003(\005\022\020\n\010constant\030\002 \001(\001\022\033\n\023res"
1019 "ultant_var_index\030\003 \001(\005\"U\n\024MPQuadraticObj"
1020 "ective\022\023\n\013qvar1_index\030\001 \003(\005\022\023\n\013qvar2_ind"
1021 "ex\030\002 \003(\005\022\023\n\013coefficient\030\003 \003(\001\"I\n\031Partial"
1022 "VariableAssignment\022\025\n\tvar_index\030\001 \003(\005B\002\020"
1023 "\001\022\025\n\tvar_value\030\002 \003(\001B\002\020\001\"\344\005\n\014MPModelProt"
1024 "o\0226\n\010variable\030\003 \003(\0132$.operations_researc"
1025 "h.MPVariableProto\022:\n\nconstraint\030\004 \003(\0132&."
1026 "operations_research.MPConstraintProto\022I\n"
1027 "\022general_constraint\030\007 \003(\0132-.operations_r"
1028 "esearch.MPGeneralConstraintProto\022\027\n\010maxi"
1029 "mize\030\001 \001(\010:\005false\022\033\n\020objective_offset\030\002 "
1030 "\001(\001:\0010\022F\n\023quadratic_objective\030\010 \001(\0132).op"
1031 "erations_research.MPQuadraticObjective\022\016"
1032 "\n\004name\030\005 \001(\t:\000\022E\n\rsolution_hint\030\006 \001(\0132.."
1033 "operations_research.PartialVariableAssig"
1034 "nment\022@\n\nannotation\030\t \003(\0132,.operations_r"
1035 "esearch.MPModelProto.Annotation\032\375\001\n\nAnno"
1036 "tation\022L\n\013target_type\030\001 \001(\01627.operations"
1037 "_research.MPModelProto.Annotation.Target"
1038 "Type\022\024\n\014target_index\030\002 \001(\005\022\023\n\013target_nam"
1039 "e\030\003 \001(\t\022\023\n\013payload_key\030\004 \001(\t\022\025\n\rpayload_"
1040 "value\030\005 \001(\t\"J\n\nTargetType\022\024\n\020VARIABLE_DE"
1041 "FAULT\020\000\022\016\n\nCONSTRAINT\020\001\022\026\n\022GENERAL_CONST"
1042 "RAINT\020\002\"\037\n\016OptionalDouble\022\r\n\005value\030\001 \001(\001"
1043 "\"\275\004\n\030MPSolverCommonParameters\022=\n\020relativ"
1044 "e_mip_gap\030\001 \001(\0132#.operations_research.Op"
1045 "tionalDouble\022=\n\020primal_tolerance\030\002 \001(\0132#"
1046 ".operations_research.OptionalDouble\022;\n\016d"
1047 "ual_tolerance\030\003 \001(\0132#.operations_researc"
1048 "h.OptionalDouble\022j\n\014lp_algorithm\030\004 \001(\0162\?"
1049 ".operations_research.MPSolverCommonParam"
1050 "eters.LPAlgorithmValues:\023LP_ALGO_UNSPECI"
1051 "FIED\022H\n\010presolve\030\005 \001(\0162$.operations_rese"
1052 "arch.OptionalBoolean:\020BOOL_UNSPECIFIED\022G"
1053 "\n\007scaling\030\007 \001(\0162$.operations_research.Op"
1054 "tionalBoolean:\020BOOL_UNSPECIFIED\"g\n\021LPAlg"
1055 "orithmValues\022\027\n\023LP_ALGO_UNSPECIFIED\020\000\022\020\n"
1056 "\014LP_ALGO_DUAL\020\001\022\022\n\016LP_ALGO_PRIMAL\020\002\022\023\n\017L"
1057 "P_ALGO_BARRIER\020\003\"\263\003\n\021MPModelDeltaProto\022 "
1058 "\n\030baseline_model_file_path\030\001 \001(\t\022Y\n\022vari"
1059 "able_overrides\030\002 \003(\0132=.operations_resear"
1060 "ch.MPModelDeltaProto.VariableOverridesEn"
1061 "try\022]\n\024constraint_overrides\030\003 \003(\0132\?.oper"
1062 "ations_research.MPModelDeltaProto.Constr"
1063 "aintOverridesEntry\032^\n\026VariableOverridesE"
1064 "ntry\022\013\n\003key\030\001 \001(\005\0223\n\005value\030\002 \001(\0132$.opera"
1065 "tions_research.MPVariableProto:\0028\001\032b\n\030Co"
1066 "nstraintOverridesEntry\022\013\n\003key\030\001 \001(\005\0225\n\005v"
1067 "alue\030\002 \001(\0132&.operations_research.MPConst"
1068 "raintProto:\0028\001\"\241\010\n\016MPModelRequest\0220\n\005mod"
1069 "el\030\001 \001(\0132!.operations_research.MPModelPr"
1070 "oto\022\\\n\013solver_type\030\002 \001(\0162..operations_re"
1071 "search.MPModelRequest.SolverType:\027GLOP_L"
1072 "INEAR_PROGRAMMING\022!\n\031solver_time_limit_s"
1073 "econds\030\003 \001(\001\022,\n\035enable_internal_solver_o"
1074 "utput\030\004 \001(\010:\005false\022\"\n\032solver_specific_pa"
1075 "rameters\030\005 \001(\t\0228\n)ignore_solver_specific"
1076 "_parameters_failure\030\t \001(\010:\005false\022;\n\013mode"
1077 "l_delta\030\010 \001(\0132&.operations_research.MPMo"
1078 "delDeltaProto\022.\n#populate_additional_sol"
1079 "utions_up_to\030\013 \001(\005:\0010\"\334\004\n\nSolverType\022\032\n\026"
1080 "CLP_LINEAR_PROGRAMMING\020\000\022\033\n\027GLOP_LINEAR_"
1081 "PROGRAMMING\020\002\022\033\n\027GLPK_LINEAR_PROGRAMMING"
1082 "\020\001\022\035\n\031GUROBI_LINEAR_PROGRAMMING\020\006\022\035\n\031XPR"
1083 "ESS_LINEAR_PROGRAMMING\020e\022\034\n\030CPLEX_LINEAR"
1084 "_PROGRAMMING\020\n\022\034\n\030HIGHS_LINEAR_PROGRAMMI"
1085 "NG\020\017\022\"\n\036SCIP_MIXED_INTEGER_PROGRAMMING\020\003"
1086 "\022\"\n\036GLPK_MIXED_INTEGER_PROGRAMMING\020\004\022!\n\035"
1087 "CBC_MIXED_INTEGER_PROGRAMMING\020\005\022$\n GUROB"
1088 "I_MIXED_INTEGER_PROGRAMMING\020\007\022$\n XPRESS_"
1089 "MIXED_INTEGER_PROGRAMMING\020f\022#\n\037CPLEX_MIX"
1090 "ED_INTEGER_PROGRAMMING\020\013\022#\n\037HIGHS_MIXED_"
1091 "INTEGER_PROGRAMMING\020\020\022\033\n\027BOP_INTEGER_PRO"
1092 "GRAMMING\020\014\022\033\n\027SAT_INTEGER_PROGRAMMING\020\016\022"
1093 "\033\n\027PDLP_LINEAR_PROGRAMMING\020\010\022&\n\"KNAPSACK"
1094 "_MIXED_INTEGER_PROGRAMMING\020\rJ\004\010\014\020\r\"A\n\nMP"
1095 "Solution\022\027\n\017objective_value\030\001 \001(\001\022\032\n\016var"
1096 "iable_value\030\002 \003(\001B\002\020\001\"O\n\013MPSolveInfo\022\037\n\027"
1097 "solve_wall_time_seconds\030\001 \001(\001\022\037\n\027solve_u"
1098 "ser_time_seconds\030\002 \001(\001\"\234\003\n\022MPSolutionRes"
1099 "ponse\022T\n\006status\030\001 \001(\0162+.operations_resea"
1100 "rch.MPSolverResponseStatus:\027MPSOLVER_UNK"
1101 "NOWN_STATUS\022\022\n\nstatus_str\030\007 \001(\t\022\027\n\017objec"
1102 "tive_value\030\002 \001(\001\022\034\n\024best_objective_bound"
1103 "\030\005 \001(\001\022\032\n\016variable_value\030\003 \003(\001B\002\020\001\0224\n\nso"
1104 "lve_info\030\n \001(\0132 .operations_research.MPS"
1105 "olveInfo\022\034\n\024solver_specific_info\030\013 \001(\014\022\026"
1106 "\n\ndual_value\030\004 \003(\001B\002\020\001\022\030\n\014reduced_cost\030\006"
1107 " \003(\001B\002\020\001\022=\n\024additional_solutions\030\010 \003(\0132\037"
1108 ".operations_research.MPSolutionJ\004\010\t\020\n*\275\003"
1109 "\n\026MPSolverResponseStatus\022\024\n\020MPSOLVER_OPT"
1110 "IMAL\020\000\022\025\n\021MPSOLVER_FEASIBLE\020\001\022\027\n\023MPSOLVE"
1111 "R_INFEASIBLE\020\002\022\026\n\022MPSOLVER_UNBOUNDED\020\003\022\025"
1112 "\n\021MPSOLVER_ABNORMAL\020\004\022\027\n\023MPSOLVER_NOT_SO"
1113 "LVED\020\006\022\033\n\027MPSOLVER_MODEL_IS_VALID\020a\022\036\n\032M"
1114 "PSOLVER_CANCELLED_BY_USER\020b\022\033\n\027MPSOLVER_"
1115 "UNKNOWN_STATUS\020c\022\032\n\026MPSOLVER_MODEL_INVAL"
1116 "ID\020\005\022(\n$MPSOLVER_MODEL_INVALID_SOLUTION_"
1117 "HINT\020T\022,\n(MPSOLVER_MODEL_INVALID_SOLVER_"
1118 "PARAMETERS\020U\022$\n MPSOLVER_SOLVER_TYPE_UNA"
1119 "VAILABLE\020\007\022!\n\035MPSOLVER_INCOMPATIBLE_OPTI"
1120 "ONS\020qB#\n\037com.google.ortools.linearsolver"
1123static const ::_pbi::DescriptorTable* PROTOBUF_NONNULL
const
1132 descriptor_table_protodef_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto,
1133 "ortools/linear_solver/linear_solver.proto",
1168 589824u, 96u, 254u, 0u, 805306368u, };
1174 524288u, 128u, 0u, 0u, 234893312u, 512u, };
1177class MPVariableProto::_Internal {
1180 decltype(::std::declval<MPVariableProto>()._impl_._has_bits_);
1186#if defined(PROTOBUF_CUSTOM_VTABLE)
1189 : ::google::protobuf::Message(arena) {
1194PROTOBUF_NDEBUG_INLINE MPVariableProto::Impl_::Impl_(
1195 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1196 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
1197 [[maybe_unused]] const ::operations_research::MPVariableProto& from_msg)
1198 : _has_bits_{from._has_bits_},
1200 name_(arena, from.name_) {}
1203 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1205#if defined(PROTOBUF_CUSTOM_VTABLE)
1208 : ::google::protobuf::Message(arena) {
1212 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1213 from._internal_metadata_);
1214 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1215 ::memcpy(
reinterpret_cast<char*
>(&
_impl_) +
1216 offsetof(Impl_, objective_coefficient_),
1217 reinterpret_cast<const char*
>(&from._impl_) +
1218 offsetof(Impl_, objective_coefficient_),
1219 offsetof(Impl_, upper_bound_) -
1220 offsetof(Impl_, objective_coefficient_) +
1221 sizeof(Impl_::upper_bound_));
1225PROTOBUF_NDEBUG_INLINE MPVariableProto::Impl_::Impl_(
1226 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1227 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1230 lower_bound_{-std::numeric_limits<double>::infinity()},
1231 upper_bound_{std::numeric_limits<double>::infinity()} {}
1233inline void MPVariableProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1234 new (&
_impl_) Impl_(internal_visibility(), arena);
1235 ::memset(
reinterpret_cast<char*
>(&
_impl_) +
1236 offsetof(Impl_, objective_coefficient_),
1238 offsetof(Impl_, branching_priority_) -
1239 offsetof(Impl_, objective_coefficient_) +
1240 sizeof(Impl_::branching_priority_));
1246inline void MPVariableProto::SharedDtor(
MessageLite& self) {
1248 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1249 this_.CheckHasBitConsistency();
1251 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1252 ABSL_DCHECK(this_.GetArena() ==
nullptr);
1253 this_.
_impl_.name_.Destroy();
1257inline void* PROTOBUF_NONNULL MPVariableProto::PlacementNew_(
1258 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
1259 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1262constexpr auto MPVariableProto::InternalNewImpl_() {
1263 return ::google::protobuf::internal::MessageCreator::CopyInit(
sizeof(
MPVariableProto),
1267 return ::google::protobuf::internal::ClassDataFull{
1268 ::google::protobuf::internal::ClassData{
1273 &MPVariableProto::MergeImpl,
1274 ::google::protobuf::Message::GetNewImpl<MPVariableProto>(),
1275#if defined(PROTOBUF_CUSTOM_VTABLE)
1276 &MPVariableProto::SharedDtor,
1283 &MPVariableProto::kDescriptorMethods,
1289PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1293PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1294MPVariableProto::GetClassData()
const {
1299PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1300const ::_pbi::TcParseTable<3, 6, 0, 0, 2>
1301MPVariableProto::_table_ = {
1306 offsetof(
decltype(_table_), field_lookup_table),
1308 offsetof(
decltype(_table_), field_entries),
1311 offsetof(
decltype(_table_), field_names),
1314 ::_pbi::TcParser::GenericFallback,
1315 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1316 ::_pbi::TcParser::GetTable<::operations_research::MPVariableProto>(),
1319 {::_pbi::TcParser::MiniParse, {}},
1321 {::_pbi::TcParser::FastF64S1,
1325 {::_pbi::TcParser::FastF64S1,
1329 {::_pbi::TcParser::FastF64S1,
1337 {::_pbi::TcParser::FastBS1,
1341 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(
MPVariableProto,
_impl_.branching_priority_), 3>(),
1344 {::_pbi::TcParser::MiniParse, {}},
1367 ::google::protobuf::internal::TSanWrite(&
_impl_);
1368 ::uint32_t cached_has_bits = 0;
1370 (void) cached_has_bits;
1372 cached_has_bits =
_impl_._has_bits_[0];
1373 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1374 _impl_.name_.ClearNonDefaultToEmpty();
1376 if (BatchCheckHasBit(cached_has_bits, 0x0000003eU)) {
1377 ::memset(&
_impl_.objective_coefficient_, 0,
static_cast<::
size_t>(
1378 reinterpret_cast<char*
>(&
_impl_.branching_priority_) -
1379 reinterpret_cast<char*
>(&
_impl_.objective_coefficient_)) +
sizeof(
_impl_.branching_priority_));
1380 _impl_.lower_bound_ = -std::numeric_limits<double>::infinity();
1381 _impl_.upper_bound_ = std::numeric_limits<double>::infinity();
1383 _impl_._has_bits_.Clear();
1384 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1387#if defined(PROTOBUF_CUSTOM_VTABLE)
1389 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1390 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1394 ::uint8_t* PROTOBUF_NONNULL target,
1395 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
1398 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1399 this_.CheckHasBitConsistency();
1402 ::uint32_t cached_has_bits = 0;
1403 (void)cached_has_bits;
1405 cached_has_bits = this_.
_impl_._has_bits_[0];
1407 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
1408 target = stream->EnsureSpace(target);
1409 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
1410 1, this_._internal_lower_bound(), target);
1414 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
1415 target = stream->EnsureSpace(target);
1416 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
1417 2, this_._internal_upper_bound(), target);
1421 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1422 target = stream->EnsureSpace(target);
1423 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
1424 3, this_._internal_objective_coefficient(), target);
1428 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1429 target = stream->EnsureSpace(target);
1430 target = ::_pbi::WireFormatLite::WriteBoolToArray(
1431 4, this_._internal_is_integer(), target);
1435 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1436 const ::std::string& _s = this_._internal_name();
1437 target = stream->WriteStringMaybeAliased(5, _s, target);
1441 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1443 ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<6>(
1444 stream, this_._internal_branching_priority(), target);
1447 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1449 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1450 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1456#if defined(PROTOBUF_CUSTOM_VTABLE)
1464 ::size_t total_size = 0;
1466 ::uint32_t cached_has_bits = 0;
1468 (void)cached_has_bits;
1470 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1471 cached_has_bits = this_.
_impl_._has_bits_[0];
1472 total_size += ::absl::popcount(0x00000032U & cached_has_bits) * 9;
1473 total_size +=
static_cast<bool>(0x00000004U & cached_has_bits) * 2;
1474 if (BatchCheckHasBit(cached_has_bits, 0x00000009U)) {
1476 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1477 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
1478 this_._internal_name());
1481 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1482 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
1483 this_._internal_branching_priority());
1486 return this_.MaybeComputeUnknownFieldsSize(total_size,
1487 &this_.
_impl_._cached_size_);
1490void MPVariableProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
1491 const ::google::protobuf::MessageLite& from_msg) {
1495 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1496 from.CheckHasBitConsistency();
1499 ABSL_DCHECK_NE(&from, _this);
1500 ::uint32_t cached_has_bits = 0;
1501 (void)cached_has_bits;
1503 cached_has_bits = from._impl_._has_bits_[0];
1504 if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) {
1505 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1506 _this->_internal_set_name(from._internal_name());
1508 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1509 _this->_impl_.objective_coefficient_ = from._impl_.objective_coefficient_;
1511 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1512 _this->_impl_.is_integer_ = from._impl_.is_integer_;
1514 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1515 _this->_impl_.branching_priority_ = from._impl_.branching_priority_;
1517 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
1518 _this->_impl_.lower_bound_ = from._impl_.lower_bound_;
1520 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
1521 _this->_impl_.upper_bound_ = from._impl_.upper_bound_;
1524 _this->_impl_._has_bits_[0] |= cached_has_bits;
1525 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1526 from._internal_metadata_);
1531 if (&from ==
this)
return;
1537void MPVariableProto::InternalSwap(
MPVariableProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1539 auto* arena = GetArena();
1540 ABSL_DCHECK_EQ(arena, other->GetArena());
1541 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1542 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1543 ::_pbi::ArenaStringPtr::InternalSwap(&
_impl_.name_, &other->_impl_.name_, arena);
1544 ::google::protobuf::internal::memswap<
1548 reinterpret_cast<char*
>(&
_impl_.objective_coefficient_),
1549 reinterpret_cast<char*
>(&other->_impl_.objective_coefficient_));
1553 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1560 decltype(::std::declval<MPConstraintProto>()._impl_._has_bits_);
1566#if defined(PROTOBUF_CUSTOM_VTABLE)
1569 : ::google::protobuf::Message(arena) {
1574PROTOBUF_NDEBUG_INLINE MPConstraintProto::Impl_::Impl_(
1575 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1576 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
1577 [[maybe_unused]] const ::operations_research::MPConstraintProto& from_msg)
1578 : _has_bits_{from._has_bits_},
1580 var_index_{visibility, arena, from.var_index_},
1581 _var_index_cached_byte_size_{0},
1582 coefficient_{visibility, arena, from.coefficient_},
1583 name_(arena, from.name_) {}
1586 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1588#if defined(PROTOBUF_CUSTOM_VTABLE)
1591 : ::google::protobuf::Message(arena) {
1595 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1596 from._internal_metadata_);
1597 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1598 ::memcpy(
reinterpret_cast<char*
>(&
_impl_) +
1599 offsetof(Impl_, is_lazy_),
1600 reinterpret_cast<const char*
>(&from._impl_) +
1601 offsetof(Impl_, is_lazy_),
1602 offsetof(Impl_, upper_bound_) -
1603 offsetof(Impl_, is_lazy_) +
1604 sizeof(Impl_::upper_bound_));
1608PROTOBUF_NDEBUG_INLINE MPConstraintProto::Impl_::Impl_(
1609 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1610 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1612 var_index_{visibility, arena},
1613 _var_index_cached_byte_size_{0},
1614 coefficient_{visibility, arena},
1616 lower_bound_{-std::numeric_limits<double>::infinity()},
1617 upper_bound_{std::numeric_limits<double>::infinity()} {}
1619inline void MPConstraintProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1620 new (&
_impl_) Impl_(internal_visibility(), arena);
1627inline void MPConstraintProto::SharedDtor(
MessageLite& self) {
1629 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1630 this_.CheckHasBitConsistency();
1632 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1633 ABSL_DCHECK(this_.GetArena() ==
nullptr);
1634 this_.
_impl_.name_.Destroy();
1638inline void* PROTOBUF_NONNULL MPConstraintProto::PlacementNew_(
1639 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
1640 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1643constexpr auto MPConstraintProto::InternalNewImpl_() {
1644 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
1647 InternalGetArenaOffset(
1648 ::google::protobuf::Message::internal_visibility()),
1651 InternalGetArenaOffset(
1652 ::google::protobuf::Message::internal_visibility()),
1654 if (arena_bits.has_value()) {
1655 return ::google::protobuf::internal::MessageCreator::CopyInit(
1656 sizeof(MPConstraintProto), alignof(MPConstraintProto), *arena_bits);
1658 return ::google::protobuf::internal::MessageCreator(&MPConstraintProto::PlacementNew_,
1659 sizeof(MPConstraintProto),
1660 alignof(MPConstraintProto));
1664 return ::google::protobuf::internal::ClassDataFull{
1665 ::google::protobuf::internal::ClassData{
1670 &MPConstraintProto::MergeImpl,
1671 ::google::protobuf::Message::GetNewImpl<MPConstraintProto>(),
1672#if defined(PROTOBUF_CUSTOM_VTABLE)
1673 &MPConstraintProto::SharedDtor,
1680 &MPConstraintProto::kDescriptorMethods,
1686PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1690PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1691MPConstraintProto::GetClassData()
const {
1696PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1697const ::_pbi::TcParseTable<3, 6, 0, 0, 2>
1698MPConstraintProto::_table_ = {
1703 offsetof(
decltype(_table_), field_lookup_table),
1705 offsetof(
decltype(_table_), field_entries),
1708 offsetof(
decltype(_table_), field_names),
1711 ::_pbi::TcParser::GenericFallback,
1712 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1713 ::_pbi::TcParser::GetTable<::operations_research::MPConstraintProto>(),
1716 {::_pbi::TcParser::MiniParse, {}},
1717 {::_pbi::TcParser::MiniParse, {}},
1719 {::_pbi::TcParser::FastF64S1,
1723 {::_pbi::TcParser::FastF64S1,
1727 {::_pbi::TcParser::FastBS1,
1735 {::_pbi::TcParser::FastV32P1,
1739 {::_pbi::TcParser::FastF64P1,
1764 ::google::protobuf::internal::TSanWrite(&
_impl_);
1765 ::uint32_t cached_has_bits = 0;
1767 (void) cached_has_bits;
1769 cached_has_bits =
_impl_._has_bits_[0];
1770 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
1771 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1772 _impl_.var_index_.Clear();
1774 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1775 _impl_.coefficient_.Clear();
1777 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1778 _impl_.name_.ClearNonDefaultToEmpty();
1781 if (BatchCheckHasBit(cached_has_bits, 0x00000038U)) {
1783 _impl_.lower_bound_ = -std::numeric_limits<double>::infinity();
1784 _impl_.upper_bound_ = std::numeric_limits<double>::infinity();
1786 _impl_._has_bits_.Clear();
1787 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1790#if defined(PROTOBUF_CUSTOM_VTABLE)
1792 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1793 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1797 ::uint8_t* PROTOBUF_NONNULL target,
1798 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
1801 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1802 this_.CheckHasBitConsistency();
1805 ::uint32_t cached_has_bits = 0;
1806 (void)cached_has_bits;
1808 cached_has_bits = this_.
_impl_._has_bits_[0];
1810 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
1811 target = stream->EnsureSpace(target);
1812 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
1813 2, this_._internal_lower_bound(), target);
1817 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
1818 target = stream->EnsureSpace(target);
1819 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
1820 3, this_._internal_upper_bound(), target);
1824 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1825 const ::std::string& _s = this_._internal_name();
1826 target = stream->WriteStringMaybeAliased(4, _s, target);
1830 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1831 target = stream->EnsureSpace(target);
1832 target = ::_pbi::WireFormatLite::WriteBoolToArray(
1833 5, this_._internal_is_lazy(), target);
1837 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1839 int byte_size = this_.
_impl_._var_index_cached_byte_size_.Get();
1840 if (byte_size > 0) {
1841 target = stream->WriteInt32Packed(
1842 6, this_._internal_var_index(), byte_size, target);
1848 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1849 if (this_._internal_coefficient_size() > 0) {
1850 target = stream->WriteFixedPacked(7, this_._internal_coefficient(), target);
1854 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1856 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1857 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1863#if defined(PROTOBUF_CUSTOM_VTABLE)
1871 ::size_t total_size = 0;
1873 ::uint32_t cached_has_bits = 0;
1875 (void)cached_has_bits;
1877 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1878 cached_has_bits = this_.
_impl_._has_bits_[0];
1879 total_size += ::absl::popcount(0x00000030U & cached_has_bits) * 9;
1880 total_size +=
static_cast<bool>(0x00000008U & cached_has_bits) * 2;
1881 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
1883 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1885 ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize(
1886 this_._internal_var_index(), 1,
1887 this_.
_impl_._var_index_cached_byte_size_);
1890 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1891 ::size_t data_size = ::size_t{8} *
1892 ::_pbi::FromIntSize(this_._internal_coefficient_size());
1893 ::size_t tag_size = data_size == 0
1895 : 1 + ::_pbi::WireFormatLite::Int32Size(
1896 static_cast<::int32_t
>(data_size));
1897 total_size += tag_size + data_size;
1900 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1901 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
1902 this_._internal_name());
1905 return this_.MaybeComputeUnknownFieldsSize(total_size,
1906 &this_.
_impl_._cached_size_);
1909void MPConstraintProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
1910 const ::google::protobuf::MessageLite& from_msg) {
1914 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1915 from.CheckHasBitConsistency();
1918 ABSL_DCHECK_NE(&from, _this);
1919 ::uint32_t cached_has_bits = 0;
1920 (void)cached_has_bits;
1922 cached_has_bits = from._impl_._has_bits_[0];
1923 if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) {
1924 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1925 _this->_internal_mutable_var_index()->MergeFrom(from._internal_var_index());
1927 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1928 _this->_internal_mutable_coefficient()->MergeFrom(from._internal_coefficient());
1930 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1931 _this->_internal_set_name(from._internal_name());
1933 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1934 _this->_impl_.is_lazy_ = from._impl_.is_lazy_;
1936 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
1937 _this->_impl_.lower_bound_ = from._impl_.lower_bound_;
1939 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
1940 _this->_impl_.upper_bound_ = from._impl_.upper_bound_;
1943 _this->_impl_._has_bits_[0] |= cached_has_bits;
1944 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1945 from._internal_metadata_);
1950 if (&from ==
this)
return;
1956void MPConstraintProto::InternalSwap(
MPConstraintProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1958 auto* arena = GetArena();
1959 ABSL_DCHECK_EQ(arena, other->GetArena());
1960 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1961 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1962 _impl_.var_index_.InternalSwap(&other->_impl_.var_index_);
1963 _impl_.coefficient_.InternalSwap(&other->_impl_.coefficient_);
1964 ::_pbi::ArenaStringPtr::InternalSwap(&
_impl_.name_, &other->_impl_.name_, arena);
1965 ::google::protobuf::internal::memswap<
1969 reinterpret_cast<char*
>(&
_impl_.is_lazy_),
1970 reinterpret_cast<char*
>(&other->_impl_.is_lazy_));
1974 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1981 decltype(::std::declval<MPGeneralConstraintProto>()._impl_._has_bits_);
1989 ::google::protobuf::Arena* message_arena = GetArena();
1993 if (message_arena != submessage_arena) {
1996 set_has_indicator_constraint();
2002 ::google::protobuf::Arena* message_arena = GetArena();
2003 clear_general_constraint();
2005 ::google::protobuf::Arena* submessage_arena =
sos_constraint->GetArena();
2006 if (message_arena != submessage_arena) {
2009 set_has_sos_constraint();
2015 ::google::protobuf::Arena* message_arena = GetArena();
2016 clear_general_constraint();
2019 if (message_arena != submessage_arena) {
2022 set_has_quadratic_constraint();
2028 ::google::protobuf::Arena* message_arena = GetArena();
2029 clear_general_constraint();
2031 ::google::protobuf::Arena* submessage_arena =
abs_constraint->GetArena();
2032 if (message_arena != submessage_arena) {
2035 set_has_abs_constraint();
2041 ::google::protobuf::Arena* message_arena = GetArena();
2042 clear_general_constraint();
2044 ::google::protobuf::Arena* submessage_arena =
and_constraint->GetArena();
2045 if (message_arena != submessage_arena) {
2048 set_has_and_constraint();
2054 ::google::protobuf::Arena* message_arena = GetArena();
2055 clear_general_constraint();
2057 ::google::protobuf::Arena* submessage_arena =
or_constraint->GetArena();
2058 if (message_arena != submessage_arena) {
2061 set_has_or_constraint();
2067 ::google::protobuf::Arena* message_arena = GetArena();
2068 clear_general_constraint();
2070 ::google::protobuf::Arena* submessage_arena =
min_constraint->GetArena();
2071 if (message_arena != submessage_arena) {
2074 set_has_min_constraint();
2080 ::google::protobuf::Arena* message_arena = GetArena();
2081 clear_general_constraint();
2083 ::google::protobuf::Arena* submessage_arena =
max_constraint->GetArena();
2084 if (message_arena != submessage_arena) {
2087 set_has_max_constraint();
2093#if defined(PROTOBUF_CUSTOM_VTABLE)
2096 : ::google::protobuf::Message(arena) {
2101PROTOBUF_NDEBUG_INLINE MPGeneralConstraintProto::Impl_::Impl_(
2102 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
2103 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
2104 [[maybe_unused]] const ::operations_research::MPGeneralConstraintProto& from_msg)
2105 : _has_bits_{from._has_bits_},
2107 name_(arena, from.name_),
2108 general_constraint_{},
2109 _oneof_case_{from._oneof_case_[0]} {}
2112 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
2114#if defined(PROTOBUF_CUSTOM_VTABLE)
2117 : ::google::protobuf::Message(arena) {
2121 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
2122 from._internal_metadata_);
2123 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
2124 switch (general_constraint_case()) {
2125 case GENERAL_CONSTRAINT_NOT_SET:
2128 _impl_.general_constraint_.indicator_constraint_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.general_constraint_.indicator_constraint_);
2130 case kSosConstraint:
2131 _impl_.general_constraint_.sos_constraint_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.general_constraint_.sos_constraint_);
2134 _impl_.general_constraint_.quadratic_constraint_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.general_constraint_.quadratic_constraint_);
2136 case kAbsConstraint:
2137 _impl_.general_constraint_.abs_constraint_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.general_constraint_.abs_constraint_);
2139 case kAndConstraint:
2140 _impl_.general_constraint_.and_constraint_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.general_constraint_.and_constraint_);
2143 _impl_.general_constraint_.or_constraint_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.general_constraint_.or_constraint_);
2145 case kMinConstraint:
2146 _impl_.general_constraint_.min_constraint_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.general_constraint_.min_constraint_);
2148 case kMaxConstraint:
2149 _impl_.general_constraint_.max_constraint_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.general_constraint_.max_constraint_);
2155PROTOBUF_NDEBUG_INLINE MPGeneralConstraintProto::Impl_::Impl_(
2156 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
2157 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
2160 general_constraint_{},
2163inline void MPGeneralConstraintProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
2164 new (&
_impl_) Impl_(internal_visibility(), arena);
2170inline void MPGeneralConstraintProto::SharedDtor(MessageLite& self) {
2172 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2173 this_.CheckHasBitConsistency();
2175 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
2176 ABSL_DCHECK(this_.GetArena() ==
nullptr);
2177 this_.
_impl_.name_.Destroy();
2178 if (this_.has_general_constraint()) {
2186 ::google::protobuf::internal::TSanWrite(&
_impl_);
2189 if (GetArena() ==
nullptr) {
2190 delete _impl_.general_constraint_.indicator_constraint_;
2191 }
else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
2192 ::google::protobuf::internal::MaybePoisonAfterClear(
_impl_.general_constraint_.indicator_constraint_);
2197 if (GetArena() ==
nullptr) {
2198 delete _impl_.general_constraint_.sos_constraint_;
2199 }
else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
2200 ::google::protobuf::internal::MaybePoisonAfterClear(
_impl_.general_constraint_.sos_constraint_);
2205 if (GetArena() ==
nullptr) {
2206 delete _impl_.general_constraint_.quadratic_constraint_;
2207 }
else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
2208 ::google::protobuf::internal::MaybePoisonAfterClear(
_impl_.general_constraint_.quadratic_constraint_);
2213 if (GetArena() ==
nullptr) {
2214 delete _impl_.general_constraint_.abs_constraint_;
2215 }
else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
2216 ::google::protobuf::internal::MaybePoisonAfterClear(
_impl_.general_constraint_.abs_constraint_);
2221 if (GetArena() ==
nullptr) {
2222 delete _impl_.general_constraint_.and_constraint_;
2223 }
else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
2224 ::google::protobuf::internal::MaybePoisonAfterClear(
_impl_.general_constraint_.and_constraint_);
2229 if (GetArena() ==
nullptr) {
2230 delete _impl_.general_constraint_.or_constraint_;
2231 }
else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
2232 ::google::protobuf::internal::MaybePoisonAfterClear(
_impl_.general_constraint_.or_constraint_);
2237 if (GetArena() ==
nullptr) {
2238 delete _impl_.general_constraint_.min_constraint_;
2239 }
else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
2240 ::google::protobuf::internal::MaybePoisonAfterClear(
_impl_.general_constraint_.min_constraint_);
2245 if (GetArena() ==
nullptr) {
2246 delete _impl_.general_constraint_.max_constraint_;
2247 }
else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
2248 ::google::protobuf::internal::MaybePoisonAfterClear(
_impl_.general_constraint_.max_constraint_);
2260inline void* PROTOBUF_NONNULL MPGeneralConstraintProto::PlacementNew_(
2261 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
2262 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
2265constexpr auto MPGeneralConstraintProto::InternalNewImpl_() {
2270 return ::google::protobuf::internal::ClassDataFull{
2271 ::google::protobuf::internal::ClassData{
2276 &MPGeneralConstraintProto::MergeImpl,
2277 ::google::protobuf::Message::GetNewImpl<MPGeneralConstraintProto>(),
2278#if defined(PROTOBUF_CUSTOM_VTABLE)
2279 &MPGeneralConstraintProto::SharedDtor,
2286 &MPGeneralConstraintProto::kDescriptorMethods,
2292PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
2296PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
2297MPGeneralConstraintProto::GetClassData()
const {
2302PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
2303const ::_pbi::TcParseTable<0, 9, 8, 0, 2>
2304MPGeneralConstraintProto::_table_ = {
2306 PROTOBUF_FIELD_OFFSET(MPGeneralConstraintProto, _impl_._has_bits_),
2309 offsetof(
decltype(_table_), field_lookup_table),
2311 offsetof(
decltype(_table_), field_entries),
2314 offsetof(
decltype(_table_), aux_entries),
2317 ::_pbi::TcParser::GenericFallback,
2318 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
2319 ::_pbi::TcParser::GetTable<::operations_research::MPGeneralConstraintProto>(),
2323 {::_pbi::TcParser::FastBS1,
2330 {PROTOBUF_FIELD_OFFSET(
MPGeneralConstraintProto, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
2332 {PROTOBUF_FIELD_OFFSET(
MPGeneralConstraintProto, _impl_.general_constraint_.indicator_constraint_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
2334 {PROTOBUF_FIELD_OFFSET(
MPGeneralConstraintProto, _impl_.general_constraint_.sos_constraint_), _Internal::kOneofCaseOffset + 0, 1, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
2336 {PROTOBUF_FIELD_OFFSET(
MPGeneralConstraintProto, _impl_.general_constraint_.quadratic_constraint_), _Internal::kOneofCaseOffset + 0, 2, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
2338 {PROTOBUF_FIELD_OFFSET(
MPGeneralConstraintProto, _impl_.general_constraint_.abs_constraint_), _Internal::kOneofCaseOffset + 0, 3, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
2340 {PROTOBUF_FIELD_OFFSET(
MPGeneralConstraintProto, _impl_.general_constraint_.and_constraint_), _Internal::kOneofCaseOffset + 0, 4, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
2342 {PROTOBUF_FIELD_OFFSET(
MPGeneralConstraintProto, _impl_.general_constraint_.or_constraint_), _Internal::kOneofCaseOffset + 0, 5, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
2344 {PROTOBUF_FIELD_OFFSET(
MPGeneralConstraintProto, _impl_.general_constraint_.min_constraint_), _Internal::kOneofCaseOffset + 0, 6, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
2346 {PROTOBUF_FIELD_OFFSET(
MPGeneralConstraintProto, _impl_.general_constraint_.max_constraint_), _Internal::kOneofCaseOffset + 0, 7, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
2349 {::_pbi::TcParser::GetTable<::operations_research::MPIndicatorConstraint>()},
2350 {::_pbi::TcParser::GetTable<::operations_research::MPSosConstraint>()},
2351 {::_pbi::TcParser::GetTable<::operations_research::MPQuadraticConstraint>()},
2352 {::_pbi::TcParser::GetTable<::operations_research::MPAbsConstraint>()},
2353 {::_pbi::TcParser::GetTable<::operations_research::MPArrayConstraint>()},
2354 {::_pbi::TcParser::GetTable<::operations_research::MPArrayConstraint>()},
2355 {::_pbi::TcParser::GetTable<::operations_research::MPArrayWithConstantConstraint>()},
2356 {::_pbi::TcParser::GetTable<::operations_research::MPArrayWithConstantConstraint>()},
2363 ::google::protobuf::internal::TSanWrite(&
_impl_);
2364 ::uint32_t cached_has_bits = 0;
2366 (void) cached_has_bits;
2368 cached_has_bits =
_impl_._has_bits_[0];
2369 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
2370 _impl_.name_.ClearNonDefaultToEmpty();
2373 _impl_._has_bits_.Clear();
2374 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
2377#if defined(PROTOBUF_CUSTOM_VTABLE)
2379 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
2380 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
2384 ::uint8_t* PROTOBUF_NONNULL target,
2385 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
2388 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2389 this_.CheckHasBitConsistency();
2392 ::uint32_t cached_has_bits = 0;
2393 (void)cached_has_bits;
2395 cached_has_bits = this_.
_impl_._has_bits_[0];
2397 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
2398 const ::std::string& _s = this_._internal_name();
2399 target = stream->WriteStringMaybeAliased(1, _s, target);
2404 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2410 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2416 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2422 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2428 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2434 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2440 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2446 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2454 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
2456 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2457 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
2463#if defined(PROTOBUF_CUSTOM_VTABLE)
2471 ::size_t total_size = 0;
2473 ::uint32_t cached_has_bits = 0;
2475 (void)cached_has_bits;
2479 cached_has_bits = this_._impl_._has_bits_[0];
2480 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
2481 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
2482 this_._internal_name());
2485 switch (this_.general_constraint_case()) {
2489 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.general_constraint_.indicator_constraint_);
2495 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.general_constraint_.sos_constraint_);
2501 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.general_constraint_.quadratic_constraint_);
2507 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.general_constraint_.abs_constraint_);
2513 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.general_constraint_.and_constraint_);
2519 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.general_constraint_.or_constraint_);
2525 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.general_constraint_.min_constraint_);
2531 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.general_constraint_.max_constraint_);
2538 return this_.MaybeComputeUnknownFieldsSize(total_size,
2539 &this_._impl_._cached_size_);
2542void MPGeneralConstraintProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
2543 const ::google::protobuf::MessageLite& from_msg) {
2547 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2548 from.CheckHasBitConsistency();
2552 ABSL_DCHECK_NE(&from, _this);
2553 ::uint32_t cached_has_bits = 0;
2554 (void)cached_has_bits;
2556 cached_has_bits = from._impl_._has_bits_[0];
2557 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
2558 _this->_internal_set_name(from._internal_name());
2560 _this->_impl_._has_bits_[0] |= cached_has_bits;
2561 if (
const uint32_t oneof_from_case =
2562 from._impl_._oneof_case_[0]) {
2563 const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0];
2564 const bool oneof_needs_init = oneof_to_case != oneof_from_case;
2565 if (oneof_needs_init) {
2566 if (oneof_to_case != 0) {
2567 _this->clear_general_constraint();
2569 _this->_impl_._oneof_case_[0] = oneof_from_case;
2572 switch (oneof_from_case) {
2574 if (oneof_needs_init) {
2575 _this->_impl_.general_constraint_.indicator_constraint_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.general_constraint_.indicator_constraint_);
2577 _this->_impl_.general_constraint_.indicator_constraint_->MergeFrom(*from._impl_.general_constraint_.indicator_constraint_);
2582 if (oneof_needs_init) {
2583 _this->_impl_.general_constraint_.sos_constraint_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.general_constraint_.sos_constraint_);
2585 _this->_impl_.general_constraint_.sos_constraint_->MergeFrom(*from._impl_.general_constraint_.sos_constraint_);
2590 if (oneof_needs_init) {
2591 _this->_impl_.general_constraint_.quadratic_constraint_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.general_constraint_.quadratic_constraint_);
2593 _this->_impl_.general_constraint_.quadratic_constraint_->MergeFrom(*from._impl_.general_constraint_.quadratic_constraint_);
2598 if (oneof_needs_init) {
2599 _this->_impl_.general_constraint_.abs_constraint_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.general_constraint_.abs_constraint_);
2601 _this->_impl_.general_constraint_.abs_constraint_->MergeFrom(*from._impl_.general_constraint_.abs_constraint_);
2606 if (oneof_needs_init) {
2607 _this->_impl_.general_constraint_.and_constraint_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.general_constraint_.and_constraint_);
2609 _this->_impl_.general_constraint_.and_constraint_->MergeFrom(*from._impl_.general_constraint_.and_constraint_);
2614 if (oneof_needs_init) {
2615 _this->_impl_.general_constraint_.or_constraint_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.general_constraint_.or_constraint_);
2617 _this->_impl_.general_constraint_.or_constraint_->MergeFrom(*from._impl_.general_constraint_.or_constraint_);
2622 if (oneof_needs_init) {
2623 _this->_impl_.general_constraint_.min_constraint_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.general_constraint_.min_constraint_);
2625 _this->_impl_.general_constraint_.min_constraint_->MergeFrom(*from._impl_.general_constraint_.min_constraint_);
2630 if (oneof_needs_init) {
2631 _this->_impl_.general_constraint_.max_constraint_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.general_constraint_.max_constraint_);
2633 _this->_impl_.general_constraint_.max_constraint_->MergeFrom(*from._impl_.general_constraint_.max_constraint_);
2641 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
2642 from._internal_metadata_);
2647 if (&from ==
this)
return;
2655 auto* arena = GetArena();
2656 ABSL_DCHECK_EQ(arena, other->GetArena());
2657 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2658 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2659 ::_pbi::ArenaStringPtr::InternalSwap(&
_impl_.name_, &other->_impl_.name_, arena);
2660 swap(
_impl_.general_constraint_, other->_impl_.general_constraint_);
2661 swap(
_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
2665 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
2672 decltype(::std::declval<MPIndicatorConstraint>()._impl_._has_bits_);
2678#if defined(PROTOBUF_CUSTOM_VTABLE)
2681 : ::google::protobuf::Message(arena) {
2686PROTOBUF_NDEBUG_INLINE MPIndicatorConstraint::Impl_::Impl_(
2687 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
2688 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
2689 [[maybe_unused]] const ::operations_research::MPIndicatorConstraint& from_msg)
2690 : _has_bits_{from._has_bits_},
2694 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
2696#if defined(PROTOBUF_CUSTOM_VTABLE)
2699 : ::google::protobuf::Message(arena) {
2703 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
2704 from._internal_metadata_);
2705 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
2706 ::uint32_t cached_has_bits =
_impl_._has_bits_[0];
2707 _impl_.constraint_ = (CheckHasBit(cached_has_bits, 0x00000001U))
2708 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.constraint_)
2710 ::memcpy(
reinterpret_cast<char*
>(&
_impl_) +
2711 offsetof(Impl_, var_index_),
2712 reinterpret_cast<const char*
>(&from._impl_) +
2713 offsetof(Impl_, var_index_),
2714 offsetof(Impl_, var_value_) -
2715 offsetof(Impl_, var_index_) +
2716 sizeof(Impl_::var_value_));
2720PROTOBUF_NDEBUG_INLINE MPIndicatorConstraint::Impl_::Impl_(
2721 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
2722 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
2723 : _cached_size_{0} {}
2725inline void MPIndicatorConstraint::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
2726 new (&
_impl_) Impl_(internal_visibility(), arena);
2727 ::memset(
reinterpret_cast<char*
>(&
_impl_) +
2728 offsetof(Impl_, constraint_),
2730 offsetof(Impl_, var_value_) -
2731 offsetof(Impl_, constraint_) +
2732 sizeof(Impl_::var_value_));
2740 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2741 this_.CheckHasBitConsistency();
2743 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
2744 ABSL_DCHECK(this_.GetArena() ==
nullptr);
2745 delete this_.
_impl_.constraint_;
2749inline void* PROTOBUF_NONNULL MPIndicatorConstraint::PlacementNew_(
2750 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
2751 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
2754constexpr auto MPIndicatorConstraint::InternalNewImpl_() {
2755 return ::google::protobuf::internal::MessageCreator::ZeroInit(
sizeof(MPIndicatorConstraint),
2756 alignof(MPIndicatorConstraint));
2759 return ::google::protobuf::internal::ClassDataFull{
2760 ::google::protobuf::internal::ClassData{
2765 &MPIndicatorConstraint::MergeImpl,
2766 ::google::protobuf::Message::GetNewImpl<MPIndicatorConstraint>(),
2767#if defined(PROTOBUF_CUSTOM_VTABLE)
2768 &MPIndicatorConstraint::SharedDtor,
2775 &MPIndicatorConstraint::kDescriptorMethods,
2781PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
2785PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
2786MPIndicatorConstraint::GetClassData()
const {
2791PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
2792const ::_pbi::TcParseTable<2, 3, 1, 0, 2>
2793MPIndicatorConstraint::_table_ = {
2795 PROTOBUF_FIELD_OFFSET(MPIndicatorConstraint,
_impl_._has_bits_),
2798 offsetof(
decltype(_table_), field_lookup_table),
2800 offsetof(
decltype(_table_), field_entries),
2803 offsetof(
decltype(_table_), aux_entries),
2806 ::_pbi::TcParser::GenericFallback,
2807 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
2808 ::_pbi::TcParser::GetTable<::operations_research::MPIndicatorConstraint>(),
2811 {::_pbi::TcParser::MiniParse, {}},
2813 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MPIndicatorConstraint,
_impl_.var_index_), 1>(),
2815 PROTOBUF_FIELD_OFFSET(MPIndicatorConstraint,
_impl_.var_index_)}},
2817 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MPIndicatorConstraint,
_impl_.var_value_), 2>(),
2819 PROTOBUF_FIELD_OFFSET(MPIndicatorConstraint,
_impl_.var_value_)}},
2821 {::_pbi::TcParser::FastMtS1,
2823 PROTOBUF_FIELD_OFFSET(MPIndicatorConstraint,
_impl_.constraint_)}},
2832 {PROTOBUF_FIELD_OFFSET(MPIndicatorConstraint,
_impl_.constraint_),
_Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
2835 {::_pbi::TcParser::GetTable<::operations_research::MPConstraintProto>()},
2842 ::google::protobuf::internal::TSanWrite(&
_impl_);
2843 ::uint32_t cached_has_bits = 0;
2845 (void) cached_has_bits;
2847 cached_has_bits =
_impl_._has_bits_[0];
2848 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
2849 ABSL_DCHECK(
_impl_.constraint_ !=
nullptr);
2850 _impl_.constraint_->Clear();
2852 if (BatchCheckHasBit(cached_has_bits, 0x00000006U)) {
2853 ::memset(&
_impl_.var_index_, 0,
static_cast<::
size_t>(
2854 reinterpret_cast<char*
>(&
_impl_.var_value_) -
2855 reinterpret_cast<char*
>(&
_impl_.var_index_)) +
sizeof(
_impl_.var_value_));
2857 _impl_._has_bits_.Clear();
2858 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
2861#if defined(PROTOBUF_CUSTOM_VTABLE)
2863 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
2864 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
2865 const MPIndicatorConstraint& this_ =
static_cast<const MPIndicatorConstraint&
>(base);
2868 ::uint8_t* PROTOBUF_NONNULL target,
2869 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
2870 const MPIndicatorConstraint& this_ = *
this;
2872 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2873 this_.CheckHasBitConsistency();
2876 ::uint32_t cached_has_bits = 0;
2877 (void)cached_has_bits;
2879 cached_has_bits = this_._impl_._has_bits_[0];
2881 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
2883 ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>(
2884 stream, this_._internal_var_index(), target);
2888 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
2890 ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>(
2891 stream, this_._internal_var_value(), target);
2895 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
2896 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2897 3, *this_._impl_.constraint_, this_._impl_.constraint_->GetCachedSize(), target,
2901 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
2903 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2904 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
2910#if defined(PROTOBUF_CUSTOM_VTABLE)
2912 const MPIndicatorConstraint& this_ =
static_cast<const MPIndicatorConstraint&
>(base);
2915 const MPIndicatorConstraint& this_ = *
this;
2918 ::size_t total_size = 0;
2920 ::uint32_t cached_has_bits = 0;
2922 (void)cached_has_bits;
2924 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
2925 cached_has_bits = this_._impl_._has_bits_[0];
2926 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
2928 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
2930 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.constraint_);
2933 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
2934 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
2935 this_._internal_var_index());
2938 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
2939 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
2940 this_._internal_var_value());
2943 return this_.MaybeComputeUnknownFieldsSize(total_size,
2944 &this_._impl_._cached_size_);
2947void MPIndicatorConstraint::MergeImpl(::google::protobuf::MessageLite& to_msg,
2948 const ::google::protobuf::MessageLite& from_msg) {
2950 static_cast<MPIndicatorConstraint*
>(&to_msg);
2951 auto& from =
static_cast<const MPIndicatorConstraint&
>(from_msg);
2952 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2953 from.CheckHasBitConsistency();
2957 ABSL_DCHECK_NE(&from, _this);
2958 ::uint32_t cached_has_bits = 0;
2959 (void)cached_has_bits;
2961 cached_has_bits = from._impl_._has_bits_[0];
2962 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
2963 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
2964 ABSL_DCHECK(from._impl_.constraint_ !=
nullptr);
2965 if (_this->_impl_.constraint_ ==
nullptr) {
2966 _this->_impl_.constraint_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.constraint_);
2968 _this->_impl_.constraint_->MergeFrom(*from._impl_.constraint_);
2971 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
2972 _this->_impl_.var_index_ = from._impl_.var_index_;
2974 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
2975 _this->_impl_.var_value_ = from._impl_.var_value_;
2978 _this->_impl_._has_bits_[0] |= cached_has_bits;
2979 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
2980 from._internal_metadata_);
2985 if (&from ==
this)
return;
2991void MPIndicatorConstraint::InternalSwap(
MPIndicatorConstraint* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
2993 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2994 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2995 ::google::protobuf::internal::memswap<
2999 reinterpret_cast<char*
>(&
_impl_.constraint_),
3000 reinterpret_cast<char*
>(&other->_impl_.constraint_));
3004 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
3011 decltype(::std::declval<MPSosConstraint>()._impl_._has_bits_);
3012 static constexpr ::int32_t kHasBitsOffset =
3017#if defined(PROTOBUF_CUSTOM_VTABLE)
3020 : ::google::protobuf::Message(arena) {
3025PROTOBUF_NDEBUG_INLINE MPSosConstraint::Impl_::Impl_(
3026 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
3027 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
3028 [[maybe_unused]] const ::operations_research::MPSosConstraint& from_msg)
3029 : _has_bits_{from._has_bits_},
3031 var_index_{visibility, arena, from.var_index_},
3032 weight_{visibility, arena, from.weight_} {}
3035 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
3037#if defined(PROTOBUF_CUSTOM_VTABLE)
3040 : ::google::protobuf::Message(arena) {
3044 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
3045 from._internal_metadata_);
3046 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
3047 _impl_.type_ = from._impl_.type_;
3051PROTOBUF_NDEBUG_INLINE MPSosConstraint::Impl_::Impl_(
3052 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
3053 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
3055 var_index_{visibility, arena},
3056 weight_{visibility, arena} {}
3058inline void MPSosConstraint::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
3059 new (&
_impl_) Impl_(internal_visibility(), arena);
3066inline void MPSosConstraint::SharedDtor(
MessageLite& self) {
3068 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
3069 this_.CheckHasBitConsistency();
3071 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
3072 ABSL_DCHECK(this_.GetArena() ==
nullptr);
3076inline void* PROTOBUF_NONNULL MPSosConstraint::PlacementNew_(
3077 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
3078 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
3079 return ::new (mem) MPSosConstraint(arena);
3081constexpr auto MPSosConstraint::InternalNewImpl_() {
3082 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
3083 PROTOBUF_FIELD_OFFSET(MPSosConstraint,
_impl_.var_index_) +
3085 InternalGetArenaOffset(
3086 ::google::protobuf::Message::internal_visibility()),
3087 PROTOBUF_FIELD_OFFSET(MPSosConstraint,
_impl_.weight_) +
3088 decltype(MPSosConstraint::
_impl_.weight_)::
3089 InternalGetArenaOffset(
3090 ::google::protobuf::Message::internal_visibility()),
3092 if (arena_bits.has_value()) {
3093 return ::google::protobuf::internal::MessageCreator::ZeroInit(
3094 sizeof(MPSosConstraint), alignof(MPSosConstraint), *arena_bits);
3096 return ::google::protobuf::internal::MessageCreator(&MPSosConstraint::PlacementNew_,
3097 sizeof(MPSosConstraint),
3098 alignof(MPSosConstraint));
3102 return ::google::protobuf::internal::ClassDataFull{
3103 ::google::protobuf::internal::ClassData{
3108 &MPSosConstraint::MergeImpl,
3109 ::google::protobuf::Message::GetNewImpl<MPSosConstraint>(),
3110#if defined(PROTOBUF_CUSTOM_VTABLE)
3111 &MPSosConstraint::SharedDtor,
3118 &MPSosConstraint::kDescriptorMethods,
3124PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
3128PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
3129MPSosConstraint::GetClassData()
const {
3134PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
3135const ::_pbi::TcParseTable<2, 3, 1, 0, 2>
3136MPSosConstraint::_table_ = {
3138 PROTOBUF_FIELD_OFFSET(MPSosConstraint,
_impl_._has_bits_),
3141 offsetof(
decltype(_table_), field_lookup_table),
3143 offsetof(
decltype(_table_), field_entries),
3146 offsetof(
decltype(_table_), aux_entries),
3149 ::_pbi::TcParser::GenericFallback,
3150 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
3151 ::_pbi::TcParser::GetTable<::operations_research::MPSosConstraint>(),
3154 {::_pbi::TcParser::MiniParse, {}},
3156 {::_pbi::TcParser::FastEr0S1,
3158 PROTOBUF_FIELD_OFFSET(MPSosConstraint,
_impl_.type_)}},
3160 {::_pbi::TcParser::FastV32R1,
3162 PROTOBUF_FIELD_OFFSET(MPSosConstraint,
_impl_.var_index_)}},
3164 {::_pbi::TcParser::FastF64R1,
3166 PROTOBUF_FIELD_OFFSET(MPSosConstraint,
_impl_.weight_)}},
3185 ::google::protobuf::internal::TSanWrite(&
_impl_);
3186 ::uint32_t cached_has_bits = 0;
3188 (void) cached_has_bits;
3190 cached_has_bits =
_impl_._has_bits_[0];
3191 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
3192 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
3193 _impl_.var_index_.Clear();
3195 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
3200 _impl_._has_bits_.Clear();
3201 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
3204#if defined(PROTOBUF_CUSTOM_VTABLE)
3206 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
3207 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
3208 const MPSosConstraint& this_ =
static_cast<const MPSosConstraint&
>(base);
3211 ::uint8_t* PROTOBUF_NONNULL target,
3212 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
3213 const MPSosConstraint& this_ = *
this;
3215 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
3216 this_.CheckHasBitConsistency();
3219 ::uint32_t cached_has_bits = 0;
3220 (void)cached_has_bits;
3222 cached_has_bits = this_.
_impl_._has_bits_[0];
3224 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
3225 target = stream->EnsureSpace(target);
3226 target = ::_pbi::WireFormatLite::WriteEnumToArray(
3227 1, this_._internal_type(), target);
3231 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
3232 for (
int i = 0, n = this_._internal_var_index_size(); i < n; ++i) {
3233 target = stream->EnsureSpace(target);
3234 target = ::_pbi::WireFormatLite::WriteInt32ToArray(
3235 2, this_._internal_var_index().Get(i), target);
3240 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
3241 for (
int i = 0, n = this_._internal_weight_size(); i < n; ++i) {
3242 target = stream->EnsureSpace(target);
3243 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
3244 3, this_._internal_weight().Get(i), target);
3248 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
3250 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
3251 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
3257#if defined(PROTOBUF_CUSTOM_VTABLE)
3259 const MPSosConstraint& this_ =
static_cast<const MPSosConstraint&
>(base);
3262 const MPSosConstraint& this_ = *
this;
3265 ::size_t total_size = 0;
3267 ::uint32_t cached_has_bits = 0;
3269 (void)cached_has_bits;
3271 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
3272 cached_has_bits = this_._impl_._has_bits_[0];
3273 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
3275 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
3276 ::size_t data_size = ::_pbi::WireFormatLite::Int32Size(
3277 this_._internal_var_index());
3278 ::size_t tag_size = ::size_t{1} *
3279 ::_pbi::FromIntSize(this_._internal_var_index_size());
3280 total_size += tag_size + data_size;
3283 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
3284 ::size_t data_size = ::size_t{8} *
3285 ::_pbi::FromIntSize(this_._internal_weight_size());
3286 ::size_t tag_size = ::size_t{1} *
3287 ::_pbi::FromIntSize(this_._internal_weight_size());
3288 total_size += tag_size + data_size;
3291 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
3293 ::_pbi::WireFormatLite::EnumSize(this_._internal_type());
3296 return this_.MaybeComputeUnknownFieldsSize(total_size,
3297 &this_._impl_._cached_size_);
3300void MPSosConstraint::MergeImpl(::google::protobuf::MessageLite& to_msg,
3301 const ::google::protobuf::MessageLite& from_msg) {
3303 static_cast<MPSosConstraint*
>(&to_msg);
3304 auto& from =
static_cast<const MPSosConstraint&
>(from_msg);
3305 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
3306 from.CheckHasBitConsistency();
3309 ABSL_DCHECK_NE(&from, _this);
3310 ::uint32_t cached_has_bits = 0;
3311 (void)cached_has_bits;
3313 cached_has_bits = from._impl_._has_bits_[0];
3314 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
3315 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
3316 _this->_internal_mutable_var_index()->MergeFrom(from._internal_var_index());
3318 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
3319 _this->_internal_mutable_weight()->MergeFrom(from._internal_weight());
3321 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
3322 _this->_impl_.type_ = from._impl_.type_;
3325 _this->_impl_._has_bits_[0] |= cached_has_bits;
3326 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
3327 from._internal_metadata_);
3332 if (&from ==
this)
return;
3338void MPSosConstraint::InternalSwap(
MPSosConstraint* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
3340 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
3341 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
3342 _impl_.var_index_.InternalSwap(&other->_impl_.var_index_);
3343 _impl_.weight_.InternalSwap(&other->_impl_.weight_);
3348 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
3355 decltype(::std::declval<MPQuadraticConstraint>()._impl_._has_bits_);
3356 static constexpr ::int32_t kHasBitsOffset =
3361#if defined(PROTOBUF_CUSTOM_VTABLE)
3364 : ::google::protobuf::Message(arena) {
3369PROTOBUF_NDEBUG_INLINE MPQuadraticConstraint::Impl_::Impl_(
3370 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
3371 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
3372 [[maybe_unused]] const ::operations_research::MPQuadraticConstraint& from_msg)
3373 : _has_bits_{from._has_bits_},
3375 var_index_{visibility, arena, from.var_index_},
3376 coefficient_{visibility, arena, from.coefficient_},
3377 qvar1_index_{visibility, arena, from.qvar1_index_},
3378 qvar2_index_{visibility, arena, from.qvar2_index_},
3379 qcoefficient_{visibility, arena, from.qcoefficient_} {}
3382 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
3384#if defined(PROTOBUF_CUSTOM_VTABLE)
3387 : ::google::protobuf::Message(arena) {
3391 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
3392 from._internal_metadata_);
3393 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
3394 ::memcpy(
reinterpret_cast<char*
>(&
_impl_) +
3395 offsetof(Impl_, lower_bound_),
3396 reinterpret_cast<const char*
>(&from._impl_) +
3397 offsetof(Impl_, lower_bound_),
3398 offsetof(Impl_, upper_bound_) -
3399 offsetof(Impl_, lower_bound_) +
3400 sizeof(Impl_::upper_bound_));
3404PROTOBUF_NDEBUG_INLINE MPQuadraticConstraint::Impl_::Impl_(
3405 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
3406 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
3408 var_index_{visibility, arena},
3409 coefficient_{visibility, arena},
3410 qvar1_index_{visibility, arena},
3411 qvar2_index_{visibility, arena},
3412 qcoefficient_{visibility, arena},
3413 lower_bound_{-std::numeric_limits<double>::infinity()},
3414 upper_bound_{std::numeric_limits<double>::infinity()} {}
3416inline void MPQuadraticConstraint::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
3417 new (&
_impl_) Impl_(internal_visibility(), arena);
3423inline void MPQuadraticConstraint::SharedDtor(
MessageLite& self) {
3425 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
3426 this_.CheckHasBitConsistency();
3428 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
3429 ABSL_DCHECK(this_.GetArena() ==
nullptr);
3433inline void* PROTOBUF_NONNULL MPQuadraticConstraint::PlacementNew_(
3434 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
3435 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
3436 return ::new (mem) MPQuadraticConstraint(arena);
3438constexpr auto MPQuadraticConstraint::InternalNewImpl_() {
3439 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
3440 PROTOBUF_FIELD_OFFSET(MPQuadraticConstraint,
_impl_.var_index_) +
3442 InternalGetArenaOffset(
3443 ::google::protobuf::Message::internal_visibility()),
3444 PROTOBUF_FIELD_OFFSET(MPQuadraticConstraint,
_impl_.coefficient_) +
3445 decltype(MPQuadraticConstraint::
_impl_.coefficient_)::
3446 InternalGetArenaOffset(
3447 ::google::protobuf::Message::internal_visibility()),
3448 PROTOBUF_FIELD_OFFSET(MPQuadraticConstraint,
_impl_.qvar1_index_) +
3449 decltype(MPQuadraticConstraint::
_impl_.qvar1_index_)::
3450 InternalGetArenaOffset(
3451 ::google::protobuf::Message::internal_visibility()),
3452 PROTOBUF_FIELD_OFFSET(MPQuadraticConstraint,
_impl_.qvar2_index_) +
3453 decltype(MPQuadraticConstraint::
_impl_.qvar2_index_)::
3454 InternalGetArenaOffset(
3455 ::google::protobuf::Message::internal_visibility()),
3456 PROTOBUF_FIELD_OFFSET(MPQuadraticConstraint,
_impl_.qcoefficient_) +
3457 decltype(MPQuadraticConstraint::
_impl_.qcoefficient_)::
3458 InternalGetArenaOffset(
3459 ::google::protobuf::Message::internal_visibility()),
3461 if (arena_bits.has_value()) {
3462 return ::google::protobuf::internal::MessageCreator::CopyInit(
3463 sizeof(MPQuadraticConstraint), alignof(MPQuadraticConstraint), *arena_bits);
3465 return ::google::protobuf::internal::MessageCreator(&MPQuadraticConstraint::PlacementNew_,
3466 sizeof(MPQuadraticConstraint),
3467 alignof(MPQuadraticConstraint));
3471 return ::google::protobuf::internal::ClassDataFull{
3472 ::google::protobuf::internal::ClassData{
3477 &MPQuadraticConstraint::MergeImpl,
3478 ::google::protobuf::Message::GetNewImpl<MPQuadraticConstraint>(),
3479#if defined(PROTOBUF_CUSTOM_VTABLE)
3480 &MPQuadraticConstraint::SharedDtor,
3487 &MPQuadraticConstraint::kDescriptorMethods,
3493PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
3497PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
3498MPQuadraticConstraint::GetClassData()
const {
3503PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
3504const ::_pbi::TcParseTable<3, 7, 0, 0, 2>
3505MPQuadraticConstraint::_table_ = {
3507 PROTOBUF_FIELD_OFFSET(MPQuadraticConstraint,
_impl_._has_bits_),
3510 offsetof(
decltype(_table_), field_lookup_table),
3512 offsetof(
decltype(_table_), field_entries),
3515 offsetof(
decltype(_table_), field_names),
3518 ::_pbi::TcParser::GenericFallback,
3519 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
3520 ::_pbi::TcParser::GetTable<::operations_research::MPQuadraticConstraint>(),
3523 {::_pbi::TcParser::MiniParse, {}},
3525 {::_pbi::TcParser::FastV32R1,
3527 PROTOBUF_FIELD_OFFSET(MPQuadraticConstraint,
_impl_.var_index_)}},
3529 {::_pbi::TcParser::FastF64R1,
3531 PROTOBUF_FIELD_OFFSET(MPQuadraticConstraint,
_impl_.coefficient_)}},
3533 {::_pbi::TcParser::FastV32R1,
3535 PROTOBUF_FIELD_OFFSET(MPQuadraticConstraint,
_impl_.qvar1_index_)}},
3537 {::_pbi::TcParser::FastV32R1,
3539 PROTOBUF_FIELD_OFFSET(MPQuadraticConstraint,
_impl_.qvar2_index_)}},
3541 {::_pbi::TcParser::FastF64R1,
3543 PROTOBUF_FIELD_OFFSET(MPQuadraticConstraint,
_impl_.qcoefficient_)}},
3545 {::_pbi::TcParser::FastF64S1,
3547 PROTOBUF_FIELD_OFFSET(MPQuadraticConstraint,
_impl_.lower_bound_)}},
3549 {::_pbi::TcParser::FastF64S1,
3551 PROTOBUF_FIELD_OFFSET(MPQuadraticConstraint,
_impl_.upper_bound_)}},
3576 ::google::protobuf::internal::TSanWrite(&
_impl_);
3577 ::uint32_t cached_has_bits = 0;
3579 (void) cached_has_bits;
3581 cached_has_bits =
_impl_._has_bits_[0];
3582 if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) {
3583 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
3584 _impl_.var_index_.Clear();
3586 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
3587 _impl_.coefficient_.Clear();
3589 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
3590 _impl_.qvar1_index_.Clear();
3592 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
3593 _impl_.qvar2_index_.Clear();
3595 if (CheckHasBitForRepeated(cached_has_bits, 0x00000010U)) {
3596 _impl_.qcoefficient_.Clear();
3598 _impl_.lower_bound_ = -std::numeric_limits<double>::infinity();
3599 _impl_.upper_bound_ = std::numeric_limits<double>::infinity();
3601 _impl_._has_bits_.Clear();
3602 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
3605#if defined(PROTOBUF_CUSTOM_VTABLE)
3607 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
3608 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
3609 const MPQuadraticConstraint& this_ =
static_cast<const MPQuadraticConstraint&
>(base);
3612 ::uint8_t* PROTOBUF_NONNULL target,
3613 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
3614 const MPQuadraticConstraint& this_ = *
this;
3616 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
3617 this_.CheckHasBitConsistency();
3620 ::uint32_t cached_has_bits = 0;
3621 (void)cached_has_bits;
3623 cached_has_bits = this_.
_impl_._has_bits_[0];
3625 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
3626 for (
int i = 0, n = this_._internal_var_index_size(); i < n; ++i) {
3627 target = stream->EnsureSpace(target);
3628 target = ::_pbi::WireFormatLite::WriteInt32ToArray(
3629 1, this_._internal_var_index().Get(i), target);
3634 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
3635 for (
int i = 0, n = this_._internal_coefficient_size(); i < n; ++i) {
3636 target = stream->EnsureSpace(target);
3637 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
3638 2, this_._internal_coefficient().Get(i), target);
3643 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
3644 for (
int i = 0, n = this_._internal_qvar1_index_size(); i < n; ++i) {
3645 target = stream->EnsureSpace(target);
3646 target = ::_pbi::WireFormatLite::WriteInt32ToArray(
3647 3, this_._internal_qvar1_index().Get(i), target);
3652 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
3653 for (
int i = 0, n = this_._internal_qvar2_index_size(); i < n; ++i) {
3654 target = stream->EnsureSpace(target);
3655 target = ::_pbi::WireFormatLite::WriteInt32ToArray(
3656 4, this_._internal_qvar2_index().Get(i), target);
3661 if (CheckHasBitForRepeated(cached_has_bits, 0x00000010U)) {
3662 for (
int i = 0, n = this_._internal_qcoefficient_size(); i < n; ++i) {
3663 target = stream->EnsureSpace(target);
3664 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
3665 5, this_._internal_qcoefficient().Get(i), target);
3670 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
3671 target = stream->EnsureSpace(target);
3672 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
3673 6, this_._internal_lower_bound(), target);
3677 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
3678 target = stream->EnsureSpace(target);
3679 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
3680 7, this_._internal_upper_bound(), target);
3683 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
3685 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
3686 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
3692#if defined(PROTOBUF_CUSTOM_VTABLE)
3694 const MPQuadraticConstraint& this_ =
static_cast<const MPQuadraticConstraint&
>(base);
3697 const MPQuadraticConstraint& this_ = *
this;
3700 ::size_t total_size = 0;
3702 ::uint32_t cached_has_bits = 0;
3704 (void)cached_has_bits;
3706 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
3707 cached_has_bits = this_._impl_._has_bits_[0];
3708 total_size += ::absl::popcount(0x00000060U & cached_has_bits) * 9;
3709 if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
3711 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
3712 ::size_t data_size = ::_pbi::WireFormatLite::Int32Size(
3713 this_._internal_var_index());
3714 ::size_t tag_size = ::size_t{1} *
3715 ::_pbi::FromIntSize(this_._internal_var_index_size());
3716 total_size += tag_size + data_size;
3719 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
3720 ::size_t data_size = ::size_t{8} *
3721 ::_pbi::FromIntSize(this_._internal_coefficient_size());
3722 ::size_t tag_size = ::size_t{1} *
3723 ::_pbi::FromIntSize(this_._internal_coefficient_size());
3724 total_size += tag_size + data_size;
3727 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
3728 ::size_t data_size = ::_pbi::WireFormatLite::Int32Size(
3729 this_._internal_qvar1_index());
3730 ::size_t tag_size = ::size_t{1} *
3731 ::_pbi::FromIntSize(this_._internal_qvar1_index_size());
3732 total_size += tag_size + data_size;
3735 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
3736 ::size_t data_size = ::_pbi::WireFormatLite::Int32Size(
3737 this_._internal_qvar2_index());
3738 ::size_t tag_size = ::size_t{1} *
3739 ::_pbi::FromIntSize(this_._internal_qvar2_index_size());
3740 total_size += tag_size + data_size;
3743 if (CheckHasBitForRepeated(cached_has_bits, 0x00000010U)) {
3744 ::size_t data_size = ::size_t{8} *
3745 ::_pbi::FromIntSize(this_._internal_qcoefficient_size());
3746 ::size_t tag_size = ::size_t{1} *
3747 ::_pbi::FromIntSize(this_._internal_qcoefficient_size());
3748 total_size += tag_size + data_size;
3751 return this_.MaybeComputeUnknownFieldsSize(total_size,
3752 &this_._impl_._cached_size_);
3755void MPQuadraticConstraint::MergeImpl(::google::protobuf::MessageLite& to_msg,
3756 const ::google::protobuf::MessageLite& from_msg) {
3758 static_cast<MPQuadraticConstraint*
>(&to_msg);
3759 auto& from =
static_cast<const MPQuadraticConstraint&
>(from_msg);
3760 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
3761 from.CheckHasBitConsistency();
3764 ABSL_DCHECK_NE(&from, _this);
3765 ::uint32_t cached_has_bits = 0;
3766 (void)cached_has_bits;
3768 cached_has_bits = from._impl_._has_bits_[0];
3769 if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) {
3770 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
3771 _this->_internal_mutable_var_index()->MergeFrom(from._internal_var_index());
3773 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
3774 _this->_internal_mutable_coefficient()->MergeFrom(from._internal_coefficient());
3776 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
3777 _this->_internal_mutable_qvar1_index()->MergeFrom(from._internal_qvar1_index());
3779 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
3780 _this->_internal_mutable_qvar2_index()->MergeFrom(from._internal_qvar2_index());
3782 if (CheckHasBitForRepeated(cached_has_bits, 0x00000010U)) {
3783 _this->_internal_mutable_qcoefficient()->MergeFrom(from._internal_qcoefficient());
3785 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
3786 _this->_impl_.lower_bound_ = from._impl_.lower_bound_;
3788 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
3789 _this->_impl_.upper_bound_ = from._impl_.upper_bound_;
3792 _this->_impl_._has_bits_[0] |= cached_has_bits;
3793 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
3794 from._internal_metadata_);
3799 if (&from ==
this)
return;
3805void MPQuadraticConstraint::InternalSwap(
MPQuadraticConstraint* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
3807 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
3808 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
3809 _impl_.var_index_.InternalSwap(&other->_impl_.var_index_);
3810 _impl_.coefficient_.InternalSwap(&other->_impl_.coefficient_);
3811 _impl_.qvar1_index_.InternalSwap(&other->_impl_.qvar1_index_);
3812 _impl_.qvar2_index_.InternalSwap(&other->_impl_.qvar2_index_);
3813 _impl_.qcoefficient_.InternalSwap(&other->_impl_.qcoefficient_);
3814 ::google::protobuf::internal::memswap<
3818 reinterpret_cast<char*
>(&
_impl_.lower_bound_),
3819 reinterpret_cast<char*
>(&other->_impl_.lower_bound_));
3823 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
3827class MPAbsConstraint::_Internal {
3830 decltype(::std::declval<MPAbsConstraint>()._impl_._has_bits_);
3831 static constexpr ::int32_t kHasBitsOffset =
3836#if defined(PROTOBUF_CUSTOM_VTABLE)
3839 : ::google::protobuf::Message(arena) {
3845 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const MPAbsConstraint& from)
3846#if defined(PROTOBUF_CUSTOM_VTABLE)
3849 : ::google::protobuf::Message(arena),
3852 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
3853 from._internal_metadata_);
3855PROTOBUF_NDEBUG_INLINE MPAbsConstraint::Impl_::Impl_(
3856 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
3857 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
3858 : _cached_size_{0} {}
3860inline void MPAbsConstraint::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
3861 new (&
_impl_) Impl_(internal_visibility(), arena);
3862 ::memset(
reinterpret_cast<char*
>(&
_impl_) +
3863 offsetof(Impl_, var_index_),
3865 offsetof(Impl_, resultant_var_index_) -
3866 offsetof(Impl_, var_index_) +
3867 sizeof(Impl_::resultant_var_index_));
3873inline void MPAbsConstraint::SharedDtor(
MessageLite& self) {
3875 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
3876 this_.CheckHasBitConsistency();
3878 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
3879 ABSL_DCHECK(this_.GetArena() ==
nullptr);
3880 this_._impl_.~Impl_();
3883inline void* PROTOBUF_NONNULL MPAbsConstraint::PlacementNew_(
3884 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
3885 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
3888constexpr auto MPAbsConstraint::InternalNewImpl_() {
3889 return ::google::protobuf::internal::MessageCreator::ZeroInit(
sizeof(
MPAbsConstraint),
3893 return ::google::protobuf::internal::ClassDataFull{
3894 ::google::protobuf::internal::ClassData{
3899 &MPAbsConstraint::MergeImpl,
3900 ::google::protobuf::Message::GetNewImpl<MPAbsConstraint>(),
3901#if defined(PROTOBUF_CUSTOM_VTABLE)
3902 &MPAbsConstraint::SharedDtor,
3909 &MPAbsConstraint::kDescriptorMethods,
3915PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
3919PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
3920MPAbsConstraint::GetClassData()
const {
3925PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
3926const ::_pbi::TcParseTable<1, 2, 0, 0, 2>
3927MPAbsConstraint::_table_ = {
3932 offsetof(
decltype(_table_), field_lookup_table),
3934 offsetof(
decltype(_table_), field_entries),
3937 offsetof(
decltype(_table_), field_names),
3940 ::_pbi::TcParser::GenericFallback,
3941 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
3942 ::_pbi::TcParser::GetTable<::operations_research::MPAbsConstraint>(),
3946 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(
MPAbsConstraint,
_impl_.resultant_var_index_), 1>(),
3950 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(
MPAbsConstraint,
_impl_.var_index_), 0>(),
3967 ::google::protobuf::internal::TSanWrite(&
_impl_);
3968 ::uint32_t cached_has_bits = 0;
3970 (void) cached_has_bits;
3973 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
3974 ::memset(&
_impl_.var_index_, 0,
static_cast<::
size_t>(
3975 reinterpret_cast<char*
>(&
_impl_.resultant_var_index_) -
3976 reinterpret_cast<char*
>(&
_impl_.var_index_)) +
sizeof(
_impl_.resultant_var_index_));
3978 _impl_._has_bits_.Clear();
3979 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
3982#if defined(PROTOBUF_CUSTOM_VTABLE)
3984 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
3985 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
3989 ::uint8_t* PROTOBUF_NONNULL target,
3990 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
3993 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
3994 this_.CheckHasBitConsistency();
3997 ::uint32_t cached_has_bits = 0;
3998 (void)cached_has_bits;
4000 cached_has_bits = this_._impl_._has_bits_[0];
4002 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
4004 ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>(
4005 stream, this_._internal_var_index(), target);
4009 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
4011 ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>(
4012 stream, this_._internal_resultant_var_index(), target);
4015 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
4017 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
4018 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
4024#if defined(PROTOBUF_CUSTOM_VTABLE)
4032 ::size_t total_size = 0;
4034 ::uint32_t cached_has_bits = 0;
4036 (void)cached_has_bits;
4038 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
4039 cached_has_bits = this_._impl_._has_bits_[0];
4040 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
4042 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
4043 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
4044 this_._internal_var_index());
4047 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
4048 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
4049 this_._internal_resultant_var_index());
4052 return this_.MaybeComputeUnknownFieldsSize(total_size,
4053 &this_._impl_._cached_size_);
4056void MPAbsConstraint::MergeImpl(::google::protobuf::MessageLite& to_msg,
4057 const ::google::protobuf::MessageLite& from_msg) {
4061 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
4062 from.CheckHasBitConsistency();
4065 ABSL_DCHECK_NE(&from, _this);
4066 ::uint32_t cached_has_bits = 0;
4067 (void)cached_has_bits;
4069 cached_has_bits = from.
_impl_._has_bits_[0];
4070 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
4071 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
4072 _this->_impl_.var_index_ = from.
_impl_.var_index_;
4074 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
4075 _this->_impl_.resultant_var_index_ = from.
_impl_.resultant_var_index_;
4078 _this->_impl_._has_bits_[0] |= cached_has_bits;
4079 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
4080 from._internal_metadata_);
4085 if (&from ==
this)
return;
4091void MPAbsConstraint::InternalSwap(
MPAbsConstraint* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
4093 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
4094 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
4095 ::google::protobuf::internal::memswap<
4099 reinterpret_cast<char*
>(&
_impl_.var_index_),
4100 reinterpret_cast<char*
>(&other->_impl_.var_index_));
4104 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
4108class MPArrayConstraint::_Internal {
4111 decltype(::std::declval<MPArrayConstraint>()._impl_._has_bits_);
4112 static constexpr ::int32_t kHasBitsOffset =
4117#if defined(PROTOBUF_CUSTOM_VTABLE)
4120 : ::google::protobuf::Message(arena) {
4125PROTOBUF_NDEBUG_INLINE MPArrayConstraint::Impl_::Impl_(
4126 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
4127 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
4128 [[maybe_unused]] const ::operations_research::MPArrayConstraint& from_msg)
4129 : _has_bits_{from._has_bits_},
4131 var_index_{visibility, arena, from.var_index_} {}
4134 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
4136#if defined(PROTOBUF_CUSTOM_VTABLE)
4139 : ::google::protobuf::Message(arena) {
4143 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
4144 from._internal_metadata_);
4145 new (&
_impl_) Impl_(internal_visibility(), arena, from.
_impl_, from);
4146 _impl_.resultant_var_index_ = from.
_impl_.resultant_var_index_;
4150PROTOBUF_NDEBUG_INLINE MPArrayConstraint::Impl_::Impl_(
4151 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
4152 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
4154 var_index_{visibility, arena} {}
4156inline void MPArrayConstraint::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
4157 new (&
_impl_) Impl_(internal_visibility(), arena);
4158 _impl_.resultant_var_index_ = {};
4164inline void MPArrayConstraint::SharedDtor(
MessageLite& self) {
4166 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
4167 this_.CheckHasBitConsistency();
4169 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
4170 ABSL_DCHECK(this_.GetArena() ==
nullptr);
4171 this_._impl_.~Impl_();
4174inline void* PROTOBUF_NONNULL MPArrayConstraint::PlacementNew_(
4175 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
4176 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
4179constexpr auto MPArrayConstraint::InternalNewImpl_() {
4180 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
4183 InternalGetArenaOffset(
4184 ::google::protobuf::Message::internal_visibility()),
4186 if (arena_bits.has_value()) {
4187 return ::google::protobuf::internal::MessageCreator::ZeroInit(
4188 sizeof(MPArrayConstraint), alignof(MPArrayConstraint), *arena_bits);
4190 return ::google::protobuf::internal::MessageCreator(&MPArrayConstraint::PlacementNew_,
4191 sizeof(MPArrayConstraint),
4192 alignof(MPArrayConstraint));
4196 return ::google::protobuf::internal::ClassDataFull{
4197 ::google::protobuf::internal::ClassData{
4202 &MPArrayConstraint::MergeImpl,
4203 ::google::protobuf::Message::GetNewImpl<MPArrayConstraint>(),
4204#if defined(PROTOBUF_CUSTOM_VTABLE)
4205 &MPArrayConstraint::SharedDtor,
4212 &MPArrayConstraint::kDescriptorMethods,
4218PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
4222PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
4223MPArrayConstraint::GetClassData()
const {
4228PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
4229const ::_pbi::TcParseTable<1, 2, 0, 0, 2>
4230MPArrayConstraint::_table_ = {
4235 offsetof(
decltype(_table_), field_lookup_table),
4237 offsetof(
decltype(_table_), field_entries),
4240 offsetof(
decltype(_table_), field_names),
4243 ::_pbi::TcParser::GenericFallback,
4244 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
4245 ::_pbi::TcParser::GetTable<::operations_research::MPArrayConstraint>(),
4249 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(
MPArrayConstraint,
_impl_.resultant_var_index_), 1>(),
4253 {::_pbi::TcParser::FastV32R1,
4270 ::google::protobuf::internal::TSanWrite(&
_impl_);
4271 ::uint32_t cached_has_bits = 0;
4273 (void) cached_has_bits;
4275 cached_has_bits =
_impl_._has_bits_[0];
4276 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
4277 _impl_.var_index_.Clear();
4279 _impl_.resultant_var_index_ = 0;
4280 _impl_._has_bits_.Clear();
4281 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
4284#if defined(PROTOBUF_CUSTOM_VTABLE)
4286 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
4287 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
4291 ::uint8_t* PROTOBUF_NONNULL target,
4292 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
4295 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
4296 this_.CheckHasBitConsistency();
4299 ::uint32_t cached_has_bits = 0;
4300 (void)cached_has_bits;
4302 cached_has_bits = this_._impl_._has_bits_[0];
4304 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
4305 for (
int i = 0, n = this_._internal_var_index_size(); i < n; ++i) {
4306 target = stream->EnsureSpace(target);
4307 target = ::_pbi::WireFormatLite::WriteInt32ToArray(
4308 1, this_._internal_var_index().Get(i), target);
4313 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
4315 ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>(
4316 stream, this_._internal_resultant_var_index(), target);
4319 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
4321 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
4322 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
4328#if defined(PROTOBUF_CUSTOM_VTABLE)
4336 ::size_t total_size = 0;
4338 ::uint32_t cached_has_bits = 0;
4340 (void)cached_has_bits;
4342 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
4343 cached_has_bits = this_._impl_._has_bits_[0];
4344 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
4346 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
4347 ::size_t data_size = ::_pbi::WireFormatLite::Int32Size(
4348 this_._internal_var_index());
4349 ::size_t tag_size = ::size_t{1} *
4350 ::_pbi::FromIntSize(this_._internal_var_index_size());
4351 total_size += tag_size + data_size;
4354 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
4355 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
4356 this_._internal_resultant_var_index());
4359 return this_.MaybeComputeUnknownFieldsSize(total_size,
4360 &this_._impl_._cached_size_);
4363void MPArrayConstraint::MergeImpl(::google::protobuf::MessageLite& to_msg,
4364 const ::google::protobuf::MessageLite& from_msg) {
4368 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
4369 from.CheckHasBitConsistency();
4372 ABSL_DCHECK_NE(&from, _this);
4373 ::uint32_t cached_has_bits = 0;
4374 (void)cached_has_bits;
4376 cached_has_bits = from.
_impl_._has_bits_[0];
4377 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
4378 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
4379 _this->_internal_mutable_var_index()->MergeFrom(from._internal_var_index());
4381 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
4382 _this->
_impl_.resultant_var_index_ = from.
_impl_.resultant_var_index_;
4385 _this->
_impl_._has_bits_[0] |= cached_has_bits;
4386 _this->_internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
4387 from._internal_metadata_);
4392 if (&from ==
this)
return;
4400 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
4401 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
4402 _impl_.var_index_.InternalSwap(&other->_impl_.var_index_);
4403 swap(
_impl_.resultant_var_index_, other->_impl_.resultant_var_index_);
4407 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
4411class MPArrayWithConstantConstraint::_Internal {
4414 decltype(::std::declval<MPArrayWithConstantConstraint>()._impl_._has_bits_);
4415 static constexpr ::int32_t kHasBitsOffset =
4420#if defined(PROTOBUF_CUSTOM_VTABLE)
4423 : ::google::protobuf::Message(arena) {
4428PROTOBUF_NDEBUG_INLINE MPArrayWithConstantConstraint::Impl_::Impl_(
4429 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
4430 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
4431 [[maybe_unused]] const ::operations_research::MPArrayWithConstantConstraint& from_msg)
4432 : _has_bits_{from._has_bits_},
4434 var_index_{visibility, arena, from.var_index_} {}
4437 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
4439#if defined(PROTOBUF_CUSTOM_VTABLE)
4442 : ::google::protobuf::Message(arena) {
4446 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
4447 from._internal_metadata_);
4448 new (&
_impl_) Impl_(internal_visibility(), arena, from.
_impl_, from);
4449 ::memcpy(
reinterpret_cast<char*
>(&
_impl_) +
4450 offsetof(Impl_, constant_),
4451 reinterpret_cast<const char*
>(&from.
_impl_) +
4452 offsetof(Impl_, constant_),
4453 offsetof(Impl_, resultant_var_index_) -
4454 offsetof(Impl_, constant_) +
4455 sizeof(Impl_::resultant_var_index_));
4459PROTOBUF_NDEBUG_INLINE MPArrayWithConstantConstraint::Impl_::Impl_(
4460 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
4461 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
4463 var_index_{visibility, arena} {}
4465inline void MPArrayWithConstantConstraint::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
4466 new (&
_impl_) Impl_(internal_visibility(), arena);
4467 ::memset(
reinterpret_cast<char*
>(&
_impl_) +
4468 offsetof(Impl_, constant_),
4470 offsetof(Impl_, resultant_var_index_) -
4471 offsetof(Impl_, constant_) +
4472 sizeof(Impl_::resultant_var_index_));
4478inline void MPArrayWithConstantConstraint::SharedDtor(
MessageLite& self) {
4480 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
4481 this_.CheckHasBitConsistency();
4483 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
4484 ABSL_DCHECK(this_.GetArena() ==
nullptr);
4485 this_._impl_.~Impl_();
4488inline void* PROTOBUF_NONNULL MPArrayWithConstantConstraint::PlacementNew_(
4489 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
4490 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
4493constexpr auto MPArrayWithConstantConstraint::InternalNewImpl_() {
4494 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
4497 InternalGetArenaOffset(
4498 ::
google::protobuf::Message::internal_visibility()),
4500 if (arena_bits.has_value()) {
4501 return ::google::protobuf::internal::MessageCreator::ZeroInit(
4502 sizeof(MPArrayWithConstantConstraint), alignof(MPArrayWithConstantConstraint), *arena_bits);
4504 return ::google::protobuf::internal::MessageCreator(&MPArrayWithConstantConstraint::PlacementNew_,
4505 sizeof(MPArrayWithConstantConstraint),
4506 alignof(MPArrayWithConstantConstraint));
4510 return ::google::protobuf::internal::ClassDataFull{
4511 ::google::protobuf::internal::ClassData{
4516 &MPArrayWithConstantConstraint::MergeImpl,
4517 ::google::protobuf::Message::GetNewImpl<MPArrayWithConstantConstraint>(),
4518#if defined(PROTOBUF_CUSTOM_VTABLE)
4519 &MPArrayWithConstantConstraint::SharedDtor,
4526 &MPArrayWithConstantConstraint::kDescriptorMethods,
4532PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
4536PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
4537MPArrayWithConstantConstraint::GetClassData()
const {
4542PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
4543const ::_pbi::TcParseTable<2, 3, 0, 0, 2>
4544MPArrayWithConstantConstraint::_table_ = {
4549 offsetof(
decltype(_table_), field_lookup_table),
4551 offsetof(
decltype(_table_), field_entries),
4554 offsetof(
decltype(_table_), field_names),
4557 ::_pbi::TcParser::GenericFallback,
4558 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
4559 ::_pbi::TcParser::GetTable<::operations_research::MPArrayWithConstantConstraint>(),
4562 {::_pbi::TcParser::MiniParse, {}},
4564 {::_pbi::TcParser::FastV32R1,
4568 {::_pbi::TcParser::FastF64S1,
4591 ::google::protobuf::internal::TSanWrite(&
_impl_);
4592 ::uint32_t cached_has_bits = 0;
4594 (void) cached_has_bits;
4596 cached_has_bits =
_impl_._has_bits_[0];
4597 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
4600 if (BatchCheckHasBit(cached_has_bits, 0x00000006U)) {
4601 ::memset(&
_impl_.constant_, 0,
static_cast<::
size_t>(
4602 reinterpret_cast<char*
>(&
_impl_.resultant_var_index_) -
4603 reinterpret_cast<char*
>(&
_impl_.constant_)) +
sizeof(
_impl_.resultant_var_index_));
4605 _impl_._has_bits_.Clear();
4606 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
4609#if defined(PROTOBUF_CUSTOM_VTABLE)
4611 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
4612 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
4616 ::uint8_t* PROTOBUF_NONNULL target,
4617 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
4620 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
4621 this_.CheckHasBitConsistency();
4624 ::uint32_t cached_has_bits = 0;
4625 (void)cached_has_bits;
4627 cached_has_bits = this_._impl_._has_bits_[0];
4629 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
4630 for (
int i = 0, n = this_._internal_var_index_size(); i < n; ++i) {
4631 target = stream->EnsureSpace(target);
4632 target = ::_pbi::WireFormatLite::WriteInt32ToArray(
4633 1, this_._internal_var_index().Get(i), target);
4638 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
4639 target = stream->EnsureSpace(target);
4640 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
4641 2, this_._internal_constant(), target);
4645 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
4647 ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>(
4648 stream, this_._internal_resultant_var_index(), target);
4651 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
4653 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
4654 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
4660#if defined(PROTOBUF_CUSTOM_VTABLE)
4668 ::size_t total_size = 0;
4670 ::uint32_t cached_has_bits = 0;
4672 (void)cached_has_bits;
4674 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
4675 cached_has_bits = this_._impl_._has_bits_[0];
4676 total_size +=
static_cast<bool>(0x00000002U & cached_has_bits) * 9;
4677 if (BatchCheckHasBit(cached_has_bits, 0x00000005U)) {
4679 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
4680 ::size_t data_size = ::_pbi::WireFormatLite::Int32Size(
4681 this_._internal_var_index());
4682 ::size_t tag_size = ::size_t{1} *
4683 ::_pbi::FromIntSize(this_._internal_var_index_size());
4684 total_size += tag_size + data_size;
4687 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
4688 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
4689 this_._internal_resultant_var_index());
4692 return this_.MaybeComputeUnknownFieldsSize(total_size,
4693 &this_._impl_._cached_size_);
4696void MPArrayWithConstantConstraint::MergeImpl(::google::protobuf::MessageLite& to_msg,
4697 const ::google::protobuf::MessageLite& from_msg) {
4701 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
4702 from.CheckHasBitConsistency();
4705 ABSL_DCHECK_NE(&from, _this);
4706 ::uint32_t cached_has_bits = 0;
4707 (void)cached_has_bits;
4709 cached_has_bits = from.
_impl_._has_bits_[0];
4710 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
4711 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
4712 _this->_internal_mutable_var_index()->MergeFrom(from._internal_var_index());
4714 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
4717 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
4718 _this->
_impl_.resultant_var_index_ = from.
_impl_.resultant_var_index_;
4721 _this->
_impl_._has_bits_[0] |= cached_has_bits;
4722 _this->_internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
4723 from._internal_metadata_);
4728 if (&from ==
this)
return;
4736 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
4737 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
4738 _impl_.var_index_.InternalSwap(&other->_impl_.var_index_);
4739 ::google::protobuf::internal::memswap<
4743 reinterpret_cast<char*
>(&
_impl_.constant_),
4744 reinterpret_cast<char*
>(&other->_impl_.constant_));
4748 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
4752class MPQuadraticObjective::_Internal {
4755 decltype(::std::declval<MPQuadraticObjective>()._impl_._has_bits_);
4756 static constexpr ::int32_t kHasBitsOffset =
4761#if defined(PROTOBUF_CUSTOM_VTABLE)
4764 : ::google::protobuf::Message(arena) {
4769PROTOBUF_NDEBUG_INLINE MPQuadraticObjective::Impl_::Impl_(
4770 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
4771 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
4772 [[maybe_unused]] const ::operations_research::MPQuadraticObjective& from_msg)
4773 : _has_bits_{from._has_bits_},
4775 qvar1_index_{visibility, arena, from.qvar1_index_},
4776 qvar2_index_{visibility, arena, from.qvar2_index_},
4777 coefficient_{visibility, arena, from.coefficient_} {}
4780 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
4782#if defined(PROTOBUF_CUSTOM_VTABLE)
4785 : ::google::protobuf::Message(arena) {
4789 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
4790 from._internal_metadata_);
4791 new (&
_impl_) Impl_(internal_visibility(), arena, from.
_impl_, from);
4795PROTOBUF_NDEBUG_INLINE MPQuadraticObjective::Impl_::Impl_(
4796 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
4797 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
4799 qvar1_index_{visibility, arena},
4800 qvar2_index_{visibility, arena},
4801 coefficient_{visibility, arena} {}
4803inline void MPQuadraticObjective::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
4804 new (&
_impl_) Impl_(internal_visibility(), arena);
4810inline void MPQuadraticObjective::SharedDtor(
MessageLite& self) {
4812 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
4813 this_.CheckHasBitConsistency();
4815 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
4816 ABSL_DCHECK(this_.GetArena() ==
nullptr);
4817 this_._impl_.~Impl_();
4820inline void* PROTOBUF_NONNULL MPQuadraticObjective::PlacementNew_(
4821 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
4822 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
4825constexpr auto MPQuadraticObjective::InternalNewImpl_() {
4826 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
4829 InternalGetArenaOffset(
4830 ::
google::protobuf::Message::internal_visibility()),
4833 InternalGetArenaOffset(
4834 ::
google::protobuf::Message::internal_visibility()),
4837 InternalGetArenaOffset(
4838 ::
google::protobuf::Message::internal_visibility()),
4840 if (arena_bits.has_value()) {
4841 return ::google::protobuf::internal::MessageCreator::ZeroInit(
4842 sizeof(MPQuadraticObjective), alignof(MPQuadraticObjective), *arena_bits);
4844 return ::google::protobuf::internal::MessageCreator(&MPQuadraticObjective::PlacementNew_,
4845 sizeof(MPQuadraticObjective),
4846 alignof(MPQuadraticObjective));
4850 return ::google::protobuf::internal::ClassDataFull{
4851 ::google::protobuf::internal::ClassData{
4856 &MPQuadraticObjective::MergeImpl,
4857 ::google::protobuf::Message::GetNewImpl<MPQuadraticObjective>(),
4858#if defined(PROTOBUF_CUSTOM_VTABLE)
4859 &MPQuadraticObjective::SharedDtor,
4866 &MPQuadraticObjective::kDescriptorMethods,
4872PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
4876PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
4877MPQuadraticObjective::GetClassData()
const {
4882PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
4883const ::_pbi::TcParseTable<2, 3, 0, 0, 2>
4884MPQuadraticObjective::_table_ = {
4889 offsetof(
decltype(_table_), field_lookup_table),
4891 offsetof(
decltype(_table_), field_entries),
4894 offsetof(
decltype(_table_), field_names),
4897 ::_pbi::TcParser::GenericFallback,
4898 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
4899 ::_pbi::TcParser::GetTable<::operations_research::MPQuadraticObjective>(),
4902 {::_pbi::TcParser::MiniParse, {}},
4904 {::_pbi::TcParser::FastV32R1,
4908 {::_pbi::TcParser::FastV32R1,
4912 {::_pbi::TcParser::FastF64R1,
4931 ::google::protobuf::internal::TSanWrite(&
_impl_);
4932 ::uint32_t cached_has_bits = 0;
4934 (void) cached_has_bits;
4936 cached_has_bits =
_impl_._has_bits_[0];
4937 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
4938 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
4941 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
4942 _impl_.qvar2_index_.Clear();
4944 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
4945 _impl_.coefficient_.Clear();
4948 _impl_._has_bits_.Clear();
4949 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
4952#if defined(PROTOBUF_CUSTOM_VTABLE)
4954 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
4955 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
4959 ::uint8_t* PROTOBUF_NONNULL target,
4960 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
4963 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
4964 this_.CheckHasBitConsistency();
4967 ::uint32_t cached_has_bits = 0;
4968 (void)cached_has_bits;
4970 cached_has_bits = this_._impl_._has_bits_[0];
4972 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
4973 for (
int i = 0, n = this_._internal_qvar1_index_size(); i < n; ++i) {
4974 target = stream->EnsureSpace(target);
4975 target = ::_pbi::WireFormatLite::WriteInt32ToArray(
4976 1, this_._internal_qvar1_index().Get(i), target);
4981 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
4982 for (
int i = 0, n = this_._internal_qvar2_index_size(); i < n; ++i) {
4983 target = stream->EnsureSpace(target);
4984 target = ::_pbi::WireFormatLite::WriteInt32ToArray(
4985 2, this_._internal_qvar2_index().Get(i), target);
4990 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
4991 for (
int i = 0, n = this_._internal_coefficient_size(); i < n; ++i) {
4992 target = stream->EnsureSpace(target);
4993 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
4994 3, this_._internal_coefficient().Get(i), target);
4998 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
5000 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
5001 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
5007#if defined(PROTOBUF_CUSTOM_VTABLE)
5015 ::size_t total_size = 0;
5017 ::uint32_t cached_has_bits = 0;
5019 (void)cached_has_bits;
5021 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
5022 cached_has_bits = this_._impl_._has_bits_[0];
5023 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
5025 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
5026 ::size_t data_size = ::_pbi::WireFormatLite::Int32Size(
5027 this_._internal_qvar1_index());
5028 ::size_t tag_size = ::size_t{1} *
5029 ::_pbi::FromIntSize(this_._internal_qvar1_index_size());
5030 total_size += tag_size + data_size;
5033 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
5034 ::size_t data_size = ::_pbi::WireFormatLite::Int32Size(
5035 this_._internal_qvar2_index());
5036 ::size_t tag_size = ::size_t{1} *
5037 ::_pbi::FromIntSize(this_._internal_qvar2_index_size());
5038 total_size += tag_size + data_size;
5041 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
5042 ::size_t data_size = ::size_t{8} *
5043 ::_pbi::FromIntSize(this_._internal_coefficient_size());
5044 ::size_t tag_size = ::size_t{1} *
5045 ::_pbi::FromIntSize(this_._internal_coefficient_size());
5046 total_size += tag_size + data_size;
5049 return this_.MaybeComputeUnknownFieldsSize(total_size,
5050 &this_._impl_._cached_size_);
5053void MPQuadraticObjective::MergeImpl(::google::protobuf::MessageLite& to_msg,
5054 const ::google::protobuf::MessageLite& from_msg) {
5058 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
5059 from.CheckHasBitConsistency();
5062 ABSL_DCHECK_NE(&from, _this);
5063 ::uint32_t cached_has_bits = 0;
5064 (void)cached_has_bits;
5066 cached_has_bits = from.
_impl_._has_bits_[0];
5067 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
5068 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
5069 _this->_internal_mutable_qvar1_index()->MergeFrom(from._internal_qvar1_index());
5071 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
5072 _this->_internal_mutable_qvar2_index()->MergeFrom(from._internal_qvar2_index());
5074 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
5075 _this->_internal_mutable_coefficient()->MergeFrom(from._internal_coefficient());
5078 _this->
_impl_._has_bits_[0] |= cached_has_bits;
5079 _this->_internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
5080 from._internal_metadata_);
5085 if (&from ==
this)
return;
5091void MPQuadraticObjective::InternalSwap(
MPQuadraticObjective* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
5093 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
5094 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
5095 _impl_.qvar1_index_.InternalSwap(&other->_impl_.qvar1_index_);
5096 _impl_.qvar2_index_.InternalSwap(&other->_impl_.qvar2_index_);
5097 _impl_.coefficient_.InternalSwap(&other->_impl_.coefficient_);
5101 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
5105class PartialVariableAssignment::_Internal {
5108 decltype(::std::declval<PartialVariableAssignment>()._impl_._has_bits_);
5109 static constexpr ::int32_t kHasBitsOffset =
5114#if defined(PROTOBUF_CUSTOM_VTABLE)
5117 : ::google::protobuf::Message(arena) {
5122PROTOBUF_NDEBUG_INLINE PartialVariableAssignment::Impl_::Impl_(
5123 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
5124 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
5125 [[maybe_unused]] const ::operations_research::PartialVariableAssignment& from_msg)
5126 : _has_bits_{from._has_bits_},
5128 var_index_{visibility, arena, from.var_index_},
5129 _var_index_cached_byte_size_{0},
5130 var_value_{visibility, arena, from.var_value_} {}
5133 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
5135#if defined(PROTOBUF_CUSTOM_VTABLE)
5138 : ::google::protobuf::Message(arena) {
5142 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
5143 from._internal_metadata_);
5144 new (&
_impl_) Impl_(internal_visibility(), arena, from.
_impl_, from);
5148PROTOBUF_NDEBUG_INLINE PartialVariableAssignment::Impl_::Impl_(
5149 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
5150 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
5152 var_index_{visibility, arena},
5153 _var_index_cached_byte_size_{0},
5154 var_value_{visibility, arena} {}
5156inline void PartialVariableAssignment::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
5157 new (&
_impl_) Impl_(internal_visibility(), arena);
5163inline void PartialVariableAssignment::SharedDtor(
MessageLite& self) {
5165 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
5166 this_.CheckHasBitConsistency();
5168 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
5169 ABSL_DCHECK(this_.GetArena() ==
nullptr);
5170 this_._impl_.~Impl_();
5173inline void* PROTOBUF_NONNULL PartialVariableAssignment::PlacementNew_(
5174 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
5175 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
5178constexpr auto PartialVariableAssignment::InternalNewImpl_() {
5179 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
5182 InternalGetArenaOffset(
5183 ::
google::protobuf::Message::internal_visibility()),
5186 InternalGetArenaOffset(
5187 ::
google::protobuf::Message::internal_visibility()),
5189 if (arena_bits.has_value()) {
5190 return ::google::protobuf::internal::MessageCreator::ZeroInit(
5191 sizeof(PartialVariableAssignment), alignof(PartialVariableAssignment), *arena_bits);
5193 return ::google::protobuf::internal::MessageCreator(&PartialVariableAssignment::PlacementNew_,
5194 sizeof(PartialVariableAssignment),
5195 alignof(PartialVariableAssignment));
5199 return ::google::protobuf::internal::ClassDataFull{
5200 ::google::protobuf::internal::ClassData{
5205 &PartialVariableAssignment::MergeImpl,
5206 ::google::protobuf::Message::GetNewImpl<PartialVariableAssignment>(),
5207#if defined(PROTOBUF_CUSTOM_VTABLE)
5208 &PartialVariableAssignment::SharedDtor,
5215 &PartialVariableAssignment::kDescriptorMethods,
5221PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
5225PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
5226PartialVariableAssignment::GetClassData()
const {
5231PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
5232const ::_pbi::TcParseTable<1, 2, 0, 0, 2>
5233PartialVariableAssignment::_table_ = {
5238 offsetof(
decltype(_table_), field_lookup_table),
5240 offsetof(
decltype(_table_), field_entries),
5243 offsetof(
decltype(_table_), field_names),
5246 ::_pbi::TcParser::GenericFallback,
5247 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
5248 ::_pbi::TcParser::GetTable<::operations_research::PartialVariableAssignment>(),
5252 {::_pbi::TcParser::FastF64P1,
5256 {::_pbi::TcParser::FastV32P1,
5263 {PROTOBUF_FIELD_OFFSET(
PartialVariableAssignment,
_impl_.var_index_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)},
5265 {PROTOBUF_FIELD_OFFSET(
PartialVariableAssignment,
_impl_.var_value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)},
5273 ::google::protobuf::internal::TSanWrite(&
_impl_);
5274 ::uint32_t cached_has_bits = 0;
5276 (void) cached_has_bits;
5278 cached_has_bits =
_impl_._has_bits_[0];
5279 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
5280 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
5281 _impl_.var_index_.Clear();
5283 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
5284 _impl_.var_value_.Clear();
5287 _impl_._has_bits_.Clear();
5288 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
5291#if defined(PROTOBUF_CUSTOM_VTABLE)
5293 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
5294 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
5298 ::uint8_t* PROTOBUF_NONNULL target,
5299 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
5302 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
5303 this_.CheckHasBitConsistency();
5306 ::uint32_t cached_has_bits = 0;
5307 (void)cached_has_bits;
5309 cached_has_bits = this_._impl_._has_bits_[0];
5311 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
5313 int byte_size = this_._impl_._var_index_cached_byte_size_.Get();
5314 if (byte_size > 0) {
5315 target = stream->WriteInt32Packed(
5316 1, this_._internal_var_index(), byte_size, target);
5322 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
5323 if (this_._internal_var_value_size() > 0) {
5324 target = stream->WriteFixedPacked(2, this_._internal_var_value(), target);
5328 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
5330 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
5331 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
5337#if defined(PROTOBUF_CUSTOM_VTABLE)
5345 ::size_t total_size = 0;
5347 ::uint32_t cached_has_bits = 0;
5349 (void)cached_has_bits;
5351 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
5352 cached_has_bits = this_._impl_._has_bits_[0];
5353 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
5355 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
5357 ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize(
5358 this_._internal_var_index(), 1,
5359 this_._impl_._var_index_cached_byte_size_);
5362 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
5363 ::size_t data_size = ::size_t{8} *
5364 ::_pbi::FromIntSize(this_._internal_var_value_size());
5365 ::size_t tag_size = data_size == 0
5367 : 1 + ::_pbi::WireFormatLite::Int32Size(
5368 static_cast<::int32_t
>(data_size));
5369 total_size += tag_size + data_size;
5372 return this_.MaybeComputeUnknownFieldsSize(total_size,
5373 &this_._impl_._cached_size_);
5376void PartialVariableAssignment::MergeImpl(::google::protobuf::MessageLite& to_msg,
5377 const ::google::protobuf::MessageLite& from_msg) {
5381 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
5382 from.CheckHasBitConsistency();
5385 ABSL_DCHECK_NE(&from, _this);
5386 ::uint32_t cached_has_bits = 0;
5387 (void)cached_has_bits;
5389 cached_has_bits = from.
_impl_._has_bits_[0];
5390 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
5391 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
5392 _this->_internal_mutable_var_index()->
MergeFrom(from._internal_var_index());
5394 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
5395 _this->_internal_mutable_var_value()->
MergeFrom(from._internal_var_value());
5398 _this->
_impl_._has_bits_[0] |= cached_has_bits;
5399 _this->_internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
5400 from._internal_metadata_);
5405 if (&from ==
this)
return;
5413 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
5415 _impl_.var_index_.InternalSwap(&other->_impl_.var_index_);
5416 _impl_.var_value_.InternalSwap(&other->_impl_.var_value_);
5420 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
5424class MPModelProto_Annotation::_Internal {
5427 decltype(::std::declval<MPModelProto_Annotation>()._impl_._has_bits_);
5428 static constexpr ::int32_t kHasBitsOffset =
5429 8 * PROTOBUF_FIELD_OFFSET(MPModelProto_Annotation, _impl_._has_bits_);
5433#if defined(PROTOBUF_CUSTOM_VTABLE)
5436 : ::google::protobuf::Message(arena) {
5441PROTOBUF_NDEBUG_INLINE MPModelProto_Annotation::Impl_::Impl_(
5442 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
5443 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
5444 [[maybe_unused]] const ::operations_research::MPModelProto_Annotation& from_msg)
5445 : _has_bits_{from._has_bits_},
5447 target_name_(arena, from.target_name_),
5448 payload_key_(arena, from.payload_key_),
5449 payload_value_(arena, from.payload_value_) {}
5452 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
5454#if defined(PROTOBUF_CUSTOM_VTABLE)
5457 : ::google::protobuf::Message(arena) {
5461 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
5462 from._internal_metadata_);
5463 new (&
_impl_) Impl_(internal_visibility(), arena, from.
_impl_, from);
5464 ::memcpy(
reinterpret_cast<char*
>(&
_impl_) +
5465 offsetof(Impl_, target_type_),
5466 reinterpret_cast<const char*
>(&from.
_impl_) +
5467 offsetof(Impl_, target_type_),
5468 offsetof(Impl_, target_index_) -
5469 offsetof(Impl_, target_type_) +
5470 sizeof(Impl_::target_index_));
5474PROTOBUF_NDEBUG_INLINE MPModelProto_Annotation::Impl_::Impl_(
5475 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
5476 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
5478 target_name_(arena),
5479 payload_key_(arena),
5480 payload_value_(arena) {}
5482inline void MPModelProto_Annotation::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
5483 new (&
_impl_) Impl_(internal_visibility(), arena);
5484 ::memset(
reinterpret_cast<char*
>(&
_impl_) +
5485 offsetof(Impl_, target_type_),
5487 offsetof(Impl_, target_index_) -
5488 offsetof(Impl_, target_type_) +
5489 sizeof(Impl_::target_index_));
5495inline void MPModelProto_Annotation::SharedDtor(
MessageLite& self) {
5497 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
5498 this_.CheckHasBitConsistency();
5500 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
5501 ABSL_DCHECK(this_.GetArena() ==
nullptr);
5502 this_._impl_.target_name_.Destroy();
5503 this_._impl_.payload_key_.Destroy();
5504 this_._impl_.payload_value_.Destroy();
5505 this_._impl_.~Impl_();
5508inline void* PROTOBUF_NONNULL MPModelProto_Annotation::PlacementNew_(
5509 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
5510 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
5513constexpr auto MPModelProto_Annotation::InternalNewImpl_() {
5518 return ::google::protobuf::internal::ClassDataFull{
5519 ::google::protobuf::internal::ClassData{
5524 &MPModelProto_Annotation::MergeImpl,
5525 ::google::protobuf::Message::GetNewImpl<MPModelProto_Annotation>(),
5526#if defined(PROTOBUF_CUSTOM_VTABLE)
5527 &MPModelProto_Annotation::SharedDtor,
5534 &MPModelProto_Annotation::kDescriptorMethods,
5540PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
5544PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
5545MPModelProto_Annotation::GetClassData()
const {
5550PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
5551const ::_pbi::TcParseTable<3, 5, 1, 0, 2>
5552MPModelProto_Annotation::_table_ = {
5557 offsetof(
decltype(_table_), field_lookup_table),
5559 offsetof(
decltype(_table_), field_entries),
5562 offsetof(
decltype(_table_), aux_entries),
5565 ::_pbi::TcParser::GenericFallback,
5566 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
5567 ::_pbi::TcParser::GetTable<::operations_research::MPModelProto_Annotation>(),
5570 {::_pbi::TcParser::MiniParse, {}},
5572 {::_pbi::TcParser::FastEr0S1,
5580 {::_pbi::TcParser::FastBS1,
5584 {::_pbi::TcParser::FastBS1,
5588 {::_pbi::TcParser::FastBS1,
5591 {::_pbi::TcParser::MiniParse, {}},
5592 {::_pbi::TcParser::MiniParse, {}},
5615 ::google::protobuf::internal::TSanWrite(&
_impl_);
5616 ::uint32_t cached_has_bits = 0;
5618 (void) cached_has_bits;
5620 cached_has_bits =
_impl_._has_bits_[0];
5621 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
5622 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
5623 _impl_.target_name_.ClearNonDefaultToEmpty();
5625 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
5626 _impl_.payload_key_.ClearNonDefaultToEmpty();
5628 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
5629 _impl_.payload_value_.ClearNonDefaultToEmpty();
5632 if (BatchCheckHasBit(cached_has_bits, 0x00000018U)) {
5633 ::memset(&
_impl_.target_type_, 0,
static_cast<::
size_t>(
5634 reinterpret_cast<char*
>(&
_impl_.target_index_) -
5635 reinterpret_cast<char*
>(&
_impl_.target_type_)) +
sizeof(
_impl_.target_index_));
5637 _impl_._has_bits_.Clear();
5638 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
5641#if defined(PROTOBUF_CUSTOM_VTABLE)
5643 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
5644 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
5648 ::uint8_t* PROTOBUF_NONNULL target,
5649 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
5652 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
5653 this_.CheckHasBitConsistency();
5656 ::uint32_t cached_has_bits = 0;
5657 (void)cached_has_bits;
5659 cached_has_bits = this_._impl_._has_bits_[0];
5661 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
5662 target = stream->EnsureSpace(target);
5663 target = ::_pbi::WireFormatLite::WriteEnumToArray(
5664 1, this_._internal_target_type(), target);
5668 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
5670 ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>(
5671 stream, this_._internal_target_index(), target);
5675 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
5676 const ::std::string& _s = this_._internal_target_name();
5677 target = stream->WriteStringMaybeAliased(3, _s, target);
5681 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
5682 const ::std::string& _s = this_._internal_payload_key();
5683 target = stream->WriteStringMaybeAliased(4, _s, target);
5687 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
5688 const ::std::string& _s = this_._internal_payload_value();
5689 target = stream->WriteStringMaybeAliased(5, _s, target);
5692 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
5694 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
5695 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
5701#if defined(PROTOBUF_CUSTOM_VTABLE)
5709 ::size_t total_size = 0;
5711 ::uint32_t cached_has_bits = 0;
5713 (void)cached_has_bits;
5715 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
5716 cached_has_bits = this_._impl_._has_bits_[0];
5717 if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
5719 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
5720 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
5721 this_._internal_target_name());
5724 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
5725 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
5726 this_._internal_payload_key());
5729 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
5730 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
5731 this_._internal_payload_value());
5734 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
5736 ::_pbi::WireFormatLite::EnumSize(this_._internal_target_type());
5739 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
5740 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
5741 this_._internal_target_index());
5744 return this_.MaybeComputeUnknownFieldsSize(total_size,
5745 &this_._impl_._cached_size_);
5748void MPModelProto_Annotation::MergeImpl(::google::protobuf::MessageLite& to_msg,
5749 const ::google::protobuf::MessageLite& from_msg) {
5753 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
5754 from.CheckHasBitConsistency();
5757 ABSL_DCHECK_NE(&from, _this);
5758 ::uint32_t cached_has_bits = 0;
5759 (void)cached_has_bits;
5761 cached_has_bits = from.
_impl_._has_bits_[0];
5762 if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
5763 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
5764 _this->_internal_set_target_name(from._internal_target_name());
5766 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
5767 _this->_internal_set_payload_key(from._internal_payload_key());
5769 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
5770 _this->_internal_set_payload_value(from._internal_payload_value());
5772 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
5775 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
5776 _this->
_impl_.target_index_ = from.
_impl_.target_index_;
5779 _this->
_impl_._has_bits_[0] |= cached_has_bits;
5780 _this->_internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
5781 from._internal_metadata_);
5786 if (&from ==
this)
return;
5792void MPModelProto_Annotation::InternalSwap(
MPModelProto_Annotation* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
5794 auto* arena = GetArena();
5795 ABSL_DCHECK_EQ(arena, other->GetArena());
5796 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
5797 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
5798 ::_pbi::ArenaStringPtr::InternalSwap(&
_impl_.target_name_, &other->_impl_.target_name_, arena);
5799 ::_pbi::ArenaStringPtr::InternalSwap(&
_impl_.payload_key_, &other->_impl_.payload_key_, arena);
5800 ::_pbi::ArenaStringPtr::InternalSwap(&
_impl_.payload_value_, &other->_impl_.payload_value_, arena);
5801 ::google::protobuf::internal::memswap<
5805 reinterpret_cast<char*
>(&
_impl_.target_type_),
5806 reinterpret_cast<char*
>(&other->_impl_.target_type_));
5810 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
5814class MPModelProto::_Internal {
5817 decltype(::std::declval<MPModelProto>()._impl_._has_bits_);
5818 static constexpr ::int32_t kHasBitsOffset =
5819 8 * PROTOBUF_FIELD_OFFSET(MPModelProto, _impl_._has_bits_);
5823#if defined(PROTOBUF_CUSTOM_VTABLE)
5826 : ::google::protobuf::Message(arena) {
5831PROTOBUF_NDEBUG_INLINE MPModelProto::Impl_::Impl_(
5832 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
5833 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
5834 [[maybe_unused]] const ::operations_research::MPModelProto& from_msg)
5835 : _has_bits_{from._has_bits_},
5837 variable_{visibility, arena, from.variable_},
5838 constraint_{visibility, arena, from.constraint_},
5839 general_constraint_{visibility, arena, from.general_constraint_},
5840 annotation_{visibility, arena, from.annotation_},
5841 name_(arena, from.name_) {}
5844 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
5846#if defined(PROTOBUF_CUSTOM_VTABLE)
5849 : ::google::protobuf::Message(arena) {
5853 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
5854 from._internal_metadata_);
5855 new (&
_impl_) Impl_(internal_visibility(), arena, from.
_impl_, from);
5856 ::uint32_t cached_has_bits =
_impl_._has_bits_[0];
5857 _impl_.solution_hint_ = (CheckHasBit(cached_has_bits, 0x00000020U))
5858 ? ::google::protobuf::Message::CopyConstruct(arena, *from.
_impl_.solution_hint_)
5860 _impl_.quadratic_objective_ = (CheckHasBit(cached_has_bits, 0x00000040U))
5861 ? ::google::protobuf::Message::CopyConstruct(arena, *from.
_impl_.quadratic_objective_)
5863 ::memcpy(
reinterpret_cast<char*
>(&
_impl_) +
5864 offsetof(Impl_, objective_offset_),
5865 reinterpret_cast<const char*
>(&from.
_impl_) +
5866 offsetof(Impl_, objective_offset_),
5867 offsetof(Impl_, maximize_) -
5868 offsetof(Impl_, objective_offset_) +
5869 sizeof(Impl_::maximize_));
5873PROTOBUF_NDEBUG_INLINE MPModelProto::Impl_::Impl_(
5874 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
5875 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
5877 variable_{visibility, arena},
5878 constraint_{visibility, arena},
5879 general_constraint_{visibility, arena},
5880 annotation_{visibility, arena},
5883inline void MPModelProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
5884 new (&
_impl_) Impl_(internal_visibility(), arena);
5885 ::memset(
reinterpret_cast<char*
>(&
_impl_) +
5886 offsetof(Impl_, solution_hint_),
5888 offsetof(Impl_, maximize_) -
5889 offsetof(Impl_, solution_hint_) +
5890 sizeof(Impl_::maximize_));
5896inline void MPModelProto::SharedDtor(
MessageLite& self) {
5898 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
5899 this_.CheckHasBitConsistency();
5901 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
5902 ABSL_DCHECK(this_.GetArena() ==
nullptr);
5903 this_._impl_.name_.Destroy();
5904 delete this_._impl_.solution_hint_;
5905 delete this_._impl_.quadratic_objective_;
5906 this_._impl_.~Impl_();
5909inline void* PROTOBUF_NONNULL MPModelProto::PlacementNew_(
5910 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
5911 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
5914constexpr auto MPModelProto::InternalNewImpl_() {
5915 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
5918 InternalGetArenaOffset(
5919 ::
google::protobuf::Message::internal_visibility()),
5922 InternalGetArenaOffset(
5923 ::
google::protobuf::Message::internal_visibility()),
5926 InternalGetArenaOffset(
5927 ::
google::protobuf::Message::internal_visibility()),
5930 InternalGetArenaOffset(
5931 ::
google::protobuf::Message::internal_visibility()),
5933 if (arena_bits.has_value()) {
5934 return ::google::protobuf::internal::MessageCreator::CopyInit(
5935 sizeof(MPModelProto), alignof(MPModelProto), *arena_bits);
5937 return ::google::protobuf::internal::MessageCreator(&MPModelProto::PlacementNew_,
5938 sizeof(MPModelProto),
5939 alignof(MPModelProto));
5943 return ::google::protobuf::internal::ClassDataFull{
5944 ::google::protobuf::internal::ClassData{
5949 &MPModelProto::MergeImpl,
5950 ::google::protobuf::Message::GetNewImpl<MPModelProto>(),
5951#if defined(PROTOBUF_CUSTOM_VTABLE)
5952 &MPModelProto::SharedDtor,
5959 &MPModelProto::kDescriptorMethods,
5965PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
5969PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
5970MPModelProto::GetClassData()
const {
5975PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
5976const ::_pbi::TcParseTable<4, 9, 6, 0, 2>
5977MPModelProto::_table_ = {
5982 offsetof(
decltype(_table_), field_lookup_table),
5984 offsetof(
decltype(_table_), field_entries),
5987 offsetof(
decltype(_table_), aux_entries),
5990 ::_pbi::TcParser::GenericFallback,
5991 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
5992 ::_pbi::TcParser::GetTable<::operations_research::MPModelProto>(),
5995 {::_pbi::TcParser::MiniParse, {}},
5997 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(
MPModelProto,
_impl_.maximize_), 8>(),
6001 {::_pbi::TcParser::FastF64S1,
6005 {::_pbi::TcParser::FastMtR1,
6009 {::_pbi::TcParser::FastMtR1,
6013 {::_pbi::TcParser::FastBS1,
6017 {::_pbi::TcParser::FastMtS1,
6021 {::_pbi::TcParser::FastMtR1,
6025 {::_pbi::TcParser::FastMtS1,
6029 {::_pbi::TcParser::FastMtR1,
6032 {::_pbi::TcParser::MiniParse, {}},
6033 {::_pbi::TcParser::MiniParse, {}},
6034 {::_pbi::TcParser::MiniParse, {}},
6035 {::_pbi::TcParser::MiniParse, {}},
6036 {::_pbi::TcParser::MiniParse, {}},
6037 {::_pbi::TcParser::MiniParse, {}},
6061 {::_pbi::TcParser::GetTable<::operations_research::MPVariableProto>()},
6062 {::_pbi::TcParser::GetTable<::operations_research::MPConstraintProto>()},
6063 {::_pbi::TcParser::GetTable<::operations_research::PartialVariableAssignment>()},
6064 {::_pbi::TcParser::GetTable<::operations_research::MPGeneralConstraintProto>()},
6065 {::_pbi::TcParser::GetTable<::operations_research::MPQuadraticObjective>()},
6066 {::_pbi::TcParser::GetTable<::operations_research::MPModelProto_Annotation>()},
6073 ::google::protobuf::internal::TSanWrite(&
_impl_);
6074 ::uint32_t cached_has_bits = 0;
6076 (void) cached_has_bits;
6078 cached_has_bits =
_impl_._has_bits_[0];
6079 if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) {
6080 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
6081 _impl_.variable_.Clear();
6083 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
6086 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
6087 _impl_.general_constraint_.Clear();
6089 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
6090 _impl_.annotation_.Clear();
6092 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
6093 _impl_.name_.ClearNonDefaultToEmpty();
6095 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
6096 ABSL_DCHECK(
_impl_.solution_hint_ !=
nullptr);
6097 _impl_.solution_hint_->Clear();
6099 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
6100 ABSL_DCHECK(
_impl_.quadratic_objective_ !=
nullptr);
6101 _impl_.quadratic_objective_->Clear();
6104 _impl_.objective_offset_ = 0;
6105 _impl_.maximize_ =
false;
6106 _impl_._has_bits_.Clear();
6107 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
6110#if defined(PROTOBUF_CUSTOM_VTABLE)
6112 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
6113 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
6117 ::uint8_t* PROTOBUF_NONNULL target,
6118 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
6121 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
6122 this_.CheckHasBitConsistency();
6125 ::uint32_t cached_has_bits = 0;
6126 (void)cached_has_bits;
6128 cached_has_bits = this_._impl_._has_bits_[0];
6130 if (CheckHasBit(cached_has_bits, 0x00000100U)) {
6131 target = stream->EnsureSpace(target);
6132 target = ::_pbi::WireFormatLite::WriteBoolToArray(
6133 1, this_._internal_maximize(), target);
6137 if (CheckHasBit(cached_has_bits, 0x00000080U)) {
6138 target = stream->EnsureSpace(target);
6139 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
6140 2, this_._internal_objective_offset(), target);
6144 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
6145 for (
unsigned i = 0, n =
static_cast<unsigned>(
6146 this_._internal_variable_size());
6148 const auto& repfield = this_._internal_variable().Get(i);
6150 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
6151 3, repfield, repfield.GetCachedSize(),
6157 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
6158 for (
unsigned i = 0, n =
static_cast<unsigned>(
6159 this_._internal_constraint_size());
6161 const auto& repfield = this_._internal_constraint().Get(i);
6163 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
6164 4, repfield, repfield.GetCachedSize(),
6170 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
6171 const ::std::string& _s = this_._internal_name();
6172 target = stream->WriteStringMaybeAliased(5, _s, target);
6176 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
6177 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
6178 6, *this_._impl_.solution_hint_, this_._impl_.solution_hint_->GetCachedSize(), target,
6183 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
6184 for (
unsigned i = 0, n =
static_cast<unsigned>(
6185 this_._internal_general_constraint_size());
6187 const auto& repfield = this_._internal_general_constraint().Get(i);
6189 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
6190 7, repfield, repfield.GetCachedSize(),
6196 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
6197 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
6198 8, *this_._impl_.quadratic_objective_, this_._impl_.quadratic_objective_->GetCachedSize(), target,
6203 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
6204 for (
unsigned i = 0, n =
static_cast<unsigned>(
6205 this_._internal_annotation_size());
6207 const auto& repfield = this_._internal_annotation().Get(i);
6209 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
6210 9, repfield, repfield.GetCachedSize(),
6215 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
6217 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
6218 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
6224#if defined(PROTOBUF_CUSTOM_VTABLE)
6232 ::size_t total_size = 0;
6234 ::uint32_t cached_has_bits = 0;
6236 (void)cached_has_bits;
6238 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
6239 cached_has_bits = this_._impl_._has_bits_[0];
6240 total_size +=
static_cast<bool>(0x00000080U & cached_has_bits) * 9;
6241 total_size +=
static_cast<bool>(0x00000100U & cached_has_bits) * 2;
6242 if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) {
6244 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
6245 total_size += 1UL * this_._internal_variable_size();
6246 for (
const auto& msg : this_._internal_variable()) {
6247 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
6251 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
6252 total_size += 1UL * this_._internal_constraint_size();
6253 for (
const auto& msg : this_._internal_constraint()) {
6254 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
6258 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
6259 total_size += 1UL * this_._internal_general_constraint_size();
6260 for (
const auto& msg : this_._internal_general_constraint()) {
6261 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
6265 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
6266 total_size += 1UL * this_._internal_annotation_size();
6267 for (
const auto& msg : this_._internal_annotation()) {
6268 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
6272 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
6273 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
6274 this_._internal_name());
6277 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
6279 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.solution_hint_);
6282 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
6284 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.quadratic_objective_);
6287 return this_.MaybeComputeUnknownFieldsSize(total_size,
6288 &this_._impl_._cached_size_);
6291void MPModelProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
6292 const ::google::protobuf::MessageLite& from_msg) {
6295 auto& from =
static_cast<const MPModelProto&
>(from_msg);
6296 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
6297 from.CheckHasBitConsistency();
6301 ABSL_DCHECK_NE(&from, _this);
6302 ::uint32_t cached_has_bits = 0;
6303 (void)cached_has_bits;
6305 cached_has_bits = from.
_impl_._has_bits_[0];
6306 if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
6307 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
6308 _this->_internal_mutable_variable()->InternalMergeFromWithArena(
6309 ::google::protobuf::MessageLite::internal_visibility(), arena,
6310 from._internal_variable());
6312 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
6313 _this->_internal_mutable_constraint()->InternalMergeFromWithArena(
6314 ::google::protobuf::MessageLite::internal_visibility(), arena,
6315 from._internal_constraint());
6317 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
6318 _this->_internal_mutable_general_constraint()->InternalMergeFromWithArena(
6319 ::google::protobuf::MessageLite::internal_visibility(), arena,
6320 from._internal_general_constraint());
6322 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
6323 _this->_internal_mutable_annotation()->InternalMergeFromWithArena(
6324 ::google::protobuf::MessageLite::internal_visibility(), arena,
6325 from._internal_annotation());
6327 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
6328 _this->_internal_set_name(from._internal_name());
6330 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
6331 ABSL_DCHECK(from.
_impl_.solution_hint_ !=
nullptr);
6332 if (_this->
_impl_.solution_hint_ ==
nullptr) {
6333 _this->
_impl_.solution_hint_ = ::google::protobuf::Message::CopyConstruct(arena, *from.
_impl_.solution_hint_);
6338 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
6339 ABSL_DCHECK(from.
_impl_.quadratic_objective_ !=
nullptr);
6340 if (_this->
_impl_.quadratic_objective_ ==
nullptr) {
6341 _this->
_impl_.quadratic_objective_ = ::google::protobuf::Message::CopyConstruct(arena, *from.
_impl_.quadratic_objective_);
6346 if (CheckHasBit(cached_has_bits, 0x00000080U)) {
6347 _this->
_impl_.objective_offset_ = from.
_impl_.objective_offset_;
6350 if (CheckHasBit(cached_has_bits, 0x00000100U)) {
6353 _this->
_impl_._has_bits_[0] |= cached_has_bits;
6354 _this->_internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
6355 from._internal_metadata_);
6360 if (&from ==
this)
return;
6366void MPModelProto::InternalSwap(
MPModelProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
6368 auto* arena = GetArena();
6369 ABSL_DCHECK_EQ(arena, other->GetArena());
6370 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
6372 _impl_.variable_.InternalSwap(&other->_impl_.variable_);
6373 _impl_.constraint_.InternalSwap(&other->_impl_.constraint_);
6374 _impl_.general_constraint_.InternalSwap(&other->_impl_.general_constraint_);
6375 _impl_.annotation_.InternalSwap(&other->_impl_.annotation_);
6376 ::_pbi::ArenaStringPtr::InternalSwap(&
_impl_.name_, &other->_impl_.name_, arena);
6377 ::google::protobuf::internal::memswap<
6381 reinterpret_cast<char*
>(&
_impl_.solution_hint_),
6382 reinterpret_cast<char*
>(&other->_impl_.solution_hint_));
6386 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
6390class OptionalDouble::_Internal {
6393 decltype(::std::declval<OptionalDouble>()._impl_._has_bits_);
6394 static constexpr ::int32_t kHasBitsOffset =
6395 8 * PROTOBUF_FIELD_OFFSET(OptionalDouble, _impl_._has_bits_);
6399#if defined(PROTOBUF_CUSTOM_VTABLE)
6402 : ::google::protobuf::Message(arena) {
6409#if defined(PROTOBUF_CUSTOM_VTABLE)
6412 : ::google::protobuf::Message(arena),
6415 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
6416 from._internal_metadata_);
6418PROTOBUF_NDEBUG_INLINE OptionalDouble::Impl_::Impl_(
6419 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
6420 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
6421 : _cached_size_{0} {}
6423inline void OptionalDouble::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
6424 new (&
_impl_) Impl_(internal_visibility(), arena);
6431inline void OptionalDouble::SharedDtor(
MessageLite& self) {
6433 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
6434 this_.CheckHasBitConsistency();
6436 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
6437 ABSL_DCHECK(this_.GetArena() ==
nullptr);
6438 this_._impl_.~Impl_();
6441inline void* PROTOBUF_NONNULL OptionalDouble::PlacementNew_(
6442 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
6443 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
6446constexpr auto OptionalDouble::InternalNewImpl_() {
6447 return ::google::protobuf::internal::MessageCreator::ZeroInit(
sizeof(
OptionalDouble),
6451 return ::google::protobuf::internal::ClassDataFull{
6452 ::google::protobuf::internal::ClassData{
6457 &OptionalDouble::MergeImpl,
6458 ::google::protobuf::Message::GetNewImpl<OptionalDouble>(),
6459#if defined(PROTOBUF_CUSTOM_VTABLE)
6460 &OptionalDouble::SharedDtor,
6467 &OptionalDouble::kDescriptorMethods,
6473PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
6477PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
6478OptionalDouble::GetClassData()
const {
6483PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
6484const ::_pbi::TcParseTable<0, 1, 0, 0, 2>
6485OptionalDouble::_table_ = {
6490 offsetof(
decltype(_table_), field_lookup_table),
6492 offsetof(
decltype(_table_), field_entries),
6495 offsetof(
decltype(_table_), field_names),
6498 ::_pbi::TcParser::GenericFallback,
6499 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
6500 ::_pbi::TcParser::GetTable<::operations_research::OptionalDouble>(),
6504 {::_pbi::TcParser::FastF64S1,
6519 ::google::protobuf::internal::TSanWrite(&
_impl_);
6520 ::uint32_t cached_has_bits = 0;
6522 (void) cached_has_bits;
6525 _impl_._has_bits_.Clear();
6526 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
6529#if defined(PROTOBUF_CUSTOM_VTABLE)
6531 const ::google::protobuf::MessageLite&
base, ::uint8_t* PROTOBUF_NONNULL target,
6532 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
6536 ::uint8_t* PROTOBUF_NONNULL target,
6537 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
6540 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
6541 this_.CheckHasBitConsistency();
6544 ::uint32_t cached_has_bits = 0;
6545 (void)cached_has_bits;
6547 cached_has_bits = this_.
_impl_._has_bits_[0];
6549 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
6550 target = stream->EnsureSpace(target);
6551 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
6552 1, this_._internal_value(), target);
6555 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
6557 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
6558 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
6564#if defined(PROTOBUF_CUSTOM_VTABLE)
6572 ::size_t total_size = 0;
6574 ::uint32_t cached_has_bits = 0;
6576 (void)cached_has_bits;
6578 cached_has_bits = this_._impl_._has_bits_[0];
6579 total_size +=
static_cast<bool>(0x00000001U & cached_has_bits) * 9;
6580 return this_.MaybeComputeUnknownFieldsSize(total_size,
6581 &this_._impl_._cached_size_);
6584void OptionalDouble::MergeImpl(::google::protobuf::MessageLite& to_msg,
6585 const ::google::protobuf::MessageLite& from_msg) {
6589 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
6590 from.CheckHasBitConsistency();
6593 ABSL_DCHECK_NE(&from, _this);
6594 ::uint32_t cached_has_bits = 0;
6595 (void)cached_has_bits;
6597 cached_has_bits = from.
_impl_._has_bits_[0];
6598 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
6601 _this->
_impl_._has_bits_[0] |= cached_has_bits;
6602 _this->_internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
6603 from._internal_metadata_);
6608 if (&from ==
this)
return;
6614void OptionalDouble::InternalSwap(
OptionalDouble* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
6616 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
6617 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
6622 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
6629 decltype(::std::declval<MPSolverCommonParameters>()._impl_._has_bits_);
6630 static constexpr ::int32_t kHasBitsOffset =
6635#if defined(PROTOBUF_CUSTOM_VTABLE)
6638 : ::google::protobuf::Message(arena) {
6643PROTOBUF_NDEBUG_INLINE MPSolverCommonParameters::Impl_::Impl_(
6644 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
6645 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
6646 [[maybe_unused]] const ::operations_research::MPSolverCommonParameters& from_msg)
6647 : _has_bits_{from._has_bits_},
6651 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
6653#if defined(PROTOBUF_CUSTOM_VTABLE)
6656 : ::google::protobuf::Message(arena) {
6660 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
6661 from._internal_metadata_);
6662 new (&
_impl_) Impl_(internal_visibility(), arena, from.
_impl_, from);
6663 ::uint32_t cached_has_bits =
_impl_._has_bits_[0];
6664 _impl_.relative_mip_gap_ = (CheckHasBit(cached_has_bits, 0x00000001U))
6665 ? ::google::protobuf::Message::CopyConstruct(arena, *from.
_impl_.relative_mip_gap_)
6667 _impl_.primal_tolerance_ = (CheckHasBit(cached_has_bits, 0x00000002U))
6668 ? ::google::protobuf::Message::CopyConstruct(arena, *from.
_impl_.primal_tolerance_)
6670 _impl_.dual_tolerance_ = (CheckHasBit(cached_has_bits, 0x00000004U))
6671 ? ::google::protobuf::Message::CopyConstruct(arena, *from.
_impl_.dual_tolerance_)
6673 ::memcpy(
reinterpret_cast<char*
>(&
_impl_) +
6674 offsetof(Impl_, lp_algorithm_),
6675 reinterpret_cast<const char*
>(&from.
_impl_) +
6676 offsetof(Impl_, lp_algorithm_),
6677 offsetof(Impl_, scaling_) -
6678 offsetof(Impl_, lp_algorithm_) +
6679 sizeof(Impl_::scaling_));
6683PROTOBUF_NDEBUG_INLINE MPSolverCommonParameters::Impl_::Impl_(
6684 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
6685 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
6686 : _cached_size_{0} {}
6688inline void MPSolverCommonParameters::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
6689 new (&
_impl_) Impl_(internal_visibility(), arena);
6690 ::memset(
reinterpret_cast<char*
>(&
_impl_) +
6691 offsetof(Impl_, relative_mip_gap_),
6693 offsetof(Impl_, scaling_) -
6694 offsetof(Impl_, relative_mip_gap_) +
6695 sizeof(Impl_::scaling_));
6701inline void MPSolverCommonParameters::SharedDtor(
MessageLite& self) {
6703 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
6704 this_.CheckHasBitConsistency();
6706 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
6707 ABSL_DCHECK(this_.GetArena() ==
nullptr);
6708 delete this_._impl_.relative_mip_gap_;
6709 delete this_._impl_.primal_tolerance_;
6710 delete this_._impl_.dual_tolerance_;
6711 this_._impl_.~Impl_();
6714inline void* PROTOBUF_NONNULL MPSolverCommonParameters::PlacementNew_(
6715 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
6716 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
6719constexpr auto MPSolverCommonParameters::InternalNewImpl_() {
6724 return ::google::protobuf::internal::ClassDataFull{
6725 ::google::protobuf::internal::ClassData{
6730 &MPSolverCommonParameters::MergeImpl,
6731 ::google::protobuf::Message::GetNewImpl<MPSolverCommonParameters>(),
6732#if defined(PROTOBUF_CUSTOM_VTABLE)
6733 &MPSolverCommonParameters::SharedDtor,
6740 &MPSolverCommonParameters::kDescriptorMethods,
6746PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
6750PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
6751MPSolverCommonParameters::GetClassData()
const {
6756PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
6757const ::_pbi::TcParseTable<3, 6, 6, 0, 2>
6758MPSolverCommonParameters::_table_ = {
6763 offsetof(
decltype(_table_), field_lookup_table),
6765 offsetof(
decltype(_table_), field_entries),
6768 offsetof(
decltype(_table_), aux_entries),
6771 ::_pbi::TcParser::GenericFallback,
6772 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
6773 ::_pbi::TcParser::GetTable<::operations_research::MPSolverCommonParameters>(),
6776 {::_pbi::TcParser::MiniParse, {}},
6778 {::_pbi::TcParser::FastMtS1,
6782 {::_pbi::TcParser::FastMtS1,
6786 {::_pbi::TcParser::FastMtS1,
6790 {::_pbi::TcParser::FastEr0S1,
6794 {::_pbi::TcParser::FastEvS1,
6797 {::_pbi::TcParser::MiniParse, {}},
6799 {::_pbi::TcParser::FastEvS1,
6819 {::_pbi::TcParser::GetTable<::operations_research::OptionalDouble>()},
6820 {::_pbi::TcParser::GetTable<::operations_research::OptionalDouble>()},
6821 {::_pbi::TcParser::GetTable<::operations_research::OptionalDouble>()},
6831 ::google::protobuf::internal::TSanWrite(&
_impl_);
6832 ::uint32_t cached_has_bits = 0;
6834 (void) cached_has_bits;
6836 cached_has_bits =
_impl_._has_bits_[0];
6837 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
6838 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
6839 ABSL_DCHECK(
_impl_.relative_mip_gap_ !=
nullptr);
6840 _impl_.relative_mip_gap_->Clear();
6842 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
6843 ABSL_DCHECK(
_impl_.primal_tolerance_ !=
nullptr);
6846 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
6847 ABSL_DCHECK(
_impl_.dual_tolerance_ !=
nullptr);
6851 if (BatchCheckHasBit(cached_has_bits, 0x00000038U)) {
6852 ::memset(&
_impl_.lp_algorithm_, 0,
static_cast<::
size_t>(
6853 reinterpret_cast<char*
>(&
_impl_.scaling_) -
6854 reinterpret_cast<char*
>(&
_impl_.lp_algorithm_)) +
sizeof(
_impl_.scaling_));
6856 _impl_._has_bits_.Clear();
6857 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
6860#if defined(PROTOBUF_CUSTOM_VTABLE)
6862 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
6863 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
6867 ::uint8_t* PROTOBUF_NONNULL target,
6868 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
6871 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
6872 this_.CheckHasBitConsistency();
6875 ::uint32_t cached_has_bits = 0;
6876 (void)cached_has_bits;
6878 cached_has_bits = this_._impl_._has_bits_[0];
6880 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
6881 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
6882 1, *this_._impl_.relative_mip_gap_, this_._impl_.relative_mip_gap_->GetCachedSize(), target,
6887 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
6888 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
6889 2, *this_._impl_.primal_tolerance_, this_._impl_.primal_tolerance_->GetCachedSize(), target,
6894 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
6895 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
6896 3, *this_._impl_.dual_tolerance_, this_._impl_.dual_tolerance_->GetCachedSize(), target,
6901 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
6902 target = stream->EnsureSpace(target);
6903 target = ::_pbi::WireFormatLite::WriteEnumToArray(
6904 4, this_._internal_lp_algorithm(), target);
6908 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
6909 target = stream->EnsureSpace(target);
6910 target = ::_pbi::WireFormatLite::WriteEnumToArray(
6911 5, this_._internal_presolve(), target);
6915 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
6916 target = stream->EnsureSpace(target);
6917 target = ::_pbi::WireFormatLite::WriteEnumToArray(
6918 7, this_._internal_scaling(), target);
6921 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
6923 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
6924 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
6930#if defined(PROTOBUF_CUSTOM_VTABLE)
6938 ::size_t total_size = 0;
6940 ::uint32_t cached_has_bits = 0;
6942 (void)cached_has_bits;
6944 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
6945 cached_has_bits = this_._impl_._has_bits_[0];
6946 if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) {
6948 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
6950 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.relative_mip_gap_);
6953 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
6955 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.primal_tolerance_);
6958 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
6960 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.dual_tolerance_);
6963 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
6965 ::_pbi::WireFormatLite::EnumSize(this_._internal_lp_algorithm());
6968 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
6970 ::_pbi::WireFormatLite::EnumSize(this_._internal_presolve());
6973 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
6975 ::_pbi::WireFormatLite::EnumSize(this_._internal_scaling());
6978 return this_.MaybeComputeUnknownFieldsSize(total_size,
6979 &this_._impl_._cached_size_);
6982void MPSolverCommonParameters::MergeImpl(::google::protobuf::MessageLite& to_msg,
6983 const ::google::protobuf::MessageLite& from_msg) {
6987 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
6988 from.CheckHasBitConsistency();
6992 ABSL_DCHECK_NE(&from, _this);
6993 ::uint32_t cached_has_bits = 0;
6994 (void)cached_has_bits;
6996 cached_has_bits = from.
_impl_._has_bits_[0];
6997 if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) {
6998 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
6999 ABSL_DCHECK(from.
_impl_.relative_mip_gap_ !=
nullptr);
7000 if (_this->
_impl_.relative_mip_gap_ ==
nullptr) {
7001 _this->
_impl_.relative_mip_gap_ = ::google::protobuf::Message::CopyConstruct(arena, *from.
_impl_.relative_mip_gap_);
7006 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
7007 ABSL_DCHECK(from.
_impl_.primal_tolerance_ !=
nullptr);
7008 if (_this->
_impl_.primal_tolerance_ ==
nullptr) {
7009 _this->
_impl_.primal_tolerance_ = ::google::protobuf::Message::CopyConstruct(arena, *from.
_impl_.primal_tolerance_);
7014 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
7015 ABSL_DCHECK(from.
_impl_.dual_tolerance_ !=
nullptr);
7016 if (_this->
_impl_.dual_tolerance_ ==
nullptr) {
7017 _this->
_impl_.dual_tolerance_ = ::google::protobuf::Message::CopyConstruct(arena, *from.
_impl_.dual_tolerance_);
7022 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
7023 _this->
_impl_.lp_algorithm_ = from.
_impl_.lp_algorithm_;
7025 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
7028 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
7032 _this->
_impl_._has_bits_[0] |= cached_has_bits;
7033 _this->_internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
7034 from._internal_metadata_);
7039 if (&from ==
this)
return;
7047 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
7048 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
7049 ::google::protobuf::internal::memswap<
7053 reinterpret_cast<char*
>(&
_impl_.relative_mip_gap_),
7054 reinterpret_cast<char*
>(&other->_impl_.relative_mip_gap_));
7058 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
7062#if defined(PROTOBUF_CUSTOM_VTABLE)
7071inline void* PROTOBUF_NONNULL MPModelDeltaProto_VariableOverridesEntry_DoNotUse::PlacementNew_(
7072 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
7073 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
7076constexpr auto MPModelDeltaProto_VariableOverridesEntry_DoNotUse::InternalNewImpl_() {
7081 return ::google::protobuf::internal::ClassDataFull{
7082 ::google::protobuf::internal::ClassData{
7087 &MPModelDeltaProto_VariableOverridesEntry_DoNotUse::MergeImpl,
7088 ::google::protobuf::Message::GetNewImpl<MPModelDeltaProto_VariableOverridesEntry_DoNotUse>(),
7089#if defined(PROTOBUF_CUSTOM_VTABLE)
7090 &MPModelDeltaProto_VariableOverridesEntry_DoNotUse::SharedDtor,
7091 static_cast<void (::google::protobuf::MessageLite::*)()
>(&MPModelDeltaProto_VariableOverridesEntry_DoNotUse::ClearImpl),
7092 ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl
7098 &MPModelDeltaProto_VariableOverridesEntry_DoNotUse::kDescriptorMethods,
7104PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
7108PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
7109MPModelDeltaProto_VariableOverridesEntry_DoNotUse::GetClassData()
const {
7114PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
7115const ::_pbi::TcParseTable<1, 2, 1, 0, 2>
7116MPModelDeltaProto_VariableOverridesEntry_DoNotUse::_table_ = {
7121 offsetof(
decltype(_table_), field_lookup_table),
7123 offsetof(
decltype(_table_), field_entries),
7126 offsetof(
decltype(_table_), aux_entries),
7129 ::_pbi::TcParser::DiscardEverythingFallback,
7130 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
7131 ::_pbi::TcParser::GetTable<::operations_research::MPModelDeltaProto_VariableOverridesEntry_DoNotUse>(),
7135 {::_pbi::TcParser::FastMtS1,
7137 PROTOBUF_FIELD_OFFSET(MPModelDeltaProto_VariableOverridesEntry_DoNotUse, _impl_.value_)}},
7139 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MPModelDeltaProto_VariableOverridesEntry_DoNotUse, _impl_.key_), 1>(),
7141 PROTOBUF_FIELD_OFFSET(MPModelDeltaProto_VariableOverridesEntry_DoNotUse, _impl_.key_)}},
7151 {::_pbi::TcParser::GetTable<::operations_research::MPVariableProto>()},
7158#if defined(PROTOBUF_CUSTOM_VTABLE)
7161MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse::MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
7164MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse::MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse() : SuperType() {}
7165MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse::MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {}
7167inline void* PROTOBUF_NONNULL MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse::PlacementNew_(
7168 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
7169 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
7170 return ::new (mem) MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse(arena);
7172constexpr auto MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse::InternalNewImpl_() {
7173 return ::google::protobuf::internal::MessageCreator::ZeroInit(
sizeof(MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse),
7174 alignof(MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse));
7176constexpr auto MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse::InternalGenerateClassData_() {
7177 return ::google::protobuf::internal::ClassDataFull{
7178 ::google::protobuf::internal::ClassData{
7183 &MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse::MergeImpl,
7184 ::google::protobuf::Message::GetNewImpl<MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse>(),
7185#if defined(PROTOBUF_CUSTOM_VTABLE)
7186 &MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse::SharedDtor,
7187 static_cast<void (::google::protobuf::MessageLite::*)()
>(&MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse::ClearImpl),
7188 ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl
7194 &MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse::kDescriptorMethods,
7200PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
7202 MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse::InternalGenerateClassData_();
7204PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
7205MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse::GetClassData()
const {
7206 ::google::protobuf::internal::PrefetchToLocalCache(&MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse_class_data_);
7210PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
7211const ::_pbi::TcParseTable<1, 2, 1, 0, 2>
7212MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse::_table_ = {
7214 PROTOBUF_FIELD_OFFSET(MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse, _impl_._has_bits_),
7217 offsetof(
decltype(_table_), field_lookup_table),
7219 offsetof(
decltype(_table_), field_entries),
7222 offsetof(
decltype(_table_), aux_entries),
7225 ::_pbi::TcParser::DiscardEverythingFallback,
7226 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
7227 ::_pbi::TcParser::GetTable<::operations_research::MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse>(),
7231 {::_pbi::TcParser::FastMtS1,
7233 PROTOBUF_FIELD_OFFSET(MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse, _impl_.value_)}},
7235 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse, _impl_.key_), 1>(),
7237 PROTOBUF_FIELD_OFFSET(MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse, _impl_.key_)}},
7242 {PROTOBUF_FIELD_OFFSET(MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
7244 {PROTOBUF_FIELD_OFFSET(MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
7247 {::_pbi::TcParser::GetTable<::operations_research::MPConstraintProto>()},
7254class MPModelDeltaProto::_Internal {
7257 decltype(::std::declval<MPModelDeltaProto>()._impl_._has_bits_);
7258 static constexpr ::int32_t kHasBitsOffset =
7259 8 * PROTOBUF_FIELD_OFFSET(MPModelDeltaProto, _impl_._has_bits_);
7262MPModelDeltaProto::MPModelDeltaProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
7263#if defined(PROTOBUF_CUSTOM_VTABLE)
7266 : ::google::protobuf::Message(arena) {
7271PROTOBUF_NDEBUG_INLINE MPModelDeltaProto::Impl_::Impl_(
7272 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
7273 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
7274 [[maybe_unused]] const ::operations_research::MPModelDeltaProto& from_msg)
7275 : _has_bits_{from._has_bits_},
7277 baseline_model_file_path_(arena, from.baseline_model_file_path_),
7278 variable_overrides_{visibility, arena, from.variable_overrides_},
7279 constraint_overrides_{visibility, arena, from.constraint_overrides_} {}
7282 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
7284#if defined(PROTOBUF_CUSTOM_VTABLE)
7287 : ::google::protobuf::Message(arena) {
7291 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
7292 from._internal_metadata_);
7293 new (&
_impl_) Impl_(internal_visibility(), arena, from.
_impl_, from);
7297PROTOBUF_NDEBUG_INLINE MPModelDeltaProto::Impl_::Impl_(
7298 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
7299 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
7301 baseline_model_file_path_(arena),
7302 variable_overrides_{visibility, arena},
7303 constraint_overrides_{visibility, arena} {}
7305inline void MPModelDeltaProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
7306 new (&
_impl_) Impl_(internal_visibility(), arena);
7312inline void MPModelDeltaProto::SharedDtor(
MessageLite& self) {
7314 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
7315 this_.CheckHasBitConsistency();
7317 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
7318 ABSL_DCHECK(this_.GetArena() ==
nullptr);
7319 this_._impl_.baseline_model_file_path_.Destroy();
7320 this_._impl_.~Impl_();
7323inline void* PROTOBUF_NONNULL MPModelDeltaProto::PlacementNew_(
7324 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
7325 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
7328constexpr auto MPModelDeltaProto::InternalNewImpl_() {
7329 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
7332 InternalGetArenaOffset(
7336 InternalGetArenaOffset(
7339 if (arena_bits.has_value()) {
7340 return ::google::protobuf::internal::MessageCreator::CopyInit(
7341 sizeof(MPModelDeltaProto), alignof(MPModelDeltaProto), *arena_bits);
7343 return ::google::protobuf::internal::MessageCreator(&MPModelDeltaProto::PlacementNew_,
7344 sizeof(MPModelDeltaProto),
7345 alignof(MPModelDeltaProto));
7349 return ::google::protobuf::internal::ClassDataFull{
7350 ::google::protobuf::internal::ClassData{
7355 &MPModelDeltaProto::MergeImpl,
7356 ::google::protobuf::Message::GetNewImpl<MPModelDeltaProto>(),
7357#if defined(PROTOBUF_CUSTOM_VTABLE)
7358 &MPModelDeltaProto::SharedDtor,
7365 &MPModelDeltaProto::kDescriptorMethods,
7371PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
7375PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
7376MPModelDeltaProto::GetClassData()
const {
7381PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
7382const ::_pbi::TcParseTable<0, 3, 4, 0, 2>
7383MPModelDeltaProto::_table_ = {
7388 offsetof(
decltype(_table_), field_lookup_table),
7390 offsetof(
decltype(_table_), field_entries),
7393 offsetof(
decltype(_table_), aux_entries),
7396 ::_pbi::TcParser::GenericFallback,
7397 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
7398 ::_pbi::TcParser::GetTable<::operations_research::MPModelDeltaProto>(),
7402 {::_pbi::TcParser::FastBS1,
7416 {::_pbi::TcParser::GetMapAuxInfo(
7418 {::_pbi::TcParser::GetTable<::operations_research::MPVariableProto>()},
7419 {::_pbi::TcParser::GetMapAuxInfo(
7421 {::_pbi::TcParser::GetTable<::operations_research::MPConstraintProto>()},
7428 ::google::protobuf::internal::TSanWrite(&
_impl_);
7429 ::uint32_t cached_has_bits = 0;
7431 (void) cached_has_bits;
7433 cached_has_bits =
_impl_._has_bits_[0];
7434 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
7435 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
7436 _impl_.baseline_model_file_path_.ClearNonDefaultToEmpty();
7438 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
7439 _impl_.variable_overrides_.Clear();
7441 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
7442 _impl_.constraint_overrides_.Clear();
7445 _impl_._has_bits_.Clear();
7446 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
7449#if defined(PROTOBUF_CUSTOM_VTABLE)
7451 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
7452 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
7456 ::uint8_t* PROTOBUF_NONNULL target,
7457 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
7460 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
7461 this_.CheckHasBitConsistency();
7464 ::uint32_t cached_has_bits = 0;
7465 (void)cached_has_bits;
7467 cached_has_bits = this_._impl_._has_bits_[0];
7469 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
7470 const ::std::string& _s = this_._internal_baseline_model_file_path();
7471 target = stream->WriteStringMaybeAliased(1, _s, target);
7475 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
7476 if (!this_._internal_variable_overrides().empty()) {
7477 using MapType = ::google::protobuf::Map<::int32_t, ::operations_research::MPVariableProto>;
7479 _pbi::WireFormatLite::TYPE_INT32,
7480 _pbi::WireFormatLite::TYPE_MESSAGE>;
7481 const auto& field = this_._internal_variable_overrides();
7483 if (stream->IsSerializationDeterministic() && field.size() > 1) {
7484 for (
const auto& entry : ::google::protobuf::internal::MapSorterFlat<MapType>(field)) {
7485 target = WireHelper::InternalSerialize(
7486 2, entry.first, entry.second, target, stream);
7489 for (
const auto& entry : field) {
7490 target = WireHelper::InternalSerialize(
7491 2, entry.first, entry.second, target, stream);
7498 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
7499 if (!this_._internal_constraint_overrides().empty()) {
7500 using MapType = ::google::protobuf::Map<::int32_t, ::operations_research::MPConstraintProto>;
7502 _pbi::WireFormatLite::TYPE_INT32,
7503 _pbi::WireFormatLite::TYPE_MESSAGE>;
7504 const auto& field = this_._internal_constraint_overrides();
7506 if (stream->IsSerializationDeterministic() && field.size() > 1) {
7507 for (
const auto& entry : ::google::protobuf::internal::MapSorterFlat<MapType>(field)) {
7508 target = WireHelper::InternalSerialize(
7509 3, entry.first, entry.second, target, stream);
7512 for (
const auto& entry : field) {
7513 target = WireHelper::InternalSerialize(
7514 3, entry.first, entry.second, target, stream);
7520 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
7522 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
7523 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
7529#if defined(PROTOBUF_CUSTOM_VTABLE)
7537 ::size_t total_size = 0;
7539 ::uint32_t cached_has_bits = 0;
7541 (void)cached_has_bits;
7543 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
7544 cached_has_bits = this_._impl_._has_bits_[0];
7545 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
7547 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
7548 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
7549 this_._internal_baseline_model_file_path());
7552 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
7554 1 * ::google::protobuf::internal::FromIntSize(this_._internal_variable_overrides_size());
7555 for (
const auto& entry : this_._internal_variable_overrides()) {
7557 _pbi::WireFormatLite::TYPE_INT32,
7558 _pbi::WireFormatLite::TYPE_MESSAGE>
::ByteSizeLong(entry.first, entry.second);
7562 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
7564 1 * ::google::protobuf::internal::FromIntSize(this_._internal_constraint_overrides_size());
7565 for (
const auto& entry : this_._internal_constraint_overrides()) {
7567 _pbi::WireFormatLite::TYPE_INT32,
7568 _pbi::WireFormatLite::TYPE_MESSAGE>
::ByteSizeLong(entry.first, entry.second);
7572 return this_.MaybeComputeUnknownFieldsSize(total_size,
7573 &this_._impl_._cached_size_);
7576void MPModelDeltaProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
7577 const ::google::protobuf::MessageLite& from_msg) {
7581 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
7582 from.CheckHasBitConsistency();
7585 ABSL_DCHECK_NE(&from, _this);
7586 ::uint32_t cached_has_bits = 0;
7587 (void)cached_has_bits;
7589 cached_has_bits = from.
_impl_._has_bits_[0];
7590 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
7591 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
7592 _this->_internal_set_baseline_model_file_path(from._internal_baseline_model_file_path());
7594 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
7595 _this->
_impl_.variable_overrides_.MergeFrom(from.
_impl_.variable_overrides_);
7597 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
7598 _this->
_impl_.constraint_overrides_.MergeFrom(from.
_impl_.constraint_overrides_);
7601 _this->
_impl_._has_bits_[0] |= cached_has_bits;
7602 _this->_internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
7603 from._internal_metadata_);
7608 if (&from ==
this)
return;
7614void MPModelDeltaProto::InternalSwap(
MPModelDeltaProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
7616 auto* arena = GetArena();
7617 ABSL_DCHECK_EQ(arena, other->GetArena());
7618 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
7619 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
7620 ::_pbi::ArenaStringPtr::InternalSwap(&
_impl_.baseline_model_file_path_, &other->_impl_.baseline_model_file_path_, arena);
7621 _impl_.variable_overrides_.InternalSwap(&other->_impl_.variable_overrides_);
7622 _impl_.constraint_overrides_.InternalSwap(&other->_impl_.constraint_overrides_);
7626 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
7633 decltype(::std::declval<MPModelRequest>()._impl_._has_bits_);
7634 static constexpr ::int32_t kHasBitsOffset =
7639#if defined(PROTOBUF_CUSTOM_VTABLE)
7642 : ::google::protobuf::Message(arena) {
7647PROTOBUF_NDEBUG_INLINE MPModelRequest::Impl_::Impl_(
7648 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
7649 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
7650 [[maybe_unused]] const ::operations_research::MPModelRequest& from_msg)
7651 : _has_bits_{from._has_bits_},
7653 solver_specific_parameters_(arena, from.solver_specific_parameters_) {}
7656 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
7658#if defined(PROTOBUF_CUSTOM_VTABLE)
7661 : ::google::protobuf::Message(arena) {
7665 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
7666 from._internal_metadata_);
7667 new (&
_impl_) Impl_(internal_visibility(), arena, from.
_impl_, from);
7668 ::uint32_t cached_has_bits =
_impl_._has_bits_[0];
7669 _impl_.model_ = (CheckHasBit(cached_has_bits, 0x00000002U))
7670 ? ::google::protobuf::Message::CopyConstruct(arena, *from.
_impl_.model_)
7672 _impl_.model_delta_ = (CheckHasBit(cached_has_bits, 0x00000004U))
7673 ? ::google::protobuf::Message::CopyConstruct(arena, *from.
_impl_.model_delta_)
7675 ::memcpy(
reinterpret_cast<char*
>(&
_impl_) +
7676 offsetof(Impl_, solver_time_limit_seconds_),
7677 reinterpret_cast<const char*
>(&from.
_impl_) +
7678 offsetof(Impl_, solver_time_limit_seconds_),
7679 offsetof(Impl_, solver_type_) -
7680 offsetof(Impl_, solver_time_limit_seconds_) +
7681 sizeof(Impl_::solver_type_));
7685PROTOBUF_NDEBUG_INLINE MPModelRequest::Impl_::Impl_(
7686 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
7687 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
7689 solver_specific_parameters_(arena),
7692inline void MPModelRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
7693 new (&
_impl_) Impl_(internal_visibility(), arena);
7694 ::memset(
reinterpret_cast<char*
>(&
_impl_) +
7695 offsetof(Impl_, model_),
7697 offsetof(Impl_, populate_additional_solutions_up_to_) -
7698 offsetof(Impl_, model_) +
7699 sizeof(Impl_::populate_additional_solutions_up_to_));
7705inline void MPModelRequest::SharedDtor(
MessageLite& self) {
7707 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
7708 this_.CheckHasBitConsistency();
7710 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
7711 ABSL_DCHECK(this_.GetArena() ==
nullptr);
7712 this_._impl_.solver_specific_parameters_.Destroy();
7713 delete this_._impl_.model_;
7714 delete this_._impl_.model_delta_;
7715 this_._impl_.~Impl_();
7718inline void* PROTOBUF_NONNULL MPModelRequest::PlacementNew_(
7719 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
7720 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
7723constexpr auto MPModelRequest::InternalNewImpl_() {
7724 return ::google::protobuf::internal::MessageCreator::CopyInit(
sizeof(
MPModelRequest),
7728 return ::google::protobuf::internal::ClassDataFull{
7729 ::google::protobuf::internal::ClassData{
7734 &MPModelRequest::MergeImpl,
7735 ::google::protobuf::Message::GetNewImpl<MPModelRequest>(),
7736#if defined(PROTOBUF_CUSTOM_VTABLE)
7737 &MPModelRequest::SharedDtor,
7744 &MPModelRequest::kDescriptorMethods,
7750PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
7754PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
7755MPModelRequest::GetClassData()
const {
7760PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
7761const ::_pbi::TcParseTable<4, 8, 3, 0, 2>
7762MPModelRequest::_table_ = {
7767 offsetof(
decltype(_table_), field_lookup_table),
7769 offsetof(
decltype(_table_), field_entries),
7772 offsetof(
decltype(_table_), aux_entries),
7775 ::_pbi::TcParser::GenericFallback,
7776 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
7777 ::_pbi::TcParser::GetTable<::operations_research::MPModelRequest>(),
7780 {::_pbi::TcParser::MiniParse, {}},
7782 {::_pbi::TcParser::FastMtS1,
7786 {::_pbi::TcParser::FastEvS1,
7790 {::_pbi::TcParser::FastF64S1,
7794 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(
MPModelRequest,
_impl_.enable_internal_solver_output_), 4>(),
7798 {::_pbi::TcParser::FastBS1,
7801 {::_pbi::TcParser::MiniParse, {}},
7802 {::_pbi::TcParser::MiniParse, {}},
7804 {::_pbi::TcParser::FastMtS1,
7808 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(
MPModelRequest,
_impl_.ignore_solver_specific_parameters_failure_), 5>(),
7811 {::_pbi::TcParser::MiniParse, {}},
7813 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(
MPModelRequest,
_impl_.populate_additional_solutions_up_to_), 6>(),
7816 {::_pbi::TcParser::MiniParse, {}},
7817 {::_pbi::TcParser::MiniParse, {}},
7818 {::_pbi::TcParser::MiniParse, {}},
7819 {::_pbi::TcParser::MiniParse, {}},
7841 {::_pbi::TcParser::GetTable<::operations_research::MPModelProto>()},
7842 {::_pbi::TcParser::GetTable<::operations_research::MPModelDeltaProto>()},
7850 ::google::protobuf::internal::TSanWrite(&
_impl_);
7851 ::uint32_t cached_has_bits = 0;
7853 (void) cached_has_bits;
7855 cached_has_bits =
_impl_._has_bits_[0];
7856 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
7857 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
7858 _impl_.solver_specific_parameters_.ClearNonDefaultToEmpty();
7860 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
7861 ABSL_DCHECK(
_impl_.model_ !=
nullptr);
7864 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
7865 ABSL_DCHECK(
_impl_.model_delta_ !=
nullptr);
7866 _impl_.model_delta_->Clear();
7869 if (BatchCheckHasBit(cached_has_bits, 0x000000f8U)) {
7870 ::memset(&
_impl_.solver_time_limit_seconds_, 0,
static_cast<::
size_t>(
7871 reinterpret_cast<char*
>(&
_impl_.populate_additional_solutions_up_to_) -
7872 reinterpret_cast<char*
>(&
_impl_.solver_time_limit_seconds_)) +
sizeof(
_impl_.populate_additional_solutions_up_to_));
7875 _impl_._has_bits_.Clear();
7876 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
7879#if defined(PROTOBUF_CUSTOM_VTABLE)
7881 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
7882 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
7886 ::uint8_t* PROTOBUF_NONNULL target,
7887 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
7890 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
7891 this_.CheckHasBitConsistency();
7894 ::uint32_t cached_has_bits = 0;
7895 (void)cached_has_bits;
7897 cached_has_bits = this_._impl_._has_bits_[0];
7899 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
7900 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
7901 1, *this_._impl_.model_, this_._impl_.model_->GetCachedSize(), target,
7906 if (CheckHasBit(cached_has_bits, 0x00000080U)) {
7907 target = stream->EnsureSpace(target);
7908 target = ::_pbi::WireFormatLite::WriteEnumToArray(
7909 2, this_._internal_solver_type(), target);
7913 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
7914 target = stream->EnsureSpace(target);
7915 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
7916 3, this_._internal_solver_time_limit_seconds(), target);
7920 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
7921 target = stream->EnsureSpace(target);
7922 target = ::_pbi::WireFormatLite::WriteBoolToArray(
7923 4, this_._internal_enable_internal_solver_output(), target);
7927 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
7928 const ::std::string& _s = this_._internal_solver_specific_parameters();
7929 target = stream->WriteStringMaybeAliased(5, _s, target);
7933 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
7934 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
7935 8, *this_._impl_.model_delta_, this_._impl_.model_delta_->GetCachedSize(), target,
7940 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
7941 target = stream->EnsureSpace(target);
7942 target = ::_pbi::WireFormatLite::WriteBoolToArray(
7943 9, this_._internal_ignore_solver_specific_parameters_failure(), target);
7947 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
7949 ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<11>(
7950 stream, this_._internal_populate_additional_solutions_up_to(), target);
7953 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
7955 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
7956 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
7962#if defined(PROTOBUF_CUSTOM_VTABLE)
7970 ::size_t total_size = 0;
7972 ::uint32_t cached_has_bits = 0;
7974 (void)cached_has_bits;
7976 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
7977 cached_has_bits = this_._impl_._has_bits_[0];
7978 total_size +=
static_cast<bool>(0x00000008U & cached_has_bits) * 9;
7979 total_size += ::absl::popcount(0x00000030U & cached_has_bits) * 2;
7980 if (BatchCheckHasBit(cached_has_bits, 0x000000c7U)) {
7982 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
7983 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
7984 this_._internal_solver_specific_parameters());
7987 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
7989 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.model_);
7992 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
7994 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.model_delta_);
7997 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
7998 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
7999 this_._internal_populate_additional_solutions_up_to());
8002 if (CheckHasBit(cached_has_bits, 0x00000080U)) {
8004 ::_pbi::WireFormatLite::EnumSize(this_._internal_solver_type());
8007 return this_.MaybeComputeUnknownFieldsSize(total_size,
8008 &this_._impl_._cached_size_);
8011void MPModelRequest::MergeImpl(::google::protobuf::MessageLite& to_msg,
8012 const ::google::protobuf::MessageLite& from_msg) {
8016 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
8017 from.CheckHasBitConsistency();
8021 ABSL_DCHECK_NE(&from, _this);
8022 ::uint32_t cached_has_bits = 0;
8023 (void)cached_has_bits;
8025 cached_has_bits = from.
_impl_._has_bits_[0];
8026 if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
8027 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
8028 _this->_internal_set_solver_specific_parameters(from._internal_solver_specific_parameters());
8030 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
8031 ABSL_DCHECK(from.
_impl_.model_ !=
nullptr);
8032 if (_this->
_impl_.model_ ==
nullptr) {
8033 _this->
_impl_.model_ = ::google::protobuf::Message::CopyConstruct(arena, *from.
_impl_.model_);
8038 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
8039 ABSL_DCHECK(from.
_impl_.model_delta_ !=
nullptr);
8040 if (_this->
_impl_.model_delta_ ==
nullptr) {
8041 _this->
_impl_.model_delta_ = ::google::protobuf::Message::CopyConstruct(arena, *from.
_impl_.model_delta_);
8046 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
8047 _this->
_impl_.solver_time_limit_seconds_ = from.
_impl_.solver_time_limit_seconds_;
8049 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
8050 _this->
_impl_.enable_internal_solver_output_ = from.
_impl_.enable_internal_solver_output_;
8052 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
8053 _this->
_impl_.ignore_solver_specific_parameters_failure_ = from.
_impl_.ignore_solver_specific_parameters_failure_;
8055 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
8056 _this->
_impl_.populate_additional_solutions_up_to_ = from.
_impl_.populate_additional_solutions_up_to_;
8058 if (CheckHasBit(cached_has_bits, 0x00000080U)) {
8062 _this->
_impl_._has_bits_[0] |= cached_has_bits;
8063 _this->_internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
8064 from._internal_metadata_);
8069 if (&from ==
this)
return;
8075void MPModelRequest::InternalSwap(
MPModelRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
8077 auto* arena = GetArena();
8078 ABSL_DCHECK_EQ(arena, other->GetArena());
8079 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
8080 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
8081 ::_pbi::ArenaStringPtr::InternalSwap(&
_impl_.solver_specific_parameters_, &other->_impl_.solver_specific_parameters_, arena);
8082 ::google::protobuf::internal::memswap<
8087 reinterpret_cast<char*
>(&other->_impl_.model_));
8091 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
8095class MPSolution::_Internal {
8098 decltype(::std::declval<MPSolution>()._impl_._has_bits_);
8099 static constexpr ::int32_t kHasBitsOffset =
8100 8 * PROTOBUF_FIELD_OFFSET(MPSolution, _impl_._has_bits_);
8104#if defined(PROTOBUF_CUSTOM_VTABLE)
8107 : ::google::protobuf::Message(arena) {
8112PROTOBUF_NDEBUG_INLINE MPSolution::Impl_::Impl_(
8113 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
8114 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
8115 [[maybe_unused]] const ::operations_research::MPSolution& from_msg)
8116 : _has_bits_{from._has_bits_},
8118 variable_value_{visibility, arena, from.variable_value_} {}
8121 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
8123#if defined(PROTOBUF_CUSTOM_VTABLE)
8126 : ::google::protobuf::Message(arena) {
8130 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
8131 from._internal_metadata_);
8132 new (&
_impl_) Impl_(internal_visibility(), arena, from.
_impl_, from);
8133 _impl_.objective_value_ = from.
_impl_.objective_value_;
8137PROTOBUF_NDEBUG_INLINE MPSolution::Impl_::Impl_(
8138 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
8139 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
8141 variable_value_{visibility, arena} {}
8143inline void MPSolution::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
8144 new (&
_impl_) Impl_(internal_visibility(), arena);
8145 _impl_.objective_value_ = {};
8151inline void MPSolution::SharedDtor(
MessageLite& self) {
8153 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
8154 this_.CheckHasBitConsistency();
8156 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
8157 ABSL_DCHECK(this_.GetArena() ==
nullptr);
8161inline void* PROTOBUF_NONNULL MPSolution::PlacementNew_(
8162 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
8163 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
8166constexpr auto MPSolution::InternalNewImpl_() {
8167 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
8170 InternalGetArenaOffset(
8171 ::google::protobuf::Message::internal_visibility()),
8173 if (arena_bits.has_value()) {
8174 return ::google::protobuf::internal::MessageCreator::ZeroInit(
8177 return ::google::protobuf::internal::MessageCreator(&MPSolution::PlacementNew_,
8179 alignof(MPSolution));
8183 return ::google::protobuf::internal::ClassDataFull{
8184 ::google::protobuf::internal::ClassData{
8189 &MPSolution::MergeImpl,
8190 ::google::protobuf::Message::GetNewImpl<MPSolution>(),
8191#if defined(PROTOBUF_CUSTOM_VTABLE)
8192 &MPSolution::SharedDtor,
8196 PROTOBUF_FIELD_OFFSET(MPSolution,
_impl_._cached_size_),
8199 &MPSolution::kDescriptorMethods,
8205PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
8209PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
8210MPSolution::GetClassData()
const {
8215PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
8216const ::_pbi::TcParseTable<1, 2, 0, 0, 2>
8217MPSolution::_table_ = {
8219 PROTOBUF_FIELD_OFFSET(MPSolution,
_impl_._has_bits_),
8222 offsetof(
decltype(_table_), field_lookup_table),
8224 offsetof(
decltype(_table_), field_entries),
8227 offsetof(
decltype(_table_), field_names),
8230 ::_pbi::TcParser::GenericFallback,
8231 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
8232 ::_pbi::TcParser::GetTable<::operations_research::MPSolution>(),
8236 {::_pbi::TcParser::FastF64P1,
8238 PROTOBUF_FIELD_OFFSET(MPSolution,
_impl_.variable_value_)}},
8240 {::_pbi::TcParser::FastF64S1,
8242 PROTOBUF_FIELD_OFFSET(MPSolution,
_impl_.objective_value_)}},
8257 ::google::protobuf::internal::TSanWrite(&
_impl_);
8258 ::uint32_t cached_has_bits = 0;
8260 (void) cached_has_bits;
8262 cached_has_bits =
_impl_._has_bits_[0];
8263 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
8264 _impl_.variable_value_.Clear();
8266 _impl_.objective_value_ = 0;
8267 _impl_._has_bits_.Clear();
8268 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
8271#if defined(PROTOBUF_CUSTOM_VTABLE)
8273 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
8274 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
8278 ::uint8_t* PROTOBUF_NONNULL target,
8279 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
8282 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
8283 this_.CheckHasBitConsistency();
8286 ::uint32_t cached_has_bits = 0;
8287 (void)cached_has_bits;
8289 cached_has_bits = this_.
_impl_._has_bits_[0];
8291 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
8292 target = stream->EnsureSpace(target);
8293 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
8294 1, this_._internal_objective_value(), target);
8298 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
8299 if (this_._internal_variable_value_size() > 0) {
8300 target = stream->WriteFixedPacked(2, this_._internal_variable_value(), target);
8304 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
8306 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
8307 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
8313#if defined(PROTOBUF_CUSTOM_VTABLE)
8315 const MPSolution& this_ =
static_cast<const MPSolution&
>(base);
8318 const MPSolution& this_ = *
this;
8321 ::size_t total_size = 0;
8323 ::uint32_t cached_has_bits = 0;
8325 (void)cached_has_bits;
8327 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
8328 cached_has_bits = this_._impl_._has_bits_[0];
8329 total_size +=
static_cast<bool>(0x00000002U & cached_has_bits) * 9;
8332 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
8333 ::size_t data_size = ::size_t{8} *
8334 ::_pbi::FromIntSize(this_._internal_variable_value_size());
8335 ::size_t tag_size = data_size == 0
8337 : 1 + ::_pbi::WireFormatLite::Int32Size(
8338 static_cast<::int32_t
>(data_size));
8339 total_size += tag_size + data_size;
8342 return this_.MaybeComputeUnknownFieldsSize(total_size,
8343 &this_._impl_._cached_size_);
8346void MPSolution::MergeImpl(::google::protobuf::MessageLite& to_msg,
8347 const ::google::protobuf::MessageLite& from_msg) {
8349 static_cast<MPSolution*
>(&to_msg);
8350 auto& from =
static_cast<const MPSolution&
>(from_msg);
8351 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
8352 from.CheckHasBitConsistency();
8355 ABSL_DCHECK_NE(&from, _this);
8356 ::uint32_t cached_has_bits = 0;
8357 (void)cached_has_bits;
8359 cached_has_bits = from.
_impl_._has_bits_[0];
8360 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
8361 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
8362 _this->_internal_mutable_variable_value()->
MergeFrom(from._internal_variable_value());
8364 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
8365 _this->
_impl_.objective_value_ = from.
_impl_.objective_value_;
8368 _this->
_impl_._has_bits_[0] |= cached_has_bits;
8369 _this->_internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
8370 from._internal_metadata_);
8375 if (&from ==
this)
return;
8381void MPSolution::InternalSwap(MPSolution* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
8383 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
8384 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
8385 _impl_.variable_value_.InternalSwap(&other->_impl_.variable_value_);
8386 swap(
_impl_.objective_value_, other->_impl_.objective_value_);
8390 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
8397 decltype(::std::declval<MPSolveInfo>()._impl_._has_bits_);
8398 static constexpr ::int32_t kHasBitsOffset =
8403#if defined(PROTOBUF_CUSTOM_VTABLE)
8406 : ::google::protobuf::Message(arena) {
8412 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const MPSolveInfo& from)
8413#if defined(PROTOBUF_CUSTOM_VTABLE)
8416 : ::google::protobuf::Message(arena),
8419 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
8420 from._internal_metadata_);
8422PROTOBUF_NDEBUG_INLINE MPSolveInfo::Impl_::Impl_(
8423 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
8424 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
8425 : _cached_size_{0} {}
8427inline void MPSolveInfo::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
8428 new (&
_impl_) Impl_(internal_visibility(), arena);
8429 ::memset(
reinterpret_cast<char*
>(&
_impl_) +
8430 offsetof(Impl_, solve_wall_time_seconds_),
8432 offsetof(Impl_, solve_user_time_seconds_) -
8433 offsetof(Impl_, solve_wall_time_seconds_) +
8434 sizeof(Impl_::solve_user_time_seconds_));
8440inline void MPSolveInfo::SharedDtor(
MessageLite& self) {
8442 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
8443 this_.CheckHasBitConsistency();
8445 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
8446 ABSL_DCHECK(this_.GetArena() ==
nullptr);
8447 this_._impl_.~Impl_();
8450inline void* PROTOBUF_NONNULL MPSolveInfo::PlacementNew_(
8451 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
8452 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
8455constexpr auto MPSolveInfo::InternalNewImpl_() {
8456 return ::google::protobuf::internal::MessageCreator::ZeroInit(
sizeof(
MPSolveInfo),
8460 return ::google::protobuf::internal::ClassDataFull{
8461 ::google::protobuf::internal::ClassData{
8466 &MPSolveInfo::MergeImpl,
8467 ::google::protobuf::Message::GetNewImpl<MPSolveInfo>(),
8468#if defined(PROTOBUF_CUSTOM_VTABLE)
8469 &MPSolveInfo::SharedDtor,
8476 &MPSolveInfo::kDescriptorMethods,
8482PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
8486PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
8487MPSolveInfo::GetClassData()
const {
8492PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
8493const ::_pbi::TcParseTable<1, 2, 0, 0, 2>
8494MPSolveInfo::_table_ = {
8499 offsetof(
decltype(_table_), field_lookup_table),
8501 offsetof(
decltype(_table_), field_entries),
8504 offsetof(
decltype(_table_), field_names),
8507 ::_pbi::TcParser::GenericFallback,
8508 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
8509 ::_pbi::TcParser::GetTable<::operations_research::MPSolveInfo>(),
8513 {::_pbi::TcParser::FastF64S1,
8517 {::_pbi::TcParser::FastF64S1,
8534 ::google::protobuf::internal::TSanWrite(&
_impl_);
8535 ::uint32_t cached_has_bits = 0;
8537 (void) cached_has_bits;
8539 cached_has_bits =
_impl_._has_bits_[0];
8540 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
8541 ::memset(&
_impl_.solve_wall_time_seconds_, 0,
static_cast<::
size_t>(
8542 reinterpret_cast<char*
>(&
_impl_.solve_user_time_seconds_) -
8543 reinterpret_cast<char*
>(&
_impl_.solve_wall_time_seconds_)) +
sizeof(
_impl_.solve_user_time_seconds_));
8545 _impl_._has_bits_.Clear();
8546 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
8549#if defined(PROTOBUF_CUSTOM_VTABLE)
8551 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
8552 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
8556 ::uint8_t* PROTOBUF_NONNULL target,
8557 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
8560 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
8561 this_.CheckHasBitConsistency();
8564 ::uint32_t cached_has_bits = 0;
8565 (void)cached_has_bits;
8567 cached_has_bits = this_.
_impl_._has_bits_[0];
8569 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
8570 target = stream->EnsureSpace(target);
8571 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
8572 1, this_._internal_solve_wall_time_seconds(), target);
8576 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
8577 target = stream->EnsureSpace(target);
8578 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
8579 2, this_._internal_solve_user_time_seconds(), target);
8582 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
8584 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
8585 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
8591#if defined(PROTOBUF_CUSTOM_VTABLE)
8599 ::size_t total_size = 0;
8601 ::uint32_t cached_has_bits = 0;
8603 (void)cached_has_bits;
8605 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
8606 cached_has_bits = this_._impl_._has_bits_[0];
8607 total_size += ::absl::popcount(0x00000003U & cached_has_bits) * 9;
8608 return this_.MaybeComputeUnknownFieldsSize(total_size,
8609 &this_._impl_._cached_size_);
8612void MPSolveInfo::MergeImpl(::google::protobuf::MessageLite& to_msg,
8613 const ::google::protobuf::MessageLite& from_msg) {
8617 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
8618 from.CheckHasBitConsistency();
8621 ABSL_DCHECK_NE(&from, _this);
8622 ::uint32_t cached_has_bits = 0;
8623 (void)cached_has_bits;
8625 cached_has_bits = from.
_impl_._has_bits_[0];
8626 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
8627 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
8628 _this->
_impl_.solve_wall_time_seconds_ = from.
_impl_.solve_wall_time_seconds_;
8630 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
8631 _this->
_impl_.solve_user_time_seconds_ = from.
_impl_.solve_user_time_seconds_;
8634 _this->
_impl_._has_bits_[0] |= cached_has_bits;
8635 _this->_internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
8636 from._internal_metadata_);
8641 if (&from ==
this)
return;
8647void MPSolveInfo::InternalSwap(
MPSolveInfo* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
8649 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
8650 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
8651 ::google::protobuf::internal::memswap<
8655 reinterpret_cast<char*
>(&
_impl_.solve_wall_time_seconds_),
8656 reinterpret_cast<char*
>(&other->_impl_.solve_wall_time_seconds_));
8660 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
8667 decltype(::std::declval<MPSolutionResponse>()._impl_._has_bits_);
8668 static constexpr ::int32_t kHasBitsOffset =
8673#if defined(PROTOBUF_CUSTOM_VTABLE)
8676 : ::google::protobuf::Message(arena) {
8681PROTOBUF_NDEBUG_INLINE MPSolutionResponse::Impl_::Impl_(
8682 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
8683 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
8684 [[maybe_unused]] const ::operations_research::MPSolutionResponse& from_msg)
8685 : _has_bits_{from._has_bits_},
8687 variable_value_{visibility, arena, from.variable_value_},
8688 dual_value_{visibility, arena, from.dual_value_},
8689 reduced_cost_{visibility, arena, from.reduced_cost_},
8690 additional_solutions_{visibility, arena, from.additional_solutions_},
8691 status_str_(arena, from.status_str_),
8692 solver_specific_info_(arena, from.solver_specific_info_) {}
8695 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
8697#if defined(PROTOBUF_CUSTOM_VTABLE)
8700 : ::google::protobuf::Message(arena) {
8704 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
8705 from._internal_metadata_);
8706 new (&
_impl_) Impl_(internal_visibility(), arena, from.
_impl_, from);
8707 ::uint32_t cached_has_bits =
_impl_._has_bits_[0];
8708 _impl_.solve_info_ = (CheckHasBit(cached_has_bits, 0x00000040U))
8709 ? ::google::protobuf::Message::CopyConstruct(arena, *from.
_impl_.solve_info_)
8711 ::memcpy(
reinterpret_cast<char*
>(&
_impl_) +
8712 offsetof(Impl_, objective_value_),
8713 reinterpret_cast<const char*
>(&from.
_impl_) +
8714 offsetof(Impl_, objective_value_),
8715 offsetof(Impl_, status_) -
8716 offsetof(Impl_, objective_value_) +
8717 sizeof(Impl_::status_));
8721PROTOBUF_NDEBUG_INLINE MPSolutionResponse::Impl_::Impl_(
8722 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
8723 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
8725 variable_value_{visibility, arena},
8726 dual_value_{visibility, arena},
8727 reduced_cost_{visibility, arena},
8728 additional_solutions_{visibility, arena},
8730 solver_specific_info_(arena),
8733inline void MPSolutionResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
8734 new (&
_impl_) Impl_(internal_visibility(), arena);
8735 ::memset(
reinterpret_cast<char*
>(&
_impl_) +
8736 offsetof(Impl_, solve_info_),
8738 offsetof(Impl_, best_objective_bound_) -
8739 offsetof(Impl_, solve_info_) +
8740 sizeof(Impl_::best_objective_bound_));
8746inline void MPSolutionResponse::SharedDtor(
MessageLite& self) {
8748 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
8749 this_.CheckHasBitConsistency();
8751 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
8752 ABSL_DCHECK(this_.GetArena() ==
nullptr);
8753 this_._impl_.status_str_.Destroy();
8754 this_._impl_.solver_specific_info_.Destroy();
8755 delete this_._impl_.solve_info_;
8756 this_._impl_.~Impl_();
8759inline void* PROTOBUF_NONNULL MPSolutionResponse::PlacementNew_(
8760 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
8761 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
8764constexpr auto MPSolutionResponse::InternalNewImpl_() {
8765 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
8768 InternalGetArenaOffset(
8769 ::google::protobuf::Message::internal_visibility()),
8772 InternalGetArenaOffset(
8773 ::google::protobuf::Message::internal_visibility()),
8776 InternalGetArenaOffset(
8777 ::google::protobuf::Message::internal_visibility()),
8780 InternalGetArenaOffset(
8781 ::google::protobuf::Message::internal_visibility()),
8783 if (arena_bits.has_value()) {
8784 return ::google::protobuf::internal::MessageCreator::CopyInit(
8787 return ::google::protobuf::internal::MessageCreator(&MPSolutionResponse::PlacementNew_,
8793 return ::google::protobuf::internal::ClassDataFull{
8794 ::google::protobuf::internal::ClassData{
8799 &MPSolutionResponse::MergeImpl,
8800 ::google::protobuf::Message::GetNewImpl<MPSolutionResponse>(),
8801#if defined(PROTOBUF_CUSTOM_VTABLE)
8802 &MPSolutionResponse::SharedDtor,
8809 &MPSolutionResponse::kDescriptorMethods,
8815PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
8819PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
8820MPSolutionResponse::GetClassData()
const {
8825PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
8826const ::_pbi::TcParseTable<4, 10, 3, 0, 2>
8827MPSolutionResponse::_table_ = {
8832 offsetof(
decltype(_table_), field_lookup_table),
8834 offsetof(
decltype(_table_), field_entries),
8837 offsetof(
decltype(_table_), aux_entries),
8840 ::_pbi::TcParser::GenericFallback,
8841 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
8842 ::_pbi::TcParser::GetTable<::operations_research::MPSolutionResponse>(),
8845 {::_pbi::TcParser::MiniParse, {}},
8847 {::_pbi::TcParser::FastEvS1,
8851 {::_pbi::TcParser::FastF64S1,
8855 {::_pbi::TcParser::FastF64P1,
8859 {::_pbi::TcParser::FastF64P1,
8863 {::_pbi::TcParser::FastF64S1,
8867 {::_pbi::TcParser::FastF64P1,
8871 {::_pbi::TcParser::FastBS1,
8875 {::_pbi::TcParser::FastMtR1,
8878 {::_pbi::TcParser::MiniParse, {}},
8880 {::_pbi::TcParser::FastMtS1,
8884 {::_pbi::TcParser::FastBS1,
8887 {::_pbi::TcParser::MiniParse, {}},
8888 {::_pbi::TcParser::MiniParse, {}},
8889 {::_pbi::TcParser::MiniParse, {}},
8890 {::_pbi::TcParser::MiniParse, {}},
8916 {::_pbi::TcParser::GetTable<::operations_research::MPSolution>()},
8917 {::_pbi::TcParser::GetTable<::operations_research::MPSolveInfo>()},
8925 ::google::protobuf::internal::TSanWrite(&
_impl_);
8926 ::uint32_t cached_has_bits = 0;
8928 (void) cached_has_bits;
8930 cached_has_bits =
_impl_._has_bits_[0];
8931 if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) {
8932 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
8933 _impl_.variable_value_.Clear();
8935 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
8936 _impl_.dual_value_.Clear();
8938 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
8939 _impl_.reduced_cost_.Clear();
8941 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
8942 _impl_.additional_solutions_.Clear();
8944 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
8947 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
8948 _impl_.solver_specific_info_.ClearNonDefaultToEmpty();
8950 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
8951 ABSL_DCHECK(
_impl_.solve_info_ !=
nullptr);
8955 _impl_.objective_value_ = 0;
8956 if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) {
8957 _impl_.best_objective_bound_ = 0;
8960 _impl_._has_bits_.Clear();
8961 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
8964#if defined(PROTOBUF_CUSTOM_VTABLE)
8966 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
8967 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
8971 ::uint8_t* PROTOBUF_NONNULL target,
8972 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
8975 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
8976 this_.CheckHasBitConsistency();
8979 ::uint32_t cached_has_bits = 0;
8980 (void)cached_has_bits;
8982 cached_has_bits = this_._impl_._has_bits_[0];
8984 if (CheckHasBit(cached_has_bits, 0x00000200U)) {
8985 target = stream->EnsureSpace(target);
8986 target = ::_pbi::WireFormatLite::WriteEnumToArray(
8987 1, this_._internal_status(), target);
8991 if (CheckHasBit(cached_has_bits, 0x00000080U)) {
8992 target = stream->EnsureSpace(target);
8993 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
8994 2, this_._internal_objective_value(), target);
8998 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
8999 if (this_._internal_variable_value_size() > 0) {
9000 target = stream->WriteFixedPacked(3, this_._internal_variable_value(), target);
9005 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
9006 if (this_._internal_dual_value_size() > 0) {
9007 target = stream->WriteFixedPacked(4, this_._internal_dual_value(), target);
9012 if (CheckHasBit(cached_has_bits, 0x00000100U)) {
9013 target = stream->EnsureSpace(target);
9014 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
9015 5, this_._internal_best_objective_bound(), target);
9019 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
9020 if (this_._internal_reduced_cost_size() > 0) {
9021 target = stream->WriteFixedPacked(6, this_._internal_reduced_cost(), target);
9026 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
9027 const ::std::string& _s = this_._internal_status_str();
9028 target = stream->WriteStringMaybeAliased(7, _s, target);
9032 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
9033 for (
unsigned i = 0, n =
static_cast<unsigned>(
9034 this_._internal_additional_solutions_size());
9036 const auto& repfield = this_._internal_additional_solutions().Get(i);
9038 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
9039 8, repfield, repfield.GetCachedSize(),
9045 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
9046 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
9047 10, *this_._impl_.solve_info_, this_._impl_.solve_info_->GetCachedSize(), target,
9052 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
9053 const ::std::string& _s = this_._internal_solver_specific_info();
9054 target = stream->WriteBytesMaybeAliased(11, _s, target);
9057 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
9059 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
9060 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
9066#if defined(PROTOBUF_CUSTOM_VTABLE)
9074 ::size_t total_size = 0;
9076 ::uint32_t cached_has_bits = 0;
9078 (void)cached_has_bits;
9080 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
9081 cached_has_bits = this_._impl_._has_bits_[0];
9082 total_size += ::absl::popcount(0x00000180U & cached_has_bits) * 9;
9083 if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) {
9085 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
9086 ::size_t data_size = ::size_t{8} *
9087 ::_pbi::FromIntSize(this_._internal_variable_value_size());
9088 ::size_t tag_size = data_size == 0
9090 : 1 + ::_pbi::WireFormatLite::Int32Size(
9091 static_cast<::int32_t
>(data_size));
9092 total_size += tag_size + data_size;
9095 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
9096 ::size_t data_size = ::size_t{8} *
9097 ::_pbi::FromIntSize(this_._internal_dual_value_size());
9098 ::size_t tag_size = data_size == 0
9100 : 1 + ::_pbi::WireFormatLite::Int32Size(
9101 static_cast<::int32_t
>(data_size));
9102 total_size += tag_size + data_size;
9105 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
9106 ::size_t data_size = ::size_t{8} *
9107 ::_pbi::FromIntSize(this_._internal_reduced_cost_size());
9108 ::size_t tag_size = data_size == 0
9110 : 1 + ::_pbi::WireFormatLite::Int32Size(
9111 static_cast<::int32_t
>(data_size));
9112 total_size += tag_size + data_size;
9115 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
9116 total_size += 1UL * this_._internal_additional_solutions_size();
9117 for (
const auto& msg : this_._internal_additional_solutions()) {
9118 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
9122 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
9123 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
9124 this_._internal_status_str());
9127 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
9128 total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
9129 this_._internal_solver_specific_info());
9132 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
9134 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.solve_info_);
9139 if (CheckHasBit(cached_has_bits, 0x00000200U)) {
9141 ::_pbi::WireFormatLite::EnumSize(this_._internal_status());
9144 return this_.MaybeComputeUnknownFieldsSize(total_size,
9145 &this_._impl_._cached_size_);
9148void MPSolutionResponse::MergeImpl(::google::protobuf::MessageLite& to_msg,
9149 const ::google::protobuf::MessageLite& from_msg) {
9153 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
9154 from.CheckHasBitConsistency();
9158 ABSL_DCHECK_NE(&from, _this);
9159 ::uint32_t cached_has_bits = 0;
9160 (void)cached_has_bits;
9162 cached_has_bits = from.
_impl_._has_bits_[0];
9163 if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
9164 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
9165 _this->_internal_mutable_variable_value()->MergeFrom(from._internal_variable_value());
9167 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
9168 _this->_internal_mutable_dual_value()->MergeFrom(from._internal_dual_value());
9170 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
9171 _this->_internal_mutable_reduced_cost()->MergeFrom(from._internal_reduced_cost());
9173 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
9174 _this->_internal_mutable_additional_solutions()->InternalMergeFromWithArena(
9175 ::google::protobuf::MessageLite::internal_visibility(), arena,
9176 from._internal_additional_solutions());
9178 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
9179 _this->_internal_set_status_str(from._internal_status_str());
9181 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
9182 _this->_internal_set_solver_specific_info(from._internal_solver_specific_info());
9184 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
9185 ABSL_DCHECK(from.
_impl_.solve_info_ !=
nullptr);
9186 if (_this->
_impl_.solve_info_ ==
nullptr) {
9187 _this->
_impl_.solve_info_ = ::google::protobuf::Message::CopyConstruct(arena, *from.
_impl_.solve_info_);
9192 if (CheckHasBit(cached_has_bits, 0x00000080U)) {
9193 _this->
_impl_.objective_value_ = from.
_impl_.objective_value_;
9196 if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) {
9197 if (CheckHasBit(cached_has_bits, 0x00000100U)) {
9198 _this->
_impl_.best_objective_bound_ = from.
_impl_.best_objective_bound_;
9200 if (CheckHasBit(cached_has_bits, 0x00000200U)) {
9204 _this->
_impl_._has_bits_[0] |= cached_has_bits;
9205 _this->_internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
9206 from._internal_metadata_);
9211 if (&from ==
this)
return;
9217void MPSolutionResponse::InternalSwap(
MPSolutionResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
9219 auto* arena = GetArena();
9220 ABSL_DCHECK_EQ(arena, other->GetArena());
9221 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
9222 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
9223 _impl_.variable_value_.InternalSwap(&other->_impl_.variable_value_);
9224 _impl_.dual_value_.InternalSwap(&other->_impl_.dual_value_);
9225 _impl_.reduced_cost_.InternalSwap(&other->_impl_.reduced_cost_);
9226 _impl_.additional_solutions_.InternalSwap(&other->_impl_.additional_solutions_);
9227 ::_pbi::ArenaStringPtr::InternalSwap(&
_impl_.status_str_, &other->_impl_.status_str_, arena);
9228 ::_pbi::ArenaStringPtr::InternalSwap(&
_impl_.solver_specific_info_, &other->_impl_.solver_specific_info_, arena);
9229 ::google::protobuf::internal::memswap<
9233 reinterpret_cast<char*
>(&
_impl_.solve_info_),
9234 reinterpret_cast<char*
>(&other->_impl_.solve_info_));
9238 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
9247PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
9250 ::std::false_type{});
9251#include "google/protobuf/port_undef.inc"
static PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::std::false_type _static_init2_
static const ::_pb::Message *PROTOBUF_NONNULL const file_default_instances[]
static constexpr ::int32_t kHasBitsOffset
static constexpr auto InternalGenerateClassData_()
friend class ::google::protobuf::MessageLite
::size_t ByteSizeLong() const final
void CopyFrom(const MPAbsConstraint &from)
::google::protobuf::Metadata GetMetadata() const
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
~MPAbsConstraint() PROTOBUF_FINAL
friend void swap(MPAbsConstraint &a, MPAbsConstraint &b)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void MergeFrom(const MPAbsConstraint &from)
static constexpr ::int32_t kHasBitsOffset
friend class ::google::protobuf::MessageLite
void MergeFrom(const MPArrayConstraint &from)
~MPArrayConstraint() PROTOBUF_FINAL
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
static constexpr auto InternalGenerateClassData_()
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
::google::protobuf::Metadata GetMetadata() const
void CopyFrom(const MPArrayConstraint &from)
friend void swap(MPArrayConstraint &a, MPArrayConstraint &b)
::size_t ByteSizeLong() const final
static constexpr ::int32_t kHasBitsOffset
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
friend class ::google::protobuf::MessageLite
::size_t ByteSizeLong() const final
static constexpr auto InternalGenerateClassData_()
void MergeFrom(const MPArrayWithConstantConstraint &from)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
~MPArrayWithConstantConstraint() PROTOBUF_FINAL
void CopyFrom(const MPArrayWithConstantConstraint &from)
MPArrayWithConstantConstraint()
::google::protobuf::Metadata GetMetadata() const
friend void swap(MPArrayWithConstantConstraint &a, MPArrayWithConstantConstraint &b)
static constexpr ::int32_t kHasBitsOffset
decltype(::std::declval< MPConstraintProto >()._impl_._has_bits_) HasBits
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
friend class ::google::protobuf::MessageLite
static constexpr auto InternalGenerateClassData_()
void MergeFrom(const MPConstraintProto &from)
~MPConstraintProto() PROTOBUF_FINAL
void CopyFrom(const MPConstraintProto &from)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
friend void swap(MPConstraintProto &a, MPConstraintProto &b)
::size_t ByteSizeLong() const final
::google::protobuf::Metadata GetMetadata() const
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
static constexpr ::int32_t kOneofCaseOffset
static constexpr ::int32_t kHasBitsOffset
friend class ::google::protobuf::MessageLite
void set_allocated_abs_constraint(::operations_research::MPAbsConstraint *PROTOBUF_NULLABLE value)
void set_allocated_indicator_constraint(::operations_research::MPIndicatorConstraint *PROTOBUF_NULLABLE value)
void set_allocated_or_constraint(::operations_research::MPArrayConstraint *PROTOBUF_NULLABLE value)
GeneralConstraintCase general_constraint_case() const
void MergeFrom(const MPGeneralConstraintProto &from)
@ GENERAL_CONSTRAINT_NOT_SET
~MPGeneralConstraintProto() PROTOBUF_FINAL
static constexpr auto InternalGenerateClassData_()
::size_t ByteSizeLong() const final
MPGeneralConstraintProto()
void clear_general_constraint()
void set_allocated_sos_constraint(::operations_research::MPSosConstraint *PROTOBUF_NULLABLE value)
const ::operations_research::MPAbsConstraint & abs_constraint() const
void set_allocated_min_constraint(::operations_research::MPArrayWithConstantConstraint *PROTOBUF_NULLABLE value)
void set_allocated_and_constraint(::operations_research::MPArrayConstraint *PROTOBUF_NULLABLE value)
const ::operations_research::MPArrayWithConstantConstraint & max_constraint() const
friend void swap(MPGeneralConstraintProto &a, MPGeneralConstraintProto &b)
const ::operations_research::MPIndicatorConstraint & indicator_constraint() const
void set_allocated_quadratic_constraint(::operations_research::MPQuadraticConstraint *PROTOBUF_NULLABLE value)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
const ::operations_research::MPArrayConstraint & and_constraint() const
::google::protobuf::Metadata GetMetadata() const
const ::operations_research::MPArrayWithConstantConstraint & min_constraint() const
const ::operations_research::MPArrayConstraint & or_constraint() const
void set_allocated_max_constraint(::operations_research::MPArrayWithConstantConstraint *PROTOBUF_NULLABLE value)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
const ::operations_research::MPQuadraticConstraint & quadratic_constraint() const
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
friend class ::google::protobuf::Arena
void CopyFrom(const MPGeneralConstraintProto &from)
const ::operations_research::MPSosConstraint & sos_constraint() const
static constexpr ::int32_t kHasBitsOffset
friend class ::google::protobuf::MessageLite
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void MergeFrom(const MPIndicatorConstraint &from)
::size_t ByteSizeLong() const final
~MPIndicatorConstraint() PROTOBUF_FINAL
void CopyFrom(const MPIndicatorConstraint &from)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
::google::protobuf::Metadata GetMetadata() const
static constexpr auto InternalGenerateClassData_()
static constexpr ::int32_t kHasBitsOffset
MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse()
MPModelDeltaProto_VariableOverridesEntry_DoNotUse()
static constexpr auto InternalGenerateClassData_()
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
friend class ::google::protobuf::MessageLite
::size_t ByteSizeLong() const final
friend void swap(MPModelDeltaProto &a, MPModelDeltaProto &b)
void MergeFrom(const MPModelDeltaProto &from)
static constexpr auto InternalGenerateClassData_()
void CopyFrom(const MPModelDeltaProto &from)
~MPModelDeltaProto() 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 constexpr ::int32_t kHasBitsOffset
static constexpr ::int32_t kHasBitsOffset
friend void swap(MPModelProto_Annotation &a, MPModelProto_Annotation &b)
friend class ::google::protobuf::MessageLite
void CopyFrom(const MPModelProto_Annotation &from)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
MPModelProto_Annotation()
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
~MPModelProto_Annotation() PROTOBUF_FINAL
void MergeFrom(const MPModelProto_Annotation &from)
static constexpr auto InternalGenerateClassData_()
::size_t ByteSizeLong() const final
::google::protobuf::Metadata GetMetadata() const
friend class ::google::protobuf::MessageLite
void MergeFrom(const MPModelProto &from)
~MPModelProto() PROTOBUF_FINAL
void CopyFrom(const MPModelProto &from)
::google::protobuf::Metadata GetMetadata() const
friend void swap(MPModelProto &a, MPModelProto &b)
static constexpr auto InternalGenerateClassData_()
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
::size_t ByteSizeLong() const final
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
friend class ::google::protobuf::Arena
static constexpr ::int32_t kHasBitsOffset
friend class ::google::protobuf::MessageLite
void MergeFrom(const MPModelRequest &from)
void CopyFrom(const MPModelRequest &from)
static constexpr auto InternalGenerateClassData_()
::google::protobuf::Metadata GetMetadata() const
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
~MPModelRequest() PROTOBUF_FINAL
::size_t ByteSizeLong() const final
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
friend void swap(MPModelRequest &a, MPModelRequest &b)
friend class ::google::protobuf::Arena
friend class ::google::protobuf::MessageLite
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
void MergeFrom(const MPQuadraticConstraint &from)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
::size_t ByteSizeLong() const final
::google::protobuf::Metadata GetMetadata() const
void CopyFrom(const MPQuadraticConstraint &from)
static constexpr auto InternalGenerateClassData_()
~MPQuadraticConstraint() PROTOBUF_FINAL
static constexpr ::int32_t kHasBitsOffset
friend class ::google::protobuf::MessageLite
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
::google::protobuf::Metadata GetMetadata() const
static constexpr auto InternalGenerateClassData_()
::size_t ByteSizeLong() const final
void MergeFrom(const MPQuadraticObjective &from)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void CopyFrom(const MPQuadraticObjective &from)
friend void swap(MPQuadraticObjective &a, MPQuadraticObjective &b)
~MPQuadraticObjective() PROTOBUF_FINAL
static constexpr ::int32_t kHasBitsOffset
void MergeFrom(const MPSolutionResponse &from)
friend class ::google::protobuf::MessageLite
void CopyFrom(const MPSolutionResponse &from)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
friend void swap(MPSolutionResponse &a, MPSolutionResponse &b)
::google::protobuf::Metadata GetMetadata() const
::size_t ByteSizeLong() const final
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
static constexpr auto InternalGenerateClassData_()
~MPSolutionResponse() PROTOBUF_FINAL
friend class ::google::protobuf::Arena
friend class ::google::protobuf::MessageLite
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
static constexpr auto InternalGenerateClassData_()
void CopyFrom(const MPSolution &from)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
::size_t ByteSizeLong() const final
::google::protobuf::Metadata GetMetadata() const
~MPSolution() PROTOBUF_FINAL
void MergeFrom(const MPSolution &from)
static constexpr ::int32_t kHasBitsOffset
friend class ::google::protobuf::MessageLite
friend void swap(MPSolveInfo &a, MPSolveInfo &b)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
::google::protobuf::Metadata GetMetadata() const
::size_t ByteSizeLong() const final
static constexpr auto InternalGenerateClassData_()
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void CopyFrom(const MPSolveInfo &from)
~MPSolveInfo() PROTOBUF_FINAL
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
void MergeFrom(const MPSolveInfo &from)
static constexpr ::int32_t kHasBitsOffset
friend class ::google::protobuf::MessageLite
::size_t ByteSizeLong() const final
friend void swap(MPSolverCommonParameters &a, MPSolverCommonParameters &b)
MPSolverCommonParameters()
void CopyFrom(const MPSolverCommonParameters &from)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
void MergeFrom(const MPSolverCommonParameters &from)
::google::protobuf::Metadata GetMetadata() const
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
static constexpr auto InternalGenerateClassData_()
~MPSolverCommonParameters() PROTOBUF_FINAL
friend class ::google::protobuf::Arena
friend class ::google::protobuf::MessageLite
void CopyFrom(const MPSosConstraint &from)
void MergeFrom(const MPSosConstraint &from)
::google::protobuf::Metadata GetMetadata() const
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
::size_t ByteSizeLong() const final
static constexpr auto InternalGenerateClassData_()
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
~MPSosConstraint() PROTOBUF_FINAL
decltype(::std::declval< MPVariableProto >()._impl_._has_bits_) HasBits
static constexpr ::int32_t kHasBitsOffset
friend class ::google::protobuf::MessageLite
void CopyFrom(const MPVariableProto &from)
::google::protobuf::Metadata GetMetadata() const
void MergeFrom(const MPVariableProto &from)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
static constexpr auto InternalGenerateClassData_()
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
~MPVariableProto() PROTOBUF_FINAL
friend void swap(MPVariableProto &a, MPVariableProto &b)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
::size_t ByteSizeLong() const final
static constexpr ::int32_t kHasBitsOffset
static constexpr auto InternalGenerateClassData_()
friend class ::google::protobuf::MessageLite
::size_t ByteSizeLong() const final
void CopyFrom(const OptionalDouble &from)
void MergeFrom(const OptionalDouble &from)
friend void swap(OptionalDouble &a, OptionalDouble &b)
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
~OptionalDouble() PROTOBUF_FINAL
::google::protobuf::Metadata GetMetadata() const
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
friend class ::google::protobuf::MessageLite
static constexpr auto InternalGenerateClassData_()
~PartialVariableAssignment() PROTOBUF_FINAL
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void CopyFrom(const PartialVariableAssignment &from)
::google::protobuf::Metadata GetMetadata() const
void MergeFrom(const PartialVariableAssignment &from)
::size_t ByteSizeLong() const final
friend void swap(PartialVariableAssignment &a, PartialVariableAssignment &b)
PartialVariableAssignment()
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
void MergeFrom(const PartialVariableAssignment &from)
static constexpr ::_pbi::MigrationSchema *PROTOBUF_NULLABLE schemas
static const ::_pbi::DescriptorTable *PROTOBUF_NONNULL const descriptor_table_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto_deps[1]
const ::uint32_t TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold)
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto
::absl::once_flag descriptor_table_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto_once
static constexprconst ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_service_descriptors_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto
static const ::_pb::EnumDescriptor *PROTOBUF_NONNULL file_level_enum_descriptors_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto[5]
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull PartialVariableAssignment_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPQuadraticObjectiveDefaultTypeInternal _MPQuadraticObjective_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPModelProto_AnnotationDefaultTypeInternal _MPModelProto_Annotation_default_instance_
PROTOBUF_CONSTINIT const uint32_t MPModelProto_Annotation_TargetType_internal_data_[]
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull OptionalDouble_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPArrayWithConstantConstraintDefaultTypeInternal _MPArrayWithConstantConstraint_default_instance_
MPModelRequest_SolverType
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPArrayConstraintDefaultTypeInternal _MPArrayConstraint_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPModelProto_Annotation_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPModelRequest_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPGeneralConstraintProtoDefaultTypeInternal _MPGeneralConstraintProto_default_instance_
const ::google::protobuf::EnumDescriptor *PROTOBUF_NONNULL MPModelProto_Annotation_TargetType_descriptor()
MPSolverCommonParameters_LPAlgorithmValues
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPConstraintProto_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPAbsConstraint_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPQuadraticConstraint_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPSolutionResponseDefaultTypeInternal _MPSolutionResponse_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPVariableProtoDefaultTypeInternal _MPVariableProto_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPAbsConstraintDefaultTypeInternal _MPAbsConstraint_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPModelDeltaProto_ConstraintOverridesEntry_DoNotUseDefaultTypeInternal _MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPSolutionDefaultTypeInternal _MPSolution_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPVariableProto_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPGeneralConstraintProto_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPModelDeltaProto_VariableOverridesEntry_DoNotUseDefaultTypeInternal _MPModelDeltaProto_VariableOverridesEntry_DoNotUse_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPSosConstraintDefaultTypeInternal _MPSosConstraint_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPSolveInfo_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPSolverCommonParameters_class_data_
PROTOBUF_CONSTINIT const uint32_t MPModelRequest_SolverType_internal_data_[]
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPSolutionResponse_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPModelDeltaProto_VariableOverridesEntry_DoNotUse_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPConstraintProtoDefaultTypeInternal _MPConstraintProto_default_instance_
PROTOBUF_CONSTINIT const uint32_t OptionalBoolean_internal_data_[]
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPModelProto_class_data_
const ::google::protobuf::EnumDescriptor *PROTOBUF_NONNULL MPSolverResponseStatus_descriptor()
MPModelProto_Annotation_TargetType
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PartialVariableAssignmentDefaultTypeInternal _PartialVariableAssignment_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPSosConstraint_class_data_
const ::google::protobuf::EnumDescriptor *PROTOBUF_NONNULL MPModelRequest_SolverType_descriptor()
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPIndicatorConstraintDefaultTypeInternal _MPIndicatorConstraint_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OptionalDoubleDefaultTypeInternal _OptionalDouble_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPArrayWithConstantConstraint_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPModelRequestDefaultTypeInternal _MPModelRequest_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPQuadraticObjective_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPQuadraticConstraintDefaultTypeInternal _MPQuadraticConstraint_default_instance_
PROTOBUF_CONSTINIT const uint32_t MPSolverResponseStatus_internal_data_[]
const ::google::protobuf::EnumDescriptor *PROTOBUF_NONNULL MPSosConstraint_Type_descriptor()
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPSolverCommonParametersDefaultTypeInternal _MPSolverCommonParameters_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPModelProtoDefaultTypeInternal _MPModelProto_default_instance_
PROTOBUF_CONSTINIT const uint32_t MPSosConstraint_Type_internal_data_[]
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPArrayConstraint_class_data_
const ::google::protobuf::EnumDescriptor *PROTOBUF_NONNULL MPSolverCommonParameters_LPAlgorithmValues_descriptor()
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull PartialVariableAssignment_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPSolveInfoDefaultTypeInternal _MPSolveInfo_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPModelDeltaProto_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPModelDeltaProtoDefaultTypeInternal _MPModelDeltaProto_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPIndicatorConstraint_class_data_
PROTOBUF_CONSTINIT const uint32_t MPSolverCommonParameters_LPAlgorithmValues_internal_data_[]
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPSolution_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse_class_data_
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2futil_2foptional_5fboolean_2eproto
MPAbsConstraint _instance
~MPAbsConstraintDefaultTypeInternal()
PROTOBUF_CONSTEXPR MPAbsConstraintDefaultTypeInternal()
MPArrayConstraint _instance
PROTOBUF_CONSTEXPR MPArrayConstraintDefaultTypeInternal()
~MPArrayConstraintDefaultTypeInternal()
~MPArrayWithConstantConstraintDefaultTypeInternal()
MPArrayWithConstantConstraint _instance
PROTOBUF_CONSTEXPR MPArrayWithConstantConstraintDefaultTypeInternal()
PROTOBUF_CONSTEXPR MPConstraintProtoDefaultTypeInternal()
MPConstraintProto _instance
~MPConstraintProtoDefaultTypeInternal()
PROTOBUF_CONSTEXPR MPGeneralConstraintProtoDefaultTypeInternal()
MPGeneralConstraintProto _instance
~MPGeneralConstraintProtoDefaultTypeInternal()
~MPIndicatorConstraintDefaultTypeInternal()
PROTOBUF_CONSTEXPR MPIndicatorConstraintDefaultTypeInternal()
MPIndicatorConstraint _instance
PROTOBUF_CONSTEXPR MPModelDeltaProtoDefaultTypeInternal()
~MPModelDeltaProtoDefaultTypeInternal()
MPModelDeltaProto _instance
PROTOBUF_CONSTEXPR MPModelDeltaProto_ConstraintOverridesEntry_DoNotUseDefaultTypeInternal()
~MPModelDeltaProto_ConstraintOverridesEntry_DoNotUseDefaultTypeInternal()
MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse _instance
MPModelDeltaProto_VariableOverridesEntry_DoNotUse _instance
~MPModelDeltaProto_VariableOverridesEntry_DoNotUseDefaultTypeInternal()
PROTOBUF_CONSTEXPR MPModelDeltaProto_VariableOverridesEntry_DoNotUseDefaultTypeInternal()
PROTOBUF_CONSTEXPR MPModelProtoDefaultTypeInternal()
~MPModelProtoDefaultTypeInternal()
PROTOBUF_CONSTEXPR MPModelProto_AnnotationDefaultTypeInternal()
~MPModelProto_AnnotationDefaultTypeInternal()
MPModelProto_Annotation _instance
~MPModelRequestDefaultTypeInternal()
PROTOBUF_CONSTEXPR MPModelRequestDefaultTypeInternal()
PROTOBUF_CONSTEXPR MPQuadraticConstraintDefaultTypeInternal()
~MPQuadraticConstraintDefaultTypeInternal()
MPQuadraticConstraint _instance
PROTOBUF_CONSTEXPR MPQuadraticObjectiveDefaultTypeInternal()
~MPQuadraticObjectiveDefaultTypeInternal()
MPQuadraticObjective _instance
PROTOBUF_CONSTEXPR MPSolutionDefaultTypeInternal()
~MPSolutionDefaultTypeInternal()
~MPSolutionResponseDefaultTypeInternal()
PROTOBUF_CONSTEXPR MPSolutionResponseDefaultTypeInternal()
MPSolutionResponse _instance
~MPSolveInfoDefaultTypeInternal()
PROTOBUF_CONSTEXPR MPSolveInfoDefaultTypeInternal()
~MPSolverCommonParametersDefaultTypeInternal()
PROTOBUF_CONSTEXPR MPSolverCommonParametersDefaultTypeInternal()
MPSolverCommonParameters _instance
PROTOBUF_CONSTEXPR MPSosConstraintDefaultTypeInternal()
~MPSosConstraintDefaultTypeInternal()
MPSosConstraint _instance
PROTOBUF_CONSTEXPR MPVariableProtoDefaultTypeInternal()
~MPVariableProtoDefaultTypeInternal()
MPVariableProto _instance
PROTOBUF_CONSTEXPR OptionalDoubleDefaultTypeInternal()
~OptionalDoubleDefaultTypeInternal()
PROTOBUF_CONSTEXPR PartialVariableAssignmentDefaultTypeInternal()
PartialVariableAssignment _instance
~PartialVariableAssignmentDefaultTypeInternal()
::google::protobuf::Message *PROTOBUF_NULLABLE or_constraint_
::google::protobuf::Message *PROTOBUF_NULLABLE max_constraint_
::google::protobuf::Message *PROTOBUF_NULLABLE min_constraint_
::google::protobuf::Message *PROTOBUF_NULLABLE and_constraint_
::google::protobuf::Message *PROTOBUF_NULLABLE abs_constraint_
::google::protobuf::Message *PROTOBUF_NULLABLE quadratic_constraint_
::google::protobuf::Message *PROTOBUF_NULLABLE indicator_constraint_
::google::protobuf::Message *PROTOBUF_NULLABLE sos_constraint_