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 _impl_._has_bits_[0] &= ~0x00000001u;
138 ::google::protobuf::internal::TSanWrite(&
_impl_);
139 if (
_impl_.parameters_ !=
nullptr)
_impl_.parameters_->Clear();
140 _impl_._has_bits_[0] &= ~0x00000002u;
143#if defined(PROTOBUF_CUSTOM_VTABLE)
146 : ::google::protobuf::Message(arena) {
151PROTOBUF_NDEBUG_INLINE CpSolverRequest::Impl_::Impl_(
152 ::google::protobuf::internal::InternalVisibility visibility,
153 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
154 const ::operations_research::sat::v1::CpSolverRequest& from_msg)
155 : _has_bits_{from._has_bits_},
159 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
161#if defined(PROTOBUF_CUSTOM_VTABLE)
164 : ::google::protobuf::Message(arena) {
168 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
169 from._internal_metadata_);
170 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
171 ::uint32_t cached_has_bits =
_impl_._has_bits_[0];
172 _impl_.model_ = ((cached_has_bits & 0x00000001u) != 0)
173 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.model_)
175 _impl_.parameters_ = ((cached_has_bits & 0x00000002u) != 0)
176 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.parameters_)
181PROTOBUF_NDEBUG_INLINE CpSolverRequest::Impl_::Impl_(
182 ::google::protobuf::internal::InternalVisibility visibility,
183 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
184 : _cached_size_{0} {}
186inline void CpSolverRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
187 new (&
_impl_) Impl_(internal_visibility(), arena);
188 ::memset(
reinterpret_cast<char *
>(&
_impl_) +
189 offsetof(Impl_, model_),
191 offsetof(Impl_, parameters_) -
192 offsetof(Impl_, model_) +
193 sizeof(Impl_::parameters_));
199inline void CpSolverRequest::SharedDtor(MessageLite& self) {
201 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
202 ABSL_DCHECK(this_.GetArena() ==
nullptr);
203 delete this_.
_impl_.model_;
204 delete this_.
_impl_.parameters_;
209 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
210 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
214 return ::google::protobuf::internal::MessageCreator::ZeroInit(
sizeof(
CpSolverRequest),
218 return ::google::protobuf::internal::ClassDataFull{
219 ::google::protobuf::internal::ClassData{
224 &CpSolverRequest::MergeImpl,
225 ::google::protobuf::Message::GetNewImpl<CpSolverRequest>(),
226#if defined(PROTOBUF_CUSTOM_VTABLE)
227 &CpSolverRequest::SharedDtor,
234 &CpSolverRequest::kDescriptorMethods,
240PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
244PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
250PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
251const ::_pbi::TcParseTable<2, 2, 2, 0, 2>
252CpSolverRequest::_table_ = {
257 offsetof(
decltype(_table_), field_lookup_table),
259 offsetof(
decltype(_table_), field_entries),
262 offsetof(
decltype(_table_), aux_entries),
265 ::_pbi::TcParser::GenericFallback,
266 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
267 ::_pbi::TcParser::GetTable<::operations_research::sat::v1::CpSolverRequest>(),
270 {::_pbi::TcParser::MiniParse, {}},
272 {::_pbi::TcParser::FastMtS1,
273 {10, 0, 0, PROTOBUF_FIELD_OFFSET(CpSolverRequest, _impl_.model_)}},
274 {::_pbi::TcParser::MiniParse, {}},
276 {::_pbi::TcParser::FastMtS1,
277 {26, 1, 1, PROTOBUF_FIELD_OFFSET(
CpSolverRequest, _impl_.parameters_)}},
282 {PROTOBUF_FIELD_OFFSET(
CpSolverRequest, _impl_.model_), _Internal::kHasBitsOffset + 0, 0,
283 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
285 {PROTOBUF_FIELD_OFFSET(
CpSolverRequest, _impl_.parameters_), _Internal::kHasBitsOffset + 1, 1,
286 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
289 {::_pbi::TcParser::GetTable<::operations_research::sat::CpModelProto>()},
290 {::_pbi::TcParser::GetTable<::operations_research::sat::SatParameters>()},
297 ::google::protobuf::internal::TSanWrite(&
_impl_);
298 ::uint32_t cached_has_bits = 0;
300 (void) cached_has_bits;
302 cached_has_bits =
_impl_._has_bits_[0];
303 if ((cached_has_bits & 0x00000003u) != 0) {
304 if ((cached_has_bits & 0x00000001u) != 0) {
305 ABSL_DCHECK(
_impl_.model_ !=
nullptr);
308 if ((cached_has_bits & 0x00000002u) != 0) {
309 ABSL_DCHECK(
_impl_.parameters_ !=
nullptr);
313 _impl_._has_bits_.Clear();
314 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
317#if defined(PROTOBUF_CUSTOM_VTABLE)
319 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
320 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
324 ::uint8_t* PROTOBUF_NONNULL target,
325 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
329 ::uint32_t cached_has_bits = 0;
330 (void)cached_has_bits;
332 cached_has_bits = this_.
_impl_._has_bits_[0];
334 if ((cached_has_bits & 0x00000001u) != 0) {
335 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
341 if ((cached_has_bits & 0x00000002u) != 0) {
342 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
347 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
349 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
350 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
356#if defined(PROTOBUF_CUSTOM_VTABLE)
364 ::size_t total_size = 0;
366 ::uint32_t cached_has_bits = 0;
368 (void)cached_has_bits;
370 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
371 cached_has_bits = this_.
_impl_._has_bits_[0];
372 if ((cached_has_bits & 0x00000003u) != 0) {
374 if ((cached_has_bits & 0x00000001u) != 0) {
376 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_.
_impl_.model_);
379 if ((cached_has_bits & 0x00000002u) != 0) {
381 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_.
_impl_.parameters_);
384 return this_.MaybeComputeUnknownFieldsSize(total_size,
385 &this_.
_impl_._cached_size_);
388void CpSolverRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
391 ::google::protobuf::Arena* arena = _this->GetArena();
393 ABSL_DCHECK_NE(&from, _this);
394 ::uint32_t cached_has_bits = 0;
395 (void) cached_has_bits;
397 cached_has_bits = from._impl_._has_bits_[0];
398 if ((cached_has_bits & 0x00000003u) != 0) {
399 if ((cached_has_bits & 0x00000001u) != 0) {
400 ABSL_DCHECK(from._impl_.model_ !=
nullptr);
401 if (_this->_impl_.model_ ==
nullptr) {
402 _this->_impl_.model_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.model_);
404 _this->_impl_.model_->MergeFrom(*from._impl_.model_);
407 if ((cached_has_bits & 0x00000002u) != 0) {
408 ABSL_DCHECK(from._impl_.parameters_ !=
nullptr);
409 if (_this->_impl_.parameters_ ==
nullptr) {
410 _this->_impl_.parameters_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.parameters_);
412 _this->_impl_.parameters_->MergeFrom(*from._impl_.parameters_);
416 _this->_impl_._has_bits_[0] |= cached_has_bits;
417 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
422 if (&from ==
this)
return;
428void CpSolverRequest::InternalSwap(
CpSolverRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
430 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
431 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
432 ::google::protobuf::internal::memswap<
436 reinterpret_cast<char*
>(&
_impl_.model_),
437 reinterpret_cast<char*
>(&other->_impl_.model_));
441 return ::google::protobuf::Message::GetMetadataImpl(
GetClassData()->full());
452PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
455 ::std::false_type{});
456#include "google/protobuf/port_undef.inc"
static PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::std::false_type _static_init2_
@protoc_insertion_point(global_scope)
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
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
::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
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
static constexpr auto InternalNewImpl_()
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]
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_
In SWIG mode, we don't want anything besides these top-level includes.
static constexpr ::_pbi::MigrationSchema *PROTOBUF_NULLABLE schemas
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fsat_2fsat_5fparameters_2eproto
PROTOBUF_CONSTEXPR CpSolverRequestDefaultTypeInternal()
~CpSolverRequestDefaultTypeInternal()
CpSolverRequest _instance