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> 18 PROTOBUF_PRAGMA_INIT_SEG
21 ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
23 , branches_(int64_t{0})
24 , failures_(int64_t{0})
25 , solutions_(int64_t{0})
26 , smart_time_check_(
false)
27 , cumulative_(
false){}
64 const char descriptor_table_protodef_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto[]
PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
65 "\n,ortools/constraint_solver/search_limit" 66 ".proto\022\023operations_research\"\213\001\n\026RegularL" 67 "imitParameters\022\014\n\004time\030\001 \001(\003\022\020\n\010branches" 68 "\030\002 \001(\003\022\020\n\010failures\030\003 \001(\003\022\021\n\tsolutions\030\004 " 69 "\001(\003\022\030\n\020smart_time_check\030\005 \001(\010\022\022\n\ncumulat" 70 "ive\030\006 \001(\010B^\n#com.google.ortools.constrai" 71 "ntsolverB\023SearchLimitProtobufP\001\252\002\037Google" 72 ".OrTools.ConstraintSolverb\006proto3" 76 false,
false, 313, descriptor_table_protodef_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto,
"ortools/constraint_solver/search_limit.proto",
96 bool is_message_owned)
97 : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
99 if (!is_message_owned) {
100 RegisterArenaDtor(arena);
105 : ::PROTOBUF_NAMESPACE_ID::Message() {
106 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
107 ::memcpy(&time_, &from.time_,
108 static_cast<size_t>(reinterpret_cast<char*>(&cumulative_) -
109 reinterpret_cast<char*>(&time_)) +
sizeof(cumulative_));
113 inline void RegularLimitParameters::SharedCtor() {
114 ::memset(reinterpret_cast<char*>(
this) + static_cast<size_t>(
115 reinterpret_cast<char*>(&time_) - reinterpret_cast<char*>(
this)),
116 0, static_cast<size_t>(reinterpret_cast<char*>(&cumulative_) -
117 reinterpret_cast<char*>(&time_)) +
sizeof(cumulative_));
122 if (GetArenaForAllocation() !=
nullptr)
return;
124 _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
127 inline void RegularLimitParameters::SharedDtor() {
128 GOOGLE_DCHECK(GetArenaForAllocation() ==
nullptr);
131 void RegularLimitParameters::ArenaDtor(
void*
object) {
135 void RegularLimitParameters::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
137 void RegularLimitParameters::SetCachedSize(
int size)
const {
138 _cached_size_.Set(size);
143 uint32_t cached_has_bits = 0;
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>();
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);
161 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
162 time_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
169 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
170 branches_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
177 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
178 failures_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
185 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
186 solutions_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
193 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
194 smart_time_check_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
201 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
202 cumulative_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
211 if ((tag == 0) || ((tag & 7) == 4)) {
213 ctx->SetLastTag(tag);
216 ptr = UnknownFieldParse(
218 _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
220 CHK_(ptr !=
nullptr);
231 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream)
const {
233 uint32_t cached_has_bits = 0;
234 (void) cached_has_bits;
237 if (this->_internal_time() != 0) {
238 target = stream->EnsureSpace(target);
239 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_time(), target);
243 if (this->_internal_branches() != 0) {
244 target = stream->EnsureSpace(target);
245 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_branches(), target);
249 if (this->_internal_failures() != 0) {
250 target = stream->EnsureSpace(target);
251 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_failures(), target);
255 if (this->_internal_solutions() != 0) {
256 target = stream->EnsureSpace(target);
257 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->_internal_solutions(), target);
261 if (this->_internal_smart_time_check() != 0) {
262 target = stream->EnsureSpace(target);
263 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(5, this->_internal_smart_time_check(), target);
267 if (this->_internal_cumulative() != 0) {
268 target = stream->EnsureSpace(target);
269 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(6, this->_internal_cumulative(), target);
272 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
273 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
274 _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
282 size_t total_size = 0;
284 uint32_t cached_has_bits = 0;
286 (void) cached_has_bits;
289 if (this->_internal_time() != 0) {
290 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_time());
294 if (this->_internal_branches() != 0) {
295 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_branches());
299 if (this->_internal_failures() != 0) {
300 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_failures());
304 if (this->_internal_solutions() != 0) {
305 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_solutions());
309 if (this->_internal_smart_time_check() != 0) {
314 if (this->_internal_cumulative() != 0) {
318 return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
322 ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
323 RegularLimitParameters::MergeImpl
327 void RegularLimitParameters::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
328 const ::PROTOBUF_NAMESPACE_ID::Message& from) {
329 static_cast<RegularLimitParameters *>(to)->MergeFrom(
330 static_cast<const RegularLimitParameters &>(from));
336 GOOGLE_DCHECK_NE(&from,
this);
337 uint32_t cached_has_bits = 0;
338 (void) cached_has_bits;
340 if (from._internal_time() != 0) {
341 _internal_set_time(from._internal_time());
343 if (from._internal_branches() != 0) {
344 _internal_set_branches(from._internal_branches());
346 if (from._internal_failures() != 0) {
347 _internal_set_failures(from._internal_failures());
349 if (from._internal_solutions() != 0) {
350 _internal_set_solutions(from._internal_solutions());
352 if (from._internal_smart_time_check() != 0) {
353 _internal_set_smart_time_check(from._internal_smart_time_check());
355 if (from._internal_cumulative() != 0) {
356 _internal_set_cumulative(from._internal_cumulative());
358 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
363 if (&from ==
this)
return;
374 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
375 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
377 +
sizeof(RegularLimitParameters::cumulative_)
379 reinterpret_cast<char*>(&time_),
380 reinterpret_cast<char*>(&other->time_));
384 return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
391 PROTOBUF_NAMESPACE_OPEN
393 return Arena::CreateMessageInternal< ::operations_research::RegularLimitParameters >(arena);
395 PROTOBUF_NAMESPACE_CLOSE
398 #include <google/protobuf/port_undef.inc> ~RegularLimitParameters() override
PROTOBUF_NAMESPACE_OPEN PROTOBUF_NOINLINE ::operations_research::RegularLimitParameters * Arena::CreateMaybeMessage< ::operations_research::RegularLimitParameters >(Arena *arena)
constexpr RegularLimitParametersDefaultTypeInternal()
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
size_t ByteSizeLong() const final
static const ClassData _class_data_
void swap(IdMap< K, V > &a, IdMap< K, V > &b)
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
PROTOBUF_ATTRIBUTE_WEAKconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable * descriptor_table_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto_getter()
::PROTOBUF_NAMESPACE_ID::Message const *const file_default_instances[]
void CopyFrom(const RegularLimitParameters &from)
::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto_once
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
const uint32_t TableStruct_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto::offsets [] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
RegularLimitParameters _instance
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT RegularLimitParametersDefaultTypeInternal _RegularLimitParameters_default_instance_
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
bool IsInitialized() const final
Collection of objects used to extend the Constraint Solver library.
~RegularLimitParametersDefaultTypeInternal()
static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const ** file_level_enum_descriptors_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto
static constexpr ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema * schemas
void MergeFrom(const RegularLimitParameters &from)
::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto[1]