Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
enums_test.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/math_opt/cpp/enums_test.proto
4// Protobuf C++ Version: 6.33.1
5
6#ifndef ortools_2fmath_5fopt_2fcpp_2fenums_5ftest_2eproto_2epb_2eh
7#define ortools_2fmath_5fopt_2fcpp_2fenums_5ftest_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 != 6033001
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/repeated_field.h" // IWYU pragma: export
28#include "google/protobuf/extension_set.h" // IWYU pragma: export
29#include "google/protobuf/generated_enum_reflection.h"
30// @@protoc_insertion_point(includes)
31
32// Must be included last.
33#include "google/protobuf/port_def.inc"
34
35#define PROTOBUF_INTERNAL_EXPORT_ortools_2fmath_5fopt_2fcpp_2fenums_5ftest_2eproto OR_PROTO_DLL
36
37namespace google {
38namespace protobuf {
39namespace internal {
40template <typename T>
41::absl::string_view GetAnyMessageName();
42} // namespace internal
43} // namespace protobuf
44} // namespace google
45
46// Internal implementation detail -- do not use these members.
48 static const ::uint32_t offsets[];
49};
50extern "C" {
51OR_PROTO_DLL extern const ::google::protobuf::internal::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fcpp_2fenums_5ftest_2eproto;
52} // extern "C"
53namespace operations_research {
54namespace math_opt {
55enum TestEnumProto : int;
56OR_PROTO_DLL extern const uint32_t TestEnumProto_internal_data_[];
57} // namespace math_opt
58} // namespace operations_research
59namespace google {
60namespace protobuf {
61template <>
62internal::EnumTraitsT<::operations_research::math_opt::TestEnumProto_internal_data_>
63 internal::EnumTraitsImpl::value<::operations_research::math_opt::TestEnumProto>;
64} // namespace protobuf
65} // namespace google
66
67namespace operations_research {
68namespace math_opt {
69enum TestEnumProto : int {
74 ::std::numeric_limits<::int32_t>::min(),
76 ::std::numeric_limits<::int32_t>::max(),
77};
78
79OR_PROTO_DLL extern const uint32_t TestEnumProto_internal_data_[];
81 static_cast<TestEnumProto>(0);
83 static_cast<TestEnumProto>(3);
84inline bool TestEnumProto_IsValid(int value) {
85 return 0 <= value && value <= 3 && ((11u >> value) & 1) != 0;
86}
87inline constexpr int TestEnumProto_ARRAYSIZE = 3 + 1;
88OR_PROTO_DLL const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL TestEnumProto_descriptor();
89template <typename T>
90const ::std::string& TestEnumProto_Name(T value) {
91 static_assert(::std::is_same<T, TestEnumProto>::value ||
92 ::std::is_integral<T>::value,
93 "Incorrect type passed to TestEnumProto_Name().");
94 return TestEnumProto_Name(static_cast<TestEnumProto>(value));
95}
96template <>
97inline const ::std::string& TestEnumProto_Name(TestEnumProto value) {
98 return ::google::protobuf::internal::NameOfDenseEnum<TestEnumProto_descriptor, 0, 3>(
99 static_cast<int>(value));
100}
102 ::absl::string_view name, TestEnumProto* PROTOBUF_NONNULL value) {
103 return ::google::protobuf::internal::ParseNamedEnum<TestEnumProto>(TestEnumProto_descriptor(), name,
104 value);
105}
106
107// ===================================================================
108
109
110
111// ===================================================================
112
113
114
115
116// ===================================================================
117
118
119#ifdef __GNUC__
120#pragma GCC diagnostic push
121#pragma GCC diagnostic ignored "-Wstrict-aliasing"
122#endif // __GNUC__
123#ifdef __GNUC__
124#pragma GCC diagnostic pop
125#endif // __GNUC__
126
127// @@protoc_insertion_point(namespace_scope)
128} // namespace math_opt
129} // namespace operations_research
130
131
132namespace google {
133namespace protobuf {
134
135template <>
136struct is_proto_enum<::operations_research::math_opt::TestEnumProto> : std::true_type {};
137template <>
138inline const EnumDescriptor* PROTOBUF_NONNULL GetEnumDescriptor<::operations_research::math_opt::TestEnumProto>() {
139 return ::operations_research::math_opt::TestEnumProto_descriptor();
140}
142} // namespace protobuf
143} // namespace google
144
145// @@protoc_insertion_point(global_scope)
146
147#include "google/protobuf/port_undef.inc"
148
149#endif // ortools_2fmath_5fopt_2fcpp_2fenums_5ftest_2eproto_2epb_2eh
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fcpp_2fenums_5ftest_2eproto
::absl::string_view GetAnyMessageName()
const EnumDescriptor *PROTOBUF_NONNULL GetEnumDescriptor<::operations_research::math_opt::TestEnumProto >()
const ::google::protobuf::EnumDescriptor *PROTOBUF_NONNULL TestEnumProto_descriptor()
bool TestEnumProto_IsValid(int value)
constexpr TestEnumProto TestEnumProto_MAX
PROTOBUF_CONSTINIT const uint32_t TestEnumProto_internal_data_[]
bool TestEnumProto_Parse(::absl::string_view name, TestEnumProto *PROTOBUF_NONNULL value)
const ::std::string & TestEnumProto_Name(T value)
constexpr TestEnumProto TestEnumProto_MIN
constexpr int TestEnumProto_ARRAYSIZE
OR-Tools root namespace.