OR-Tools  9.1
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 < 3018000
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 3018000 < 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 ::PROTOBUF_NAMESPACE_ID::uint32 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 if (GetOwningArena() == other->GetOwningArena()) {
131 InternalSwap(other);
132 } else {
133 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
134 }
135 }
137 if (other == this) return;
138 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
139 InternalSwap(other);
140 }
141
142 // implements Message ----------------------------------------------
143
144 inline CpSolverRequest* New() const final {
145 return new CpSolverRequest();
146 }
147
148 CpSolverRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
149 return CreateMaybeMessage<CpSolverRequest>(arena);
150 }
151 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
152 void CopyFrom(const CpSolverRequest& from);
153 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
154 void MergeFrom(const CpSolverRequest& from);
155 private:
156 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
157 public:
158 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
159 bool IsInitialized() const final;
160
161 size_t ByteSizeLong() const final;
162 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
163 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
164 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
165 int GetCachedSize() const final { return _cached_size_.Get(); }
166
167 private:
168 void SharedCtor();
169 void SharedDtor();
170 void SetCachedSize(int size) const final;
171 void InternalSwap(CpSolverRequest* other);
172 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
173 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
174 return "operations_research.sat.v1.CpSolverRequest";
175 }
176 protected:
177 explicit CpSolverRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
178 bool is_message_owned = false);
179 private:
180 static void ArenaDtor(void* object);
181 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
182 public:
183
184 static const ClassData _class_data_;
185 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
186
187 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
188
189 // nested types ----------------------------------------------------
190
191 // accessors -------------------------------------------------------
192
193 enum : int {
196 };
197 // string parameters_as_string = 2;
199 const std::string& parameters_as_string() const;
200 template <typename ArgT0 = const std::string&, typename... ArgT>
201 void set_parameters_as_string(ArgT0&& arg0, ArgT... args);
202 std::string* mutable_parameters_as_string();
203 PROTOBUF_MUST_USE_RESULT std::string* release_parameters_as_string();
205 private:
206 const std::string& _internal_parameters_as_string() const;
207 inline PROTOBUF_ALWAYS_INLINE void _internal_set_parameters_as_string(const std::string& value);
208 std::string* _internal_mutable_parameters_as_string();
209 public:
210
211 // .operations_research.sat.CpModelProto model = 1;
212 bool has_model() const;
213 private:
214 bool _internal_has_model() const;
215 public:
216 void clear_model();
217 const ::operations_research::sat::CpModelProto& model() const;
218 PROTOBUF_MUST_USE_RESULT ::operations_research::sat::CpModelProto* release_model();
221 private:
222 const ::operations_research::sat::CpModelProto& _internal_model() const;
223 ::operations_research::sat::CpModelProto* _internal_mutable_model();
224 public:
228
229 // @@protoc_insertion_point(class_scope:operations_research.sat.v1.CpSolverRequest)
230 private:
231 class _Internal;
232
233 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
234 typedef void InternalArenaConstructable_;
235 typedef void DestructorSkippable_;
236 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr parameters_as_string_;
238 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
239 friend struct ::TableStruct_ortools_2fsat_2fcp_5fmodel_5fservice_2eproto;
240};
241// ===================================================================
242
243
244// ===================================================================
245
246#ifdef __GNUC__
247 #pragma GCC diagnostic push
248 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
249#endif // __GNUC__
250// CpSolverRequest
251
252// .operations_research.sat.CpModelProto model = 1;
253inline bool CpSolverRequest::_internal_has_model() const {
254 return this != internal_default_instance() && model_ != nullptr;
255}
256inline bool CpSolverRequest::has_model() const {
257 return _internal_has_model();
258}
259inline const ::operations_research::sat::CpModelProto& CpSolverRequest::_internal_model() const {
260 const ::operations_research::sat::CpModelProto* p = model_;
261 return p != nullptr ? *p : reinterpret_cast<const ::operations_research::sat::CpModelProto&>(
263}
264inline const ::operations_research::sat::CpModelProto& CpSolverRequest::model() const {
265 // @@protoc_insertion_point(field_get:operations_research.sat.v1.CpSolverRequest.model)
266 return _internal_model();
267}
270 if (GetArenaForAllocation() == nullptr) {
271 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(model_);
272 }
273 model_ = model;
274 if (model) {
275
276 } else {
277
278 }
279 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:operations_research.sat.v1.CpSolverRequest.model)
280}
281inline ::operations_research::sat::CpModelProto* CpSolverRequest::release_model() {
282
284 model_ = nullptr;
285#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
286 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
287 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
288 if (GetArenaForAllocation() == nullptr) { delete old; }
289#else // PROTOBUF_FORCE_COPY_IN_RELEASE
290 if (GetArenaForAllocation() != nullptr) {
291 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
292 }
293#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
294 return temp;
295}
296inline ::operations_research::sat::CpModelProto* CpSolverRequest::unsafe_arena_release_model() {
297 // @@protoc_insertion_point(field_release:operations_research.sat.v1.CpSolverRequest.model)
298
300 model_ = nullptr;
301 return temp;
302}
303inline ::operations_research::sat::CpModelProto* CpSolverRequest::_internal_mutable_model() {
304
305 if (model_ == nullptr) {
306 auto* p = CreateMaybeMessage<::operations_research::sat::CpModelProto>(GetArenaForAllocation());
307 model_ = p;
308 }
309 return model_;
310}
311inline ::operations_research::sat::CpModelProto* CpSolverRequest::mutable_model() {
312 ::operations_research::sat::CpModelProto* _msg = _internal_mutable_model();
313 // @@protoc_insertion_point(field_mutable:operations_research.sat.v1.CpSolverRequest.model)
314 return _msg;
315}
317 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
318 if (message_arena == nullptr) {
319 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(model_);
320 }
321 if (model) {
322 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
324 ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
325 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(model));
326 if (message_arena != submessage_arena) {
327 model = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
328 message_arena, model, submessage_arena);
329 }
330
331 } else {
332
333 }
334 model_ = model;
335 // @@protoc_insertion_point(field_set_allocated:operations_research.sat.v1.CpSolverRequest.model)
336}
337
338// string parameters_as_string = 2;
340 parameters_as_string_.ClearToEmpty();
341}
342inline const std::string& CpSolverRequest::parameters_as_string() const {
343 // @@protoc_insertion_point(field_get:operations_research.sat.v1.CpSolverRequest.parameters_as_string)
344 return _internal_parameters_as_string();
345}
346template <typename ArgT0, typename... ArgT>
347inline PROTOBUF_ALWAYS_INLINE
348void CpSolverRequest::set_parameters_as_string(ArgT0&& arg0, ArgT... args) {
349
350 parameters_as_string_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
351 // @@protoc_insertion_point(field_set:operations_research.sat.v1.CpSolverRequest.parameters_as_string)
352}
354 std::string* _s = _internal_mutable_parameters_as_string();
355 // @@protoc_insertion_point(field_mutable:operations_research.sat.v1.CpSolverRequest.parameters_as_string)
356 return _s;
357}
358inline const std::string& CpSolverRequest::_internal_parameters_as_string() const {
359 return parameters_as_string_.Get();
360}
361inline void CpSolverRequest::_internal_set_parameters_as_string(const std::string& value) {
362
363 parameters_as_string_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
364}
365inline std::string* CpSolverRequest::_internal_mutable_parameters_as_string() {
366
367 return parameters_as_string_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
368}
370 // @@protoc_insertion_point(field_release:operations_research.sat.v1.CpSolverRequest.parameters_as_string)
371 return parameters_as_string_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
372}
373inline void CpSolverRequest::set_allocated_parameters_as_string(std::string* parameters_as_string) {
374 if (parameters_as_string != nullptr) {
375
376 } else {
377
378 }
379 parameters_as_string_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), parameters_as_string,
380 GetArenaForAllocation());
381 // @@protoc_insertion_point(field_set_allocated:operations_research.sat.v1.CpSolverRequest.parameters_as_string)
382}
383
384#ifdef __GNUC__
385 #pragma GCC diagnostic pop
386#endif // __GNUC__
387
388// @@protoc_insertion_point(namespace_scope)
389
390} // namespace v1
391} // namespace sat
392} // namespace operations_research
393
394// @@protoc_insertion_point(global_scope)
395
396#include <google/protobuf/port_undef.inc>
397#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_ortools_2fsat_2fcp_5fmodel_5fservice_2eproto
void set_allocated_model(::operations_research::sat::CpModelProto *model)
PROTOBUF_MUST_USE_RESULT std::string * release_parameters_as_string()
void set_allocated_parameters_as_string(std::string *parameters_as_string)
PROTOBUF_MUST_USE_RESULT::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)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
::operations_research::sat::CpModelProto * unsafe_arena_release_model()
CpSolverRequest * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
void MergeFrom(const CpSolverRequest &from)
::PROTOBUF_NAMESPACE_ID::uint8 * _InternalSerialize(::PROTOBUF_NAMESPACE_ID::uint8 *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
int64_t b
int64_t a
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ortools_2fsat_2fcp_5fmodel_5fservice_2eproto
int64_t value
GRBmodel * model
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:464
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::uint32 offsets[]
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)