C++ Reference

C++ Reference: Routing

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