Google OR-Tools: build/ortools/constraint_solver/search_limit.pb.cc Source File

1

2

3

4

5

7

8#include <algorithm>

9#include <type_traits>

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"

19

20

21

22#include "google/protobuf/port_def.inc"

23PROTOBUF_PRAGMA_INIT_SEG

26namespace _fl = ::google::protobuf::internal::field_layout;

28

29inline constexpr RegularLimitParameters::Impl_::Impl_(

30 ::_pbi::ConstantInitialized) noexcept

31 : _cached_size_{0},

32 time_{::int64_t{0}},

33 branches_{::int64_t{0}},

34 failures_{::int64_t{0}},

35 solutions_{::int64_t{0}},

36 smart_time_check_{false},

37 cumulative_{false} {}

38

39template <typename>

41#if defined(PROTOBUF_CUSTOM_VTABLE)

43#else

44 : ::google::protobuf::Message(),

45#endif

46 _impl_(::_pbi::ConstantInitialized()) {

47}

55

56PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL

58}

59static constexpr const ::_pb::EnumDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE

61static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE

63const ::uint32_t

65 protodesc_cold) = {

66 0x081,

68 9,

75 0,

76 1,

77 2,

78 3,

79 4,

80 5,

81};

82

83static const ::_pbi::MigrationSchema

86};

90const char descriptor_table_protodef_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(

91 protodesc_cold) = {

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"

100};

103 false,

104 false,

105 313,

106 descriptor_table_protodef_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto,

107 "ortools/constraint_solver/search_limit.proto",

109 nullptr,

110 0,

111 1,

117};

119

120

124 decltype(::std::declval<RegularLimitParameters>()._impl_._has_bits_);

127};

128

130#if defined(PROTOBUF_CUSTOM_VTABLE)

132#else

133 : ::google::protobuf::Message(arena) {

134#endif

135 SharedCtor(arena);

136

137}

139 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RegularLimitParameters& from)

140#if defined(PROTOBUF_CUSTOM_VTABLE)

142#else

143 : ::google::protobuf::Message(arena),

144#endif

145 _impl_(from._impl_) {

146 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(

147 from._internal_metadata_);

148}

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} {}

153

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_),

158 0,

159 offsetof(Impl_, cumulative_) -

160 offsetof(Impl_, time_) +

161 sizeof(Impl_::cumulative_));

162}

164

165 SharedDtor(*this);

166}

167inline void RegularLimitParameters::SharedDtor(MessageLite& self) {

169 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {

170 this_.CheckHasBitConsistency();

171 }

172 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();

173 ABSL_DCHECK(this_.GetArena() == nullptr);

174 this_._impl_.~Impl_();

175}

176

177inline void* PROTOBUF_NONNULL RegularLimitParameters::PlacementNew_(

178 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,

179 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {

181}

182constexpr auto RegularLimitParameters::InternalNewImpl_() {

183 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(RegularLimitParameters),

185}

187 return ::google::protobuf::internal::ClassDataFull{

188 ::google::protobuf::internal::ClassData{

190 &_table_.header,

191 nullptr,

192 nullptr,

193 &RegularLimitParameters::MergeImpl,

194 ::google::protobuf::Message::GetNewImpl<RegularLimitParameters>(),

195#if defined(PROTOBUF_CUSTOM_VTABLE)

196 &RegularLimitParameters::SharedDtor,

199#endif

201 false,

202 },

203 &RegularLimitParameters::kDescriptorMethods,

205 nullptr,

206 };

207}

208

209PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const

212

213PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL

214RegularLimitParameters::GetClassData() const {

218}

219PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1

220const ::_pbi::TcParseTable<3, 6, 0, 0, 2>

221RegularLimitParameters::_table_ = {

222 {

224 0,

225 6, 56,

226 offsetof(decltype(_table_), field_lookup_table),

227 4294967232,

228 offsetof(decltype(_table_), field_entries),

229 6,

230 0,

231 offsetof(decltype(_table_), field_names),

233 nullptr,

234 ::_pbi::TcParser::GenericFallback,

235 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE

236 ::_pbi::TcParser::GetTable<::operations_research::RegularLimitParameters>(),

237 #endif

238 }, {{

239 {::_pbi::TcParser::MiniParse, {}},

240

242 {8, 0, 0,

244

245 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(RegularLimitParameters, _impl_.branches_), 1>(),

246 {16, 1, 0,

248

249 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(RegularLimitParameters, _impl_.failures_), 2>(),

250 {24, 2, 0,

252

253 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(RegularLimitParameters, _impl_.solutions_), 3>(),

254 {32, 3, 0,

256

257 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(RegularLimitParameters, _impl_.smart_time_check_), 4>(),

258 {40, 4, 0,

260

262 {48, 5, 0,

264 {::_pbi::TcParser::MiniParse, {}},

265 }}, {{

266 65535, 65535

267 }}, {{

268

270

272

274

276

278

280 }},

281

282 {{

283 }},

284};

286

287 ::google::protobuf::internal::TSanWrite(&_impl_);

288 ::uint32_t cached_has_bits = 0;

289

290 (void) cached_has_bits;

291

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_));

297 }

298 _impl_._has_bits_.Clear();

299 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();

300}

301

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) {

307#else

309 ::uint8_t* PROTOBUF_NONNULL target,

310 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {

312#endif

313 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {

314 this_.CheckHasBitConsistency();

315 }

316

317 ::uint32_t cached_has_bits = 0;

318 (void)cached_has_bits;

319

320 cached_has_bits = this_._impl_._has_bits_[0];

321

322 if (CheckHasBit(cached_has_bits, 0x00000001U)) {

323 if (this_._internal_time() != 0) {

324 target =

325 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(

326 stream, this_._internal_time(), target);

327 }

328 }

329

330

331 if (CheckHasBit(cached_has_bits, 0x00000002U)) {

332 if (this_._internal_branches() != 0) {

333 target =

334 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(

335 stream, this_._internal_branches(), target);

336 }

337 }

338

339

340 if (CheckHasBit(cached_has_bits, 0x00000004U)) {

341 if (this_._internal_failures() != 0) {

342 target =

343 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>(

344 stream, this_._internal_failures(), target);

345 }

346 }

347

348

349 if (CheckHasBit(cached_has_bits, 0x00000008U)) {

350 if (this_._internal_solutions() != 0) {

351 target =

352 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<4>(

353 stream, this_._internal_solutions(), target);

354 }

355 }

356

357

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);

363 }

364 }

365

366

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);

372 }

373 }

374

375 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {

376 target =

377 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(

378 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);

379 }

380

381 return target;

382}

383

384#if defined(PROTOBUF_CUSTOM_VTABLE)

387#else

390#endif

391

392 ::size_t total_size = 0;

393

394 ::uint32_t cached_has_bits = 0;

395

396 (void)cached_has_bits;

397

398 ::_pbi::Prefetch5LinesFrom7Lines(&this_);

399 cached_has_bits = this_._impl_._has_bits_[0];

400 if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) {

401

402 if (CheckHasBit(cached_has_bits, 0x00000001U)) {

403 if (this_._internal_time() != 0) {

404 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(

405 this_._internal_time());

406 }

407 }

408

409 if (CheckHasBit(cached_has_bits, 0x00000002U)) {

410 if (this_._internal_branches() != 0) {

411 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(

412 this_._internal_branches());

413 }

414 }

415

416 if (CheckHasBit(cached_has_bits, 0x00000004U)) {

417 if (this_._internal_failures() != 0) {

418 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(

419 this_._internal_failures());

420 }

421 }

422

423 if (CheckHasBit(cached_has_bits, 0x00000008U)) {

424 if (this_._internal_solutions() != 0) {

425 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(

426 this_._internal_solutions());

427 }

428 }

429

430 if (CheckHasBit(cached_has_bits, 0x00000010U)) {

431 if (this_._internal_smart_time_check() != 0) {

432 total_size += 2;

433 }

434 }

435

436 if (CheckHasBit(cached_has_bits, 0x00000020U)) {

437 if (this_._internal_cumulative() != 0) {

438 total_size += 2;

439 }

440 }

441 }

442 return this_.MaybeComputeUnknownFieldsSize(total_size,

443 &this_._impl_._cached_size_);

444}

445

446void RegularLimitParameters::MergeImpl(::google::protobuf::MessageLite& to_msg,

447 const ::google::protobuf::MessageLite& from_msg) {

448 auto* const _this =

451 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {

452 from.CheckHasBitConsistency();

453 }

454

455 ABSL_DCHECK_NE(&from, _this);

456 ::uint32_t cached_has_bits = 0;

457 (void)cached_has_bits;

458

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_;

464 }

465 }

466 if (CheckHasBit(cached_has_bits, 0x00000002U)) {

467 if (from._internal_branches() != 0) {

468 _this->_impl_.branches_ = from._impl_.branches_;

469 }

470 }

471 if (CheckHasBit(cached_has_bits, 0x00000004U)) {

472 if (from._internal_failures() != 0) {

473 _this->_impl_.failures_ = from._impl_.failures_;

474 }

475 }

476 if (CheckHasBit(cached_has_bits, 0x00000008U)) {

477 if (from._internal_solutions() != 0) {

478 _this->_impl_.solutions_ = from._impl_.solutions_;

479 }

480 }

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_;

484 }

485 }

486 if (CheckHasBit(cached_has_bits, 0x00000020U)) {

487 if (from._internal_cumulative() != 0) {

488 _this->_impl_.cumulative_ = from._impl_.cumulative_;

489 }

490 }

491 }

492 _this->_impl_._has_bits_[0] |= cached_has_bits;

493 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(

494 from._internal_metadata_);

495}

496

498

499 if (&from == this) return;

502}

503

504

505void RegularLimitParameters::InternalSwap(RegularLimitParameters* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {

506 using ::std::swap;

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_));

515}

516

518 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());

519}

520

521}

523namespace protobuf {

524}

525}

526

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

Definition search_limit.pb.cc:126

decltype(::std::declval< RegularLimitParameters >()._impl_._has_bits_) HasBits

Definition search_limit.pb.cc:124

friend class ::google::protobuf::MessageLite

void CopyFrom(const RegularLimitParameters &from)

Definition search_limit.pb.cc:498

void MergeFrom(const RegularLimitParameters &from)

::google::protobuf::Metadata GetMetadata() const

Definition search_limit.pb.cc:518

::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final

Definition search_limit.pb.cc:309

static constexpr auto InternalGenerateClassData_()

Definition search_limit.pb.cc:187

const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND

ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL

Definition search_limit.pb.cc:286

~RegularLimitParameters() PROTOBUF_FINAL

Definition search_limit.pb.cc:164

friend void swap(RegularLimitParameters &a, RegularLimitParameters &b)

::size_t ByteSizeLong() const final

Definition search_limit.pb.cc:389

static constexpr ::_pbi::MigrationSchema *PROTOBUF_NULLABLE schemas

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RegularLimitParametersDefaultTypeInternal _RegularLimitParameters_default_instance_

Definition search_limit.pb.cc:57

PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull RegularLimitParameters_class_data_

Definition search_limit.pb.cc:211

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

Definition search_limit.pb.cc:60

static constexprconst ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_service_descriptors_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto

Definition search_limit.pb.cc:62

::absl::once_flag descriptor_table_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto_once

Definition search_limit.pb.cc:101

PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fconstraint_5fsolver_2fsearch_5flimit_2eproto

Definition search_limit.pb.cc:102

~RegularLimitParametersDefaultTypeInternal()

Definition search_limit.pb.cc:50

PROTOBUF_CONSTEXPR RegularLimitParametersDefaultTypeInternal()

Definition search_limit.pb.cc:49

RegularLimitParameters _instance

Definition search_limit.pb.cc:52