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;
31inline constexpr CpSolverRequest::Impl_::Impl_(
32 ::_pbi::ConstantInitialized) noexcept
35 parameters_{
nullptr} {}
39#if defined(PROTOBUF_CUSTOM_VTABLE)
42 : ::google::protobuf::Message(),
44 _impl_(::_pbi::ConstantInitialized()) {
54PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
59static constexpr const ::_pb::EnumDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
61static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
75static const ::_pbi::MigrationSchema
84 "\n\"ortools/sat/cp_model_service.proto\022\032op"
85 "erations_research.sat.v1\032\032ortools/sat/cp"
86 "_model.proto\032 ortools/sat/sat_parameters"
87 ".proto\"\211\001\n\017CpSolverRequest\0224\n\005model\030\001 \001("
88 "\0132%.operations_research.sat.CpModelProto"
89 "\022:\n\nparameters\030\003 \001(\0132&.operations_resear"
90 "ch.sat.SatParametersJ\004\010\002\020\0032t\n\010CpSolver\022h"
91 "\n\014SolveProblem\022+.operations_research.sat"
92 ".v1.CpSolverRequest\032).operations_researc"
93 "h.sat.CpSolverResponse\"\000BG\n\031com.google.o"
94 "rtools.sat.v1B\023CpModelServiceProtoP\001\252\002\022G"
95 "oogle.OrTools.Satb\006proto3"
97static const ::_pbi::DescriptorTable* PROTOBUF_NONNULL
const
107 descriptor_table_protodef_ortools_2fsat_2fcp_5fmodel_5fservice_2eproto,
108 "ortools/sat/cp_model_service.proto",
127 decltype(::std::declval<CpSolverRequest>()._impl_._has_bits_);
133 ::google::protobuf::internal::TSanWrite(&
_impl_);
135 ClearHasBit(
_impl_._has_bits_[0],
139 ::google::protobuf::internal::TSanWrite(&
_impl_);
140 if (
_impl_.parameters_ !=
nullptr)
_impl_.parameters_->Clear();
141 ClearHasBit(
_impl_._has_bits_[0],
145#if defined(PROTOBUF_CUSTOM_VTABLE)
148 : ::google::protobuf::Message(arena) {
153PROTOBUF_NDEBUG_INLINE CpSolverRequest::Impl_::Impl_(
154 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
155 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
156 [[maybe_unused]] const ::operations_research::sat::v1::CpSolverRequest& from_msg)
157 : _has_bits_{from._has_bits_},
161 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
162 const CpSolverRequest& from)
163#if defined(PROTOBUF_CUSTOM_VTABLE)
166 : ::google::protobuf::Message(arena) {
168 CpSolverRequest*
const _this =
this;
170 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
171 from._internal_metadata_);
172 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
173 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
174 _impl_.model_ = (CheckHasBit(cached_has_bits, 0x00000001U))
175 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.model_)
177 _impl_.parameters_ = (CheckHasBit(cached_has_bits, 0x00000002U))
178 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.parameters_)
183PROTOBUF_NDEBUG_INLINE CpSolverRequest::Impl_::Impl_(
184 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
185 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
186 : _cached_size_{0} {}
188inline void CpSolverRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
189 new (&
_impl_) Impl_(internal_visibility(), arena);
190 ::memset(
reinterpret_cast<char*
>(&
_impl_) +
191 offsetof(Impl_, model_),
193 offsetof(Impl_, parameters_) -
194 offsetof(Impl_, model_) +
195 sizeof(Impl_::parameters_));
201inline void CpSolverRequest::SharedDtor(MessageLite& self) {
203 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
204 this_.CheckHasBitConsistency();
206 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
207 ABSL_DCHECK(this_.GetArena() ==
nullptr);
208 delete this_.
_impl_.model_;
209 delete this_.
_impl_.parameters_;
213inline void* PROTOBUF_NONNULL CpSolverRequest::PlacementNew_(
214 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
215 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
218constexpr auto CpSolverRequest::InternalNewImpl_() {
219 return ::google::protobuf::internal::MessageCreator::ZeroInit(
sizeof(
CpSolverRequest),
223 return ::google::protobuf::internal::ClassDataFull{
224 ::google::protobuf::internal::ClassData{
229 &CpSolverRequest::MergeImpl,
230 ::google::protobuf::Message::GetNewImpl<CpSolverRequest>(),
231#if defined(PROTOBUF_CUSTOM_VTABLE)
232 &CpSolverRequest::SharedDtor,
239 &CpSolverRequest::kDescriptorMethods,
245PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
249PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
250CpSolverRequest::GetClassData()
const {
255PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
256const ::_pbi::TcParseTable<2, 2, 2, 0, 2>
257CpSolverRequest::_table_ = {
259 PROTOBUF_FIELD_OFFSET(CpSolverRequest, _impl_._has_bits_),
262 offsetof(
decltype(_table_), field_lookup_table),
264 offsetof(
decltype(_table_), field_entries),
267 offsetof(
decltype(_table_), aux_entries),
270 ::_pbi::TcParser::GenericFallback,
271 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
272 ::_pbi::TcParser::GetTable<::operations_research::sat::v1::CpSolverRequest>(),
275 {::_pbi::TcParser::MiniParse, {}},
277 {::_pbi::TcParser::FastMtS1,
280 {::_pbi::TcParser::MiniParse, {}},
282 {::_pbi::TcParser::FastMtS1,
289 {PROTOBUF_FIELD_OFFSET(
CpSolverRequest, _impl_.model_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
291 {PROTOBUF_FIELD_OFFSET(
CpSolverRequest, _impl_.parameters_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
294 {::_pbi::TcParser::GetTable<::operations_research::sat::CpModelProto>()},
295 {::_pbi::TcParser::GetTable<::operations_research::sat::SatParameters>()},
302 ::google::protobuf::internal::TSanWrite(&
_impl_);
303 ::uint32_t cached_has_bits = 0;
305 (void) cached_has_bits;
307 cached_has_bits =
_impl_._has_bits_[0];
308 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
309 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
310 ABSL_DCHECK(
_impl_.model_ !=
nullptr);
313 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
314 ABSL_DCHECK(
_impl_.parameters_ !=
nullptr);
318 _impl_._has_bits_.Clear();
319 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
322#if defined(PROTOBUF_CUSTOM_VTABLE)
324 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
325 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
329 ::uint8_t* PROTOBUF_NONNULL target,
330 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
333 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
334 this_.CheckHasBitConsistency();
337 ::uint32_t cached_has_bits = 0;
338 (void)cached_has_bits;
340 cached_has_bits = this_.
_impl_._has_bits_[0];
342 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
343 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
349 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
350 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
355 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
357 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
358 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
364#if defined(PROTOBUF_CUSTOM_VTABLE)
372 ::size_t total_size = 0;
374 ::uint32_t cached_has_bits = 0;
376 (void)cached_has_bits;
378 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
379 cached_has_bits = this_.
_impl_._has_bits_[0];
380 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
382 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
384 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_.
_impl_.model_);
387 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
389 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_.
_impl_.parameters_);
392 return this_.MaybeComputeUnknownFieldsSize(total_size,
393 &this_.
_impl_._cached_size_);
396void CpSolverRequest::MergeImpl(::google::protobuf::MessageLite& to_msg,
397 const ::google::protobuf::MessageLite& from_msg) {
401 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
402 from.CheckHasBitConsistency();
406 ABSL_DCHECK_NE(&from, _this);
407 ::uint32_t cached_has_bits = 0;
408 (void)cached_has_bits;
410 cached_has_bits = from._impl_._has_bits_[0];
411 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
412 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
413 ABSL_DCHECK(from._impl_.model_ !=
nullptr);
414 if (_this->_impl_.model_ ==
nullptr) {
415 _this->_impl_.model_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.model_);
417 _this->_impl_.model_->MergeFrom(*from._impl_.model_);
420 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
421 ABSL_DCHECK(from._impl_.parameters_ !=
nullptr);
422 if (_this->_impl_.parameters_ ==
nullptr) {
423 _this->_impl_.parameters_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.parameters_);
425 _this->_impl_.parameters_->MergeFrom(*from._impl_.parameters_);
429 _this->_impl_._has_bits_[0] |= cached_has_bits;
430 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
431 from._internal_metadata_);
436 if (&from ==
this)
return;
442void CpSolverRequest::InternalSwap(
CpSolverRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
444 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
445 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
446 ::google::protobuf::internal::memswap<
450 reinterpret_cast<char*
>(&
_impl_.model_),
451 reinterpret_cast<char*
>(&other->_impl_.model_));
455 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
466PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
469 ::std::false_type{});
470#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[]
int GetCachedSize() const
int GetCachedSize() const
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
static constexpr ::int32_t kHasBitsOffset
decltype(::std::declval< CpSolverRequest >()._impl_._has_bits_) HasBits
friend class ::google::protobuf::MessageLite
~CpSolverRequest() PROTOBUF_FINAL
::size_t ByteSizeLong() const final
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
friend void swap(CpSolverRequest &a, CpSolverRequest &b)
void MergeFrom(const CpSolverRequest &from)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
void CopyFrom(const CpSolverRequest &from)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
static constexpr auto InternalGenerateClassData_()
::google::protobuf::Metadata GetMetadata() const
friend class ::google::protobuf::Arena
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fsat_2fcp_5fmodel_2eproto
static constexprconst ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_service_descriptors_ortools_2fsat_2fcp_5fmodel_5fservice_2eproto
const ::uint32_t TableStruct_ortools_2fsat_2fcp_5fmodel_5fservice_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold)
static constexprconst ::_pb::EnumDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_enum_descriptors_ortools_2fsat_2fcp_5fmodel_5fservice_2eproto
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fsat_2fcp_5fmodel_5fservice_2eproto
::absl::once_flag descriptor_table_ortools_2fsat_2fcp_5fmodel_5fservice_2eproto_once
static const ::_pbi::DescriptorTable *PROTOBUF_NONNULL const descriptor_table_ortools_2fsat_2fcp_5fmodel_5fservice_2eproto_deps[2]
static constexpr ::_pbi::MigrationSchema *PROTOBUF_NULLABLE schemas
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull CpSolverRequest_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CpSolverRequestDefaultTypeInternal _CpSolverRequest_default_instance_
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fsat_2fsat_5fparameters_2eproto
PROTOBUF_CONSTEXPR CpSolverRequestDefaultTypeInternal()
~CpSolverRequestDefaultTypeInternal()
CpSolverRequest _instance