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 != 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"
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"; }
216 explicit StatusProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
219 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
StatusProto&& from) noexcept
221 *
this = ::std::move(from);
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_();
230 static constexpr auto InternalGenerateClassData_();
232 ::
google::protobuf::Metadata GetMetadata() const;
237 kMessageFieldNumber = 2,
238 kCodeFieldNumber = 1,
242 const ::std::string&
message()
const;
243 template <
typename Arg_ = const ::std::string&,
typename... Args_>
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();
257 ::int32_t
code()
const;
261 ::int32_t _internal_code()
const;
262 void _internal_set_code(::int32_t value);
268 friend class ::google::protobuf::internal::TcParser;
269 static const ::google::protobuf::internal::TcParseTable<1, 2,
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;
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,
289 ::google::protobuf::internal::HasBits<1> _has_bits_;
290 ::google::protobuf::internal::CachedSize _cached_size_;
291 ::google::protobuf::internal::ArenaStringPtr message_;
293 PROTOBUF_TSAN_DECLARE_MEMBER
295 union { Impl_ _impl_; };
296 friend struct ::TableStruct_ortools_2fmath_5fopt_2frpc_2eproto;
308#if defined(PROTOBUF_CUSTOM_VTABLE)
315 template <
typename =
void>
316 explicit PROTOBUF_CONSTEXPR
SolverResourcesProto(::google::protobuf::internal::ConstantInitialized);
326 if (
this == &from)
return *
this;
327 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
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>();
344 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
345 return GetDescriptor();
347 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL
GetDescriptor() {
350 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL
GetReflection() {
357 static constexpr int kIndexInFileMessages = 0;
359 inline void Swap(SolverResourcesProto* PROTOBUF_NONNULL other) {
360 if (other ==
this)
return;
361 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
364 ::google::protobuf::internal::GenericSwap(
this, other);
367 void UnsafeArenaSwap(SolverResourcesProto* PROTOBUF_NONNULL other) {
368 if (other ==
this)
return;
369 ABSL_DCHECK(GetArena() == other->GetArena());
375 SolverResourcesProto* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena =
nullptr)
const {
376 return ::google::protobuf::Message::DefaultConstruct<SolverResourcesProto>(arena);
378 using ::google::protobuf::Message::CopyFrom;
380 using ::google::protobuf::Message::MergeFrom;
384 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
385 const ::google::protobuf::MessageLite& from_msg);
391 ABSL_ATTRIBUTE_REINITIALIZES
void Clear() PROTOBUF_FINAL;
392 #if defined(PROTOBUF_CUSTOM_VTABLE)
394 static ::size_t
ByteSizeLong(const ::google::protobuf::MessageLite& msg);
396 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
397 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
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);
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;
412 int GetCachedSize()
const {
return _impl_._cached_size_.Get(); }
415 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
419 template <
typename T>
421 static ::absl::string_view FullMessageName() {
return "operations_research.math_opt.SolverResourcesProto"; }
428 *
this = ::std::move(from);
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_();
437 static constexpr auto InternalGenerateClassData_();
439 ::
google::protobuf::Metadata GetMetadata() const;
454 double _internal_cpu()
const;
455 void _internal_set_cpu(
double value);
465 double _internal_ram()
const;
466 void _internal_set_ram(
double value);
472 friend class ::google::protobuf::internal::TcParser;
473 static const ::google::protobuf::internal::TcParseTable<1, 2,
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;
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,
493 ::google::protobuf::internal::HasBits<1> _has_bits_;
494 ::google::protobuf::internal::CachedSize _cached_size_;
497 PROTOBUF_TSAN_DECLARE_MEMBER
499 union { Impl_ _impl_; };
500 friend struct ::TableStruct_ortools_2fmath_5fopt_2frpc_2eproto;
506class OR_PROTO_DLL
SolveResponse final :
public ::google::protobuf::Message
512#if defined(PROTOBUF_CUSTOM_VTABLE)
513 void operator delete(
SolveResponse* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
515 ::google::protobuf::internal::SizedDelete(msg,
sizeof(
SolveResponse));
519 template <
typename =
void>
520 explicit PROTOBUF_CONSTEXPR
SolveResponse(::google::protobuf::internal::ConstantInitialized);
523 inline SolveResponse(SolveResponse&& from) noexcept
530 if (
this == &from)
return *
this;
531 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
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);
544 ABSL_ATTRIBUTE_LIFETIME_BOUND {
545 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
548 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL
descriptor() {
551 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
554 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
569 if (other ==
this)
return;
570 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
573 ::google::protobuf::internal::GenericSwap(
this, other);
576 void UnsafeArenaSwap(SolveResponse* PROTOBUF_NONNULL other) {
577 if (other ==
this)
return;
578 ABSL_DCHECK(GetArena() == other->GetArena());
584 SolveResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena =
nullptr)
const {
585 return ::google::protobuf::Message::DefaultConstruct<SolveResponse>(arena);
587 using ::google::protobuf::Message::CopyFrom;
589 using ::google::protobuf::Message::MergeFrom;
593 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
594 const ::google::protobuf::MessageLite& from_msg);
600 ABSL_ATTRIBUTE_REINITIALIZES
void Clear() PROTOBUF_FINAL;
601 #if defined(PROTOBUF_CUSTOM_VTABLE)
603 static ::size_t
ByteSizeLong(const ::google::protobuf::MessageLite& msg);
605 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
606 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
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);
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;
621 int GetCachedSize()
const {
return _impl_._cached_size_.Get(); }
624 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
628 template <
typename T>
630 static ::absl::string_view FullMessageName() {
return "operations_research.math_opt.SolveResponse"; }
632 explicit SolveResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
635 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
SolveResponse&& from) noexcept
637 *
this = ::std::move(from);
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_();
646 static constexpr auto InternalGenerateClassData_();
648 ::
google::protobuf::Metadata GetMetadata() const;
653 kMessagesFieldNumber = 2,
654 kResultFieldNumber = 1,
655 kStatusFieldNumber = 3,
660 int _internal_messages_size()
const;
664 const ::std::string&
messages(
int index)
const;
666 template <
typename Arg_ = const ::std::string&,
typename... Args_>
667 void set_messages(
int index, Arg_&& value, Args_... args);
669 template <
typename Arg_ = const ::std::string&,
typename... Args_>
671 const ::google::protobuf::RepeatedPtrField<::std::string>&
messages()
const;
672 ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL
mutable_messages();
675 const ::google::protobuf::RepeatedPtrField<::std::string>& _internal_messages()
const;
676 ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL _internal_mutable_messages();
682 bool _internal_has_result()
const;
686 const ::operations_research::math_opt::SolveResultProto&
result()
const;
694 const ::operations_research::math_opt::SolveResultProto& _internal_result()
const;
701 bool _internal_has_status()
const;
705 const ::operations_research::math_opt::StatusProto&
status()
const;
713 const ::operations_research::math_opt::StatusProto& _internal_status()
const;
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,
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;
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,
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_;
756 ::uint32_t _oneof_case_[1];
757 PROTOBUF_TSAN_DECLARE_MEMBER
760 friend struct ::TableStruct_ortools_2fmath_5fopt_2frpc_2eproto;
766class OR_PROTO_DLL
SolveRequest final :
public ::google::protobuf::Message
772#if defined(PROTOBUF_CUSTOM_VTABLE)
773 void operator delete(
SolveRequest* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
775 ::google::protobuf::internal::SizedDelete(msg,
sizeof(
SolveRequest));
779 template <
typename =
void>
780 explicit PROTOBUF_CONSTEXPR
SolveRequest(::google::protobuf::internal::ConstantInitialized);
783 inline SolveRequest(SolveRequest&& from) noexcept
784 : SolveRequest(
nullptr, ::std::move(from)) {}
790 if (
this == &from)
return *
this;
791 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
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);
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>();
808 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL
descriptor() {
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;
821 static constexpr int kIndexInFileMessages = 1;
823 inline void Swap(
SolveRequest* PROTOBUF_NONNULL other) {
824 if (other ==
this)
return;
825 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
828 ::google::protobuf::internal::GenericSwap(
this, other);
831 void UnsafeArenaSwap(SolveRequest* PROTOBUF_NONNULL other) {
832 if (other ==
this)
return;
833 ABSL_DCHECK(GetArena() == other->GetArena());
839 SolveRequest* PROTOBUF_NONNULL
New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena =
nullptr)
const {
840 return ::google::protobuf::Message::DefaultConstruct<SolveRequest>(arena);
842 using ::google::protobuf::Message::CopyFrom;
844 using ::google::protobuf::Message::MergeFrom;
848 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
849 const ::google::protobuf::MessageLite& from_msg);
855 ABSL_ATTRIBUTE_REINITIALIZES
void Clear() PROTOBUF_FINAL;
856 #if defined(PROTOBUF_CUSTOM_VTABLE)
858 static ::size_t
ByteSizeLong(const ::google::protobuf::MessageLite& msg);
860 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
861 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
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);
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;
876 int GetCachedSize()
const {
return _impl_._cached_size_.Get(); }
879 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
880 static void SharedDtor(MessageLite& self);
883 template <
typename T>
885 static ::absl::string_view FullMessageName() {
return "operations_research.math_opt.SolveRequest"; }
887 explicit SolveRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
890 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
SolveRequest&& from) noexcept
892 *
this = ::std::move(from);
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_();
901 static constexpr auto InternalGenerateClassData_();
903 ::
google::protobuf::Metadata GetMetadata() const;
908 kModelFieldNumber = 2,
909 kInitializerFieldNumber = 3,
910 kParametersFieldNumber = 4,
911 kModelParametersFieldNumber = 5,
912 kResourcesFieldNumber = 6,
918 const ::operations_research::math_opt::ModelProto&
model()
const;
926 const ::operations_research::math_opt::ModelProto& _internal_model()
const;
933 const ::operations_research::math_opt::SolverInitializerProto&
initializer()
const;
941 const ::operations_research::math_opt::SolverInitializerProto& _internal_initializer()
const;
948 const ::operations_research::math_opt::SolveParametersProto&
parameters()
const;
956 const ::operations_research::math_opt::SolveParametersProto& _internal_parameters()
const;
963 const ::operations_research::math_opt::ModelSolveParametersProto&
model_parameters()
const;
971 const ::operations_research::math_opt::ModelSolveParametersProto& _internal_model_parameters()
const;
978 const ::operations_research::math_opt::SolverResourcesProto&
resources()
const;
986 const ::operations_research::math_opt::SolverResourcesProto& _internal_resources()
const;
1003 friend class ::google::protobuf::internal::TcParser;
1004 static const ::google::protobuf::internal::TcParseTable<3, 6,
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;
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,
1024 ::google::protobuf::internal::HasBits<1> _has_bits_;
1025 ::google::protobuf::internal::CachedSize _cached_size_;
1032 PROTOBUF_TSAN_DECLARE_MEMBER
1034 union { Impl_ _impl_; };
1035 friend struct ::TableStruct_ortools_2fmath_5fopt_2frpc_2eproto;
1049#pragma GCC diagnostic push
1050#pragma GCC diagnostic ignored "-Wstrict-aliasing"
1058 bool value = CheckHasBit(
_impl_._has_bits_[0], 0x00000001U);
1062 ::google::protobuf::internal::TSanWrite(&
_impl_);
1064 ClearHasBit(
_impl_._has_bits_[0],
1069 return _internal_cpu();
1072 _internal_set_cpu(value);
1073 SetHasBit(
_impl_._has_bits_[0], 0x00000001U);
1076inline double SolverResourcesProto::_internal_cpu()
const {
1077 ::google::protobuf::internal::TSanRead(&
_impl_);
1080inline void SolverResourcesProto::_internal_set_cpu(
double value) {
1081 ::google::protobuf::internal::TSanWrite(&
_impl_);
1087 bool value = CheckHasBit(
_impl_._has_bits_[0], 0x00000002U);
1091 ::google::protobuf::internal::TSanWrite(&
_impl_);
1093 ClearHasBit(
_impl_._has_bits_[0],
1098 return _internal_ram();
1101 _internal_set_ram(value);
1102 SetHasBit(
_impl_._has_bits_[0], 0x00000002U);
1105inline double SolverResourcesProto::_internal_ram()
const {
1106 ::google::protobuf::internal::TSanRead(&
_impl_);
1109inline void SolverResourcesProto::_internal_set_ram(
double value) {
1110 ::google::protobuf::internal::TSanWrite(&
_impl_);
1120 ::google::protobuf::internal::TSanWrite(&
_impl_);
1122 ClearHasBit(
_impl_._has_bits_[0],
1127 return _internal_solver_type();
1130 _internal_set_solver_type(value);
1131 SetHasBit(
_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 = CheckHasBit(
_impl_._has_bits_[0], 0x00000001U);
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 SetHasBit(
_impl_._has_bits_[0], 0x00000001U);
1168 ClearHasBit(
_impl_._has_bits_[0], 0x00000001U);
1173 ::google::protobuf::internal::TSanWrite(&
_impl_);
1175 ClearHasBit(
_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 ClearHasBit(
_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 SetHasBit(
_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 SetHasBit(
_impl_._has_bits_[0], 0x00000001U);
1229 ClearHasBit(
_impl_._has_bits_[0], 0x00000001U);
1238 bool value = CheckHasBit(
_impl_._has_bits_[0], 0x00000010U);
1239 PROTOBUF_ASSUME(!value ||
_impl_.resources_ !=
nullptr);
1243 ::google::protobuf::internal::TSanWrite(&
_impl_);
1244 if (
_impl_.resources_ !=
nullptr)
_impl_.resources_->Clear();
1245 ClearHasBit(
_impl_._has_bits_[0],
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_;
1253inline const ::operations_research::math_opt::SolverResourcesProto&
SolveRequest::resources() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
1255 return _internal_resources();
1259 ::google::protobuf::internal::TSanWrite(&
_impl_);
1260 if (GetArena() ==
nullptr) {
1261 delete reinterpret_cast<::google::protobuf::MessageLite*
>(
_impl_.resources_);
1264 if (value !=
nullptr) {
1265 SetHasBit(
_impl_._has_bits_[0], 0x00000010U);
1267 ClearHasBit(
_impl_._has_bits_[0], 0x00000010U);
1272 ::google::protobuf::internal::TSanWrite(&
_impl_);
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) {
1284 if (GetArena() !=
nullptr) {
1285 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
1291 ::google::protobuf::internal::TSanWrite(&
_impl_);
1294 ClearHasBit(
_impl_._has_bits_[0], 0x00000010U);
1295 ::operations_research::math_opt::SolverResourcesProto* temp =
_impl_.resources_;
1296 _impl_.resources_ =
nullptr;
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());
1305 return _impl_.resources_;
1308 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1309 SetHasBit(
_impl_._has_bits_[0], 0x00000010U);
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_);
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);
1326 SetHasBit(
_impl_._has_bits_[0], 0x00000010U);
1328 ClearHasBit(
_impl_._has_bits_[0], 0x00000010U);
1337 bool value = CheckHasBit(
_impl_._has_bits_[0], 0x00000002U);
1338 PROTOBUF_ASSUME(!value ||
_impl_.initializer_ !=
nullptr);
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_;
1346inline const ::operations_research::math_opt::SolverInitializerProto&
SolveRequest::initializer() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
1348 return _internal_initializer();
1352 ::google::protobuf::internal::TSanWrite(&
_impl_);
1353 if (GetArena() ==
nullptr) {
1354 delete reinterpret_cast<::google::protobuf::MessageLite*
>(
_impl_.initializer_);
1357 if (value !=
nullptr) {
1358 SetHasBit(
_impl_._has_bits_[0], 0x00000002U);
1360 ClearHasBit(
_impl_._has_bits_[0], 0x00000002U);
1365 ::google::protobuf::internal::TSanWrite(&
_impl_);
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) {
1377 if (GetArena() !=
nullptr) {
1378 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
1384 ::google::protobuf::internal::TSanWrite(&
_impl_);
1387 ClearHasBit(
_impl_._has_bits_[0], 0x00000002U);
1388 ::operations_research::math_opt::SolverInitializerProto* temp =
_impl_.initializer_;
1389 _impl_.initializer_ =
nullptr;
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());
1398 return _impl_.initializer_;
1401 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1402 SetHasBit(
_impl_._has_bits_[0], 0x00000002U);
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_);
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);
1419 SetHasBit(
_impl_._has_bits_[0], 0x00000002U);
1421 ClearHasBit(
_impl_._has_bits_[0], 0x00000002U);
1430 bool value = CheckHasBit(
_impl_._has_bits_[0], 0x00000004U);
1431 PROTOBUF_ASSUME(!value ||
_impl_.parameters_ !=
nullptr);
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_;
1439inline const ::operations_research::math_opt::SolveParametersProto&
SolveRequest::parameters() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
1441 return _internal_parameters();
1445 ::google::protobuf::internal::TSanWrite(&
_impl_);
1446 if (GetArena() ==
nullptr) {
1447 delete reinterpret_cast<::google::protobuf::MessageLite*
>(
_impl_.parameters_);
1450 if (value !=
nullptr) {
1451 SetHasBit(
_impl_._has_bits_[0], 0x00000004U);
1453 ClearHasBit(
_impl_._has_bits_[0], 0x00000004U);
1458 ::google::protobuf::internal::TSanWrite(&
_impl_);
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) {
1470 if (GetArena() !=
nullptr) {
1471 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
1477 ::google::protobuf::internal::TSanWrite(&
_impl_);
1480 ClearHasBit(
_impl_._has_bits_[0], 0x00000004U);
1481 ::operations_research::math_opt::SolveParametersProto* temp =
_impl_.parameters_;
1482 _impl_.parameters_ =
nullptr;
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());
1491 return _impl_.parameters_;
1494 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1495 SetHasBit(
_impl_._has_bits_[0], 0x00000004U);
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_);
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);
1512 SetHasBit(
_impl_._has_bits_[0], 0x00000004U);
1514 ClearHasBit(
_impl_._has_bits_[0], 0x00000004U);
1523 bool value = CheckHasBit(
_impl_._has_bits_[0], 0x00000008U);
1524 PROTOBUF_ASSUME(!value ||
_impl_.model_parameters_ !=
nullptr);
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_;
1534 return _internal_model_parameters();
1538 ::google::protobuf::internal::TSanWrite(&
_impl_);
1539 if (GetArena() ==
nullptr) {
1540 delete reinterpret_cast<::google::protobuf::MessageLite*
>(
_impl_.model_parameters_);
1543 if (value !=
nullptr) {
1544 SetHasBit(
_impl_._has_bits_[0], 0x00000008U);
1546 ClearHasBit(
_impl_._has_bits_[0], 0x00000008U);
1551 ::google::protobuf::internal::TSanWrite(&
_impl_);
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) {
1563 if (GetArena() !=
nullptr) {
1564 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
1570 ::google::protobuf::internal::TSanWrite(&
_impl_);
1573 ClearHasBit(
_impl_._has_bits_[0], 0x00000008U);
1574 ::operations_research::math_opt::ModelSolveParametersProto* temp =
_impl_.model_parameters_;
1575 _impl_.model_parameters_ =
nullptr;
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());
1584 return _impl_.model_parameters_;
1587 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1588 SetHasBit(
_impl_._has_bits_[0], 0x00000008U);
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_);
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);
1605 SetHasBit(
_impl_._has_bits_[0], 0x00000008U);
1607 ClearHasBit(
_impl_._has_bits_[0], 0x00000008U);
1622inline bool SolveResponse::_internal_has_result()
const {
1625inline void SolveResponse::set_has_result() {
1631 clear_has_status_or();
1632 auto* temp =
_impl_.status_or_.result_;
1633 if (GetArena() !=
nullptr) {
1634 temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
1636 _impl_.status_or_.result_ =
nullptr;
1642inline const ::operations_research::math_opt::SolveResultProto& SolveResponse::_internal_result()
const {
1646inline const ::operations_research::math_opt::SolveResultProto&
SolveResponse::result() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
1648 return _internal_result();
1653 clear_has_status_or();
1654 auto* temp =
_impl_.status_or_.result_;
1655 _impl_.status_or_.result_ =
nullptr;
1673inline ::operations_research::math_opt::SolveResultProto* PROTOBUF_NONNULL SolveResponse::_internal_mutable_result() {
1678 ::google::protobuf::Message::DefaultConstruct<::operations_research::math_opt::SolveResultProto>(GetArena());
1683 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1693inline bool SolveResponse::_internal_has_status()
const {
1696inline void SolveResponse::set_has_status() {
1700 ::google::protobuf::internal::TSanWrite(&
_impl_);
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_);
1707 clear_has_status_or();
1713 clear_has_status_or();
1715 if (GetArena() !=
nullptr) {
1716 temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
1724inline const ::operations_research::math_opt::StatusProto& SolveResponse::_internal_status()
const {
1728inline const ::operations_research::math_opt::StatusProto&
SolveResponse::status() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
1730 return _internal_status();
1735 clear_has_status_or();
1736 auto* temp =
_impl_.status_or_.status_;
1737 _impl_.status_or_.status_ =
nullptr;
1755inline ::operations_research::math_opt::StatusProto* PROTOBUF_NONNULL SolveResponse::_internal_mutable_status() {
1760 ::google::protobuf::Message::DefaultConstruct<::operations_research::math_opt::StatusProto>(GetArena());
1765 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1772inline int SolveResponse::_internal_messages_size()
const {
1773 return _internal_messages().size();
1776 return _internal_messages_size();
1779 ::google::protobuf::internal::TSanWrite(&
_impl_);
1780 _impl_.messages_.Clear();
1781 ClearHasBitForRepeated(
_impl_._has_bits_[0],
1785 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1786 ::google::protobuf::internal::TSanWrite(&
_impl_);
1788 _internal_mutable_messages()->InternalAddWithArena(
1789 ::google::protobuf::MessageLite::internal_visibility(), GetArena());
1790 SetHasBitForRepeated(
_impl_._has_bits_[0], 0x00000001U);
1795 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1797 return _internal_messages().Get(index);
1800 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1802 return _internal_mutable_messages()->Mutable(index);
1804template <
typename Arg_,
typename... Args_>
1806 ::google::protobuf::internal::AssignToString(*_internal_mutable_messages()->Mutable(index), ::std::forward<Arg_>(value),
1810template <
typename Arg_,
typename... 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),
1817 SetHasBitForRepeated(
_impl_._has_bits_[0], 0x00000001U);
1821 const ABSL_ATTRIBUTE_LIFETIME_BOUND {
1823 return _internal_messages();
1825inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL
1827 SetHasBitForRepeated(
_impl_._has_bits_[0], 0x00000001U);
1829 ::google::protobuf::internal::TSanWrite(&
_impl_);
1830 return _internal_mutable_messages();
1832inline const ::google::protobuf::RepeatedPtrField<::std::string>&
1833SolveResponse::_internal_messages()
const {
1834 ::google::protobuf::internal::TSanRead(&
_impl_);
1837inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL
1838SolveResponse::_internal_mutable_messages() {
1839 ::google::protobuf::internal::TSanRead(&
_impl_);
1840 return &
_impl_.messages_;
1843inline bool SolveResponse::has_status_or()
const {
1846inline void SolveResponse::clear_has_status_or() {
1858 ::google::protobuf::internal::TSanWrite(&
_impl_);
1860 ClearHasBit(
_impl_._has_bits_[0],
1865 return _internal_code();
1868 _internal_set_code(value);
1869 SetHasBit(
_impl_._has_bits_[0], 0x00000002U);
1872inline ::int32_t StatusProto::_internal_code()
const {
1873 ::google::protobuf::internal::TSanRead(&
_impl_);
1876inline void StatusProto::_internal_set_code(::int32_t value) {
1877 ::google::protobuf::internal::TSanWrite(&
_impl_);
1883 ::google::protobuf::internal::TSanWrite(&
_impl_);
1884 _impl_.message_.ClearToEmpty();
1885 ClearHasBit(
_impl_._has_bits_[0],
1889 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1891 return _internal_message();
1893template <
typename Arg_,
typename... Args_>
1895 ::google::protobuf::internal::TSanWrite(&
_impl_);
1896 SetHasBit(
_impl_._has_bits_[0], 0x00000001U);
1897 _impl_.message_.Set(
static_cast<Arg_&&
>(arg), args..., GetArena());
1901 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1902 SetHasBit(
_impl_._has_bits_[0], 0x00000001U);
1903 ::std::string* _s = _internal_mutable_message();
1907inline const ::std::string& StatusProto::_internal_message()
const {
1908 ::google::protobuf::internal::TSanRead(&
_impl_);
1909 return _impl_.message_.Get();
1911inline void StatusProto::_internal_set_message(const ::std::string& value) {
1912 ::google::protobuf::internal::TSanWrite(&
_impl_);
1913 _impl_.message_.Set(value, GetArena());
1915inline ::std::string* PROTOBUF_NONNULL StatusProto::_internal_mutable_message() {
1916 ::google::protobuf::internal::TSanWrite(&
_impl_);
1917 return _impl_.message_.Mutable( GetArena());
1920 ::google::protobuf::internal::TSanWrite(&
_impl_);
1922 if (!CheckHasBit(
_impl_._has_bits_[0], 0x00000001U)) {
1925 ClearHasBit(
_impl_._has_bits_[0], 0x00000001U);
1926 auto* released =
_impl_.message_.Release();
1927 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
1928 _impl_.message_.Set(
"", GetArena());
1933 ::google::protobuf::internal::TSanWrite(&
_impl_);
1934 if (value !=
nullptr) {
1935 SetHasBit(
_impl_._has_bits_[0], 0x00000001U);
1937 ClearHasBit(
_impl_._has_bits_[0], 0x00000001U);
1939 _impl_.message_.SetAllocated(value, GetArena());
1940 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() &&
_impl_.message_.IsDefault()) {
1941 _impl_.message_.Set(
"", GetArena());
1947#pragma GCC diagnostic pop
1957#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)
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()
bool has_parameters() const
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
::operations_research::math_opt::SolverInitializerProto *PROTOBUF_NONNULL mutable_initializer()
::operations_research::math_opt::SolverInitializerProto *PROTOBUF_NULLABLE unsafe_arena_release_initializer()
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::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 const ::google::protobuf::Descriptor *PROTOBUF_NONNULL descriptor()
::operations_research::math_opt::SolveParametersProto *PROTOBUF_NONNULL mutable_parameters()
bool has_model_parameters() const
::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()
bool has_resources() const
::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)
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)
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)
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
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
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 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
::std::string *PROTOBUF_NULLABLE release_message()
::absl::string_view GetAnyMessageName()
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_
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_