Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
rpc.pb.h
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
6#ifndef ortools_2fmath_5fopt_2frpc_2eproto_2epb_2eh
7#define ortools_2fmath_5fopt_2frpc_2eproto_2epb_2eh
8
9#include <limits>
10#include <string>
11#include <type_traits>
12#include <utility>
13
14#include "google/protobuf/runtime_version.h"
15#if PROTOBUF_VERSION != 6031001
16#error "Protobuf C++ gencode is built with an incompatible version of"
17#error "Protobuf C++ headers/runtime. See"
18#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp"
19#endif
20#include "google/protobuf/io/coded_stream.h"
21#include "google/protobuf/arena.h"
22#include "google/protobuf/arenastring.h"
23#include "google/protobuf/generated_message_tctable_decl.h"
24#include "google/protobuf/generated_message_util.h"
25#include "google/protobuf/metadata_lite.h"
26#include "google/protobuf/generated_message_reflection.h"
27#include "google/protobuf/message.h"
28#include "google/protobuf/message_lite.h"
29#include "google/protobuf/repeated_field.h" // IWYU pragma: export
30#include "google/protobuf/extension_set.h" // IWYU pragma: export
31#include "google/protobuf/unknown_field_set.h"
39// @@protoc_insertion_point(includes)
40
41// Must be included last.
42#include "google/protobuf/port_def.inc"
43
44#define PROTOBUF_INTERNAL_EXPORT_ortools_2fmath_5fopt_2frpc_2eproto OR_PROTO_DLL
45
46namespace google {
47namespace protobuf {
48namespace internal {
49template <typename T>
50::absl::string_view GetAnyMessageName();
51} // namespace internal
52} // namespace protobuf
53} // namespace google
54
55// Internal implementation detail -- do not use these members.
57 static const ::uint32_t offsets[];
58};
59extern "C" {
60OR_PROTO_DLL extern const ::google::protobuf::internal::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2frpc_2eproto;
61} // extern "C"
62namespace operations_research {
63namespace math_opt {
64class SolveRequest;
67OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull SolveRequest_class_data_;
68class SolveResponse;
71OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull SolveResponse_class_data_;
75OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull SolverResourcesProto_class_data_;
76class StatusProto;
79OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull StatusProto_class_data_;
80} // namespace math_opt
81} // namespace operations_research
82namespace google {
83namespace protobuf {
84} // namespace protobuf
85} // namespace google
86
87namespace operations_research {
88namespace math_opt {
89
90// ===================================================================
91
92
93// -------------------------------------------------------------------
94
95class OR_PROTO_DLL StatusProto final : public ::google::protobuf::Message
96/* @@protoc_insertion_point(class_definition:operations_research.math_opt.StatusProto) */ {
97 public:
98 inline StatusProto() : StatusProto(nullptr) {}
99 ~StatusProto() PROTOBUF_FINAL;
101#if defined(PROTOBUF_CUSTOM_VTABLE)
102 void operator delete(StatusProto* PROTOBUF_NONNULL msg, std::destroying_delete_t) {
103 SharedDtor(*msg);
104 ::google::protobuf::internal::SizedDelete(msg, sizeof(StatusProto));
105 }
106#endif
107
108 template <typename = void>
109 explicit PROTOBUF_CONSTEXPR StatusProto(::google::protobuf::internal::ConstantInitialized);
110
111 inline StatusProto(const StatusProto& from) : StatusProto(nullptr, from) {}
112 inline StatusProto(StatusProto&& from) noexcept
113 : StatusProto(nullptr, ::std::move(from)) {}
114 inline StatusProto& operator=(const StatusProto& from) {
115 CopyFrom(from);
116 return *this;
117 }
118 inline StatusProto& operator=(StatusProto&& from) noexcept {
119 if (this == &from) return *this;
120 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
121 InternalSwap(&from);
122 } else {
123 CopyFrom(from);
124 }
125 return *this;
126 }
127
128 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
129 ABSL_ATTRIBUTE_LIFETIME_BOUND {
130 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
131 }
132 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
133 ABSL_ATTRIBUTE_LIFETIME_BOUND {
134 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
135 }
136
137 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
138 return GetDescriptor();
140 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
141 return default_instance().GetMetadata().descriptor;
143 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
144 return default_instance().GetMetadata().reflection;
146 static const StatusProto& default_instance() {
147 return *reinterpret_cast<const StatusProto*>(
149 }
150 static constexpr int kIndexInFileMessages = 3;
151 friend void swap(StatusProto& a, StatusProto& b) { a.Swap(&b); }
152 inline void Swap(StatusProto* PROTOBUF_NONNULL other) {
153 if (other == this) return;
154 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
155 InternalSwap(other);
156 } else {
157 ::google::protobuf::internal::GenericSwap(this, other);
158 }
159 }
160 void UnsafeArenaSwap(StatusProto* PROTOBUF_NONNULL other) {
161 if (other == this) return;
162 ABSL_DCHECK(GetArena() == other->GetArena());
163 InternalSwap(other);
164 }
165
166 // implements Message ----------------------------------------------
167
168 StatusProto* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
169 return ::google::protobuf::Message::DefaultConstruct<StatusProto>(arena);
171 using ::google::protobuf::Message::CopyFrom;
172 void CopyFrom(const StatusProto& from);
173 using ::google::protobuf::Message::MergeFrom;
174 void MergeFrom(const StatusProto& from) { StatusProto::MergeImpl(*this, from); }
175
176 private:
177 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
178 const ::google::protobuf::MessageLite& from_msg);
179
180 public:
181 bool IsInitialized() const {
182 return true;
184 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
185 #if defined(PROTOBUF_CUSTOM_VTABLE)
186 private:
187 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
188 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
189 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
190 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
191
192 public:
193 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
194 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
195 ::uint8_t* PROTOBUF_NONNULL target,
196 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
197 return _InternalSerialize(*this, target, stream);
198 }
199 #else // PROTOBUF_CUSTOM_VTABLE
200 ::size_t ByteSizeLong() const final;
201 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
202 ::uint8_t* PROTOBUF_NONNULL target,
203 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
204 #endif // PROTOBUF_CUSTOM_VTABLE
205 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
206
207 private:
208 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
209 static void SharedDtor(MessageLite& self);
210 void InternalSwap(StatusProto* PROTOBUF_NONNULL other);
211 private:
212 template <typename T>
213 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
214 static ::absl::string_view FullMessageName() { return "operations_research.math_opt.StatusProto"; }
215
216 protected:
217 explicit StatusProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
218 StatusProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const StatusProto& from);
220 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, StatusProto&& from) noexcept
221 : StatusProto(arena) {
222 *this = ::std::move(from);
223 }
224 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
225 static void* PROTOBUF_NONNULL PlacementNew_(
226 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
227 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
228 static constexpr auto InternalNewImpl_();
229
230 public:
231 static constexpr auto InternalGenerateClassData_();
232
233 ::google::protobuf::Metadata GetMetadata() const;
234 // nested types ----------------------------------------------------
235
236 // accessors -------------------------------------------------------
237 enum : int {
238 kMessageFieldNumber = 2,
239 kCodeFieldNumber = 1,
240 };
241 // string message = 2;
242 void clear_message() ;
243 const ::std::string& message() const;
244 template <typename Arg_ = const ::std::string&, typename... Args_>
245 void set_message(Arg_&& arg, Args_... args);
246 ::std::string* PROTOBUF_NONNULL mutable_message();
247 [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_message();
248 void set_allocated_message(::std::string* PROTOBUF_NULLABLE value);
249
250 private:
251 const ::std::string& _internal_message() const;
252 PROTOBUF_ALWAYS_INLINE void _internal_set_message(const ::std::string& value);
253 ::std::string* PROTOBUF_NONNULL _internal_mutable_message();
254
255 public:
256 // int32 code = 1;
257 void clear_code() ;
258 ::int32_t code() const;
259 void set_code(::int32_t value);
260
261 private:
262 ::int32_t _internal_code() const;
263 void _internal_set_code(::int32_t value);
264
265 public:
266 // @@protoc_insertion_point(class_scope:operations_research.math_opt.StatusProto)
267 private:
268 class _Internal;
269 friend class ::google::protobuf::internal::TcParser;
270 static const ::google::protobuf::internal::TcParseTable<1, 2,
271 0, 56,
272 2>
273 _table_;
274
275 friend class ::google::protobuf::MessageLite;
276 friend class ::google::protobuf::Arena;
277 template <typename T>
278 friend class ::google::protobuf::Arena::InternalHelper;
279 using InternalArenaConstructable_ = void;
280 using DestructorSkippable_ = void;
281 struct Impl_ {
282 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
283 inline explicit Impl_(
284 ::google::protobuf::internal::InternalVisibility visibility,
285 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
286 inline explicit Impl_(
287 ::google::protobuf::internal::InternalVisibility visibility,
288 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
289 const StatusProto& from_msg);
290 ::google::protobuf::internal::HasBits<1> _has_bits_;
291 ::google::protobuf::internal::CachedSize _cached_size_;
292 ::google::protobuf::internal::ArenaStringPtr message_;
293 ::int32_t code_;
294 PROTOBUF_TSAN_DECLARE_MEMBER
295 };
296 union { Impl_ _impl_; };
297 friend struct ::TableStruct_ortools_2fmath_5fopt_2frpc_2eproto;
300OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull StatusProto_class_data_;
301// -------------------------------------------------------------------
302
303class OR_PROTO_DLL SolverResourcesProto final : public ::google::protobuf::Message
304/* @@protoc_insertion_point(class_definition:operations_research.math_opt.SolverResourcesProto) */ {
305 public:
307 ~SolverResourcesProto() PROTOBUF_FINAL;
308
309#if defined(PROTOBUF_CUSTOM_VTABLE)
310 void operator delete(SolverResourcesProto* PROTOBUF_NONNULL msg, std::destroying_delete_t) {
311 SharedDtor(*msg);
312 ::google::protobuf::internal::SizedDelete(msg, sizeof(SolverResourcesProto));
313 }
314#endif
315
316 template <typename = void>
317 explicit PROTOBUF_CONSTEXPR SolverResourcesProto(::google::protobuf::internal::ConstantInitialized);
318
319 inline SolverResourcesProto(const SolverResourcesProto& from) : SolverResourcesProto(nullptr, from) {}
321 : SolverResourcesProto(nullptr, ::std::move(from)) {}
323 CopyFrom(from);
324 return *this;
326 inline SolverResourcesProto& operator=(SolverResourcesProto&& from) noexcept {
327 if (this == &from) return *this;
328 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
329 InternalSwap(&from);
330 } else {
331 CopyFrom(from);
332 }
333 return *this;
334 }
335
336 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
337 ABSL_ATTRIBUTE_LIFETIME_BOUND {
338 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
340 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
341 ABSL_ATTRIBUTE_LIFETIME_BOUND {
342 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
344
345 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
346 return GetDescriptor();
347 }
348 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
349 return default_instance().GetMetadata().descriptor;
350 }
351 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
352 return default_instance().GetMetadata().reflection;
353 }
355 return *reinterpret_cast<const SolverResourcesProto*>(
358 static constexpr int kIndexInFileMessages = 0;
359 friend void swap(SolverResourcesProto& a, SolverResourcesProto& b) { a.Swap(&b); }
360 inline void Swap(SolverResourcesProto* PROTOBUF_NONNULL other) {
361 if (other == this) return;
362 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
363 InternalSwap(other);
364 } else {
365 ::google::protobuf::internal::GenericSwap(this, other);
366 }
367 }
368 void UnsafeArenaSwap(SolverResourcesProto* PROTOBUF_NONNULL other) {
369 if (other == this) return;
370 ABSL_DCHECK(GetArena() == other->GetArena());
371 InternalSwap(other);
372 }
373
374 // implements Message ----------------------------------------------
375
376 SolverResourcesProto* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
377 return ::google::protobuf::Message::DefaultConstruct<SolverResourcesProto>(arena);
378 }
379 using ::google::protobuf::Message::CopyFrom;
380 void CopyFrom(const SolverResourcesProto& from);
381 using ::google::protobuf::Message::MergeFrom;
382 void MergeFrom(const SolverResourcesProto& from) { SolverResourcesProto::MergeImpl(*this, from); }
383
384 private:
385 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
386 const ::google::protobuf::MessageLite& from_msg);
387
388 public:
389 bool IsInitialized() const {
390 return true;
391 }
392 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
393 #if defined(PROTOBUF_CUSTOM_VTABLE)
394 private:
395 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
396 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
397 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
398 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
399
400 public:
401 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
402 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
403 ::uint8_t* PROTOBUF_NONNULL target,
404 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
405 return _InternalSerialize(*this, target, stream);
406 }
407 #else // PROTOBUF_CUSTOM_VTABLE
408 ::size_t ByteSizeLong() const final;
409 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
410 ::uint8_t* PROTOBUF_NONNULL target,
411 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
412 #endif // PROTOBUF_CUSTOM_VTABLE
413 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
414
415 private:
416 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
417 static void SharedDtor(MessageLite& self);
418 void InternalSwap(SolverResourcesProto* PROTOBUF_NONNULL other);
419 private:
420 template <typename T>
421 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
422 static ::absl::string_view FullMessageName() { return "operations_research.math_opt.SolverResourcesProto"; }
423
424 protected:
425 explicit SolverResourcesProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
426 SolverResourcesProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SolverResourcesProto& from);
428 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SolverResourcesProto&& from) noexcept
429 : SolverResourcesProto(arena) {
430 *this = ::std::move(from);
431 }
432 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
433 static void* PROTOBUF_NONNULL PlacementNew_(
434 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
435 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
436 static constexpr auto InternalNewImpl_();
437
438 public:
439 static constexpr auto InternalGenerateClassData_();
440
441 ::google::protobuf::Metadata GetMetadata() const;
442 // nested types ----------------------------------------------------
443
444 // accessors -------------------------------------------------------
445 enum : int {
446 kCpuFieldNumber = 1,
447 kRamFieldNumber = 2,
448 };
449 // optional double cpu = 1;
450 bool has_cpu() const;
451 void clear_cpu() ;
452 double cpu() const;
453 void set_cpu(double value);
454
455 private:
456 double _internal_cpu() const;
457 void _internal_set_cpu(double value);
458
459 public:
460 // optional double ram = 2;
461 bool has_ram() const;
462 void clear_ram() ;
463 double ram() const;
464 void set_ram(double value);
465
466 private:
467 double _internal_ram() const;
468 void _internal_set_ram(double value);
469
470 public:
471 // @@protoc_insertion_point(class_scope:operations_research.math_opt.SolverResourcesProto)
472 private:
473 class _Internal;
474 friend class ::google::protobuf::internal::TcParser;
475 static const ::google::protobuf::internal::TcParseTable<1, 2,
476 0, 0,
477 2>
478 _table_;
479
480 friend class ::google::protobuf::MessageLite;
481 friend class ::google::protobuf::Arena;
482 template <typename T>
483 friend class ::google::protobuf::Arena::InternalHelper;
484 using InternalArenaConstructable_ = void;
485 using DestructorSkippable_ = void;
486 struct Impl_ {
487 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
488 inline explicit Impl_(
489 ::google::protobuf::internal::InternalVisibility visibility,
490 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
491 inline explicit Impl_(
492 ::google::protobuf::internal::InternalVisibility visibility,
493 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
494 const SolverResourcesProto& from_msg);
495 ::google::protobuf::internal::HasBits<1> _has_bits_;
496 ::google::protobuf::internal::CachedSize _cached_size_;
497 double cpu_;
498 double ram_;
499 PROTOBUF_TSAN_DECLARE_MEMBER
500 };
501 union { Impl_ _impl_; };
502 friend struct ::TableStruct_ortools_2fmath_5fopt_2frpc_2eproto;
503};
505OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull SolverResourcesProto_class_data_;
506// -------------------------------------------------------------------
507
508class OR_PROTO_DLL SolveResponse final : public ::google::protobuf::Message
509/* @@protoc_insertion_point(class_definition:operations_research.math_opt.SolveResponse) */ {
510 public:
511 inline SolveResponse() : SolveResponse(nullptr) {}
512 ~SolveResponse() PROTOBUF_FINAL;
513
514#if defined(PROTOBUF_CUSTOM_VTABLE)
515 void operator delete(SolveResponse* PROTOBUF_NONNULL msg, std::destroying_delete_t) {
516 SharedDtor(*msg);
517 ::google::protobuf::internal::SizedDelete(msg, sizeof(SolveResponse));
518 }
519#endif
520
521 template <typename = void>
522 explicit PROTOBUF_CONSTEXPR SolveResponse(::google::protobuf::internal::ConstantInitialized);
523
524 inline SolveResponse(const SolveResponse& from) : SolveResponse(nullptr, from) {}
525 inline SolveResponse(SolveResponse&& from) noexcept
526 : SolveResponse(nullptr, ::std::move(from)) {}
527 inline SolveResponse& operator=(const SolveResponse& from) {
528 CopyFrom(from);
529 return *this;
530 }
531 inline SolveResponse& operator=(SolveResponse&& from) noexcept {
532 if (this == &from) return *this;
533 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
534 InternalSwap(&from);
535 } else {
536 CopyFrom(from);
537 }
538 return *this;
539 }
540
541 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
542 ABSL_ATTRIBUTE_LIFETIME_BOUND {
543 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
544 }
545 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
546 ABSL_ATTRIBUTE_LIFETIME_BOUND {
547 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
548 }
550 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
551 return GetDescriptor();
552 }
553 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
554 return default_instance().GetMetadata().descriptor;
555 }
556 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
557 return default_instance().GetMetadata().reflection;
558 }
559 static const SolveResponse& default_instance() {
560 return *reinterpret_cast<const SolveResponse*>(
562 }
564 kResult = 1,
565 kStatus = 3,
567 };
568 static constexpr int kIndexInFileMessages = 2;
569 friend void swap(SolveResponse& a, SolveResponse& b) { a.Swap(&b); }
570 inline void Swap(SolveResponse* PROTOBUF_NONNULL other) {
571 if (other == this) return;
572 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
573 InternalSwap(other);
574 } else {
575 ::google::protobuf::internal::GenericSwap(this, other);
576 }
577 }
578 void UnsafeArenaSwap(SolveResponse* PROTOBUF_NONNULL other) {
579 if (other == this) return;
580 ABSL_DCHECK(GetArena() == other->GetArena());
581 InternalSwap(other);
583
584 // implements Message ----------------------------------------------
585
586 SolveResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
587 return ::google::protobuf::Message::DefaultConstruct<SolveResponse>(arena);
588 }
589 using ::google::protobuf::Message::CopyFrom;
590 void CopyFrom(const SolveResponse& from);
591 using ::google::protobuf::Message::MergeFrom;
592 void MergeFrom(const SolveResponse& from) { SolveResponse::MergeImpl(*this, from); }
593
594 private:
595 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
596 const ::google::protobuf::MessageLite& from_msg);
597
598 public:
599 bool IsInitialized() const {
600 return true;
601 }
602 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
603 #if defined(PROTOBUF_CUSTOM_VTABLE)
604 private:
605 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
606 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
607 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
608 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
609
610 public:
611 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
612 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
613 ::uint8_t* PROTOBUF_NONNULL target,
614 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
615 return _InternalSerialize(*this, target, stream);
616 }
617 #else // PROTOBUF_CUSTOM_VTABLE
618 ::size_t ByteSizeLong() const final;
619 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
620 ::uint8_t* PROTOBUF_NONNULL target,
621 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
622 #endif // PROTOBUF_CUSTOM_VTABLE
623 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
624
625 private:
626 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
627 static void SharedDtor(MessageLite& self);
628 void InternalSwap(SolveResponse* PROTOBUF_NONNULL other);
629 private:
630 template <typename T>
631 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
632 static ::absl::string_view FullMessageName() { return "operations_research.math_opt.SolveResponse"; }
633
634 protected:
635 explicit SolveResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
636 SolveResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SolveResponse& from);
638 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SolveResponse&& from) noexcept
639 : SolveResponse(arena) {
640 *this = ::std::move(from);
642 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
643 static void* PROTOBUF_NONNULL PlacementNew_(
644 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
645 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
646 static constexpr auto InternalNewImpl_();
647
648 public:
649 static constexpr auto InternalGenerateClassData_();
650
651 ::google::protobuf::Metadata GetMetadata() const;
652 // nested types ----------------------------------------------------
653
654 // accessors -------------------------------------------------------
655 enum : int {
656 kMessagesFieldNumber = 2,
657 kResultFieldNumber = 1,
658 kStatusFieldNumber = 3,
659 };
660 // repeated string messages = 2;
661 int messages_size() const;
662 private:
663 int _internal_messages_size() const;
664
665 public:
666 void clear_messages() ;
667 const ::std::string& messages(int index) const;
668 ::std::string* PROTOBUF_NONNULL mutable_messages(int index);
669 template <typename Arg_ = const ::std::string&, typename... Args_>
670 void set_messages(int index, Arg_&& value, Args_... args);
671 ::std::string* PROTOBUF_NONNULL add_messages();
672 template <typename Arg_ = const ::std::string&, typename... Args_>
673 void add_messages(Arg_&& value, Args_... args);
674 const ::google::protobuf::RepeatedPtrField<::std::string>& messages() const;
675 ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL mutable_messages();
676
677 private:
678 const ::google::protobuf::RepeatedPtrField<::std::string>& _internal_messages() const;
679 ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL _internal_mutable_messages();
680
681 public:
682 // .operations_research.math_opt.SolveResultProto result = 1;
683 bool has_result() const;
684 private:
685 bool _internal_has_result() const;
686
687 public:
688 void clear_result() ;
689 const ::operations_research::math_opt::SolveResultProto& result() const;
690 [[nodiscard]] ::operations_research::math_opt::SolveResultProto* PROTOBUF_NULLABLE release_result();
695
696 private:
697 const ::operations_research::math_opt::SolveResultProto& _internal_result() const;
698 ::operations_research::math_opt::SolveResultProto* PROTOBUF_NONNULL _internal_mutable_result();
699
700 public:
701 // .operations_research.math_opt.StatusProto status = 3;
702 bool has_status() const;
703 private:
704 bool _internal_has_status() const;
705
706 public:
707 void clear_status() ;
708 const ::operations_research::math_opt::StatusProto& status() const;
709 [[nodiscard]] ::operations_research::math_opt::StatusProto* PROTOBUF_NULLABLE release_status();
714
715 private:
716 const ::operations_research::math_opt::StatusProto& _internal_status() const;
717 ::operations_research::math_opt::StatusProto* PROTOBUF_NONNULL _internal_mutable_status();
718
719 public:
720 void clear_status_or();
722 // @@protoc_insertion_point(class_scope:operations_research.math_opt.SolveResponse)
723 private:
724 class _Internal;
725 void set_has_result();
726 void set_has_status();
727 inline bool has_status_or() const;
728 inline void clear_has_status_or();
729 friend class ::google::protobuf::internal::TcParser;
730 static const ::google::protobuf::internal::TcParseTable<0, 3,
731 2, 59,
732 2>
733 _table_;
734
735 friend class ::google::protobuf::MessageLite;
736 friend class ::google::protobuf::Arena;
737 template <typename T>
738 friend class ::google::protobuf::Arena::InternalHelper;
739 using InternalArenaConstructable_ = void;
740 using DestructorSkippable_ = void;
741 struct Impl_ {
742 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
743 inline explicit Impl_(
744 ::google::protobuf::internal::InternalVisibility visibility,
745 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
746 inline explicit Impl_(
747 ::google::protobuf::internal::InternalVisibility visibility,
748 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
749 const SolveResponse& from_msg);
750 ::google::protobuf::RepeatedPtrField<::std::string> messages_;
751 union StatusOrUnion {
752 constexpr StatusOrUnion() : _constinit_{} {}
753 ::google::protobuf::internal::ConstantInitialized _constinit_;
754 ::operations_research::math_opt::SolveResultProto* PROTOBUF_NULLABLE result_;
756 } status_or_;
757 ::google::protobuf::internal::CachedSize _cached_size_;
758 ::uint32_t _oneof_case_[1];
759 PROTOBUF_TSAN_DECLARE_MEMBER
760 };
761 union { Impl_ _impl_; };
762 friend struct ::TableStruct_ortools_2fmath_5fopt_2frpc_2eproto;
763};
764
765OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull SolveResponse_class_data_;
766// -------------------------------------------------------------------
767
768class OR_PROTO_DLL SolveRequest final : public ::google::protobuf::Message
769/* @@protoc_insertion_point(class_definition:operations_research.math_opt.SolveRequest) */ {
770 public:
771 inline SolveRequest() : SolveRequest(nullptr) {}
772 ~SolveRequest() PROTOBUF_FINAL;
774#if defined(PROTOBUF_CUSTOM_VTABLE)
775 void operator delete(SolveRequest* PROTOBUF_NONNULL msg, std::destroying_delete_t) {
776 SharedDtor(*msg);
777 ::google::protobuf::internal::SizedDelete(msg, sizeof(SolveRequest));
778 }
779#endif
780
781 template <typename = void>
782 explicit PROTOBUF_CONSTEXPR SolveRequest(::google::protobuf::internal::ConstantInitialized);
783
784 inline SolveRequest(const SolveRequest& from) : SolveRequest(nullptr, from) {}
785 inline SolveRequest(SolveRequest&& from) noexcept
786 : SolveRequest(nullptr, ::std::move(from)) {}
787 inline SolveRequest& operator=(const SolveRequest& from) {
788 CopyFrom(from);
789 return *this;
791 inline SolveRequest& operator=(SolveRequest&& from) noexcept {
792 if (this == &from) return *this;
793 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
794 InternalSwap(&from);
795 } else {
796 CopyFrom(from);
797 }
798 return *this;
799 }
800
801 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
802 ABSL_ATTRIBUTE_LIFETIME_BOUND {
803 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
804 }
805 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
806 ABSL_ATTRIBUTE_LIFETIME_BOUND {
807 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
808 }
809
810 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
811 return GetDescriptor();
812 }
813 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
814 return default_instance().GetMetadata().descriptor;
816 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
817 return default_instance().GetMetadata().reflection;
819 static const SolveRequest& default_instance() {
820 return *reinterpret_cast<const SolveRequest*>(
822 }
823 static constexpr int kIndexInFileMessages = 1;
824 friend void swap(SolveRequest& a, SolveRequest& b) { a.Swap(&b); }
825 inline void Swap(SolveRequest* PROTOBUF_NONNULL other) {
826 if (other == this) return;
827 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
828 InternalSwap(other);
829 } else {
830 ::google::protobuf::internal::GenericSwap(this, other);
831 }
832 }
833 void UnsafeArenaSwap(SolveRequest* PROTOBUF_NONNULL other) {
834 if (other == this) return;
835 ABSL_DCHECK(GetArena() == other->GetArena());
836 InternalSwap(other);
837 }
839 // implements Message ----------------------------------------------
840
841 SolveRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
842 return ::google::protobuf::Message::DefaultConstruct<SolveRequest>(arena);
843 }
844 using ::google::protobuf::Message::CopyFrom;
845 void CopyFrom(const SolveRequest& from);
846 using ::google::protobuf::Message::MergeFrom;
847 void MergeFrom(const SolveRequest& from) { SolveRequest::MergeImpl(*this, from); }
848
849 private:
850 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
851 const ::google::protobuf::MessageLite& from_msg);
853 public:
854 bool IsInitialized() const {
855 return true;
856 }
857 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
858 #if defined(PROTOBUF_CUSTOM_VTABLE)
859 private:
860 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
861 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
862 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
863 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
864
865 public:
866 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
867 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
868 ::uint8_t* PROTOBUF_NONNULL target,
869 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
870 return _InternalSerialize(*this, target, stream);
871 }
872 #else // PROTOBUF_CUSTOM_VTABLE
873 ::size_t ByteSizeLong() const final;
874 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
875 ::uint8_t* PROTOBUF_NONNULL target,
876 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
877 #endif // PROTOBUF_CUSTOM_VTABLE
878 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
879
880 private:
881 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
882 static void SharedDtor(MessageLite& self);
883 void InternalSwap(SolveRequest* PROTOBUF_NONNULL other);
884 private:
885 template <typename T>
886 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
887 static ::absl::string_view FullMessageName() { return "operations_research.math_opt.SolveRequest"; }
888
889 protected:
890 explicit SolveRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
891 SolveRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SolveRequest& from);
893 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SolveRequest&& from) noexcept
894 : SolveRequest(arena) {
895 *this = ::std::move(from);
896 }
897 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
898 static void* PROTOBUF_NONNULL PlacementNew_(
899 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
900 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
901 static constexpr auto InternalNewImpl_();
902
903 public:
904 static constexpr auto InternalGenerateClassData_();
905
906 ::google::protobuf::Metadata GetMetadata() const;
907 // nested types ----------------------------------------------------
908
909 // accessors -------------------------------------------------------
910 enum : int {
917 };
918 // .operations_research.math_opt.ModelProto model = 2;
919 bool has_model() const;
920 void clear_model() ;
921 const ::operations_research::math_opt::ModelProto& model() const;
922 [[nodiscard]] ::operations_research::math_opt::ModelProto* PROTOBUF_NULLABLE release_model();
927
928 private:
929 const ::operations_research::math_opt::ModelProto& _internal_model() const;
930 ::operations_research::math_opt::ModelProto* PROTOBUF_NONNULL _internal_mutable_model();
931
932 public:
933 // .operations_research.math_opt.SolverInitializerProto initializer = 3;
934 bool has_initializer() const;
935 void clear_initializer() ;
936 const ::operations_research::math_opt::SolverInitializerProto& initializer() const;
942
943 private:
944 const ::operations_research::math_opt::SolverInitializerProto& _internal_initializer() const;
945 ::operations_research::math_opt::SolverInitializerProto* PROTOBUF_NONNULL _internal_mutable_initializer();
946
947 public:
948 // .operations_research.math_opt.SolveParametersProto parameters = 4;
949 bool has_parameters() const;
950 void clear_parameters() ;
951 const ::operations_research::math_opt::SolveParametersProto& parameters() const;
957
958 private:
959 const ::operations_research::math_opt::SolveParametersProto& _internal_parameters() const;
960 ::operations_research::math_opt::SolveParametersProto* PROTOBUF_NONNULL _internal_mutable_parameters();
961
962 public:
963 // .operations_research.math_opt.ModelSolveParametersProto model_parameters = 5;
964 bool has_model_parameters() const;
966 const ::operations_research::math_opt::ModelSolveParametersProto& model_parameters() const;
972
973 private:
974 const ::operations_research::math_opt::ModelSolveParametersProto& _internal_model_parameters() const;
975 ::operations_research::math_opt::ModelSolveParametersProto* PROTOBUF_NONNULL _internal_mutable_model_parameters();
976
977 public:
978 // .operations_research.math_opt.SolverResourcesProto resources = 6;
979 bool has_resources() const;
980 void clear_resources() ;
981 const ::operations_research::math_opt::SolverResourcesProto& resources() const;
987
988 private:
989 const ::operations_research::math_opt::SolverResourcesProto& _internal_resources() const;
990 ::operations_research::math_opt::SolverResourcesProto* PROTOBUF_NONNULL _internal_mutable_resources();
991
992 public:
993 // .operations_research.math_opt.SolverTypeProto solver_type = 1;
994 void clear_solver_type() ;
997
998 private:
999 ::operations_research::math_opt::SolverTypeProto _internal_solver_type() const;
1000 void _internal_set_solver_type(::operations_research::math_opt::SolverTypeProto value);
1001
1002 public:
1003 // @@protoc_insertion_point(class_scope:operations_research.math_opt.SolveRequest)
1004 private:
1005 class _Internal;
1006 friend class ::google::protobuf::internal::TcParser;
1007 static const ::google::protobuf::internal::TcParseTable<3, 6,
1008 5, 0,
1009 2>
1010 _table_;
1012 friend class ::google::protobuf::MessageLite;
1013 friend class ::google::protobuf::Arena;
1014 template <typename T>
1015 friend class ::google::protobuf::Arena::InternalHelper;
1016 using InternalArenaConstructable_ = void;
1017 using DestructorSkippable_ = void;
1018 struct Impl_ {
1019 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
1020 inline explicit Impl_(
1021 ::google::protobuf::internal::InternalVisibility visibility,
1022 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1023 inline explicit Impl_(
1024 ::google::protobuf::internal::InternalVisibility visibility,
1025 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
1026 const SolveRequest& from_msg);
1027 ::google::protobuf::internal::HasBits<1> _has_bits_;
1028 ::google::protobuf::internal::CachedSize _cached_size_;
1029 ::operations_research::math_opt::ModelProto* PROTOBUF_NULLABLE model_;
1030 ::operations_research::math_opt::SolverInitializerProto* PROTOBUF_NULLABLE initializer_;
1031 ::operations_research::math_opt::SolveParametersProto* PROTOBUF_NULLABLE parameters_;
1032 ::operations_research::math_opt::ModelSolveParametersProto* PROTOBUF_NULLABLE model_parameters_;
1033 ::operations_research::math_opt::SolverResourcesProto* PROTOBUF_NULLABLE resources_;
1034 int solver_type_;
1035 PROTOBUF_TSAN_DECLARE_MEMBER
1036 };
1037 union { Impl_ _impl_; };
1038 friend struct ::TableStruct_ortools_2fmath_5fopt_2frpc_2eproto;
1039};
1040
1041OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull SolveRequest_class_data_;
1043// ===================================================================
1044
1045
1046
1047
1048// ===================================================================
1049
1050
1051#ifdef __GNUC__
1052#pragma GCC diagnostic push
1053#pragma GCC diagnostic ignored "-Wstrict-aliasing"
1054#endif // __GNUC__
1055// -------------------------------------------------------------------
1056
1057// SolverResourcesProto
1058
1059// optional double cpu = 1;
1060inline bool SolverResourcesProto::has_cpu() const {
1061 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
1062 return value;
1063}
1064inline void SolverResourcesProto::clear_cpu() {
1065 ::google::protobuf::internal::TSanWrite(&_impl_);
1066 _impl_.cpu_ = 0;
1067 _impl_._has_bits_[0] &= ~0x00000001u;
1069inline double SolverResourcesProto::cpu() const {
1070 // @@protoc_insertion_point(field_get:operations_research.math_opt.SolverResourcesProto.cpu)
1071 return _internal_cpu();
1073inline void SolverResourcesProto::set_cpu(double value) {
1074 _internal_set_cpu(value);
1075 _impl_._has_bits_[0] |= 0x00000001u;
1076 // @@protoc_insertion_point(field_set:operations_research.math_opt.SolverResourcesProto.cpu)
1078inline double SolverResourcesProto::_internal_cpu() const {
1079 ::google::protobuf::internal::TSanRead(&_impl_);
1080 return _impl_.cpu_;
1082inline void SolverResourcesProto::_internal_set_cpu(double value) {
1083 ::google::protobuf::internal::TSanWrite(&_impl_);
1084 _impl_.cpu_ = value;
1085}
1086
1087// optional double ram = 2;
1088inline bool SolverResourcesProto::has_ram() const {
1089 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
1090 return value;
1091}
1092inline void SolverResourcesProto::clear_ram() {
1093 ::google::protobuf::internal::TSanWrite(&_impl_);
1094 _impl_.ram_ = 0;
1095 _impl_._has_bits_[0] &= ~0x00000002u;
1097inline double SolverResourcesProto::ram() const {
1098 // @@protoc_insertion_point(field_get:operations_research.math_opt.SolverResourcesProto.ram)
1099 return _internal_ram();
1101inline void SolverResourcesProto::set_ram(double value) {
1102 _internal_set_ram(value);
1103 _impl_._has_bits_[0] |= 0x00000002u;
1104 // @@protoc_insertion_point(field_set:operations_research.math_opt.SolverResourcesProto.ram)
1106inline double SolverResourcesProto::_internal_ram() const {
1107 ::google::protobuf::internal::TSanRead(&_impl_);
1108 return _impl_.ram_;
1110inline void SolverResourcesProto::_internal_set_ram(double value) {
1111 ::google::protobuf::internal::TSanWrite(&_impl_);
1112 _impl_.ram_ = value;
1113}
1114
1115// -------------------------------------------------------------------
1116
1117// SolveRequest
1118
1119// .operations_research.math_opt.SolverTypeProto solver_type = 1;
1120inline void SolveRequest::clear_solver_type() {
1121 ::google::protobuf::internal::TSanWrite(&_impl_);
1122 _impl_.solver_type_ = 0;
1123 _impl_._has_bits_[0] &= ~0x00000020u;
1124}
1125inline ::operations_research::math_opt::SolverTypeProto SolveRequest::solver_type() const {
1126 // @@protoc_insertion_point(field_get:operations_research.math_opt.SolveRequest.solver_type)
1127 return _internal_solver_type();
1128}
1130 _internal_set_solver_type(value);
1131 _impl_._has_bits_[0] |= 0x00000020u;
1132 // @@protoc_insertion_point(field_set:operations_research.math_opt.SolveRequest.solver_type)
1133}
1134inline ::operations_research::math_opt::SolverTypeProto SolveRequest::_internal_solver_type() const {
1135 ::google::protobuf::internal::TSanRead(&_impl_);
1136 return static_cast<::operations_research::math_opt::SolverTypeProto>(_impl_.solver_type_);
1137}
1138inline void SolveRequest::_internal_set_solver_type(::operations_research::math_opt::SolverTypeProto value) {
1139 ::google::protobuf::internal::TSanWrite(&_impl_);
1140 _impl_.solver_type_ = value;
1141}
1142
1143// .operations_research.math_opt.ModelProto model = 2;
1144inline bool SolveRequest::has_model() const {
1145 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
1146 PROTOBUF_ASSUME(!value || _impl_.model_ != nullptr);
1147 return value;
1148}
1149inline const ::operations_research::math_opt::ModelProto& SolveRequest::_internal_model() const {
1150 ::google::protobuf::internal::TSanRead(&_impl_);
1151 const ::operations_research::math_opt::ModelProto* p = _impl_.model_;
1154inline const ::operations_research::math_opt::ModelProto& SolveRequest::model() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
1155 // @@protoc_insertion_point(field_get:operations_research.math_opt.SolveRequest.model)
1156 return _internal_model();
1157}
1159 ::operations_research::math_opt::ModelProto* PROTOBUF_NULLABLE value) {
1160 ::google::protobuf::internal::TSanWrite(&_impl_);
1161 if (GetArena() == nullptr) {
1162 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.model_);
1164 _impl_.model_ = reinterpret_cast<::operations_research::math_opt::ModelProto*>(value);
1165 if (value != nullptr) {
1166 _impl_._has_bits_[0] |= 0x00000001u;
1167 } else {
1168 _impl_._has_bits_[0] &= ~0x00000001u;
1169 }
1170 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.math_opt.SolveRequest.model)
1171}
1172inline ::operations_research::math_opt::ModelProto* PROTOBUF_NULLABLE SolveRequest::release_model() {
1173 ::google::protobuf::internal::TSanWrite(&_impl_);
1174
1175 _impl_._has_bits_[0] &= ~0x00000001u;
1177 _impl_.model_ = nullptr;
1178 if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
1179 auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
1180 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
1181 if (GetArena() == nullptr) {
1182 delete old;
1183 }
1184 } else {
1185 if (GetArena() != nullptr) {
1186 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
1187 }
1188 }
1189 return released;
1190}
1191inline ::operations_research::math_opt::ModelProto* PROTOBUF_NULLABLE SolveRequest::unsafe_arena_release_model() {
1192 ::google::protobuf::internal::TSanWrite(&_impl_);
1193 // @@protoc_insertion_point(field_release:operations_research.math_opt.SolveRequest.model)
1194
1195 _impl_._has_bits_[0] &= ~0x00000001u;
1196 ::operations_research::math_opt::ModelProto* temp = _impl_.model_;
1197 _impl_.model_ = nullptr;
1198 return temp;
1199}
1200inline ::operations_research::math_opt::ModelProto* PROTOBUF_NONNULL SolveRequest::_internal_mutable_model() {
1201 ::google::protobuf::internal::TSanWrite(&_impl_);
1202 if (_impl_.model_ == nullptr) {
1203 auto* p = ::google::protobuf::Message::DefaultConstruct<::operations_research::math_opt::ModelProto>(GetArena());
1204 _impl_.model_ = reinterpret_cast<::operations_research::math_opt::ModelProto*>(p);
1205 }
1206 return _impl_.model_;
1207}
1208inline ::operations_research::math_opt::ModelProto* PROTOBUF_NONNULL SolveRequest::mutable_model()
1209 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1210 _impl_._has_bits_[0] |= 0x00000001u;
1211 ::operations_research::math_opt::ModelProto* _msg = _internal_mutable_model();
1212 // @@protoc_insertion_point(field_mutable:operations_research.math_opt.SolveRequest.model)
1213 return _msg;
1214}
1216 ::google::protobuf::Arena* message_arena = GetArena();
1217 ::google::protobuf::internal::TSanWrite(&_impl_);
1218 if (message_arena == nullptr) {
1219 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.model_);
1220 }
1221
1222 if (value != nullptr) {
1223 ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena();
1224 if (message_arena != submessage_arena) {
1225 value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
1226 }
1227 _impl_._has_bits_[0] |= 0x00000001u;
1228 } else {
1229 _impl_._has_bits_[0] &= ~0x00000001u;
1230 }
1231
1232 _impl_.model_ = reinterpret_cast<::operations_research::math_opt::ModelProto*>(value);
1233 // @@protoc_insertion_point(field_set_allocated:operations_research.math_opt.SolveRequest.model)
1234}
1235
1236// .operations_research.math_opt.SolverResourcesProto resources = 6;
1237inline bool SolveRequest::has_resources() const {
1238 bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
1239 PROTOBUF_ASSUME(!value || _impl_.resources_ != nullptr);
1240 return value;
1241}
1242inline void SolveRequest::clear_resources() {
1243 ::google::protobuf::internal::TSanWrite(&_impl_);
1244 if (_impl_.resources_ != nullptr) _impl_.resources_->Clear();
1245 _impl_._has_bits_[0] &= ~0x00000010u;
1247inline const ::operations_research::math_opt::SolverResourcesProto& SolveRequest::_internal_resources() const {
1248 ::google::protobuf::internal::TSanRead(&_impl_);
1249 const ::operations_research::math_opt::SolverResourcesProto* p = _impl_.resources_;
1252inline const ::operations_research::math_opt::SolverResourcesProto& SolveRequest::resources() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
1253 // @@protoc_insertion_point(field_get:operations_research.math_opt.SolveRequest.resources)
1254 return _internal_resources();
1255}
1258 ::google::protobuf::internal::TSanWrite(&_impl_);
1259 if (GetArena() == nullptr) {
1260 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.resources_);
1262 _impl_.resources_ = reinterpret_cast<::operations_research::math_opt::SolverResourcesProto*>(value);
1263 if (value != nullptr) {
1264 _impl_._has_bits_[0] |= 0x00000010u;
1265 } else {
1266 _impl_._has_bits_[0] &= ~0x00000010u;
1267 }
1268 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.math_opt.SolveRequest.resources)
1269}
1270inline ::operations_research::math_opt::SolverResourcesProto* PROTOBUF_NULLABLE SolveRequest::release_resources() {
1271 ::google::protobuf::internal::TSanWrite(&_impl_);
1272
1273 _impl_._has_bits_[0] &= ~0x00000010u;
1275 _impl_.resources_ = nullptr;
1276 if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
1277 auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
1278 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
1279 if (GetArena() == nullptr) {
1280 delete old;
1281 }
1282 } else {
1283 if (GetArena() != nullptr) {
1284 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
1285 }
1286 }
1287 return released;
1288}
1289inline ::operations_research::math_opt::SolverResourcesProto* PROTOBUF_NULLABLE SolveRequest::unsafe_arena_release_resources() {
1290 ::google::protobuf::internal::TSanWrite(&_impl_);
1291 // @@protoc_insertion_point(field_release:operations_research.math_opt.SolveRequest.resources)
1292
1293 _impl_._has_bits_[0] &= ~0x00000010u;
1294 ::operations_research::math_opt::SolverResourcesProto* temp = _impl_.resources_;
1295 _impl_.resources_ = nullptr;
1296 return temp;
1297}
1298inline ::operations_research::math_opt::SolverResourcesProto* PROTOBUF_NONNULL SolveRequest::_internal_mutable_resources() {
1299 ::google::protobuf::internal::TSanWrite(&_impl_);
1300 if (_impl_.resources_ == nullptr) {
1301 auto* p = ::google::protobuf::Message::DefaultConstruct<::operations_research::math_opt::SolverResourcesProto>(GetArena());
1302 _impl_.resources_ = reinterpret_cast<::operations_research::math_opt::SolverResourcesProto*>(p);
1303 }
1304 return _impl_.resources_;
1305}
1306inline ::operations_research::math_opt::SolverResourcesProto* PROTOBUF_NONNULL SolveRequest::mutable_resources()
1307 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1308 _impl_._has_bits_[0] |= 0x00000010u;
1309 ::operations_research::math_opt::SolverResourcesProto* _msg = _internal_mutable_resources();
1310 // @@protoc_insertion_point(field_mutable:operations_research.math_opt.SolveRequest.resources)
1311 return _msg;
1312}
1314 ::google::protobuf::Arena* message_arena = GetArena();
1315 ::google::protobuf::internal::TSanWrite(&_impl_);
1316 if (message_arena == nullptr) {
1317 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.resources_);
1318 }
1319
1320 if (value != nullptr) {
1321 ::google::protobuf::Arena* submessage_arena = value->GetArena();
1322 if (message_arena != submessage_arena) {
1323 value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
1324 }
1325 _impl_._has_bits_[0] |= 0x00000010u;
1326 } else {
1327 _impl_._has_bits_[0] &= ~0x00000010u;
1328 }
1329
1330 _impl_.resources_ = reinterpret_cast<::operations_research::math_opt::SolverResourcesProto*>(value);
1331 // @@protoc_insertion_point(field_set_allocated:operations_research.math_opt.SolveRequest.resources)
1332}
1333
1334// .operations_research.math_opt.SolverInitializerProto initializer = 3;
1335inline bool SolveRequest::has_initializer() const {
1336 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
1337 PROTOBUF_ASSUME(!value || _impl_.initializer_ != nullptr);
1338 return value;
1339}
1340inline const ::operations_research::math_opt::SolverInitializerProto& SolveRequest::_internal_initializer() const {
1341 ::google::protobuf::internal::TSanRead(&_impl_);
1342 const ::operations_research::math_opt::SolverInitializerProto* p = _impl_.initializer_;
1343 return p != nullptr ? *p : reinterpret_cast<const ::operations_research::math_opt::SolverInitializerProto&>(::operations_research::math_opt::_SolverInitializerProto_default_instance_);
1345inline const ::operations_research::math_opt::SolverInitializerProto& SolveRequest::initializer() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
1346 // @@protoc_insertion_point(field_get:operations_research.math_opt.SolveRequest.initializer)
1347 return _internal_initializer();
1348}
1351 ::google::protobuf::internal::TSanWrite(&_impl_);
1352 if (GetArena() == nullptr) {
1353 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.initializer_);
1355 _impl_.initializer_ = reinterpret_cast<::operations_research::math_opt::SolverInitializerProto*>(value);
1356 if (value != nullptr) {
1357 _impl_._has_bits_[0] |= 0x00000002u;
1358 } else {
1359 _impl_._has_bits_[0] &= ~0x00000002u;
1360 }
1361 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.math_opt.SolveRequest.initializer)
1362}
1363inline ::operations_research::math_opt::SolverInitializerProto* PROTOBUF_NULLABLE SolveRequest::release_initializer() {
1364 ::google::protobuf::internal::TSanWrite(&_impl_);
1365
1366 _impl_._has_bits_[0] &= ~0x00000002u;
1368 _impl_.initializer_ = nullptr;
1369 if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
1370 auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
1371 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
1372 if (GetArena() == nullptr) {
1373 delete old;
1374 }
1375 } else {
1376 if (GetArena() != nullptr) {
1377 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
1378 }
1379 }
1380 return released;
1381}
1382inline ::operations_research::math_opt::SolverInitializerProto* PROTOBUF_NULLABLE SolveRequest::unsafe_arena_release_initializer() {
1383 ::google::protobuf::internal::TSanWrite(&_impl_);
1384 // @@protoc_insertion_point(field_release:operations_research.math_opt.SolveRequest.initializer)
1385
1386 _impl_._has_bits_[0] &= ~0x00000002u;
1387 ::operations_research::math_opt::SolverInitializerProto* temp = _impl_.initializer_;
1388 _impl_.initializer_ = nullptr;
1389 return temp;
1390}
1391inline ::operations_research::math_opt::SolverInitializerProto* PROTOBUF_NONNULL SolveRequest::_internal_mutable_initializer() {
1392 ::google::protobuf::internal::TSanWrite(&_impl_);
1393 if (_impl_.initializer_ == nullptr) {
1394 auto* p = ::google::protobuf::Message::DefaultConstruct<::operations_research::math_opt::SolverInitializerProto>(GetArena());
1395 _impl_.initializer_ = reinterpret_cast<::operations_research::math_opt::SolverInitializerProto*>(p);
1396 }
1397 return _impl_.initializer_;
1398}
1399inline ::operations_research::math_opt::SolverInitializerProto* PROTOBUF_NONNULL SolveRequest::mutable_initializer()
1400 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1401 _impl_._has_bits_[0] |= 0x00000002u;
1402 ::operations_research::math_opt::SolverInitializerProto* _msg = _internal_mutable_initializer();
1403 // @@protoc_insertion_point(field_mutable:operations_research.math_opt.SolveRequest.initializer)
1404 return _msg;
1405}
1407 ::google::protobuf::Arena* message_arena = GetArena();
1408 ::google::protobuf::internal::TSanWrite(&_impl_);
1409 if (message_arena == nullptr) {
1410 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.initializer_);
1411 }
1412
1413 if (value != nullptr) {
1414 ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena();
1415 if (message_arena != submessage_arena) {
1416 value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
1417 }
1418 _impl_._has_bits_[0] |= 0x00000002u;
1419 } else {
1420 _impl_._has_bits_[0] &= ~0x00000002u;
1421 }
1422
1423 _impl_.initializer_ = reinterpret_cast<::operations_research::math_opt::SolverInitializerProto*>(value);
1424 // @@protoc_insertion_point(field_set_allocated:operations_research.math_opt.SolveRequest.initializer)
1425}
1426
1427// .operations_research.math_opt.SolveParametersProto parameters = 4;
1428inline bool SolveRequest::has_parameters() const {
1429 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
1430 PROTOBUF_ASSUME(!value || _impl_.parameters_ != nullptr);
1431 return value;
1432}
1433inline const ::operations_research::math_opt::SolveParametersProto& SolveRequest::_internal_parameters() const {
1434 ::google::protobuf::internal::TSanRead(&_impl_);
1435 const ::operations_research::math_opt::SolveParametersProto* p = _impl_.parameters_;
1436 return p != nullptr ? *p : reinterpret_cast<const ::operations_research::math_opt::SolveParametersProto&>(::operations_research::math_opt::_SolveParametersProto_default_instance_);
1438inline const ::operations_research::math_opt::SolveParametersProto& SolveRequest::parameters() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
1439 // @@protoc_insertion_point(field_get:operations_research.math_opt.SolveRequest.parameters)
1440 return _internal_parameters();
1441}
1444 ::google::protobuf::internal::TSanWrite(&_impl_);
1445 if (GetArena() == nullptr) {
1446 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.parameters_);
1448 _impl_.parameters_ = reinterpret_cast<::operations_research::math_opt::SolveParametersProto*>(value);
1449 if (value != nullptr) {
1450 _impl_._has_bits_[0] |= 0x00000004u;
1451 } else {
1452 _impl_._has_bits_[0] &= ~0x00000004u;
1453 }
1454 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.math_opt.SolveRequest.parameters)
1455}
1456inline ::operations_research::math_opt::SolveParametersProto* PROTOBUF_NULLABLE SolveRequest::release_parameters() {
1457 ::google::protobuf::internal::TSanWrite(&_impl_);
1458
1459 _impl_._has_bits_[0] &= ~0x00000004u;
1461 _impl_.parameters_ = nullptr;
1462 if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
1463 auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
1464 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
1465 if (GetArena() == nullptr) {
1466 delete old;
1467 }
1468 } else {
1469 if (GetArena() != nullptr) {
1470 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
1471 }
1472 }
1473 return released;
1474}
1475inline ::operations_research::math_opt::SolveParametersProto* PROTOBUF_NULLABLE SolveRequest::unsafe_arena_release_parameters() {
1476 ::google::protobuf::internal::TSanWrite(&_impl_);
1477 // @@protoc_insertion_point(field_release:operations_research.math_opt.SolveRequest.parameters)
1478
1479 _impl_._has_bits_[0] &= ~0x00000004u;
1480 ::operations_research::math_opt::SolveParametersProto* temp = _impl_.parameters_;
1481 _impl_.parameters_ = nullptr;
1482 return temp;
1483}
1484inline ::operations_research::math_opt::SolveParametersProto* PROTOBUF_NONNULL SolveRequest::_internal_mutable_parameters() {
1485 ::google::protobuf::internal::TSanWrite(&_impl_);
1486 if (_impl_.parameters_ == nullptr) {
1487 auto* p = ::google::protobuf::Message::DefaultConstruct<::operations_research::math_opt::SolveParametersProto>(GetArena());
1488 _impl_.parameters_ = reinterpret_cast<::operations_research::math_opt::SolveParametersProto*>(p);
1489 }
1490 return _impl_.parameters_;
1491}
1492inline ::operations_research::math_opt::SolveParametersProto* PROTOBUF_NONNULL SolveRequest::mutable_parameters()
1493 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1494 _impl_._has_bits_[0] |= 0x00000004u;
1495 ::operations_research::math_opt::SolveParametersProto* _msg = _internal_mutable_parameters();
1496 // @@protoc_insertion_point(field_mutable:operations_research.math_opt.SolveRequest.parameters)
1497 return _msg;
1498}
1500 ::google::protobuf::Arena* message_arena = GetArena();
1501 ::google::protobuf::internal::TSanWrite(&_impl_);
1502 if (message_arena == nullptr) {
1503 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.parameters_);
1504 }
1505
1506 if (value != nullptr) {
1507 ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena();
1508 if (message_arena != submessage_arena) {
1509 value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
1510 }
1511 _impl_._has_bits_[0] |= 0x00000004u;
1512 } else {
1513 _impl_._has_bits_[0] &= ~0x00000004u;
1514 }
1515
1516 _impl_.parameters_ = reinterpret_cast<::operations_research::math_opt::SolveParametersProto*>(value);
1517 // @@protoc_insertion_point(field_set_allocated:operations_research.math_opt.SolveRequest.parameters)
1518}
1519
1520// .operations_research.math_opt.ModelSolveParametersProto model_parameters = 5;
1521inline bool SolveRequest::has_model_parameters() const {
1522 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
1523 PROTOBUF_ASSUME(!value || _impl_.model_parameters_ != nullptr);
1524 return value;
1525}
1526inline const ::operations_research::math_opt::ModelSolveParametersProto& SolveRequest::_internal_model_parameters() const {
1527 ::google::protobuf::internal::TSanRead(&_impl_);
1528 const ::operations_research::math_opt::ModelSolveParametersProto* p = _impl_.model_parameters_;
1529 return p != nullptr ? *p : reinterpret_cast<const ::operations_research::math_opt::ModelSolveParametersProto&>(::operations_research::math_opt::_ModelSolveParametersProto_default_instance_);
1531inline const ::operations_research::math_opt::ModelSolveParametersProto& SolveRequest::model_parameters() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
1532 // @@protoc_insertion_point(field_get:operations_research.math_opt.SolveRequest.model_parameters)
1533 return _internal_model_parameters();
1534}
1537 ::google::protobuf::internal::TSanWrite(&_impl_);
1538 if (GetArena() == nullptr) {
1539 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.model_parameters_);
1541 _impl_.model_parameters_ = reinterpret_cast<::operations_research::math_opt::ModelSolveParametersProto*>(value);
1542 if (value != nullptr) {
1543 _impl_._has_bits_[0] |= 0x00000008u;
1544 } else {
1545 _impl_._has_bits_[0] &= ~0x00000008u;
1546 }
1547 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.math_opt.SolveRequest.model_parameters)
1548}
1549inline ::operations_research::math_opt::ModelSolveParametersProto* PROTOBUF_NULLABLE SolveRequest::release_model_parameters() {
1550 ::google::protobuf::internal::TSanWrite(&_impl_);
1551
1552 _impl_._has_bits_[0] &= ~0x00000008u;
1554 _impl_.model_parameters_ = nullptr;
1555 if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
1556 auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
1557 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
1558 if (GetArena() == nullptr) {
1559 delete old;
1560 }
1561 } else {
1562 if (GetArena() != nullptr) {
1563 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
1564 }
1565 }
1566 return released;
1567}
1568inline ::operations_research::math_opt::ModelSolveParametersProto* PROTOBUF_NULLABLE SolveRequest::unsafe_arena_release_model_parameters() {
1569 ::google::protobuf::internal::TSanWrite(&_impl_);
1570 // @@protoc_insertion_point(field_release:operations_research.math_opt.SolveRequest.model_parameters)
1571
1572 _impl_._has_bits_[0] &= ~0x00000008u;
1573 ::operations_research::math_opt::ModelSolveParametersProto* temp = _impl_.model_parameters_;
1574 _impl_.model_parameters_ = nullptr;
1575 return temp;
1576}
1577inline ::operations_research::math_opt::ModelSolveParametersProto* PROTOBUF_NONNULL SolveRequest::_internal_mutable_model_parameters() {
1578 ::google::protobuf::internal::TSanWrite(&_impl_);
1579 if (_impl_.model_parameters_ == nullptr) {
1580 auto* p = ::google::protobuf::Message::DefaultConstruct<::operations_research::math_opt::ModelSolveParametersProto>(GetArena());
1581 _impl_.model_parameters_ = reinterpret_cast<::operations_research::math_opt::ModelSolveParametersProto*>(p);
1582 }
1583 return _impl_.model_parameters_;
1584}
1585inline ::operations_research::math_opt::ModelSolveParametersProto* PROTOBUF_NONNULL SolveRequest::mutable_model_parameters()
1586 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1587 _impl_._has_bits_[0] |= 0x00000008u;
1588 ::operations_research::math_opt::ModelSolveParametersProto* _msg = _internal_mutable_model_parameters();
1589 // @@protoc_insertion_point(field_mutable:operations_research.math_opt.SolveRequest.model_parameters)
1590 return _msg;
1591}
1593 ::google::protobuf::Arena* message_arena = GetArena();
1594 ::google::protobuf::internal::TSanWrite(&_impl_);
1595 if (message_arena == nullptr) {
1596 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.model_parameters_);
1597 }
1598
1599 if (value != nullptr) {
1600 ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena();
1601 if (message_arena != submessage_arena) {
1602 value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
1603 }
1604 _impl_._has_bits_[0] |= 0x00000008u;
1605 } else {
1606 _impl_._has_bits_[0] &= ~0x00000008u;
1607 }
1608
1609 _impl_.model_parameters_ = reinterpret_cast<::operations_research::math_opt::ModelSolveParametersProto*>(value);
1610 // @@protoc_insertion_point(field_set_allocated:operations_research.math_opt.SolveRequest.model_parameters)
1611}
1612
1613// -------------------------------------------------------------------
1614
1615// SolveResponse
1616
1617// .operations_research.math_opt.SolveResultProto result = 1;
1618inline bool SolveResponse::has_result() const {
1619 return status_or_case() == kResult;
1620}
1621inline bool SolveResponse::_internal_has_result() const {
1622 return status_or_case() == kResult;
1623}
1624inline void SolveResponse::set_has_result() {
1625 _impl_._oneof_case_[0] = kResult;
1626}
1627inline ::operations_research::math_opt::SolveResultProto* PROTOBUF_NULLABLE SolveResponse::release_result() {
1628 // @@protoc_insertion_point(field_release:operations_research.math_opt.SolveResponse.result)
1629 if (status_or_case() == kResult) {
1630 clear_has_status_or();
1631 auto* temp = _impl_.status_or_.result_;
1632 if (GetArena() != nullptr) {
1633 temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
1634 }
1635 _impl_.status_or_.result_ = nullptr;
1636 return temp;
1637 } else {
1638 return nullptr;
1639 }
1640}
1641inline const ::operations_research::math_opt::SolveResultProto& SolveResponse::_internal_result() const {
1643}
1644inline const ::operations_research::math_opt::SolveResultProto& SolveResponse::result() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
1645 // @@protoc_insertion_point(field_get:operations_research.math_opt.SolveResponse.result)
1646 return _internal_result();
1647}
1648inline ::operations_research::math_opt::SolveResultProto* PROTOBUF_NULLABLE SolveResponse::unsafe_arena_release_result() {
1649 // @@protoc_insertion_point(field_unsafe_arena_release:operations_research.math_opt.SolveResponse.result)
1650 if (status_or_case() == kResult) {
1651 clear_has_status_or();
1652 auto* temp = _impl_.status_or_.result_;
1653 _impl_.status_or_.result_ = nullptr;
1654 return temp;
1655 } else {
1656 return nullptr;
1657 }
1660 ::operations_research::math_opt::SolveResultProto* PROTOBUF_NULLABLE value) {
1661 // We rely on the oneof clear method to free the earlier contents
1662 // of this oneof. We can directly use the pointer we're given to
1663 // set the new value.
1665 if (value) {
1666 set_has_result();
1667 _impl_.status_or_.result_ = value;
1668 }
1669 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.math_opt.SolveResponse.result)
1670}
1671inline ::operations_research::math_opt::SolveResultProto* PROTOBUF_NONNULL SolveResponse::_internal_mutable_result() {
1672 if (status_or_case() != kResult) {
1674 set_has_result();
1675 _impl_.status_or_.result_ =
1676 ::google::protobuf::Message::DefaultConstruct<::operations_research::math_opt::SolveResultProto>(GetArena());
1677 }
1678 return _impl_.status_or_.result_;
1679}
1680inline ::operations_research::math_opt::SolveResultProto* PROTOBUF_NONNULL SolveResponse::mutable_result()
1681 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1682 ::operations_research::math_opt::SolveResultProto* _msg = _internal_mutable_result();
1683 // @@protoc_insertion_point(field_mutable:operations_research.math_opt.SolveResponse.result)
1684 return _msg;
1685}
1686
1687// .operations_research.math_opt.StatusProto status = 3;
1688inline bool SolveResponse::has_status() const {
1689 return status_or_case() == kStatus;
1691inline bool SolveResponse::_internal_has_status() const {
1692 return status_or_case() == kStatus;
1693}
1694inline void SolveResponse::set_has_status() {
1695 _impl_._oneof_case_[0] = kStatus;
1696}
1697inline void SolveResponse::clear_status() {
1698 ::google::protobuf::internal::TSanWrite(&_impl_);
1699 if (status_or_case() == kStatus) {
1700 if (GetArena() == nullptr) {
1701 delete _impl_.status_or_.status_;
1702 } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
1703 ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.status_or_.status_);
1704 }
1705 clear_has_status_or();
1706 }
1708inline ::operations_research::math_opt::StatusProto* PROTOBUF_NULLABLE SolveResponse::release_status() {
1709 // @@protoc_insertion_point(field_release:operations_research.math_opt.SolveResponse.status)
1710 if (status_or_case() == kStatus) {
1711 clear_has_status_or();
1712 auto* temp = _impl_.status_or_.status_;
1713 if (GetArena() != nullptr) {
1714 temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
1715 }
1716 _impl_.status_or_.status_ = nullptr;
1717 return temp;
1718 } else {
1719 return nullptr;
1720 }
1721}
1722inline const ::operations_research::math_opt::StatusProto& SolveResponse::_internal_status() const {
1724}
1725inline const ::operations_research::math_opt::StatusProto& SolveResponse::status() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
1726 // @@protoc_insertion_point(field_get:operations_research.math_opt.SolveResponse.status)
1727 return _internal_status();
1728}
1729inline ::operations_research::math_opt::StatusProto* PROTOBUF_NULLABLE SolveResponse::unsafe_arena_release_status() {
1730 // @@protoc_insertion_point(field_unsafe_arena_release:operations_research.math_opt.SolveResponse.status)
1731 if (status_or_case() == kStatus) {
1732 clear_has_status_or();
1733 auto* temp = _impl_.status_or_.status_;
1734 _impl_.status_or_.status_ = nullptr;
1735 return temp;
1736 } else {
1737 return nullptr;
1738 }
1741 ::operations_research::math_opt::StatusProto* PROTOBUF_NULLABLE value) {
1742 // We rely on the oneof clear method to free the earlier contents
1743 // of this oneof. We can directly use the pointer we're given to
1744 // set the new value.
1746 if (value) {
1747 set_has_status();
1748 _impl_.status_or_.status_ = value;
1749 }
1750 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.math_opt.SolveResponse.status)
1751}
1752inline ::operations_research::math_opt::StatusProto* PROTOBUF_NONNULL SolveResponse::_internal_mutable_status() {
1753 if (status_or_case() != kStatus) {
1755 set_has_status();
1756 _impl_.status_or_.status_ =
1757 ::google::protobuf::Message::DefaultConstruct<::operations_research::math_opt::StatusProto>(GetArena());
1758 }
1759 return _impl_.status_or_.status_;
1760}
1761inline ::operations_research::math_opt::StatusProto* PROTOBUF_NONNULL SolveResponse::mutable_status()
1762 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1763 ::operations_research::math_opt::StatusProto* _msg = _internal_mutable_status();
1764 // @@protoc_insertion_point(field_mutable:operations_research.math_opt.SolveResponse.status)
1765 return _msg;
1766}
1767
1768// repeated string messages = 2;
1769inline int SolveResponse::_internal_messages_size() const {
1770 return _internal_messages().size();
1772inline int SolveResponse::messages_size() const {
1773 return _internal_messages_size();
1774}
1775inline void SolveResponse::clear_messages() {
1776 ::google::protobuf::internal::TSanWrite(&_impl_);
1777 _impl_.messages_.Clear();
1778}
1779inline ::std::string* PROTOBUF_NONNULL SolveResponse::add_messages()
1780 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1781 ::google::protobuf::internal::TSanWrite(&_impl_);
1782 ::std::string* _s = _internal_mutable_messages()->Add();
1783 // @@protoc_insertion_point(field_add_mutable:operations_research.math_opt.SolveResponse.messages)
1784 return _s;
1786inline const ::std::string& SolveResponse::messages(int index) const
1787 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1788 // @@protoc_insertion_point(field_get:operations_research.math_opt.SolveResponse.messages)
1789 return _internal_messages().Get(index);
1790}
1791inline ::std::string* PROTOBUF_NONNULL SolveResponse::mutable_messages(int index)
1792 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1793 // @@protoc_insertion_point(field_mutable:operations_research.math_opt.SolveResponse.messages)
1794 return _internal_mutable_messages()->Mutable(index);
1795}
1796template <typename Arg_, typename... Args_>
1797inline void SolveResponse::set_messages(int index, Arg_&& value, Args_... args) {
1798 ::google::protobuf::internal::AssignToString(*_internal_mutable_messages()->Mutable(index), ::std::forward<Arg_>(value),
1799 args... );
1800 // @@protoc_insertion_point(field_set:operations_research.math_opt.SolveResponse.messages)
1802template <typename Arg_, typename... Args_>
1803inline void SolveResponse::add_messages(Arg_&& value, Args_... args) {
1804 ::google::protobuf::internal::TSanWrite(&_impl_);
1805 ::google::protobuf::internal::AddToRepeatedPtrField(*_internal_mutable_messages(),
1806 ::std::forward<Arg_>(value),
1807 args... );
1808 // @@protoc_insertion_point(field_add:operations_research.math_opt.SolveResponse.messages)
1809}
1810inline const ::google::protobuf::RepeatedPtrField<::std::string>& SolveResponse::messages()
1811 const ABSL_ATTRIBUTE_LIFETIME_BOUND {
1812 // @@protoc_insertion_point(field_list:operations_research.math_opt.SolveResponse.messages)
1813 return _internal_messages();
1814}
1815inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL
1816SolveResponse::mutable_messages() ABSL_ATTRIBUTE_LIFETIME_BOUND {
1817 // @@protoc_insertion_point(field_mutable_list:operations_research.math_opt.SolveResponse.messages)
1818 ::google::protobuf::internal::TSanWrite(&_impl_);
1819 return _internal_mutable_messages();
1821inline const ::google::protobuf::RepeatedPtrField<::std::string>&
1822SolveResponse::_internal_messages() const {
1823 ::google::protobuf::internal::TSanRead(&_impl_);
1824 return _impl_.messages_;
1825}
1826inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL
1827SolveResponse::_internal_mutable_messages() {
1828 ::google::protobuf::internal::TSanRead(&_impl_);
1829 return &_impl_.messages_;
1830}
1831
1832inline bool SolveResponse::has_status_or() const {
1834}
1835inline void SolveResponse::clear_has_status_or() {
1836 _impl_._oneof_case_[0] = STATUS_OR_NOT_SET;
1837}
1839 return SolveResponse::StatusOrCase(_impl_._oneof_case_[0]);
1840}
1841// -------------------------------------------------------------------
1842
1843// StatusProto
1844
1845// int32 code = 1;
1846inline void StatusProto::clear_code() {
1847 ::google::protobuf::internal::TSanWrite(&_impl_);
1848 _impl_.code_ = 0;
1849 _impl_._has_bits_[0] &= ~0x00000002u;
1850}
1851inline ::int32_t StatusProto::code() const {
1852 // @@protoc_insertion_point(field_get:operations_research.math_opt.StatusProto.code)
1853 return _internal_code();
1854}
1855inline void StatusProto::set_code(::int32_t value) {
1856 _internal_set_code(value);
1857 _impl_._has_bits_[0] |= 0x00000002u;
1858 // @@protoc_insertion_point(field_set:operations_research.math_opt.StatusProto.code)
1859}
1860inline ::int32_t StatusProto::_internal_code() const {
1861 ::google::protobuf::internal::TSanRead(&_impl_);
1862 return _impl_.code_;
1863}
1864inline void StatusProto::_internal_set_code(::int32_t value) {
1865 ::google::protobuf::internal::TSanWrite(&_impl_);
1866 _impl_.code_ = value;
1867}
1868
1869// string message = 2;
1870inline void StatusProto::clear_message() {
1871 ::google::protobuf::internal::TSanWrite(&_impl_);
1872 _impl_.message_.ClearToEmpty();
1873 _impl_._has_bits_[0] &= ~0x00000001u;
1874}
1875inline const ::std::string& StatusProto::message() const
1876 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1877 // @@protoc_insertion_point(field_get:operations_research.math_opt.StatusProto.message)
1878 return _internal_message();
1879}
1880template <typename Arg_, typename... Args_>
1881PROTOBUF_ALWAYS_INLINE void StatusProto::set_message(Arg_&& arg, Args_... args) {
1882 ::google::protobuf::internal::TSanWrite(&_impl_);
1883 _impl_._has_bits_[0] |= 0x00000001u;
1884 _impl_.message_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
1885 // @@protoc_insertion_point(field_set:operations_research.math_opt.StatusProto.message)
1887inline ::std::string* PROTOBUF_NONNULL StatusProto::mutable_message()
1888 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1889 ::std::string* _s = _internal_mutable_message();
1890 // @@protoc_insertion_point(field_mutable:operations_research.math_opt.StatusProto.message)
1891 return _s;
1893inline const ::std::string& StatusProto::_internal_message() const {
1894 ::google::protobuf::internal::TSanRead(&_impl_);
1895 return _impl_.message_.Get();
1896}
1897inline void StatusProto::_internal_set_message(const ::std::string& value) {
1898 ::google::protobuf::internal::TSanWrite(&_impl_);
1899 _impl_._has_bits_[0] |= 0x00000001u;
1900 _impl_.message_.Set(value, GetArena());
1901}
1902inline ::std::string* PROTOBUF_NONNULL StatusProto::_internal_mutable_message() {
1903 ::google::protobuf::internal::TSanWrite(&_impl_);
1904 _impl_._has_bits_[0] |= 0x00000001u;
1905 return _impl_.message_.Mutable( GetArena());
1906}
1907inline ::std::string* PROTOBUF_NULLABLE StatusProto::release_message() {
1908 ::google::protobuf::internal::TSanWrite(&_impl_);
1909 // @@protoc_insertion_point(field_release:operations_research.math_opt.StatusProto.message)
1910 if ((_impl_._has_bits_[0] & 0x00000001u) == 0) {
1911 return nullptr;
1912 }
1913 _impl_._has_bits_[0] &= ~0x00000001u;
1914 auto* released = _impl_.message_.Release();
1915 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
1916 _impl_.message_.Set("", GetArena());
1917 }
1918 return released;
1919}
1920inline void StatusProto::set_allocated_message(::std::string* PROTOBUF_NULLABLE value) {
1921 ::google::protobuf::internal::TSanWrite(&_impl_);
1922 if (value != nullptr) {
1923 _impl_._has_bits_[0] |= 0x00000001u;
1924 } else {
1925 _impl_._has_bits_[0] &= ~0x00000001u;
1926 }
1927 _impl_.message_.SetAllocated(value, GetArena());
1928 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.message_.IsDefault()) {
1929 _impl_.message_.Set("", GetArena());
1930 }
1931 // @@protoc_insertion_point(field_set_allocated:operations_research.math_opt.StatusProto.message)
1932}
1933
1934#ifdef __GNUC__
1935#pragma GCC diagnostic pop
1936#endif // __GNUC__
1937
1938// @@protoc_insertion_point(namespace_scope)
1939} // namespace math_opt
1940} // namespace operations_research
1941
1942
1943// @@protoc_insertion_point(global_scope)
1944
1945#include "google/protobuf/port_undef.inc"
1946
1947#endif // ortools_2fmath_5fopt_2frpc_2eproto_2epb_2eh
void set_allocated_initializer(::operations_research::math_opt::SolverInitializerProto *PROTOBUF_NULLABLE value)
Definition rpc.pb.h:1415
void unsafe_arena_set_allocated_initializer(::operations_research::math_opt::SolverInitializerProto *PROTOBUF_NULLABLE value)
Definition rpc.pb.h:1358
static constexpr auto InternalNewImpl_()
Definition rpc.pb.cc:633
const ::operations_research::math_opt::SolverInitializerProto & initializer() const
Definition rpc.pb.h:1354
const ::operations_research::math_opt::ModelProto & model() const
Definition rpc.pb.h:1163
const ::operations_research::math_opt::ModelSolveParametersProto & model_parameters() const
Definition rpc.pb.h:1540
void set_allocated_model_parameters(::operations_research::math_opt::ModelSolveParametersProto *PROTOBUF_NULLABLE value)
Definition rpc.pb.h:1601
::operations_research::math_opt::SolverResourcesProto *PROTOBUF_NULLABLE release_resources()
Definition rpc.pb.h:1279
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
Definition rpc.pb.h:806
::operations_research::math_opt::SolverResourcesProto *PROTOBUF_NULLABLE unsafe_arena_release_resources()
Definition rpc.pb.h:1298
void unsafe_arena_set_allocated_model_parameters(::operations_research::math_opt::ModelSolveParametersProto *PROTOBUF_NULLABLE value)
Definition rpc.pb.h:1544
void CopyFrom(const SolveRequest &from)
Definition rpc.pb.cc:961
void set_allocated_parameters(::operations_research::math_opt::SolveParametersProto *PROTOBUF_NULLABLE value)
Definition rpc.pb.h:1508
void set_allocated_resources(::operations_research::math_opt::SolverResourcesProto *PROTOBUF_NULLABLE value)
Definition rpc.pb.h:1322
::operations_research::math_opt::SolveParametersProto *PROTOBUF_NULLABLE unsafe_arena_release_parameters()
Definition rpc.pb.h:1484
::operations_research::math_opt::ModelProto *PROTOBUF_NONNULL mutable_model()
Definition rpc.pb.h:1217
void unsafe_arena_set_allocated_resources(::operations_research::math_opt::SolverResourcesProto *PROTOBUF_NULLABLE value)
Definition rpc.pb.h:1265
::operations_research::math_opt::SolverTypeProto solver_type() const
Definition rpc.pb.h:1134
::operations_research::math_opt::ModelSolveParametersProto *PROTOBUF_NONNULL mutable_model_parameters()
Definition rpc.pb.h:1594
::google::protobuf::Metadata GetMetadata() const
Definition rpc.pb.cc:981
bool has_model() const
.operations_research.math_opt.ModelProto model = 2;
Definition rpc.pb.h:1153
bool has_parameters() const
.operations_research.math_opt.SolveParametersProto parameters = 4;
Definition rpc.pb.h:1437
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
friend void swap(SolveRequest &a, SolveRequest &b)
Definition rpc.pb.h:829
SolveRequest *PROTOBUF_NONNULL New(::google::protobuf::Arena *PROTOBUF_NULLABLE arena=nullptr) const
implements Message -------------------------------------------—
Definition rpc.pb.h:846
::operations_research::math_opt::SolverInitializerProto *PROTOBUF_NONNULL mutable_initializer()
Definition rpc.pb.h:1408
::operations_research::math_opt::SolverInitializerProto *PROTOBUF_NULLABLE unsafe_arena_release_initializer()
Definition rpc.pb.h:1391
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
Definition rpc.pb.cc:665
void unsafe_arena_set_allocated_model(::operations_research::math_opt::ModelProto *PROTOBUF_NULLABLE value)
Definition rpc.pb.h:1167
SolveRequest & operator=(const SolveRequest &from)
Definition rpc.pb.h:792
bool has_initializer() const
.operations_research.math_opt.SolverInitializerProto initializer = 3;
Definition rpc.pb.h:1344
::operations_research::math_opt::ModelProto *PROTOBUF_NULLABLE unsafe_arena_release_model()
Definition rpc.pb.h:1200
::operations_research::math_opt::ModelSolveParametersProto *PROTOBUF_NULLABLE unsafe_arena_release_model_parameters()
Definition rpc.pb.h:1577
void set_allocated_model(::operations_research::math_opt::ModelProto *PROTOBUF_NULLABLE value)
Definition rpc.pb.h:1224
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
Definition rpc.pb.cc:628
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL descriptor()
Definition rpc.pb.h:815
void clear_solver_type()
.operations_research.math_opt.SolverTypeProto solver_type = 1;
Definition rpc.pb.h:1129
::operations_research::math_opt::SolveParametersProto *PROTOBUF_NONNULL mutable_parameters()
Definition rpc.pb.h:1501
bool has_model_parameters() const
.operations_research.math_opt.ModelSolveParametersProto model_parameters = 5;
Definition rpc.pb.h:1530
::operations_research::math_opt::ModelSolveParametersProto *PROTOBUF_NULLABLE release_model_parameters()
Definition rpc.pb.h:1558
::operations_research::math_opt::SolveParametersProto *PROTOBUF_NULLABLE release_parameters()
Definition rpc.pb.h:1465
const ::operations_research::math_opt::SolveParametersProto & parameters() const
Definition rpc.pb.h:1447
::operations_research::math_opt::SolverInitializerProto *PROTOBUF_NULLABLE release_initializer()
Definition rpc.pb.h:1372
::operations_research::math_opt::ModelProto *PROTOBUF_NULLABLE release_model()
Definition rpc.pb.h:1181
static constexpr auto InternalGenerateClassData_()
Definition rpc.pb.cc:637
bool has_resources() const
.operations_research.math_opt.SolverResourcesProto resources = 6;
Definition rpc.pb.h:1246
::operations_research::math_opt::SolverResourcesProto *PROTOBUF_NONNULL mutable_resources()
Definition rpc.pb.h:1315
void Swap(SolveRequest *PROTOBUF_NONNULL other)
Definition rpc.pb.h:830
void unsafe_arena_set_allocated_parameters(::operations_research::math_opt::SolveParametersProto *PROTOBUF_NULLABLE value)
Definition rpc.pb.h:1451
void set_solver_type(::operations_research::math_opt::SolverTypeProto value)
Definition rpc.pb.h:1138
friend class ::google::protobuf::Arena
Definition rpc.pb.h:1018
const ::operations_research::math_opt::SolverResourcesProto & resources() const
Definition rpc.pb.h:1261
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL GetDescriptor()
Definition rpc.pb.h:818
friend class ::google::protobuf::MessageLite
Definition rpc.pb.h:739
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL descriptor()
Definition rpc.pb.h:554
const ::operations_research::math_opt::StatusProto & status() const
Definition rpc.pb.h:1735
void MergeFrom(const SolveResponse &from)
Definition rpc.pb.h:596
::google::protobuf::RepeatedPtrField<::std::string > *PROTOBUF_NONNULL mutable_messages()
Definition rpc.pb.h:1826
::operations_research::math_opt::StatusProto *PROTOBUF_NULLABLE unsafe_arena_release_status()
Definition rpc.pb.h:1739
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL GetDescriptor()
Definition rpc.pb.h:557
void unsafe_arena_set_allocated_result(::operations_research::math_opt::SolveResultProto *PROTOBUF_NULLABLE value)
Definition rpc.pb.h:1669
static const SolveResponse & default_instance()
Definition rpc.pb.h:563
const ::google::protobuf::RepeatedPtrField<::std::string > & messages() const
Definition rpc.pb.h:1820
::operations_research::math_opt::SolveResultProto *PROTOBUF_NULLABLE release_result()
Definition rpc.pb.h:1637
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
bool has_result() const
.operations_research.math_opt.SolveResultProto result = 1;
Definition rpc.pb.h:1628
inline ::google::protobuf::UnknownFieldSet *PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND
Definition rpc.pb.h:549
::operations_research::math_opt::StatusProto *PROTOBUF_NULLABLE release_status()
Definition rpc.pb.h:1718
void Swap(SolveResponse *PROTOBUF_NONNULL other)
Definition rpc.pb.h:574
::std::string *PROTOBUF_NONNULL mutable_messages(int index)
Definition rpc.pb.h:1801
::operations_research::math_opt::SolveResultProto *PROTOBUF_NULLABLE unsafe_arena_release_result()
Definition rpc.pb.h:1658
::std::string *PROTOBUF_NONNULL add_messages()
Definition rpc.pb.h:1789
void unsafe_arena_set_allocated_status(::operations_research::math_opt::StatusProto *PROTOBUF_NULLABLE value)
Definition rpc.pb.h:1750
bool has_status() const
.operations_research.math_opt.StatusProto status = 3;
Definition rpc.pb.h:1698
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
const ::std::string & messages(int index) const
Definition rpc.pb.h:1796
static constexpr int kIndexInFileMessages
Definition rpc.pb.h:572
PROTOBUF_CONSTEXPR SolveResponse(::google::protobuf::internal::ConstantInitialized)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
Definition rpc.pb.cc:1245
void set_messages(int index, Arg_ &&value, Args_... args)
Definition rpc.pb.h:1807
::operations_research::math_opt::StatusProto *PROTOBUF_NONNULL mutable_status()
Definition rpc.pb.h:1771
const ::operations_research::math_opt::SolveResultProto & result() const
Definition rpc.pb.h:1654
::operations_research::math_opt::SolveResultProto *PROTOBUF_NONNULL mutable_result()
Definition rpc.pb.h:1690
SolveResponse & operator=(const SolveResponse &from)
Definition rpc.pb.h:531
int messages_size() const
repeated string messages = 2;
Definition rpc.pb.h:1782
PROTOBUF_CONSTEXPR SolverResourcesProto(::google::protobuf::internal::ConstantInitialized)
friend class ::google::protobuf::MessageLite
Definition rpc.pb.h:483
void CopyFrom(const SolverResourcesProto &from)
Definition rpc.pb.cc:495
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL GetDescriptor()
Definition rpc.pb.h:351
static const SolverResourcesProto & default_instance()
Definition rpc.pb.h:357
void MergeFrom(const SolverResourcesProto &from)
Definition rpc.pb.h:385
static const ::google::protobuf::Reflection *PROTOBUF_NONNULL GetReflection()
Definition rpc.pb.h:354
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
Definition rpc.pb.h:339
SolverResourcesProto & operator=(const SolverResourcesProto &from)
Definition rpc.pb.h:325
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
bool has_cpu() const
optional double cpu = 1;
Definition rpc.pb.h:1068
bool has_ram() const
optional double ram = 2;
Definition rpc.pb.h:1096
void Swap(SolverResourcesProto *PROTOBUF_NONNULL other)
Definition rpc.pb.h:363
friend class ::google::protobuf::MessageLite
Definition rpc.pb.h:277
::std::string *PROTOBUF_NONNULL mutable_message()
Definition rpc.pb.h:1898
void Swap(StatusProto *PROTOBUF_NONNULL other)
Definition rpc.pb.h:154
void set_allocated_message(::std::string *PROTOBUF_NULLABLE value)
Definition rpc.pb.h:1931
void CopyFrom(const StatusProto &from)
Definition rpc.pb.cc:1671
StatusProto & operator=(const StatusProto &from)
Definition rpc.pb.h:116
const ::std::string & message() const
Definition rpc.pb.h:1886
void clear_message()
string message = 2;
Definition rpc.pb.h:1881
void set_message(Arg_ &&arg, Args_... args)
PROTOBUF_CONSTEXPR StatusProto(::google::protobuf::internal::ConstantInitialized)
StatusProto(const StatusProto &from)
Definition rpc.pb.h:113
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
Definition rpc.pb.h:130
StatusProto(::google::protobuf::Arena *PROTOBUF_NULLABLE arena, StatusProto &&from) noexcept
Definition rpc.pb.h:221
::std::string *PROTOBUF_NULLABLE release_message()
Definition rpc.pb.h:1918
::absl::string_view GetAnyMessageName()
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 ModelProtoDefaultTypeInternal _ModelProto_default_instance_
Definition model.pb.cc:385
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SolverInitializerProtoDefaultTypeInternal _SolverInitializerProto_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SolveParametersProtoDefaultTypeInternal _SolveParametersProto_default_instance_
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 ModelSolveParametersProtoDefaultTypeInternal _ModelSolveParametersProto_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SolveResultProtoDefaultTypeInternal _SolveResultProto_default_instance_
Definition result.pb.cc:200
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.
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2frpc_2eproto
Definition rpc.pb.cc:241
Internal implementation detail – do not use these members.
Definition rpc.pb.h:56
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