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