Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
int128.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// NO CHECKED-IN PROTOBUF GENCODE
3// source: ortools/util/int128.proto
4// Protobuf C++ Version: 6.31.1
5
6#ifndef ortools_2futil_2fint128_2eproto_2epb_2eh
7#define ortools_2futil_2fint128_2eproto_2epb_2eh
8
9#include <limits>
10#include <string>
11#include <type_traits>
12#include <utility>
13
14#include "google/protobuf/runtime_version.h"
15#if PROTOBUF_VERSION != 6031001
16#error "Protobuf C++ gencode is built with an incompatible version of"
17#error "Protobuf C++ headers/runtime. See"
18#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp"
19#endif
20#include "google/protobuf/io/coded_stream.h"
21#include "google/protobuf/arena.h"
22#include "google/protobuf/arenastring.h"
23#include "google/protobuf/generated_message_tctable_decl.h"
24#include "google/protobuf/generated_message_util.h"
25#include "google/protobuf/metadata_lite.h"
26#include "google/protobuf/generated_message_reflection.h"
27#include "google/protobuf/message.h"
28#include "google/protobuf/message_lite.h"
29#include "google/protobuf/repeated_field.h" // IWYU pragma: export
30#include "google/protobuf/extension_set.h" // IWYU pragma: export
31#include "google/protobuf/unknown_field_set.h"
32// @@protoc_insertion_point(includes)
33
34// Must be included last.
35#include "google/protobuf/port_def.inc"
36
37#define PROTOBUF_INTERNAL_EXPORT_ortools_2futil_2fint128_2eproto OR_PROTO_DLL
38
39namespace google {
40namespace protobuf {
41namespace internal {
42template <typename T>
43::absl::string_view GetAnyMessageName();
44} // namespace internal
45} // namespace protobuf
46} // namespace google
47
48// Internal implementation detail -- do not use these members.
50 static const ::uint32_t offsets[];
51};
52extern "C" {
53OR_PROTO_DLL extern const ::google::protobuf::internal::DescriptorTable descriptor_table_ortools_2futil_2fint128_2eproto;
54} // extern "C"
55namespace operations_research {
56class Int128;
59OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull Int128_class_data_;
60} // namespace operations_research
61namespace google {
62namespace protobuf {
63} // namespace protobuf
64} // namespace google
65
66namespace operations_research {
67
68// ===================================================================
69
70
71// -------------------------------------------------------------------
72
73class OR_PROTO_DLL Int128 final : public ::google::protobuf::Message
74/* @@protoc_insertion_point(class_definition:operations_research.Int128) */ {
75 public:
76 inline Int128() : Int128(nullptr) {}
77 ~Int128() PROTOBUF_FINAL;
79#if defined(PROTOBUF_CUSTOM_VTABLE)
80 void operator delete(Int128* PROTOBUF_NONNULL msg, std::destroying_delete_t) {
81 SharedDtor(*msg);
82 ::google::protobuf::internal::SizedDelete(msg, sizeof(Int128));
83 }
84#endif
85
86 template <typename = void>
87 explicit PROTOBUF_CONSTEXPR Int128(::google::protobuf::internal::ConstantInitialized);
88
89 inline Int128(const Int128& from) : Int128(nullptr, from) {}
90 inline Int128(Int128&& from) noexcept
91 : Int128(nullptr, ::std::move(from)) {}
92 inline Int128& operator=(const Int128& from) {
93 CopyFrom(from);
94 return *this;
95 }
96 inline Int128& operator=(Int128&& from) noexcept {
97 if (this == &from) return *this;
98 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
99 InternalSwap(&from);
100 } else {
101 CopyFrom(from);
102 }
103 return *this;
104 }
105
106 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
107 ABSL_ATTRIBUTE_LIFETIME_BOUND {
108 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
109 }
110 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
111 ABSL_ATTRIBUTE_LIFETIME_BOUND {
112 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
113 }
114
115 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
116 return GetDescriptor();
118 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
119 return default_instance().GetMetadata().descriptor;
121 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
122 return default_instance().GetMetadata().reflection;
124 static const Int128& default_instance() {
125 return *reinterpret_cast<const Int128*>(
127 }
128 static constexpr int kIndexInFileMessages = 0;
129 friend void swap(Int128& a, Int128& b) { a.Swap(&b); }
130 inline void Swap(Int128* PROTOBUF_NONNULL other) {
131 if (other == this) return;
132 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
133 InternalSwap(other);
134 } else {
135 ::google::protobuf::internal::GenericSwap(this, other);
136 }
137 }
138 void UnsafeArenaSwap(Int128* PROTOBUF_NONNULL other) {
139 if (other == this) return;
140 ABSL_DCHECK(GetArena() == other->GetArena());
141 InternalSwap(other);
142 }
143
144 // implements Message ----------------------------------------------
145
146 Int128* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
147 return ::google::protobuf::Message::DefaultConstruct<Int128>(arena);
149 using ::google::protobuf::Message::CopyFrom;
150 void CopyFrom(const Int128& from);
151 using ::google::protobuf::Message::MergeFrom;
152 void MergeFrom(const Int128& from) { Int128::MergeImpl(*this, from); }
153
154 private:
155 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
156 const ::google::protobuf::MessageLite& from_msg);
157
158 public:
159 bool IsInitialized() const {
160 return true;
162 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
163 #if defined(PROTOBUF_CUSTOM_VTABLE)
164 private:
165 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
166 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
167 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
168 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
169
170 public:
171 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
172 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
173 ::uint8_t* PROTOBUF_NONNULL target,
174 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
175 return _InternalSerialize(*this, target, stream);
176 }
177 #else // PROTOBUF_CUSTOM_VTABLE
178 ::size_t ByteSizeLong() const final;
179 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
180 ::uint8_t* PROTOBUF_NONNULL target,
181 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
182 #endif // PROTOBUF_CUSTOM_VTABLE
183 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
184
185 private:
186 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
187 static void SharedDtor(MessageLite& self);
188 void InternalSwap(Int128* PROTOBUF_NONNULL other);
189 private:
190 template <typename T>
191 friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
192 static ::absl::string_view FullMessageName() { return "operations_research.Int128"; }
193
194 protected:
195 explicit Int128(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
196 Int128(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Int128& from);
197 Int128(
198 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Int128&& from) noexcept
199 : Int128(arena) {
200 *this = ::std::move(from);
201 }
202 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
203 static void* PROTOBUF_NONNULL PlacementNew_(
204 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
205 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
206 static constexpr auto InternalNewImpl_();
207
208 public:
209 static constexpr auto InternalGenerateClassData_();
210
211 ::google::protobuf::Metadata GetMetadata() const;
212 // nested types ----------------------------------------------------
213
214 // accessors -------------------------------------------------------
215 enum : int {
216 kHighFieldNumber = 1,
217 kLowFieldNumber = 2,
218 };
219 // int64 high = 1;
220 void clear_high() ;
221 ::int64_t high() const;
222 void set_high(::int64_t value);
223
224 private:
225 ::int64_t _internal_high() const;
226 void _internal_set_high(::int64_t value);
227
228 public:
229 // uint64 low = 2;
230 void clear_low() ;
231 ::uint64_t low() const;
232 void set_low(::uint64_t value);
233
234 private:
235 ::uint64_t _internal_low() const;
236 void _internal_set_low(::uint64_t value);
237
238 public:
239 // @@protoc_insertion_point(class_scope:operations_research.Int128)
240 private:
241 class _Internal;
242 friend class ::google::protobuf::internal::TcParser;
243 static const ::google::protobuf::internal::TcParseTable<1, 2,
244 0, 0,
245 2>
246 _table_;
247
248 friend class ::google::protobuf::MessageLite;
249 friend class ::google::protobuf::Arena;
250 template <typename T>
251 friend class ::google::protobuf::Arena::InternalHelper;
252 using InternalArenaConstructable_ = void;
253 using DestructorSkippable_ = void;
254 struct Impl_ {
255 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
256 inline explicit Impl_(
257 ::google::protobuf::internal::InternalVisibility visibility,
258 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
259 inline explicit Impl_(
260 ::google::protobuf::internal::InternalVisibility visibility,
261 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
262 const Int128& from_msg);
263 ::google::protobuf::internal::HasBits<1> _has_bits_;
264 ::google::protobuf::internal::CachedSize _cached_size_;
265 ::int64_t high_;
266 ::uint64_t low_;
267 PROTOBUF_TSAN_DECLARE_MEMBER
268 };
269 union { Impl_ _impl_; };
270 friend struct ::TableStruct_ortools_2futil_2fint128_2eproto;
273OR_PROTO_DLL extern const ::google::protobuf::internal::ClassDataFull Int128_class_data_;
274
275// ===================================================================
276
277
278
279
280// ===================================================================
281
282
283#ifdef __GNUC__
284#pragma GCC diagnostic push
285#pragma GCC diagnostic ignored "-Wstrict-aliasing"
286#endif // __GNUC__
287// -------------------------------------------------------------------
288
289// Int128
290
291// int64 high = 1;
292inline void Int128::clear_high() {
293 ::google::protobuf::internal::TSanWrite(&_impl_);
294 _impl_.high_ = ::int64_t{0};
295 _impl_._has_bits_[0] &= ~0x00000001u;
296}
297inline ::int64_t Int128::high() const {
298 // @@protoc_insertion_point(field_get:operations_research.Int128.high)
299 return _internal_high();
300}
301inline void Int128::set_high(::int64_t value) {
302 _internal_set_high(value);
303 _impl_._has_bits_[0] |= 0x00000001u;
304 // @@protoc_insertion_point(field_set:operations_research.Int128.high)
305}
306inline ::int64_t Int128::_internal_high() const {
307 ::google::protobuf::internal::TSanRead(&_impl_);
308 return _impl_.high_;
309}
310inline void Int128::_internal_set_high(::int64_t value) {
311 ::google::protobuf::internal::TSanWrite(&_impl_);
312 _impl_.high_ = value;
313}
314
315// uint64 low = 2;
316inline void Int128::clear_low() {
317 ::google::protobuf::internal::TSanWrite(&_impl_);
318 _impl_.low_ = ::uint64_t{0u};
319 _impl_._has_bits_[0] &= ~0x00000002u;
320}
321inline ::uint64_t Int128::low() const {
322 // @@protoc_insertion_point(field_get:operations_research.Int128.low)
323 return _internal_low();
324}
325inline void Int128::set_low(::uint64_t value) {
326 _internal_set_low(value);
327 _impl_._has_bits_[0] |= 0x00000002u;
328 // @@protoc_insertion_point(field_set:operations_research.Int128.low)
329}
330inline ::uint64_t Int128::_internal_low() const {
331 ::google::protobuf::internal::TSanRead(&_impl_);
332 return _impl_.low_;
333}
334inline void Int128::_internal_set_low(::uint64_t value) {
335 ::google::protobuf::internal::TSanWrite(&_impl_);
336 _impl_.low_ = value;
337}
338
339#ifdef __GNUC__
340#pragma GCC diagnostic pop
341#endif // __GNUC__
342
343// @@protoc_insertion_point(namespace_scope)
344} // namespace operations_research
345
346
347// @@protoc_insertion_point(global_scope)
348
349#include "google/protobuf/port_undef.inc"
350
351#endif // ortools_2futil_2fint128_2eproto_2epb_2eh
friend class ::google::protobuf::MessageLite
Definition int128.pb.h:250
Int128(::google::protobuf::Arena *PROTOBUF_NULLABLE arena, Int128 &&from) noexcept
Definition int128.pb.h:199
Int128 & operator=(const Int128 &from)
Definition int128.pb.h:94
void clear_high()
int64 high = 1;
Definition int128.pb.h:297
::int64_t high() const
Definition int128.pb.h:302
void set_high(::int64_t value)
Definition int128.pb.h:306
PROTOBUF_CONSTEXPR Int128(::google::protobuf::internal::ConstantInitialized)
void clear_low()
uint64 low = 2;
Definition int128.pb.h:321
void Swap(Int128 *PROTOBUF_NONNULL other)
Definition int128.pb.h:132
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
Definition int128.pb.h:108
void CopyFrom(const Int128 &from)
Definition int128.pb.cc:361
void set_low(::uint64_t value)
Definition int128.pb.h:330
Int128(const Int128 &from)
Definition int128.pb.h:91
::uint64_t low() const
Definition int128.pb.h:326
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2futil_2fint128_2eproto
Definition int128.pb.cc:86
::absl::string_view GetAnyMessageName()
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_
Definition int128.pb.cc:53
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull Int128_class_data_
Definition int128.pb.cc:192
Internal implementation detail – do not use these members.
Definition int128.pb.h:49
static const ::uint32_t offsets[]
Definition int128.pb.h:50