Google OR-Tools v9.15
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.33.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 != 6033001
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 explicit RegularLimitParameters(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
195 RegularLimitParameters(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RegularLimitParameters& from);
197 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, RegularLimitParameters&& from) noexcept
198 : RegularLimitParameters(arena) {
199 *this = ::std::move(from);
200 }
201 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
202 static void* PROTOBUF_NONNULL PlacementNew_(
203 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
204 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
205 static constexpr auto InternalNewImpl_();
206
207 public:
208 static constexpr auto InternalGenerateClassData_();
209
210 ::google::protobuf::Metadata GetMetadata() const;
211 // nested types ----------------------------------------------------
212
213 // accessors -------------------------------------------------------
214 enum : int {
215 kTimeFieldNumber = 1,
216 kBranchesFieldNumber = 2,
221 };
222 // int64 time = 1;
223 void clear_time() ;
224 ::int64_t time() const;
225 void set_time(::int64_t value);
226
227 private:
228 ::int64_t _internal_time() const;
229 void _internal_set_time(::int64_t value);
230
231 public:
232 // int64 branches = 2;
233 void clear_branches() ;
234 ::int64_t branches() const;
235 void set_branches(::int64_t value);
236
237 private:
238 ::int64_t _internal_branches() const;
239 void _internal_set_branches(::int64_t value);
240
241 public:
242 // int64 failures = 3;
243 void clear_failures() ;
244 ::int64_t failures() const;
245 void set_failures(::int64_t value);
246
247 private:
248 ::int64_t _internal_failures() const;
249 void _internal_set_failures(::int64_t value);
250
251 public:
252 // int64 solutions = 4;
253 void clear_solutions() ;
254 ::int64_t solutions() const;
255 void set_solutions(::int64_t value);
256
257 private:
258 ::int64_t _internal_solutions() const;
259 void _internal_set_solutions(::int64_t value);
260
261 public:
262 // bool smart_time_check = 5;
264 bool smart_time_check() const;
265 void set_smart_time_check(bool value);
266
267 private:
268 bool _internal_smart_time_check() const;
269 void _internal_set_smart_time_check(bool value);
270
271 public:
272 // bool cumulative = 6;
273 void clear_cumulative() ;
274 bool cumulative() const;
275 void set_cumulative(bool value);
276
277 private:
278 bool _internal_cumulative() const;
279 void _internal_set_cumulative(bool value);
280
281 public:
282 // @@protoc_insertion_point(class_scope:operations_research.RegularLimitParameters)
283 private:
284 class _Internal;
285 friend class ::google::protobuf::internal::TcParser;
286 static const ::google::protobuf::internal::TcParseTable<3, 6,
287 0, 0,
288 2>
289 _table_;
290
291 friend class ::google::protobuf::MessageLite;
292 friend class ::google::protobuf::Arena;
293 template <typename T>
294 friend class ::google::protobuf::Arena::InternalHelper;
295 using InternalArenaConstructable_ = void;
296 using DestructorSkippable_ = void;
297 struct Impl_ {
298 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
299 inline explicit Impl_(
300 ::google::protobuf::internal::InternalVisibility visibility,
301 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
302 inline explicit Impl_(
303 ::google::protobuf::internal::InternalVisibility visibility,
304 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
305 const RegularLimitParameters& from_msg);
306 ::google::protobuf::internal::HasBits<1> _has_bits_;
307 ::google::protobuf::internal::CachedSize _cached_size_;
308 ::int64_t time_;
309 ::int64_t branches_;
310 ::int64_t failures_;
311 ::int64_t solutions_;
312 bool smart_time_check_;
313 bool cumulative_;
314 PROTOBUF_TSAN_DECLARE_MEMBER
315 };
316 union { Impl_ _impl_; };
317 friend struct ::TableStruct_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto;
320OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull RegularLimitParameters_class_data_;
321
322// ===================================================================
323
324
325
326
327// ===================================================================
328
329
330#ifdef __GNUC__
331#pragma GCC diagnostic push
332#pragma GCC diagnostic ignored "-Wstrict-aliasing"
333#endif // __GNUC__
334// -------------------------------------------------------------------
335
336// RegularLimitParameters
337
338// int64 time = 1;
340 ::google::protobuf::internal::TSanWrite(&_impl_);
341 _impl_.time_ = ::int64_t{0};
342 ClearHasBit(_impl_._has_bits_[0],
343 0x00000001U);
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 SetHasBit(_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 ClearHasBit(_impl_._has_bits_[0],
368 0x00000002U);
370inline ::int64_t RegularLimitParameters::branches() const {
371 // @@protoc_insertion_point(field_get:operations_research.RegularLimitParameters.branches)
372 return _internal_branches();
373}
374inline void RegularLimitParameters::set_branches(::int64_t value) {
375 _internal_set_branches(value);
376 SetHasBit(_impl_._has_bits_[0], 0x00000002U);
377 // @@protoc_insertion_point(field_set:operations_research.RegularLimitParameters.branches)
378}
379inline ::int64_t RegularLimitParameters::_internal_branches() const {
380 ::google::protobuf::internal::TSanRead(&_impl_);
381 return _impl_.branches_;
382}
383inline void RegularLimitParameters::_internal_set_branches(::int64_t value) {
384 ::google::protobuf::internal::TSanWrite(&_impl_);
385 _impl_.branches_ = value;
386}
387
388// int64 failures = 3;
390 ::google::protobuf::internal::TSanWrite(&_impl_);
391 _impl_.failures_ = ::int64_t{0};
392 ClearHasBit(_impl_._has_bits_[0],
393 0x00000004U);
395inline ::int64_t RegularLimitParameters::failures() const {
396 // @@protoc_insertion_point(field_get:operations_research.RegularLimitParameters.failures)
397 return _internal_failures();
398}
399inline void RegularLimitParameters::set_failures(::int64_t value) {
400 _internal_set_failures(value);
401 SetHasBit(_impl_._has_bits_[0], 0x00000004U);
402 // @@protoc_insertion_point(field_set:operations_research.RegularLimitParameters.failures)
403}
404inline ::int64_t RegularLimitParameters::_internal_failures() const {
405 ::google::protobuf::internal::TSanRead(&_impl_);
406 return _impl_.failures_;
407}
408inline void RegularLimitParameters::_internal_set_failures(::int64_t value) {
409 ::google::protobuf::internal::TSanWrite(&_impl_);
410 _impl_.failures_ = value;
411}
412
413// int64 solutions = 4;
415 ::google::protobuf::internal::TSanWrite(&_impl_);
416 _impl_.solutions_ = ::int64_t{0};
417 ClearHasBit(_impl_._has_bits_[0],
418 0x00000008U);
420inline ::int64_t RegularLimitParameters::solutions() const {
421 // @@protoc_insertion_point(field_get:operations_research.RegularLimitParameters.solutions)
422 return _internal_solutions();
423}
424inline void RegularLimitParameters::set_solutions(::int64_t value) {
425 _internal_set_solutions(value);
426 SetHasBit(_impl_._has_bits_[0], 0x00000008U);
427 // @@protoc_insertion_point(field_set:operations_research.RegularLimitParameters.solutions)
428}
429inline ::int64_t RegularLimitParameters::_internal_solutions() const {
430 ::google::protobuf::internal::TSanRead(&_impl_);
431 return _impl_.solutions_;
432}
433inline void RegularLimitParameters::_internal_set_solutions(::int64_t value) {
434 ::google::protobuf::internal::TSanWrite(&_impl_);
435 _impl_.solutions_ = value;
436}
437
438// bool smart_time_check = 5;
440 ::google::protobuf::internal::TSanWrite(&_impl_);
441 _impl_.smart_time_check_ = false;
442 ClearHasBit(_impl_._has_bits_[0],
443 0x00000010U);
446 // @@protoc_insertion_point(field_get:operations_research.RegularLimitParameters.smart_time_check)
447 return _internal_smart_time_check();
448}
449inline void RegularLimitParameters::set_smart_time_check(bool value) {
450 _internal_set_smart_time_check(value);
451 SetHasBit(_impl_._has_bits_[0], 0x00000010U);
452 // @@protoc_insertion_point(field_set:operations_research.RegularLimitParameters.smart_time_check)
453}
454inline bool RegularLimitParameters::_internal_smart_time_check() const {
455 ::google::protobuf::internal::TSanRead(&_impl_);
456 return _impl_.smart_time_check_;
457}
458inline void RegularLimitParameters::_internal_set_smart_time_check(bool value) {
459 ::google::protobuf::internal::TSanWrite(&_impl_);
460 _impl_.smart_time_check_ = value;
461}
462
463// bool cumulative = 6;
465 ::google::protobuf::internal::TSanWrite(&_impl_);
466 _impl_.cumulative_ = false;
467 ClearHasBit(_impl_._has_bits_[0],
468 0x00000020U);
470inline bool RegularLimitParameters::cumulative() const {
471 // @@protoc_insertion_point(field_get:operations_research.RegularLimitParameters.cumulative)
472 return _internal_cumulative();
473}
474inline void RegularLimitParameters::set_cumulative(bool value) {
475 _internal_set_cumulative(value);
476 SetHasBit(_impl_._has_bits_[0], 0x00000020U);
477 // @@protoc_insertion_point(field_set:operations_research.RegularLimitParameters.cumulative)
478}
479inline bool RegularLimitParameters::_internal_cumulative() const {
480 ::google::protobuf::internal::TSanRead(&_impl_);
481 return _impl_.cumulative_;
482}
483inline void RegularLimitParameters::_internal_set_cumulative(bool value) {
484 ::google::protobuf::internal::TSanWrite(&_impl_);
485 _impl_.cumulative_ = value;
486}
487
488#ifdef __GNUC__
489#pragma GCC diagnostic pop
490#endif // __GNUC__
491
492// @@protoc_insertion_point(namespace_scope)
493} // namespace operations_research
494
495
496// @@protoc_insertion_point(global_scope)
497
498#include "google/protobuf/port_undef.inc"
499
500#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)
RegularLimitParameters(const RegularLimitParameters &from)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
PROTOBUF_CONSTEXPR RegularLimitParameters(::google::protobuf::internal::ConstantInitialized)
RegularLimitParameters & operator=(const RegularLimitParameters &from)
::absl::string_view GetAnyMessageName()
OR-Tools root namespace.
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