10#include "google/protobuf/io/coded_stream.h"
11#include "google/protobuf/generated_message_tctable_impl.h"
12#include "google/protobuf/extension_set.h"
13#include "google/protobuf/generated_message_util.h"
14#include "google/protobuf/wire_format_lite.h"
15#include "google/protobuf/descriptor.h"
16#include "google/protobuf/generated_message_reflection.h"
17#include "google/protobuf/reflection_ops.h"
18#include "google/protobuf/wire_format.h"
22#include "google/protobuf/port_def.inc"
23PROTOBUF_PRAGMA_INIT_SEG
26namespace _fl = ::google::protobuf::internal::field_layout;
29inline constexpr RegularLimitParameters::Impl_::Impl_(
30 ::_pbi::ConstantInitialized) noexcept
33 branches_{::int64_t{0}},
34 failures_{::int64_t{0}},
35 solutions_{::int64_t{0}},
36 smart_time_check_{
false},
41#if defined(PROTOBUF_CUSTOM_VTABLE)
44 : ::google::protobuf::Message(),
46 _impl_(::_pbi::ConstantInitialized()) {
56PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
59static constexpr const ::_pb::EnumDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE
61static constexpr const ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE
83static const ::_pbi::MigrationSchema
92 "\n,ortools/constraint_solver/search_limit"
93 ".proto\022\023operations_research\"\213\001\n\026RegularL"
94 "imitParameters\022\014\n\004time\030\001 \001(\003\022\020\n\010branches"
95 "\030\002 \001(\003\022\020\n\010failures\030\003 \001(\003\022\021\n\tsolutions\030\004 "
96 "\001(\003\022\030\n\020smart_time_check\030\005 \001(\010\022\022\n\ncumulat"
97 "ive\030\006 \001(\010B^\n#com.google.ortools.constrai"
98 "ntsolverB\023SearchLimitProtobufP\001\252\002\037Google"
99 ".OrTools.ConstraintSolverb\006proto3"
106 descriptor_table_protodef_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto,
107 "ortools/constraint_solver/search_limit.proto",
124 decltype(::std::declval<RegularLimitParameters>()._impl_._has_bits_);
130#if defined(PROTOBUF_CUSTOM_VTABLE)
133 : ::google::protobuf::Message(arena) {
140#if defined(PROTOBUF_CUSTOM_VTABLE)
143 : ::google::protobuf::Message(arena),
146 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
147 from._internal_metadata_);
149PROTOBUF_NDEBUG_INLINE RegularLimitParameters::Impl_::Impl_(
150 ::google::protobuf::internal::InternalVisibility visibility,
151 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
152 : _cached_size_{0} {}
154inline void RegularLimitParameters::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
155 new (&
_impl_) Impl_(internal_visibility(), arena);
156 ::memset(
reinterpret_cast<char *
>(&
_impl_) +
157 offsetof(Impl_, time_),
159 offsetof(Impl_, cumulative_) -
160 offsetof(Impl_, time_) +
161 sizeof(Impl_::cumulative_));
167inline void RegularLimitParameters::SharedDtor(MessageLite& self) {
169 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
170 ABSL_DCHECK(this_.GetArena() ==
nullptr);
175 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
176 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
184 return ::google::protobuf::internal::ClassDataFull{
185 ::google::protobuf::internal::ClassData{
190 &RegularLimitParameters::MergeImpl,
191 ::google::protobuf::Message::GetNewImpl<RegularLimitParameters>(),
192#if defined(PROTOBUF_CUSTOM_VTABLE)
193 &RegularLimitParameters::SharedDtor,
200 &RegularLimitParameters::kDescriptorMethods,
206PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
210PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
216PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
217const ::_pbi::TcParseTable<3, 6, 0, 0, 2>
218RegularLimitParameters::_table_ = {
223 offsetof(
decltype(_table_), field_lookup_table),
225 offsetof(
decltype(_table_), field_entries),
228 offsetof(
decltype(_table_), field_names),
231 ::_pbi::TcParser::GenericFallback,
232 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
233 ::_pbi::TcParser::GetTable<::operations_research::RegularLimitParameters>(),
236 {::_pbi::TcParser::MiniParse, {}},
241 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(
RegularLimitParameters, _impl_.branches_), 1>(),
244 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(
RegularLimitParameters, _impl_.failures_), 2>(),
247 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(
RegularLimitParameters, _impl_.solutions_), 3>(),
250 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(
RegularLimitParameters, _impl_.smart_time_check_), 4>(),
255 {::_pbi::TcParser::MiniParse, {}},
261 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
264 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
267 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
270 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
272 {PROTOBUF_FIELD_OFFSET(
RegularLimitParameters, _impl_.smart_time_check_), _Internal::kHasBitsOffset + 4, 0,
273 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
276 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
284 ::google::protobuf::internal::TSanWrite(&
_impl_);
285 ::uint32_t cached_has_bits = 0;
287 (void) cached_has_bits;
289 cached_has_bits =
_impl_._has_bits_[0];
290 if ((cached_has_bits & 0x0000003fu) != 0) {
291 ::memset(&
_impl_.time_, 0,
static_cast<::
size_t>(
292 reinterpret_cast<char*
>(&
_impl_.cumulative_) -
293 reinterpret_cast<char*
>(&
_impl_.time_)) +
sizeof(
_impl_.cumulative_));
295 _impl_._has_bits_.Clear();
296 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
299#if defined(PROTOBUF_CUSTOM_VTABLE)
301 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
302 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
306 ::uint8_t* PROTOBUF_NONNULL target,
307 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
311 ::uint32_t cached_has_bits = 0;
312 (void)cached_has_bits;
315 if ((this_.
_impl_._has_bits_[0] & 0x00000001u) != 0) {
316 if (this_._internal_time() != 0) {
318 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
319 stream, this_._internal_time(), target);
324 if ((this_.
_impl_._has_bits_[0] & 0x00000002u) != 0) {
325 if (this_._internal_branches() != 0) {
327 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
328 stream, this_._internal_branches(), target);
333 if ((this_.
_impl_._has_bits_[0] & 0x00000004u) != 0) {
334 if (this_._internal_failures() != 0) {
336 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>(
337 stream, this_._internal_failures(), target);
342 if ((this_.
_impl_._has_bits_[0] & 0x00000008u) != 0) {
343 if (this_._internal_solutions() != 0) {
345 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<4>(
346 stream, this_._internal_solutions(), target);
351 if ((this_.
_impl_._has_bits_[0] & 0x00000010u) != 0) {
352 if (this_._internal_smart_time_check() != 0) {
353 target = stream->EnsureSpace(target);
354 target = ::_pbi::WireFormatLite::WriteBoolToArray(
355 5, this_._internal_smart_time_check(), target);
360 if ((this_.
_impl_._has_bits_[0] & 0x00000020u) != 0) {
361 if (this_._internal_cumulative() != 0) {
362 target = stream->EnsureSpace(target);
363 target = ::_pbi::WireFormatLite::WriteBoolToArray(
364 6, this_._internal_cumulative(), target);
368 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
370 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
371 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
377#if defined(PROTOBUF_CUSTOM_VTABLE)
385 ::size_t total_size = 0;
387 ::uint32_t cached_has_bits = 0;
389 (void)cached_has_bits;
391 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
392 cached_has_bits = this_.
_impl_._has_bits_[0];
393 if ((cached_has_bits & 0x0000003fu) != 0) {
395 if ((cached_has_bits & 0x00000001u) != 0) {
396 if (this_._internal_time() != 0) {
397 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
398 this_._internal_time());
402 if ((cached_has_bits & 0x00000002u) != 0) {
403 if (this_._internal_branches() != 0) {
404 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
405 this_._internal_branches());
409 if ((cached_has_bits & 0x00000004u) != 0) {
410 if (this_._internal_failures() != 0) {
411 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
412 this_._internal_failures());
416 if ((cached_has_bits & 0x00000008u) != 0) {
417 if (this_._internal_solutions() != 0) {
418 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
419 this_._internal_solutions());
423 if ((cached_has_bits & 0x00000010u) != 0) {
424 if (this_._internal_smart_time_check() != 0) {
429 if ((cached_has_bits & 0x00000020u) != 0) {
430 if (this_._internal_cumulative() != 0) {
435 return this_.MaybeComputeUnknownFieldsSize(total_size,
436 &this_.
_impl_._cached_size_);
439void RegularLimitParameters::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
443 ABSL_DCHECK_NE(&from, _this);
444 ::uint32_t cached_has_bits = 0;
445 (void) cached_has_bits;
447 cached_has_bits = from.
_impl_._has_bits_[0];
448 if ((cached_has_bits & 0x0000003fu) != 0) {
449 if ((cached_has_bits & 0x00000001u) != 0) {
450 if (from._internal_time() != 0) {
451 _this->_impl_.time_ = from.
_impl_.time_;
454 if ((cached_has_bits & 0x00000002u) != 0) {
455 if (from._internal_branches() != 0) {
456 _this->_impl_.branches_ = from.
_impl_.branches_;
459 if ((cached_has_bits & 0x00000004u) != 0) {
460 if (from._internal_failures() != 0) {
461 _this->_impl_.failures_ = from.
_impl_.failures_;
464 if ((cached_has_bits & 0x00000008u) != 0) {
465 if (from._internal_solutions() != 0) {
466 _this->_impl_.solutions_ = from.
_impl_.solutions_;
469 if ((cached_has_bits & 0x00000010u) != 0) {
470 if (from._internal_smart_time_check() != 0) {
471 _this->_impl_.smart_time_check_ = from.
_impl_.smart_time_check_;
474 if ((cached_has_bits & 0x00000020u) != 0) {
475 if (from._internal_cumulative() != 0) {
476 _this->_impl_.cumulative_ = from.
_impl_.cumulative_;
480 _this->_impl_._has_bits_[0] |= cached_has_bits;
481 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
486 if (&from ==
this)
return;
492void RegularLimitParameters::InternalSwap(
RegularLimitParameters* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
494 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
495 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
496 ::google::protobuf::internal::memswap<
500 reinterpret_cast<char*
>(&
_impl_.time_),
501 reinterpret_cast<char*
>(&other->_impl_.time_));
505 return ::google::protobuf::Message::GetMetadataImpl(
GetClassData()->full());
514PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
517 ::std::false_type{});
518#include "google/protobuf/port_undef.inc"
static PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::std::false_type _static_init2_
@protoc_insertion_point(global_scope)
static const ::_pb::Message *PROTOBUF_NONNULL const file_default_instances[]
static constexpr ::int32_t kHasBitsOffset
decltype(::std::declval< RegularLimitParameters >()._impl_._has_bits_) HasBits
friend class ::google::protobuf::MessageLite
void CopyFrom(const RegularLimitParameters &from)
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
void MergeFrom(const RegularLimitParameters &from)
static constexpr auto InternalNewImpl_()
::google::protobuf::Metadata GetMetadata() const
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
static constexpr auto InternalGenerateClassData_()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
~RegularLimitParameters() PROTOBUF_FINAL
friend void swap(RegularLimitParameters &a, RegularLimitParameters &b)
::size_t ByteSizeLong() const final
In SWIG mode, we don't want anything besides these top-level includes.
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RegularLimitParametersDefaultTypeInternal _RegularLimitParameters_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull RegularLimitParameters_class_data_
static constexpr ::_pbi::MigrationSchema *PROTOBUF_NULLABLE schemas
const ::uint32_t TableStruct_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold)
static constexprconst ::_pb::EnumDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_enum_descriptors_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto
static constexprconst ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_service_descriptors_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto
::absl::once_flag descriptor_table_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto_once
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto
~RegularLimitParametersDefaultTypeInternal()
PROTOBUF_CONSTEXPR RegularLimitParametersDefaultTypeInternal()
RegularLimitParameters _instance