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 ::google::protobuf::internal::InternalVisibility visibility,
135 ::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_));
151inline void Int128::SharedDtor(MessageLite& self) {
153 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
154 ABSL_DCHECK(this_.GetArena() ==
nullptr);
159 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
160 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
161 return ::new (mem)
Int128(arena);
164 return ::google::protobuf::internal::MessageCreator::ZeroInit(
sizeof(
Int128),
168 return ::google::protobuf::internal::ClassDataFull{
169 ::google::protobuf::internal::ClassData{
175 ::google::protobuf::Message::GetNewImpl<Int128>(),
176#if defined(PROTOBUF_CUSTOM_VTABLE)
184 &Int128::kDescriptorMethods,
190PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
194PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
200PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
201const ::_pbi::TcParseTable<1, 2, 0, 0, 2>
204 PROTOBUF_FIELD_OFFSET(
Int128, _impl_._has_bits_),
207 offsetof(
decltype(_table_), field_lookup_table),
209 offsetof(
decltype(_table_), field_entries),
212 offsetof(
decltype(_table_), field_names),
215 ::_pbi::TcParser::GenericFallback,
216 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
217 ::_pbi::TcParser::GetTable<::operations_research::Int128>(),
221 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(Int128, _impl_.low_), 1>(),
222 {16, 1, 0, PROTOBUF_FIELD_OFFSET(Int128, _impl_.low_)}},
224 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(
Int128, _impl_.high_), 0>(),
225 {8, 0, 0, PROTOBUF_FIELD_OFFSET(
Int128, _impl_.high_)}},
230 {PROTOBUF_FIELD_OFFSET(
Int128, _impl_.high_), _Internal::kHasBitsOffset + 0, 0,
231 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
233 {PROTOBUF_FIELD_OFFSET(
Int128, _impl_.low_), _Internal::kHasBitsOffset + 1, 0,
234 (0 | ::_fl::kFcOptional | ::_fl::kUInt64)},
242 ::google::protobuf::internal::TSanWrite(&
_impl_);
243 ::uint32_t cached_has_bits = 0;
245 (void) cached_has_bits;
247 cached_has_bits =
_impl_._has_bits_[0];
248 if ((cached_has_bits & 0x00000003u) != 0) {
249 ::memset(&
_impl_.high_, 0,
static_cast<::
size_t>(
250 reinterpret_cast<char*
>(&
_impl_.low_) -
251 reinterpret_cast<char*
>(&
_impl_.high_)) +
sizeof(
_impl_.low_));
253 _impl_._has_bits_.Clear();
254 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
257#if defined(PROTOBUF_CUSTOM_VTABLE)
259 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
260 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
264 ::uint8_t* PROTOBUF_NONNULL target,
265 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
266 const Int128& this_ = *
this;
269 ::uint32_t cached_has_bits = 0;
270 (void)cached_has_bits;
273 if ((this_.
_impl_._has_bits_[0] & 0x00000001u) != 0) {
274 if (this_._internal_high() != 0) {
276 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
277 stream, this_._internal_high(), target);
282 if ((this_.
_impl_._has_bits_[0] & 0x00000002u) != 0) {
283 if (this_._internal_low() != 0) {
284 target = stream->EnsureSpace(target);
285 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
286 2, this_._internal_low(), target);
290 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
292 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
293 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
299#if defined(PROTOBUF_CUSTOM_VTABLE)
307 ::size_t total_size = 0;
309 ::uint32_t cached_has_bits = 0;
311 (void)cached_has_bits;
313 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
314 cached_has_bits = this_.
_impl_._has_bits_[0];
315 if ((cached_has_bits & 0x00000003u) != 0) {
317 if ((cached_has_bits & 0x00000001u) != 0) {
318 if (this_._internal_high() != 0) {
319 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
320 this_._internal_high());
324 if ((cached_has_bits & 0x00000002u) != 0) {
325 if (this_._internal_low() != 0) {
326 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
327 this_._internal_low());
331 return this_.MaybeComputeUnknownFieldsSize(total_size,
332 &this_.
_impl_._cached_size_);
335void Int128::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
336 auto*
const _this =
static_cast<Int128*
>(&to_msg);
337 auto& from =
static_cast<const Int128&
>(from_msg);
339 ABSL_DCHECK_NE(&from, _this);
340 ::uint32_t cached_has_bits = 0;
341 (void) cached_has_bits;
343 cached_has_bits = from.
_impl_._has_bits_[0];
344 if ((cached_has_bits & 0x00000003u) != 0) {
345 if ((cached_has_bits & 0x00000001u) != 0) {
346 if (from._internal_high() != 0) {
347 _this->_impl_.high_ = from.
_impl_.high_;
350 if ((cached_has_bits & 0x00000002u) != 0) {
351 if (from._internal_low() != 0) {
352 _this->_impl_.low_ = from.
_impl_.low_;
356 _this->_impl_._has_bits_[0] |= cached_has_bits;
357 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
362 if (&from ==
this)
return;
368void Int128::InternalSwap(
Int128* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
370 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
371 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
372 ::google::protobuf::internal::memswap<
376 reinterpret_cast<char*
>(&
_impl_.high_),
377 reinterpret_cast<char*
>(&other->_impl_.high_));
381 return ::google::protobuf::Message::GetMetadataImpl(
GetClassData()->full());
390PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
393 ::std::false_type{});
394#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[]
decltype(::std::declval< Int128 >()._impl_._has_bits_) HasBits
static constexpr ::int32_t kHasBitsOffset
::size_t ByteSizeLong() const final
friend class ::google::protobuf::MessageLite
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
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)
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
static constexpr auto InternalGenerateClassData_()
static constexpr auto InternalNewImpl_()
void MergeFrom(const Int128 &from)
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
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 Int128DefaultTypeInternal _Int128_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull Int128_class_data_
static constexpr ::_pbi::MigrationSchema *PROTOBUF_NULLABLE schemas
PROTOBUF_CONSTEXPR Int128DefaultTypeInternal()
~Int128DefaultTypeInternal()