OR-Tools  8.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 < 3014000
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 3014000 < 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
37 PROTOBUF_NAMESPACE_OPEN
38 namespace internal {
39 class AnyMetadata;
40 } // namespace internal
41 PROTOBUF_NAMESPACE_CLOSE
42 
43 // Internal implementation detail -- do not use these members.
45  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
46  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
47  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
48  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
49  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
50  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
51  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
52  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
54 };
55 extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto;
56 namespace operations_research {
57 class RegularLimitParameters;
58 class RegularLimitParametersDefaultTypeInternal;
60 } // namespace operations_research
61 PROTOBUF_NAMESPACE_OPEN
62 template<> ::operations_research::RegularLimitParameters* Arena::CreateMaybeMessage<::operations_research::RegularLimitParameters>(Arena*);
63 PROTOBUF_NAMESPACE_CLOSE
64 namespace operations_research {
65 
66 // ===================================================================
67 
68 class RegularLimitParameters PROTOBUF_FINAL :
69  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:operations_research.RegularLimitParameters) */ {
70  public:
71  inline RegularLimitParameters() : RegularLimitParameters(nullptr) {}
73 
74  RegularLimitParameters(const RegularLimitParameters& from);
75  RegularLimitParameters(RegularLimitParameters&& from) noexcept
76  : RegularLimitParameters() {
77  *this = ::std::move(from);
78  }
79 
80  inline RegularLimitParameters& operator=(const RegularLimitParameters& from) {
81  CopyFrom(from);
82  return *this;
83  }
84  inline RegularLimitParameters& operator=(RegularLimitParameters&& from) noexcept {
85  if (GetArena() == from.GetArena()) {
86  if (this != &from) InternalSwap(&from);
87  } else {
88  CopyFrom(from);
89  }
90  return *this;
91  }
92 
93  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
94  return GetDescriptor();
95  }
96  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
97  return GetMetadataStatic().descriptor;
98  }
99  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
100  return GetMetadataStatic().reflection;
101  }
102  static const RegularLimitParameters& default_instance();
103 
104  static inline const RegularLimitParameters* internal_default_instance() {
105  return reinterpret_cast<const RegularLimitParameters*>(
107  }
108  static constexpr int kIndexInFileMessages =
109  0;
110 
111  friend void swap(RegularLimitParameters& a, RegularLimitParameters& b) {
112  a.Swap(&b);
113  }
114  inline void Swap(RegularLimitParameters* other) {
115  if (other == this) return;
116  if (GetArena() == other->GetArena()) {
117  InternalSwap(other);
118  } else {
119  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
120  }
121  }
122  void UnsafeArenaSwap(RegularLimitParameters* other) {
123  if (other == this) return;
124  GOOGLE_DCHECK(GetArena() == other->GetArena());
125  InternalSwap(other);
126  }
127 
128  // implements Message ----------------------------------------------
129 
130  inline RegularLimitParameters* New() const final {
131  return CreateMaybeMessage<RegularLimitParameters>(nullptr);
132  }
133 
134  RegularLimitParameters* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
135  return CreateMaybeMessage<RegularLimitParameters>(arena);
136  }
137  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
138  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
139  void CopyFrom(const RegularLimitParameters& from);
140  void MergeFrom(const RegularLimitParameters& from);
141  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
142  bool IsInitialized() const final;
143 
144  size_t ByteSizeLong() const final;
145  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
146  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
147  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
148  int GetCachedSize() const final { return _cached_size_.Get(); }
149 
150  private:
151  inline void SharedCtor();
152  inline void SharedDtor();
153  void SetCachedSize(int size) const final;
154  void InternalSwap(RegularLimitParameters* other);
155  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
156  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
157  return "operations_research.RegularLimitParameters";
158  }
159  protected:
160  explicit RegularLimitParameters(::PROTOBUF_NAMESPACE_ID::Arena* arena);
161  private:
162  static void ArenaDtor(void* object);
163  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
164  public:
165 
166  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
167  private:
168  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
169  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto);
171  }
172 
173  public:
174 
175  // nested types ----------------------------------------------------
176 
177  // accessors -------------------------------------------------------
178 
179  enum : int {
180  kTimeFieldNumber = 1,
181  kBranchesFieldNumber = 2,
182  kFailuresFieldNumber = 3,
183  kSolutionsFieldNumber = 4,
184  kSmartTimeCheckFieldNumber = 5,
185  kCumulativeFieldNumber = 6,
186  };
187  // int64 time = 1;
188  void clear_time();
191  private:
192  ::PROTOBUF_NAMESPACE_ID::int64 _internal_time() const;
193  void _internal_set_time(::PROTOBUF_NAMESPACE_ID::int64 value);
194  public:
195 
196  // int64 branches = 2;
200  private:
201  ::PROTOBUF_NAMESPACE_ID::int64 _internal_branches() const;
202  void _internal_set_branches(::PROTOBUF_NAMESPACE_ID::int64 value);
203  public:
204 
205  // int64 failures = 3;
209  private:
210  ::PROTOBUF_NAMESPACE_ID::int64 _internal_failures() const;
211  void _internal_set_failures(::PROTOBUF_NAMESPACE_ID::int64 value);
212  public:
213 
214  // int64 solutions = 4;
218  private:
219  ::PROTOBUF_NAMESPACE_ID::int64 _internal_solutions() const;
220  void _internal_set_solutions(::PROTOBUF_NAMESPACE_ID::int64 value);
221  public:
222 
223  // bool smart_time_check = 5;
225  bool smart_time_check() const;
227  private:
228  bool _internal_smart_time_check() const;
229  void _internal_set_smart_time_check(bool value);
230  public:
231 
232  // bool cumulative = 6;
234  bool cumulative() const;
235  void set_cumulative(bool value);
236  private:
237  bool _internal_cumulative() const;
238  void _internal_set_cumulative(bool value);
239  public:
240 
241  // @@protoc_insertion_point(class_scope:operations_research.RegularLimitParameters)
242  private:
243  class _Internal;
244 
245  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
246  typedef void InternalArenaConstructable_;
247  typedef void DestructorSkippable_;
252  bool smart_time_check_;
253  bool cumulative_;
254  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
255  friend struct ::TableStruct_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto;
256 };
257 // ===================================================================
258 
259 
260 // ===================================================================
261 
262 #ifdef __GNUC__
263  #pragma GCC diagnostic push
264  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
265 #endif // __GNUC__
266 // RegularLimitParameters
267 
268 // int64 time = 1;
269 inline void RegularLimitParameters::clear_time() {
270  time_ = PROTOBUF_LONGLONG(0);
271 }
272 inline ::PROTOBUF_NAMESPACE_ID::int64 RegularLimitParameters::_internal_time() const {
273  return time_;
274 }
276  // @@protoc_insertion_point(field_get:operations_research.RegularLimitParameters.time)
277  return _internal_time();
278 }
279 inline void RegularLimitParameters::_internal_set_time(::PROTOBUF_NAMESPACE_ID::int64 value) {
280 
281  time_ = value;
282 }
283 inline void RegularLimitParameters::set_time(::PROTOBUF_NAMESPACE_ID::int64 value) {
284  _internal_set_time(value);
285  // @@protoc_insertion_point(field_set:operations_research.RegularLimitParameters.time)
286 }
287 
288 // int64 branches = 2;
289 inline void RegularLimitParameters::clear_branches() {
290  branches_ = PROTOBUF_LONGLONG(0);
291 }
292 inline ::PROTOBUF_NAMESPACE_ID::int64 RegularLimitParameters::_internal_branches() const {
293  return branches_;
294 }
295 inline ::PROTOBUF_NAMESPACE_ID::int64 RegularLimitParameters::branches() const {
296  // @@protoc_insertion_point(field_get:operations_research.RegularLimitParameters.branches)
297  return _internal_branches();
298 }
299 inline void RegularLimitParameters::_internal_set_branches(::PROTOBUF_NAMESPACE_ID::int64 value) {
300 
301  branches_ = value;
302 }
303 inline void RegularLimitParameters::set_branches(::PROTOBUF_NAMESPACE_ID::int64 value) {
304  _internal_set_branches(value);
305  // @@protoc_insertion_point(field_set:operations_research.RegularLimitParameters.branches)
306 }
307 
308 // int64 failures = 3;
309 inline void RegularLimitParameters::clear_failures() {
310  failures_ = PROTOBUF_LONGLONG(0);
311 }
312 inline ::PROTOBUF_NAMESPACE_ID::int64 RegularLimitParameters::_internal_failures() const {
313  return failures_;
314 }
315 inline ::PROTOBUF_NAMESPACE_ID::int64 RegularLimitParameters::failures() const {
316  // @@protoc_insertion_point(field_get:operations_research.RegularLimitParameters.failures)
317  return _internal_failures();
318 }
319 inline void RegularLimitParameters::_internal_set_failures(::PROTOBUF_NAMESPACE_ID::int64 value) {
320 
321  failures_ = value;
322 }
323 inline void RegularLimitParameters::set_failures(::PROTOBUF_NAMESPACE_ID::int64 value) {
324  _internal_set_failures(value);
325  // @@protoc_insertion_point(field_set:operations_research.RegularLimitParameters.failures)
326 }
327 
328 // int64 solutions = 4;
329 inline void RegularLimitParameters::clear_solutions() {
330  solutions_ = PROTOBUF_LONGLONG(0);
331 }
332 inline ::PROTOBUF_NAMESPACE_ID::int64 RegularLimitParameters::_internal_solutions() const {
333  return solutions_;
334 }
335 inline ::PROTOBUF_NAMESPACE_ID::int64 RegularLimitParameters::solutions() const {
336  // @@protoc_insertion_point(field_get:operations_research.RegularLimitParameters.solutions)
337  return _internal_solutions();
338 }
339 inline void RegularLimitParameters::_internal_set_solutions(::PROTOBUF_NAMESPACE_ID::int64 value) {
340 
341  solutions_ = value;
342 }
343 inline void RegularLimitParameters::set_solutions(::PROTOBUF_NAMESPACE_ID::int64 value) {
344  _internal_set_solutions(value);
345  // @@protoc_insertion_point(field_set:operations_research.RegularLimitParameters.solutions)
346 }
347 
348 // bool smart_time_check = 5;
349 inline void RegularLimitParameters::clear_smart_time_check() {
350  smart_time_check_ = false;
351 }
352 inline bool RegularLimitParameters::_internal_smart_time_check() const {
353  return smart_time_check_;
354 }
355 inline bool RegularLimitParameters::smart_time_check() const {
356  // @@protoc_insertion_point(field_get:operations_research.RegularLimitParameters.smart_time_check)
357  return _internal_smart_time_check();
358 }
359 inline void RegularLimitParameters::_internal_set_smart_time_check(bool value) {
360 
361  smart_time_check_ = value;
362 }
363 inline void RegularLimitParameters::set_smart_time_check(bool value) {
364  _internal_set_smart_time_check(value);
365  // @@protoc_insertion_point(field_set:operations_research.RegularLimitParameters.smart_time_check)
366 }
367 
368 // bool cumulative = 6;
369 inline void RegularLimitParameters::clear_cumulative() {
370  cumulative_ = false;
371 }
372 inline bool RegularLimitParameters::_internal_cumulative() const {
373  return cumulative_;
374 }
375 inline bool RegularLimitParameters::cumulative() const {
376  // @@protoc_insertion_point(field_get:operations_research.RegularLimitParameters.cumulative)
377  return _internal_cumulative();
378 }
379 inline void RegularLimitParameters::_internal_set_cumulative(bool value) {
380 
381  cumulative_ = value;
382 }
383 inline void RegularLimitParameters::set_cumulative(bool value) {
384  _internal_set_cumulative(value);
385  // @@protoc_insertion_point(field_set:operations_research.RegularLimitParameters.cumulative)
386 }
387 
388 #ifdef __GNUC__
389  #pragma GCC diagnostic pop
390 #endif // __GNUC__
391 
392 // @@protoc_insertion_point(namespace_scope)
393 
394 } // namespace operations_research
395 
396 // @@protoc_insertion_point(global_scope)
397 
398 #include <google/protobuf/port_undef.inc>
399 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
::PROTOBUF_NAMESPACE_ID::int64 branches() const
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void Swap(RegularLimitParameters *other)
::PROTOBUF_NAMESPACE_ID::int64 time() const
RegularLimitParameters(const RegularLimitParameters &from)
RegularLimitParameters * New() const final
static const RegularLimitParameters * internal_default_instance()
void set_time(::PROTOBUF_NAMESPACE_ID::int64 value)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
RegularLimitParameters * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
::PROTOBUF_NAMESPACE_ID::int64 solutions() const
RegularLimitParameters(::PROTOBUF_NAMESPACE_ID::Arena *arena)
void UnsafeArenaSwap(RegularLimitParameters *other)
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
RegularLimitParameters(RegularLimitParameters &&from) noexcept
void set_solutions(::PROTOBUF_NAMESPACE_ID::int64 value)
friend void swap(RegularLimitParameters &a, RegularLimitParameters &b)
static const RegularLimitParameters & default_instance()
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
void MergeFrom(const RegularLimitParameters &from)
RegularLimitParameters & operator=(RegularLimitParameters &&from) noexcept
void CopyFrom(const RegularLimitParameters &from)
void set_failures(::PROTOBUF_NAMESPACE_ID::int64 value)
RegularLimitParameters & operator=(const RegularLimitParameters &from)
void set_branches(::PROTOBUF_NAMESPACE_ID::int64 value)
::PROTOBUF_NAMESPACE_ID::int64 failures() const
int64 value
unsigned int uint32
int64_t int64
unsigned char uint8
The vehicle routing library lets one model and solve generic vehicle routing problems ranging from th...
class operations_research::RegularLimitParametersDefaultTypeInternal _RegularLimitParameters_default_instance_
int64 time
Definition: resource.cc:1683
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
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)
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]