4#ifndef GOOGLE_PROTOBUF_INCLUDED_ortools_2fsat_2fcp_5fmodel_5fservice_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_ortools_2fsat_2fcp_5fmodel_5fservice_2eproto
10#include <google/protobuf/port_def.inc>
11#if PROTOBUF_VERSION < 3019000
12#error This file was generated by a newer version of protoc which is
13#error incompatible with your Protocol Buffer headers. Please update
16#if 3019001 < PROTOBUF_MIN_PROTOC_VERSION
17#error This file was generated by an older version of protoc which is
18#error incompatible with your Protocol Buffer headers. Please
19#error regenerate this file with a newer version of protoc.
22#include <google/protobuf/port_undef.inc>
23#include <google/protobuf/io/coded_stream.h>
24#include <google/protobuf/arena.h>
25#include <google/protobuf/arenastring.h>
26#include <google/protobuf/generated_message_table_driven.h>
27#include <google/protobuf/generated_message_util.h>
28#include <google/protobuf/metadata_lite.h>
29#include <google/protobuf/generated_message_reflection.h>
30#include <google/protobuf/message.h>
31#include <google/protobuf/repeated_field.h>
32#include <google/protobuf/extension_set.h>
33#include <google/protobuf/unknown_field_set.h>
36#include <google/protobuf/port_def.inc>
37#define PROTOBUF_INTERNAL_EXPORT_ortools_2fsat_2fcp_5fmodel_5fservice_2eproto
38PROTOBUF_NAMESPACE_OPEN
42PROTOBUF_NAMESPACE_CLOSE
46 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
48 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
50 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
52 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata
field_metadata[];
61struct CpSolverRequestDefaultTypeInternal;
66PROTOBUF_NAMESPACE_OPEN
68PROTOBUF_NAMESPACE_CLOSE
76 public ::PROTOBUF_NAMESPACE_ID::Message {
80 explicit constexpr CpSolverRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
85 *
this = ::std::move(from);
93 if (
this == &from)
return *
this;
94 if (GetOwningArena() == from.GetOwningArena()
95 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
96 && GetOwningArena() !=
nullptr
106 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
129 if (other ==
this)
return;
130 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
131 if (GetOwningArena() !=
nullptr &&
132 GetOwningArena() == other->GetOwningArena()) {
134 if (GetOwningArena() == other->GetOwningArena()) {
138 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
142 if (other ==
this)
return;
143 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
150 return CreateMaybeMessage<CpSolverRequest>(arena);
152 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
154 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
157 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
159 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
165 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
171 void SetCachedSize(
int size)
const final;
175 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
176 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
177 return "operations_research.sat.v1.CpSolverRequest";
181 bool is_message_owned =
false);
183 static void ArenaDtor(
void*
object);
184 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
188 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
190 ::PROTOBUF_NAMESPACE_ID::Metadata
GetMetadata() const final;
203 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
209 const std::string& _internal_parameters_as_string()
const;
210 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_parameters_as_string(
const std::string&
value);
211 std::string* _internal_mutable_parameters_as_string();
217 bool _internal_has_model()
const;
220 const ::operations_research::sat::CpModelProto&
model()
const;
221 PROTOBUF_NODISCARD ::operations_research::sat::CpModelProto*
release_model();
225 const ::operations_research::sat::CpModelProto& _internal_model()
const;
236 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
237 typedef void InternalArenaConstructable_;
238 typedef void DestructorSkippable_;
239 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr parameters_as_string_;
241 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
242 friend struct ::TableStruct_ortools_2fsat_2fcp_5fmodel_5fservice_2eproto;
250 #pragma GCC diagnostic push
251 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
256inline bool CpSolverRequest::_internal_has_model()
const {
260 return _internal_has_model();
262inline const ::operations_research::sat::CpModelProto& CpSolverRequest::_internal_model()
const {
263 const ::operations_research::sat::CpModelProto* p = model_;
269 return _internal_model();
273 if (GetArenaForAllocation() ==
nullptr) {
274 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(model_);
288#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
289 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
290 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
291 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
293 if (GetArenaForAllocation() !=
nullptr) {
294 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
306inline ::operations_research::sat::CpModelProto* CpSolverRequest::_internal_mutable_model() {
308 if (model_ ==
nullptr) {
309 auto* p = CreateMaybeMessage<::operations_research::sat::CpModelProto>(GetArenaForAllocation());
320 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
321 if (message_arena ==
nullptr) {
322 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(model_);
325 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
327 ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
328 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
model));
329 if (message_arena != submessage_arena) {
330 model = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
331 message_arena,
model, submessage_arena);
343 parameters_as_string_.ClearToEmpty();
347 return _internal_parameters_as_string();
349template <
typename ArgT0,
typename... ArgT>
350inline PROTOBUF_ALWAYS_INLINE
353 parameters_as_string_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
357 std::string* _s = _internal_mutable_parameters_as_string();
361inline const std::string& CpSolverRequest::_internal_parameters_as_string()
const {
362 return parameters_as_string_.Get();
364inline void CpSolverRequest::_internal_set_parameters_as_string(
const std::string&
value) {
366 parameters_as_string_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
value, GetArenaForAllocation());
368inline std::string* CpSolverRequest::_internal_mutable_parameters_as_string() {
370 return parameters_as_string_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
374 return parameters_as_string_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
382 parameters_as_string_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
parameters_as_string,
383 GetArenaForAllocation());
384#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
385 if (parameters_as_string_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
386 parameters_as_string_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
"", GetArenaForAllocation());
393 #pragma GCC diagnostic pop
404#include <google/protobuf/port_undef.inc>
void set_allocated_model(::operations_research::sat::CpModelProto *model)
PROTOBUF_NODISCARD std::string * release_parameters_as_string()
void set_allocated_parameters_as_string(std::string *parameters_as_string)
PROTOBUF_NODISCARD::operations_research::sat::CpModelProto * release_model()
int GetCachedSize() const final
::operations_research::sat::CpModelProto * mutable_model()
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
const std::string & parameters_as_string() const
static const ClassData _class_data_
static const CpSolverRequest * internal_default_instance()
friend void swap(CpSolverRequest &a, CpSolverRequest &b)
void UnsafeArenaSwap(CpSolverRequest *other)
CpSolverRequest(CpSolverRequest &&from) noexcept
~CpSolverRequest() override
void Swap(CpSolverRequest *other)
CpSolverRequest & operator=(CpSolverRequest &&from) noexcept
bool IsInitialized() const final
static constexpr int kIndexInFileMessages
std::string * mutable_parameters_as_string()
CpSolverRequest & operator=(const CpSolverRequest &from)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
@ kParametersAsStringFieldNumber
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
static const CpSolverRequest & default_instance()
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
void set_parameters_as_string(ArgT0 &&arg0, ArgT... args)
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
const ::operations_research::sat::CpModelProto & model() const
void unsafe_arena_set_allocated_model(::operations_research::sat::CpModelProto *model)
void CopyFrom(const CpSolverRequest &from)
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
::operations_research::sat::CpModelProto * unsafe_arena_release_model()
size_t ByteSizeLong() const final
CpSolverRequest * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
void MergeFrom(const CpSolverRequest &from)
void clear_parameters_as_string()
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ortools_2fsat_2fcp_5fmodel_5fservice_2eproto
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CpSolverRequestDefaultTypeInternal _CpSolverRequest_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CpModelProtoDefaultTypeInternal _CpModelProto_default_instance_
Collection of objects used to extend the Constraint Solver library.