/src/libprotobuf-mutator/build/external.protobuf/src/external.protobuf/src/google/protobuf/cpp_features.pb.h
Line | Count | Source (jump to first uncovered line) |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // NO CHECKED-IN PROTOBUF GENCODE |
3 | | // source: google/protobuf/cpp_features.proto |
4 | | // Protobuf C++ Version: 5.27.1 |
5 | | |
6 | | #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fcpp_5ffeatures_2eproto_2epb_2eh |
7 | | #define GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fcpp_5ffeatures_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 != 5027001 |
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/repeated_field.h" // IWYU pragma: export |
29 | | #include "google/protobuf/extension_set.h" // IWYU pragma: export |
30 | | #include "google/protobuf/generated_enum_reflection.h" |
31 | | #include "google/protobuf/unknown_field_set.h" |
32 | | #include "google/protobuf/descriptor.pb.h" |
33 | | // @@protoc_insertion_point(includes) |
34 | | |
35 | | // Must be included last. |
36 | | #include "google/protobuf/port_def.inc" |
37 | | |
38 | | #define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fcpp_5ffeatures_2eproto PROTOBUF_EXPORT |
39 | | |
40 | | namespace google { |
41 | | namespace protobuf { |
42 | | namespace internal { |
43 | | class AnyMetadata; |
44 | | } // namespace internal |
45 | | } // namespace protobuf |
46 | | } // namespace google |
47 | | |
48 | | // Internal implementation detail -- do not use these members. |
49 | | struct PROTOBUF_EXPORT TableStruct_google_2fprotobuf_2fcpp_5ffeatures_2eproto { |
50 | | static const ::uint32_t offsets[]; |
51 | | }; |
52 | | PROTOBUF_EXPORT extern const ::google::protobuf::internal::DescriptorTable |
53 | | descriptor_table_google_2fprotobuf_2fcpp_5ffeatures_2eproto; |
54 | | namespace pb { |
55 | | class CppFeatures; |
56 | | struct CppFeaturesDefaultTypeInternal; |
57 | | PROTOBUF_EXPORT extern CppFeaturesDefaultTypeInternal _CppFeatures_default_instance_; |
58 | | } // namespace pb |
59 | | namespace google { |
60 | | namespace protobuf { |
61 | | } // namespace protobuf |
62 | | } // namespace google |
63 | | |
64 | | namespace pb { |
65 | | enum CppFeatures_StringType : int { |
66 | | CppFeatures_StringType_STRING_TYPE_UNKNOWN = 0, |
67 | | CppFeatures_StringType_VIEW = 1, |
68 | | CppFeatures_StringType_CORD = 2, |
69 | | CppFeatures_StringType_STRING = 3, |
70 | | }; |
71 | | |
72 | | PROTOBUF_EXPORT bool CppFeatures_StringType_IsValid(int value); |
73 | | PROTOBUF_EXPORT extern const uint32_t CppFeatures_StringType_internal_data_[]; |
74 | | constexpr CppFeatures_StringType CppFeatures_StringType_StringType_MIN = static_cast<CppFeatures_StringType>(0); |
75 | | constexpr CppFeatures_StringType CppFeatures_StringType_StringType_MAX = static_cast<CppFeatures_StringType>(3); |
76 | | constexpr int CppFeatures_StringType_StringType_ARRAYSIZE = 3 + 1; |
77 | | PROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* |
78 | | CppFeatures_StringType_descriptor(); |
79 | | template <typename T> |
80 | | const std::string& CppFeatures_StringType_Name(T value) { |
81 | | static_assert(std::is_same<T, CppFeatures_StringType>::value || |
82 | | std::is_integral<T>::value, |
83 | | "Incorrect type passed to StringType_Name()."); |
84 | | return CppFeatures_StringType_Name(static_cast<CppFeatures_StringType>(value)); |
85 | | } |
86 | | template <> |
87 | 0 | inline const std::string& CppFeatures_StringType_Name(CppFeatures_StringType value) { |
88 | 0 | return ::google::protobuf::internal::NameOfDenseEnum<CppFeatures_StringType_descriptor, |
89 | 0 | 0, 3>( |
90 | 0 | static_cast<int>(value)); |
91 | 0 | } |
92 | 0 | inline bool CppFeatures_StringType_Parse(absl::string_view name, CppFeatures_StringType* value) { |
93 | 0 | return ::google::protobuf::internal::ParseNamedEnum<CppFeatures_StringType>( |
94 | 0 | CppFeatures_StringType_descriptor(), name, value); |
95 | 0 | } |
96 | | |
97 | | // =================================================================== |
98 | | |
99 | | |
100 | | // ------------------------------------------------------------------- |
101 | | |
102 | | class PROTOBUF_EXPORT CppFeatures final : public ::google::protobuf::Message |
103 | | /* @@protoc_insertion_point(class_definition:pb.CppFeatures) */ { |
104 | | public: |
105 | 0 | inline CppFeatures() : CppFeatures(nullptr) {} |
106 | | ~CppFeatures() override; |
107 | | template <typename = void> |
108 | | explicit PROTOBUF_CONSTEXPR CppFeatures( |
109 | | ::google::protobuf::internal::ConstantInitialized); |
110 | | |
111 | 0 | inline CppFeatures(const CppFeatures& from) : CppFeatures(nullptr, from) {} |
112 | | inline CppFeatures(CppFeatures&& from) noexcept |
113 | 0 | : CppFeatures(nullptr, std::move(from)) {} |
114 | 0 | inline CppFeatures& operator=(const CppFeatures& from) { |
115 | 0 | CopyFrom(from); |
116 | 0 | return *this; |
117 | 0 | } |
118 | 0 | inline CppFeatures& operator=(CppFeatures&& from) noexcept { |
119 | 0 | if (this == &from) return *this; |
120 | 0 | if (GetArena() == from.GetArena() |
121 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
122 | 0 | && GetArena() != nullptr |
123 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
124 | 0 | ) { |
125 | 0 | InternalSwap(&from); |
126 | 0 | } else { |
127 | 0 | CopyFrom(from); |
128 | 0 | } |
129 | 0 | return *this; |
130 | 0 | } |
131 | | |
132 | | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const |
133 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
134 | 0 | return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); |
135 | 0 | } |
136 | | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() |
137 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
138 | 0 | return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); |
139 | 0 | } |
140 | | |
141 | 3 | static const ::google::protobuf::Descriptor* descriptor() { |
142 | 3 | return GetDescriptor(); |
143 | 3 | } |
144 | 3 | static const ::google::protobuf::Descriptor* GetDescriptor() { |
145 | 3 | return default_instance().GetMetadata().descriptor; |
146 | 3 | } |
147 | 0 | static const ::google::protobuf::Reflection* GetReflection() { |
148 | 0 | return default_instance().GetMetadata().reflection; |
149 | 0 | } |
150 | 4 | static const CppFeatures& default_instance() { |
151 | 4 | return *internal_default_instance(); |
152 | 4 | } |
153 | 4 | static inline const CppFeatures* internal_default_instance() { |
154 | 4 | return reinterpret_cast<const CppFeatures*>( |
155 | 4 | &_CppFeatures_default_instance_); |
156 | 4 | } |
157 | | static constexpr int kIndexInFileMessages = 0; |
158 | 0 | friend void swap(CppFeatures& a, CppFeatures& b) { a.Swap(&b); } |
159 | 0 | inline void Swap(CppFeatures* other) { |
160 | 0 | if (other == this) return; |
161 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
162 | 0 | if (GetArena() != nullptr && GetArena() == other->GetArena()) { |
163 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
164 | 0 | if (GetArena() == other->GetArena()) { |
165 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
166 | 0 | InternalSwap(other); |
167 | 0 | } else { |
168 | 0 | ::google::protobuf::internal::GenericSwap(this, other); |
169 | 0 | } |
170 | 0 | } |
171 | 0 | void UnsafeArenaSwap(CppFeatures* other) { |
172 | 0 | if (other == this) return; |
173 | 0 | ABSL_DCHECK(GetArena() == other->GetArena()); |
174 | 0 | InternalSwap(other); |
175 | 0 | } |
176 | | |
177 | | // implements Message ---------------------------------------------- |
178 | | |
179 | 37 | CppFeatures* New(::google::protobuf::Arena* arena = nullptr) const final { |
180 | 37 | return ::google::protobuf::Message::DefaultConstruct<CppFeatures>(arena); |
181 | 37 | } |
182 | | using ::google::protobuf::Message::CopyFrom; |
183 | | void CopyFrom(const CppFeatures& from); |
184 | | using ::google::protobuf::Message::MergeFrom; |
185 | 0 | void MergeFrom(const CppFeatures& from) { CppFeatures::MergeImpl(*this, from); } |
186 | | |
187 | | private: |
188 | | static void MergeImpl( |
189 | | ::google::protobuf::MessageLite& to_msg, |
190 | | const ::google::protobuf::MessageLite& from_msg); |
191 | | |
192 | | public: |
193 | 0 | bool IsInitialized() const { |
194 | 0 | return true; |
195 | 0 | } |
196 | | ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; |
197 | | ::size_t ByteSizeLong() const final; |
198 | | ::uint8_t* _InternalSerialize( |
199 | | ::uint8_t* target, |
200 | | ::google::protobuf::io::EpsCopyOutputStream* stream) const final; |
201 | 0 | int GetCachedSize() const { return _impl_._cached_size_.Get(); } |
202 | | |
203 | | private: |
204 | | void SharedCtor(::google::protobuf::Arena* arena); |
205 | | void SharedDtor(); |
206 | | void InternalSwap(CppFeatures* other); |
207 | | private: |
208 | | friend class ::google::protobuf::internal::AnyMetadata; |
209 | 0 | static ::absl::string_view FullMessageName() { return "pb.CppFeatures"; } |
210 | | |
211 | | protected: |
212 | | explicit CppFeatures(::google::protobuf::Arena* arena); |
213 | | CppFeatures(::google::protobuf::Arena* arena, const CppFeatures& from); |
214 | | CppFeatures(::google::protobuf::Arena* arena, CppFeatures&& from) noexcept |
215 | 0 | : CppFeatures(arena) { |
216 | 0 | *this = ::std::move(from); |
217 | 0 | } |
218 | | const ::google::protobuf::Message::ClassData* GetClassData() const final; |
219 | | |
220 | | public: |
221 | | ::google::protobuf::Metadata GetMetadata() const; |
222 | | // nested types ---------------------------------------------------- |
223 | | using StringType = CppFeatures_StringType; |
224 | | static constexpr StringType STRING_TYPE_UNKNOWN = CppFeatures_StringType_STRING_TYPE_UNKNOWN; |
225 | | static constexpr StringType VIEW = CppFeatures_StringType_VIEW; |
226 | | static constexpr StringType CORD = CppFeatures_StringType_CORD; |
227 | | static constexpr StringType STRING = CppFeatures_StringType_STRING; |
228 | 0 | static inline bool StringType_IsValid(int value) { |
229 | 0 | return CppFeatures_StringType_IsValid(value); |
230 | 0 | } |
231 | | static constexpr StringType StringType_MIN = CppFeatures_StringType_StringType_MIN; |
232 | | static constexpr StringType StringType_MAX = CppFeatures_StringType_StringType_MAX; |
233 | | static constexpr int StringType_ARRAYSIZE = CppFeatures_StringType_StringType_ARRAYSIZE; |
234 | 0 | static inline const ::google::protobuf::EnumDescriptor* StringType_descriptor() { |
235 | 0 | return CppFeatures_StringType_descriptor(); |
236 | 0 | } |
237 | | template <typename T> |
238 | | static inline const std::string& StringType_Name(T value) { |
239 | | return CppFeatures_StringType_Name(value); |
240 | | } |
241 | 0 | static inline bool StringType_Parse(absl::string_view name, StringType* value) { |
242 | 0 | return CppFeatures_StringType_Parse(name, value); |
243 | 0 | } |
244 | | |
245 | | // accessors ------------------------------------------------------- |
246 | | enum : int { |
247 | | kLegacyClosedEnumFieldNumber = 1, |
248 | | kStringTypeFieldNumber = 2, |
249 | | }; |
250 | | // optional bool legacy_closed_enum = 1 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { |
251 | | bool has_legacy_closed_enum() const; |
252 | | void clear_legacy_closed_enum() ; |
253 | | bool legacy_closed_enum() const; |
254 | | void set_legacy_closed_enum(bool value); |
255 | | |
256 | | private: |
257 | | bool _internal_legacy_closed_enum() const; |
258 | | void _internal_set_legacy_closed_enum(bool value); |
259 | | |
260 | | public: |
261 | | // optional .pb.CppFeatures.StringType string_type = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { |
262 | | bool has_string_type() const; |
263 | | void clear_string_type() ; |
264 | | ::pb::CppFeatures_StringType string_type() const; |
265 | | void set_string_type(::pb::CppFeatures_StringType value); |
266 | | |
267 | | private: |
268 | | ::pb::CppFeatures_StringType _internal_string_type() const; |
269 | | void _internal_set_string_type(::pb::CppFeatures_StringType value); |
270 | | |
271 | | public: |
272 | | // @@protoc_insertion_point(class_scope:pb.CppFeatures) |
273 | | private: |
274 | | class _Internal; |
275 | | friend class ::google::protobuf::internal::TcParser; |
276 | | static const ::google::protobuf::internal::TcParseTable< |
277 | | 1, 2, 1, |
278 | | 0, 2> |
279 | | _table_; |
280 | | |
281 | | static constexpr const void* _raw_default_instance_ = |
282 | | &_CppFeatures_default_instance_; |
283 | | |
284 | | friend class ::google::protobuf::MessageLite; |
285 | | friend class ::google::protobuf::Arena; |
286 | | template <typename T> |
287 | | friend class ::google::protobuf::Arena::InternalHelper; |
288 | | using InternalArenaConstructable_ = void; |
289 | | using DestructorSkippable_ = void; |
290 | | struct Impl_ { |
291 | | inline explicit constexpr Impl_( |
292 | | ::google::protobuf::internal::ConstantInitialized) noexcept; |
293 | | inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, |
294 | | ::google::protobuf::Arena* arena); |
295 | | inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, |
296 | | ::google::protobuf::Arena* arena, const Impl_& from, |
297 | | const CppFeatures& from_msg); |
298 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
299 | | mutable ::google::protobuf::internal::CachedSize _cached_size_; |
300 | | bool legacy_closed_enum_; |
301 | | int string_type_; |
302 | | PROTOBUF_TSAN_DECLARE_MEMBER |
303 | | }; |
304 | | union { Impl_ _impl_; }; |
305 | | friend struct ::TableStruct_google_2fprotobuf_2fcpp_5ffeatures_2eproto; |
306 | | }; |
307 | | |
308 | | // =================================================================== |
309 | | |
310 | | |
311 | | |
312 | | static const int kCppFieldNumber = 1000; |
313 | | PROTOBUF_EXPORT extern ::google::protobuf::internal::ExtensionIdentifier< |
314 | | ::google::protobuf::FeatureSet, ::google::protobuf::internal::MessageTypeTraits< ::pb::CppFeatures >, 11, |
315 | | false> |
316 | | cpp; |
317 | | |
318 | | // =================================================================== |
319 | | |
320 | | |
321 | | #ifdef __GNUC__ |
322 | | #pragma GCC diagnostic push |
323 | | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
324 | | #endif // __GNUC__ |
325 | | // ------------------------------------------------------------------- |
326 | | |
327 | | // CppFeatures |
328 | | |
329 | | // optional bool legacy_closed_enum = 1 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { |
330 | 0 | inline bool CppFeatures::has_legacy_closed_enum() const { |
331 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
332 | 0 | return value; |
333 | 0 | } |
334 | 0 | inline void CppFeatures::clear_legacy_closed_enum() { |
335 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
336 | 0 | _impl_.legacy_closed_enum_ = false; |
337 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
338 | 0 | } |
339 | 0 | inline bool CppFeatures::legacy_closed_enum() const { |
340 | | // @@protoc_insertion_point(field_get:pb.CppFeatures.legacy_closed_enum) |
341 | 0 | return _internal_legacy_closed_enum(); |
342 | 0 | } |
343 | 0 | inline void CppFeatures::set_legacy_closed_enum(bool value) { |
344 | 0 | _internal_set_legacy_closed_enum(value); |
345 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
346 | 0 | // @@protoc_insertion_point(field_set:pb.CppFeatures.legacy_closed_enum) |
347 | 0 | } |
348 | 9 | inline bool CppFeatures::_internal_legacy_closed_enum() const { |
349 | 9 | ::google::protobuf::internal::TSanRead(&_impl_); |
350 | 9 | return _impl_.legacy_closed_enum_; |
351 | 9 | } |
352 | 0 | inline void CppFeatures::_internal_set_legacy_closed_enum(bool value) { |
353 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
354 | 0 | _impl_.legacy_closed_enum_ = value; |
355 | 0 | } |
356 | | |
357 | | // optional .pb.CppFeatures.StringType string_type = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { |
358 | 0 | inline bool CppFeatures::has_string_type() const { |
359 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
360 | 0 | return value; |
361 | 0 | } |
362 | 0 | inline void CppFeatures::clear_string_type() { |
363 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
364 | 0 | _impl_.string_type_ = 0; |
365 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
366 | 0 | } |
367 | 0 | inline ::pb::CppFeatures_StringType CppFeatures::string_type() const { |
368 | 0 | // @@protoc_insertion_point(field_get:pb.CppFeatures.string_type) |
369 | 0 | return _internal_string_type(); |
370 | 0 | } |
371 | 0 | inline void CppFeatures::set_string_type(::pb::CppFeatures_StringType value) { |
372 | 0 | _internal_set_string_type(value); |
373 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
374 | 0 | // @@protoc_insertion_point(field_set:pb.CppFeatures.string_type) |
375 | 0 | } |
376 | 18 | inline ::pb::CppFeatures_StringType CppFeatures::_internal_string_type() const { |
377 | 18 | ::google::protobuf::internal::TSanRead(&_impl_); |
378 | 18 | return static_cast<::pb::CppFeatures_StringType>(_impl_.string_type_); |
379 | 18 | } |
380 | 0 | inline void CppFeatures::_internal_set_string_type(::pb::CppFeatures_StringType value) { |
381 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
382 | 0 | assert(::pb::CppFeatures_StringType_IsValid(value)); |
383 | 0 | _impl_.string_type_ = value; |
384 | 0 | } |
385 | | |
386 | | #ifdef __GNUC__ |
387 | | #pragma GCC diagnostic pop |
388 | | #endif // __GNUC__ |
389 | | |
390 | | // @@protoc_insertion_point(namespace_scope) |
391 | | } // namespace pb |
392 | | |
393 | | |
394 | | namespace google { |
395 | | namespace protobuf { |
396 | | |
397 | | template <> |
398 | | struct is_proto_enum<::pb::CppFeatures_StringType> : std::true_type {}; |
399 | | template <> |
400 | 0 | inline const EnumDescriptor* GetEnumDescriptor<::pb::CppFeatures_StringType>() { |
401 | 0 | return ::pb::CppFeatures_StringType_descriptor(); |
402 | 0 | } |
403 | | |
404 | | } // namespace protobuf |
405 | | } // namespace google |
406 | | |
407 | | // @@protoc_insertion_point(global_scope) |
408 | | |
409 | | #include "google/protobuf/port_undef.inc" |
410 | | |
411 | | #endif // GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fcpp_5ffeatures_2eproto_2epb_2eh |