Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
optional_boolean.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/optional_boolean.proto
4// Protobuf C++ Version: 6.31.1
5
6#ifndef ortools_2futil_2foptional_5fboolean_2eproto_2epb_2eh
7#define ortools_2futil_2foptional_5fboolean_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/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_2futil_2foptional_5fboolean_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_2futil_2foptional_5fboolean_2eproto;
52} // extern "C"
53namespace operations_research {
54enum OptionalBoolean : int;
55OR_PROTO_DLL extern const uint32_t OptionalBoolean_internal_data_[];
56} // namespace operations_research
57namespace google {
58namespace protobuf {
59template <>
60internal::EnumTraitsT<::operations_research::OptionalBoolean_internal_data_>
61 internal::EnumTraitsImpl::value<::operations_research::OptionalBoolean>;
62} // namespace protobuf
63} // namespace google
64
65namespace operations_research {
66enum OptionalBoolean : int {
71 ::std::numeric_limits<::int32_t>::min(),
73 ::std::numeric_limits<::int32_t>::max(),
74};
75
76OR_PROTO_DLL extern const uint32_t OptionalBoolean_internal_data_[];
78 static_cast<OptionalBoolean>(0);
80 static_cast<OptionalBoolean>(3);
81inline bool OptionalBoolean_IsValid(int value) {
82 return 0 <= value && value <= 3 && ((13u >> value) & 1) != 0;
83}
84inline constexpr int OptionalBoolean_ARRAYSIZE = 3 + 1;
85OR_PROTO_DLL const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL OptionalBoolean_descriptor();
86template <typename T>
87const ::std::string& OptionalBoolean_Name(T value) {
88 static_assert(::std::is_same<T, OptionalBoolean>::value ||
89 ::std::is_integral<T>::value,
90 "Incorrect type passed to OptionalBoolean_Name().");
91 return OptionalBoolean_Name(static_cast<OptionalBoolean>(value));
92}
93template <>
94inline const ::std::string& OptionalBoolean_Name(OptionalBoolean value) {
95 return ::google::protobuf::internal::NameOfDenseEnum<OptionalBoolean_descriptor, 0, 3>(
96 static_cast<int>(value));
97}
99 ::absl::string_view name, OptionalBoolean* PROTOBUF_NONNULL value) {
100 return ::google::protobuf::internal::ParseNamedEnum<OptionalBoolean>(OptionalBoolean_descriptor(), name,
101 value);
102}
103
104// ===================================================================
105
106
107
108// ===================================================================
109
110
111
112
113// ===================================================================
114
115
116#ifdef __GNUC__
117#pragma GCC diagnostic push
118#pragma GCC diagnostic ignored "-Wstrict-aliasing"
119#endif // __GNUC__
120#ifdef __GNUC__
121#pragma GCC diagnostic pop
122#endif // __GNUC__
123
124// @@protoc_insertion_point(namespace_scope)
125} // namespace operations_research
126
127
128namespace google {
129namespace protobuf {
130
131template <>
132struct is_proto_enum<::operations_research::OptionalBoolean> : std::true_type {};
133template <>
134inline const EnumDescriptor* PROTOBUF_NONNULL GetEnumDescriptor<::operations_research::OptionalBoolean>() {
135 return ::operations_research::OptionalBoolean_descriptor();
136}
138} // namespace protobuf
139} // namespace google
140
141// @@protoc_insertion_point(global_scope)
142
143#include "google/protobuf/port_undef.inc"
144
145#endif // ortools_2futil_2foptional_5fboolean_2eproto_2epb_2eh
::absl::string_view GetAnyMessageName()
const EnumDescriptor *PROTOBUF_NONNULL GetEnumDescriptor<::operations_research::OptionalBoolean >()
In SWIG mode, we don't want anything besides these top-level includes.
constexpr int OptionalBoolean_ARRAYSIZE
constexpr OptionalBoolean OptionalBoolean_MAX
bool OptionalBoolean_IsValid(int value)
constexpr OptionalBoolean OptionalBoolean_MIN
PROTOBUF_CONSTINIT const uint32_t OptionalBoolean_internal_data_[]
const ::google::protobuf::EnumDescriptor *PROTOBUF_NONNULL OptionalBoolean_descriptor()
const ::std::string & OptionalBoolean_Name(T value)
bool OptionalBoolean_Parse(::absl::string_view name, OptionalBoolean *PROTOBUF_NONNULL value)
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2futil_2foptional_5fboolean_2eproto
Internal implementation detail – do not use these members.