Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
glpk.pb.cc
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/math_opt/solvers/glpk.proto
4// Protobuf C++ Version: 6.33.1
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// @@protoc_insertion_point(includes)
20
21// Must be included last.
22#include "google/protobuf/port_def.inc"
23PROTOBUF_PRAGMA_INIT_SEG
24namespace _pb = ::google::protobuf;
26namespace _fl = ::google::protobuf::internal::field_layout;
27namespace operations_research {
28namespace math_opt {
29
30inline constexpr GlpkParametersProto::Impl_::Impl_(
31 ::_pbi::ConstantInitialized) noexcept
32 : _cached_size_{0},
33 compute_unbound_rays_if_possible_{false} {}
34
35template <typename>
36PROTOBUF_CONSTEXPR GlpkParametersProto::GlpkParametersProto(::_pbi::ConstantInitialized)
37#if defined(PROTOBUF_CUSTOM_VTABLE)
38 : ::google::protobuf::Message(GlpkParametersProto_class_data_.base()),
39#else // PROTOBUF_CUSTOM_VTABLE
40 : ::google::protobuf::Message(),
41#endif // PROTOBUF_CUSTOM_VTABLE
42 _impl_(::_pbi::ConstantInitialized()) {
43}
51
52PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
54} // namespace math_opt
55} // namespace operations_research
56static constexpr const ::_pb::EnumDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
58static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
60const ::uint32_t
62 protodesc_cold) = {
63 0x081, // bitmap
64 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::GlpkParametersProto, _impl_._has_bits_),
65 4, // hasbit index offset
66 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::GlpkParametersProto, _impl_.compute_unbound_rays_if_possible_),
67 0,
68};
69
70static const ::_pbi::MigrationSchema
71 schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
73};
74static const ::_pb::Message* PROTOBUF_NONNULL const file_default_instances[] = {
76};
77const char descriptor_table_protodef_ortools_2fmath_5fopt_2fsolvers_2fglpk_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
78 protodesc_cold) = {
79 "\n#ortools/math_opt/solvers/glpk.proto\022\034o"
80 "perations_research.math_opt\"i\n\023GlpkParam"
81 "etersProto\022-\n compute_unbound_rays_if_po"
82 "ssible\030\001 \001(\010H\000\210\001\001B#\n!_compute_unbound_ra"
83 "ys_if_possibleb\006proto3"
84};
86PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fsolvers_2fglpk_2eproto = {
87 false,
88 false,
89 182,
90 descriptor_table_protodef_ortools_2fmath_5fopt_2fsolvers_2fglpk_2eproto,
91 "ortools/math_opt/solvers/glpk.proto",
93 nullptr,
94 0,
95 1,
96 schemas,
101};
102namespace operations_research {
103namespace math_opt {
104// ===================================================================
105
107 public:
108 using HasBits =
109 decltype(::std::declval<GlpkParametersProto>()._impl_._has_bits_);
110 static constexpr ::int32_t kHasBitsOffset =
111 8 * PROTOBUF_FIELD_OFFSET(GlpkParametersProto, _impl_._has_bits_);
112};
113
114GlpkParametersProto::GlpkParametersProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
115#if defined(PROTOBUF_CUSTOM_VTABLE)
116 : ::google::protobuf::Message(arena, GlpkParametersProto_class_data_.base()) {
117#else // PROTOBUF_CUSTOM_VTABLE
118 : ::google::protobuf::Message(arena) {
119#endif // PROTOBUF_CUSTOM_VTABLE
120 SharedCtor(arena);
121 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.GlpkParametersProto)
122}
124 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GlpkParametersProto& from)
125#if defined(PROTOBUF_CUSTOM_VTABLE)
126 : ::google::protobuf::Message(arena, GlpkParametersProto_class_data_.base()),
127#else // PROTOBUF_CUSTOM_VTABLE
128 : ::google::protobuf::Message(arena),
129#endif // PROTOBUF_CUSTOM_VTABLE
130 _impl_(from._impl_) {
131 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
132 from._internal_metadata_);
133}
134PROTOBUF_NDEBUG_INLINE GlpkParametersProto::Impl_::Impl_(
135 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
136 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
137 : _cached_size_{0} {}
138
139inline void GlpkParametersProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
140 new (&_impl_) Impl_(internal_visibility(), arena);
141 _impl_.compute_unbound_rays_if_possible_ = {};
142}
144 // @@protoc_insertion_point(destructor:operations_research.math_opt.GlpkParametersProto)
145 SharedDtor(*this);
146}
147inline void GlpkParametersProto::SharedDtor(MessageLite& self) {
148 GlpkParametersProto& this_ = static_cast<GlpkParametersProto&>(self);
149 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
150 this_.CheckHasBitConsistency();
151 }
152 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
153 ABSL_DCHECK(this_.GetArena() == nullptr);
154 this_._impl_.~Impl_();
155}
156
157inline void* PROTOBUF_NONNULL GlpkParametersProto::PlacementNew_(
158 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
159 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
160 return ::new (mem) GlpkParametersProto(arena);
161}
162constexpr auto GlpkParametersProto::InternalNewImpl_() {
163 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(GlpkParametersProto),
164 alignof(GlpkParametersProto));
165}
167 return ::google::protobuf::internal::ClassDataFull{
168 ::google::protobuf::internal::ClassData{
170 &_table_.header,
171 nullptr, // OnDemandRegisterArenaDtor
172 nullptr, // IsInitialized
173 &GlpkParametersProto::MergeImpl,
174 ::google::protobuf::Message::GetNewImpl<GlpkParametersProto>(),
175#if defined(PROTOBUF_CUSTOM_VTABLE)
176 &GlpkParametersProto::SharedDtor,
177 ::google::protobuf::Message::GetClearImpl<GlpkParametersProto>(), &GlpkParametersProto::ByteSizeLong,
179#endif // PROTOBUF_CUSTOM_VTABLE
180 PROTOBUF_FIELD_OFFSET(GlpkParametersProto, _impl_._cached_size_),
181 false,
182 },
183 &GlpkParametersProto::kDescriptorMethods,
185 nullptr, // tracker
186 };
187}
188
189PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
190 ::google::protobuf::internal::ClassDataFull GlpkParametersProto_class_data_ =
192
193PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
194GlpkParametersProto::GetClassData() const {
195 ::google::protobuf::internal::PrefetchToLocalCache(&GlpkParametersProto_class_data_);
196 ::google::protobuf::internal::PrefetchToLocalCache(GlpkParametersProto_class_data_.tc_table);
198}
199PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
200const ::_pbi::TcParseTable<0, 1, 0, 0, 2>
201GlpkParametersProto::_table_ = {
202 {
203 PROTOBUF_FIELD_OFFSET(GlpkParametersProto, _impl_._has_bits_),
204 0, // no _extensions_
205 1, 0, // max_field_number, fast_idx_mask
206 offsetof(decltype(_table_), field_lookup_table),
207 4294967294, // skipmap
208 offsetof(decltype(_table_), field_entries),
209 1, // num_field_entries
210 0, // num_aux_entries
211 offsetof(decltype(_table_), field_names), // no aux_entries
213 nullptr, // post_loop_handler
214 ::_pbi::TcParser::GenericFallback, // fallback
215 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
216 ::_pbi::TcParser::GetTable<::operations_research::math_opt::GlpkParametersProto>(), // to_prefetch
217 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
218 }, {{
219 // optional bool compute_unbound_rays_if_possible = 1;
220 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(GlpkParametersProto, _impl_.compute_unbound_rays_if_possible_), 0>(),
221 {8, 0, 0,
222 PROTOBUF_FIELD_OFFSET(GlpkParametersProto, _impl_.compute_unbound_rays_if_possible_)}},
223 }}, {{
224 65535, 65535
225 }}, {{
226 // optional bool compute_unbound_rays_if_possible = 1;
227 {PROTOBUF_FIELD_OFFSET(GlpkParametersProto, _impl_.compute_unbound_rays_if_possible_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
228 }},
229 // no aux_entries
230 {{
231 }},
232};
233PROTOBUF_NOINLINE void GlpkParametersProto::Clear() {
234// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.GlpkParametersProto)
235 ::google::protobuf::internal::TSanWrite(&_impl_);
236 ::uint32_t cached_has_bits = 0;
237 // Prevent compiler warnings about cached_has_bits being unused
238 (void) cached_has_bits;
239
240 _impl_.compute_unbound_rays_if_possible_ = false;
241 _impl_._has_bits_.Clear();
242 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
243}
244
245#if defined(PROTOBUF_CUSTOM_VTABLE)
246::uint8_t* PROTOBUF_NONNULL GlpkParametersProto::_InternalSerialize(
247 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
248 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
249 const GlpkParametersProto& this_ = static_cast<const GlpkParametersProto&>(base);
250#else // PROTOBUF_CUSTOM_VTABLE
251::uint8_t* PROTOBUF_NONNULL GlpkParametersProto::_InternalSerialize(
252 ::uint8_t* PROTOBUF_NONNULL target,
253 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
254 const GlpkParametersProto& this_ = *this;
255#endif // PROTOBUF_CUSTOM_VTABLE
256 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
257 this_.CheckHasBitConsistency();
258 }
259 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.GlpkParametersProto)
260 ::uint32_t cached_has_bits = 0;
261 (void)cached_has_bits;
262
263 cached_has_bits = this_._impl_._has_bits_[0];
264 // optional bool compute_unbound_rays_if_possible = 1;
265 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
266 target = stream->EnsureSpace(target);
267 target = ::_pbi::WireFormatLite::WriteBoolToArray(
268 1, this_._internal_compute_unbound_rays_if_possible(), target);
269 }
270
271 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
272 target =
273 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
274 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
275 }
276 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.GlpkParametersProto)
277 return target;
278}
279
280#if defined(PROTOBUF_CUSTOM_VTABLE)
282 const GlpkParametersProto& this_ = static_cast<const GlpkParametersProto&>(base);
283#else // PROTOBUF_CUSTOM_VTABLE
284::size_t GlpkParametersProto::ByteSizeLong() const {
285 const GlpkParametersProto& this_ = *this;
286#endif // PROTOBUF_CUSTOM_VTABLE
287 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.GlpkParametersProto)
288 ::size_t total_size = 0;
289
290 ::uint32_t cached_has_bits = 0;
291 // Prevent compiler warnings about cached_has_bits being unused
292 (void)cached_has_bits;
293
294 cached_has_bits = this_._impl_._has_bits_[0];
295 total_size += static_cast<bool>(0x00000001U & cached_has_bits) * 2;
296 return this_.MaybeComputeUnknownFieldsSize(total_size,
297 &this_._impl_._cached_size_);
298}
299
300void GlpkParametersProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
301 const ::google::protobuf::MessageLite& from_msg) {
302 auto* const _this =
303 static_cast<GlpkParametersProto*>(&to_msg);
304 auto& from = static_cast<const GlpkParametersProto&>(from_msg);
305 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
306 from.CheckHasBitConsistency();
307 }
308 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.GlpkParametersProto)
309 ABSL_DCHECK_NE(&from, _this);
310 ::uint32_t cached_has_bits = 0;
311 (void)cached_has_bits;
312
313 cached_has_bits = from._impl_._has_bits_[0];
314 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
315 _this->_impl_.compute_unbound_rays_if_possible_ = from._impl_.compute_unbound_rays_if_possible_;
316 }
317 _this->_impl_._has_bits_[0] |= cached_has_bits;
318 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
319 from._internal_metadata_);
320}
321
323 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.GlpkParametersProto)
324 if (&from == this) return;
325 Clear();
326 MergeFrom(from);
327}
328
329
330void GlpkParametersProto::InternalSwap(GlpkParametersProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
331 using ::std::swap;
332 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
333 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
334 swap(_impl_.compute_unbound_rays_if_possible_, other->_impl_.compute_unbound_rays_if_possible_);
335}
336
337::google::protobuf::Metadata GlpkParametersProto::GetMetadata() const {
338 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
339}
340// @@protoc_insertion_point(namespace_scope)
341} // namespace math_opt
342} // namespace operations_research
343namespace google {
344namespace protobuf {
345} // namespace protobuf
346} // namespace google
347// @@protoc_insertion_point(global_scope)
348PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
349 _static_init2_ [[maybe_unused]] =
351 ::std::false_type{});
352#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< GlpkParametersProto >()._impl_._has_bits_) HasBits
Definition glpk.pb.cc:109
friend class ::google::protobuf::MessageLite
Definition glpk.pb.h:242
friend void swap(GlpkParametersProto &a, GlpkParametersProto &b)
Definition glpk.pb.h:134
::google::protobuf::Metadata GetMetadata() const
Definition glpk.pb.cc:338
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
Definition glpk.pb.cc:234
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
Definition glpk.pb.h:111
void MergeFrom(const GlpkParametersProto &from)
Definition glpk.pb.h:157
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
Definition glpk.pb.cc:252
void CopyFrom(const GlpkParametersProto &from)
Definition glpk.pb.cc:323
static constexpr ::_pbi::MigrationSchema *PROTOBUF_NULLABLE schemas
static constexprconst ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_service_descriptors_ortools_2fmath_5fopt_2fsolvers_2fglpk_2eproto
Definition glpk.pb.cc:59
static constexprconst ::_pb::EnumDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_enum_descriptors_ortools_2fmath_5fopt_2fsolvers_2fglpk_2eproto
Definition glpk.pb.cc:57
::absl::once_flag descriptor_table_ortools_2fmath_5fopt_2fsolvers_2fglpk_2eproto_once
Definition glpk.pb.cc:85
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fsolvers_2fglpk_2eproto
Definition glpk.pb.cc:86
const ::uint32_t TableStruct_ortools_2fmath_5fopt_2fsolvers_2fglpk_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold)
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GlpkParametersProtoDefaultTypeInternal _GlpkParametersProto_default_instance_
Definition glpk.pb.cc:53
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull GlpkParametersProto_class_data_
Definition glpk.pb.cc:191
OR-Tools root namespace.