OR-Tools  9.2
cp_model_service.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: ortools/sat/cp_model_service.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_ortools_2fsat_2fcp_5fmodel_5fservice_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_ortools_2fsat_2fcp_5fmodel_5fservice_2eproto
6
7#include <limits>
8#include <string>
9
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
14#error your headers.
15#endif
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.
20#endif
21
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> // IWYU pragma: export
32#include <google/protobuf/extension_set.h> // IWYU pragma: export
33#include <google/protobuf/unknown_field_set.h>
35// @@protoc_insertion_point(includes)
36#include <google/protobuf/port_def.inc>
37#define PROTOBUF_INTERNAL_EXPORT_ortools_2fsat_2fcp_5fmodel_5fservice_2eproto
38PROTOBUF_NAMESPACE_OPEN
39namespace internal {
40class AnyMetadata;
41} // namespace internal
42PROTOBUF_NAMESPACE_CLOSE
43
44// Internal implementation detail -- do not use these members.
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[];
53 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
54 static const uint32_t offsets[];
55};
56extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ortools_2fsat_2fcp_5fmodel_5fservice_2eproto;
57namespace operations_research {
58namespace sat {
59namespace v1 {
60class CpSolverRequest;
61struct CpSolverRequestDefaultTypeInternal;
62extern CpSolverRequestDefaultTypeInternal _CpSolverRequest_default_instance_;
63} // namespace v1
64} // namespace sat
65} // namespace operations_research
66PROTOBUF_NAMESPACE_OPEN
67template<> ::operations_research::sat::v1::CpSolverRequest* Arena::CreateMaybeMessage<::operations_research::sat::v1::CpSolverRequest>(Arena*);
68PROTOBUF_NAMESPACE_CLOSE
69namespace operations_research {
70namespace sat {
71namespace v1 {
72
73// ===================================================================
74
75class CpSolverRequest final :
76 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:operations_research.sat.v1.CpSolverRequest) */ {
77 public:
78 inline CpSolverRequest() : CpSolverRequest(nullptr) {}
79 ~CpSolverRequest() override;
80 explicit constexpr CpSolverRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
81
84 : CpSolverRequest() {
85 *this = ::std::move(from);
86 }
87
89 CopyFrom(from);
90 return *this;
91 }
92 inline CpSolverRequest& operator=(CpSolverRequest&& from) noexcept {
93 if (this == &from) return *this;
94 if (GetOwningArena() == from.GetOwningArena()
95 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
96 && GetOwningArena() != nullptr
97 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
98 ) {
99 InternalSwap(&from);
100 } else {
101 CopyFrom(from);
102 }
103 return *this;
104 }
105
106 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
107 return GetDescriptor();
108 }
109 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
110 return default_instance().GetMetadata().descriptor;
111 }
112 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
113 return default_instance().GetMetadata().reflection;
114 }
117 }
119 return reinterpret_cast<const CpSolverRequest*>(
121 }
122 static constexpr int kIndexInFileMessages =
123 0;
124
126 a.Swap(&b);
127 }
128 inline void Swap(CpSolverRequest* other) {
129 if (other == this) return;
130 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
131 if (GetOwningArena() != nullptr &&
132 GetOwningArena() == other->GetOwningArena()) {
133 #else // PROTOBUF_FORCE_COPY_IN_SWAP
134 if (GetOwningArena() == other->GetOwningArena()) {
135 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
136 InternalSwap(other);
137 } else {
138 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
139 }
140 }
142 if (other == this) return;
143 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
144 InternalSwap(other);
145 }
146
147 // implements Message ----------------------------------------------
148
149 CpSolverRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
150 return CreateMaybeMessage<CpSolverRequest>(arena);
151 }
152 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
153 void CopyFrom(const CpSolverRequest& from);
154 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
155 void MergeFrom(const CpSolverRequest& from);
156 private:
157 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
158 public:
159 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
160 bool IsInitialized() const final;
161
162 size_t ByteSizeLong() const final;
163 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
164 uint8_t* _InternalSerialize(
165 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
166 int GetCachedSize() const final { return _cached_size_.Get(); }
167
168 private:
169 void SharedCtor();
170 void SharedDtor();
171 void SetCachedSize(int size) const final;
172 void InternalSwap(CpSolverRequest* other);
173
174 private:
175 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
176 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
177 return "operations_research.sat.v1.CpSolverRequest";
178 }
179 protected:
180 explicit CpSolverRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
181 bool is_message_owned = false);
182 private:
183 static void ArenaDtor(void* object);
184 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
185 public:
186
187 static const ClassData _class_data_;
188 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
189
190 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
191
192 // nested types ----------------------------------------------------
193
194 // accessors -------------------------------------------------------
195
196 enum : int {
199 };
200 // string parameters_as_string = 2;
202 const std::string& parameters_as_string() const;
203 template <typename ArgT0 = const std::string&, typename... ArgT>
204 void set_parameters_as_string(ArgT0&& arg0, ArgT... args);
205 std::string* mutable_parameters_as_string();
206 PROTOBUF_NODISCARD std::string* release_parameters_as_string();
208 private:
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();
212 public:
213
214 // .operations_research.sat.CpModelProto model = 1;
215 bool has_model() const;
216 private:
217 bool _internal_has_model() const;
218 public:
219 void clear_model();
220 const ::operations_research::sat::CpModelProto& model() const;
221 PROTOBUF_NODISCARD ::operations_research::sat::CpModelProto* release_model();
224 private:
225 const ::operations_research::sat::CpModelProto& _internal_model() const;
226 ::operations_research::sat::CpModelProto* _internal_mutable_model();
227 public:
231
232 // @@protoc_insertion_point(class_scope:operations_research.sat.v1.CpSolverRequest)
233 private:
234 class _Internal;
235
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;
243};
244// ===================================================================
245
246
247// ===================================================================
248
249#ifdef __GNUC__
250 #pragma GCC diagnostic push
251 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
252#endif // __GNUC__
253// CpSolverRequest
254
255// .operations_research.sat.CpModelProto model = 1;
256inline bool CpSolverRequest::_internal_has_model() const {
257 return this != internal_default_instance() && model_ != nullptr;
258}
259inline bool CpSolverRequest::has_model() const {
260 return _internal_has_model();
261}
262inline const ::operations_research::sat::CpModelProto& CpSolverRequest::_internal_model() const {
263 const ::operations_research::sat::CpModelProto* p = model_;
264 return p != nullptr ? *p : reinterpret_cast<const ::operations_research::sat::CpModelProto&>(
266}
267inline const ::operations_research::sat::CpModelProto& CpSolverRequest::model() const {
268 // @@protoc_insertion_point(field_get:operations_research.sat.v1.CpSolverRequest.model)
269 return _internal_model();
270}
273 if (GetArenaForAllocation() == nullptr) {
274 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(model_);
275 }
276 model_ = model;
277 if (model) {
278
279 } else {
280
281 }
282 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.sat.v1.CpSolverRequest.model)
283}
284inline ::operations_research::sat::CpModelProto* CpSolverRequest::release_model() {
285
287 model_ = nullptr;
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; }
292#else // PROTOBUF_FORCE_COPY_IN_RELEASE
293 if (GetArenaForAllocation() != nullptr) {
294 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
295 }
296#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
297 return temp;
298}
299inline ::operations_research::sat::CpModelProto* CpSolverRequest::unsafe_arena_release_model() {
300 // @@protoc_insertion_point(field_release:operations_research.sat.v1.CpSolverRequest.model)
301
303 model_ = nullptr;
304 return temp;
305}
306inline ::operations_research::sat::CpModelProto* CpSolverRequest::_internal_mutable_model() {
307
308 if (model_ == nullptr) {
309 auto* p = CreateMaybeMessage<::operations_research::sat::CpModelProto>(GetArenaForAllocation());
310 model_ = p;
311 }
312 return model_;
313}
314inline ::operations_research::sat::CpModelProto* CpSolverRequest::mutable_model() {
315 ::operations_research::sat::CpModelProto* _msg = _internal_mutable_model();
316 // @@protoc_insertion_point(field_mutable:operations_research.sat.v1.CpSolverRequest.model)
317 return _msg;
318}
320 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
321 if (message_arena == nullptr) {
322 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(model_);
323 }
324 if (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);
332 }
333
334 } else {
335
336 }
337 model_ = model;
338 // @@protoc_insertion_point(field_set_allocated:operations_research.sat.v1.CpSolverRequest.model)
339}
340
341// string parameters_as_string = 2;
343 parameters_as_string_.ClearToEmpty();
344}
345inline const std::string& CpSolverRequest::parameters_as_string() const {
346 // @@protoc_insertion_point(field_get:operations_research.sat.v1.CpSolverRequest.parameters_as_string)
347 return _internal_parameters_as_string();
348}
349template <typename ArgT0, typename... ArgT>
350inline PROTOBUF_ALWAYS_INLINE
351void CpSolverRequest::set_parameters_as_string(ArgT0&& arg0, ArgT... args) {
352
353 parameters_as_string_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
354 // @@protoc_insertion_point(field_set:operations_research.sat.v1.CpSolverRequest.parameters_as_string)
355}
357 std::string* _s = _internal_mutable_parameters_as_string();
358 // @@protoc_insertion_point(field_mutable:operations_research.sat.v1.CpSolverRequest.parameters_as_string)
359 return _s;
360}
361inline const std::string& CpSolverRequest::_internal_parameters_as_string() const {
362 return parameters_as_string_.Get();
363}
364inline void CpSolverRequest::_internal_set_parameters_as_string(const std::string& value) {
365
366 parameters_as_string_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
367}
368inline std::string* CpSolverRequest::_internal_mutable_parameters_as_string() {
369
370 return parameters_as_string_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
371}
373 // @@protoc_insertion_point(field_release:operations_research.sat.v1.CpSolverRequest.parameters_as_string)
374 return parameters_as_string_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
375}
377 if (parameters_as_string != nullptr) {
378
379 } else {
380
381 }
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());
387 }
388#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
389 // @@protoc_insertion_point(field_set_allocated:operations_research.sat.v1.CpSolverRequest.parameters_as_string)
390}
391
392#ifdef __GNUC__
393 #pragma GCC diagnostic pop
394#endif // __GNUC__
395
396// @@protoc_insertion_point(namespace_scope)
397
398} // namespace v1
399} // namespace sat
400} // namespace operations_research
401
402// @@protoc_insertion_point(global_scope)
403
404#include <google/protobuf/port_undef.inc>
405#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_ortools_2fsat_2fcp_5fmodel_5fservice_2eproto
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()
::operations_research::sat::CpModelProto * mutable_model()
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
static const CpSolverRequest * internal_default_instance()
friend void swap(CpSolverRequest &a, CpSolverRequest &b)
CpSolverRequest(CpSolverRequest &&from) noexcept
CpSolverRequest & operator=(CpSolverRequest &&from) noexcept
CpSolverRequest & operator=(const CpSolverRequest &from)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
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()
CpSolverRequest * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
void MergeFrom(const CpSolverRequest &from)
int64_t b
int64_t a
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ortools_2fsat_2fcp_5fmodel_5fservice_2eproto
int64_t value
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CpSolverRequestDefaultTypeInternal _CpSolverRequest_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CpModelProtoDefaultTypeInternal _CpModelProto_default_instance_
Definition: cp_model.pb.cc:463
Collection of objects used to extend the Constraint Solver library.
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold)