8 #include <google/protobuf/io/coded_stream.h>
9 #include <google/protobuf/extension_set.h>
10 #include <google/protobuf/wire_format_lite.h>
11 #include <google/protobuf/descriptor.h>
12 #include <google/protobuf/generated_message_reflection.h>
13 #include <google/protobuf/reflection_ops.h>
14 #include <google/protobuf/wire_format.h>
16 #include <google/protobuf/port_def.inc>
20 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<RegularLimitParameters>
_instance;
24 GOOGLE_PROTOBUF_VERIFY_VERSION;
28 new (ptr) ::operations_research::RegularLimitParameters();
29 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
42 PROTOBUF_FIELD_OFFSET(::operations_research::RegularLimitParameters, _internal_metadata_),
46 PROTOBUF_FIELD_OFFSET(::operations_research::RegularLimitParameters, time_),
47 PROTOBUF_FIELD_OFFSET(::operations_research::RegularLimitParameters, branches_),
48 PROTOBUF_FIELD_OFFSET(::operations_research::RegularLimitParameters, failures_),
49 PROTOBUF_FIELD_OFFSET(::operations_research::RegularLimitParameters, solutions_),
50 PROTOBUF_FIELD_OFFSET(::operations_research::RegularLimitParameters, smart_time_check_),
51 PROTOBUF_FIELD_OFFSET(::operations_research::RegularLimitParameters, cumulative_),
54 { 0, -1,
sizeof(::operations_research::RegularLimitParameters)},
61 const char descriptor_table_protodef_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto[]
PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
62 "\n,ortools/constraint_solver/search_limit"
63 ".proto\022\023operations_research\"\213\001\n\026RegularL"
64 "imitParameters\022\014\n\004time\030\001 \001(\003\022\020\n\010branches"
65 "\030\002 \001(\003\022\020\n\010failures\030\003 \001(\003\022\021\n\tsolutions\030\004 "
66 "\001(\003\022\030\n\020smart_time_check\030\005 \001(\010\022\022\n\ncumulat"
67 "ive\030\006 \001(\010B^\n#com.google.ortools.constrai"
68 "ntsolverB\023SearchLimitProtobufP\001\252\002\037Google"
69 ".OrTools.ConstraintSolverb\006proto3"
78 false,
false, descriptor_table_protodef_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto,
"ortools/constraint_solver/search_limit.proto", 313,
94 RegularLimitParameters::RegularLimitParameters(::PROTOBUF_NAMESPACE_ID::Arena* arena)
95 : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
97 RegisterArenaDtor(arena);
100 RegularLimitParameters::RegularLimitParameters(
const RegularLimitParameters& from)
101 : ::PROTOBUF_NAMESPACE_ID::Message() {
102 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
103 ::memcpy(&time_, &from.time_,
104 static_cast<size_t>(
reinterpret_cast<char*
>(&cumulative_) -
105 reinterpret_cast<char*
>(&time_)) +
sizeof(cumulative_));
109 void RegularLimitParameters::SharedCtor() {
110 ::memset(
reinterpret_cast<char*
>(
this) +
static_cast<size_t>(
111 reinterpret_cast<char*
>(&time_) -
reinterpret_cast<char*
>(
this)),
112 0,
static_cast<size_t>(
reinterpret_cast<char*
>(&cumulative_) -
113 reinterpret_cast<char*
>(&time_)) +
sizeof(cumulative_));
116 RegularLimitParameters::~RegularLimitParameters() {
119 _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
122 void RegularLimitParameters::SharedDtor() {
123 GOOGLE_DCHECK(GetArena() ==
nullptr);
126 void RegularLimitParameters::ArenaDtor(
void*
object) {
127 RegularLimitParameters* _this =
reinterpret_cast< RegularLimitParameters*
>(object);
130 void RegularLimitParameters::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
132 void RegularLimitParameters::SetCachedSize(
int size)
const {
133 _cached_size_.Set(size);
135 const RegularLimitParameters& RegularLimitParameters::default_instance() {
137 return *internal_default_instance();
141 void RegularLimitParameters::Clear() {
145 (void) cached_has_bits;
147 ::memset(&time_, 0,
static_cast<size_t>(
148 reinterpret_cast<char*
>(&cumulative_) -
149 reinterpret_cast<char*
>(&time_)) +
sizeof(cumulative_));
150 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
153 const char* RegularLimitParameters::_InternalParse(
const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
154 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
155 while (!ctx->Done(&ptr)) {
157 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
163 time_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
165 }
else goto handle_unusual;
170 branches_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
172 }
else goto handle_unusual;
177 failures_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
179 }
else goto handle_unusual;
184 solutions_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
186 }
else goto handle_unusual;
191 smart_time_check_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
193 }
else goto handle_unusual;
198 cumulative_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
200 }
else goto handle_unusual;
204 if ((tag & 7) == 4 || tag == 0) {
205 ctx->SetLastTag(tag);
208 ptr = UnknownFieldParse(tag,
209 _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
211 CHK_(ptr !=
nullptr);
228 (void) cached_has_bits;
231 if (this->
time() != 0) {
232 target = stream->EnsureSpace(target);
233 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_time(), target);
237 if (this->branches() != 0) {
238 target = stream->EnsureSpace(target);
239 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_branches(), target);
243 if (this->failures() != 0) {
244 target = stream->EnsureSpace(target);
245 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_failures(), target);
249 if (this->solutions() != 0) {
250 target = stream->EnsureSpace(target);
251 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->_internal_solutions(), target);
255 if (this->smart_time_check() != 0) {
256 target = stream->EnsureSpace(target);
257 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(5, this->_internal_smart_time_check(), target);
261 if (this->cumulative() != 0) {
262 target = stream->EnsureSpace(target);
263 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(6, this->_internal_cumulative(), target);
266 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
267 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
268 _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
274 size_t RegularLimitParameters::ByteSizeLong()
const {
276 size_t total_size = 0;
280 (void) cached_has_bits;
283 if (this->
time() != 0) {
285 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
286 this->_internal_time());
290 if (this->branches() != 0) {
292 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
293 this->_internal_branches());
297 if (this->failures() != 0) {
299 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
300 this->_internal_failures());
304 if (this->solutions() != 0) {
306 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
307 this->_internal_solutions());
311 if (this->smart_time_check() != 0) {
316 if (this->cumulative() != 0) {
320 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
321 return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
322 _internal_metadata_, total_size, &_cached_size_);
324 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
325 SetCachedSize(cached_size);
329 void RegularLimitParameters::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
331 GOOGLE_DCHECK_NE(&from,
this);
332 const RegularLimitParameters* source =
333 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<RegularLimitParameters>(
335 if (source ==
nullptr) {
337 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from,
this);
344 void RegularLimitParameters::MergeFrom(
const RegularLimitParameters& from) {
346 GOOGLE_DCHECK_NE(&from,
this);
347 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
349 (void) cached_has_bits;
351 if (from.time() != 0) {
352 _internal_set_time(from._internal_time());
354 if (from.branches() != 0) {
355 _internal_set_branches(from._internal_branches());
357 if (from.failures() != 0) {
358 _internal_set_failures(from._internal_failures());
360 if (from.solutions() != 0) {
361 _internal_set_solutions(from._internal_solutions());
363 if (from.smart_time_check() != 0) {
364 _internal_set_smart_time_check(from._internal_smart_time_check());
366 if (from.cumulative() != 0) {
367 _internal_set_cumulative(from._internal_cumulative());
371 void RegularLimitParameters::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
373 if (&from ==
this)
return;
378 void RegularLimitParameters::CopyFrom(
const RegularLimitParameters& from) {
380 if (&from ==
this)
return;
385 bool RegularLimitParameters::IsInitialized()
const {
389 void RegularLimitParameters::InternalSwap(RegularLimitParameters* other) {
391 _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
392 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
393 PROTOBUF_FIELD_OFFSET(RegularLimitParameters, cumulative_)
394 +
sizeof(RegularLimitParameters::cumulative_)
395 - PROTOBUF_FIELD_OFFSET(RegularLimitParameters, time_)>(
396 reinterpret_cast<char*
>(&time_),
397 reinterpret_cast<char*
>(&other->time_));
400 ::PROTOBUF_NAMESPACE_ID::Metadata RegularLimitParameters::GetMetadata()
const {
401 return GetMetadataStatic();
407 PROTOBUF_NAMESPACE_OPEN
409 return Arena::CreateMessageInternal< ::operations_research::RegularLimitParameters >(arena);
411 PROTOBUF_NAMESPACE_CLOSE
414 #include <google/protobuf/port_undef.inc>
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed< RegularLimitParameters > _instance
The vehicle routing library lets one model and solve generic vehicle routing problems ranging from th...
class operations_research::RegularLimitParametersDefaultTypeInternal _RegularLimitParameters_default_instance_
static constexpr ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema * schemas
static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable *const descriptor_table_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto_deps[1]
static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const ** file_level_service_descriptors_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo< 0 > scc_info_RegularLimitParameters_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto
PROTOBUF_NAMESPACE_OPEN PROTOBUF_NOINLINE ::operations_research::RegularLimitParameters * Arena::CreateMaybeMessage< ::operations_research::RegularLimitParameters >(Arena *arena)
const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto_once
::PROTOBUF_NAMESPACE_ID::Message const *const file_default_instances[]
::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase *const descriptor_table_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto_sccs[1]
static bool dynamic_init_dummy_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto
static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const ** file_level_enum_descriptors_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto
static void InitDefaultsscc_info_RegularLimitParameters_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto()
::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto[1]