Google OR-Tools v9.14
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.31.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 ::google::protobuf::internal::InternalVisibility visibility,
136 ::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 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
150 ABSL_DCHECK(this_.GetArena() == nullptr);
151 this_._impl_.~Impl_();
152}
153
154inline void* PROTOBUF_NONNULL GlpkParametersProto::PlacementNew_(
155 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
156 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
157 return ::new (mem) GlpkParametersProto(arena);
158}
160 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(GlpkParametersProto),
161 alignof(GlpkParametersProto));
162}
164 return ::google::protobuf::internal::ClassDataFull{
165 ::google::protobuf::internal::ClassData{
167 &_table_.header,
168 nullptr, // OnDemandRegisterArenaDtor
169 nullptr, // IsInitialized
170 &GlpkParametersProto::MergeImpl,
171 ::google::protobuf::Message::GetNewImpl<GlpkParametersProto>(),
172#if defined(PROTOBUF_CUSTOM_VTABLE)
173 &GlpkParametersProto::SharedDtor,
174 ::google::protobuf::Message::GetClearImpl<GlpkParametersProto>(), &GlpkParametersProto::ByteSizeLong,
176#endif // PROTOBUF_CUSTOM_VTABLE
177 PROTOBUF_FIELD_OFFSET(GlpkParametersProto, _impl_._cached_size_),
178 false,
179 },
180 &GlpkParametersProto::kDescriptorMethods,
182 nullptr, // tracker
183 };
184}
185
186PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
187 ::google::protobuf::internal::ClassDataFull GlpkParametersProto_class_data_ =
189
190PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
192 ::google::protobuf::internal::PrefetchToLocalCache(&GlpkParametersProto_class_data_);
193 ::google::protobuf::internal::PrefetchToLocalCache(GlpkParametersProto_class_data_.tc_table);
195}
196PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
197const ::_pbi::TcParseTable<0, 1, 0, 0, 2>
198GlpkParametersProto::_table_ = {
199 {
200 PROTOBUF_FIELD_OFFSET(GlpkParametersProto, _impl_._has_bits_),
201 0, // no _extensions_
202 1, 0, // max_field_number, fast_idx_mask
203 offsetof(decltype(_table_), field_lookup_table),
204 4294967294, // skipmap
205 offsetof(decltype(_table_), field_entries),
206 1, // num_field_entries
207 0, // num_aux_entries
208 offsetof(decltype(_table_), field_names), // no aux_entries
210 nullptr, // post_loop_handler
211 ::_pbi::TcParser::GenericFallback, // fallback
212 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
213 ::_pbi::TcParser::GetTable<::operations_research::math_opt::GlpkParametersProto>(), // to_prefetch
214 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
215 }, {{
216 // optional bool compute_unbound_rays_if_possible = 1;
217 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(GlpkParametersProto, _impl_.compute_unbound_rays_if_possible_), 0>(),
218 {8, 0, 0, PROTOBUF_FIELD_OFFSET(GlpkParametersProto, _impl_.compute_unbound_rays_if_possible_)}},
219 }}, {{
220 65535, 65535
221 }}, {{
222 // optional bool compute_unbound_rays_if_possible = 1;
223 {PROTOBUF_FIELD_OFFSET(GlpkParametersProto, _impl_.compute_unbound_rays_if_possible_), _Internal::kHasBitsOffset + 0, 0,
224 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
225 }},
226 // no aux_entries
227 {{
228 }},
229};
230PROTOBUF_NOINLINE void GlpkParametersProto::Clear() {
231// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.GlpkParametersProto)
232 ::google::protobuf::internal::TSanWrite(&_impl_);
233 ::uint32_t cached_has_bits = 0;
234 // Prevent compiler warnings about cached_has_bits being unused
235 (void) cached_has_bits;
236
237 _impl_.compute_unbound_rays_if_possible_ = false;
238 _impl_._has_bits_.Clear();
239 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
240}
241
242#if defined(PROTOBUF_CUSTOM_VTABLE)
243::uint8_t* PROTOBUF_NONNULL GlpkParametersProto::_InternalSerialize(
244 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
245 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
246 const GlpkParametersProto& this_ = static_cast<const GlpkParametersProto&>(base);
247#else // PROTOBUF_CUSTOM_VTABLE
248::uint8_t* PROTOBUF_NONNULL GlpkParametersProto::_InternalSerialize(
249 ::uint8_t* PROTOBUF_NONNULL target,
250 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
251 const GlpkParametersProto& this_ = *this;
252#endif // PROTOBUF_CUSTOM_VTABLE
253 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.GlpkParametersProto)
254 ::uint32_t cached_has_bits = 0;
255 (void)cached_has_bits;
256
257 cached_has_bits = this_._impl_._has_bits_[0];
258 // optional bool compute_unbound_rays_if_possible = 1;
259 if ((cached_has_bits & 0x00000001u) != 0) {
260 target = stream->EnsureSpace(target);
261 target = ::_pbi::WireFormatLite::WriteBoolToArray(
262 1, this_._internal_compute_unbound_rays_if_possible(), target);
263 }
264
265 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
266 target =
267 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
268 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
269 }
270 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.GlpkParametersProto)
271 return target;
272}
273
274#if defined(PROTOBUF_CUSTOM_VTABLE)
276 const GlpkParametersProto& this_ = static_cast<const GlpkParametersProto&>(base);
277#else // PROTOBUF_CUSTOM_VTABLE
278::size_t GlpkParametersProto::ByteSizeLong() const {
279 const GlpkParametersProto& this_ = *this;
280#endif // PROTOBUF_CUSTOM_VTABLE
281 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.GlpkParametersProto)
282 ::size_t total_size = 0;
283
284 ::uint32_t cached_has_bits = 0;
285 // Prevent compiler warnings about cached_has_bits being unused
286 (void)cached_has_bits;
287
288 cached_has_bits = this_._impl_._has_bits_[0];
289 total_size += static_cast<bool>(0x00000001u & cached_has_bits) * 2;
290 return this_.MaybeComputeUnknownFieldsSize(total_size,
291 &this_._impl_._cached_size_);
292}
293
294void GlpkParametersProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
295 auto* const _this = static_cast<GlpkParametersProto*>(&to_msg);
296 auto& from = static_cast<const GlpkParametersProto&>(from_msg);
297 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.GlpkParametersProto)
298 ABSL_DCHECK_NE(&from, _this);
299 ::uint32_t cached_has_bits = 0;
300 (void) cached_has_bits;
301
302 cached_has_bits = from._impl_._has_bits_[0];
303 if ((cached_has_bits & 0x00000001u) != 0) {
304 _this->_impl_.compute_unbound_rays_if_possible_ = from._impl_.compute_unbound_rays_if_possible_;
305 }
306 _this->_impl_._has_bits_[0] |= cached_has_bits;
307 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
308}
309
311// @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.GlpkParametersProto)
312 if (&from == this) return;
313 Clear();
314 MergeFrom(from);
315}
316
317
318void GlpkParametersProto::InternalSwap(GlpkParametersProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
319 using ::std::swap;
320 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
321 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
322 swap(_impl_.compute_unbound_rays_if_possible_, other->_impl_.compute_unbound_rays_if_possible_);
323}
324
325::google::protobuf::Metadata GlpkParametersProto::GetMetadata() const {
326 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
327}
328// @@protoc_insertion_point(namespace_scope)
329} // namespace math_opt
330} // namespace operations_research
331namespace google {
332namespace protobuf {
333} // namespace protobuf
334} // namespace google
335// @@protoc_insertion_point(global_scope)
336PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
337 _static_init2_ [[maybe_unused]] =
339 ::std::false_type{});
340#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< GlpkParametersProto >()._impl_._has_bits_) HasBits
Definition glpk.pb.cc:109
friend class ::google::protobuf::MessageLite
Definition glpk.pb.h:243
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
Definition glpk.pb.cc:155
friend void swap(GlpkParametersProto &a, GlpkParametersProto &b)
Definition glpk.pb.h:134
::google::protobuf::Metadata GetMetadata() const
Definition glpk.pb.cc:326
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
Definition glpk.pb.cc:231
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:249
void CopyFrom(const GlpkParametersProto &from)
Definition glpk.pb.cc:311
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
Definition glpk.pb.cc:192
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)
An object oriented wrapper for quadratic constraints in ModelStorage.
Definition gurobi_isv.cc:28
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:188
In SWIG mode, we don't want anything besides these top-level includes.
static constexpr ::_pbi::MigrationSchema *PROTOBUF_NULLABLE schemas