Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
search_limit.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// NO CHECKED-IN PROTOBUF GENCODE
3// source: ortools/constraint_solver/search_limit.proto
4// Protobuf C++ Version: 6.31.1
5
6#ifndef ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto_2epb_2eh
7#define ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto_2epb_2eh
8
9#include <limits>
10#include <string>
11#include <type_traits>
12#include <utility>
13
14#include "google/protobuf/runtime_version.h"
15#if PROTOBUF_VERSION != 6031001
16#error "Protobuf C++ gencode is built with an incompatible version of"
17#error "Protobuf C++ headers/runtime. See"
18#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp"
19#endif
20#include "google/protobuf/io/coded_stream.h"
21#include "google/protobuf/arena.h"
22#include "google/protobuf/arenastring.h"
23#include "google/protobuf/generated_message_tctable_decl.h"
24#include "google/protobuf/generated_message_util.h"
25#include "google/protobuf/metadata_lite.h"
26#include "google/protobuf/generated_message_reflection.h"
27#include "google/protobuf/message.h"
28#include "google/protobuf/message_lite.h"
29#include "google/protobuf/repeated_field.h" // IWYU pragma: export
30#include "google/protobuf/extension_set.h" // IWYU pragma: export
31#include "google/protobuf/unknown_field_set.h"
32// @@protoc_insertion_point(includes)
33
34// Must be included last.
35#include "google/protobuf/port_def.inc"
36
37#define PROTOBUF_INTERNAL_EXPORT_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto OR_PROTO_DLL
38
39namespace google {
40namespace protobuf {
41namespace internal {
42template <typename T>
43::absl::string_view GetAnyMessageName();
44} // namespace internal
45} // namespace protobuf
46} // namespace google
47
48// Internal implementation detail -- do not use these members.
50 static const ::uint32_t offsets[];
51};
52extern "C" {
53OR_PROTO_DLL extern const ::google::protobuf::internal::DescriptorTable descriptor_table_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto;
54} // extern "C"
55namespace operations_research {
59OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull RegularLimitParameters_class_data_;
60} // namespace operations_research
61namespace google {
62namespace protobuf {
63} // namespace protobuf
64} // namespace google
65
66namespace operations_research {
67
68// ===================================================================
69
70
71// -------------------------------------------------------------------
72
73class OR_PROTO_DLL RegularLimitParameters final : public ::google::protobuf::Message
74/* @@protoc_insertion_point(class_definition:operations_research.RegularLimitParameters) */ {
75 public:
77 ~RegularLimitParameters() PROTOBUF_FINAL;
79#if defined(PROTOBUF_CUSTOM_VTABLE)
80 void operator delete(RegularLimitParameters* PROTOBUF_NONNULL msg, std::destroying_delete_t) {
81 SharedDtor(*msg);
82 ::google::protobuf::internal::SizedDelete(msg, sizeof(RegularLimitParameters));
83 }
84#endif
85
86 template <typename = void>
87 explicit PROTOBUF_CONSTEXPR RegularLimitParameters(::google::protobuf::internal::ConstantInitialized);
88
91 : RegularLimitParameters(nullptr, ::std::move(from)) {}
94 return *this;
95 }
96 inline RegularLimitParameters& operator=(RegularLimitParameters&& from) noexcept {
97 if (this == &from) return *this;
98 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
99 InternalSwap(&from);
100 } else {
101 CopyFrom(from);
102 }
103 return *this;
104 }
105
106 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
107 ABSL_ATTRIBUTE_LIFETIME_BOUND {
108 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
109 }
110 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
111 ABSL_ATTRIBUTE_LIFETIME_BOUND {
112 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
113 }
114
115 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
116 return GetDescriptor();
118 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
119 return default_instance().GetMetadata().descriptor;
121 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
122 return default_instance().GetMetadata().reflection;
124 static const RegularLimitParameters& default_instance() {
125 return *reinterpret_cast<const RegularLimitParameters*>(
127 }
128 static constexpr int kIndexInFileMessages = 0;
129 friend void swap(RegularLimitParameters& a, RegularLimitParameters& b) { a.Swap(&b); }
130 inline void Swap(RegularLimitParameters* PROTOBUF_NONNULL other) {
131 if (other == this) return;
132 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
133 InternalSwap(other);
134 } else {
135 ::google::protobuf::internal::GenericSwap(this, other);
136 }
137 }
138 void UnsafeArenaSwap(RegularLimitParameters* PROTOBUF_NONNULL other) {
139 if (other == this) return;
140 ABSL_DCHECK(GetArena() == other->GetArena());
141 InternalSwap(other);
142 }
143
144 // implements Message ----------------------------------------------
145
146 RegularLimitParameters* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
147 return ::google::protobuf::Message::DefaultConstruct<RegularLimitParameters>(arena);
149 using ::google::protobuf::Message::CopyFrom;
150 void CopyFrom(const RegularLimitParameters& from);
151 using ::google::protobuf::Message::MergeFrom;
152 void MergeFrom(const RegularLimitParameters& from) { RegularLimitParameters::MergeImpl(*this, from); }
153
154 private:
155 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
156 const ::google::protobuf::MessageLite& from_msg);
157
158 public:
159 bool IsInitialized() const {
160 return true;
162 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
163 #if defined(PROTOBUF_CUSTOM_VTABLE)
164 private:
165 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
166 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
167 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
168 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
169
170 public:
171 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
172 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
173 ::uint8_t* PROTOBUF_NONNULL target,
174 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
175 return _InternalSerialize(*this, target, stream);
176 }
177 #else // PROTOBUF_CUSTOM_VTABLE
178 ::size_t ByteSizeLong() const final;
179 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
180 ::uint8_t* PROTOBUF_NONNULL target,
181 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
182 #endif // PROTOBUF_CUSTOM_VTABLE
183 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
184
185 private:
186 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
187 static void SharedDtor(MessageLite& self);
188 void InternalSwap(RegularLimitParameters* PROTOBUF_NONNULL other);
189 private:
190 template <typename T>
191 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
192 static ::absl::string_view FullMessageName() { return "operations_research.RegularLimitParameters"; }
193
194 protected:
195 explicit RegularLimitParameters(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
196 RegularLimitParameters(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RegularLimitParameters& from);
198 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, RegularLimitParameters&& from) noexcept
200 *this = ::std::move(from);
201 }
202 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
203 static void* PROTOBUF_NONNULL PlacementNew_(
204 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
205 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
206 static constexpr auto InternalNewImpl_();
207
208 public:
209 static constexpr auto InternalGenerateClassData_();
210
211 ::google::protobuf::Metadata GetMetadata() const;
212 // nested types ----------------------------------------------------
213
214 // accessors -------------------------------------------------------
215 enum : int {
216 kTimeFieldNumber = 1,
217 kBranchesFieldNumber = 2,
222 };
223 // int64 time = 1;
224 void clear_time() ;
225 ::int64_t time() const;
226 void set_time(::int64_t value);
227
228 private:
229 ::int64_t _internal_time() const;
230 void _internal_set_time(::int64_t value);
231
232 public:
233 // int64 branches = 2;
234 void clear_branches() ;
235 ::int64_t branches() const;
236 void set_branches(::int64_t value);
237
238 private:
239 ::int64_t _internal_branches() const;
240 void _internal_set_branches(::int64_t value);
241
242 public:
243 // int64 failures = 3;
244 void clear_failures() ;
245 ::int64_t failures() const;
246 void set_failures(::int64_t value);
247
248 private:
249 ::int64_t _internal_failures() const;
250 void _internal_set_failures(::int64_t value);
251
252 public:
253 // int64 solutions = 4;
254 void clear_solutions() ;
255 ::int64_t solutions() const;
256 void set_solutions(::int64_t value);
257
258 private:
259 ::int64_t _internal_solutions() const;
260 void _internal_set_solutions(::int64_t value);
261
262 public:
263 // bool smart_time_check = 5;
265 bool smart_time_check() const;
266 void set_smart_time_check(bool value);
267
268 private:
269 bool _internal_smart_time_check() const;
270 void _internal_set_smart_time_check(bool value);
271
272 public:
273 // bool cumulative = 6;
274 void clear_cumulative() ;
275 bool cumulative() const;
276 void set_cumulative(bool value);
277
278 private:
279 bool _internal_cumulative() const;
280 void _internal_set_cumulative(bool value);
281
282 public:
283 // @@protoc_insertion_point(class_scope:operations_research.RegularLimitParameters)
284 private:
285 class _Internal;
286 friend class ::google::protobuf::internal::TcParser;
287 static const ::google::protobuf::internal::TcParseTable<3, 6,
288 0, 0,
289 2>
290 _table_;
291
292 friend class ::google::protobuf::MessageLite;
293 friend class ::google::protobuf::Arena;
294 template <typename T>
295 friend class ::google::protobuf::Arena::InternalHelper;
296 using InternalArenaConstructable_ = void;
297 using DestructorSkippable_ = void;
298 struct Impl_ {
299 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
300 inline explicit Impl_(
301 ::google::protobuf::internal::InternalVisibility visibility,
302 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
303 inline explicit Impl_(
304 ::google::protobuf::internal::InternalVisibility visibility,
305 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
306 const RegularLimitParameters& from_msg);
307 ::google::protobuf::internal::HasBits<1> _has_bits_;
308 ::google::protobuf::internal::CachedSize _cached_size_;
309 ::int64_t time_;
310 ::int64_t branches_;
311 ::int64_t failures_;
312 ::int64_t solutions_;
313 bool smart_time_check_;
314 bool cumulative_;
315 PROTOBUF_TSAN_DECLARE_MEMBER
316 };
317 union { Impl_ _impl_; };
318 friend struct ::TableStruct_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto;
321OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull RegularLimitParameters_class_data_;
322
323// ===================================================================
324
325
326
327
328// ===================================================================
329
330
331#ifdef __GNUC__
332#pragma GCC diagnostic push
333#pragma GCC diagnostic ignored "-Wstrict-aliasing"
334#endif // __GNUC__
335// -------------------------------------------------------------------
336
337// RegularLimitParameters
338
339// int64 time = 1;
341 ::google::protobuf::internal::TSanWrite(&_impl_);
342 _impl_.time_ = ::int64_t{0};
343 _impl_._has_bits_[0] &= ~0x00000001u;
344}
345inline ::int64_t RegularLimitParameters::time() const {
346 // @@protoc_insertion_point(field_get:operations_research.RegularLimitParameters.time)
347 return _internal_time();
348}
349inline void RegularLimitParameters::set_time(::int64_t value) {
350 _internal_set_time(value);
351 _impl_._has_bits_[0] |= 0x00000001u;
352 // @@protoc_insertion_point(field_set:operations_research.RegularLimitParameters.time)
353}
354inline ::int64_t RegularLimitParameters::_internal_time() const {
355 ::google::protobuf::internal::TSanRead(&_impl_);
356 return _impl_.time_;
357}
358inline void RegularLimitParameters::_internal_set_time(::int64_t value) {
359 ::google::protobuf::internal::TSanWrite(&_impl_);
360 _impl_.time_ = value;
361}
362
363// int64 branches = 2;
365 ::google::protobuf::internal::TSanWrite(&_impl_);
366 _impl_.branches_ = ::int64_t{0};
367 _impl_._has_bits_[0] &= ~0x00000002u;
368}
369inline ::int64_t RegularLimitParameters::branches() const {
370 // @@protoc_insertion_point(field_get:operations_research.RegularLimitParameters.branches)
371 return _internal_branches();
372}
373inline void RegularLimitParameters::set_branches(::int64_t value) {
374 _internal_set_branches(value);
375 _impl_._has_bits_[0] |= 0x00000002u;
376 // @@protoc_insertion_point(field_set:operations_research.RegularLimitParameters.branches)
377}
378inline ::int64_t RegularLimitParameters::_internal_branches() const {
379 ::google::protobuf::internal::TSanRead(&_impl_);
380 return _impl_.branches_;
381}
382inline void RegularLimitParameters::_internal_set_branches(::int64_t value) {
383 ::google::protobuf::internal::TSanWrite(&_impl_);
384 _impl_.branches_ = value;
385}
386
387// int64 failures = 3;
389 ::google::protobuf::internal::TSanWrite(&_impl_);
390 _impl_.failures_ = ::int64_t{0};
391 _impl_._has_bits_[0] &= ~0x00000004u;
392}
393inline ::int64_t RegularLimitParameters::failures() const {
394 // @@protoc_insertion_point(field_get:operations_research.RegularLimitParameters.failures)
395 return _internal_failures();
396}
397inline void RegularLimitParameters::set_failures(::int64_t value) {
398 _internal_set_failures(value);
399 _impl_._has_bits_[0] |= 0x00000004u;
400 // @@protoc_insertion_point(field_set:operations_research.RegularLimitParameters.failures)
401}
402inline ::int64_t RegularLimitParameters::_internal_failures() const {
403 ::google::protobuf::internal::TSanRead(&_impl_);
404 return _impl_.failures_;
405}
406inline void RegularLimitParameters::_internal_set_failures(::int64_t value) {
407 ::google::protobuf::internal::TSanWrite(&_impl_);
408 _impl_.failures_ = value;
409}
410
411// int64 solutions = 4;
413 ::google::protobuf::internal::TSanWrite(&_impl_);
414 _impl_.solutions_ = ::int64_t{0};
415 _impl_._has_bits_[0] &= ~0x00000008u;
416}
417inline ::int64_t RegularLimitParameters::solutions() const {
418 // @@protoc_insertion_point(field_get:operations_research.RegularLimitParameters.solutions)
419 return _internal_solutions();
420}
421inline void RegularLimitParameters::set_solutions(::int64_t value) {
422 _internal_set_solutions(value);
423 _impl_._has_bits_[0] |= 0x00000008u;
424 // @@protoc_insertion_point(field_set:operations_research.RegularLimitParameters.solutions)
425}
426inline ::int64_t RegularLimitParameters::_internal_solutions() const {
427 ::google::protobuf::internal::TSanRead(&_impl_);
428 return _impl_.solutions_;
429}
430inline void RegularLimitParameters::_internal_set_solutions(::int64_t value) {
431 ::google::protobuf::internal::TSanWrite(&_impl_);
432 _impl_.solutions_ = value;
433}
434
435// bool smart_time_check = 5;
437 ::google::protobuf::internal::TSanWrite(&_impl_);
438 _impl_.smart_time_check_ = false;
439 _impl_._has_bits_[0] &= ~0x00000010u;
440}
442 // @@protoc_insertion_point(field_get:operations_research.RegularLimitParameters.smart_time_check)
443 return _internal_smart_time_check();
444}
445inline void RegularLimitParameters::set_smart_time_check(bool value) {
446 _internal_set_smart_time_check(value);
447 _impl_._has_bits_[0] |= 0x00000010u;
448 // @@protoc_insertion_point(field_set:operations_research.RegularLimitParameters.smart_time_check)
449}
450inline bool RegularLimitParameters::_internal_smart_time_check() const {
451 ::google::protobuf::internal::TSanRead(&_impl_);
452 return _impl_.smart_time_check_;
453}
454inline void RegularLimitParameters::_internal_set_smart_time_check(bool value) {
455 ::google::protobuf::internal::TSanWrite(&_impl_);
456 _impl_.smart_time_check_ = value;
457}
458
459// bool cumulative = 6;
461 ::google::protobuf::internal::TSanWrite(&_impl_);
462 _impl_.cumulative_ = false;
463 _impl_._has_bits_[0] &= ~0x00000020u;
464}
466 // @@protoc_insertion_point(field_get:operations_research.RegularLimitParameters.cumulative)
467 return _internal_cumulative();
468}
469inline void RegularLimitParameters::set_cumulative(bool value) {
470 _internal_set_cumulative(value);
471 _impl_._has_bits_[0] |= 0x00000020u;
472 // @@protoc_insertion_point(field_set:operations_research.RegularLimitParameters.cumulative)
473}
474inline bool RegularLimitParameters::_internal_cumulative() const {
475 ::google::protobuf::internal::TSanRead(&_impl_);
476 return _impl_.cumulative_;
477}
478inline void RegularLimitParameters::_internal_set_cumulative(bool value) {
479 ::google::protobuf::internal::TSanWrite(&_impl_);
480 _impl_.cumulative_ = value;
481}
482
483#ifdef __GNUC__
484#pragma GCC diagnostic pop
485#endif // __GNUC__
486
487// @@protoc_insertion_point(namespace_scope)
488} // namespace operations_research
489
490
491// @@protoc_insertion_point(global_scope)
492
493#include "google/protobuf/port_undef.inc"
494
495#endif // ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto_2epb_2eh
void Swap(RegularLimitParameters *PROTOBUF_NONNULL other)
friend class ::google::protobuf::MessageLite
void CopyFrom(const RegularLimitParameters &from)
void clear_smart_time_check()
bool smart_time_check = 5;
RegularLimitParameters(const RegularLimitParameters &from)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
RegularLimitParameters(::google::protobuf::Arena *PROTOBUF_NULLABLE arena, RegularLimitParameters &&from) noexcept
PROTOBUF_CONSTEXPR RegularLimitParameters(::google::protobuf::internal::ConstantInitialized)
RegularLimitParameters & operator=(const RegularLimitParameters &from)
::absl::string_view GetAnyMessageName()
In SWIG mode, we don't want anything besides these top-level includes.
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RegularLimitParametersDefaultTypeInternal _RegularLimitParameters_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull RegularLimitParameters_class_data_
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto
Internal implementation detail – do not use these members.