OR-Tools  9.2
search_limit.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: ortools/constraint_solver/search_limit.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_ortools_2fconstraint_5fsolver_2fsearch_5flimit_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>
34// @@protoc_insertion_point(includes)
35#include <google/protobuf/port_def.inc>
36#define PROTOBUF_INTERNAL_EXPORT_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto
37PROTOBUF_NAMESPACE_OPEN
38namespace internal {
39class AnyMetadata;
40} // namespace internal
41PROTOBUF_NAMESPACE_CLOSE
42
43// Internal implementation detail -- do not use these members.
45 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
47 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
49 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
51 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
52 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
53 static const uint32_t offsets[];
54};
55extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto;
56namespace operations_research {
57class RegularLimitParameters;
58struct RegularLimitParametersDefaultTypeInternal;
59extern RegularLimitParametersDefaultTypeInternal _RegularLimitParameters_default_instance_;
60} // namespace operations_research
61PROTOBUF_NAMESPACE_OPEN
62template<> ::operations_research::RegularLimitParameters* Arena::CreateMaybeMessage<::operations_research::RegularLimitParameters>(Arena*);
63PROTOBUF_NAMESPACE_CLOSE
64namespace operations_research {
65
66// ===================================================================
67
69 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:operations_research.RegularLimitParameters) */ {
70 public:
72 ~RegularLimitParameters() override;
73 explicit constexpr RegularLimitParameters(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
74
78 *this = ::std::move(from);
79 }
80
82 CopyFrom(from);
83 return *this;
84 }
86 if (this == &from) return *this;
87 if (GetOwningArena() == from.GetOwningArena()
88 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
89 && GetOwningArena() != nullptr
90 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
91 ) {
92 InternalSwap(&from);
93 } else {
94 CopyFrom(from);
95 }
96 return *this;
97 }
98
99 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
100 return GetDescriptor();
101 }
102 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
103 return default_instance().GetMetadata().descriptor;
104 }
105 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
106 return default_instance().GetMetadata().reflection;
107 }
110 }
112 return reinterpret_cast<const RegularLimitParameters*>(
114 }
115 static constexpr int kIndexInFileMessages =
116 0;
117
119 a.Swap(&b);
120 }
121 inline void Swap(RegularLimitParameters* other) {
122 if (other == this) return;
123 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
124 if (GetOwningArena() != nullptr &&
125 GetOwningArena() == other->GetOwningArena()) {
126 #else // PROTOBUF_FORCE_COPY_IN_SWAP
127 if (GetOwningArena() == other->GetOwningArena()) {
128 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
129 InternalSwap(other);
130 } else {
131 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
132 }
133 }
135 if (other == this) return;
136 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
137 InternalSwap(other);
138 }
139
140 // implements Message ----------------------------------------------
141
142 RegularLimitParameters* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
143 return CreateMaybeMessage<RegularLimitParameters>(arena);
144 }
145 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
146 void CopyFrom(const RegularLimitParameters& from);
147 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
148 void MergeFrom(const RegularLimitParameters& from);
149 private:
150 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
151 public:
152 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
153 bool IsInitialized() const final;
154
155 size_t ByteSizeLong() const final;
156 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
157 uint8_t* _InternalSerialize(
158 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
159 int GetCachedSize() const final { return _cached_size_.Get(); }
160
161 private:
162 void SharedCtor();
163 void SharedDtor();
164 void SetCachedSize(int size) const final;
165 void InternalSwap(RegularLimitParameters* other);
166
167 private:
168 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
169 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
170 return "operations_research.RegularLimitParameters";
171 }
172 protected:
173 explicit RegularLimitParameters(::PROTOBUF_NAMESPACE_ID::Arena* arena,
174 bool is_message_owned = false);
175 private:
176 static void ArenaDtor(void* object);
177 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
178 public:
179
180 static const ClassData _class_data_;
181 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
182
183 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
184
185 // nested types ----------------------------------------------------
186
187 // accessors -------------------------------------------------------
188
189 enum : int {
196 };
197 // int64 time = 1;
198 void clear_time();
199 int64_t time() const;
200 void set_time(int64_t value);
201 private:
202 int64_t _internal_time() const;
203 void _internal_set_time(int64_t value);
204 public:
205
206 // int64 branches = 2;
207 void clear_branches();
208 int64_t branches() const;
209 void set_branches(int64_t value);
210 private:
211 int64_t _internal_branches() const;
212 void _internal_set_branches(int64_t value);
213 public:
214
215 // int64 failures = 3;
216 void clear_failures();
217 int64_t failures() const;
218 void set_failures(int64_t value);
219 private:
220 int64_t _internal_failures() const;
221 void _internal_set_failures(int64_t value);
222 public:
223
224 // int64 solutions = 4;
225 void clear_solutions();
226 int64_t solutions() const;
227 void set_solutions(int64_t value);
228 private:
229 int64_t _internal_solutions() const;
230 void _internal_set_solutions(int64_t value);
231 public:
232
233 // bool smart_time_check = 5;
235 bool smart_time_check() const;
236 void set_smart_time_check(bool value);
237 private:
238 bool _internal_smart_time_check() const;
239 void _internal_set_smart_time_check(bool value);
240 public:
241
242 // bool cumulative = 6;
243 void clear_cumulative();
244 bool cumulative() const;
245 void set_cumulative(bool value);
246 private:
247 bool _internal_cumulative() const;
248 void _internal_set_cumulative(bool value);
249 public:
250
251 // @@protoc_insertion_point(class_scope:operations_research.RegularLimitParameters)
252 private:
253 class _Internal;
254
255 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
256 typedef void InternalArenaConstructable_;
257 typedef void DestructorSkippable_;
258 int64_t time_;
259 int64_t branches_;
260 int64_t failures_;
261 int64_t solutions_;
262 bool smart_time_check_;
263 bool cumulative_;
264 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
265 friend struct ::TableStruct_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto;
266};
267// ===================================================================
268
269
270// ===================================================================
271
272#ifdef __GNUC__
273 #pragma GCC diagnostic push
274 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
275#endif // __GNUC__
276// RegularLimitParameters
277
278// int64 time = 1;
280 time_ = int64_t{0};
281}
282inline int64_t RegularLimitParameters::_internal_time() const {
283 return time_;
284}
285inline int64_t RegularLimitParameters::time() const {
286 // @@protoc_insertion_point(field_get:operations_research.RegularLimitParameters.time)
287 return _internal_time();
288}
289inline void RegularLimitParameters::_internal_set_time(int64_t value) {
290
291 time_ = value;
292}
294 _internal_set_time(value);
295 // @@protoc_insertion_point(field_set:operations_research.RegularLimitParameters.time)
296}
297
298// int64 branches = 2;
300 branches_ = int64_t{0};
301}
302inline int64_t RegularLimitParameters::_internal_branches() const {
303 return branches_;
304}
305inline int64_t RegularLimitParameters::branches() const {
306 // @@protoc_insertion_point(field_get:operations_research.RegularLimitParameters.branches)
307 return _internal_branches();
308}
309inline void RegularLimitParameters::_internal_set_branches(int64_t value) {
310
311 branches_ = value;
312}
314 _internal_set_branches(value);
315 // @@protoc_insertion_point(field_set:operations_research.RegularLimitParameters.branches)
316}
317
318// int64 failures = 3;
320 failures_ = int64_t{0};
321}
322inline int64_t RegularLimitParameters::_internal_failures() const {
323 return failures_;
324}
325inline int64_t RegularLimitParameters::failures() const {
326 // @@protoc_insertion_point(field_get:operations_research.RegularLimitParameters.failures)
327 return _internal_failures();
328}
329inline void RegularLimitParameters::_internal_set_failures(int64_t value) {
330
331 failures_ = value;
332}
334 _internal_set_failures(value);
335 // @@protoc_insertion_point(field_set:operations_research.RegularLimitParameters.failures)
336}
337
338// int64 solutions = 4;
340 solutions_ = int64_t{0};
341}
342inline int64_t RegularLimitParameters::_internal_solutions() const {
343 return solutions_;
344}
345inline int64_t RegularLimitParameters::solutions() const {
346 // @@protoc_insertion_point(field_get:operations_research.RegularLimitParameters.solutions)
347 return _internal_solutions();
348}
349inline void RegularLimitParameters::_internal_set_solutions(int64_t value) {
350
351 solutions_ = value;
352}
354 _internal_set_solutions(value);
355 // @@protoc_insertion_point(field_set:operations_research.RegularLimitParameters.solutions)
356}
357
358// bool smart_time_check = 5;
360 smart_time_check_ = false;
361}
362inline bool RegularLimitParameters::_internal_smart_time_check() const {
363 return smart_time_check_;
364}
366 // @@protoc_insertion_point(field_get:operations_research.RegularLimitParameters.smart_time_check)
367 return _internal_smart_time_check();
368}
369inline void RegularLimitParameters::_internal_set_smart_time_check(bool value) {
370
371 smart_time_check_ = value;
372}
374 _internal_set_smart_time_check(value);
375 // @@protoc_insertion_point(field_set:operations_research.RegularLimitParameters.smart_time_check)
376}
377
378// bool cumulative = 6;
380 cumulative_ = false;
381}
382inline bool RegularLimitParameters::_internal_cumulative() const {
383 return cumulative_;
384}
386 // @@protoc_insertion_point(field_get:operations_research.RegularLimitParameters.cumulative)
387 return _internal_cumulative();
388}
389inline void RegularLimitParameters::_internal_set_cumulative(bool value) {
390
391 cumulative_ = value;
392}
394 _internal_set_cumulative(value);
395 // @@protoc_insertion_point(field_set:operations_research.RegularLimitParameters.cumulative)
396}
397
398#ifdef __GNUC__
399 #pragma GCC diagnostic pop
400#endif // __GNUC__
401
402// @@protoc_insertion_point(namespace_scope)
403
404} // namespace operations_research
405
406// @@protoc_insertion_point(global_scope)
407
408#include <google/protobuf/port_undef.inc>
409#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto
void Swap(RegularLimitParameters *other)
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
RegularLimitParameters & operator=(const RegularLimitParameters &from)
RegularLimitParameters * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
void UnsafeArenaSwap(RegularLimitParameters *other)
RegularLimitParameters(RegularLimitParameters &&from) noexcept
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
friend void swap(RegularLimitParameters &a, RegularLimitParameters &b)
static const RegularLimitParameters * internal_default_instance()
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
static const RegularLimitParameters & default_instance()
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
void MergeFrom(const RegularLimitParameters &from)
void CopyFrom(const RegularLimitParameters &from)
RegularLimitParameters & operator=(RegularLimitParameters &&from) noexcept
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
int64_t b
int64_t a
int64_t value
Collection of objects used to extend the Constraint Solver library.
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT RegularLimitParametersDefaultTypeInternal _RegularLimitParameters_default_instance_
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto
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)