10#include "google/protobuf/io/coded_stream.h"
11#include "google/protobuf/generated_message_tctable_impl.h"
12#include "google/protobuf/extension_set.h"
13#include "google/protobuf/generated_message_util.h"
14#include "google/protobuf/wire_format_lite.h"
15#include "google/protobuf/descriptor.h"
16#include "google/protobuf/generated_message_reflection.h"
17#include "google/protobuf/reflection_ops.h"
18#include "google/protobuf/wire_format.h"
22#include "google/protobuf/port_def.inc"
23PROTOBUF_PRAGMA_INIT_SEG
26namespace _fl = ::google::protobuf::internal::field_layout;
30inline constexpr StatusProto::Impl_::Impl_(
31 ::_pbi::ConstantInitialized) noexcept
34 &::google::protobuf::internal::fixed_address_empty_string,
35 ::_pbi::ConstantInitialized()),
40#if defined(PROTOBUF_CUSTOM_VTABLE)
43 : ::google::protobuf::Message(),
45 _impl_(::_pbi::ConstantInitialized()) {
55PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
58inline constexpr SolverResourcesProto::Impl_::Impl_(
59 ::_pbi::ConstantInitialized) noexcept
66#if defined(PROTOBUF_CUSTOM_VTABLE)
69 : ::google::protobuf::Message(),
71 _impl_(::_pbi::ConstantInitialized()) {
81PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
84inline constexpr SolveResponse::Impl_::Impl_(
85 ::_pbi::ConstantInitialized) noexcept
93#if defined(PROTOBUF_CUSTOM_VTABLE)
96 : ::google::protobuf::Message(),
98 _impl_(::_pbi::ConstantInitialized()) {
108PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
111inline constexpr SolveRequest::Impl_::Impl_(
112 ::_pbi::ConstantInitialized) noexcept
115 initializer_{
nullptr},
116 parameters_{
nullptr},
117 model_parameters_{
nullptr},
123#if defined(PROTOBUF_CUSTOM_VTABLE)
126 : ::google::protobuf::Message(),
128 _impl_(::_pbi::ConstantInitialized()) {
138PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
142static constexpr const ::_pb::EnumDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
144static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
191static const ::_pbi::MigrationSchema
206 "\n\032ortools/math_opt/rpc.proto\022\034operations"
207 "_research.math_opt\032\037ortools/math_opt/cal"
208 "lback.proto\032+ortools/math_opt/infeasible"
209 "_subsystem.proto\032\034ortools/math_opt/model"
210 ".proto\032\'ortools/math_opt/model_parameter"
211 "s.proto\032#ortools/math_opt/model_update.p"
212 "roto\032!ortools/math_opt/parameters.proto\032"
213 "\035ortools/math_opt/result.proto\"J\n\024Solver"
214 "ResourcesProto\022\020\n\003cpu\030\001 \001(\001H\000\210\001\001\022\020\n\003ram\030"
215 "\002 \001(\001H\001\210\001\001B\006\n\004_cpuB\006\n\004_ram\"\270\003\n\014SolveRequ"
216 "est\022B\n\013solver_type\030\001 \001(\0162-.operations_re"
217 "search.math_opt.SolverTypeProto\0227\n\005model"
218 "\030\002 \001(\0132(.operations_research.math_opt.Mo"
219 "delProto\022E\n\tresources\030\006 \001(\01322.operations"
220 "_research.math_opt.SolverResourcesProto\022"
221 "I\n\013initializer\030\003 \001(\01324.operations_resear"
222 "ch.math_opt.SolverInitializerProto\022F\n\npa"
223 "rameters\030\004 \001(\01322.operations_research.mat"
224 "h_opt.SolveParametersProto\022Q\n\020model_para"
225 "meters\030\005 \001(\01327.operations_research.math_"
226 "opt.ModelSolveParametersProto\"\255\001\n\rSolveR"
227 "esponse\022@\n\006result\030\001 \001(\0132..operations_res"
228 "earch.math_opt.SolveResultProtoH\000\022;\n\006sta"
229 "tus\030\003 \001(\0132).operations_research.math_opt"
230 ".StatusProtoH\000\022\020\n\010messages\030\002 \003(\tB\013\n\tstat"
231 "us_or\",\n\013StatusProto\022\014\n\004code\030\001 \001(\005\022\017\n\007me"
232 "ssage\030\002 \001(\tB\036\n\032com.google.ortools.mathop"
235static const ::_pbi::DescriptorTable* PROTOBUF_NONNULL
const
250 descriptor_table_protodef_ortools_2fmath_5fopt_2frpc_2eproto,
251 "ortools/math_opt/rpc.proto",
269 decltype(::std::declval<SolverResourcesProto>()._impl_._has_bits_);
275#if defined(PROTOBUF_CUSTOM_VTABLE)
278 : ::google::protobuf::Message(arena) {
285#if defined(PROTOBUF_CUSTOM_VTABLE)
288 : ::google::protobuf::Message(arena),
291 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
292 from._internal_metadata_);
294PROTOBUF_NDEBUG_INLINE SolverResourcesProto::Impl_::Impl_(
295 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
296 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
297 : _cached_size_{0} {}
299inline void SolverResourcesProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
300 new (&
_impl_) Impl_(internal_visibility(), arena);
301 ::memset(
reinterpret_cast<char*
>(&
_impl_) +
302 offsetof(Impl_, cpu_),
304 offsetof(Impl_, ram_) -
305 offsetof(Impl_, cpu_) +
306 sizeof(Impl_::ram_));
312inline void SolverResourcesProto::SharedDtor(
MessageLite& self) {
314 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
315 this_.CheckHasBitConsistency();
317 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
318 ABSL_DCHECK(this_.GetArena() ==
nullptr);
322inline void* PROTOBUF_NONNULL SolverResourcesProto::PlacementNew_(
323 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
324 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
327constexpr auto SolverResourcesProto::InternalNewImpl_() {
332 return ::google::protobuf::internal::ClassDataFull{
333 ::google::protobuf::internal::ClassData{
338 &SolverResourcesProto::MergeImpl,
339 ::google::protobuf::Message::GetNewImpl<SolverResourcesProto>(),
340#if defined(PROTOBUF_CUSTOM_VTABLE)
341 &SolverResourcesProto::SharedDtor,
348 &SolverResourcesProto::kDescriptorMethods,
354PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
358PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
359SolverResourcesProto::GetClassData()
const {
364PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
365const ::_pbi::TcParseTable<1, 2, 0, 0, 2>
366SolverResourcesProto::_table_ = {
371 offsetof(
decltype(_table_), field_lookup_table),
373 offsetof(
decltype(_table_), field_entries),
376 offsetof(
decltype(_table_), field_names),
379 ::_pbi::TcParser::GenericFallback,
380 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
381 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SolverResourcesProto>(),
385 {::_pbi::TcParser::FastF64S1,
389 {::_pbi::TcParser::FastF64S1,
406 ::google::protobuf::internal::TSanWrite(&
_impl_);
407 ::uint32_t cached_has_bits = 0;
409 (void) cached_has_bits;
411 cached_has_bits =
_impl_._has_bits_[0];
412 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
413 ::memset(&
_impl_.cpu_, 0,
static_cast<::
size_t>(
414 reinterpret_cast<char*
>(&
_impl_.ram_) -
415 reinterpret_cast<char*
>(&
_impl_.cpu_)) +
sizeof(
_impl_.ram_));
417 _impl_._has_bits_.Clear();
418 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
421#if defined(PROTOBUF_CUSTOM_VTABLE)
423 const ::google::protobuf::MessageLite&
base, ::uint8_t* PROTOBUF_NONNULL target,
424 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
428 ::uint8_t* PROTOBUF_NONNULL target,
429 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
432 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
433 this_.CheckHasBitConsistency();
436 ::uint32_t cached_has_bits = 0;
437 (void)cached_has_bits;
439 cached_has_bits = this_.
_impl_._has_bits_[0];
441 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
442 target = stream->EnsureSpace(target);
443 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
444 1, this_._internal_cpu(), target);
448 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
449 target = stream->EnsureSpace(target);
450 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
451 2, this_._internal_ram(), target);
454 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
456 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
457 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
463#if defined(PROTOBUF_CUSTOM_VTABLE)
471 ::size_t total_size = 0;
473 ::uint32_t cached_has_bits = 0;
475 (void)cached_has_bits;
477 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
478 cached_has_bits = this_.
_impl_._has_bits_[0];
479 total_size += ::absl::popcount(0x00000003U & cached_has_bits) * 9;
480 return this_.MaybeComputeUnknownFieldsSize(total_size,
481 &this_.
_impl_._cached_size_);
484void SolverResourcesProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
485 const ::google::protobuf::MessageLite& from_msg) {
489 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
490 from.CheckHasBitConsistency();
493 ABSL_DCHECK_NE(&from, _this);
494 ::uint32_t cached_has_bits = 0;
495 (void)cached_has_bits;
497 cached_has_bits = from.
_impl_._has_bits_[0];
498 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
499 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
500 _this->_impl_.cpu_ = from.
_impl_.cpu_;
502 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
503 _this->_impl_.ram_ = from.
_impl_.ram_;
506 _this->_impl_._has_bits_[0] |= cached_has_bits;
507 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
508 from._internal_metadata_);
513 if (&from ==
this)
return;
519void SolverResourcesProto::InternalSwap(
SolverResourcesProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
521 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
522 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
523 ::google::protobuf::internal::memswap<
527 reinterpret_cast<char*
>(&
_impl_.cpu_),
528 reinterpret_cast<char*
>(&other->_impl_.cpu_));
532 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
539 decltype(::std::declval<SolveRequest>()._impl_._has_bits_);
545 ::google::protobuf::internal::TSanWrite(&
_impl_);
547 ClearHasBit(
_impl_._has_bits_[0],
551 ::google::protobuf::internal::TSanWrite(&
_impl_);
553 ClearHasBit(
_impl_._has_bits_[0],
557 ::google::protobuf::internal::TSanWrite(&
_impl_);
559 ClearHasBit(
_impl_._has_bits_[0],
563 ::google::protobuf::internal::TSanWrite(&
_impl_);
564 if (
_impl_.model_parameters_ !=
nullptr)
_impl_.model_parameters_->Clear();
565 ClearHasBit(
_impl_._has_bits_[0],
569#if defined(PROTOBUF_CUSTOM_VTABLE)
572 : ::google::protobuf::Message(arena) {
577PROTOBUF_NDEBUG_INLINE SolveRequest::Impl_::Impl_(
578 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
579 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
580 [[maybe_unused]] const ::operations_research::math_opt::SolveRequest& from_msg)
581 : _has_bits_{from._has_bits_},
585 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
586 const SolveRequest& from)
587#if defined(PROTOBUF_CUSTOM_VTABLE)
590 : ::google::protobuf::Message(arena) {
592 SolveRequest*
const _this =
this;
594 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
595 from._internal_metadata_);
596 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
597 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
598 _impl_.model_ = (CheckHasBit(cached_has_bits, 0x00000001U))
599 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.model_)
601 _impl_.initializer_ = (CheckHasBit(cached_has_bits, 0x00000002U))
602 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.initializer_)
604 _impl_.parameters_ = (CheckHasBit(cached_has_bits, 0x00000004U))
605 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.parameters_)
607 _impl_.model_parameters_ = (CheckHasBit(cached_has_bits, 0x00000008U))
608 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.model_parameters_)
610 _impl_.resources_ = (CheckHasBit(cached_has_bits, 0x00000010U))
611 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.resources_)
613 _impl_.solver_type_ = from._impl_.solver_type_;
617PROTOBUF_NDEBUG_INLINE SolveRequest::Impl_::Impl_(
618 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
619 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
620 : _cached_size_{0} {}
622inline void SolveRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
623 new (&
_impl_) Impl_(internal_visibility(), arena);
624 ::memset(
reinterpret_cast<char*
>(&
_impl_) +
625 offsetof(Impl_, model_),
627 offsetof(Impl_, solver_type_) -
628 offsetof(Impl_, model_) +
629 sizeof(Impl_::solver_type_));
635inline void SolveRequest::SharedDtor(MessageLite& self) {
637 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
638 this_.CheckHasBitConsistency();
640 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
641 ABSL_DCHECK(this_.GetArena() ==
nullptr);
642 delete this_.
_impl_.model_;
643 delete this_.
_impl_.initializer_;
644 delete this_.
_impl_.parameters_;
645 delete this_.
_impl_.model_parameters_;
646 delete this_.
_impl_.resources_;
650inline void* PROTOBUF_NONNULL SolveRequest::PlacementNew_(
651 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
652 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
655constexpr auto SolveRequest::InternalNewImpl_() {
656 return ::google::protobuf::internal::MessageCreator::ZeroInit(
sizeof(
SolveRequest),
660 return ::google::protobuf::internal::ClassDataFull{
661 ::google::protobuf::internal::ClassData{
666 &SolveRequest::MergeImpl,
667 ::google::protobuf::Message::GetNewImpl<SolveRequest>(),
668#if defined(PROTOBUF_CUSTOM_VTABLE)
669 &SolveRequest::SharedDtor,
676 &SolveRequest::kDescriptorMethods,
682PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
686PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
687SolveRequest::GetClassData()
const {
692PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
693const ::_pbi::TcParseTable<3, 6, 5, 0, 2>
694SolveRequest::_table_ = {
696 PROTOBUF_FIELD_OFFSET(SolveRequest, _impl_._has_bits_),
699 offsetof(
decltype(_table_), field_lookup_table),
701 offsetof(
decltype(_table_), field_entries),
704 offsetof(
decltype(_table_), aux_entries),
707 ::_pbi::TcParser::GenericFallback,
708 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
709 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SolveRequest>(),
712 {::_pbi::TcParser::MiniParse, {}},
714 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(
SolveRequest, _impl_.solver_type_), 5>(),
716 PROTOBUF_FIELD_OFFSET(
SolveRequest, _impl_.solver_type_)}},
718 {::_pbi::TcParser::FastMtS1,
722 {::_pbi::TcParser::FastMtS1,
724 PROTOBUF_FIELD_OFFSET(
SolveRequest, _impl_.initializer_)}},
726 {::_pbi::TcParser::FastMtS1,
728 PROTOBUF_FIELD_OFFSET(
SolveRequest, _impl_.parameters_)}},
730 {::_pbi::TcParser::FastMtS1,
732 PROTOBUF_FIELD_OFFSET(
SolveRequest, _impl_.model_parameters_)}},
734 {::_pbi::TcParser::FastMtS1,
736 PROTOBUF_FIELD_OFFSET(
SolveRequest, _impl_.resources_)}},
737 {::_pbi::TcParser::MiniParse, {}},
742 {PROTOBUF_FIELD_OFFSET(
SolveRequest, _impl_.solver_type_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
744 {PROTOBUF_FIELD_OFFSET(
SolveRequest, _impl_.model_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
746 {PROTOBUF_FIELD_OFFSET(
SolveRequest, _impl_.initializer_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
748 {PROTOBUF_FIELD_OFFSET(
SolveRequest, _impl_.parameters_), _Internal::kHasBitsOffset + 2, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
750 {PROTOBUF_FIELD_OFFSET(
SolveRequest, _impl_.model_parameters_), _Internal::kHasBitsOffset + 3, 3, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
752 {PROTOBUF_FIELD_OFFSET(
SolveRequest, _impl_.resources_), _Internal::kHasBitsOffset + 4, 4, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
755 {::_pbi::TcParser::GetTable<::operations_research::math_opt::ModelProto>()},
756 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SolverInitializerProto>()},
757 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SolveParametersProto>()},
758 {::_pbi::TcParser::GetTable<::operations_research::math_opt::ModelSolveParametersProto>()},
759 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SolverResourcesProto>()},
766 ::google::protobuf::internal::TSanWrite(&
_impl_);
767 ::uint32_t cached_has_bits = 0;
769 (void) cached_has_bits;
771 cached_has_bits =
_impl_._has_bits_[0];
772 if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
773 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
774 ABSL_DCHECK(
_impl_.model_ !=
nullptr);
777 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
778 ABSL_DCHECK(
_impl_.initializer_ !=
nullptr);
781 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
782 ABSL_DCHECK(
_impl_.parameters_ !=
nullptr);
785 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
786 ABSL_DCHECK(
_impl_.model_parameters_ !=
nullptr);
789 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
790 ABSL_DCHECK(
_impl_.resources_ !=
nullptr);
791 _impl_.resources_->Clear();
795 _impl_._has_bits_.Clear();
796 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
799#if defined(PROTOBUF_CUSTOM_VTABLE)
801 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
802 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
806 ::uint8_t* PROTOBUF_NONNULL target,
807 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
810 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
811 this_.CheckHasBitConsistency();
814 ::uint32_t cached_has_bits = 0;
815 (void)cached_has_bits;
817 cached_has_bits = this_.
_impl_._has_bits_[0];
819 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
820 if (this_._internal_solver_type() != 0) {
821 target = stream->EnsureSpace(target);
822 target = ::_pbi::WireFormatLite::WriteEnumToArray(
823 1, this_._internal_solver_type(), target);
828 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
829 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
835 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
836 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
842 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
843 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
849 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
850 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
856 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
857 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
862 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
864 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
865 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
871#if defined(PROTOBUF_CUSTOM_VTABLE)
879 ::size_t total_size = 0;
881 ::uint32_t cached_has_bits = 0;
883 (void)cached_has_bits;
885 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
886 cached_has_bits = this_.
_impl_._has_bits_[0];
887 if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) {
889 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
891 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_.
_impl_.model_);
894 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
896 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_.
_impl_.initializer_);
899 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
901 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_.
_impl_.parameters_);
904 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
906 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_.
_impl_.model_parameters_);
909 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
911 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_.
_impl_.resources_);
914 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
915 if (this_._internal_solver_type() != 0) {
917 ::_pbi::WireFormatLite::EnumSize(this_._internal_solver_type());
921 return this_.MaybeComputeUnknownFieldsSize(total_size,
922 &this_.
_impl_._cached_size_);
925void SolveRequest::MergeImpl(::google::protobuf::MessageLite& to_msg,
926 const ::google::protobuf::MessageLite& from_msg) {
929 auto& from =
static_cast<const SolveRequest&
>(from_msg);
930 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
931 from.CheckHasBitConsistency();
935 ABSL_DCHECK_NE(&from, _this);
936 ::uint32_t cached_has_bits = 0;
937 (void)cached_has_bits;
939 cached_has_bits = from._impl_._has_bits_[0];
940 if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) {
941 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
942 ABSL_DCHECK(from._impl_.model_ !=
nullptr);
943 if (_this->_impl_.model_ ==
nullptr) {
944 _this->_impl_.model_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.model_);
946 _this->_impl_.model_->MergeFrom(*from._impl_.model_);
949 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
950 ABSL_DCHECK(from._impl_.initializer_ !=
nullptr);
951 if (_this->_impl_.initializer_ ==
nullptr) {
952 _this->_impl_.initializer_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.initializer_);
954 _this->_impl_.initializer_->MergeFrom(*from._impl_.initializer_);
957 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
958 ABSL_DCHECK(from._impl_.parameters_ !=
nullptr);
959 if (_this->_impl_.parameters_ ==
nullptr) {
960 _this->_impl_.parameters_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.parameters_);
962 _this->_impl_.parameters_->MergeFrom(*from._impl_.parameters_);
965 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
966 ABSL_DCHECK(from._impl_.model_parameters_ !=
nullptr);
967 if (_this->_impl_.model_parameters_ ==
nullptr) {
968 _this->_impl_.model_parameters_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.model_parameters_);
970 _this->_impl_.model_parameters_->MergeFrom(*from._impl_.model_parameters_);
973 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
974 ABSL_DCHECK(from._impl_.resources_ !=
nullptr);
975 if (_this->_impl_.resources_ ==
nullptr) {
976 _this->_impl_.resources_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.resources_);
978 _this->_impl_.resources_->MergeFrom(*from._impl_.resources_);
981 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
982 if (from._internal_solver_type() != 0) {
983 _this->_impl_.solver_type_ = from._impl_.solver_type_;
987 _this->_impl_._has_bits_[0] |= cached_has_bits;
988 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
989 from._internal_metadata_);
994 if (&from ==
this)
return;
1000void SolveRequest::InternalSwap(
SolveRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1002 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1003 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1004 ::google::protobuf::internal::memswap<
1008 reinterpret_cast<char*
>(&
_impl_.model_),
1009 reinterpret_cast<char*
>(&other->_impl_.model_));
1013 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1020 decltype(::std::declval<SolveResponse>()._impl_._has_bits_);
1028 ::google::protobuf::Arena* message_arena = GetArena();
1031 ::google::protobuf::Arena* submessage_arena =
reinterpret_cast<::google::protobuf::Message*
>(
result)->GetArena();
1032 if (message_arena != submessage_arena) {
1033 result = ::google::protobuf::internal::GetOwnedMessage(message_arena,
result, submessage_arena);
1041 ::google::protobuf::internal::TSanWrite(&
_impl_);
1042 if (status_or_case() == kResult) {
1043 if (GetArena() ==
nullptr) {
1044 delete _impl_.status_or_.result_;
1045 }
else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
1046 ::google::protobuf::internal::MaybePoisonAfterClear(
_impl_.status_or_.result_);
1048 clear_has_status_or();
1055 ::google::protobuf::Arena* submessage_arena =
status->GetArena();
1056 if (message_arena != submessage_arena) {
1057 status = ::google::protobuf::internal::GetOwnedMessage(message_arena,
status, submessage_arena);
1065#if defined(PROTOBUF_CUSTOM_VTABLE)
1068 : ::google::protobuf::Message(arena) {
1073PROTOBUF_NDEBUG_INLINE SolveResponse::Impl_::Impl_(
1074 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1075 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
1076 [[maybe_unused]] const ::operations_research::math_opt::SolveResponse& from_msg)
1077 : _has_bits_{from._has_bits_},
1079 messages_{visibility, arena, from.messages_},
1081 _oneof_case_{from._oneof_case_[0]} {}
1084 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1086#if defined(PROTOBUF_CUSTOM_VTABLE)
1089 : ::google::protobuf::Message(arena) {
1093 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
1094 from._internal_metadata_);
1095 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1096 switch (status_or_case()) {
1097 case STATUS_OR_NOT_SET:
1100 _impl_.status_or_.result_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.status_or_.result_);
1103 _impl_.status_or_.status_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.status_or_.status_);
1109PROTOBUF_NDEBUG_INLINE SolveResponse::Impl_::Impl_(
1110 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1111 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1113 messages_{visibility, arena},
1117inline void SolveResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1118 new (&
_impl_) Impl_(internal_visibility(), arena);
1124inline void SolveResponse::SharedDtor(MessageLite& self) {
1126 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1127 this_.CheckHasBitConsistency();
1129 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1130 ABSL_DCHECK(this_.GetArena() ==
nullptr);
1131 if (this_.has_status_or()) {
1139 ::google::protobuf::internal::TSanWrite(&
_impl_);
1142 if (GetArena() ==
nullptr) {
1143 delete _impl_.status_or_.result_;
1144 }
else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
1145 ::google::protobuf::internal::MaybePoisonAfterClear(
_impl_.status_or_.result_);
1150 if (GetArena() ==
nullptr) {
1151 delete _impl_.status_or_.status_;
1152 }
else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
1153 ::google::protobuf::internal::MaybePoisonAfterClear(
_impl_.status_or_.status_);
1165inline void* PROTOBUF_NONNULL SolveResponse::PlacementNew_(
1166 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
1167 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1170constexpr auto SolveResponse::InternalNewImpl_() {
1171 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
1174 InternalGetArenaOffset(
1175 ::
google::protobuf::Message::internal_visibility()),
1177 if (arena_bits.has_value()) {
1178 return ::google::protobuf::internal::MessageCreator::ZeroInit(
1179 sizeof(SolveResponse), alignof(SolveResponse), *arena_bits);
1181 return ::google::protobuf::internal::MessageCreator(&SolveResponse::PlacementNew_,
1182 sizeof(SolveResponse),
1183 alignof(SolveResponse));
1187 return ::google::protobuf::internal::ClassDataFull{
1188 ::google::protobuf::internal::ClassData{
1193 &SolveResponse::MergeImpl,
1194 ::google::protobuf::Message::GetNewImpl<SolveResponse>(),
1195#if defined(PROTOBUF_CUSTOM_VTABLE)
1196 &SolveResponse::SharedDtor,
1203 &SolveResponse::kDescriptorMethods,
1209PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1213PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1214SolveResponse::GetClassData()
const {
1219PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1220const ::_pbi::TcParseTable<0, 3, 2, 59, 2>
1221SolveResponse::_table_ = {
1226 offsetof(
decltype(_table_), field_lookup_table),
1228 offsetof(
decltype(_table_), field_entries),
1231 offsetof(
decltype(_table_), aux_entries),
1234 ::_pbi::TcParser::GenericFallback,
1235 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1236 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SolveResponse>(),
1240 {::_pbi::TcParser::FastUR1,
1254 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SolveResultProto>()},
1255 {::_pbi::TcParser::GetTable<::operations_research::math_opt::StatusProto>()},
1258 "\52\0\10\0\0\0\0\0"
1259 "operations_research.math_opt.SolveResponse"
1265 ::google::protobuf::internal::TSanWrite(&
_impl_);
1266 ::uint32_t cached_has_bits = 0;
1268 (void) cached_has_bits;
1270 cached_has_bits =
_impl_._has_bits_[0];
1271 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1272 _impl_.messages_.Clear();
1275 _impl_._has_bits_.Clear();
1276 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1279#if defined(PROTOBUF_CUSTOM_VTABLE)
1281 const ::google::protobuf::MessageLite&
base, ::uint8_t* PROTOBUF_NONNULL target,
1282 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1286 ::uint8_t* PROTOBUF_NONNULL target,
1287 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
1290 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1291 this_.CheckHasBitConsistency();
1294 ::uint32_t cached_has_bits = 0;
1295 (void)cached_has_bits;
1299 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1304 cached_has_bits = this_.
_impl_._has_bits_[0];
1306 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1307 for (
int i = 0, n = this_._internal_messages_size(); i < n; ++i) {
1308 const auto& s = this_._internal_messages().Get(i);
1309 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1310 s.data(),
static_cast<int>(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE,
"operations_research.math_opt.SolveResponse.messages");
1311 target = stream->WriteString(2, s, target);
1317 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1322 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1324 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1325 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1331#if defined(PROTOBUF_CUSTOM_VTABLE)
1339 ::size_t total_size = 0;
1341 ::uint32_t cached_has_bits = 0;
1343 (void)cached_has_bits;
1345 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1348 cached_has_bits = this_._impl_._has_bits_[0];
1349 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1351 1 * ::google::protobuf::internal::FromIntSize(this_._internal_messages().size());
1352 for (
int i = 0, n = this_._internal_messages().size(); i < n; ++i) {
1353 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
1354 this_._internal_messages().Get(i));
1358 switch (this_.status_or_case()) {
1362 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.status_or_.result_);
1368 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.status_or_.status_);
1375 return this_.MaybeComputeUnknownFieldsSize(total_size,
1376 &this_._impl_._cached_size_);
1379void SolveResponse::MergeImpl(::google::protobuf::MessageLite& to_msg,
1380 const ::google::protobuf::MessageLite& from_msg) {
1384 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1385 from.CheckHasBitConsistency();
1389 ABSL_DCHECK_NE(&from, _this);
1390 ::uint32_t cached_has_bits = 0;
1391 (void)cached_has_bits;
1393 cached_has_bits = from._impl_._has_bits_[0];
1394 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1395 _this->_internal_mutable_messages()->InternalMergeFromWithArena(
1396 ::google::protobuf::MessageLite::internal_visibility(), arena,
1397 from._internal_messages());
1399 _this->_impl_._has_bits_[0] |= cached_has_bits;
1400 if (
const uint32_t oneof_from_case =
1401 from._impl_._oneof_case_[0]) {
1402 const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0];
1403 const bool oneof_needs_init = oneof_to_case != oneof_from_case;
1404 if (oneof_needs_init) {
1405 if (oneof_to_case != 0) {
1406 _this->clear_status_or();
1408 _this->_impl_._oneof_case_[0] = oneof_from_case;
1411 switch (oneof_from_case) {
1413 if (oneof_needs_init) {
1414 _this->_impl_.status_or_.result_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.status_or_.result_);
1416 _this->_impl_.status_or_.result_->MergeFrom(*from._impl_.status_or_.result_);
1421 if (oneof_needs_init) {
1422 _this->_impl_.status_or_.status_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.status_or_.status_);
1424 _this->_impl_.status_or_.status_->MergeFrom(*from._impl_.status_or_.status_);
1432 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1433 from._internal_metadata_);
1438 if (&from ==
this)
return;
1444void SolveResponse::InternalSwap(
SolveResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1446 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1447 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1448 _impl_.messages_.InternalSwap(&other->_impl_.messages_);
1449 swap(
_impl_.status_or_, other->_impl_.status_or_);
1450 swap(
_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
1454 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1461 decltype(::std::declval<StatusProto>()._impl_._has_bits_);
1467#if defined(PROTOBUF_CUSTOM_VTABLE)
1470 : ::google::protobuf::Message(arena) {
1475PROTOBUF_NDEBUG_INLINE StatusProto::Impl_::Impl_(
1476 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1477 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
1478 [[maybe_unused]] const ::operations_research::math_opt::StatusProto& from_msg)
1479 : _has_bits_{from._has_bits_},
1481 message_(arena, from.message_) {}
1484 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1486#if defined(PROTOBUF_CUSTOM_VTABLE)
1489 : ::google::protobuf::Message(arena) {
1493 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
1494 from._internal_metadata_);
1495 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1496 _impl_.code_ = from._impl_.code_;
1500PROTOBUF_NDEBUG_INLINE StatusProto::Impl_::Impl_(
1501 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1502 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1506inline void StatusProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1507 new (&
_impl_) Impl_(internal_visibility(), arena);
1516 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1517 this_.CheckHasBitConsistency();
1519 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1520 ABSL_DCHECK(this_.GetArena() ==
nullptr);
1521 this_.
_impl_.message_.Destroy();
1525inline void* PROTOBUF_NONNULL StatusProto::PlacementNew_(
1526 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
1527 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1530constexpr auto StatusProto::InternalNewImpl_() {
1531 return ::google::protobuf::internal::MessageCreator::CopyInit(
sizeof(StatusProto),
1532 alignof(StatusProto));
1535 return ::google::protobuf::internal::ClassDataFull{
1536 ::google::protobuf::internal::ClassData{
1541 &StatusProto::MergeImpl,
1542 ::google::protobuf::Message::GetNewImpl<StatusProto>(),
1543#if defined(PROTOBUF_CUSTOM_VTABLE)
1544 &StatusProto::SharedDtor,
1551 &StatusProto::kDescriptorMethods,
1557PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1561PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1562StatusProto::GetClassData()
const {
1567PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1568const ::_pbi::TcParseTable<1, 2, 0, 56, 2>
1569StatusProto::_table_ = {
1571 PROTOBUF_FIELD_OFFSET(StatusProto,
_impl_._has_bits_),
1574 offsetof(
decltype(_table_), field_lookup_table),
1576 offsetof(
decltype(_table_), field_entries),
1579 offsetof(
decltype(_table_), field_names),
1582 ::_pbi::TcParser::GenericFallback,
1583 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1584 ::_pbi::TcParser::GetTable<::operations_research::math_opt::StatusProto>(),
1588 {::_pbi::TcParser::FastUS1,
1590 PROTOBUF_FIELD_OFFSET(StatusProto,
_impl_.message_)}},
1592 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(StatusProto,
_impl_.code_), 1>(),
1594 PROTOBUF_FIELD_OFFSET(StatusProto,
_impl_.code_)}},
1601 {PROTOBUF_FIELD_OFFSET(StatusProto,
_impl_.message_),
_Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
1606 "operations_research.math_opt.StatusProto"
1612 ::google::protobuf::internal::TSanWrite(&
_impl_);
1613 ::uint32_t cached_has_bits = 0;
1615 (void) cached_has_bits;
1617 cached_has_bits =
_impl_._has_bits_[0];
1618 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1619 _impl_.message_.ClearNonDefaultToEmpty();
1622 _impl_._has_bits_.Clear();
1623 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1626#if defined(PROTOBUF_CUSTOM_VTABLE)
1628 const ::google::protobuf::MessageLite&
base, ::uint8_t* PROTOBUF_NONNULL target,
1629 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1630 const StatusProto& this_ =
static_cast<const StatusProto&
>(
base);
1633 ::uint8_t* PROTOBUF_NONNULL target,
1634 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
1635 const StatusProto& this_ = *
this;
1637 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1638 this_.CheckHasBitConsistency();
1641 ::uint32_t cached_has_bits = 0;
1642 (void)cached_has_bits;
1644 cached_has_bits = this_._impl_._has_bits_[0];
1646 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1647 if (this_._internal_code() != 0) {
1649 ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>(
1650 stream, this_._internal_code(), target);
1655 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1656 if (!this_._internal_message().empty()) {
1657 const ::std::string& _s = this_._internal_message();
1658 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1659 _s.data(),
static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE,
"operations_research.math_opt.StatusProto.message");
1660 target = stream->WriteStringMaybeAliased(2, _s, target);
1664 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1666 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1667 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1673#if defined(PROTOBUF_CUSTOM_VTABLE)
1675 const StatusProto& this_ =
static_cast<const StatusProto&
>(base);
1678 const StatusProto& this_ = *
this;
1681 ::size_t total_size = 0;
1683 ::uint32_t cached_has_bits = 0;
1685 (void)cached_has_bits;
1687 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1688 cached_has_bits = this_._impl_._has_bits_[0];
1689 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
1691 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1692 if (!this_._internal_message().empty()) {
1693 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
1694 this_._internal_message());
1698 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1699 if (this_._internal_code() != 0) {
1700 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
1701 this_._internal_code());
1705 return this_.MaybeComputeUnknownFieldsSize(total_size,
1706 &this_._impl_._cached_size_);
1709void StatusProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
1710 const ::google::protobuf::MessageLite& from_msg) {
1712 static_cast<StatusProto*
>(&to_msg);
1713 auto& from =
static_cast<const StatusProto&
>(from_msg);
1714 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1715 from.CheckHasBitConsistency();
1718 ABSL_DCHECK_NE(&from, _this);
1719 ::uint32_t cached_has_bits = 0;
1720 (void)cached_has_bits;
1722 cached_has_bits = from._impl_._has_bits_[0];
1723 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
1724 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1725 if (!from._internal_message().empty()) {
1726 _this->_internal_set_message(from._internal_message());
1728 if (_this->_impl_.message_.IsDefault()) {
1729 _this->_internal_set_message(
"");
1733 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1734 if (from._internal_code() != 0) {
1735 _this->_impl_.code_ = from._impl_.code_;
1739 _this->_impl_._has_bits_[0] |= cached_has_bits;
1740 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1741 from._internal_metadata_);
1746 if (&from ==
this)
return;
1752void StatusProto::InternalSwap(
StatusProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1754 auto* arena = GetArena();
1755 ABSL_DCHECK_EQ(arena, other->GetArena());
1756 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1757 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1758 ::_pbi::ArenaStringPtr::InternalSwap(&
_impl_.message_, &other->_impl_.message_, arena);
1763 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1773PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
1776 ::std::false_type{});
1777#include "google/protobuf/port_undef.inc"
static PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::std::false_type _static_init2_
static const ::_pb::Message *PROTOBUF_NONNULL const file_default_instances[]
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fcallback_2eproto
int GetCachedSize() const
int GetCachedSize() const
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
int GetCachedSize() const
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
decltype(::std::declval< SolveRequest >()._impl_._has_bits_) HasBits
static constexpr ::int32_t kHasBitsOffset
~SolveRequest() PROTOBUF_FINAL
friend class ::google::protobuf::MessageLite
::size_t ByteSizeLong() const final
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
void clear_model_parameters()
void CopyFrom(const SolveRequest &from)
::google::protobuf::Metadata GetMetadata() 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)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
static constexpr auto InternalGenerateClassData_()
friend class ::google::protobuf::Arena
static constexpr ::int32_t kOneofCaseOffset
static constexpr ::int32_t kHasBitsOffset
friend class ::google::protobuf::MessageLite
const ::operations_research::math_opt::StatusProto & status() const
void MergeFrom(const SolveResponse &from)
~SolveResponse() PROTOBUF_FINAL
::size_t ByteSizeLong() const final
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
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)
friend void swap(SolveResponse &a, SolveResponse &b)
void set_allocated_result(::operations_research::math_opt::SolveResultProto *PROTOBUF_NULLABLE value)
static constexpr auto InternalGenerateClassData_()
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
const ::operations_research::math_opt::SolveResultProto & result() const
::google::protobuf::Metadata GetMetadata() const
friend class ::google::protobuf::Arena
StatusOrCase status_or_case() const
int GetCachedSize() const
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
int GetCachedSize() const
decltype(::std::declval< SolverResourcesProto >()._impl_._has_bits_) HasBits
static constexpr ::int32_t kHasBitsOffset
::google::protobuf::Metadata GetMetadata() const
friend class ::google::protobuf::MessageLite
void CopyFrom(const SolverResourcesProto &from)
static constexpr auto InternalGenerateClassData_()
void MergeFrom(const SolverResourcesProto &from)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
friend void swap(SolverResourcesProto &a, SolverResourcesProto &b)
~SolverResourcesProto() PROTOBUF_FINAL
::size_t ByteSizeLong() const final
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
int GetCachedSize() const
static constexpr ::int32_t kHasBitsOffset
friend class ::google::protobuf::MessageLite
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
static constexpr auto InternalGenerateClassData_()
void CopyFrom(const StatusProto &from)
void MergeFrom(const StatusProto &from)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
~StatusProto() PROTOBUF_FINAL
::google::protobuf::Metadata GetMetadata() const
::size_t ByteSizeLong() const final
int GetCachedSize() const
static constexpr ::_pbi::MigrationSchema *PROTOBUF_NULLABLE schemas
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2finfeasible_5fsubsystem_2eproto
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fparameters_2eproto
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fmodel_2eproto
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fmodel_5fparameters_2eproto
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fmodel_5fupdate_2eproto
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 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_2fresult_2eproto
static constexprconst ::_pb::EnumDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_enum_descriptors_ortools_2fmath_5fopt_2frpc_2eproto
static const ::_pbi::DescriptorTable *PROTOBUF_NONNULL const descriptor_table_ortools_2fmath_5fopt_2frpc_2eproto_deps[7]
::absl::once_flag descriptor_table_ortools_2fmath_5fopt_2frpc_2eproto_once
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2frpc_2eproto
static constexprconst ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_service_descriptors_ortools_2fmath_5fopt_2frpc_2eproto
const ::uint32_t TableStruct_ortools_2fmath_5fopt_2frpc_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold)
PROTOBUF_CONSTEXPR SolveRequestDefaultTypeInternal()
~SolveRequestDefaultTypeInternal()
~SolveResponseDefaultTypeInternal()
PROTOBUF_CONSTEXPR SolveResponseDefaultTypeInternal()
PROTOBUF_CONSTEXPR SolverResourcesProtoDefaultTypeInternal()
~SolverResourcesProtoDefaultTypeInternal()
SolverResourcesProto _instance
~StatusProtoDefaultTypeInternal()
PROTOBUF_CONSTEXPR StatusProtoDefaultTypeInternal()
::operations_research::math_opt::SolveResultProto *PROTOBUF_NULLABLE result_
::operations_research::math_opt::StatusProto *PROTOBUF_NULLABLE status_