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 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
151 [[maybe_unused]] ::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 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
170 this_.CheckHasBitConsistency();
172 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
173 ABSL_DCHECK(this_.GetArena() ==
nullptr);
177inline void* PROTOBUF_NONNULL RegularLimitParameters::PlacementNew_(
178 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
179 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
182constexpr auto RegularLimitParameters::InternalNewImpl_() {
187 return ::google::protobuf::internal::ClassDataFull{
188 ::google::protobuf::internal::ClassData{
193 &RegularLimitParameters::MergeImpl,
194 ::google::protobuf::Message::GetNewImpl<RegularLimitParameters>(),
195#if defined(PROTOBUF_CUSTOM_VTABLE)
196 &RegularLimitParameters::SharedDtor,
203 &RegularLimitParameters::kDescriptorMethods,
209PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
213PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
214RegularLimitParameters::GetClassData()
const {
219PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
220const ::_pbi::TcParseTable<3, 6, 0, 0, 2>
221RegularLimitParameters::_table_ = {
226 offsetof(
decltype(_table_), field_lookup_table),
228 offsetof(
decltype(_table_), field_entries),
231 offsetof(
decltype(_table_), field_names),
234 ::_pbi::TcParser::GenericFallback,
235 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
236 ::_pbi::TcParser::GetTable<::operations_research::RegularLimitParameters>(),
239 {::_pbi::TcParser::MiniParse, {}},
264 {::_pbi::TcParser::MiniParse, {}},
287 ::google::protobuf::internal::TSanWrite(&
_impl_);
288 ::uint32_t cached_has_bits = 0;
290 (void) cached_has_bits;
292 cached_has_bits =
_impl_._has_bits_[0];
293 if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) {
294 ::memset(&
_impl_.time_, 0,
static_cast<::
size_t>(
295 reinterpret_cast<char*
>(&
_impl_.cumulative_) -
296 reinterpret_cast<char*
>(&
_impl_.time_)) +
sizeof(
_impl_.cumulative_));
298 _impl_._has_bits_.Clear();
299 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
302#if defined(PROTOBUF_CUSTOM_VTABLE)
304 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
305 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
309 ::uint8_t* PROTOBUF_NONNULL target,
310 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
313 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
314 this_.CheckHasBitConsistency();
317 ::uint32_t cached_has_bits = 0;
318 (void)cached_has_bits;
320 cached_has_bits = this_.
_impl_._has_bits_[0];
322 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
323 if (this_._internal_time() != 0) {
325 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
326 stream, this_._internal_time(), target);
331 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
332 if (this_._internal_branches() != 0) {
334 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
335 stream, this_._internal_branches(), target);
340 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
341 if (this_._internal_failures() != 0) {
343 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>(
344 stream, this_._internal_failures(), target);
349 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
350 if (this_._internal_solutions() != 0) {
352 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<4>(
353 stream, this_._internal_solutions(), target);
358 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
359 if (this_._internal_smart_time_check() != 0) {
360 target = stream->EnsureSpace(target);
361 target = ::_pbi::WireFormatLite::WriteBoolToArray(
362 5, this_._internal_smart_time_check(), target);
367 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
368 if (this_._internal_cumulative() != 0) {
369 target = stream->EnsureSpace(target);
370 target = ::_pbi::WireFormatLite::WriteBoolToArray(
371 6, this_._internal_cumulative(), target);
375 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
377 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
378 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
384#if defined(PROTOBUF_CUSTOM_VTABLE)
392 ::size_t total_size = 0;
394 ::uint32_t cached_has_bits = 0;
396 (void)cached_has_bits;
398 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
399 cached_has_bits = this_.
_impl_._has_bits_[0];
400 if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) {
402 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
403 if (this_._internal_time() != 0) {
404 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
405 this_._internal_time());
409 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
410 if (this_._internal_branches() != 0) {
411 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
412 this_._internal_branches());
416 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
417 if (this_._internal_failures() != 0) {
418 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
419 this_._internal_failures());
423 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
424 if (this_._internal_solutions() != 0) {
425 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
426 this_._internal_solutions());
430 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
431 if (this_._internal_smart_time_check() != 0) {
436 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
437 if (this_._internal_cumulative() != 0) {
442 return this_.MaybeComputeUnknownFieldsSize(total_size,
443 &this_.
_impl_._cached_size_);
446void RegularLimitParameters::MergeImpl(::google::protobuf::MessageLite& to_msg,
447 const ::google::protobuf::MessageLite& from_msg) {
451 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
452 from.CheckHasBitConsistency();
455 ABSL_DCHECK_NE(&from, _this);
456 ::uint32_t cached_has_bits = 0;
457 (void)cached_has_bits;
459 cached_has_bits = from.
_impl_._has_bits_[0];
460 if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) {
461 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
462 if (from._internal_time() != 0) {
463 _this->_impl_.time_ = from.
_impl_.time_;
466 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
467 if (from._internal_branches() != 0) {
468 _this->_impl_.branches_ = from.
_impl_.branches_;
471 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
472 if (from._internal_failures() != 0) {
473 _this->_impl_.failures_ = from.
_impl_.failures_;
476 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
477 if (from._internal_solutions() != 0) {
478 _this->_impl_.solutions_ = from.
_impl_.solutions_;
481 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
482 if (from._internal_smart_time_check() != 0) {
483 _this->_impl_.smart_time_check_ = from.
_impl_.smart_time_check_;
486 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
487 if (from._internal_cumulative() != 0) {
488 _this->_impl_.cumulative_ = from.
_impl_.cumulative_;
492 _this->_impl_._has_bits_[0] |= cached_has_bits;
493 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
494 from._internal_metadata_);
499 if (&from ==
this)
return;
505void RegularLimitParameters::InternalSwap(
RegularLimitParameters* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
507 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
508 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
509 ::google::protobuf::internal::memswap<
513 reinterpret_cast<char*
>(&
_impl_.time_),
514 reinterpret_cast<char*
>(&other->_impl_.time_));
518 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
527PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
530 ::std::false_type{});
531#include "google/protobuf/port_undef.inc"
static PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::std::false_type _static_init2_
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)
void MergeFrom(const RegularLimitParameters &from)
::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
~RegularLimitParameters() PROTOBUF_FINAL
friend void swap(RegularLimitParameters &a, RegularLimitParameters &b)
::size_t ByteSizeLong() const final
static constexpr ::_pbi::MigrationSchema *PROTOBUF_NULLABLE schemas
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_
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