Google OR-Tools v9.15
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.33.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 != 6033001
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 explicit StatusProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
217 StatusProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const StatusProto& from);
219 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, StatusProto&& from) noexcept
220 : StatusProto(arena) {
221 *this = ::std::move(from);
222 }
223 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
224 static void* PROTOBUF_NONNULL PlacementNew_(
225 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
226 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
227 static constexpr auto InternalNewImpl_();
228
229 public:
230 static constexpr auto InternalGenerateClassData_();
231
232 ::google::protobuf::Metadata GetMetadata() const;
233 // nested types ----------------------------------------------------
234
235 // accessors -------------------------------------------------------
236 enum : int {
237 kMessageFieldNumber = 2,
238 kCodeFieldNumber = 1,
239 };
240 // string message = 2;
241 void clear_message() ;
242 const ::std::string& message() const;
243 template <typename Arg_ = const ::std::string&, typename... Args_>
244 void set_message(Arg_&& arg, Args_... args);
245 ::std::string* PROTOBUF_NONNULL mutable_message();
246 [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_message();
247 void set_allocated_message(::std::string* PROTOBUF_NULLABLE value);
248
249 private:
250 const ::std::string& _internal_message() const;
251 PROTOBUF_ALWAYS_INLINE void _internal_set_message(const ::std::string& value);
252 ::std::string* PROTOBUF_NONNULL _internal_mutable_message();
253
254 public:
255 // int32 code = 1;
256 void clear_code() ;
257 ::int32_t code() const;
258 void set_code(::int32_t value);
259
260 private:
261 ::int32_t _internal_code() const;
262 void _internal_set_code(::int32_t value);
263
264 public:
265 // @@protoc_insertion_point(class_scope:operations_research.math_opt.StatusProto)
266 private:
267 class _Internal;
268 friend class ::google::protobuf::internal::TcParser;
269 static const ::google::protobuf::internal::TcParseTable<1, 2,
270 0, 56,
271 2>
272 _table_;
273
274 friend class ::google::protobuf::MessageLite;
275 friend class ::google::protobuf::Arena;
276 template <typename T>
277 friend class ::google::protobuf::Arena::InternalHelper;
278 using InternalArenaConstructable_ = void;
279 using DestructorSkippable_ = void;
280 struct Impl_ {
281 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
282 inline explicit Impl_(
283 ::google::protobuf::internal::InternalVisibility visibility,
284 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
285 inline explicit Impl_(
286 ::google::protobuf::internal::InternalVisibility visibility,
287 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
288 const StatusProto& from_msg);
289 ::google::protobuf::internal::HasBits<1> _has_bits_;
290 ::google::protobuf::internal::CachedSize _cached_size_;
291 ::google::protobuf::internal::ArenaStringPtr message_;
292 ::int32_t code_;
293 PROTOBUF_TSAN_DECLARE_MEMBER
294 };
295 union { Impl_ _impl_; };
296 friend struct ::TableStruct_ortools_2fmath_5fopt_2frpc_2eproto;
299OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull StatusProto_class_data_;
300// -------------------------------------------------------------------
301
302class OR_PROTO_DLL SolverResourcesProto final : public ::google::protobuf::Message
303/* @@protoc_insertion_point(class_definition:operations_research.math_opt.SolverResourcesProto) */ {
304 public:
306 ~SolverResourcesProto() PROTOBUF_FINAL;
307
308#if defined(PROTOBUF_CUSTOM_VTABLE)
309 void operator delete(SolverResourcesProto* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
310 SharedDtor(*msg);
311 ::google::protobuf::internal::SizedDelete(msg, sizeof(SolverResourcesProto));
312 }
313#endif
314
315 template <typename = void>
316 explicit PROTOBUF_CONSTEXPR SolverResourcesProto(::google::protobuf::internal::ConstantInitialized);
317
318 inline SolverResourcesProto(const SolverResourcesProto& from) : SolverResourcesProto(nullptr, from) {}
320 : SolverResourcesProto(nullptr, ::std::move(from)) {}
322 CopyFrom(from);
323 return *this;
325 inline SolverResourcesProto& operator=(SolverResourcesProto&& from) noexcept {
326 if (this == &from) return *this;
327 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
328 InternalSwap(&from);
329 } else {
330 CopyFrom(from);
331 }
332 return *this;
333 }
334
335 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
336 ABSL_ATTRIBUTE_LIFETIME_BOUND {
337 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
339 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
340 ABSL_ATTRIBUTE_LIFETIME_BOUND {
341 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
343
344 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
345 return GetDescriptor();
346 }
347 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
348 return default_instance().GetMetadata().descriptor;
349 }
350 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
351 return default_instance().GetMetadata().reflection;
352 }
354 return *reinterpret_cast<const SolverResourcesProto*>(
357 static constexpr int kIndexInFileMessages = 0;
358 friend void swap(SolverResourcesProto& a, SolverResourcesProto& b) { a.Swap(&b); }
359 inline void Swap(SolverResourcesProto* PROTOBUF_NONNULL other) {
360 if (other == this) return;
361 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
362 InternalSwap(other);
363 } else {
364 ::google::protobuf::internal::GenericSwap(this, other);
365 }
366 }
367 void UnsafeArenaSwap(SolverResourcesProto* PROTOBUF_NONNULL other) {
368 if (other == this) return;
369 ABSL_DCHECK(GetArena() == other->GetArena());
370 InternalSwap(other);
371 }
372
373 // implements Message ----------------------------------------------
374
375 SolverResourcesProto* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
376 return ::google::protobuf::Message::DefaultConstruct<SolverResourcesProto>(arena);
377 }
378 using ::google::protobuf::Message::CopyFrom;
379 void CopyFrom(const SolverResourcesProto& from);
380 using ::google::protobuf::Message::MergeFrom;
381 void MergeFrom(const SolverResourcesProto& from) { SolverResourcesProto::MergeImpl(*this, from); }
382
383 private:
384 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
385 const ::google::protobuf::MessageLite& from_msg);
386
387 public:
388 bool IsInitialized() const {
389 return true;
390 }
391 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
392 #if defined(PROTOBUF_CUSTOM_VTABLE)
393 private:
394 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
395 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
396 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
397 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
398
399 public:
400 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
401 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
402 ::uint8_t* PROTOBUF_NONNULL target,
403 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
404 return _InternalSerialize(*this, target, stream);
405 }
406 #else // PROTOBUF_CUSTOM_VTABLE
407 ::size_t ByteSizeLong() const final;
408 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
409 ::uint8_t* PROTOBUF_NONNULL target,
410 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
411 #endif // PROTOBUF_CUSTOM_VTABLE
412 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
413
414 private:
415 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
416 static void SharedDtor(MessageLite& self);
417 void InternalSwap(SolverResourcesProto* PROTOBUF_NONNULL other);
418 private:
419 template <typename T>
420 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
421 static ::absl::string_view FullMessageName() { return "operations_research.math_opt.SolverResourcesProto"; }
422
423 explicit SolverResourcesProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
424 SolverResourcesProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SolverResourcesProto& from);
426 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SolverResourcesProto&& from) noexcept
427 : SolverResourcesProto(arena) {
428 *this = ::std::move(from);
429 }
430 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
431 static void* PROTOBUF_NONNULL PlacementNew_(
432 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
433 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
434 static constexpr auto InternalNewImpl_();
435
436 public:
437 static constexpr auto InternalGenerateClassData_();
438
439 ::google::protobuf::Metadata GetMetadata() const;
440 // nested types ----------------------------------------------------
441
442 // accessors -------------------------------------------------------
443 enum : int {
444 kCpuFieldNumber = 1,
445 kRamFieldNumber = 2,
446 };
447 // optional double cpu = 1;
448 bool has_cpu() const;
449 void clear_cpu() ;
450 double cpu() const;
451 void set_cpu(double value);
452
453 private:
454 double _internal_cpu() const;
455 void _internal_set_cpu(double value);
456
457 public:
458 // optional double ram = 2;
459 bool has_ram() const;
460 void clear_ram() ;
461 double ram() const;
462 void set_ram(double value);
463
464 private:
465 double _internal_ram() const;
466 void _internal_set_ram(double value);
467
468 public:
469 // @@protoc_insertion_point(class_scope:operations_research.math_opt.SolverResourcesProto)
470 private:
471 class _Internal;
472 friend class ::google::protobuf::internal::TcParser;
473 static const ::google::protobuf::internal::TcParseTable<1, 2,
474 0, 0,
475 2>
476 _table_;
477
478 friend class ::google::protobuf::MessageLite;
479 friend class ::google::protobuf::Arena;
480 template <typename T>
481 friend class ::google::protobuf::Arena::InternalHelper;
482 using InternalArenaConstructable_ = void;
483 using DestructorSkippable_ = void;
484 struct Impl_ {
485 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
486 inline explicit Impl_(
487 ::google::protobuf::internal::InternalVisibility visibility,
488 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
489 inline explicit Impl_(
490 ::google::protobuf::internal::InternalVisibility visibility,
491 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
492 const SolverResourcesProto& from_msg);
493 ::google::protobuf::internal::HasBits<1> _has_bits_;
494 ::google::protobuf::internal::CachedSize _cached_size_;
495 double cpu_;
496 double ram_;
497 PROTOBUF_TSAN_DECLARE_MEMBER
498 };
499 union { Impl_ _impl_; };
500 friend struct ::TableStruct_ortools_2fmath_5fopt_2frpc_2eproto;
501};
503OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull SolverResourcesProto_class_data_;
504// -------------------------------------------------------------------
505
506class OR_PROTO_DLL SolveResponse final : public ::google::protobuf::Message
507/* @@protoc_insertion_point(class_definition:operations_research.math_opt.SolveResponse) */ {
508 public:
509 inline SolveResponse() : SolveResponse(nullptr) {}
510 ~SolveResponse() PROTOBUF_FINAL;
511
512#if defined(PROTOBUF_CUSTOM_VTABLE)
513 void operator delete(SolveResponse* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
514 SharedDtor(*msg);
515 ::google::protobuf::internal::SizedDelete(msg, sizeof(SolveResponse));
516 }
517#endif
518
519 template <typename = void>
520 explicit PROTOBUF_CONSTEXPR SolveResponse(::google::protobuf::internal::ConstantInitialized);
521
522 inline SolveResponse(const SolveResponse& from) : SolveResponse(nullptr, from) {}
523 inline SolveResponse(SolveResponse&& from) noexcept
524 : SolveResponse(nullptr, ::std::move(from)) {}
525 inline SolveResponse& operator=(const SolveResponse& from) {
526 CopyFrom(from);
527 return *this;
528 }
529 inline SolveResponse& operator=(SolveResponse&& from) noexcept {
530 if (this == &from) return *this;
531 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
532 InternalSwap(&from);
533 } else {
534 CopyFrom(from);
535 }
536 return *this;
537 }
538
539 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
540 ABSL_ATTRIBUTE_LIFETIME_BOUND {
541 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
542 }
543 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
544 ABSL_ATTRIBUTE_LIFETIME_BOUND {
545 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
546 }
548 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
549 return GetDescriptor();
550 }
551 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
552 return default_instance().GetMetadata().descriptor;
553 }
554 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
555 return default_instance().GetMetadata().reflection;
556 }
557 static const SolveResponse& default_instance() {
558 return *reinterpret_cast<const SolveResponse*>(
560 }
562 kResult = 1,
563 kStatus = 3,
565 };
566 static constexpr int kIndexInFileMessages = 2;
567 friend void swap(SolveResponse& a, SolveResponse& b) { a.Swap(&b); }
568 inline void Swap(SolveResponse* PROTOBUF_NONNULL other) {
569 if (other == this) return;
570 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
571 InternalSwap(other);
572 } else {
573 ::google::protobuf::internal::GenericSwap(this, other);
574 }
575 }
576 void UnsafeArenaSwap(SolveResponse* PROTOBUF_NONNULL other) {
577 if (other == this) return;
578 ABSL_DCHECK(GetArena() == other->GetArena());
579 InternalSwap(other);
581
582 // implements Message ----------------------------------------------
583
584 SolveResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
585 return ::google::protobuf::Message::DefaultConstruct<SolveResponse>(arena);
586 }
587 using ::google::protobuf::Message::CopyFrom;
588 void CopyFrom(const SolveResponse& from);
589 using ::google::protobuf::Message::MergeFrom;
590 void MergeFrom(const SolveResponse& from) { SolveResponse::MergeImpl(*this, from); }
591
592 private:
593 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
594 const ::google::protobuf::MessageLite& from_msg);
595
596 public:
597 bool IsInitialized() const {
598 return true;
599 }
600 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
601 #if defined(PROTOBUF_CUSTOM_VTABLE)
602 private:
603 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
604 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
605 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
606 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
607
608 public:
609 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
610 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
611 ::uint8_t* PROTOBUF_NONNULL target,
612 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
613 return _InternalSerialize(*this, target, stream);
614 }
615 #else // PROTOBUF_CUSTOM_VTABLE
616 ::size_t ByteSizeLong() const final;
617 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
618 ::uint8_t* PROTOBUF_NONNULL target,
619 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
620 #endif // PROTOBUF_CUSTOM_VTABLE
621 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
622
623 private:
624 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
625 static void SharedDtor(MessageLite& self);
626 void InternalSwap(SolveResponse* PROTOBUF_NONNULL other);
627 private:
628 template <typename T>
629 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
630 static ::absl::string_view FullMessageName() { return "operations_research.math_opt.SolveResponse"; }
631
632 explicit SolveResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
633 SolveResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SolveResponse& from);
635 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SolveResponse&& from) noexcept
636 : SolveResponse(arena) {
637 *this = ::std::move(from);
638 }
639 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
640 static void* PROTOBUF_NONNULL PlacementNew_(
641 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
642 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
643 static constexpr auto InternalNewImpl_();
644
645 public:
646 static constexpr auto InternalGenerateClassData_();
647
648 ::google::protobuf::Metadata GetMetadata() const;
649 // nested types ----------------------------------------------------
650
651 // accessors -------------------------------------------------------
652 enum : int {
653 kMessagesFieldNumber = 2,
654 kResultFieldNumber = 1,
655 kStatusFieldNumber = 3,
656 };
657 // repeated string messages = 2;
658 int messages_size() const;
659 private:
660 int _internal_messages_size() const;
661
662 public:
663 void clear_messages() ;
664 const ::std::string& messages(int index) const;
665 ::std::string* PROTOBUF_NONNULL mutable_messages(int index);
666 template <typename Arg_ = const ::std::string&, typename... Args_>
667 void set_messages(int index, Arg_&& value, Args_... args);
668 ::std::string* PROTOBUF_NONNULL add_messages();
669 template <typename Arg_ = const ::std::string&, typename... Args_>
670 void add_messages(Arg_&& value, Args_... args);
671 const ::google::protobuf::RepeatedPtrField<::std::string>& messages() const;
672 ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL mutable_messages();
673
674 private:
675 const ::google::protobuf::RepeatedPtrField<::std::string>& _internal_messages() const;
676 ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL _internal_mutable_messages();
677
678 public:
679 // .operations_research.math_opt.SolveResultProto result = 1;
680 bool has_result() const;
681 private:
682 bool _internal_has_result() const;
683
684 public:
685 void clear_result() ;
686 const ::operations_research::math_opt::SolveResultProto& result() const;
687 [[nodiscard]] ::operations_research::math_opt::SolveResultProto* PROTOBUF_NULLABLE release_result();
692
693 private:
694 const ::operations_research::math_opt::SolveResultProto& _internal_result() const;
695 ::operations_research::math_opt::SolveResultProto* PROTOBUF_NONNULL _internal_mutable_result();
696
697 public:
698 // .operations_research.math_opt.StatusProto status = 3;
699 bool has_status() const;
700 private:
701 bool _internal_has_status() const;
702
703 public:
704 void clear_status() ;
705 const ::operations_research::math_opt::StatusProto& status() const;
706 [[nodiscard]] ::operations_research::math_opt::StatusProto* PROTOBUF_NULLABLE release_status();
711
712 private:
713 const ::operations_research::math_opt::StatusProto& _internal_status() const;
714 ::operations_research::math_opt::StatusProto* PROTOBUF_NONNULL _internal_mutable_status();
715
716 public:
717 void clear_status_or();
719 // @@protoc_insertion_point(class_scope:operations_research.math_opt.SolveResponse)
720 private:
721 class _Internal;
722 void set_has_result();
723 void set_has_status();
724 inline bool has_status_or() const;
725 inline void clear_has_status_or();
726 friend class ::google::protobuf::internal::TcParser;
727 static const ::google::protobuf::internal::TcParseTable<0, 3,
728 2, 59,
729 2>
730 _table_;
731
732 friend class ::google::protobuf::MessageLite;
733 friend class ::google::protobuf::Arena;
734 template <typename T>
735 friend class ::google::protobuf::Arena::InternalHelper;
736 using InternalArenaConstructable_ = void;
737 using DestructorSkippable_ = void;
738 struct Impl_ {
739 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
740 inline explicit Impl_(
741 ::google::protobuf::internal::InternalVisibility visibility,
742 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
743 inline explicit Impl_(
744 ::google::protobuf::internal::InternalVisibility visibility,
745 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
746 const SolveResponse& from_msg);
747 ::google::protobuf::internal::HasBits<1> _has_bits_;
748 ::google::protobuf::internal::CachedSize _cached_size_;
749 ::google::protobuf::RepeatedPtrField<::std::string> messages_;
750 union StatusOrUnion {
751 constexpr StatusOrUnion() : _constinit_{} {}
752 ::google::protobuf::internal::ConstantInitialized _constinit_;
753 ::operations_research::math_opt::SolveResultProto* PROTOBUF_NULLABLE result_;
755 } status_or_;
756 ::uint32_t _oneof_case_[1];
757 PROTOBUF_TSAN_DECLARE_MEMBER
758 };
759 union { Impl_ _impl_; };
760 friend struct ::TableStruct_ortools_2fmath_5fopt_2frpc_2eproto;
761};
762
763OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull SolveResponse_class_data_;
764// -------------------------------------------------------------------
765
766class OR_PROTO_DLL SolveRequest final : public ::google::protobuf::Message
767/* @@protoc_insertion_point(class_definition:operations_research.math_opt.SolveRequest) */ {
768 public:
769 inline SolveRequest() : SolveRequest(nullptr) {}
770 ~SolveRequest() PROTOBUF_FINAL;
772#if defined(PROTOBUF_CUSTOM_VTABLE)
773 void operator delete(SolveRequest* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
774 SharedDtor(*msg);
775 ::google::protobuf::internal::SizedDelete(msg, sizeof(SolveRequest));
776 }
777#endif
778
779 template <typename = void>
780 explicit PROTOBUF_CONSTEXPR SolveRequest(::google::protobuf::internal::ConstantInitialized);
781
782 inline SolveRequest(const SolveRequest& from) : SolveRequest(nullptr, from) {}
783 inline SolveRequest(SolveRequest&& from) noexcept
784 : SolveRequest(nullptr, ::std::move(from)) {}
785 inline SolveRequest& operator=(const SolveRequest& from) {
786 CopyFrom(from);
787 return *this;
789 inline SolveRequest& operator=(SolveRequest&& from) noexcept {
790 if (this == &from) return *this;
791 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
792 InternalSwap(&from);
793 } else {
794 CopyFrom(from);
795 }
796 return *this;
797 }
798
799 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
800 ABSL_ATTRIBUTE_LIFETIME_BOUND {
801 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
802 }
803 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
804 ABSL_ATTRIBUTE_LIFETIME_BOUND {
805 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
806 }
807
808 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
809 return GetDescriptor();
810 }
811 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
812 return default_instance().GetMetadata().descriptor;
814 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
815 return default_instance().GetMetadata().reflection;
817 static const SolveRequest& default_instance() {
818 return *reinterpret_cast<const SolveRequest*>(
820 }
821 static constexpr int kIndexInFileMessages = 1;
822 friend void swap(SolveRequest& a, SolveRequest& b) { a.Swap(&b); }
823 inline void Swap(SolveRequest* PROTOBUF_NONNULL other) {
824 if (other == this) return;
825 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
826 InternalSwap(other);
827 } else {
828 ::google::protobuf::internal::GenericSwap(this, other);
829 }
830 }
831 void UnsafeArenaSwap(SolveRequest* PROTOBUF_NONNULL other) {
832 if (other == this) return;
833 ABSL_DCHECK(GetArena() == other->GetArena());
834 InternalSwap(other);
835 }
837 // implements Message ----------------------------------------------
838
839 SolveRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
840 return ::google::protobuf::Message::DefaultConstruct<SolveRequest>(arena);
841 }
842 using ::google::protobuf::Message::CopyFrom;
843 void CopyFrom(const SolveRequest& from);
844 using ::google::protobuf::Message::MergeFrom;
845 void MergeFrom(const SolveRequest& from) { SolveRequest::MergeImpl(*this, from); }
846
847 private:
848 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
849 const ::google::protobuf::MessageLite& from_msg);
851 public:
852 bool IsInitialized() const {
853 return true;
854 }
855 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
856 #if defined(PROTOBUF_CUSTOM_VTABLE)
857 private:
858 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
859 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
860 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
861 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
862
863 public:
864 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
865 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
866 ::uint8_t* PROTOBUF_NONNULL target,
867 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
868 return _InternalSerialize(*this, target, stream);
869 }
870 #else // PROTOBUF_CUSTOM_VTABLE
871 ::size_t ByteSizeLong() const final;
872 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
873 ::uint8_t* PROTOBUF_NONNULL target,
874 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
875 #endif // PROTOBUF_CUSTOM_VTABLE
876 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
877
878 private:
879 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
880 static void SharedDtor(MessageLite& self);
881 void InternalSwap(SolveRequest* PROTOBUF_NONNULL other);
882 private:
883 template <typename T>
884 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
885 static ::absl::string_view FullMessageName() { return "operations_research.math_opt.SolveRequest"; }
886
887 explicit SolveRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
888 SolveRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SolveRequest& from);
890 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SolveRequest&& from) noexcept
891 : SolveRequest(arena) {
892 *this = ::std::move(from);
893 }
894 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
895 static void* PROTOBUF_NONNULL PlacementNew_(
896 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
897 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
898 static constexpr auto InternalNewImpl_();
899
900 public:
901 static constexpr auto InternalGenerateClassData_();
902
903 ::google::protobuf::Metadata GetMetadata() const;
904 // nested types ----------------------------------------------------
905
906 // accessors -------------------------------------------------------
907 enum : int {
908 kModelFieldNumber = 2,
909 kInitializerFieldNumber = 3,
910 kParametersFieldNumber = 4,
911 kModelParametersFieldNumber = 5,
912 kResourcesFieldNumber = 6,
914 };
915 // .operations_research.math_opt.ModelProto model = 2;
916 bool has_model() const;
917 void clear_model() ;
918 const ::operations_research::math_opt::ModelProto& model() const;
919 [[nodiscard]] ::operations_research::math_opt::ModelProto* PROTOBUF_NULLABLE release_model();
924
925 private:
926 const ::operations_research::math_opt::ModelProto& _internal_model() const;
927 ::operations_research::math_opt::ModelProto* PROTOBUF_NONNULL _internal_mutable_model();
928
929 public:
930 // .operations_research.math_opt.SolverInitializerProto initializer = 3;
931 bool has_initializer() const;
932 void clear_initializer() ;
933 const ::operations_research::math_opt::SolverInitializerProto& initializer() const;
939
940 private:
941 const ::operations_research::math_opt::SolverInitializerProto& _internal_initializer() const;
942 ::operations_research::math_opt::SolverInitializerProto* PROTOBUF_NONNULL _internal_mutable_initializer();
943
944 public:
945 // .operations_research.math_opt.SolveParametersProto parameters = 4;
946 bool has_parameters() const;
947 void clear_parameters() ;
948 const ::operations_research::math_opt::SolveParametersProto& parameters() const;
954
955 private:
956 const ::operations_research::math_opt::SolveParametersProto& _internal_parameters() const;
957 ::operations_research::math_opt::SolveParametersProto* PROTOBUF_NONNULL _internal_mutable_parameters();
958
959 public:
960 // .operations_research.math_opt.ModelSolveParametersProto model_parameters = 5;
961 bool has_model_parameters() const;
963 const ::operations_research::math_opt::ModelSolveParametersProto& model_parameters() const;
969
970 private:
971 const ::operations_research::math_opt::ModelSolveParametersProto& _internal_model_parameters() const;
972 ::operations_research::math_opt::ModelSolveParametersProto* PROTOBUF_NONNULL _internal_mutable_model_parameters();
973
974 public:
975 // .operations_research.math_opt.SolverResourcesProto resources = 6;
976 bool has_resources() const;
977 void clear_resources() ;
978 const ::operations_research::math_opt::SolverResourcesProto& resources() const;
984
985 private:
986 const ::operations_research::math_opt::SolverResourcesProto& _internal_resources() const;
987 ::operations_research::math_opt::SolverResourcesProto* PROTOBUF_NONNULL _internal_mutable_resources();
988
989 public:
990 // .operations_research.math_opt.SolverTypeProto solver_type = 1;
991 void clear_solver_type() ;
994
995 private:
996 ::operations_research::math_opt::SolverTypeProto _internal_solver_type() const;
997 void _internal_set_solver_type(::operations_research::math_opt::SolverTypeProto value);
998
999 public:
1000 // @@protoc_insertion_point(class_scope:operations_research.math_opt.SolveRequest)
1001 private:
1002 class _Internal;
1003 friend class ::google::protobuf::internal::TcParser;
1004 static const ::google::protobuf::internal::TcParseTable<3, 6,
1005 5, 0,
1006 2>
1007 _table_;
1009 friend class ::google::protobuf::MessageLite;
1010 friend class ::google::protobuf::Arena;
1011 template <typename T>
1012 friend class ::google::protobuf::Arena::InternalHelper;
1013 using InternalArenaConstructable_ = void;
1014 using DestructorSkippable_ = void;
1015 struct Impl_ {
1016 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
1017 inline explicit Impl_(
1018 ::google::protobuf::internal::InternalVisibility visibility,
1019 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1020 inline explicit Impl_(
1021 ::google::protobuf::internal::InternalVisibility visibility,
1022 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
1023 const SolveRequest& from_msg);
1024 ::google::protobuf::internal::HasBits<1> _has_bits_;
1025 ::google::protobuf::internal::CachedSize _cached_size_;
1026 ::operations_research::math_opt::ModelProto* PROTOBUF_NULLABLE model_;
1027 ::operations_research::math_opt::SolverInitializerProto* PROTOBUF_NULLABLE initializer_;
1028 ::operations_research::math_opt::SolveParametersProto* PROTOBUF_NULLABLE parameters_;
1029 ::operations_research::math_opt::ModelSolveParametersProto* PROTOBUF_NULLABLE model_parameters_;
1030 ::operations_research::math_opt::SolverResourcesProto* PROTOBUF_NULLABLE resources_;
1031 int solver_type_;
1032 PROTOBUF_TSAN_DECLARE_MEMBER
1033 };
1034 union { Impl_ _impl_; };
1035 friend struct ::TableStruct_ortools_2fmath_5fopt_2frpc_2eproto;
1036};
1037
1038OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull SolveRequest_class_data_;
1040// ===================================================================
1041
1042
1043
1044
1045// ===================================================================
1046
1047
1048#ifdef __GNUC__
1049#pragma GCC diagnostic push
1050#pragma GCC diagnostic ignored "-Wstrict-aliasing"
1051#endif // __GNUC__
1052// -------------------------------------------------------------------
1053
1054// SolverResourcesProto
1055
1056// optional double cpu = 1;
1057inline bool SolverResourcesProto::has_cpu() const {
1058 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U);
1059 return value;
1060}
1061inline void SolverResourcesProto::clear_cpu() {
1062 ::google::protobuf::internal::TSanWrite(&_impl_);
1063 _impl_.cpu_ = 0;
1064 ClearHasBit(_impl_._has_bits_[0],
1065 0x00000001U);
1066}
1067inline double SolverResourcesProto::cpu() const {
1068 // @@protoc_insertion_point(field_get:operations_research.math_opt.SolverResourcesProto.cpu)
1069 return _internal_cpu();
1070}
1071inline void SolverResourcesProto::set_cpu(double value) {
1072 _internal_set_cpu(value);
1073 SetHasBit(_impl_._has_bits_[0], 0x00000001U);
1074 // @@protoc_insertion_point(field_set:operations_research.math_opt.SolverResourcesProto.cpu)
1076inline double SolverResourcesProto::_internal_cpu() const {
1077 ::google::protobuf::internal::TSanRead(&_impl_);
1078 return _impl_.cpu_;
1080inline void SolverResourcesProto::_internal_set_cpu(double value) {
1081 ::google::protobuf::internal::TSanWrite(&_impl_);
1082 _impl_.cpu_ = value;
1083}
1084
1085// optional double ram = 2;
1086inline bool SolverResourcesProto::has_ram() const {
1087 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U);
1088 return value;
1089}
1090inline void SolverResourcesProto::clear_ram() {
1091 ::google::protobuf::internal::TSanWrite(&_impl_);
1092 _impl_.ram_ = 0;
1093 ClearHasBit(_impl_._has_bits_[0],
1094 0x00000002U);
1095}
1096inline double SolverResourcesProto::ram() const {
1097 // @@protoc_insertion_point(field_get:operations_research.math_opt.SolverResourcesProto.ram)
1098 return _internal_ram();
1099}
1100inline void SolverResourcesProto::set_ram(double value) {
1101 _internal_set_ram(value);
1102 SetHasBit(_impl_._has_bits_[0], 0x00000002U);
1103 // @@protoc_insertion_point(field_set:operations_research.math_opt.SolverResourcesProto.ram)
1105inline double SolverResourcesProto::_internal_ram() const {
1106 ::google::protobuf::internal::TSanRead(&_impl_);
1107 return _impl_.ram_;
1109inline void SolverResourcesProto::_internal_set_ram(double value) {
1110 ::google::protobuf::internal::TSanWrite(&_impl_);
1111 _impl_.ram_ = value;
1112}
1113
1114// -------------------------------------------------------------------
1115
1116// SolveRequest
1117
1118// .operations_research.math_opt.SolverTypeProto solver_type = 1;
1119inline void SolveRequest::clear_solver_type() {
1120 ::google::protobuf::internal::TSanWrite(&_impl_);
1121 _impl_.solver_type_ = 0;
1122 ClearHasBit(_impl_._has_bits_[0],
1123 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();
1130 _internal_set_solver_type(value);
1131 SetHasBit(_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 = CheckHasBit(_impl_._has_bits_[0], 0x00000001U);
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 SetHasBit(_impl_._has_bits_[0], 0x00000001U);
1167 } else {
1168 ClearHasBit(_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 ClearHasBit(_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 ClearHasBit(_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 SetHasBit(_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 SetHasBit(_impl_._has_bits_[0], 0x00000001U);
1228 } else {
1229 ClearHasBit(_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 = CheckHasBit(_impl_._has_bits_[0], 0x00000010U);
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 ClearHasBit(_impl_._has_bits_[0],
1246 0x00000010U);
1247}
1248inline const ::operations_research::math_opt::SolverResourcesProto& SolveRequest::_internal_resources() const {
1249 ::google::protobuf::internal::TSanRead(&_impl_);
1250 const ::operations_research::math_opt::SolverResourcesProto* p = _impl_.resources_;
1252}
1253inline const ::operations_research::math_opt::SolverResourcesProto& SolveRequest::resources() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
1254 // @@protoc_insertion_point(field_get:operations_research.math_opt.SolveRequest.resources)
1255 return _internal_resources();
1256}
1259 ::google::protobuf::internal::TSanWrite(&_impl_);
1260 if (GetArena() == nullptr) {
1261 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.resources_);
1263 _impl_.resources_ = reinterpret_cast<::operations_research::math_opt::SolverResourcesProto*>(value);
1264 if (value != nullptr) {
1265 SetHasBit(_impl_._has_bits_[0], 0x00000010U);
1266 } else {
1267 ClearHasBit(_impl_._has_bits_[0], 0x00000010U);
1268 }
1269 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.math_opt.SolveRequest.resources)
1270}
1271inline ::operations_research::math_opt::SolverResourcesProto* PROTOBUF_NULLABLE SolveRequest::release_resources() {
1272 ::google::protobuf::internal::TSanWrite(&_impl_);
1273
1274 ClearHasBit(_impl_._has_bits_[0], 0x00000010U);
1276 _impl_.resources_ = nullptr;
1277 if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
1278 auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
1279 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
1280 if (GetArena() == nullptr) {
1281 delete old;
1282 }
1283 } else {
1284 if (GetArena() != nullptr) {
1285 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
1286 }
1287 }
1288 return released;
1289}
1290inline ::operations_research::math_opt::SolverResourcesProto* PROTOBUF_NULLABLE SolveRequest::unsafe_arena_release_resources() {
1291 ::google::protobuf::internal::TSanWrite(&_impl_);
1292 // @@protoc_insertion_point(field_release:operations_research.math_opt.SolveRequest.resources)
1293
1294 ClearHasBit(_impl_._has_bits_[0], 0x00000010U);
1295 ::operations_research::math_opt::SolverResourcesProto* temp = _impl_.resources_;
1296 _impl_.resources_ = nullptr;
1297 return temp;
1298}
1299inline ::operations_research::math_opt::SolverResourcesProto* PROTOBUF_NONNULL SolveRequest::_internal_mutable_resources() {
1300 ::google::protobuf::internal::TSanWrite(&_impl_);
1301 if (_impl_.resources_ == nullptr) {
1302 auto* p = ::google::protobuf::Message::DefaultConstruct<::operations_research::math_opt::SolverResourcesProto>(GetArena());
1303 _impl_.resources_ = reinterpret_cast<::operations_research::math_opt::SolverResourcesProto*>(p);
1304 }
1305 return _impl_.resources_;
1306}
1307inline ::operations_research::math_opt::SolverResourcesProto* PROTOBUF_NONNULL SolveRequest::mutable_resources()
1308 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1309 SetHasBit(_impl_._has_bits_[0], 0x00000010U);
1310 ::operations_research::math_opt::SolverResourcesProto* _msg = _internal_mutable_resources();
1311 // @@protoc_insertion_point(field_mutable:operations_research.math_opt.SolveRequest.resources)
1312 return _msg;
1313}
1315 ::google::protobuf::Arena* message_arena = GetArena();
1316 ::google::protobuf::internal::TSanWrite(&_impl_);
1317 if (message_arena == nullptr) {
1318 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.resources_);
1319 }
1320
1321 if (value != nullptr) {
1322 ::google::protobuf::Arena* submessage_arena = value->GetArena();
1323 if (message_arena != submessage_arena) {
1324 value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
1325 }
1326 SetHasBit(_impl_._has_bits_[0], 0x00000010U);
1327 } else {
1328 ClearHasBit(_impl_._has_bits_[0], 0x00000010U);
1329 }
1330
1331 _impl_.resources_ = reinterpret_cast<::operations_research::math_opt::SolverResourcesProto*>(value);
1332 // @@protoc_insertion_point(field_set_allocated:operations_research.math_opt.SolveRequest.resources)
1333}
1334
1335// .operations_research.math_opt.SolverInitializerProto initializer = 3;
1336inline bool SolveRequest::has_initializer() const {
1337 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U);
1338 PROTOBUF_ASSUME(!value || _impl_.initializer_ != nullptr);
1339 return value;
1340}
1341inline const ::operations_research::math_opt::SolverInitializerProto& SolveRequest::_internal_initializer() const {
1342 ::google::protobuf::internal::TSanRead(&_impl_);
1343 const ::operations_research::math_opt::SolverInitializerProto* p = _impl_.initializer_;
1344 return p != nullptr ? *p : reinterpret_cast<const ::operations_research::math_opt::SolverInitializerProto&>(::operations_research::math_opt::_SolverInitializerProto_default_instance_);
1346inline const ::operations_research::math_opt::SolverInitializerProto& SolveRequest::initializer() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
1347 // @@protoc_insertion_point(field_get:operations_research.math_opt.SolveRequest.initializer)
1348 return _internal_initializer();
1349}
1352 ::google::protobuf::internal::TSanWrite(&_impl_);
1353 if (GetArena() == nullptr) {
1354 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.initializer_);
1356 _impl_.initializer_ = reinterpret_cast<::operations_research::math_opt::SolverInitializerProto*>(value);
1357 if (value != nullptr) {
1358 SetHasBit(_impl_._has_bits_[0], 0x00000002U);
1359 } else {
1360 ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
1361 }
1362 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.math_opt.SolveRequest.initializer)
1363}
1364inline ::operations_research::math_opt::SolverInitializerProto* PROTOBUF_NULLABLE SolveRequest::release_initializer() {
1365 ::google::protobuf::internal::TSanWrite(&_impl_);
1366
1367 ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
1369 _impl_.initializer_ = nullptr;
1370 if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
1371 auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
1372 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
1373 if (GetArena() == nullptr) {
1374 delete old;
1375 }
1376 } else {
1377 if (GetArena() != nullptr) {
1378 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
1379 }
1380 }
1381 return released;
1382}
1383inline ::operations_research::math_opt::SolverInitializerProto* PROTOBUF_NULLABLE SolveRequest::unsafe_arena_release_initializer() {
1384 ::google::protobuf::internal::TSanWrite(&_impl_);
1385 // @@protoc_insertion_point(field_release:operations_research.math_opt.SolveRequest.initializer)
1386
1387 ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
1388 ::operations_research::math_opt::SolverInitializerProto* temp = _impl_.initializer_;
1389 _impl_.initializer_ = nullptr;
1390 return temp;
1391}
1392inline ::operations_research::math_opt::SolverInitializerProto* PROTOBUF_NONNULL SolveRequest::_internal_mutable_initializer() {
1393 ::google::protobuf::internal::TSanWrite(&_impl_);
1394 if (_impl_.initializer_ == nullptr) {
1395 auto* p = ::google::protobuf::Message::DefaultConstruct<::operations_research::math_opt::SolverInitializerProto>(GetArena());
1396 _impl_.initializer_ = reinterpret_cast<::operations_research::math_opt::SolverInitializerProto*>(p);
1397 }
1398 return _impl_.initializer_;
1399}
1400inline ::operations_research::math_opt::SolverInitializerProto* PROTOBUF_NONNULL SolveRequest::mutable_initializer()
1401 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1402 SetHasBit(_impl_._has_bits_[0], 0x00000002U);
1403 ::operations_research::math_opt::SolverInitializerProto* _msg = _internal_mutable_initializer();
1404 // @@protoc_insertion_point(field_mutable:operations_research.math_opt.SolveRequest.initializer)
1405 return _msg;
1406}
1408 ::google::protobuf::Arena* message_arena = GetArena();
1409 ::google::protobuf::internal::TSanWrite(&_impl_);
1410 if (message_arena == nullptr) {
1411 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.initializer_);
1412 }
1413
1414 if (value != nullptr) {
1415 ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena();
1416 if (message_arena != submessage_arena) {
1417 value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
1418 }
1419 SetHasBit(_impl_._has_bits_[0], 0x00000002U);
1420 } else {
1421 ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
1422 }
1423
1424 _impl_.initializer_ = reinterpret_cast<::operations_research::math_opt::SolverInitializerProto*>(value);
1425 // @@protoc_insertion_point(field_set_allocated:operations_research.math_opt.SolveRequest.initializer)
1426}
1427
1428// .operations_research.math_opt.SolveParametersProto parameters = 4;
1429inline bool SolveRequest::has_parameters() const {
1430 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U);
1431 PROTOBUF_ASSUME(!value || _impl_.parameters_ != nullptr);
1432 return value;
1433}
1434inline const ::operations_research::math_opt::SolveParametersProto& SolveRequest::_internal_parameters() const {
1435 ::google::protobuf::internal::TSanRead(&_impl_);
1436 const ::operations_research::math_opt::SolveParametersProto* p = _impl_.parameters_;
1437 return p != nullptr ? *p : reinterpret_cast<const ::operations_research::math_opt::SolveParametersProto&>(::operations_research::math_opt::_SolveParametersProto_default_instance_);
1439inline const ::operations_research::math_opt::SolveParametersProto& SolveRequest::parameters() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
1440 // @@protoc_insertion_point(field_get:operations_research.math_opt.SolveRequest.parameters)
1441 return _internal_parameters();
1442}
1445 ::google::protobuf::internal::TSanWrite(&_impl_);
1446 if (GetArena() == nullptr) {
1447 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.parameters_);
1449 _impl_.parameters_ = reinterpret_cast<::operations_research::math_opt::SolveParametersProto*>(value);
1450 if (value != nullptr) {
1451 SetHasBit(_impl_._has_bits_[0], 0x00000004U);
1452 } else {
1453 ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
1454 }
1455 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.math_opt.SolveRequest.parameters)
1456}
1457inline ::operations_research::math_opt::SolveParametersProto* PROTOBUF_NULLABLE SolveRequest::release_parameters() {
1458 ::google::protobuf::internal::TSanWrite(&_impl_);
1459
1460 ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
1462 _impl_.parameters_ = nullptr;
1463 if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
1464 auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
1465 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
1466 if (GetArena() == nullptr) {
1467 delete old;
1468 }
1469 } else {
1470 if (GetArena() != nullptr) {
1471 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
1472 }
1473 }
1474 return released;
1475}
1476inline ::operations_research::math_opt::SolveParametersProto* PROTOBUF_NULLABLE SolveRequest::unsafe_arena_release_parameters() {
1477 ::google::protobuf::internal::TSanWrite(&_impl_);
1478 // @@protoc_insertion_point(field_release:operations_research.math_opt.SolveRequest.parameters)
1479
1480 ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
1481 ::operations_research::math_opt::SolveParametersProto* temp = _impl_.parameters_;
1482 _impl_.parameters_ = nullptr;
1483 return temp;
1484}
1485inline ::operations_research::math_opt::SolveParametersProto* PROTOBUF_NONNULL SolveRequest::_internal_mutable_parameters() {
1486 ::google::protobuf::internal::TSanWrite(&_impl_);
1487 if (_impl_.parameters_ == nullptr) {
1488 auto* p = ::google::protobuf::Message::DefaultConstruct<::operations_research::math_opt::SolveParametersProto>(GetArena());
1489 _impl_.parameters_ = reinterpret_cast<::operations_research::math_opt::SolveParametersProto*>(p);
1490 }
1491 return _impl_.parameters_;
1492}
1493inline ::operations_research::math_opt::SolveParametersProto* PROTOBUF_NONNULL SolveRequest::mutable_parameters()
1494 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1495 SetHasBit(_impl_._has_bits_[0], 0x00000004U);
1496 ::operations_research::math_opt::SolveParametersProto* _msg = _internal_mutable_parameters();
1497 // @@protoc_insertion_point(field_mutable:operations_research.math_opt.SolveRequest.parameters)
1498 return _msg;
1499}
1501 ::google::protobuf::Arena* message_arena = GetArena();
1502 ::google::protobuf::internal::TSanWrite(&_impl_);
1503 if (message_arena == nullptr) {
1504 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.parameters_);
1505 }
1506
1507 if (value != nullptr) {
1508 ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena();
1509 if (message_arena != submessage_arena) {
1510 value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
1511 }
1512 SetHasBit(_impl_._has_bits_[0], 0x00000004U);
1513 } else {
1514 ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
1515 }
1516
1517 _impl_.parameters_ = reinterpret_cast<::operations_research::math_opt::SolveParametersProto*>(value);
1518 // @@protoc_insertion_point(field_set_allocated:operations_research.math_opt.SolveRequest.parameters)
1519}
1520
1521// .operations_research.math_opt.ModelSolveParametersProto model_parameters = 5;
1522inline bool SolveRequest::has_model_parameters() const {
1523 bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U);
1524 PROTOBUF_ASSUME(!value || _impl_.model_parameters_ != nullptr);
1525 return value;
1526}
1527inline const ::operations_research::math_opt::ModelSolveParametersProto& SolveRequest::_internal_model_parameters() const {
1528 ::google::protobuf::internal::TSanRead(&_impl_);
1529 const ::operations_research::math_opt::ModelSolveParametersProto* p = _impl_.model_parameters_;
1530 return p != nullptr ? *p : reinterpret_cast<const ::operations_research::math_opt::ModelSolveParametersProto&>(::operations_research::math_opt::_ModelSolveParametersProto_default_instance_);
1532inline const ::operations_research::math_opt::ModelSolveParametersProto& SolveRequest::model_parameters() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
1533 // @@protoc_insertion_point(field_get:operations_research.math_opt.SolveRequest.model_parameters)
1534 return _internal_model_parameters();
1535}
1538 ::google::protobuf::internal::TSanWrite(&_impl_);
1539 if (GetArena() == nullptr) {
1540 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.model_parameters_);
1542 _impl_.model_parameters_ = reinterpret_cast<::operations_research::math_opt::ModelSolveParametersProto*>(value);
1543 if (value != nullptr) {
1544 SetHasBit(_impl_._has_bits_[0], 0x00000008U);
1545 } else {
1546 ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
1547 }
1548 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.math_opt.SolveRequest.model_parameters)
1549}
1550inline ::operations_research::math_opt::ModelSolveParametersProto* PROTOBUF_NULLABLE SolveRequest::release_model_parameters() {
1551 ::google::protobuf::internal::TSanWrite(&_impl_);
1552
1553 ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
1555 _impl_.model_parameters_ = nullptr;
1556 if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
1557 auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
1558 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
1559 if (GetArena() == nullptr) {
1560 delete old;
1561 }
1562 } else {
1563 if (GetArena() != nullptr) {
1564 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
1565 }
1566 }
1567 return released;
1568}
1569inline ::operations_research::math_opt::ModelSolveParametersProto* PROTOBUF_NULLABLE SolveRequest::unsafe_arena_release_model_parameters() {
1570 ::google::protobuf::internal::TSanWrite(&_impl_);
1571 // @@protoc_insertion_point(field_release:operations_research.math_opt.SolveRequest.model_parameters)
1572
1573 ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
1574 ::operations_research::math_opt::ModelSolveParametersProto* temp = _impl_.model_parameters_;
1575 _impl_.model_parameters_ = nullptr;
1576 return temp;
1577}
1578inline ::operations_research::math_opt::ModelSolveParametersProto* PROTOBUF_NONNULL SolveRequest::_internal_mutable_model_parameters() {
1579 ::google::protobuf::internal::TSanWrite(&_impl_);
1580 if (_impl_.model_parameters_ == nullptr) {
1581 auto* p = ::google::protobuf::Message::DefaultConstruct<::operations_research::math_opt::ModelSolveParametersProto>(GetArena());
1582 _impl_.model_parameters_ = reinterpret_cast<::operations_research::math_opt::ModelSolveParametersProto*>(p);
1583 }
1584 return _impl_.model_parameters_;
1585}
1586inline ::operations_research::math_opt::ModelSolveParametersProto* PROTOBUF_NONNULL SolveRequest::mutable_model_parameters()
1587 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1588 SetHasBit(_impl_._has_bits_[0], 0x00000008U);
1589 ::operations_research::math_opt::ModelSolveParametersProto* _msg = _internal_mutable_model_parameters();
1590 // @@protoc_insertion_point(field_mutable:operations_research.math_opt.SolveRequest.model_parameters)
1591 return _msg;
1592}
1594 ::google::protobuf::Arena* message_arena = GetArena();
1595 ::google::protobuf::internal::TSanWrite(&_impl_);
1596 if (message_arena == nullptr) {
1597 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.model_parameters_);
1598 }
1599
1600 if (value != nullptr) {
1601 ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena();
1602 if (message_arena != submessage_arena) {
1603 value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
1604 }
1605 SetHasBit(_impl_._has_bits_[0], 0x00000008U);
1606 } else {
1607 ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
1608 }
1609
1610 _impl_.model_parameters_ = reinterpret_cast<::operations_research::math_opt::ModelSolveParametersProto*>(value);
1611 // @@protoc_insertion_point(field_set_allocated:operations_research.math_opt.SolveRequest.model_parameters)
1612}
1613
1614// -------------------------------------------------------------------
1615
1616// SolveResponse
1617
1618// .operations_research.math_opt.SolveResultProto result = 1;
1619inline bool SolveResponse::has_result() const {
1620 return status_or_case() == kResult;
1621}
1622inline bool SolveResponse::_internal_has_result() const {
1623 return status_or_case() == kResult;
1624}
1625inline void SolveResponse::set_has_result() {
1626 _impl_._oneof_case_[0] = kResult;
1627}
1628inline ::operations_research::math_opt::SolveResultProto* PROTOBUF_NULLABLE SolveResponse::release_result() {
1629 // @@protoc_insertion_point(field_release:operations_research.math_opt.SolveResponse.result)
1630 if (status_or_case() == kResult) {
1631 clear_has_status_or();
1632 auto* temp = _impl_.status_or_.result_;
1633 if (GetArena() != nullptr) {
1634 temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
1635 }
1636 _impl_.status_or_.result_ = nullptr;
1637 return temp;
1638 } else {
1639 return nullptr;
1640 }
1641}
1642inline const ::operations_research::math_opt::SolveResultProto& SolveResponse::_internal_result() const {
1643 return status_or_case() == kResult ? static_cast<const ::operations_research::math_opt::SolveResultProto&>(*_impl_.status_or_.result_)
1644 : reinterpret_cast<const ::operations_research::math_opt::SolveResultProto&>(::operations_research::math_opt::_SolveResultProto_default_instance_);
1645}
1646inline const ::operations_research::math_opt::SolveResultProto& SolveResponse::result() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
1647 // @@protoc_insertion_point(field_get:operations_research.math_opt.SolveResponse.result)
1648 return _internal_result();
1649}
1650inline ::operations_research::math_opt::SolveResultProto* PROTOBUF_NULLABLE SolveResponse::unsafe_arena_release_result() {
1651 // @@protoc_insertion_point(field_unsafe_arena_release:operations_research.math_opt.SolveResponse.result)
1652 if (status_or_case() == kResult) {
1653 clear_has_status_or();
1654 auto* temp = _impl_.status_or_.result_;
1655 _impl_.status_or_.result_ = nullptr;
1656 return temp;
1657 } else {
1658 return nullptr;
1659 }
1662 ::operations_research::math_opt::SolveResultProto* PROTOBUF_NULLABLE value) {
1663 // We rely on the oneof clear method to free the earlier contents
1664 // of this oneof. We can directly use the pointer we're given to
1665 // set the new value.
1667 if (value) {
1668 set_has_result();
1669 _impl_.status_or_.result_ = value;
1670 }
1671 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.math_opt.SolveResponse.result)
1672}
1673inline ::operations_research::math_opt::SolveResultProto* PROTOBUF_NONNULL SolveResponse::_internal_mutable_result() {
1674 if (status_or_case() != kResult) {
1676 set_has_result();
1677 _impl_.status_or_.result_ =
1678 ::google::protobuf::Message::DefaultConstruct<::operations_research::math_opt::SolveResultProto>(GetArena());
1679 }
1680 return _impl_.status_or_.result_;
1681}
1682inline ::operations_research::math_opt::SolveResultProto* PROTOBUF_NONNULL SolveResponse::mutable_result()
1683 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1684 ::operations_research::math_opt::SolveResultProto* _msg = _internal_mutable_result();
1685 // @@protoc_insertion_point(field_mutable:operations_research.math_opt.SolveResponse.result)
1686 return _msg;
1687}
1688
1689// .operations_research.math_opt.StatusProto status = 3;
1690inline bool SolveResponse::has_status() const {
1691 return status_or_case() == kStatus;
1693inline bool SolveResponse::_internal_has_status() const {
1694 return status_or_case() == kStatus;
1695}
1696inline void SolveResponse::set_has_status() {
1697 _impl_._oneof_case_[0] = kStatus;
1698}
1699inline void SolveResponse::clear_status() {
1700 ::google::protobuf::internal::TSanWrite(&_impl_);
1701 if (status_or_case() == kStatus) {
1702 if (GetArena() == nullptr) {
1703 delete _impl_.status_or_.status_;
1704 } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
1705 ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.status_or_.status_);
1706 }
1707 clear_has_status_or();
1708 }
1710inline ::operations_research::math_opt::StatusProto* PROTOBUF_NULLABLE SolveResponse::release_status() {
1711 // @@protoc_insertion_point(field_release:operations_research.math_opt.SolveResponse.status)
1712 if (status_or_case() == kStatus) {
1713 clear_has_status_or();
1714 auto* temp = _impl_.status_or_.status_;
1715 if (GetArena() != nullptr) {
1716 temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
1717 }
1718 _impl_.status_or_.status_ = nullptr;
1719 return temp;
1720 } else {
1721 return nullptr;
1722 }
1723}
1724inline const ::operations_research::math_opt::StatusProto& SolveResponse::_internal_status() const {
1725 return status_or_case() == kStatus ? static_cast<const ::operations_research::math_opt::StatusProto&>(*_impl_.status_or_.status_)
1726 : reinterpret_cast<const ::operations_research::math_opt::StatusProto&>(::operations_research::math_opt::_StatusProto_default_instance_);
1727}
1728inline const ::operations_research::math_opt::StatusProto& SolveResponse::status() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
1729 // @@protoc_insertion_point(field_get:operations_research.math_opt.SolveResponse.status)
1730 return _internal_status();
1731}
1732inline ::operations_research::math_opt::StatusProto* PROTOBUF_NULLABLE SolveResponse::unsafe_arena_release_status() {
1733 // @@protoc_insertion_point(field_unsafe_arena_release:operations_research.math_opt.SolveResponse.status)
1734 if (status_or_case() == kStatus) {
1735 clear_has_status_or();
1736 auto* temp = _impl_.status_or_.status_;
1737 _impl_.status_or_.status_ = nullptr;
1738 return temp;
1739 } else {
1740 return nullptr;
1741 }
1744 ::operations_research::math_opt::StatusProto* PROTOBUF_NULLABLE value) {
1745 // We rely on the oneof clear method to free the earlier contents
1746 // of this oneof. We can directly use the pointer we're given to
1747 // set the new value.
1749 if (value) {
1750 set_has_status();
1751 _impl_.status_or_.status_ = value;
1752 }
1753 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.math_opt.SolveResponse.status)
1754}
1755inline ::operations_research::math_opt::StatusProto* PROTOBUF_NONNULL SolveResponse::_internal_mutable_status() {
1756 if (status_or_case() != kStatus) {
1758 set_has_status();
1759 _impl_.status_or_.status_ =
1760 ::google::protobuf::Message::DefaultConstruct<::operations_research::math_opt::StatusProto>(GetArena());
1761 }
1762 return _impl_.status_or_.status_;
1763}
1764inline ::operations_research::math_opt::StatusProto* PROTOBUF_NONNULL SolveResponse::mutable_status()
1765 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1766 ::operations_research::math_opt::StatusProto* _msg = _internal_mutable_status();
1767 // @@protoc_insertion_point(field_mutable:operations_research.math_opt.SolveResponse.status)
1768 return _msg;
1769}
1770
1771// repeated string messages = 2;
1772inline int SolveResponse::_internal_messages_size() const {
1773 return _internal_messages().size();
1775inline int SolveResponse::messages_size() const {
1776 return _internal_messages_size();
1777}
1778inline void SolveResponse::clear_messages() {
1779 ::google::protobuf::internal::TSanWrite(&_impl_);
1780 _impl_.messages_.Clear();
1781 ClearHasBitForRepeated(_impl_._has_bits_[0],
1782 0x00000001U);
1783}
1784inline ::std::string* PROTOBUF_NONNULL SolveResponse::add_messages()
1785 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1786 ::google::protobuf::internal::TSanWrite(&_impl_);
1787 ::std::string* _s =
1788 _internal_mutable_messages()->InternalAddWithArena(
1789 ::google::protobuf::MessageLite::internal_visibility(), GetArena());
1790 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U);
1791 // @@protoc_insertion_point(field_add_mutable:operations_research.math_opt.SolveResponse.messages)
1792 return _s;
1793}
1794inline const ::std::string& SolveResponse::messages(int index) const
1795 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1796 // @@protoc_insertion_point(field_get:operations_research.math_opt.SolveResponse.messages)
1797 return _internal_messages().Get(index);
1798}
1799inline ::std::string* PROTOBUF_NONNULL SolveResponse::mutable_messages(int index)
1800 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1801 // @@protoc_insertion_point(field_mutable:operations_research.math_opt.SolveResponse.messages)
1802 return _internal_mutable_messages()->Mutable(index);
1803}
1804template <typename Arg_, typename... Args_>
1805inline void SolveResponse::set_messages(int index, Arg_&& value, Args_... args) {
1806 ::google::protobuf::internal::AssignToString(*_internal_mutable_messages()->Mutable(index), ::std::forward<Arg_>(value),
1807 args... );
1808 // @@protoc_insertion_point(field_set:operations_research.math_opt.SolveResponse.messages)
1810template <typename Arg_, typename... Args_>
1811inline void SolveResponse::add_messages(Arg_&& value, Args_... args) {
1812 ::google::protobuf::internal::TSanWrite(&_impl_);
1813 ::google::protobuf::internal::AddToRepeatedPtrField(
1814 ::google::protobuf::MessageLite::internal_visibility(), GetArena(),
1815 *_internal_mutable_messages(), ::std::forward<Arg_>(value),
1816 args... );
1817 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U);
1818 // @@protoc_insertion_point(field_add:operations_research.math_opt.SolveResponse.messages)
1819}
1820inline const ::google::protobuf::RepeatedPtrField<::std::string>& SolveResponse::messages()
1821 const ABSL_ATTRIBUTE_LIFETIME_BOUND {
1822 // @@protoc_insertion_point(field_list:operations_research.math_opt.SolveResponse.messages)
1823 return _internal_messages();
1824}
1825inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL
1826SolveResponse::mutable_messages() ABSL_ATTRIBUTE_LIFETIME_BOUND {
1827 SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U);
1828 // @@protoc_insertion_point(field_mutable_list:operations_research.math_opt.SolveResponse.messages)
1829 ::google::protobuf::internal::TSanWrite(&_impl_);
1830 return _internal_mutable_messages();
1831}
1832inline const ::google::protobuf::RepeatedPtrField<::std::string>&
1833SolveResponse::_internal_messages() const {
1834 ::google::protobuf::internal::TSanRead(&_impl_);
1835 return _impl_.messages_;
1837inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL
1838SolveResponse::_internal_mutable_messages() {
1839 ::google::protobuf::internal::TSanRead(&_impl_);
1840 return &_impl_.messages_;
1841}
1842
1843inline bool SolveResponse::has_status_or() const {
1845}
1846inline void SolveResponse::clear_has_status_or() {
1847 _impl_._oneof_case_[0] = STATUS_OR_NOT_SET;
1848}
1850 return SolveResponse::StatusOrCase(_impl_._oneof_case_[0]);
1851}
1852// -------------------------------------------------------------------
1853
1854// StatusProto
1855
1856// int32 code = 1;
1857inline void StatusProto::clear_code() {
1858 ::google::protobuf::internal::TSanWrite(&_impl_);
1859 _impl_.code_ = 0;
1860 ClearHasBit(_impl_._has_bits_[0],
1861 0x00000002U);
1862}
1863inline ::int32_t StatusProto::code() const {
1864 // @@protoc_insertion_point(field_get:operations_research.math_opt.StatusProto.code)
1865 return _internal_code();
1866}
1867inline void StatusProto::set_code(::int32_t value) {
1868 _internal_set_code(value);
1869 SetHasBit(_impl_._has_bits_[0], 0x00000002U);
1870 // @@protoc_insertion_point(field_set:operations_research.math_opt.StatusProto.code)
1871}
1872inline ::int32_t StatusProto::_internal_code() const {
1873 ::google::protobuf::internal::TSanRead(&_impl_);
1874 return _impl_.code_;
1875}
1876inline void StatusProto::_internal_set_code(::int32_t value) {
1877 ::google::protobuf::internal::TSanWrite(&_impl_);
1878 _impl_.code_ = value;
1879}
1880
1881// string message = 2;
1882inline void StatusProto::clear_message() {
1883 ::google::protobuf::internal::TSanWrite(&_impl_);
1884 _impl_.message_.ClearToEmpty();
1885 ClearHasBit(_impl_._has_bits_[0],
1886 0x00000001U);
1887}
1888inline const ::std::string& StatusProto::message() const
1889 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1890 // @@protoc_insertion_point(field_get:operations_research.math_opt.StatusProto.message)
1891 return _internal_message();
1892}
1893template <typename Arg_, typename... Args_>
1894PROTOBUF_ALWAYS_INLINE void StatusProto::set_message(Arg_&& arg, Args_... args) {
1895 ::google::protobuf::internal::TSanWrite(&_impl_);
1896 SetHasBit(_impl_._has_bits_[0], 0x00000001U);
1897 _impl_.message_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
1898 // @@protoc_insertion_point(field_set:operations_research.math_opt.StatusProto.message)
1900inline ::std::string* PROTOBUF_NONNULL StatusProto::mutable_message()
1901 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1902 SetHasBit(_impl_._has_bits_[0], 0x00000001U);
1903 ::std::string* _s = _internal_mutable_message();
1904 // @@protoc_insertion_point(field_mutable:operations_research.math_opt.StatusProto.message)
1905 return _s;
1906}
1907inline const ::std::string& StatusProto::_internal_message() const {
1908 ::google::protobuf::internal::TSanRead(&_impl_);
1909 return _impl_.message_.Get();
1910}
1911inline void StatusProto::_internal_set_message(const ::std::string& value) {
1912 ::google::protobuf::internal::TSanWrite(&_impl_);
1913 _impl_.message_.Set(value, GetArena());
1914}
1915inline ::std::string* PROTOBUF_NONNULL StatusProto::_internal_mutable_message() {
1916 ::google::protobuf::internal::TSanWrite(&_impl_);
1917 return _impl_.message_.Mutable( GetArena());
1918}
1919inline ::std::string* PROTOBUF_NULLABLE StatusProto::release_message() {
1920 ::google::protobuf::internal::TSanWrite(&_impl_);
1921 // @@protoc_insertion_point(field_release:operations_research.math_opt.StatusProto.message)
1922 if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) {
1923 return nullptr;
1924 }
1925 ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
1926 auto* released = _impl_.message_.Release();
1927 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
1928 _impl_.message_.Set("", GetArena());
1929 }
1930 return released;
1931}
1932inline void StatusProto::set_allocated_message(::std::string* PROTOBUF_NULLABLE value) {
1933 ::google::protobuf::internal::TSanWrite(&_impl_);
1934 if (value != nullptr) {
1935 SetHasBit(_impl_._has_bits_[0], 0x00000001U);
1936 } else {
1937 ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
1938 }
1939 _impl_.message_.SetAllocated(value, GetArena());
1940 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.message_.IsDefault()) {
1941 _impl_.message_.Set("", GetArena());
1942 }
1943 // @@protoc_insertion_point(field_set_allocated:operations_research.math_opt.StatusProto.message)
1944}
1945
1946#ifdef __GNUC__
1947#pragma GCC diagnostic pop
1948#endif // __GNUC__
1949
1950// @@protoc_insertion_point(namespace_scope)
1951} // namespace math_opt
1952} // namespace operations_research
1953
1954
1955// @@protoc_insertion_point(global_scope)
1956
1957#include "google/protobuf/port_undef.inc"
1958
1959#endif // ortools_2fmath_5fopt_2frpc_2eproto_2epb_2eh
void set_allocated_initializer(::operations_research::math_opt::SolverInitializerProto *PROTOBUF_NULLABLE value)
Definition rpc.pb.h:1416
void unsafe_arena_set_allocated_initializer(::operations_research::math_opt::SolverInitializerProto *PROTOBUF_NULLABLE value)
Definition rpc.pb.h:1359
const ::operations_research::math_opt::SolverInitializerProto & initializer() const
Definition rpc.pb.h:1355
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:1541
void set_allocated_model_parameters(::operations_research::math_opt::ModelSolveParametersProto *PROTOBUF_NULLABLE value)
Definition rpc.pb.h:1602
::operations_research::math_opt::SolverResourcesProto *PROTOBUF_NULLABLE release_resources()
Definition rpc.pb.h:1280
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
Definition rpc.pb.h:804
::operations_research::math_opt::SolverResourcesProto *PROTOBUF_NULLABLE unsafe_arena_release_resources()
Definition rpc.pb.h:1299
void unsafe_arena_set_allocated_model_parameters(::operations_research::math_opt::ModelSolveParametersProto *PROTOBUF_NULLABLE value)
Definition rpc.pb.h:1545
void CopyFrom(const SolveRequest &from)
Definition rpc.pb.cc:994
void set_allocated_parameters(::operations_research::math_opt::SolveParametersProto *PROTOBUF_NULLABLE value)
Definition rpc.pb.h:1509
void set_allocated_resources(::operations_research::math_opt::SolverResourcesProto *PROTOBUF_NULLABLE value)
Definition rpc.pb.h:1323
::operations_research::math_opt::SolveParametersProto *PROTOBUF_NULLABLE unsafe_arena_release_parameters()
Definition rpc.pb.h:1485
::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:1266
::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:1595
void MergeFrom(const SolveRequest &from)
Definition rpc.pb.h:850
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
Definition rpc.pb.cc:807
friend void swap(SolveRequest &a, SolveRequest &b)
Definition rpc.pb.h:827
SolveRequest *PROTOBUF_NONNULL New(::google::protobuf::Arena *PROTOBUF_NULLABLE arena=nullptr) const
Definition rpc.pb.h:844
::operations_research::math_opt::SolverInitializerProto *PROTOBUF_NONNULL mutable_initializer()
Definition rpc.pb.h:1409
::operations_research::math_opt::SolverInitializerProto *PROTOBUF_NULLABLE unsafe_arena_release_initializer()
Definition rpc.pb.h:1392
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:790
::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:1578
void set_allocated_model(::operations_research::math_opt::ModelProto *PROTOBUF_NULLABLE value)
Definition rpc.pb.h:1224
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL descriptor()
Definition rpc.pb.h:813
::operations_research::math_opt::SolveParametersProto *PROTOBUF_NONNULL mutable_parameters()
Definition rpc.pb.h:1502
::operations_research::math_opt::ModelSolveParametersProto *PROTOBUF_NULLABLE release_model_parameters()
Definition rpc.pb.h:1559
::operations_research::math_opt::SolveParametersProto *PROTOBUF_NULLABLE release_parameters()
Definition rpc.pb.h:1466
const ::operations_research::math_opt::SolveParametersProto & parameters() const
Definition rpc.pb.h:1448
::operations_research::math_opt::SolverInitializerProto *PROTOBUF_NULLABLE release_initializer()
Definition rpc.pb.h:1373
::operations_research::math_opt::ModelProto *PROTOBUF_NULLABLE release_model()
Definition rpc.pb.h:1181
::operations_research::math_opt::SolverResourcesProto *PROTOBUF_NONNULL mutable_resources()
Definition rpc.pb.h:1316
void Swap(SolveRequest *PROTOBUF_NONNULL other)
Definition rpc.pb.h:828
void unsafe_arena_set_allocated_parameters(::operations_research::math_opt::SolveParametersProto *PROTOBUF_NULLABLE value)
Definition rpc.pb.h:1452
void set_solver_type(::operations_research::math_opt::SolverTypeProto value)
Definition rpc.pb.h:1138
const ::operations_research::math_opt::SolverResourcesProto & resources() const
Definition rpc.pb.h:1262
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL GetDescriptor()
Definition rpc.pb.h:816
friend class ::google::protobuf::MessageLite
Definition rpc.pb.h:736
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL descriptor()
Definition rpc.pb.h:552
const ::operations_research::math_opt::StatusProto & status() const
Definition rpc.pb.h:1738
void MergeFrom(const SolveResponse &from)
Definition rpc.pb.h:594
::google::protobuf::RepeatedPtrField<::std::string > *PROTOBUF_NONNULL mutable_messages()
Definition rpc.pb.h:1836
::operations_research::math_opt::StatusProto *PROTOBUF_NULLABLE unsafe_arena_release_status()
Definition rpc.pb.h:1742
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL GetDescriptor()
Definition rpc.pb.h:555
void unsafe_arena_set_allocated_result(::operations_research::math_opt::SolveResultProto *PROTOBUF_NULLABLE value)
Definition rpc.pb.h:1671
static const SolveResponse & default_instance()
Definition rpc.pb.h:561
const ::google::protobuf::RepeatedPtrField<::std::string > & messages() const
Definition rpc.pb.h:1830
::operations_research::math_opt::SolveResultProto *PROTOBUF_NULLABLE release_result()
Definition rpc.pb.h:1638
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
Definition rpc.pb.h:543
void CopyFrom(const SolveResponse &from)
Definition rpc.pb.cc:1439
void set_allocated_status(::operations_research::math_opt::StatusProto *PROTOBUF_NULLABLE value)
Definition rpc.pb.cc:1054
inline ::google::protobuf::UnknownFieldSet *PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND
Definition rpc.pb.h:547
::operations_research::math_opt::StatusProto *PROTOBUF_NULLABLE release_status()
Definition rpc.pb.h:1720
void Swap(SolveResponse *PROTOBUF_NONNULL other)
Definition rpc.pb.h:572
::std::string *PROTOBUF_NONNULL mutable_messages(int index)
Definition rpc.pb.h:1809
::operations_research::math_opt::SolveResultProto *PROTOBUF_NULLABLE unsafe_arena_release_result()
Definition rpc.pb.h:1660
::std::string *PROTOBUF_NONNULL add_messages()
Definition rpc.pb.h:1794
void unsafe_arena_set_allocated_status(::operations_research::math_opt::StatusProto *PROTOBUF_NULLABLE value)
Definition rpc.pb.h:1753
friend void swap(SolveResponse &a, SolveResponse &b)
Definition rpc.pb.h:571
void set_allocated_result(::operations_research::math_opt::SolveResultProto *PROTOBUF_NULLABLE value)
Definition rpc.pb.cc:1030
const ::std::string & messages(int index) const
Definition rpc.pb.h:1804
static constexpr int kIndexInFileMessages
Definition rpc.pb.h:570
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:1288
void set_messages(int index, Arg_ &&value, Args_... args)
Definition rpc.pb.h:1815
::operations_research::math_opt::StatusProto *PROTOBUF_NONNULL mutable_status()
Definition rpc.pb.h:1774
const ::operations_research::math_opt::SolveResultProto & result() const
Definition rpc.pb.h:1656
::operations_research::math_opt::SolveResultProto *PROTOBUF_NONNULL mutable_result()
Definition rpc.pb.h:1692
SolveResponse & operator=(const SolveResponse &from)
Definition rpc.pb.h:529
PROTOBUF_CONSTEXPR SolverResourcesProto(::google::protobuf::internal::ConstantInitialized)
friend class ::google::protobuf::MessageLite
Definition rpc.pb.h:481
void CopyFrom(const SolverResourcesProto &from)
Definition rpc.pb.cc:512
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL GetDescriptor()
Definition rpc.pb.h:350
static const SolverResourcesProto & default_instance()
Definition rpc.pb.h:356
void MergeFrom(const SolverResourcesProto &from)
Definition rpc.pb.h:384
static const ::google::protobuf::Reflection *PROTOBUF_NONNULL GetReflection()
Definition rpc.pb.h:353
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
Definition rpc.pb.h:338
SolverResourcesProto & operator=(const SolverResourcesProto &from)
Definition rpc.pb.h:324
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
Definition rpc.pb.cc:405
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
Definition rpc.pb.cc:428
void Swap(SolverResourcesProto *PROTOBUF_NONNULL other)
Definition rpc.pb.h:362
friend class ::google::protobuf::MessageLite
Definition rpc.pb.h:276
::std::string *PROTOBUF_NONNULL mutable_message()
Definition rpc.pb.h:1911
void Swap(StatusProto *PROTOBUF_NONNULL other)
Definition rpc.pb.h:154
void set_allocated_message(::std::string *PROTOBUF_NULLABLE value)
Definition rpc.pb.h:1943
void CopyFrom(const StatusProto &from)
Definition rpc.pb.cc:1748
StatusProto & operator=(const StatusProto &from)
Definition rpc.pb.h:116
const ::std::string & message() const
Definition rpc.pb.h:1899
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
::std::string *PROTOBUF_NULLABLE release_message()
Definition rpc.pb.h:1930
::absl::string_view GetAnyMessageName()
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:356
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SolveRequest_class_data_
Definition rpc.pb.cc:685
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:1562
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SolveResponse_class_data_
Definition rpc.pb.cc:1213
OR-Tools root namespace.
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2frpc_2eproto
Definition rpc.pb.cc:246
static const ::uint32_t offsets[]
Definition rpc.pb.h:57
::operations_research::math_opt::SolveResultProto *PROTOBUF_NULLABLE result_
Definition rpc.pb.h:757
::operations_research::math_opt::StatusProto *PROTOBUF_NULLABLE status_
Definition rpc.pb.h:758