6#ifndef ortools_2fmath_5fopt_2frpc_2eproto_2epb_2eh
7#define ortools_2fmath_5fopt_2frpc_2eproto_2epb_2eh
14#include "google/protobuf/runtime_version.h"
15#if PROTOBUF_VERSION != 6031001
16#error "Protobuf C++ gencode is built with an incompatible version of"
17#error "Protobuf C++ headers/runtime. See"
18#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp"
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"
30#include "google/protobuf/extension_set.h"
31#include "google/protobuf/unknown_field_set.h"
42#include "google/protobuf/port_def.inc"
44#define PROTOBUF_INTERNAL_EXPORT_ortools_2fmath_5fopt_2frpc_2eproto OR_PROTO_DLL
95class OR_PROTO_DLL
StatusProto final :
public ::google::protobuf::Message
101#if defined(PROTOBUF_CUSTOM_VTABLE)
102 void operator delete(
StatusProto* PROTOBUF_NONNULL msg, std::destroying_delete_t) {
104 ::google::protobuf::internal::SizedDelete(msg,
sizeof(
StatusProto));
108 template <
typename =
void>
109 explicit PROTOBUF_CONSTEXPR
StatusProto(::google::protobuf::internal::ConstantInitialized);
119 if (
this == &from)
return *
this;
120 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
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);
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>();
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;
150 static constexpr int kIndexInFileMessages = 3;
153 if (other ==
this)
return;
154 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
157 ::google::protobuf::internal::GenericSwap(
this, other);
160 void UnsafeArenaSwap(StatusProto* PROTOBUF_NONNULL other) {
161 if (other ==
this)
return;
162 ABSL_DCHECK(GetArena() == other->GetArena());
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;
173 using ::google::protobuf::Message::MergeFrom;
174 void MergeFrom(
const StatusProto& from) { StatusProto::MergeImpl(*
this, from); }
177 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
178 const ::google::protobuf::MessageLite& from_msg);
184 ABSL_ATTRIBUTE_REINITIALIZES
void Clear() PROTOBUF_FINAL;
185 #if defined(PROTOBUF_CUSTOM_VTABLE)
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);
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);
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;
205 int GetCachedSize()
const {
return _impl_._cached_size_.Get(); }
208 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
210 void InternalSwap(
StatusProto* PROTOBUF_NONNULL other);
212 template <
typename T>
214 static ::absl::string_view FullMessageName() {
return "operations_research.math_opt.StatusProto"; }
217 explicit StatusProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
220 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
StatusProto&& from) noexcept
222 *
this = ::std::move(from);
224 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
225 static
void* PROTOBUF_NONNULL PlacementNew_(
226 const
void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
227 ::
google::protobuf::Arena* PROTOBUF_NULLABLE arena);
228 static constexpr auto InternalNewImpl_();
231 static constexpr auto InternalGenerateClassData_();
233 ::
google::protobuf::Metadata GetMetadata() const;
238 kMessageFieldNumber = 2,
239 kCodeFieldNumber = 1,
243 const ::std::string&
message()
const;
244 template <
typename Arg_ = const ::std::string&,
typename... Args_>
251 const ::std::string& _internal_message()
const;
252 PROTOBUF_ALWAYS_INLINE
void _internal_set_message(const ::std::string& value);
253 ::std::string* PROTOBUF_NONNULL _internal_mutable_message();
258 ::int32_t
code()
const;
262 ::int32_t _internal_code()
const;
263 void _internal_set_code(::int32_t value);
269 friend class ::google::protobuf::internal::TcParser;
270 static const ::google::protobuf::internal::TcParseTable<1, 2,
275 friend class ::google::protobuf::MessageLite;
276 friend class ::google::protobuf::Arena;
277 template <
typename T>
278 friend class ::google::protobuf::Arena::InternalHelper;
279 using InternalArenaConstructable_ = void;
280 using DestructorSkippable_ = void;
282 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized)
noexcept;
283 inline explicit Impl_(
284 ::google::protobuf::internal::InternalVisibility visibility,
285 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
286 inline explicit Impl_(
287 ::google::protobuf::internal::InternalVisibility visibility,
288 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
290 ::google::protobuf::internal::HasBits<1> _has_bits_;
291 ::google::protobuf::internal::CachedSize _cached_size_;
292 ::google::protobuf::internal::ArenaStringPtr message_;
294 PROTOBUF_TSAN_DECLARE_MEMBER
296 union { Impl_ _impl_; };
297 friend struct ::TableStruct_ortools_2fmath_5fopt_2frpc_2eproto;
309#if defined(PROTOBUF_CUSTOM_VTABLE)
316 template <
typename =
void>
317 explicit PROTOBUF_CONSTEXPR
SolverResourcesProto(::google::protobuf::internal::ConstantInitialized);
327 if (
this == &from)
return *
this;
328 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
336 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
337 ABSL_ATTRIBUTE_LIFETIME_BOUND {
338 return _internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
340 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
341 ABSL_ATTRIBUTE_LIFETIME_BOUND {
342 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
345 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
346 return GetDescriptor();
348 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL
GetDescriptor() {
351 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL
GetReflection() {
358 static constexpr int kIndexInFileMessages = 0;
360 inline void Swap(SolverResourcesProto* PROTOBUF_NONNULL other) {
361 if (other ==
this)
return;
362 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
365 ::google::protobuf::internal::GenericSwap(
this, other);
368 void UnsafeArenaSwap(SolverResourcesProto* PROTOBUF_NONNULL other) {
369 if (other ==
this)
return;
370 ABSL_DCHECK(GetArena() == other->GetArena());
376 SolverResourcesProto* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena =
nullptr)
const {
377 return ::google::protobuf::Message::DefaultConstruct<SolverResourcesProto>(arena);
379 using ::google::protobuf::Message::CopyFrom;
381 using ::google::protobuf::Message::MergeFrom;
385 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
386 const ::google::protobuf::MessageLite& from_msg);
392 ABSL_ATTRIBUTE_REINITIALIZES
void Clear() PROTOBUF_FINAL;
393 #if defined(PROTOBUF_CUSTOM_VTABLE)
395 static ::size_t
ByteSizeLong(const ::google::protobuf::MessageLite& msg);
397 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
398 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
402 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
403 ::uint8_t* PROTOBUF_NONNULL target,
404 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
405 return _InternalSerialize(*
this, target, stream);
408 ::size_t ByteSizeLong() const final;
409 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
410 ::uint8_t* PROTOBUF_NONNULL target,
411 ::
google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
413 int GetCachedSize()
const {
return _impl_._cached_size_.Get(); }
416 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
420 template <
typename T>
422 static ::absl::string_view FullMessageName() {
return "operations_research.math_opt.SolverResourcesProto"; }
430 *
this = ::std::move(from);
432 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
433 static
void* PROTOBUF_NONNULL PlacementNew_(
434 const
void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
435 ::
google::protobuf::Arena* PROTOBUF_NULLABLE arena);
436 static constexpr auto InternalNewImpl_();
439 static constexpr auto InternalGenerateClassData_();
441 ::
google::protobuf::Metadata GetMetadata() const;
456 double _internal_cpu()
const;
457 void _internal_set_cpu(
double value);
467 double _internal_ram()
const;
468 void _internal_set_ram(
double value);
474 friend class ::google::protobuf::internal::TcParser;
475 static const ::google::protobuf::internal::TcParseTable<1, 2,
480 friend class ::google::protobuf::MessageLite;
481 friend class ::google::protobuf::Arena;
482 template <
typename T>
483 friend class ::google::protobuf::Arena::InternalHelper;
484 using InternalArenaConstructable_ = void;
485 using DestructorSkippable_ = void;
487 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized)
noexcept;
488 inline explicit Impl_(
489 ::google::protobuf::internal::InternalVisibility visibility,
490 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
491 inline explicit Impl_(
492 ::google::protobuf::internal::InternalVisibility visibility,
493 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
495 ::google::protobuf::internal::HasBits<1> _has_bits_;
496 ::google::protobuf::internal::CachedSize _cached_size_;
499 PROTOBUF_TSAN_DECLARE_MEMBER
501 union { Impl_ _impl_; };
502 friend struct ::TableStruct_ortools_2fmath_5fopt_2frpc_2eproto;
508class OR_PROTO_DLL
SolveResponse final :
public ::google::protobuf::Message
514#if defined(PROTOBUF_CUSTOM_VTABLE)
515 void operator delete(
SolveResponse* PROTOBUF_NONNULL msg, std::destroying_delete_t) {
517 ::google::protobuf::internal::SizedDelete(msg,
sizeof(
SolveResponse));
521 template <
typename =
void>
522 explicit PROTOBUF_CONSTEXPR
SolveResponse(::google::protobuf::internal::ConstantInitialized);
525 inline SolveResponse(SolveResponse&& from) noexcept
532 if (
this == &from)
return *
this;
533 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
541 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
542 ABSL_ATTRIBUTE_LIFETIME_BOUND {
543 return _internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
546 ABSL_ATTRIBUTE_LIFETIME_BOUND {
547 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
550 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL
descriptor() {
553 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
556 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
571 if (other ==
this)
return;
572 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
575 ::google::protobuf::internal::GenericSwap(
this, other);
578 void UnsafeArenaSwap(SolveResponse* PROTOBUF_NONNULL other) {
579 if (other ==
this)
return;
580 ABSL_DCHECK(GetArena() == other->GetArena());
586 SolveResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena =
nullptr)
const {
587 return ::google::protobuf::Message::DefaultConstruct<SolveResponse>(arena);
589 using ::google::protobuf::Message::CopyFrom;
591 using ::google::protobuf::Message::MergeFrom;
595 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
596 const ::google::protobuf::MessageLite& from_msg);
602 ABSL_ATTRIBUTE_REINITIALIZES
void Clear() PROTOBUF_FINAL;
603 #if defined(PROTOBUF_CUSTOM_VTABLE)
605 static ::size_t
ByteSizeLong(const ::google::protobuf::MessageLite& msg);
607 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
608 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
612 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
613 ::uint8_t* PROTOBUF_NONNULL target,
614 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
615 return _InternalSerialize(*
this, target, stream);
618 ::size_t ByteSizeLong() const final;
619 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
620 ::uint8_t* PROTOBUF_NONNULL target,
621 ::
google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
623 int GetCachedSize()
const {
return _impl_._cached_size_.Get(); }
626 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
630 template <
typename T>
632 static ::absl::string_view FullMessageName() {
return "operations_research.math_opt.SolveResponse"; }
635 explicit SolveResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
638 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
SolveResponse&& from) noexcept
640 *
this = ::std::move(from);
642 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
643 static
void* PROTOBUF_NONNULL PlacementNew_(
644 const
void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
645 ::
google::protobuf::Arena* PROTOBUF_NULLABLE arena);
646 static constexpr auto InternalNewImpl_();
649 static constexpr auto InternalGenerateClassData_();
651 ::
google::protobuf::Metadata GetMetadata() const;
656 kMessagesFieldNumber = 2,
657 kResultFieldNumber = 1,
658 kStatusFieldNumber = 3,
663 int _internal_messages_size()
const;
667 const ::std::string&
messages(
int index)
const;
669 template <
typename Arg_ = const ::std::string&,
typename... Args_>
670 void set_messages(
int index, Arg_&& value, Args_... args);
672 template <
typename Arg_ = const ::std::string&,
typename... Args_>
674 const ::google::protobuf::RepeatedPtrField<::std::string>&
messages()
const;
675 ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL
mutable_messages();
678 const ::google::protobuf::RepeatedPtrField<::std::string>& _internal_messages()
const;
679 ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL _internal_mutable_messages();
685 bool _internal_has_result()
const;
689 const ::operations_research::math_opt::SolveResultProto&
result()
const;
697 const ::operations_research::math_opt::SolveResultProto& _internal_result()
const;
704 bool _internal_has_status()
const;
708 const ::operations_research::math_opt::StatusProto&
status()
const;
716 const ::operations_research::math_opt::StatusProto& _internal_status()
const;
725 void set_has_result();
726 void set_has_status();
727 inline bool has_status_or()
const;
728 inline void clear_has_status_or();
729 friend class ::google::protobuf::internal::TcParser;
730 static const ::google::protobuf::internal::TcParseTable<0, 3,
735 friend class ::google::protobuf::MessageLite;
736 friend class ::google::protobuf::Arena;
737 template <
typename T>
738 friend class ::google::protobuf::Arena::InternalHelper;
739 using InternalArenaConstructable_ = void;
740 using DestructorSkippable_ = void;
742 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized)
noexcept;
743 inline explicit Impl_(
744 ::google::protobuf::internal::InternalVisibility visibility,
745 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
746 inline explicit Impl_(
747 ::google::protobuf::internal::InternalVisibility visibility,
748 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
750 ::google::protobuf::RepeatedPtrField<::std::string> messages_;
751 union StatusOrUnion {
752 constexpr StatusOrUnion() : _constinit_{} {}
753 ::google::protobuf::internal::ConstantInitialized _constinit_;
757 ::google::protobuf::internal::CachedSize _cached_size_;
758 ::uint32_t _oneof_case_[1];
759 PROTOBUF_TSAN_DECLARE_MEMBER
762 friend struct ::TableStruct_ortools_2fmath_5fopt_2frpc_2eproto;
768class OR_PROTO_DLL
SolveRequest final :
public ::google::protobuf::Message
774#if defined(PROTOBUF_CUSTOM_VTABLE)
775 void operator delete(
SolveRequest* PROTOBUF_NONNULL msg, std::destroying_delete_t) {
777 ::google::protobuf::internal::SizedDelete(msg,
sizeof(
SolveRequest));
781 template <
typename =
void>
782 explicit PROTOBUF_CONSTEXPR
SolveRequest(::google::protobuf::internal::ConstantInitialized);
785 inline SolveRequest(SolveRequest&& from) noexcept
786 : SolveRequest(
nullptr, ::std::move(from)) {}
792 if (
this == &from)
return *
this;
793 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
801 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
802 ABSL_ATTRIBUTE_LIFETIME_BOUND {
803 return _internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
805 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
806 ABSL_ATTRIBUTE_LIFETIME_BOUND {
807 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
810 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL
descriptor() {
813 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
814 return default_instance().GetMetadata().descriptor;
816 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
817 return default_instance().GetMetadata().reflection;
823 static constexpr int kIndexInFileMessages = 1;
825 inline void Swap(
SolveRequest* PROTOBUF_NONNULL other) {
826 if (other ==
this)
return;
827 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
830 ::google::protobuf::internal::GenericSwap(
this, other);
833 void UnsafeArenaSwap(SolveRequest* PROTOBUF_NONNULL other) {
834 if (other ==
this)
return;
835 ABSL_DCHECK(GetArena() == other->GetArena());
841 SolveRequest* PROTOBUF_NONNULL
New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena =
nullptr)
const {
842 return ::google::protobuf::Message::DefaultConstruct<SolveRequest>(arena);
844 using ::google::protobuf::Message::CopyFrom;
846 using ::google::protobuf::Message::MergeFrom;
850 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
851 const ::google::protobuf::MessageLite& from_msg);
857 ABSL_ATTRIBUTE_REINITIALIZES
void Clear() PROTOBUF_FINAL;
858 #if defined(PROTOBUF_CUSTOM_VTABLE)
860 static ::size_t
ByteSizeLong(const ::google::protobuf::MessageLite& msg);
862 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
863 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
867 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
868 ::uint8_t* PROTOBUF_NONNULL target,
869 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
870 return _InternalSerialize(*
this, target, stream);
873 ::size_t ByteSizeLong() const final;
874 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
875 ::uint8_t* PROTOBUF_NONNULL target,
876 ::
google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
878 int GetCachedSize()
const {
return _impl_._cached_size_.Get(); }
881 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
882 static void SharedDtor(MessageLite& self);
885 template <
typename T>
887 static ::absl::string_view FullMessageName() {
return "operations_research.math_opt.SolveRequest"; }
890 explicit SolveRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
893 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
SolveRequest&& from) noexcept
895 *
this = ::std::move(from);
897 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
GetClassData() const PROTOBUF_FINAL;
899 const
void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
900 ::
google::protobuf::
Arena* PROTOBUF_NULLABLE arena);
921 const ::operations_research::math_opt::ModelProto&
model()
const;
929 const ::operations_research::math_opt::ModelProto& _internal_model()
const;
936 const ::operations_research::math_opt::SolverInitializerProto&
initializer()
const;
944 const ::operations_research::math_opt::SolverInitializerProto& _internal_initializer()
const;
951 const ::operations_research::math_opt::SolveParametersProto&
parameters()
const;
959 const ::operations_research::math_opt::SolveParametersProto& _internal_parameters()
const;
966 const ::operations_research::math_opt::ModelSolveParametersProto&
model_parameters()
const;
974 const ::operations_research::math_opt::ModelSolveParametersProto& _internal_model_parameters()
const;
981 const ::operations_research::math_opt::SolverResourcesProto&
resources()
const;
989 const ::operations_research::math_opt::SolverResourcesProto& _internal_resources()
const;
1006 friend class ::google::protobuf::internal::TcParser;
1007 static const ::google::protobuf::internal::TcParseTable<3, 6,
1012 friend class ::google::protobuf::MessageLite;
1013 friend class ::google::protobuf::Arena;
1014 template <
typename T>
1015 friend class ::google::protobuf::Arena::InternalHelper;
1016 using InternalArenaConstructable_ = void;
1017 using DestructorSkippable_ = void;
1019 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized)
noexcept;
1020 inline explicit Impl_(
1021 ::google::protobuf::internal::InternalVisibility visibility,
1022 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1023 inline explicit Impl_(
1024 ::google::protobuf::internal::InternalVisibility visibility,
1025 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
1027 ::google::protobuf::internal::HasBits<1> _has_bits_;
1028 ::google::protobuf::internal::CachedSize _cached_size_;
1035 PROTOBUF_TSAN_DECLARE_MEMBER
1037 union { Impl_ _impl_; };
1038 friend struct ::TableStruct_ortools_2fmath_5fopt_2frpc_2eproto;
1052#pragma GCC diagnostic push
1053#pragma GCC diagnostic ignored "-Wstrict-aliasing"
1061 bool value = (
_impl_._has_bits_[0] & 0x00000001u) != 0;
1065 ::google::protobuf::internal::TSanWrite(&
_impl_);
1067 _impl_._has_bits_[0] &= ~0x00000001u;
1071 return _internal_cpu();
1074 _internal_set_cpu(value);
1075 _impl_._has_bits_[0] |= 0x00000001u;
1078inline double SolverResourcesProto::_internal_cpu()
const {
1079 ::google::protobuf::internal::TSanRead(&
_impl_);
1082inline void SolverResourcesProto::_internal_set_cpu(
double value) {
1083 ::google::protobuf::internal::TSanWrite(&
_impl_);
1089 bool value = (
_impl_._has_bits_[0] & 0x00000002u) != 0;
1093 ::google::protobuf::internal::TSanWrite(&
_impl_);
1095 _impl_._has_bits_[0] &= ~0x00000002u;
1099 return _internal_ram();
1102 _internal_set_ram(value);
1103 _impl_._has_bits_[0] |= 0x00000002u;
1106inline double SolverResourcesProto::_internal_ram()
const {
1107 ::google::protobuf::internal::TSanRead(&
_impl_);
1110inline void SolverResourcesProto::_internal_set_ram(
double value) {
1111 ::google::protobuf::internal::TSanWrite(&
_impl_);
1121 ::google::protobuf::internal::TSanWrite(&
_impl_);
1123 _impl_._has_bits_[0] &= ~0x00000020u;
1127 return _internal_solver_type();
1130 _internal_set_solver_type(value);
1131 _impl_._has_bits_[0] |= 0x00000020u;
1134inline ::operations_research::math_opt::SolverTypeProto SolveRequest::_internal_solver_type()
const {
1135 ::google::protobuf::internal::TSanRead(&
_impl_);
1139 ::google::protobuf::internal::TSanWrite(&
_impl_);
1140 _impl_.solver_type_ = value;
1145 bool value = (
_impl_._has_bits_[0] & 0x00000001u) != 0;
1146 PROTOBUF_ASSUME(!value ||
_impl_.model_ !=
nullptr);
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 {
1156 return _internal_model();
1160 ::google::protobuf::internal::TSanWrite(&
_impl_);
1161 if (GetArena() ==
nullptr) {
1162 delete reinterpret_cast<::google::protobuf::MessageLite*
>(
_impl_.model_);
1165 if (value !=
nullptr) {
1166 _impl_._has_bits_[0] |= 0x00000001u;
1168 _impl_._has_bits_[0] &= ~0x00000001u;
1173 ::google::protobuf::internal::TSanWrite(&
_impl_);
1175 _impl_._has_bits_[0] &= ~0x00000001u;
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) {
1185 if (GetArena() !=
nullptr) {
1186 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
1192 ::google::protobuf::internal::TSanWrite(&
_impl_);
1195 _impl_._has_bits_[0] &= ~0x00000001u;
1196 ::operations_research::math_opt::ModelProto* temp =
_impl_.model_;
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());
1209 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1210 _impl_._has_bits_[0] |= 0x00000001u;
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_);
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);
1227 _impl_._has_bits_[0] |= 0x00000001u;
1229 _impl_._has_bits_[0] &= ~0x00000001u;
1238 bool value = (
_impl_._has_bits_[0] & 0x00000010u) != 0;
1239 PROTOBUF_ASSUME(!value ||
_impl_.resources_ !=
nullptr);
1243 ::google::protobuf::internal::TSanWrite(&
_impl_);
1244 if (
_impl_.resources_ !=
nullptr)
_impl_.resources_->Clear();
1245 _impl_._has_bits_[0] &= ~0x00000010u;
1247inline const ::operations_research::math_opt::SolverResourcesProto& SolveRequest::_internal_resources()
const {
1248 ::google::protobuf::internal::TSanRead(&
_impl_);
1249 const ::operations_research::math_opt::SolverResourcesProto* p =
_impl_.resources_;
1252inline const ::operations_research::math_opt::SolverResourcesProto&
SolveRequest::resources() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
1254 return _internal_resources();
1258 ::google::protobuf::internal::TSanWrite(&
_impl_);
1259 if (GetArena() ==
nullptr) {
1260 delete reinterpret_cast<::google::protobuf::MessageLite*
>(
_impl_.resources_);
1263 if (value !=
nullptr) {
1264 _impl_._has_bits_[0] |= 0x00000010u;
1266 _impl_._has_bits_[0] &= ~0x00000010u;
1271 ::google::protobuf::internal::TSanWrite(&
_impl_);
1273 _impl_._has_bits_[0] &= ~0x00000010u;
1275 _impl_.resources_ =
nullptr;
1276 if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
1277 auto* old =
reinterpret_cast<::google::protobuf::MessageLite*
>(released);
1278 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
1279 if (GetArena() ==
nullptr) {
1283 if (GetArena() !=
nullptr) {
1284 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
1290 ::google::protobuf::internal::TSanWrite(&
_impl_);
1293 _impl_._has_bits_[0] &= ~0x00000010u;
1294 ::operations_research::math_opt::SolverResourcesProto* temp =
_impl_.resources_;
1295 _impl_.resources_ =
nullptr;
1298inline ::operations_research::math_opt::SolverResourcesProto* PROTOBUF_NONNULL SolveRequest::_internal_mutable_resources() {
1299 ::google::protobuf::internal::TSanWrite(&
_impl_);
1300 if (
_impl_.resources_ ==
nullptr) {
1301 auto* p = ::google::protobuf::Message::DefaultConstruct<::operations_research::math_opt::SolverResourcesProto>(GetArena());
1304 return _impl_.resources_;
1307 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1308 _impl_._has_bits_[0] |= 0x00000010u;
1314 ::google::protobuf::Arena* message_arena = GetArena();
1315 ::google::protobuf::internal::TSanWrite(&
_impl_);
1316 if (message_arena ==
nullptr) {
1317 delete reinterpret_cast<::google::protobuf::MessageLite*
>(
_impl_.resources_);
1320 if (value !=
nullptr) {
1321 ::google::protobuf::Arena* submessage_arena = value->GetArena();
1322 if (message_arena != submessage_arena) {
1323 value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
1325 _impl_._has_bits_[0] |= 0x00000010u;
1327 _impl_._has_bits_[0] &= ~0x00000010u;
1336 bool value = (
_impl_._has_bits_[0] & 0x00000002u) != 0;
1337 PROTOBUF_ASSUME(!value ||
_impl_.initializer_ !=
nullptr);
1340inline const ::operations_research::math_opt::SolverInitializerProto& SolveRequest::_internal_initializer()
const {
1341 ::google::protobuf::internal::TSanRead(&
_impl_);
1342 const ::operations_research::math_opt::SolverInitializerProto* p =
_impl_.initializer_;
1345inline const ::operations_research::math_opt::SolverInitializerProto&
SolveRequest::initializer() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
1347 return _internal_initializer();
1351 ::google::protobuf::internal::TSanWrite(&
_impl_);
1352 if (GetArena() ==
nullptr) {
1353 delete reinterpret_cast<::google::protobuf::MessageLite*
>(
_impl_.initializer_);
1356 if (value !=
nullptr) {
1357 _impl_._has_bits_[0] |= 0x00000002u;
1359 _impl_._has_bits_[0] &= ~0x00000002u;
1364 ::google::protobuf::internal::TSanWrite(&
_impl_);
1366 _impl_._has_bits_[0] &= ~0x00000002u;
1368 _impl_.initializer_ =
nullptr;
1369 if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
1370 auto* old =
reinterpret_cast<::google::protobuf::MessageLite*
>(released);
1371 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
1372 if (GetArena() ==
nullptr) {
1376 if (GetArena() !=
nullptr) {
1377 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
1383 ::google::protobuf::internal::TSanWrite(&
_impl_);
1386 _impl_._has_bits_[0] &= ~0x00000002u;
1387 ::operations_research::math_opt::SolverInitializerProto* temp =
_impl_.initializer_;
1388 _impl_.initializer_ =
nullptr;
1391inline ::operations_research::math_opt::SolverInitializerProto* PROTOBUF_NONNULL SolveRequest::_internal_mutable_initializer() {
1392 ::google::protobuf::internal::TSanWrite(&
_impl_);
1393 if (
_impl_.initializer_ ==
nullptr) {
1394 auto* p = ::google::protobuf::Message::DefaultConstruct<::operations_research::math_opt::SolverInitializerProto>(GetArena());
1397 return _impl_.initializer_;
1400 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1401 _impl_._has_bits_[0] |= 0x00000002u;
1407 ::google::protobuf::Arena* message_arena = GetArena();
1408 ::google::protobuf::internal::TSanWrite(&
_impl_);
1409 if (message_arena ==
nullptr) {
1410 delete reinterpret_cast<::google::protobuf::MessageLite*
>(
_impl_.initializer_);
1413 if (value !=
nullptr) {
1414 ::google::protobuf::Arena* submessage_arena =
reinterpret_cast<::google::protobuf::Message*
>(value)->GetArena();
1415 if (message_arena != submessage_arena) {
1416 value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
1418 _impl_._has_bits_[0] |= 0x00000002u;
1420 _impl_._has_bits_[0] &= ~0x00000002u;
1429 bool value = (
_impl_._has_bits_[0] & 0x00000004u) != 0;
1430 PROTOBUF_ASSUME(!value ||
_impl_.parameters_ !=
nullptr);
1433inline const ::operations_research::math_opt::SolveParametersProto& SolveRequest::_internal_parameters()
const {
1434 ::google::protobuf::internal::TSanRead(&
_impl_);
1435 const ::operations_research::math_opt::SolveParametersProto* p =
_impl_.parameters_;
1438inline const ::operations_research::math_opt::SolveParametersProto&
SolveRequest::parameters() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
1440 return _internal_parameters();
1444 ::google::protobuf::internal::TSanWrite(&
_impl_);
1445 if (GetArena() ==
nullptr) {
1446 delete reinterpret_cast<::google::protobuf::MessageLite*
>(
_impl_.parameters_);
1449 if (value !=
nullptr) {
1450 _impl_._has_bits_[0] |= 0x00000004u;
1452 _impl_._has_bits_[0] &= ~0x00000004u;
1457 ::google::protobuf::internal::TSanWrite(&
_impl_);
1459 _impl_._has_bits_[0] &= ~0x00000004u;
1461 _impl_.parameters_ =
nullptr;
1462 if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
1463 auto* old =
reinterpret_cast<::google::protobuf::MessageLite*
>(released);
1464 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
1465 if (GetArena() ==
nullptr) {
1469 if (GetArena() !=
nullptr) {
1470 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
1476 ::google::protobuf::internal::TSanWrite(&
_impl_);
1479 _impl_._has_bits_[0] &= ~0x00000004u;
1480 ::operations_research::math_opt::SolveParametersProto* temp =
_impl_.parameters_;
1481 _impl_.parameters_ =
nullptr;
1484inline ::operations_research::math_opt::SolveParametersProto* PROTOBUF_NONNULL SolveRequest::_internal_mutable_parameters() {
1485 ::google::protobuf::internal::TSanWrite(&
_impl_);
1486 if (
_impl_.parameters_ ==
nullptr) {
1487 auto* p = ::google::protobuf::Message::DefaultConstruct<::operations_research::math_opt::SolveParametersProto>(GetArena());
1490 return _impl_.parameters_;
1493 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1494 _impl_._has_bits_[0] |= 0x00000004u;
1500 ::google::protobuf::Arena* message_arena = GetArena();
1501 ::google::protobuf::internal::TSanWrite(&
_impl_);
1502 if (message_arena ==
nullptr) {
1503 delete reinterpret_cast<::google::protobuf::MessageLite*
>(
_impl_.parameters_);
1506 if (value !=
nullptr) {
1507 ::google::protobuf::Arena* submessage_arena =
reinterpret_cast<::google::protobuf::Message*
>(value)->GetArena();
1508 if (message_arena != submessage_arena) {
1509 value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
1511 _impl_._has_bits_[0] |= 0x00000004u;
1513 _impl_._has_bits_[0] &= ~0x00000004u;
1522 bool value = (
_impl_._has_bits_[0] & 0x00000008u) != 0;
1523 PROTOBUF_ASSUME(!value ||
_impl_.model_parameters_ !=
nullptr);
1526inline const ::operations_research::math_opt::ModelSolveParametersProto& SolveRequest::_internal_model_parameters()
const {
1527 ::google::protobuf::internal::TSanRead(&
_impl_);
1528 const ::operations_research::math_opt::ModelSolveParametersProto* p =
_impl_.model_parameters_;
1533 return _internal_model_parameters();
1537 ::google::protobuf::internal::TSanWrite(&
_impl_);
1538 if (GetArena() ==
nullptr) {
1539 delete reinterpret_cast<::google::protobuf::MessageLite*
>(
_impl_.model_parameters_);
1542 if (value !=
nullptr) {
1543 _impl_._has_bits_[0] |= 0x00000008u;
1545 _impl_._has_bits_[0] &= ~0x00000008u;
1550 ::google::protobuf::internal::TSanWrite(&
_impl_);
1552 _impl_._has_bits_[0] &= ~0x00000008u;
1554 _impl_.model_parameters_ =
nullptr;
1555 if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
1556 auto* old =
reinterpret_cast<::google::protobuf::MessageLite*
>(released);
1557 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
1558 if (GetArena() ==
nullptr) {
1562 if (GetArena() !=
nullptr) {
1563 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
1569 ::google::protobuf::internal::TSanWrite(&
_impl_);
1572 _impl_._has_bits_[0] &= ~0x00000008u;
1573 ::operations_research::math_opt::ModelSolveParametersProto* temp =
_impl_.model_parameters_;
1574 _impl_.model_parameters_ =
nullptr;
1577inline ::operations_research::math_opt::ModelSolveParametersProto* PROTOBUF_NONNULL SolveRequest::_internal_mutable_model_parameters() {
1578 ::google::protobuf::internal::TSanWrite(&
_impl_);
1579 if (
_impl_.model_parameters_ ==
nullptr) {
1580 auto* p = ::google::protobuf::Message::DefaultConstruct<::operations_research::math_opt::ModelSolveParametersProto>(GetArena());
1583 return _impl_.model_parameters_;
1586 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1587 _impl_._has_bits_[0] |= 0x00000008u;
1593 ::google::protobuf::Arena* message_arena = GetArena();
1594 ::google::protobuf::internal::TSanWrite(&
_impl_);
1595 if (message_arena ==
nullptr) {
1596 delete reinterpret_cast<::google::protobuf::MessageLite*
>(
_impl_.model_parameters_);
1599 if (value !=
nullptr) {
1600 ::google::protobuf::Arena* submessage_arena =
reinterpret_cast<::google::protobuf::Message*
>(value)->GetArena();
1601 if (message_arena != submessage_arena) {
1602 value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
1604 _impl_._has_bits_[0] |= 0x00000008u;
1606 _impl_._has_bits_[0] &= ~0x00000008u;
1621inline bool SolveResponse::_internal_has_result()
const {
1624inline void SolveResponse::set_has_result() {
1630 clear_has_status_or();
1631 auto* temp =
_impl_.status_or_.result_;
1632 if (GetArena() !=
nullptr) {
1633 temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
1635 _impl_.status_or_.result_ =
nullptr;
1641inline const ::operations_research::math_opt::SolveResultProto& SolveResponse::_internal_result()
const {
1644inline const ::operations_research::math_opt::SolveResultProto&
SolveResponse::result() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
1646 return _internal_result();
1651 clear_has_status_or();
1652 auto* temp =
_impl_.status_or_.result_;
1653 _impl_.status_or_.result_ =
nullptr;
1671inline ::operations_research::math_opt::SolveResultProto* PROTOBUF_NONNULL SolveResponse::_internal_mutable_result() {
1676 ::google::protobuf::Message::DefaultConstruct<::operations_research::math_opt::SolveResultProto>(GetArena());
1681 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1691inline bool SolveResponse::_internal_has_status()
const {
1694inline void SolveResponse::set_has_status() {
1698 ::google::protobuf::internal::TSanWrite(&
_impl_);
1700 if (GetArena() ==
nullptr) {
1701 delete _impl_.status_or_.status_;
1702 }
else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
1703 ::google::protobuf::internal::MaybePoisonAfterClear(
_impl_.status_or_.
status_);
1705 clear_has_status_or();
1711 clear_has_status_or();
1713 if (GetArena() !=
nullptr) {
1714 temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
1722inline const ::operations_research::math_opt::StatusProto& SolveResponse::_internal_status()
const {
1725inline const ::operations_research::math_opt::StatusProto&
SolveResponse::status() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
1727 return _internal_status();
1732 clear_has_status_or();
1733 auto* temp =
_impl_.status_or_.status_;
1734 _impl_.status_or_.status_ =
nullptr;
1752inline ::operations_research::math_opt::StatusProto* PROTOBUF_NONNULL SolveResponse::_internal_mutable_status() {
1757 ::google::protobuf::Message::DefaultConstruct<::operations_research::math_opt::StatusProto>(GetArena());
1762 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1769inline int SolveResponse::_internal_messages_size()
const {
1770 return _internal_messages().size();
1773 return _internal_messages_size();
1776 ::google::protobuf::internal::TSanWrite(&
_impl_);
1777 _impl_.messages_.Clear();
1780 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1781 ::google::protobuf::internal::TSanWrite(&
_impl_);
1782 ::std::string* _s = _internal_mutable_messages()->Add();
1787 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1789 return _internal_messages().Get(index);
1792 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1794 return _internal_mutable_messages()->Mutable(index);
1796template <
typename Arg_,
typename... Args_>
1798 ::google::protobuf::internal::AssignToString(*_internal_mutable_messages()->Mutable(index), ::std::forward<Arg_>(value),
1802template <
typename Arg_,
typename... Args_>
1804 ::google::protobuf::internal::TSanWrite(&
_impl_);
1805 ::google::protobuf::internal::AddToRepeatedPtrField(*_internal_mutable_messages(),
1806 ::std::forward<Arg_>(value),
1811 const ABSL_ATTRIBUTE_LIFETIME_BOUND {
1813 return _internal_messages();
1815inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL
1818 ::google::protobuf::internal::TSanWrite(&
_impl_);
1819 return _internal_mutable_messages();
1821inline const ::google::protobuf::RepeatedPtrField<::std::string>&
1822SolveResponse::_internal_messages()
const {
1823 ::google::protobuf::internal::TSanRead(&
_impl_);
1826inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL
1827SolveResponse::_internal_mutable_messages() {
1828 ::google::protobuf::internal::TSanRead(&
_impl_);
1829 return &
_impl_.messages_;
1832inline bool SolveResponse::has_status_or()
const {
1835inline void SolveResponse::clear_has_status_or() {
1847 ::google::protobuf::internal::TSanWrite(&
_impl_);
1849 _impl_._has_bits_[0] &= ~0x00000002u;
1853 return _internal_code();
1856 _internal_set_code(value);
1860inline ::int32_t StatusProto::_internal_code()
const {
1861 ::google::protobuf::internal::TSanRead(&
_impl_);
1864inline void StatusProto::_internal_set_code(::int32_t value) {
1865 ::google::protobuf::internal::TSanWrite(&
_impl_);
1871 ::google::protobuf::internal::TSanWrite(&
_impl_);
1872 _impl_.message_.ClearToEmpty();
1873 _impl_._has_bits_[0] &= ~0x00000001u;
1876 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1878 return _internal_message();
1880template <
typename Arg_,
typename... Args_>
1882 ::google::protobuf::internal::TSanWrite(&
_impl_);
1883 _impl_._has_bits_[0] |= 0x00000001u;
1884 _impl_.message_.Set(
static_cast<Arg_&&
>(arg), args..., GetArena());
1888 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1889 ::std::string* _s = _internal_mutable_message();
1893inline const ::std::string& StatusProto::_internal_message()
const {
1894 ::google::protobuf::internal::TSanRead(&
_impl_);
1895 return _impl_.message_.Get();
1897inline void StatusProto::_internal_set_message(const ::std::string& value) {
1898 ::google::protobuf::internal::TSanWrite(&
_impl_);
1899 _impl_._has_bits_[0] |= 0x00000001u;
1900 _impl_.message_.Set(value, GetArena());
1902inline ::std::string* PROTOBUF_NONNULL StatusProto::_internal_mutable_message() {
1903 ::google::protobuf::internal::TSanWrite(&
_impl_);
1904 _impl_._has_bits_[0] |= 0x00000001u;
1905 return _impl_.message_.Mutable( GetArena());
1908 ::google::protobuf::internal::TSanWrite(&
_impl_);
1910 if ((
_impl_._has_bits_[0] & 0x00000001u) == 0) {
1913 _impl_._has_bits_[0] &= ~0x00000001u;
1914 auto* released =
_impl_.message_.Release();
1915 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
1916 _impl_.message_.Set(
"", GetArena());
1921 ::google::protobuf::internal::TSanWrite(&
_impl_);
1922 if (value !=
nullptr) {
1923 _impl_._has_bits_[0] |= 0x00000001u;
1925 _impl_._has_bits_[0] &= ~0x00000001u;
1927 _impl_.message_.SetAllocated(value, GetArena());
1928 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() &&
_impl_.message_.IsDefault()) {
1929 _impl_.message_.Set(
"", GetArena());
1935#pragma GCC diagnostic pop
1945#include "google/protobuf/port_undef.inc"
void set_allocated_initializer(::operations_research::math_opt::SolverInitializerProto *PROTOBUF_NULLABLE value)
void unsafe_arena_set_allocated_initializer(::operations_research::math_opt::SolverInitializerProto *PROTOBUF_NULLABLE value)
static constexpr auto InternalNewImpl_()
const ::operations_research::math_opt::SolverInitializerProto & initializer() const
const ::operations_research::math_opt::ModelProto & model() const
const ::operations_research::math_opt::ModelSolveParametersProto & model_parameters() const
void set_allocated_model_parameters(::operations_research::math_opt::ModelSolveParametersProto *PROTOBUF_NULLABLE value)
::size_t ByteSizeLong() const final
::operations_research::math_opt::SolverResourcesProto *PROTOBUF_NULLABLE release_resources()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
::operations_research::math_opt::SolverResourcesProto *PROTOBUF_NULLABLE unsafe_arena_release_resources()
void clear_model_parameters()
void unsafe_arena_set_allocated_model_parameters(::operations_research::math_opt::ModelSolveParametersProto *PROTOBUF_NULLABLE value)
void CopyFrom(const SolveRequest &from)
void set_allocated_parameters(::operations_research::math_opt::SolveParametersProto *PROTOBUF_NULLABLE value)
void set_allocated_resources(::operations_research::math_opt::SolverResourcesProto *PROTOBUF_NULLABLE value)
::operations_research::math_opt::SolveParametersProto *PROTOBUF_NULLABLE unsafe_arena_release_parameters()
::operations_research::math_opt::ModelProto *PROTOBUF_NONNULL mutable_model()
void unsafe_arena_set_allocated_resources(::operations_research::math_opt::SolverResourcesProto *PROTOBUF_NULLABLE value)
::operations_research::math_opt::SolverTypeProto solver_type() const
::operations_research::math_opt::ModelSolveParametersProto *PROTOBUF_NONNULL mutable_model_parameters()
::google::protobuf::Metadata GetMetadata() const
bool has_model() const
.operations_research.math_opt.ModelProto model = 2;
bool has_parameters() const
.operations_research.math_opt.SolveParametersProto parameters = 4;
void MergeFrom(const SolveRequest &from)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
friend void swap(SolveRequest &a, SolveRequest &b)
SolveRequest *PROTOBUF_NONNULL New(::google::protobuf::Arena *PROTOBUF_NULLABLE arena=nullptr) const
implements Message -------------------------------------------—
::operations_research::math_opt::SolverInitializerProto *PROTOBUF_NONNULL mutable_initializer()
::operations_research::math_opt::SolverInitializerProto *PROTOBUF_NULLABLE unsafe_arena_release_initializer()
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
void unsafe_arena_set_allocated_model(::operations_research::math_opt::ModelProto *PROTOBUF_NULLABLE value)
bool IsInitialized() const
SolveRequest & operator=(const SolveRequest &from)
bool has_initializer() const
.operations_research.math_opt.SolverInitializerProto initializer = 3;
::operations_research::math_opt::ModelProto *PROTOBUF_NULLABLE unsafe_arena_release_model()
::operations_research::math_opt::ModelSolveParametersProto *PROTOBUF_NULLABLE unsafe_arena_release_model_parameters()
void set_allocated_model(::operations_research::math_opt::ModelProto *PROTOBUF_NULLABLE value)
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
@ kInitializerFieldNumber
@ kModelParametersFieldNumber
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL descriptor()
void clear_solver_type()
.operations_research.math_opt.SolverTypeProto solver_type = 1;
::operations_research::math_opt::SolveParametersProto *PROTOBUF_NONNULL mutable_parameters()
bool has_model_parameters() const
.operations_research.math_opt.ModelSolveParametersProto model_parameters = 5;
::operations_research::math_opt::ModelSolveParametersProto *PROTOBUF_NULLABLE release_model_parameters()
::operations_research::math_opt::SolveParametersProto *PROTOBUF_NULLABLE release_parameters()
const ::operations_research::math_opt::SolveParametersProto & parameters() const
::operations_research::math_opt::SolverInitializerProto *PROTOBUF_NULLABLE release_initializer()
::operations_research::math_opt::ModelProto *PROTOBUF_NULLABLE release_model()
static constexpr auto InternalGenerateClassData_()
bool has_resources() const
.operations_research.math_opt.SolverResourcesProto resources = 6;
::operations_research::math_opt::SolverResourcesProto *PROTOBUF_NONNULL mutable_resources()
void Swap(SolveRequest *PROTOBUF_NONNULL other)
void unsafe_arena_set_allocated_parameters(::operations_research::math_opt::SolveParametersProto *PROTOBUF_NULLABLE value)
void set_solver_type(::operations_research::math_opt::SolverTypeProto value)
friend class ::google::protobuf::Arena
const ::operations_research::math_opt::SolverResourcesProto & resources() const
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL GetDescriptor()
friend class ::google::protobuf::MessageLite
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL descriptor()
const ::operations_research::math_opt::StatusProto & status() const
void MergeFrom(const SolveResponse &from)
::google::protobuf::RepeatedPtrField<::std::string > *PROTOBUF_NONNULL mutable_messages()
::operations_research::math_opt::StatusProto *PROTOBUF_NULLABLE unsafe_arena_release_status()
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL GetDescriptor()
void unsafe_arena_set_allocated_result(::operations_research::math_opt::SolveResultProto *PROTOBUF_NULLABLE value)
static const SolveResponse & default_instance()
const ::google::protobuf::RepeatedPtrField<::std::string > & messages() const
::size_t ByteSizeLong() const final
::operations_research::math_opt::SolveResultProto *PROTOBUF_NULLABLE release_result()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
void CopyFrom(const SolveResponse &from)
void set_allocated_status(::operations_research::math_opt::StatusProto *PROTOBUF_NULLABLE value)
bool has_result() const
.operations_research.math_opt.SolveResultProto result = 1;
inline ::google::protobuf::UnknownFieldSet *PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND
::operations_research::math_opt::StatusProto *PROTOBUF_NULLABLE release_status()
void Swap(SolveResponse *PROTOBUF_NONNULL other)
::std::string *PROTOBUF_NONNULL mutable_messages(int index)
::operations_research::math_opt::SolveResultProto *PROTOBUF_NULLABLE unsafe_arena_release_result()
::std::string *PROTOBUF_NONNULL add_messages()
void unsafe_arena_set_allocated_status(::operations_research::math_opt::StatusProto *PROTOBUF_NULLABLE value)
bool has_status() const
.operations_research.math_opt.StatusProto status = 3;
friend void swap(SolveResponse &a, SolveResponse &b)
void set_allocated_result(::operations_research::math_opt::SolveResultProto *PROTOBUF_NULLABLE value)
const ::std::string & messages(int index) const
static constexpr int kIndexInFileMessages
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
void set_messages(int index, Arg_ &&value, Args_... args)
::operations_research::math_opt::StatusProto *PROTOBUF_NONNULL mutable_status()
const ::operations_research::math_opt::SolveResultProto & result() const
bool IsInitialized() const
::operations_research::math_opt::SolveResultProto *PROTOBUF_NONNULL mutable_result()
SolveResponse & operator=(const SolveResponse &from)
StatusOrCase status_or_case() const
int messages_size() const
repeated string messages = 2;
PROTOBUF_CONSTEXPR SolverResourcesProto(::google::protobuf::internal::ConstantInitialized)
friend class ::google::protobuf::MessageLite
void CopyFrom(const SolverResourcesProto &from)
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL GetDescriptor()
static const SolverResourcesProto & default_instance()
void MergeFrom(const SolverResourcesProto &from)
static const ::google::protobuf::Reflection *PROTOBUF_NONNULL GetReflection()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
SolverResourcesProto & operator=(const SolverResourcesProto &from)
::size_t ByteSizeLong() const final
bool IsInitialized() const
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
bool has_cpu() const
optional double cpu = 1;
bool has_ram() const
optional double ram = 2;
void set_ram(double value)
void Swap(SolverResourcesProto *PROTOBUF_NONNULL other)
void set_cpu(double value)
friend class ::google::protobuf::MessageLite
::std::string *PROTOBUF_NONNULL mutable_message()
void Swap(StatusProto *PROTOBUF_NONNULL other)
void set_allocated_message(::std::string *PROTOBUF_NULLABLE value)
bool IsInitialized() const
void CopyFrom(const StatusProto &from)
StatusProto & operator=(const StatusProto &from)
const ::std::string & message() const
void set_code(::int32_t value)
void clear_message()
string message = 2;
void set_message(Arg_ &&arg, Args_... args)
PROTOBUF_CONSTEXPR StatusProto(::google::protobuf::internal::ConstantInitialized)
StatusProto(const StatusProto &from)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
StatusProto(::google::protobuf::Arena *PROTOBUF_NULLABLE arena, StatusProto &&from) noexcept
void clear_code()
int32 code = 1;
::std::string *PROTOBUF_NULLABLE release_message()
::absl::string_view GetAnyMessageName()
An object oriented wrapper for quadratic constraints in ModelStorage.
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ModelProtoDefaultTypeInternal _ModelProto_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 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_
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_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SolveRequestDefaultTypeInternal _SolveRequest_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SolverResourcesProto_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SolveRequest_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StatusProtoDefaultTypeInternal _StatusProto_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SolveResponseDefaultTypeInternal _SolveResponse_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull StatusProto_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SolveResponse_class_data_
In SWIG mode, we don't want anything besides these top-level includes.
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2frpc_2eproto
::operations_research::math_opt::SolveResultProto *PROTOBUF_NULLABLE result_
::operations_research::math_opt::StatusProto *PROTOBUF_NULLABLE status_