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 < 3011000
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 3011002 < 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.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 
70  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:operations_research.RegularLimitParameters) */ {
71  public:
73  virtual ~RegularLimitParameters();
74 
78  *this = ::std::move(from);
79  }
80 
82  CopyFrom(from);
83  return *this;
84  }
86  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
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  }
104 
105  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
107  return reinterpret_cast<const RegularLimitParameters*>(
109  }
110  static constexpr int kIndexInFileMessages =
111  0;
112 
114  a.Swap(&b);
115  }
116  inline void Swap(RegularLimitParameters* other) {
117  if (other == this) return;
118  InternalSwap(other);
119  }
120 
121  // implements Message ----------------------------------------------
122 
123  inline RegularLimitParameters* New() const final {
124  return CreateMaybeMessage<RegularLimitParameters>(nullptr);
125  }
126 
127  RegularLimitParameters* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
128  return CreateMaybeMessage<RegularLimitParameters>(arena);
129  }
130  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
131  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
132  void CopyFrom(const RegularLimitParameters& from);
133  void MergeFrom(const RegularLimitParameters& from);
134  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
135  bool IsInitialized() const final;
136 
137  size_t ByteSizeLong() const final;
138  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
139  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
140  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
141  int GetCachedSize() const final { return _cached_size_.Get(); }
142 
143  private:
144  inline void SharedCtor();
145  inline void SharedDtor();
146  void SetCachedSize(int size) const final;
147  void InternalSwap(RegularLimitParameters* other);
148  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
149  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
150  return "operations_research.RegularLimitParameters";
151  }
152  private:
153  inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
154  return nullptr;
155  }
156  inline void* MaybeArenaPtr() const {
157  return nullptr;
158  }
159  public:
160 
161  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
162  private:
163  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
164  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto);
166  }
167 
168  public:
169 
170  // nested types ----------------------------------------------------
171 
172  // accessors -------------------------------------------------------
173 
174  enum : int {
181  };
182  // int64 time = 1;
183  void clear_time();
184  ::PROTOBUF_NAMESPACE_ID::int64 time() const;
185  void set_time(::PROTOBUF_NAMESPACE_ID::int64 value);
186  private:
187  ::PROTOBUF_NAMESPACE_ID::int64 _internal_time() const;
188  void _internal_set_time(::PROTOBUF_NAMESPACE_ID::int64 value);
189  public:
190 
191  // int64 branches = 2;
192  void clear_branches();
193  ::PROTOBUF_NAMESPACE_ID::int64 branches() const;
194  void set_branches(::PROTOBUF_NAMESPACE_ID::int64 value);
195  private:
196  ::PROTOBUF_NAMESPACE_ID::int64 _internal_branches() const;
197  void _internal_set_branches(::PROTOBUF_NAMESPACE_ID::int64 value);
198  public:
199 
200  // int64 failures = 3;
201  void clear_failures();
202  ::PROTOBUF_NAMESPACE_ID::int64 failures() const;
203  void set_failures(::PROTOBUF_NAMESPACE_ID::int64 value);
204  private:
205  ::PROTOBUF_NAMESPACE_ID::int64 _internal_failures() const;
206  void _internal_set_failures(::PROTOBUF_NAMESPACE_ID::int64 value);
207  public:
208 
209  // int64 solutions = 4;
210  void clear_solutions();
211  ::PROTOBUF_NAMESPACE_ID::int64 solutions() const;
212  void set_solutions(::PROTOBUF_NAMESPACE_ID::int64 value);
213  private:
214  ::PROTOBUF_NAMESPACE_ID::int64 _internal_solutions() const;
215  void _internal_set_solutions(::PROTOBUF_NAMESPACE_ID::int64 value);
216  public:
217 
218  // bool smart_time_check = 5;
219  void clear_smart_time_check();
220  bool smart_time_check() const;
221  void set_smart_time_check(bool value);
222  private:
223  bool _internal_smart_time_check() const;
224  void _internal_set_smart_time_check(bool value);
225  public:
226 
227  // bool cumulative = 6;
228  void clear_cumulative();
229  bool cumulative() const;
230  void set_cumulative(bool value);
231  private:
232  bool _internal_cumulative() const;
233  void _internal_set_cumulative(bool value);
234  public:
235 
236  // @@protoc_insertion_point(class_scope:operations_research.RegularLimitParameters)
237  private:
238  class _Internal;
239 
240  ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
241  ::PROTOBUF_NAMESPACE_ID::int64 time_;
242  ::PROTOBUF_NAMESPACE_ID::int64 branches_;
243  ::PROTOBUF_NAMESPACE_ID::int64 failures_;
244  ::PROTOBUF_NAMESPACE_ID::int64 solutions_;
245  bool smart_time_check_;
246  bool cumulative_;
247  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
248  friend struct ::TableStruct_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto;
249 };
250 // ===================================================================
251 
252 
253 // ===================================================================
254 
255 #ifdef __GNUC__
256  #pragma GCC diagnostic push
257  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
258 #endif // __GNUC__
259 // RegularLimitParameters
260 
261 // int64 time = 1;
263  time_ = PROTOBUF_LONGLONG(0);
264 }
265 inline ::PROTOBUF_NAMESPACE_ID::int64 RegularLimitParameters::_internal_time() const {
266  return time_;
267 }
268 inline ::PROTOBUF_NAMESPACE_ID::int64 RegularLimitParameters::time() const {
269  // @@protoc_insertion_point(field_get:operations_research.RegularLimitParameters.time)
270  return _internal_time();
271 }
272 inline void RegularLimitParameters::_internal_set_time(::PROTOBUF_NAMESPACE_ID::int64 value) {
273 
274  time_ = value;
275 }
276 inline void RegularLimitParameters::set_time(::PROTOBUF_NAMESPACE_ID::int64 value) {
277  _internal_set_time(value);
278  // @@protoc_insertion_point(field_set:operations_research.RegularLimitParameters.time)
279 }
280 
281 // int64 branches = 2;
283  branches_ = PROTOBUF_LONGLONG(0);
284 }
285 inline ::PROTOBUF_NAMESPACE_ID::int64 RegularLimitParameters::_internal_branches() const {
286  return branches_;
287 }
288 inline ::PROTOBUF_NAMESPACE_ID::int64 RegularLimitParameters::branches() const {
289  // @@protoc_insertion_point(field_get:operations_research.RegularLimitParameters.branches)
290  return _internal_branches();
291 }
292 inline void RegularLimitParameters::_internal_set_branches(::PROTOBUF_NAMESPACE_ID::int64 value) {
293 
294  branches_ = value;
295 }
296 inline void RegularLimitParameters::set_branches(::PROTOBUF_NAMESPACE_ID::int64 value) {
297  _internal_set_branches(value);
298  // @@protoc_insertion_point(field_set:operations_research.RegularLimitParameters.branches)
299 }
300 
301 // int64 failures = 3;
303  failures_ = PROTOBUF_LONGLONG(0);
304 }
305 inline ::PROTOBUF_NAMESPACE_ID::int64 RegularLimitParameters::_internal_failures() const {
306  return failures_;
307 }
308 inline ::PROTOBUF_NAMESPACE_ID::int64 RegularLimitParameters::failures() const {
309  // @@protoc_insertion_point(field_get:operations_research.RegularLimitParameters.failures)
310  return _internal_failures();
311 }
312 inline void RegularLimitParameters::_internal_set_failures(::PROTOBUF_NAMESPACE_ID::int64 value) {
313 
314  failures_ = value;
315 }
316 inline void RegularLimitParameters::set_failures(::PROTOBUF_NAMESPACE_ID::int64 value) {
317  _internal_set_failures(value);
318  // @@protoc_insertion_point(field_set:operations_research.RegularLimitParameters.failures)
319 }
320 
321 // int64 solutions = 4;
323  solutions_ = PROTOBUF_LONGLONG(0);
324 }
325 inline ::PROTOBUF_NAMESPACE_ID::int64 RegularLimitParameters::_internal_solutions() const {
326  return solutions_;
327 }
328 inline ::PROTOBUF_NAMESPACE_ID::int64 RegularLimitParameters::solutions() const {
329  // @@protoc_insertion_point(field_get:operations_research.RegularLimitParameters.solutions)
330  return _internal_solutions();
331 }
332 inline void RegularLimitParameters::_internal_set_solutions(::PROTOBUF_NAMESPACE_ID::int64 value) {
333 
334  solutions_ = value;
335 }
336 inline void RegularLimitParameters::set_solutions(::PROTOBUF_NAMESPACE_ID::int64 value) {
337  _internal_set_solutions(value);
338  // @@protoc_insertion_point(field_set:operations_research.RegularLimitParameters.solutions)
339 }
340 
341 // bool smart_time_check = 5;
343  smart_time_check_ = false;
344 }
345 inline bool RegularLimitParameters::_internal_smart_time_check() const {
346  return smart_time_check_;
347 }
349  // @@protoc_insertion_point(field_get:operations_research.RegularLimitParameters.smart_time_check)
350  return _internal_smart_time_check();
351 }
352 inline void RegularLimitParameters::_internal_set_smart_time_check(bool value) {
353 
354  smart_time_check_ = value;
355 }
357  _internal_set_smart_time_check(value);
358  // @@protoc_insertion_point(field_set:operations_research.RegularLimitParameters.smart_time_check)
359 }
360 
361 // bool cumulative = 6;
363  cumulative_ = false;
364 }
365 inline bool RegularLimitParameters::_internal_cumulative() const {
366  return cumulative_;
367 }
369  // @@protoc_insertion_point(field_get:operations_research.RegularLimitParameters.cumulative)
370  return _internal_cumulative();
371 }
372 inline void RegularLimitParameters::_internal_set_cumulative(bool value) {
373 
374  cumulative_ = value;
375 }
376 inline void RegularLimitParameters::set_cumulative(bool value) {
377  _internal_set_cumulative(value);
378  // @@protoc_insertion_point(field_set:operations_research.RegularLimitParameters.cumulative)
379 }
380 
381 #ifdef __GNUC__
382  #pragma GCC diagnostic pop
383 #endif // __GNUC__
384 
385 // @@protoc_insertion_point(namespace_scope)
386 
387 } // namespace operations_research
388 
389 // @@protoc_insertion_point(global_scope)
390 
391 #include <google/protobuf/port_undef.inc>
392 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto
int GetCachedSize() const final
void set_solutions(::PROTOBUF_NAMESPACE_ID::int64 value)
::PROTOBUF_NAMESPACE_ID::uint8 * _InternalSerialize(::PROTOBUF_NAMESPACE_ID::uint8 *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void clear_smart_time_check()
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
void set_failures(::PROTOBUF_NAMESPACE_ID::int64 value)
RegularLimitParameters * New() const final
static const RegularLimitParameters * internal_default_instance()
@ kSmartTimeCheckFieldNumber
void clear_cumulative()
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static void InitAsDefaultInstance()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
void clear_solutions()
void clear_failures()
@ kTimeFieldNumber
The vehicle routing library lets one model and solve generic vehicle routing problems ranging from th...
RegularLimitParameters & operator=(RegularLimitParameters &&from) noexcept
@ kFailuresFieldNumber
void set_time(::PROTOBUF_NAMESPACE_ID::int64 value)
RegularLimitParameters()
bool cumulative() const
RegularLimitParameters(RegularLimitParameters &&from) noexcept
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
::PROTOBUF_NAMESPACE_ID::int64 failures() const
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
@ kSolutionsFieldNumber
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto
bool smart_time_check() const
::PROTOBUF_NAMESPACE_ID::int64 time() const
::PROTOBUF_NAMESPACE_ID::int64 solutions() const
static constexpr int kIndexInFileMessages
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
virtual ~RegularLimitParameters()
static const RegularLimitParameters & default_instance()
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
size_t ByteSizeLong() const final
bool IsInitialized() const final
RegularLimitParameters * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
void clear_time()
@ kCumulativeFieldNumber
RegularLimitParameters & operator=(const RegularLimitParameters &from)
friend void swap(RegularLimitParameters &a, RegularLimitParameters &b)
Definition: assignment.pb.h:39
::PROTOBUF_NAMESPACE_ID::int64 branches() const
void set_cumulative(bool value)
@ kBranchesFieldNumber
RegularLimitParametersDefaultTypeInternal _RegularLimitParameters_default_instance_
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]
void Swap(RegularLimitParameters *other)
void set_branches(::PROTOBUF_NAMESPACE_ID::int64 value)
void set_smart_time_check(bool value)
void clear_branches()