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 Int128::Impl_::Impl_(
30 ::_pbi::ConstantInitialized) noexcept
33 low_{::uint64_t{0u}} {}
37#if defined(PROTOBUF_CUSTOM_VTABLE)
40 : ::google::protobuf::Message(),
42 _impl_(::_pbi::ConstantInitialized()) {
52PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
55static constexpr const ::_pb::EnumDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
57static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
71static const ::_pbi::MigrationSchema
80 "\n\031ortools/util/int128.proto\022\023operations_"
81 "research\"#\n\006Int128\022\014\n\004high\030\001 \001(\003\022\013\n\003low\030"
82 "\002 \001(\004B1\n\027com.google.ortools.utilP\001\252\002\023Goo"
83 "gle.OrTools.Utilb\006proto3"
90 descriptor_table_protodef_ortools_2futil_2fint128_2eproto,
91 "ortools/util/int128.proto",
108 decltype(::std::declval<Int128>()._impl_._has_bits_);
114#if defined(PROTOBUF_CUSTOM_VTABLE)
117 : ::google::protobuf::Message(arena) {
123 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Int128& from)
124#if defined(PROTOBUF_CUSTOM_VTABLE)
127 : ::google::protobuf::Message(arena),
130 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
131 from._internal_metadata_);
133PROTOBUF_NDEBUG_INLINE Int128::Impl_::Impl_(
134 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
135 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
136 : _cached_size_{0} {}
138inline void Int128::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
139 new (&
_impl_) Impl_(internal_visibility(), arena);
140 ::memset(
reinterpret_cast<char*
>(&
_impl_) +
141 offsetof(Impl_, high_),
143 offsetof(Impl_, low_) -
144 offsetof(Impl_, high_) +
145 sizeof(Impl_::low_));
153 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
154 this_.CheckHasBitConsistency();
156 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
157 ABSL_DCHECK(this_.GetArena() ==
nullptr);
161inline void* PROTOBUF_NONNULL Int128::PlacementNew_(
162 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
163 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
164 return ::new (mem)
Int128(arena);
166constexpr auto Int128::InternalNewImpl_() {
167 return ::google::protobuf::internal::MessageCreator::ZeroInit(
sizeof(
Int128),
171 return ::google::protobuf::internal::ClassDataFull{
172 ::google::protobuf::internal::ClassData{
178 ::google::protobuf::Message::GetNewImpl<Int128>(),
179#if defined(PROTOBUF_CUSTOM_VTABLE)
187 &Int128::kDescriptorMethods,
193PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
197PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
198Int128::GetClassData()
const {
203PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
204const ::_pbi::TcParseTable<1, 2, 0, 0, 2>
210 offsetof(
decltype(_table_), field_lookup_table),
212 offsetof(
decltype(_table_), field_entries),
215 offsetof(
decltype(_table_), field_names),
218 ::_pbi::TcParser::GenericFallback,
219 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
220 ::_pbi::TcParser::GetTable<::operations_research::Int128>(),
224 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(
Int128,
_impl_.low_), 1>(),
228 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(
Int128,
_impl_.high_), 0>(),
245 ::google::protobuf::internal::TSanWrite(&
_impl_);
246 ::uint32_t cached_has_bits = 0;
248 (void) cached_has_bits;
250 cached_has_bits =
_impl_._has_bits_[0];
251 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
252 ::memset(&
_impl_.high_, 0,
static_cast<::
size_t>(
253 reinterpret_cast<char*
>(&
_impl_.low_) -
254 reinterpret_cast<char*
>(&
_impl_.high_)) +
sizeof(
_impl_.low_));
256 _impl_._has_bits_.Clear();
257 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
260#if defined(PROTOBUF_CUSTOM_VTABLE)
262 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
263 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
267 ::uint8_t* PROTOBUF_NONNULL target,
268 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
269 const Int128& this_ = *
this;
271 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
272 this_.CheckHasBitConsistency();
275 ::uint32_t cached_has_bits = 0;
276 (void)cached_has_bits;
278 cached_has_bits = this_.
_impl_._has_bits_[0];
280 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
281 if (this_._internal_high() != 0) {
283 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
284 stream, this_._internal_high(), target);
289 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
290 if (this_._internal_low() != 0) {
291 target = stream->EnsureSpace(target);
292 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
293 2, this_._internal_low(), target);
297 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
299 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
300 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
306#if defined(PROTOBUF_CUSTOM_VTABLE)
314 ::size_t total_size = 0;
316 ::uint32_t cached_has_bits = 0;
318 (void)cached_has_bits;
320 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
321 cached_has_bits = this_.
_impl_._has_bits_[0];
322 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
324 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
325 if (this_._internal_high() != 0) {
326 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
327 this_._internal_high());
331 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
332 if (this_._internal_low() != 0) {
333 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
334 this_._internal_low());
338 return this_.MaybeComputeUnknownFieldsSize(total_size,
339 &this_.
_impl_._cached_size_);
342void Int128::MergeImpl(::google::protobuf::MessageLite& to_msg,
343 const ::google::protobuf::MessageLite& from_msg) {
345 static_cast<Int128*
>(&to_msg);
346 auto& from =
static_cast<const Int128&
>(from_msg);
347 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
348 from.CheckHasBitConsistency();
351 ABSL_DCHECK_NE(&from, _this);
352 ::uint32_t cached_has_bits = 0;
353 (void)cached_has_bits;
355 cached_has_bits = from.
_impl_._has_bits_[0];
356 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
357 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
358 if (from._internal_high() != 0) {
359 _this->_impl_.high_ = from.
_impl_.high_;
362 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
363 if (from._internal_low() != 0) {
364 _this->_impl_.low_ = from.
_impl_.low_;
368 _this->_impl_._has_bits_[0] |= cached_has_bits;
369 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
370 from._internal_metadata_);
375 if (&from ==
this)
return;
381void Int128::InternalSwap(
Int128* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
383 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
384 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
385 ::google::protobuf::internal::memswap<
389 reinterpret_cast<char*
>(&
_impl_.high_),
390 reinterpret_cast<char*
>(&other->_impl_.high_));
394 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
403PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
406 ::std::false_type{});
407#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[]
decltype(::std::declval< Int128 >()._impl_._has_bits_) HasBits
static constexpr ::int32_t kHasBitsOffset
::size_t ByteSizeLong() const final
friend class ::google::protobuf::MessageLite
friend void swap(Int128 &a, Int128 &b)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
::google::protobuf::Metadata GetMetadata() const
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
void CopyFrom(const Int128 &from)
static constexpr auto InternalGenerateClassData_()
void MergeFrom(const Int128 &from)
static constexpr ::_pbi::MigrationSchema *PROTOBUF_NULLABLE schemas
static constexprconst ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_service_descriptors_ortools_2futil_2fint128_2eproto
static constexprconst ::_pb::EnumDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_enum_descriptors_ortools_2futil_2fint128_2eproto
const ::uint32_t TableStruct_ortools_2futil_2fint128_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold)
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2futil_2fint128_2eproto
::absl::once_flag descriptor_table_ortools_2futil_2fint128_2eproto_once
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Int128DefaultTypeInternal _Int128_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull Int128_class_data_
PROTOBUF_CONSTEXPR Int128DefaultTypeInternal()
~Int128DefaultTypeInternal()