Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
rpc.pb.cc
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// NO CHECKED-IN PROTOBUF GENCODE
3// source: ortools/math_opt/rpc.proto
4// Protobuf C++ Version: 6.31.1
5
7
8#include <algorithm>
9#include <type_traits>
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"
19// @@protoc_insertion_point(includes)
20
21// Must be included last.
22#include "google/protobuf/port_def.inc"
23PROTOBUF_PRAGMA_INIT_SEG
24namespace _pb = ::google::protobuf;
26namespace _fl = ::google::protobuf::internal::field_layout;
27namespace operations_research {
28namespace math_opt {
29
30inline constexpr StatusProto::Impl_::Impl_(
31 ::_pbi::ConstantInitialized) noexcept
32 : _cached_size_{0},
33 message_(
34 &::google::protobuf::internal::fixed_address_empty_string,
35 ::_pbi::ConstantInitialized()),
36 code_{0} {}
37
38template <typename>
39PROTOBUF_CONSTEXPR StatusProto::StatusProto(::_pbi::ConstantInitialized)
40#if defined(PROTOBUF_CUSTOM_VTABLE)
41 : ::google::protobuf::Message(StatusProto_class_data_.base()),
42#else // PROTOBUF_CUSTOM_VTABLE
43 : ::google::protobuf::Message(),
44#endif // PROTOBUF_CUSTOM_VTABLE
45 _impl_(::_pbi::ConstantInitialized()) {
46}
48 PROTOBUF_CONSTEXPR StatusProtoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
50 union {
52 };
53};
54
55PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
57
58inline constexpr SolverResourcesProto::Impl_::Impl_(
59 ::_pbi::ConstantInitialized) noexcept
60 : _cached_size_{0},
61 cpu_{0},
62 ram_{0} {}
63
64template <typename>
65PROTOBUF_CONSTEXPR SolverResourcesProto::SolverResourcesProto(::_pbi::ConstantInitialized)
66#if defined(PROTOBUF_CUSTOM_VTABLE)
67 : ::google::protobuf::Message(SolverResourcesProto_class_data_.base()),
68#else // PROTOBUF_CUSTOM_VTABLE
69 : ::google::protobuf::Message(),
70#endif // PROTOBUF_CUSTOM_VTABLE
71 _impl_(::_pbi::ConstantInitialized()) {
72}
80
81PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
83
84inline constexpr SolveResponse::Impl_::Impl_(
85 ::_pbi::ConstantInitialized) noexcept
86 : messages_{},
87 status_or_{},
88 _cached_size_{0},
89 _oneof_case_{} {}
90
91template <typename>
92PROTOBUF_CONSTEXPR SolveResponse::SolveResponse(::_pbi::ConstantInitialized)
93#if defined(PROTOBUF_CUSTOM_VTABLE)
94 : ::google::protobuf::Message(SolveResponse_class_data_.base()),
95#else // PROTOBUF_CUSTOM_VTABLE
96 : ::google::protobuf::Message(),
97#endif // PROTOBUF_CUSTOM_VTABLE
98 _impl_(::_pbi::ConstantInitialized()) {
99}
101 PROTOBUF_CONSTEXPR SolveResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
103 union {
105 };
106};
107
108PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
110
111inline constexpr SolveRequest::Impl_::Impl_(
112 ::_pbi::ConstantInitialized) noexcept
113 : _cached_size_{0},
114 model_{nullptr},
115 initializer_{nullptr},
116 parameters_{nullptr},
117 model_parameters_{nullptr},
118 resources_{nullptr},
119 solver_type_{static_cast< ::operations_research::math_opt::SolverTypeProto >(0)} {}
120
121template <typename>
122PROTOBUF_CONSTEXPR SolveRequest::SolveRequest(::_pbi::ConstantInitialized)
123#if defined(PROTOBUF_CUSTOM_VTABLE)
124 : ::google::protobuf::Message(SolveRequest_class_data_.base()),
125#else // PROTOBUF_CUSTOM_VTABLE
126 : ::google::protobuf::Message(),
127#endif // PROTOBUF_CUSTOM_VTABLE
128 _impl_(::_pbi::ConstantInitialized()) {
129}
131 PROTOBUF_CONSTEXPR SolveRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
133 union {
135 };
136};
137
138PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
140} // namespace math_opt
141} // namespace operations_research
142static constexpr const ::_pb::EnumDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE
144static constexpr const ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE
146const ::uint32_t
148 protodesc_cold) = {
149 0x081, // bitmap
150 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SolverResourcesProto, _impl_._has_bits_),
151 5, // hasbit index offset
152 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SolverResourcesProto, _impl_.cpu_),
153 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SolverResourcesProto, _impl_.ram_),
154 0,
155 1,
156 0x081, // bitmap
157 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SolveRequest, _impl_._has_bits_),
158 9, // hasbit index offset
159 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SolveRequest, _impl_.solver_type_),
160 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SolveRequest, _impl_.model_),
161 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SolveRequest, _impl_.resources_),
162 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SolveRequest, _impl_.initializer_),
163 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SolveRequest, _impl_.parameters_),
164 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SolveRequest, _impl_.model_parameters_),
165 5,
166 0,
167 4,
168 1,
169 2,
170 3,
171 0x004, // bitmap
172 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SolveResponse, _impl_._oneof_case_[0]),
173 ::_pbi::kInvalidFieldOffsetTag,
174 ::_pbi::kInvalidFieldOffsetTag,
175 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SolveResponse, _impl_.messages_),
176 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SolveResponse, _impl_.status_or_),
177 0x081, // bitmap
178 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::StatusProto, _impl_._has_bits_),
179 5, // hasbit index offset
180 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::StatusProto, _impl_.code_),
181 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::StatusProto, _impl_.message_),
182 1,
183 0,
184};
185
186static const ::_pbi::MigrationSchema
187 schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
192};
199const char descriptor_table_protodef_ortools_2fmath_5fopt_2frpc_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
200 protodesc_cold) = {
201 "\n\032ortools/math_opt/rpc.proto\022\034operations"
202 "_research.math_opt\032\037ortools/math_opt/cal"
203 "lback.proto\032+ortools/math_opt/infeasible"
204 "_subsystem.proto\032\034ortools/math_opt/model"
205 ".proto\032\'ortools/math_opt/model_parameter"
206 "s.proto\032#ortools/math_opt/model_update.p"
207 "roto\032!ortools/math_opt/parameters.proto\032"
208 "\035ortools/math_opt/result.proto\"J\n\024Solver"
209 "ResourcesProto\022\020\n\003cpu\030\001 \001(\001H\000\210\001\001\022\020\n\003ram\030"
210 "\002 \001(\001H\001\210\001\001B\006\n\004_cpuB\006\n\004_ram\"\270\003\n\014SolveRequ"
211 "est\022B\n\013solver_type\030\001 \001(\0162-.operations_re"
212 "search.math_opt.SolverTypeProto\0227\n\005model"
213 "\030\002 \001(\0132(.operations_research.math_opt.Mo"
214 "delProto\022E\n\tresources\030\006 \001(\01322.operations"
215 "_research.math_opt.SolverResourcesProto\022"
216 "I\n\013initializer\030\003 \001(\01324.operations_resear"
217 "ch.math_opt.SolverInitializerProto\022F\n\npa"
218 "rameters\030\004 \001(\01322.operations_research.mat"
219 "h_opt.SolveParametersProto\022Q\n\020model_para"
220 "meters\030\005 \001(\01327.operations_research.math_"
221 "opt.ModelSolveParametersProto\"\255\001\n\rSolveR"
222 "esponse\022@\n\006result\030\001 \001(\0132..operations_res"
223 "earch.math_opt.SolveResultProtoH\000\022;\n\006sta"
224 "tus\030\003 \001(\0132).operations_research.math_opt"
225 ".StatusProtoH\000\022\020\n\010messages\030\002 \003(\tB\013\n\tstat"
226 "us_or\",\n\013StatusProto\022\014\n\004code\030\001 \001(\005\022\017\n\007me"
227 "ssage\030\002 \001(\tB\036\n\032com.google.ortools.mathop"
228 "tP\001b\006proto3"
229};
230static const ::_pbi::DescriptorTable* PROTOBUF_NONNULL const
257namespace operations_research {
258namespace math_opt {
259// ===================================================================
260
262 public:
263 using HasBits =
264 decltype(::std::declval<SolverResourcesProto>()._impl_._has_bits_);
265 static constexpr ::int32_t kHasBitsOffset =
266 8 * PROTOBUF_FIELD_OFFSET(SolverResourcesProto, _impl_._has_bits_);
267};
268
269SolverResourcesProto::SolverResourcesProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
270#if defined(PROTOBUF_CUSTOM_VTABLE)
271 : ::google::protobuf::Message(arena, SolverResourcesProto_class_data_.base()) {
272#else // PROTOBUF_CUSTOM_VTABLE
273 : ::google::protobuf::Message(arena) {
274#endif // PROTOBUF_CUSTOM_VTABLE
275 SharedCtor(arena);
276 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.SolverResourcesProto)
277}
279 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SolverResourcesProto& from)
280#if defined(PROTOBUF_CUSTOM_VTABLE)
281 : ::google::protobuf::Message(arena, SolverResourcesProto_class_data_.base()),
282#else // PROTOBUF_CUSTOM_VTABLE
283 : ::google::protobuf::Message(arena),
284#endif // PROTOBUF_CUSTOM_VTABLE
285 _impl_(from._impl_) {
286 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
287 from._internal_metadata_);
288}
289PROTOBUF_NDEBUG_INLINE SolverResourcesProto::Impl_::Impl_(
290 ::google::protobuf::internal::InternalVisibility visibility,
291 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
292 : _cached_size_{0} {}
293
294inline void SolverResourcesProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
295 new (&_impl_) Impl_(internal_visibility(), arena);
296 ::memset(reinterpret_cast<char *>(&_impl_) +
297 offsetof(Impl_, cpu_),
298 0,
299 offsetof(Impl_, ram_) -
300 offsetof(Impl_, cpu_) +
301 sizeof(Impl_::ram_));
302}
304 // @@protoc_insertion_point(destructor:operations_research.math_opt.SolverResourcesProto)
305 SharedDtor(*this);
306}
307inline void SolverResourcesProto::SharedDtor(MessageLite& self) {
308 SolverResourcesProto& this_ = static_cast<SolverResourcesProto&>(self);
309 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
310 ABSL_DCHECK(this_.GetArena() == nullptr);
311 this_._impl_.~Impl_();
312}
313
314inline void* PROTOBUF_NONNULL SolverResourcesProto::PlacementNew_(
315 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
316 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
317 return ::new (mem) SolverResourcesProto(arena);
318}
320 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SolverResourcesProto),
321 alignof(SolverResourcesProto));
322}
324 return ::google::protobuf::internal::ClassDataFull{
325 ::google::protobuf::internal::ClassData{
327 &_table_.header,
328 nullptr, // OnDemandRegisterArenaDtor
329 nullptr, // IsInitialized
330 &SolverResourcesProto::MergeImpl,
331 ::google::protobuf::Message::GetNewImpl<SolverResourcesProto>(),
332#if defined(PROTOBUF_CUSTOM_VTABLE)
333 &SolverResourcesProto::SharedDtor,
334 ::google::protobuf::Message::GetClearImpl<SolverResourcesProto>(), &SolverResourcesProto::ByteSizeLong,
336#endif // PROTOBUF_CUSTOM_VTABLE
337 PROTOBUF_FIELD_OFFSET(SolverResourcesProto, _impl_._cached_size_),
338 false,
339 },
340 &SolverResourcesProto::kDescriptorMethods,
342 nullptr, // tracker
343 };
344}
345
346PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
347 ::google::protobuf::internal::ClassDataFull SolverResourcesProto_class_data_ =
349
350PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
352 ::google::protobuf::internal::PrefetchToLocalCache(&SolverResourcesProto_class_data_);
353 ::google::protobuf::internal::PrefetchToLocalCache(SolverResourcesProto_class_data_.tc_table);
355}
356PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
357const ::_pbi::TcParseTable<1, 2, 0, 0, 2>
358SolverResourcesProto::_table_ = {
359 {
360 PROTOBUF_FIELD_OFFSET(SolverResourcesProto, _impl_._has_bits_),
361 0, // no _extensions_
362 2, 8, // max_field_number, fast_idx_mask
363 offsetof(decltype(_table_), field_lookup_table),
364 4294967292, // skipmap
365 offsetof(decltype(_table_), field_entries),
366 2, // num_field_entries
367 0, // num_aux_entries
368 offsetof(decltype(_table_), field_names), // no aux_entries
370 nullptr, // post_loop_handler
371 ::_pbi::TcParser::GenericFallback, // fallback
372 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
373 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SolverResourcesProto>(), // to_prefetch
374 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
375 }, {{
376 // optional double ram = 2;
377 {::_pbi::TcParser::FastF64S1,
378 {17, 1, 0, PROTOBUF_FIELD_OFFSET(SolverResourcesProto, _impl_.ram_)}},
379 // optional double cpu = 1;
380 {::_pbi::TcParser::FastF64S1,
381 {9, 0, 0, PROTOBUF_FIELD_OFFSET(SolverResourcesProto, _impl_.cpu_)}},
382 }}, {{
383 65535, 65535
384 }}, {{
385 // optional double cpu = 1;
386 {PROTOBUF_FIELD_OFFSET(SolverResourcesProto, _impl_.cpu_), _Internal::kHasBitsOffset + 0, 0,
387 (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
388 // optional double ram = 2;
389 {PROTOBUF_FIELD_OFFSET(SolverResourcesProto, _impl_.ram_), _Internal::kHasBitsOffset + 1, 0,
390 (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
391 }},
392 // no aux_entries
393 {{
394 }},
395};
396PROTOBUF_NOINLINE void SolverResourcesProto::Clear() {
397// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.SolverResourcesProto)
398 ::google::protobuf::internal::TSanWrite(&_impl_);
399 ::uint32_t cached_has_bits = 0;
400 // Prevent compiler warnings about cached_has_bits being unused
401 (void) cached_has_bits;
402
403 cached_has_bits = _impl_._has_bits_[0];
404 if ((cached_has_bits & 0x00000003u) != 0) {
405 ::memset(&_impl_.cpu_, 0, static_cast<::size_t>(
406 reinterpret_cast<char*>(&_impl_.ram_) -
407 reinterpret_cast<char*>(&_impl_.cpu_)) + sizeof(_impl_.ram_));
408 }
409 _impl_._has_bits_.Clear();
410 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
411}
412
413#if defined(PROTOBUF_CUSTOM_VTABLE)
414::uint8_t* PROTOBUF_NONNULL SolverResourcesProto::_InternalSerialize(
415 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
416 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
417 const SolverResourcesProto& this_ = static_cast<const SolverResourcesProto&>(base);
418#else // PROTOBUF_CUSTOM_VTABLE
419::uint8_t* PROTOBUF_NONNULL SolverResourcesProto::_InternalSerialize(
420 ::uint8_t* PROTOBUF_NONNULL target,
421 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
422 const SolverResourcesProto& this_ = *this;
423#endif // PROTOBUF_CUSTOM_VTABLE
424 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.SolverResourcesProto)
425 ::uint32_t cached_has_bits = 0;
426 (void)cached_has_bits;
427
428 cached_has_bits = this_._impl_._has_bits_[0];
429 // optional double cpu = 1;
430 if ((cached_has_bits & 0x00000001u) != 0) {
431 target = stream->EnsureSpace(target);
432 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
433 1, this_._internal_cpu(), target);
434 }
435
436 // optional double ram = 2;
437 if ((cached_has_bits & 0x00000002u) != 0) {
438 target = stream->EnsureSpace(target);
439 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
440 2, this_._internal_ram(), target);
441 }
442
443 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
444 target =
445 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
446 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
447 }
448 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.SolverResourcesProto)
449 return target;
450}
451
452#if defined(PROTOBUF_CUSTOM_VTABLE)
454 const SolverResourcesProto& this_ = static_cast<const SolverResourcesProto&>(base);
455#else // PROTOBUF_CUSTOM_VTABLE
456::size_t SolverResourcesProto::ByteSizeLong() const {
457 const SolverResourcesProto& this_ = *this;
458#endif // PROTOBUF_CUSTOM_VTABLE
459 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.SolverResourcesProto)
460 ::size_t total_size = 0;
461
462 ::uint32_t cached_has_bits = 0;
463 // Prevent compiler warnings about cached_has_bits being unused
464 (void)cached_has_bits;
465
466 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
467 cached_has_bits = this_._impl_._has_bits_[0];
468 total_size += ::absl::popcount(0x00000003u & cached_has_bits) * 9;
469 return this_.MaybeComputeUnknownFieldsSize(total_size,
470 &this_._impl_._cached_size_);
471}
472
473void SolverResourcesProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
474 auto* const _this = static_cast<SolverResourcesProto*>(&to_msg);
475 auto& from = static_cast<const SolverResourcesProto&>(from_msg);
476 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.SolverResourcesProto)
477 ABSL_DCHECK_NE(&from, _this);
478 ::uint32_t cached_has_bits = 0;
479 (void) cached_has_bits;
480
481 cached_has_bits = from._impl_._has_bits_[0];
482 if ((cached_has_bits & 0x00000003u) != 0) {
483 if ((cached_has_bits & 0x00000001u) != 0) {
484 _this->_impl_.cpu_ = from._impl_.cpu_;
485 }
486 if ((cached_has_bits & 0x00000002u) != 0) {
487 _this->_impl_.ram_ = from._impl_.ram_;
488 }
489 }
490 _this->_impl_._has_bits_[0] |= cached_has_bits;
491 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
492}
493
495// @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.SolverResourcesProto)
496 if (&from == this) return;
497 Clear();
498 MergeFrom(from);
499}
500
501
502void SolverResourcesProto::InternalSwap(SolverResourcesProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
503 using ::std::swap;
504 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
505 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
506 ::google::protobuf::internal::memswap<
507 PROTOBUF_FIELD_OFFSET(SolverResourcesProto, _impl_.ram_)
508 + sizeof(SolverResourcesProto::_impl_.ram_)
509 - PROTOBUF_FIELD_OFFSET(SolverResourcesProto, _impl_.cpu_)>(
510 reinterpret_cast<char*>(&_impl_.cpu_),
511 reinterpret_cast<char*>(&other->_impl_.cpu_));
512}
513
514::google::protobuf::Metadata SolverResourcesProto::GetMetadata() const {
515 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
516}
517// ===================================================================
518
520 public:
521 using HasBits =
522 decltype(::std::declval<SolveRequest>()._impl_._has_bits_);
523 static constexpr ::int32_t kHasBitsOffset =
524 8 * PROTOBUF_FIELD_OFFSET(SolveRequest, _impl_._has_bits_);
526
528 ::google::protobuf::internal::TSanWrite(&_impl_);
529 if (_impl_.model_ != nullptr) _impl_.model_->Clear();
530 _impl_._has_bits_[0] &= ~0x00000001u;
531}
533 ::google::protobuf::internal::TSanWrite(&_impl_);
534 if (_impl_.initializer_ != nullptr) _impl_.initializer_->Clear();
535 _impl_._has_bits_[0] &= ~0x00000002u;
536}
538 ::google::protobuf::internal::TSanWrite(&_impl_);
539 if (_impl_.parameters_ != nullptr) _impl_.parameters_->Clear();
540 _impl_._has_bits_[0] &= ~0x00000004u;
541}
543 ::google::protobuf::internal::TSanWrite(&_impl_);
544 if (_impl_.model_parameters_ != nullptr) _impl_.model_parameters_->Clear();
545 _impl_._has_bits_[0] &= ~0x00000008u;
546}
547SolveRequest::SolveRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
548#if defined(PROTOBUF_CUSTOM_VTABLE)
549 : ::google::protobuf::Message(arena, SolveRequest_class_data_.base()) {
550#else // PROTOBUF_CUSTOM_VTABLE
551 : ::google::protobuf::Message(arena) {
552#endif // PROTOBUF_CUSTOM_VTABLE
553 SharedCtor(arena);
554 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.SolveRequest)
555}
556PROTOBUF_NDEBUG_INLINE SolveRequest::Impl_::Impl_(
557 ::google::protobuf::internal::InternalVisibility visibility,
558 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
559 const ::operations_research::math_opt::SolveRequest& from_msg)
560 : _has_bits_{from._has_bits_},
561 _cached_size_{0} {}
562
564 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
565 const SolveRequest& from)
566#if defined(PROTOBUF_CUSTOM_VTABLE)
567 : ::google::protobuf::Message(arena, SolveRequest_class_data_.base()) {
568#else // PROTOBUF_CUSTOM_VTABLE
569 : ::google::protobuf::Message(arena) {
570#endif // PROTOBUF_CUSTOM_VTABLE
571 SolveRequest* const _this = this;
572 (void)_this;
573 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
574 from._internal_metadata_);
575 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
576 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
577 _impl_.model_ = ((cached_has_bits & 0x00000001u) != 0)
578 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.model_)
579 : nullptr;
580 _impl_.initializer_ = ((cached_has_bits & 0x00000002u) != 0)
581 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.initializer_)
582 : nullptr;
583 _impl_.parameters_ = ((cached_has_bits & 0x00000004u) != 0)
584 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.parameters_)
585 : nullptr;
586 _impl_.model_parameters_ = ((cached_has_bits & 0x00000008u) != 0)
587 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.model_parameters_)
588 : nullptr;
589 _impl_.resources_ = ((cached_has_bits & 0x00000010u) != 0)
590 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.resources_)
591 : nullptr;
592 _impl_.solver_type_ = from._impl_.solver_type_;
593
594 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.SolveRequest)
595}
596PROTOBUF_NDEBUG_INLINE SolveRequest::Impl_::Impl_(
597 ::google::protobuf::internal::InternalVisibility visibility,
598 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
599 : _cached_size_{0} {}
600
601inline void SolveRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
602 new (&_impl_) Impl_(internal_visibility(), arena);
603 ::memset(reinterpret_cast<char *>(&_impl_) +
604 offsetof(Impl_, model_),
605 0,
606 offsetof(Impl_, solver_type_) -
607 offsetof(Impl_, model_) +
608 sizeof(Impl_::solver_type_));
609}
611 // @@protoc_insertion_point(destructor:operations_research.math_opt.SolveRequest)
612 SharedDtor(*this);
613}
614inline void SolveRequest::SharedDtor(MessageLite& self) {
615 SolveRequest& this_ = static_cast<SolveRequest&>(self);
616 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
617 ABSL_DCHECK(this_.GetArena() == nullptr);
618 delete this_._impl_.model_;
619 delete this_._impl_.initializer_;
620 delete this_._impl_.parameters_;
621 delete this_._impl_.model_parameters_;
622 delete this_._impl_.resources_;
623 this_._impl_.~Impl_();
624}
625
626inline void* PROTOBUF_NONNULL SolveRequest::PlacementNew_(
627 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
628 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
629 return ::new (mem) SolveRequest(arena);
630}
631constexpr auto SolveRequest::InternalNewImpl_() {
632 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SolveRequest),
633 alignof(SolveRequest));
634}
636 return ::google::protobuf::internal::ClassDataFull{
637 ::google::protobuf::internal::ClassData{
639 &_table_.header,
640 nullptr, // OnDemandRegisterArenaDtor
641 nullptr, // IsInitialized
642 &SolveRequest::MergeImpl,
643 ::google::protobuf::Message::GetNewImpl<SolveRequest>(),
644#if defined(PROTOBUF_CUSTOM_VTABLE)
645 &SolveRequest::SharedDtor,
646 ::google::protobuf::Message::GetClearImpl<SolveRequest>(), &SolveRequest::ByteSizeLong,
648#endif // PROTOBUF_CUSTOM_VTABLE
649 PROTOBUF_FIELD_OFFSET(SolveRequest, _impl_._cached_size_),
650 false,
651 },
652 &SolveRequest::kDescriptorMethods,
654 nullptr, // tracker
655 };
656}
657
658PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
659 ::google::protobuf::internal::ClassDataFull SolveRequest_class_data_ =
662PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
664 ::google::protobuf::internal::PrefetchToLocalCache(&SolveRequest_class_data_);
665 ::google::protobuf::internal::PrefetchToLocalCache(SolveRequest_class_data_.tc_table);
666 return SolveRequest_class_data_.base();
667}
668PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
669const ::_pbi::TcParseTable<3, 6, 5, 0, 2>
670SolveRequest::_table_ = {
671 {
672 PROTOBUF_FIELD_OFFSET(SolveRequest, _impl_._has_bits_),
673 0, // no _extensions_
674 6, 56, // max_field_number, fast_idx_mask
675 offsetof(decltype(_table_), field_lookup_table),
676 4294967232, // skipmap
677 offsetof(decltype(_table_), field_entries),
678 6, // num_field_entries
679 5, // num_aux_entries
680 offsetof(decltype(_table_), aux_entries),
682 nullptr, // post_loop_handler
683 ::_pbi::TcParser::GenericFallback, // fallback
684 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
685 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SolveRequest>(), // to_prefetch
686 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
687 }, {{
688 {::_pbi::TcParser::MiniParse, {}},
689 // .operations_research.math_opt.SolverTypeProto solver_type = 1;
690 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SolveRequest, _impl_.solver_type_), 5>(),
691 {8, 5, 0, PROTOBUF_FIELD_OFFSET(SolveRequest, _impl_.solver_type_)}},
692 // .operations_research.math_opt.ModelProto model = 2;
693 {::_pbi::TcParser::FastMtS1,
694 {18, 0, 0, PROTOBUF_FIELD_OFFSET(SolveRequest, _impl_.model_)}},
695 // .operations_research.math_opt.SolverInitializerProto initializer = 3;
696 {::_pbi::TcParser::FastMtS1,
697 {26, 1, 1, PROTOBUF_FIELD_OFFSET(SolveRequest, _impl_.initializer_)}},
698 // .operations_research.math_opt.SolveParametersProto parameters = 4;
699 {::_pbi::TcParser::FastMtS1,
700 {34, 2, 2, PROTOBUF_FIELD_OFFSET(SolveRequest, _impl_.parameters_)}},
701 // .operations_research.math_opt.ModelSolveParametersProto model_parameters = 5;
702 {::_pbi::TcParser::FastMtS1,
703 {42, 3, 3, PROTOBUF_FIELD_OFFSET(SolveRequest, _impl_.model_parameters_)}},
704 // .operations_research.math_opt.SolverResourcesProto resources = 6;
705 {::_pbi::TcParser::FastMtS1,
706 {50, 4, 4, PROTOBUF_FIELD_OFFSET(SolveRequest, _impl_.resources_)}},
707 {::_pbi::TcParser::MiniParse, {}},
708 }}, {{
709 65535, 65535
710 }}, {{
711 // .operations_research.math_opt.SolverTypeProto solver_type = 1;
712 {PROTOBUF_FIELD_OFFSET(SolveRequest, _impl_.solver_type_), _Internal::kHasBitsOffset + 5, 0,
713 (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
714 // .operations_research.math_opt.ModelProto model = 2;
715 {PROTOBUF_FIELD_OFFSET(SolveRequest, _impl_.model_), _Internal::kHasBitsOffset + 0, 0,
716 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
717 // .operations_research.math_opt.SolverInitializerProto initializer = 3;
718 {PROTOBUF_FIELD_OFFSET(SolveRequest, _impl_.initializer_), _Internal::kHasBitsOffset + 1, 1,
719 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
720 // .operations_research.math_opt.SolveParametersProto parameters = 4;
721 {PROTOBUF_FIELD_OFFSET(SolveRequest, _impl_.parameters_), _Internal::kHasBitsOffset + 2, 2,
722 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
723 // .operations_research.math_opt.ModelSolveParametersProto model_parameters = 5;
724 {PROTOBUF_FIELD_OFFSET(SolveRequest, _impl_.model_parameters_), _Internal::kHasBitsOffset + 3, 3,
725 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
726 // .operations_research.math_opt.SolverResourcesProto resources = 6;
727 {PROTOBUF_FIELD_OFFSET(SolveRequest, _impl_.resources_), _Internal::kHasBitsOffset + 4, 4,
728 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
729 }},
730 {{
731 {::_pbi::TcParser::GetTable<::operations_research::math_opt::ModelProto>()},
732 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SolverInitializerProto>()},
733 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SolveParametersProto>()},
734 {::_pbi::TcParser::GetTable<::operations_research::math_opt::ModelSolveParametersProto>()},
735 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SolverResourcesProto>()},
736 }},
737 {{
738 }},
739};
740PROTOBUF_NOINLINE void SolveRequest::Clear() {
741// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.SolveRequest)
742 ::google::protobuf::internal::TSanWrite(&_impl_);
743 ::uint32_t cached_has_bits = 0;
744 // Prevent compiler warnings about cached_has_bits being unused
745 (void) cached_has_bits;
746
747 cached_has_bits = _impl_._has_bits_[0];
748 if ((cached_has_bits & 0x0000001fu) != 0) {
749 if ((cached_has_bits & 0x00000001u) != 0) {
750 ABSL_DCHECK(_impl_.model_ != nullptr);
751 _impl_.model_->Clear();
752 }
753 if ((cached_has_bits & 0x00000002u) != 0) {
754 ABSL_DCHECK(_impl_.initializer_ != nullptr);
755 _impl_.initializer_->Clear();
756 }
757 if ((cached_has_bits & 0x00000004u) != 0) {
758 ABSL_DCHECK(_impl_.parameters_ != nullptr);
759 _impl_.parameters_->Clear();
760 }
761 if ((cached_has_bits & 0x00000008u) != 0) {
762 ABSL_DCHECK(_impl_.model_parameters_ != nullptr);
763 _impl_.model_parameters_->Clear();
764 }
765 if ((cached_has_bits & 0x00000010u) != 0) {
766 ABSL_DCHECK(_impl_.resources_ != nullptr);
767 _impl_.resources_->Clear();
768 }
769 }
770 _impl_.solver_type_ = 0;
771 _impl_._has_bits_.Clear();
772 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
773}
774
775#if defined(PROTOBUF_CUSTOM_VTABLE)
776::uint8_t* PROTOBUF_NONNULL SolveRequest::_InternalSerialize(
777 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
778 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
779 const SolveRequest& this_ = static_cast<const SolveRequest&>(base);
780#else // PROTOBUF_CUSTOM_VTABLE
781::uint8_t* PROTOBUF_NONNULL SolveRequest::_InternalSerialize(
782 ::uint8_t* PROTOBUF_NONNULL target,
783 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
784 const SolveRequest& this_ = *this;
785#endif // PROTOBUF_CUSTOM_VTABLE
786 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.SolveRequest)
787 ::uint32_t cached_has_bits = 0;
788 (void)cached_has_bits;
789
790 // .operations_research.math_opt.SolverTypeProto solver_type = 1;
791 if ((this_._impl_._has_bits_[0] & 0x00000020u) != 0) {
792 if (this_._internal_solver_type() != 0) {
793 target = stream->EnsureSpace(target);
794 target = ::_pbi::WireFormatLite::WriteEnumToArray(
795 1, this_._internal_solver_type(), target);
796 }
797 }
798
799 cached_has_bits = this_._impl_._has_bits_[0];
800 // .operations_research.math_opt.ModelProto model = 2;
801 if ((cached_has_bits & 0x00000001u) != 0) {
802 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
803 2, *this_._impl_.model_, this_._impl_.model_->GetCachedSize(), target,
804 stream);
805 }
806
807 // .operations_research.math_opt.SolverInitializerProto initializer = 3;
808 if ((cached_has_bits & 0x00000002u) != 0) {
809 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
810 3, *this_._impl_.initializer_, this_._impl_.initializer_->GetCachedSize(), target,
811 stream);
812 }
813
814 // .operations_research.math_opt.SolveParametersProto parameters = 4;
815 if ((cached_has_bits & 0x00000004u) != 0) {
816 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
817 4, *this_._impl_.parameters_, this_._impl_.parameters_->GetCachedSize(), target,
818 stream);
819 }
820
821 // .operations_research.math_opt.ModelSolveParametersProto model_parameters = 5;
822 if ((cached_has_bits & 0x00000008u) != 0) {
823 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
824 5, *this_._impl_.model_parameters_, this_._impl_.model_parameters_->GetCachedSize(), target,
825 stream);
826 }
827
828 // .operations_research.math_opt.SolverResourcesProto resources = 6;
829 if ((cached_has_bits & 0x00000010u) != 0) {
830 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
831 6, *this_._impl_.resources_, this_._impl_.resources_->GetCachedSize(), target,
832 stream);
833 }
834
835 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
836 target =
837 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
838 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
839 }
840 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.SolveRequest)
841 return target;
842}
843
844#if defined(PROTOBUF_CUSTOM_VTABLE)
846 const SolveRequest& this_ = static_cast<const SolveRequest&>(base);
847#else // PROTOBUF_CUSTOM_VTABLE
848::size_t SolveRequest::ByteSizeLong() const {
849 const SolveRequest& this_ = *this;
850#endif // PROTOBUF_CUSTOM_VTABLE
851 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.SolveRequest)
852 ::size_t total_size = 0;
853
854 ::uint32_t cached_has_bits = 0;
855 // Prevent compiler warnings about cached_has_bits being unused
856 (void)cached_has_bits;
857
858 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
859 cached_has_bits = this_._impl_._has_bits_[0];
860 if ((cached_has_bits & 0x0000003fu) != 0) {
861 // .operations_research.math_opt.ModelProto model = 2;
862 if ((cached_has_bits & 0x00000001u) != 0) {
863 total_size += 1 +
864 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.model_);
865 }
866 // .operations_research.math_opt.SolverInitializerProto initializer = 3;
867 if ((cached_has_bits & 0x00000002u) != 0) {
868 total_size += 1 +
869 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.initializer_);
870 }
871 // .operations_research.math_opt.SolveParametersProto parameters = 4;
872 if ((cached_has_bits & 0x00000004u) != 0) {
873 total_size += 1 +
874 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.parameters_);
875 }
876 // .operations_research.math_opt.ModelSolveParametersProto model_parameters = 5;
877 if ((cached_has_bits & 0x00000008u) != 0) {
878 total_size += 1 +
879 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.model_parameters_);
880 }
881 // .operations_research.math_opt.SolverResourcesProto resources = 6;
882 if ((cached_has_bits & 0x00000010u) != 0) {
883 total_size += 1 +
884 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.resources_);
885 }
886 // .operations_research.math_opt.SolverTypeProto solver_type = 1;
887 if ((cached_has_bits & 0x00000020u) != 0) {
888 if (this_._internal_solver_type() != 0) {
889 total_size += 1 +
890 ::_pbi::WireFormatLite::EnumSize(this_._internal_solver_type());
891 }
892 }
893 }
894 return this_.MaybeComputeUnknownFieldsSize(total_size,
895 &this_._impl_._cached_size_);
896}
897
898void SolveRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
899 auto* const _this = static_cast<SolveRequest*>(&to_msg);
900 auto& from = static_cast<const SolveRequest&>(from_msg);
901 ::google::protobuf::Arena* arena = _this->GetArena();
902 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.SolveRequest)
903 ABSL_DCHECK_NE(&from, _this);
904 ::uint32_t cached_has_bits = 0;
905 (void) cached_has_bits;
906
907 cached_has_bits = from._impl_._has_bits_[0];
908 if ((cached_has_bits & 0x0000003fu) != 0) {
909 if ((cached_has_bits & 0x00000001u) != 0) {
910 ABSL_DCHECK(from._impl_.model_ != nullptr);
911 if (_this->_impl_.model_ == nullptr) {
912 _this->_impl_.model_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.model_);
913 } else {
914 _this->_impl_.model_->MergeFrom(*from._impl_.model_);
915 }
916 }
917 if ((cached_has_bits & 0x00000002u) != 0) {
918 ABSL_DCHECK(from._impl_.initializer_ != nullptr);
919 if (_this->_impl_.initializer_ == nullptr) {
920 _this->_impl_.initializer_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.initializer_);
921 } else {
922 _this->_impl_.initializer_->MergeFrom(*from._impl_.initializer_);
923 }
924 }
925 if ((cached_has_bits & 0x00000004u) != 0) {
926 ABSL_DCHECK(from._impl_.parameters_ != nullptr);
927 if (_this->_impl_.parameters_ == nullptr) {
928 _this->_impl_.parameters_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.parameters_);
929 } else {
930 _this->_impl_.parameters_->MergeFrom(*from._impl_.parameters_);
931 }
932 }
933 if ((cached_has_bits & 0x00000008u) != 0) {
934 ABSL_DCHECK(from._impl_.model_parameters_ != nullptr);
935 if (_this->_impl_.model_parameters_ == nullptr) {
936 _this->_impl_.model_parameters_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.model_parameters_);
937 } else {
938 _this->_impl_.model_parameters_->MergeFrom(*from._impl_.model_parameters_);
939 }
940 }
941 if ((cached_has_bits & 0x00000010u) != 0) {
942 ABSL_DCHECK(from._impl_.resources_ != nullptr);
943 if (_this->_impl_.resources_ == nullptr) {
944 _this->_impl_.resources_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.resources_);
945 } else {
946 _this->_impl_.resources_->MergeFrom(*from._impl_.resources_);
947 }
948 }
949 if ((cached_has_bits & 0x00000020u) != 0) {
950 if (from._internal_solver_type() != 0) {
951 _this->_impl_.solver_type_ = from._impl_.solver_type_;
952 }
953 }
954 }
955 _this->_impl_._has_bits_[0] |= cached_has_bits;
956 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
957}
958
959void SolveRequest::CopyFrom(const SolveRequest& from) {
960// @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.SolveRequest)
961 if (&from == this) return;
962 Clear();
963 MergeFrom(from);
964}
965
966
967void SolveRequest::InternalSwap(SolveRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
968 using ::std::swap;
969 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
970 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
971 ::google::protobuf::internal::memswap<
972 PROTOBUF_FIELD_OFFSET(SolveRequest, _impl_.solver_type_)
973 + sizeof(SolveRequest::_impl_.solver_type_)
974 - PROTOBUF_FIELD_OFFSET(SolveRequest, _impl_.model_)>(
975 reinterpret_cast<char*>(&_impl_.model_),
976 reinterpret_cast<char*>(&other->_impl_.model_));
977}
978
979::google::protobuf::Metadata SolveRequest::GetMetadata() const {
980 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
982// ===================================================================
983
985 public:
986 static constexpr ::int32_t kOneofCaseOffset =
987 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SolveResponse, _impl_._oneof_case_);
988};
991 ::google::protobuf::Arena* message_arena = GetArena();
993 if (result) {
994 ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(result)->GetArena();
995 if (message_arena != submessage_arena) {
996 result = ::google::protobuf::internal::GetOwnedMessage(message_arena, result, submessage_arena);
997 }
998 set_has_result();
999 _impl_.status_or_.result_ = result;
1000 }
1001 // @@protoc_insertion_point(field_set_allocated:operations_research.math_opt.SolveResponse.result)
1002}
1004 ::google::protobuf::internal::TSanWrite(&_impl_);
1005 if (status_or_case() == kResult) {
1006 if (GetArena() == nullptr) {
1007 delete _impl_.status_or_.result_;
1008 } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
1009 ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.status_or_.result_);
1010 }
1011 clear_has_status_or();
1012 }
1013}
1014void SolveResponse::set_allocated_status(::operations_research::math_opt::StatusProto* PROTOBUF_NULLABLE status) {
1015 ::google::protobuf::Arena* message_arena = GetArena();
1016 clear_status_or();
1017 if (status) {
1018 ::google::protobuf::Arena* submessage_arena = status->GetArena();
1019 if (message_arena != submessage_arena) {
1020 status = ::google::protobuf::internal::GetOwnedMessage(message_arena, status, submessage_arena);
1021 }
1022 set_has_status();
1023 _impl_.status_or_.status_ = status;
1024 }
1025 // @@protoc_insertion_point(field_set_allocated:operations_research.math_opt.SolveResponse.status)
1026}
1027SolveResponse::SolveResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1028#if defined(PROTOBUF_CUSTOM_VTABLE)
1029 : ::google::protobuf::Message(arena, SolveResponse_class_data_.base()) {
1030#else // PROTOBUF_CUSTOM_VTABLE
1031 : ::google::protobuf::Message(arena) {
1032#endif // PROTOBUF_CUSTOM_VTABLE
1033 SharedCtor(arena);
1034 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.SolveResponse)
1035}
1036PROTOBUF_NDEBUG_INLINE SolveResponse::Impl_::Impl_(
1037 ::google::protobuf::internal::InternalVisibility visibility,
1038 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
1039 const ::operations_research::math_opt::SolveResponse& from_msg)
1040 : messages_{visibility, arena, from.messages_},
1041 status_or_{},
1042 _cached_size_{0},
1043 _oneof_case_{from._oneof_case_[0]} {}
1044
1046 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1047 const SolveResponse& from)
1048#if defined(PROTOBUF_CUSTOM_VTABLE)
1049 : ::google::protobuf::Message(arena, SolveResponse_class_data_.base()) {
1050#else // PROTOBUF_CUSTOM_VTABLE
1051 : ::google::protobuf::Message(arena) {
1052#endif // PROTOBUF_CUSTOM_VTABLE
1053 SolveResponse* const _this = this;
1054 (void)_this;
1055 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1056 from._internal_metadata_);
1057 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1058 switch (status_or_case()) {
1059 case STATUS_OR_NOT_SET:
1060 break;
1061 case kResult:
1062 _impl_.status_or_.result_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.status_or_.result_);
1063 break;
1064 case kStatus:
1065 _impl_.status_or_.status_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.status_or_.status_);
1066 break;
1067 }
1068
1069 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.SolveResponse)
1070}
1071PROTOBUF_NDEBUG_INLINE SolveResponse::Impl_::Impl_(
1072 ::google::protobuf::internal::InternalVisibility visibility,
1073 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1074 : messages_{visibility, arena},
1075 status_or_{},
1076 _cached_size_{0},
1077 _oneof_case_{} {}
1078
1079inline void SolveResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1080 new (&_impl_) Impl_(internal_visibility(), arena);
1081}
1083 // @@protoc_insertion_point(destructor:operations_research.math_opt.SolveResponse)
1084 SharedDtor(*this);
1086inline void SolveResponse::SharedDtor(MessageLite& self) {
1087 SolveResponse& this_ = static_cast<SolveResponse&>(self);
1088 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1089 ABSL_DCHECK(this_.GetArena() == nullptr);
1090 if (this_.has_status_or()) {
1091 this_.clear_status_or();
1092 }
1093 this_._impl_.~Impl_();
1094}
1095
1097// @@protoc_insertion_point(one_of_clear_start:operations_research.math_opt.SolveResponse)
1098 ::google::protobuf::internal::TSanWrite(&_impl_);
1099 switch (status_or_case()) {
1100 case kResult: {
1101 if (GetArena() == nullptr) {
1102 delete _impl_.status_or_.result_;
1103 } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
1104 ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.status_or_.result_);
1105 }
1106 break;
1107 }
1108 case kStatus: {
1109 if (GetArena() == nullptr) {
1110 delete _impl_.status_or_.status_;
1111 } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
1112 ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.status_or_.status_);
1113 }
1114 break;
1115 }
1116 case STATUS_OR_NOT_SET: {
1117 break;
1118 }
1119 }
1120 _impl_._oneof_case_[0] = STATUS_OR_NOT_SET;
1121}
1122
1123
1124inline void* PROTOBUF_NONNULL SolveResponse::PlacementNew_(
1125 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1126 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1127 return ::new (mem) SolveResponse(arena);
1128}
1129constexpr auto SolveResponse::InternalNewImpl_() {
1130 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
1131 PROTOBUF_FIELD_OFFSET(SolveResponse, _impl_.messages_) +
1132 decltype(SolveResponse::_impl_.messages_)::
1133 InternalGetArenaOffset(
1134 ::google::protobuf::Message::internal_visibility()),
1135 });
1136 if (arena_bits.has_value()) {
1137 return ::google::protobuf::internal::MessageCreator::ZeroInit(
1138 sizeof(SolveResponse), alignof(SolveResponse), *arena_bits);
1139 } else {
1140 return ::google::protobuf::internal::MessageCreator(&SolveResponse::PlacementNew_,
1141 sizeof(SolveResponse),
1142 alignof(SolveResponse));
1143 }
1144}
1146 return ::google::protobuf::internal::ClassDataFull{
1147 ::google::protobuf::internal::ClassData{
1149 &_table_.header,
1150 nullptr, // OnDemandRegisterArenaDtor
1151 nullptr, // IsInitialized
1152 &SolveResponse::MergeImpl,
1153 ::google::protobuf::Message::GetNewImpl<SolveResponse>(),
1154#if defined(PROTOBUF_CUSTOM_VTABLE)
1155 &SolveResponse::SharedDtor,
1156 ::google::protobuf::Message::GetClearImpl<SolveResponse>(), &SolveResponse::ByteSizeLong,
1158#endif // PROTOBUF_CUSTOM_VTABLE
1159 PROTOBUF_FIELD_OFFSET(SolveResponse, _impl_._cached_size_),
1160 false,
1161 },
1162 &SolveResponse::kDescriptorMethods,
1164 nullptr, // tracker
1165 };
1166}
1167
1168PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1169 ::google::protobuf::internal::ClassDataFull SolveResponse_class_data_ =
1171
1172PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1174 ::google::protobuf::internal::PrefetchToLocalCache(&SolveResponse_class_data_);
1175 ::google::protobuf::internal::PrefetchToLocalCache(SolveResponse_class_data_.tc_table);
1177}
1178PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1179const ::_pbi::TcParseTable<0, 3, 2, 59, 2>
1180SolveResponse::_table_ = {
1181 {
1182 0, // no _has_bits_
1183 0, // no _extensions_
1184 3, 0, // max_field_number, fast_idx_mask
1185 offsetof(decltype(_table_), field_lookup_table),
1186 4294967288, // skipmap
1187 offsetof(decltype(_table_), field_entries),
1188 3, // num_field_entries
1189 2, // num_aux_entries
1190 offsetof(decltype(_table_), aux_entries),
1192 nullptr, // post_loop_handler
1193 ::_pbi::TcParser::GenericFallback, // fallback
1194 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1195 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SolveResponse>(), // to_prefetch
1196 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
1197 }, {{
1198 // repeated string messages = 2;
1199 {::_pbi::TcParser::FastUR1,
1200 {18, 63, 0, PROTOBUF_FIELD_OFFSET(SolveResponse, _impl_.messages_)}},
1201 }}, {{
1202 65535, 65535
1203 }}, {{
1204 // .operations_research.math_opt.SolveResultProto result = 1;
1205 {PROTOBUF_FIELD_OFFSET(SolveResponse, _impl_.status_or_.result_), _Internal::kOneofCaseOffset + 0, 0,
1206 (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
1207 // repeated string messages = 2;
1208 {PROTOBUF_FIELD_OFFSET(SolveResponse, _impl_.messages_), 0, 0,
1209 (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)},
1210 // .operations_research.math_opt.StatusProto status = 3;
1211 {PROTOBUF_FIELD_OFFSET(SolveResponse, _impl_.status_or_.status_), _Internal::kOneofCaseOffset + 0, 1,
1212 (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
1213 }},
1214 {{
1215 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SolveResultProto>()},
1216 {::_pbi::TcParser::GetTable<::operations_research::math_opt::StatusProto>()},
1217 }},
1218 {{
1219 "\52\0\10\0\0\0\0\0"
1220 "operations_research.math_opt.SolveResponse"
1221 "messages"
1222 }},
1223};
1224PROTOBUF_NOINLINE void SolveResponse::Clear() {
1225// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.SolveResponse)
1226 ::google::protobuf::internal::TSanWrite(&_impl_);
1227 ::uint32_t cached_has_bits = 0;
1228 // Prevent compiler warnings about cached_has_bits being unused
1229 (void) cached_has_bits;
1230
1231 _impl_.messages_.Clear();
1233 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1234}
1235
1236#if defined(PROTOBUF_CUSTOM_VTABLE)
1237::uint8_t* PROTOBUF_NONNULL SolveResponse::_InternalSerialize(
1238 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1239 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1240 const SolveResponse& this_ = static_cast<const SolveResponse&>(base);
1241#else // PROTOBUF_CUSTOM_VTABLE
1242::uint8_t* PROTOBUF_NONNULL SolveResponse::_InternalSerialize(
1243 ::uint8_t* PROTOBUF_NONNULL target,
1244 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1245 const SolveResponse& this_ = *this;
1246#endif // PROTOBUF_CUSTOM_VTABLE
1247 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.SolveResponse)
1248 ::uint32_t cached_has_bits = 0;
1249 (void)cached_has_bits;
1250
1251 // .operations_research.math_opt.SolveResultProto result = 1;
1252 if (this_.status_or_case() == kResult) {
1253 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1254 1, *this_._impl_.status_or_.result_, this_._impl_.status_or_.result_->GetCachedSize(), target,
1255 stream);
1256 }
1257
1258 // repeated string messages = 2;
1259 for (int i = 0, n = this_._internal_messages_size(); i < n; ++i) {
1260 const auto& s = this_._internal_messages().Get(i);
1261 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1262 s.data(), static_cast<int>(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "operations_research.math_opt.SolveResponse.messages");
1263 target = stream->WriteString(2, s, target);
1264 }
1265
1266 // .operations_research.math_opt.StatusProto status = 3;
1267 if (this_.status_or_case() == kStatus) {
1268 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1269 3, *this_._impl_.status_or_.status_, this_._impl_.status_or_.status_->GetCachedSize(), target,
1270 stream);
1271 }
1272
1273 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1274 target =
1275 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1276 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1277 }
1278 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.SolveResponse)
1279 return target;
1280}
1281
1282#if defined(PROTOBUF_CUSTOM_VTABLE)
1283::size_t SolveResponse::ByteSizeLong(const MessageLite& base) {
1284 const SolveResponse& this_ = static_cast<const SolveResponse&>(base);
1285#else // PROTOBUF_CUSTOM_VTABLE
1286::size_t SolveResponse::ByteSizeLong() const {
1287 const SolveResponse& this_ = *this;
1288#endif // PROTOBUF_CUSTOM_VTABLE
1289 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.SolveResponse)
1290 ::size_t total_size = 0;
1291
1292 ::uint32_t cached_has_bits = 0;
1293 // Prevent compiler warnings about cached_has_bits being unused
1294 (void)cached_has_bits;
1295
1296 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1297 {
1298 // repeated string messages = 2;
1299 {
1300 total_size +=
1301 1 * ::google::protobuf::internal::FromIntSize(this_._internal_messages().size());
1302 for (int i = 0, n = this_._internal_messages().size(); i < n; ++i) {
1303 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
1304 this_._internal_messages().Get(i));
1305 }
1306 }
1307 }
1308 switch (this_.status_or_case()) {
1309 // .operations_research.math_opt.SolveResultProto result = 1;
1310 case kResult: {
1311 total_size += 1 +
1312 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.status_or_.result_);
1313 break;
1314 }
1315 // .operations_research.math_opt.StatusProto status = 3;
1316 case kStatus: {
1317 total_size += 1 +
1318 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.status_or_.status_);
1319 break;
1320 }
1321 case STATUS_OR_NOT_SET: {
1322 break;
1323 }
1324 }
1325 return this_.MaybeComputeUnknownFieldsSize(total_size,
1326 &this_._impl_._cached_size_);
1327}
1328
1329void SolveResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
1330 auto* const _this = static_cast<SolveResponse*>(&to_msg);
1331 auto& from = static_cast<const SolveResponse&>(from_msg);
1332 ::google::protobuf::Arena* arena = _this->GetArena();
1333 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.SolveResponse)
1334 ABSL_DCHECK_NE(&from, _this);
1335 ::uint32_t cached_has_bits = 0;
1336 (void) cached_has_bits;
1337
1338 _this->_internal_mutable_messages()->MergeFrom(from._internal_messages());
1339 if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) {
1340 const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0];
1341 const bool oneof_needs_init = oneof_to_case != oneof_from_case;
1342 if (oneof_needs_init) {
1343 if (oneof_to_case != 0) {
1344 _this->clear_status_or();
1345 }
1346 _this->_impl_._oneof_case_[0] = oneof_from_case;
1347 }
1348
1349 switch (oneof_from_case) {
1350 case kResult: {
1351 if (oneof_needs_init) {
1352 _this->_impl_.status_or_.result_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.status_or_.result_);
1353 } else {
1354 _this->_impl_.status_or_.result_->MergeFrom(*from._impl_.status_or_.result_);
1355 }
1356 break;
1357 }
1358 case kStatus: {
1359 if (oneof_needs_init) {
1360 _this->_impl_.status_or_.status_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.status_or_.status_);
1361 } else {
1362 _this->_impl_.status_or_.status_->MergeFrom(*from._impl_.status_or_.status_);
1363 }
1364 break;
1365 }
1366 case STATUS_OR_NOT_SET:
1367 break;
1368 }
1369 }
1370 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
1371}
1372
1373void SolveResponse::CopyFrom(const SolveResponse& from) {
1374// @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.SolveResponse)
1375 if (&from == this) return;
1377 MergeFrom(from);
1378}
1379
1380
1381void SolveResponse::InternalSwap(SolveResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1382 using ::std::swap;
1383 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1384 _impl_.messages_.InternalSwap(&other->_impl_.messages_);
1385 swap(_impl_.status_or_, other->_impl_.status_or_);
1386 swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
1387}
1388
1389::google::protobuf::Metadata SolveResponse::GetMetadata() const {
1390 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1391}
1392// ===================================================================
1393
1395 public:
1396 using HasBits =
1397 decltype(::std::declval<StatusProto>()._impl_._has_bits_);
1398 static constexpr ::int32_t kHasBitsOffset =
1399 8 * PROTOBUF_FIELD_OFFSET(StatusProto, _impl_._has_bits_);
1401
1402StatusProto::StatusProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1403#if defined(PROTOBUF_CUSTOM_VTABLE)
1404 : ::google::protobuf::Message(arena, StatusProto_class_data_.base()) {
1405#else // PROTOBUF_CUSTOM_VTABLE
1406 : ::google::protobuf::Message(arena) {
1407#endif // PROTOBUF_CUSTOM_VTABLE
1408 SharedCtor(arena);
1409 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.StatusProto)
1410}
1411PROTOBUF_NDEBUG_INLINE StatusProto::Impl_::Impl_(
1412 ::google::protobuf::internal::InternalVisibility visibility,
1413 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
1414 const ::operations_research::math_opt::StatusProto& from_msg)
1415 : _has_bits_{from._has_bits_},
1416 _cached_size_{0},
1417 message_(arena, from.message_) {}
1418
1420 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1421 const StatusProto& from)
1422#if defined(PROTOBUF_CUSTOM_VTABLE)
1423 : ::google::protobuf::Message(arena, StatusProto_class_data_.base()) {
1424#else // PROTOBUF_CUSTOM_VTABLE
1425 : ::google::protobuf::Message(arena) {
1426#endif // PROTOBUF_CUSTOM_VTABLE
1427 StatusProto* const _this = this;
1428 (void)_this;
1429 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1430 from._internal_metadata_);
1431 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1432 _impl_.code_ = from._impl_.code_;
1433
1434 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.StatusProto)
1435}
1436PROTOBUF_NDEBUG_INLINE StatusProto::Impl_::Impl_(
1437 ::google::protobuf::internal::InternalVisibility visibility,
1438 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1439 : _cached_size_{0},
1440 message_(arena) {}
1441
1442inline void StatusProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1443 new (&_impl_) Impl_(internal_visibility(), arena);
1444 _impl_.code_ = {};
1445}
1447 // @@protoc_insertion_point(destructor:operations_research.math_opt.StatusProto)
1448 SharedDtor(*this);
1449}
1450inline void StatusProto::SharedDtor(MessageLite& self) {
1451 StatusProto& this_ = static_cast<StatusProto&>(self);
1452 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1453 ABSL_DCHECK(this_.GetArena() == nullptr);
1454 this_._impl_.message_.Destroy();
1455 this_._impl_.~Impl_();
1456}
1457
1458inline void* PROTOBUF_NONNULL StatusProto::PlacementNew_(
1459 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1460 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1461 return ::new (mem) StatusProto(arena);
1463constexpr auto StatusProto::InternalNewImpl_() {
1464 return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(StatusProto),
1465 alignof(StatusProto));
1466}
1468 return ::google::protobuf::internal::ClassDataFull{
1469 ::google::protobuf::internal::ClassData{
1471 &_table_.header,
1472 nullptr, // OnDemandRegisterArenaDtor
1473 nullptr, // IsInitialized
1474 &StatusProto::MergeImpl,
1475 ::google::protobuf::Message::GetNewImpl<StatusProto>(),
1476#if defined(PROTOBUF_CUSTOM_VTABLE)
1477 &StatusProto::SharedDtor,
1478 ::google::protobuf::Message::GetClearImpl<StatusProto>(), &StatusProto::ByteSizeLong,
1480#endif // PROTOBUF_CUSTOM_VTABLE
1481 PROTOBUF_FIELD_OFFSET(StatusProto, _impl_._cached_size_),
1482 false,
1483 },
1484 &StatusProto::kDescriptorMethods,
1486 nullptr, // tracker
1487 };
1488}
1489
1490PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1491 ::google::protobuf::internal::ClassDataFull StatusProto_class_data_ =
1493
1494PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1496 ::google::protobuf::internal::PrefetchToLocalCache(&StatusProto_class_data_);
1497 ::google::protobuf::internal::PrefetchToLocalCache(StatusProto_class_data_.tc_table);
1498 return StatusProto_class_data_.base();
1500PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1501const ::_pbi::TcParseTable<1, 2, 0, 56, 2>
1502StatusProto::_table_ = {
1503 {
1504 PROTOBUF_FIELD_OFFSET(StatusProto, _impl_._has_bits_),
1505 0, // no _extensions_
1506 2, 8, // max_field_number, fast_idx_mask
1507 offsetof(decltype(_table_), field_lookup_table),
1508 4294967292, // skipmap
1509 offsetof(decltype(_table_), field_entries),
1510 2, // num_field_entries
1511 0, // num_aux_entries
1512 offsetof(decltype(_table_), field_names), // no aux_entries
1514 nullptr, // post_loop_handler
1515 ::_pbi::TcParser::GenericFallback, // fallback
1516 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1517 ::_pbi::TcParser::GetTable<::operations_research::math_opt::StatusProto>(), // to_prefetch
1518 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
1519 }, {{
1520 // string message = 2;
1521 {::_pbi::TcParser::FastUS1,
1522 {18, 0, 0, PROTOBUF_FIELD_OFFSET(StatusProto, _impl_.message_)}},
1523 // int32 code = 1;
1524 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(StatusProto, _impl_.code_), 1>(),
1525 {8, 1, 0, PROTOBUF_FIELD_OFFSET(StatusProto, _impl_.code_)}},
1526 }}, {{
1527 65535, 65535
1528 }}, {{
1529 // int32 code = 1;
1530 {PROTOBUF_FIELD_OFFSET(StatusProto, _impl_.code_), _Internal::kHasBitsOffset + 1, 0,
1531 (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
1532 // string message = 2;
1533 {PROTOBUF_FIELD_OFFSET(StatusProto, _impl_.message_), _Internal::kHasBitsOffset + 0, 0,
1534 (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
1535 }},
1536 // no aux_entries
1537 {{
1538 "\50\0\7\0\0\0\0\0"
1539 "operations_research.math_opt.StatusProto"
1540 "message"
1541 }},
1542};
1543PROTOBUF_NOINLINE void StatusProto::Clear() {
1544// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.StatusProto)
1545 ::google::protobuf::internal::TSanWrite(&_impl_);
1546 ::uint32_t cached_has_bits = 0;
1547 // Prevent compiler warnings about cached_has_bits being unused
1548 (void) cached_has_bits;
1549
1550 cached_has_bits = _impl_._has_bits_[0];
1551 if ((cached_has_bits & 0x00000001u) != 0) {
1552 _impl_.message_.ClearNonDefaultToEmpty();
1553 }
1554 _impl_.code_ = 0;
1555 _impl_._has_bits_.Clear();
1556 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1557}
1558
1559#if defined(PROTOBUF_CUSTOM_VTABLE)
1560::uint8_t* PROTOBUF_NONNULL StatusProto::_InternalSerialize(
1561 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1562 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1563 const StatusProto& this_ = static_cast<const StatusProto&>(base);
1564#else // PROTOBUF_CUSTOM_VTABLE
1565::uint8_t* PROTOBUF_NONNULL StatusProto::_InternalSerialize(
1566 ::uint8_t* PROTOBUF_NONNULL target,
1567 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1568 const StatusProto& this_ = *this;
1569#endif // PROTOBUF_CUSTOM_VTABLE
1570 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.StatusProto)
1571 ::uint32_t cached_has_bits = 0;
1572 (void)cached_has_bits;
1573
1574 // int32 code = 1;
1575 if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) {
1576 if (this_._internal_code() != 0) {
1577 target =
1578 ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>(
1579 stream, this_._internal_code(), target);
1580 }
1581 }
1582
1583 // string message = 2;
1584 if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) {
1585 if (!this_._internal_message().empty()) {
1586 const ::std::string& _s = this_._internal_message();
1587 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1588 _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "operations_research.math_opt.StatusProto.message");
1589 target = stream->WriteStringMaybeAliased(2, _s, target);
1590 }
1591 }
1592
1593 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1594 target =
1595 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1596 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1597 }
1598 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.StatusProto)
1599 return target;
1600}
1601
1602#if defined(PROTOBUF_CUSTOM_VTABLE)
1603::size_t StatusProto::ByteSizeLong(const MessageLite& base) {
1604 const StatusProto& this_ = static_cast<const StatusProto&>(base);
1605#else // PROTOBUF_CUSTOM_VTABLE
1606::size_t StatusProto::ByteSizeLong() const {
1607 const StatusProto& this_ = *this;
1608#endif // PROTOBUF_CUSTOM_VTABLE
1609 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.StatusProto)
1610 ::size_t total_size = 0;
1611
1612 ::uint32_t cached_has_bits = 0;
1613 // Prevent compiler warnings about cached_has_bits being unused
1614 (void)cached_has_bits;
1615
1616 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1617 cached_has_bits = this_._impl_._has_bits_[0];
1618 if ((cached_has_bits & 0x00000003u) != 0) {
1619 // string message = 2;
1620 if ((cached_has_bits & 0x00000001u) != 0) {
1621 if (!this_._internal_message().empty()) {
1622 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
1623 this_._internal_message());
1624 }
1625 }
1626 // int32 code = 1;
1627 if ((cached_has_bits & 0x00000002u) != 0) {
1628 if (this_._internal_code() != 0) {
1629 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
1630 this_._internal_code());
1631 }
1632 }
1633 }
1634 return this_.MaybeComputeUnknownFieldsSize(total_size,
1635 &this_._impl_._cached_size_);
1636}
1637
1638void StatusProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
1639 auto* const _this = static_cast<StatusProto*>(&to_msg);
1640 auto& from = static_cast<const StatusProto&>(from_msg);
1641 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.StatusProto)
1642 ABSL_DCHECK_NE(&from, _this);
1643 ::uint32_t cached_has_bits = 0;
1644 (void) cached_has_bits;
1645
1646 cached_has_bits = from._impl_._has_bits_[0];
1647 if ((cached_has_bits & 0x00000003u) != 0) {
1648 if ((cached_has_bits & 0x00000001u) != 0) {
1649 if (!from._internal_message().empty()) {
1650 _this->_internal_set_message(from._internal_message());
1651 } else {
1652 if (_this->_impl_.message_.IsDefault()) {
1653 _this->_internal_set_message("");
1654 }
1655 }
1656 }
1657 if ((cached_has_bits & 0x00000002u) != 0) {
1658 if (from._internal_code() != 0) {
1659 _this->_impl_.code_ = from._impl_.code_;
1660 }
1661 }
1662 }
1663 _this->_impl_._has_bits_[0] |= cached_has_bits;
1664 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
1665}
1666
1667void StatusProto::CopyFrom(const StatusProto& from) {
1668// @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.StatusProto)
1669 if (&from == this) return;
1670 Clear();
1672}
1673
1674
1675void StatusProto::InternalSwap(StatusProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1676 using ::std::swap;
1677 auto* arena = GetArena();
1678 ABSL_DCHECK_EQ(arena, other->GetArena());
1679 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1680 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1681 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.message_, &other->_impl_.message_, arena);
1682 swap(_impl_.code_, other->_impl_.code_);
1683}
1684
1685::google::protobuf::Metadata StatusProto::GetMetadata() const {
1686 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1687}
1688// @@protoc_insertion_point(namespace_scope)
1689} // namespace math_opt
1690} // namespace operations_research
1691namespace google {
1692namespace protobuf {
1693} // namespace protobuf
1694} // namespace google
1695// @@protoc_insertion_point(global_scope)
1696PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
1697 _static_init2_ [[maybe_unused]] =
1699 ::std::false_type{});
1700#include "google/protobuf/port_undef.inc"
static PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::std::false_type _static_init2_
@protoc_insertion_point(global_scope)
static const ::_pb::Message *PROTOBUF_NONNULL const file_default_instances[]
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fcallback_2eproto
decltype(::std::declval< SolveRequest >()._impl_._has_bits_) HasBits
Definition rpc.pb.cc:523
static constexpr auto InternalNewImpl_()
Definition rpc.pb.cc:633
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
Definition rpc.pb.h:806
void CopyFrom(const SolveRequest &from)
Definition rpc.pb.cc:961
::google::protobuf::Metadata GetMetadata() const
Definition rpc.pb.cc:981
void MergeFrom(const SolveRequest &from)
Definition rpc.pb.h:852
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
Definition rpc.pb.cc:783
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
Definition rpc.pb.cc:665
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
Definition rpc.pb.cc:628
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
Definition rpc.pb.cc:742
static constexpr auto InternalGenerateClassData_()
Definition rpc.pb.cc:637
static constexpr auto InternalNewImpl_()
Definition rpc.pb.cc:1132
friend class ::google::protobuf::MessageLite
Definition rpc.pb.h:739
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
Definition rpc.pb.cc:1127
const ::operations_research::math_opt::StatusProto & status() const
Definition rpc.pb.h:1735
void MergeFrom(const SolveResponse &from)
Definition rpc.pb.h:596
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
Definition rpc.pb.cc:1176
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
Definition rpc.pb.cc:1227
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
Definition rpc.pb.h:545
void CopyFrom(const SolveResponse &from)
Definition rpc.pb.cc:1376
void set_allocated_status(::operations_research::math_opt::StatusProto *PROTOBUF_NULLABLE value)
Definition rpc.pb.cc:1017
friend void swap(SolveResponse &a, SolveResponse &b)
Definition rpc.pb.h:573
void set_allocated_result(::operations_research::math_opt::SolveResultProto *PROTOBUF_NULLABLE value)
Definition rpc.pb.cc:993
static constexpr auto InternalGenerateClassData_()
Definition rpc.pb.cc:1148
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
Definition rpc.pb.cc:1245
const ::operations_research::math_opt::SolveResultProto & result() const
Definition rpc.pb.h:1654
::google::protobuf::Metadata GetMetadata() const
Definition rpc.pb.cc:1392
friend class ::google::protobuf::Arena
Definition rpc.pb.h:740
decltype(::std::declval< SolverResourcesProto >()._impl_._has_bits_) HasBits
Definition rpc.pb.cc:264
::google::protobuf::Metadata GetMetadata() const
Definition rpc.pb.cc:515
friend class ::google::protobuf::MessageLite
Definition rpc.pb.h:483
void CopyFrom(const SolverResourcesProto &from)
Definition rpc.pb.cc:495
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
Definition rpc.pb.cc:352
void MergeFrom(const SolverResourcesProto &from)
Definition rpc.pb.h:385
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
Definition rpc.pb.h:339
friend void swap(SolverResourcesProto &a, SolverResourcesProto &b)
Definition rpc.pb.h:362
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
Definition rpc.pb.cc:397
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
Definition rpc.pb.cc:420
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
Definition rpc.pb.cc:315
friend class ::google::protobuf::Arena
Definition rpc.pb.h:484
friend class ::google::protobuf::MessageLite
Definition rpc.pb.h:277
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
Definition rpc.pb.cc:1569
static constexpr auto InternalGenerateClassData_()
Definition rpc.pb.cc:1471
void CopyFrom(const StatusProto &from)
Definition rpc.pb.cc:1671
static constexpr auto InternalNewImpl_()
Definition rpc.pb.cc:1467
void MergeFrom(const StatusProto &from)
Definition rpc.pb.h:176
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
Definition rpc.pb.cc:1462
friend void swap(StatusProto &a, StatusProto &b)
Definition rpc.pb.h:153
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
Definition rpc.pb.cc:1547
::google::protobuf::Metadata GetMetadata() const
Definition rpc.pb.cc:1689
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
Definition rpc.pb.cc:1499
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2finfeasible_5fsubsystem_2eproto
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fparameters_2eproto
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fmodel_2eproto
Definition model.pb.cc:653
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fmodel_5fparameters_2eproto
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fmodel_5fupdate_2eproto
An object oriented wrapper for quadratic constraints in ModelStorage.
Definition gurobi_isv.cc:28
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SolverResourcesProtoDefaultTypeInternal _SolverResourcesProto_default_instance_
Definition rpc.pb.cc:82
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SolveRequestDefaultTypeInternal _SolveRequest_default_instance_
Definition rpc.pb.cc:139
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SolverResourcesProto_class_data_
Definition rpc.pb.cc:348
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SolveRequest_class_data_
Definition rpc.pb.cc:661
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StatusProtoDefaultTypeInternal _StatusProto_default_instance_
Definition rpc.pb.cc:56
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SolveResponseDefaultTypeInternal _SolveResponse_default_instance_
Definition rpc.pb.cc:109
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull StatusProto_class_data_
Definition rpc.pb.cc:1495
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SolveResponse_class_data_
Definition rpc.pb.cc:1172
In SWIG mode, we don't want anything besides these top-level includes.
static constexpr ::_pbi::MigrationSchema *PROTOBUF_NULLABLE schemas
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fresult_2eproto
Definition result.pb.cc:383
static constexprconst ::_pb::EnumDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_enum_descriptors_ortools_2fmath_5fopt_2frpc_2eproto
Definition rpc.pb.cc:143
static const ::_pbi::DescriptorTable *PROTOBUF_NONNULL const descriptor_table_ortools_2fmath_5fopt_2frpc_2eproto_deps[7]
Definition rpc.pb.cc:231
::absl::once_flag descriptor_table_ortools_2fmath_5fopt_2frpc_2eproto_once
Definition rpc.pb.cc:240
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2frpc_2eproto
Definition rpc.pb.cc:241
static constexprconst ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_service_descriptors_ortools_2fmath_5fopt_2frpc_2eproto
Definition rpc.pb.cc:145
const ::uint32_t TableStruct_ortools_2fmath_5fopt_2frpc_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold)
static const ::uint32_t offsets[]
Definition rpc.pb.h:57
::operations_research::math_opt::SolveResultProto *PROTOBUF_NULLABLE result_
Definition rpc.pb.h:758
::operations_research::math_opt::StatusProto *PROTOBUF_NULLABLE status_
Definition rpc.pb.h:759