Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-31 10:12:06

0001 // Generated by the protocol buffer compiler.  DO NOT EDIT!
0002 // NO CHECKED-IN PROTOBUF GENCODE
0003 // source: google/protobuf/cpp_features.proto
0004 // Protobuf C++ Version: 5.28.2
0005 
0006 #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fcpp_5ffeatures_2eproto_2epb_2eh
0007 #define GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fcpp_5ffeatures_2eproto_2epb_2eh
0008 
0009 #include <limits>
0010 #include <string>
0011 #include <type_traits>
0012 #include <utility>
0013 
0014 #include "google/protobuf/runtime_version.h"
0015 #if PROTOBUF_VERSION != 5028002
0016 #error "Protobuf C++ gencode is built with an incompatible version of"
0017 #error "Protobuf C++ headers/runtime. See"
0018 #error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp"
0019 #endif
0020 #include "google/protobuf/io/coded_stream.h"
0021 #include "google/protobuf/arena.h"
0022 #include "google/protobuf/arenastring.h"
0023 #include "google/protobuf/generated_message_tctable_decl.h"
0024 #include "google/protobuf/generated_message_util.h"
0025 #include "google/protobuf/metadata_lite.h"
0026 #include "google/protobuf/generated_message_reflection.h"
0027 #include "google/protobuf/message.h"
0028 #include "google/protobuf/repeated_field.h"  // IWYU pragma: export
0029 #include "google/protobuf/extension_set.h"  // IWYU pragma: export
0030 #include "google/protobuf/generated_enum_reflection.h"
0031 #include "google/protobuf/unknown_field_set.h"
0032 #include "google/protobuf/descriptor.pb.h"
0033 // @@protoc_insertion_point(includes)
0034 
0035 // Must be included last.
0036 #include "google/protobuf/port_def.inc"
0037 
0038 #define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fcpp_5ffeatures_2eproto PROTOBUF_EXPORT
0039 
0040 namespace google {
0041 namespace protobuf {
0042 namespace internal {
0043 class AnyMetadata;
0044 }  // namespace internal
0045 }  // namespace protobuf
0046 }  // namespace google
0047 
0048 // Internal implementation detail -- do not use these members.
0049 struct PROTOBUF_EXPORT TableStruct_google_2fprotobuf_2fcpp_5ffeatures_2eproto {
0050   static const ::uint32_t offsets[];
0051 };
0052 PROTOBUF_EXPORT extern const ::google::protobuf::internal::DescriptorTable
0053     descriptor_table_google_2fprotobuf_2fcpp_5ffeatures_2eproto;
0054 namespace pb {
0055 class CppFeatures;
0056 struct CppFeaturesDefaultTypeInternal;
0057 PROTOBUF_EXPORT extern CppFeaturesDefaultTypeInternal _CppFeatures_default_instance_;
0058 }  // namespace pb
0059 namespace google {
0060 namespace protobuf {
0061 }  // namespace protobuf
0062 }  // namespace google
0063 
0064 namespace pb {
0065 enum CppFeatures_StringType : int {
0066   CppFeatures_StringType_STRING_TYPE_UNKNOWN = 0,
0067   CppFeatures_StringType_VIEW = 1,
0068   CppFeatures_StringType_CORD = 2,
0069   CppFeatures_StringType_STRING = 3,
0070 };
0071 
0072 PROTOBUF_EXPORT bool CppFeatures_StringType_IsValid(int value);
0073 PROTOBUF_EXPORT extern const uint32_t CppFeatures_StringType_internal_data_[];
0074 constexpr CppFeatures_StringType CppFeatures_StringType_StringType_MIN = static_cast<CppFeatures_StringType>(0);
0075 constexpr CppFeatures_StringType CppFeatures_StringType_StringType_MAX = static_cast<CppFeatures_StringType>(3);
0076 constexpr int CppFeatures_StringType_StringType_ARRAYSIZE = 3 + 1;
0077 PROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor*
0078 CppFeatures_StringType_descriptor();
0079 template <typename T>
0080 const std::string& CppFeatures_StringType_Name(T value) {
0081   static_assert(std::is_same<T, CppFeatures_StringType>::value ||
0082                     std::is_integral<T>::value,
0083                 "Incorrect type passed to StringType_Name().");
0084   return CppFeatures_StringType_Name(static_cast<CppFeatures_StringType>(value));
0085 }
0086 template <>
0087 inline const std::string& CppFeatures_StringType_Name(CppFeatures_StringType value) {
0088   return ::google::protobuf::internal::NameOfDenseEnum<CppFeatures_StringType_descriptor,
0089                                                  0, 3>(
0090       static_cast<int>(value));
0091 }
0092 inline bool CppFeatures_StringType_Parse(absl::string_view name, CppFeatures_StringType* value) {
0093   return ::google::protobuf::internal::ParseNamedEnum<CppFeatures_StringType>(
0094       CppFeatures_StringType_descriptor(), name, value);
0095 }
0096 
0097 // ===================================================================
0098 
0099 
0100 // -------------------------------------------------------------------
0101 
0102 class PROTOBUF_EXPORT CppFeatures final : public ::google::protobuf::Message
0103 /* @@protoc_insertion_point(class_definition:pb.CppFeatures) */ {
0104  public:
0105   inline CppFeatures() : CppFeatures(nullptr) {}
0106   ~CppFeatures() PROTOBUF_FINAL;
0107   template <typename = void>
0108   explicit PROTOBUF_CONSTEXPR CppFeatures(
0109       ::google::protobuf::internal::ConstantInitialized);
0110 
0111   inline CppFeatures(const CppFeatures& from) : CppFeatures(nullptr, from) {}
0112   inline CppFeatures(CppFeatures&& from) noexcept
0113       : CppFeatures(nullptr, std::move(from)) {}
0114   inline CppFeatures& operator=(const CppFeatures& from) {
0115     CopyFrom(from);
0116     return *this;
0117   }
0118   inline CppFeatures& operator=(CppFeatures&& from) noexcept {
0119     if (this == &from) return *this;
0120     if (GetArena() == from.GetArena()
0121 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
0122         && GetArena() != nullptr
0123 #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
0124     ) {
0125       InternalSwap(&from);
0126     } else {
0127       CopyFrom(from);
0128     }
0129     return *this;
0130   }
0131 
0132   inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
0133       ABSL_ATTRIBUTE_LIFETIME_BOUND {
0134     return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
0135   }
0136   inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
0137       ABSL_ATTRIBUTE_LIFETIME_BOUND {
0138     return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
0139   }
0140 
0141   static const ::google::protobuf::Descriptor* descriptor() {
0142     return GetDescriptor();
0143   }
0144   static const ::google::protobuf::Descriptor* GetDescriptor() {
0145     return default_instance().GetMetadata().descriptor;
0146   }
0147   static const ::google::protobuf::Reflection* GetReflection() {
0148     return default_instance().GetMetadata().reflection;
0149   }
0150   static const CppFeatures& default_instance() {
0151     return *internal_default_instance();
0152   }
0153   static inline const CppFeatures* internal_default_instance() {
0154     return reinterpret_cast<const CppFeatures*>(
0155         &_CppFeatures_default_instance_);
0156   }
0157   static constexpr int kIndexInFileMessages = 0;
0158   friend void swap(CppFeatures& a, CppFeatures& b) { a.Swap(&b); }
0159   inline void Swap(CppFeatures* other) {
0160     if (other == this) return;
0161 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
0162     if (GetArena() != nullptr && GetArena() == other->GetArena()) {
0163 #else   // PROTOBUF_FORCE_COPY_IN_SWAP
0164     if (GetArena() == other->GetArena()) {
0165 #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
0166       InternalSwap(other);
0167     } else {
0168       ::google::protobuf::internal::GenericSwap(this, other);
0169     }
0170   }
0171   void UnsafeArenaSwap(CppFeatures* other) {
0172     if (other == this) return;
0173     ABSL_DCHECK(GetArena() == other->GetArena());
0174     InternalSwap(other);
0175   }
0176 
0177   // implements Message ----------------------------------------------
0178 
0179   CppFeatures* New(::google::protobuf::Arena* arena = nullptr) const PROTOBUF_FINAL {
0180     return ::google::protobuf::Message::DefaultConstruct<CppFeatures>(arena);
0181   }
0182   using ::google::protobuf::Message::CopyFrom;
0183   void CopyFrom(const CppFeatures& from);
0184   using ::google::protobuf::Message::MergeFrom;
0185   void MergeFrom(const CppFeatures& from) { CppFeatures::MergeImpl(*this, from); }
0186 
0187   private:
0188   static void MergeImpl(
0189       ::google::protobuf::MessageLite& to_msg,
0190       const ::google::protobuf::MessageLite& from_msg);
0191 
0192   public:
0193   bool IsInitialized() const {
0194     return true;
0195   }
0196   ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
0197   #if defined(PROTOBUF_CUSTOM_VTABLE)
0198   private:
0199   static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
0200   static ::uint8_t* _InternalSerialize(
0201       const MessageLite& msg, ::uint8_t* target,
0202       ::google::protobuf::io::EpsCopyOutputStream* stream);
0203 
0204   public:
0205   ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
0206   ::uint8_t* _InternalSerialize(
0207       ::uint8_t* target,
0208       ::google::protobuf::io::EpsCopyOutputStream* stream) const {
0209     return _InternalSerialize(*this, target, stream);
0210   }
0211   #else   // PROTOBUF_CUSTOM_VTABLE
0212   ::size_t ByteSizeLong() const final;
0213   ::uint8_t* _InternalSerialize(
0214       ::uint8_t* target,
0215       ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
0216   #endif  // PROTOBUF_CUSTOM_VTABLE
0217   int GetCachedSize() const { return _impl_._cached_size_.Get(); }
0218 
0219   private:
0220   void SharedCtor(::google::protobuf::Arena* arena);
0221   void SharedDtor();
0222   void InternalSwap(CppFeatures* other);
0223  private:
0224   friend class ::google::protobuf::internal::AnyMetadata;
0225   static ::absl::string_view FullMessageName() { return "pb.CppFeatures"; }
0226 
0227  protected:
0228   explicit CppFeatures(::google::protobuf::Arena* arena);
0229   CppFeatures(::google::protobuf::Arena* arena, const CppFeatures& from);
0230   CppFeatures(::google::protobuf::Arena* arena, CppFeatures&& from) noexcept
0231       : CppFeatures(arena) {
0232     *this = ::std::move(from);
0233   }
0234   const ::google::protobuf::Message::ClassData* GetClassData() const PROTOBUF_FINAL;
0235   static const ::google::protobuf::Message::ClassDataFull _class_data_;
0236 
0237  public:
0238   ::google::protobuf::Metadata GetMetadata() const;
0239   // nested types ----------------------------------------------------
0240   using StringType = CppFeatures_StringType;
0241   static constexpr StringType STRING_TYPE_UNKNOWN = CppFeatures_StringType_STRING_TYPE_UNKNOWN;
0242   static constexpr StringType VIEW = CppFeatures_StringType_VIEW;
0243   static constexpr StringType CORD = CppFeatures_StringType_CORD;
0244   static constexpr StringType STRING = CppFeatures_StringType_STRING;
0245   static inline bool StringType_IsValid(int value) {
0246     return CppFeatures_StringType_IsValid(value);
0247   }
0248   static constexpr StringType StringType_MIN = CppFeatures_StringType_StringType_MIN;
0249   static constexpr StringType StringType_MAX = CppFeatures_StringType_StringType_MAX;
0250   static constexpr int StringType_ARRAYSIZE = CppFeatures_StringType_StringType_ARRAYSIZE;
0251   static inline const ::google::protobuf::EnumDescriptor* StringType_descriptor() {
0252     return CppFeatures_StringType_descriptor();
0253   }
0254   template <typename T>
0255   static inline const std::string& StringType_Name(T value) {
0256     return CppFeatures_StringType_Name(value);
0257   }
0258   static inline bool StringType_Parse(absl::string_view name, StringType* value) {
0259     return CppFeatures_StringType_Parse(name, value);
0260   }
0261 
0262   // accessors -------------------------------------------------------
0263   enum : int {
0264     kLegacyClosedEnumFieldNumber = 1,
0265     kStringTypeFieldNumber = 2,
0266   };
0267   // optional bool legacy_closed_enum = 1 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = {
0268   bool has_legacy_closed_enum() const;
0269   void clear_legacy_closed_enum() ;
0270   bool legacy_closed_enum() const;
0271   void set_legacy_closed_enum(bool value);
0272 
0273   private:
0274   bool _internal_legacy_closed_enum() const;
0275   void _internal_set_legacy_closed_enum(bool value);
0276 
0277   public:
0278   // optional .pb.CppFeatures.StringType string_type = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = {
0279   bool has_string_type() const;
0280   void clear_string_type() ;
0281   ::pb::CppFeatures_StringType string_type() const;
0282   void set_string_type(::pb::CppFeatures_StringType value);
0283 
0284   private:
0285   ::pb::CppFeatures_StringType _internal_string_type() const;
0286   void _internal_set_string_type(::pb::CppFeatures_StringType value);
0287 
0288   public:
0289   // @@protoc_insertion_point(class_scope:pb.CppFeatures)
0290  private:
0291   class _Internal;
0292   friend class ::google::protobuf::internal::TcParser;
0293   static const ::google::protobuf::internal::TcParseTable<
0294       1, 2, 1,
0295       0, 2>
0296       _table_;
0297 
0298 
0299   friend class ::google::protobuf::MessageLite;
0300   friend class ::google::protobuf::Arena;
0301   template <typename T>
0302   friend class ::google::protobuf::Arena::InternalHelper;
0303   using InternalArenaConstructable_ = void;
0304   using DestructorSkippable_ = void;
0305   struct Impl_ {
0306     inline explicit constexpr Impl_(
0307         ::google::protobuf::internal::ConstantInitialized) noexcept;
0308     inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
0309                           ::google::protobuf::Arena* arena);
0310     inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
0311                           ::google::protobuf::Arena* arena, const Impl_& from,
0312                           const CppFeatures& from_msg);
0313     ::google::protobuf::internal::HasBits<1> _has_bits_;
0314     mutable ::google::protobuf::internal::CachedSize _cached_size_;
0315     bool legacy_closed_enum_;
0316     int string_type_;
0317     PROTOBUF_TSAN_DECLARE_MEMBER
0318   };
0319   union { Impl_ _impl_; };
0320   friend struct ::TableStruct_google_2fprotobuf_2fcpp_5ffeatures_2eproto;
0321 };
0322 
0323 // ===================================================================
0324 
0325 
0326 
0327 static const int kCppFieldNumber = 1000;
0328 PROTOBUF_EXPORT extern ::google::protobuf::internal::ExtensionIdentifier<
0329     ::google::protobuf::FeatureSet, ::google::protobuf::internal::MessageTypeTraits< ::pb::CppFeatures >, 11,
0330     false>
0331     cpp;
0332 
0333 // ===================================================================
0334 
0335 
0336 #ifdef __GNUC__
0337 #pragma GCC diagnostic push
0338 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
0339 #endif  // __GNUC__
0340 // -------------------------------------------------------------------
0341 
0342 // CppFeatures
0343 
0344 // optional bool legacy_closed_enum = 1 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = {
0345 inline bool CppFeatures::has_legacy_closed_enum() const {
0346   bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
0347   return value;
0348 }
0349 inline void CppFeatures::clear_legacy_closed_enum() {
0350   ::google::protobuf::internal::TSanWrite(&_impl_);
0351   _impl_.legacy_closed_enum_ = false;
0352   _impl_._has_bits_[0] &= ~0x00000001u;
0353 }
0354 inline bool CppFeatures::legacy_closed_enum() const {
0355   // @@protoc_insertion_point(field_get:pb.CppFeatures.legacy_closed_enum)
0356   return _internal_legacy_closed_enum();
0357 }
0358 inline void CppFeatures::set_legacy_closed_enum(bool value) {
0359   _internal_set_legacy_closed_enum(value);
0360   _impl_._has_bits_[0] |= 0x00000001u;
0361   // @@protoc_insertion_point(field_set:pb.CppFeatures.legacy_closed_enum)
0362 }
0363 inline bool CppFeatures::_internal_legacy_closed_enum() const {
0364   ::google::protobuf::internal::TSanRead(&_impl_);
0365   return _impl_.legacy_closed_enum_;
0366 }
0367 inline void CppFeatures::_internal_set_legacy_closed_enum(bool value) {
0368   ::google::protobuf::internal::TSanWrite(&_impl_);
0369   _impl_.legacy_closed_enum_ = value;
0370 }
0371 
0372 // optional .pb.CppFeatures.StringType string_type = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = {
0373 inline bool CppFeatures::has_string_type() const {
0374   bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
0375   return value;
0376 }
0377 inline void CppFeatures::clear_string_type() {
0378   ::google::protobuf::internal::TSanWrite(&_impl_);
0379   _impl_.string_type_ = 0;
0380   _impl_._has_bits_[0] &= ~0x00000002u;
0381 }
0382 inline ::pb::CppFeatures_StringType CppFeatures::string_type() const {
0383   // @@protoc_insertion_point(field_get:pb.CppFeatures.string_type)
0384   return _internal_string_type();
0385 }
0386 inline void CppFeatures::set_string_type(::pb::CppFeatures_StringType value) {
0387   _internal_set_string_type(value);
0388   _impl_._has_bits_[0] |= 0x00000002u;
0389   // @@protoc_insertion_point(field_set:pb.CppFeatures.string_type)
0390 }
0391 inline ::pb::CppFeatures_StringType CppFeatures::_internal_string_type() const {
0392   ::google::protobuf::internal::TSanRead(&_impl_);
0393   return static_cast<::pb::CppFeatures_StringType>(_impl_.string_type_);
0394 }
0395 inline void CppFeatures::_internal_set_string_type(::pb::CppFeatures_StringType value) {
0396   ::google::protobuf::internal::TSanWrite(&_impl_);
0397   assert(::pb::CppFeatures_StringType_IsValid(value));
0398   _impl_.string_type_ = value;
0399 }
0400 
0401 #ifdef __GNUC__
0402 #pragma GCC diagnostic pop
0403 #endif  // __GNUC__
0404 
0405 // @@protoc_insertion_point(namespace_scope)
0406 }  // namespace pb
0407 
0408 
0409 namespace google {
0410 namespace protobuf {
0411 
0412 template <>
0413 struct is_proto_enum<::pb::CppFeatures_StringType> : std::true_type {};
0414 template <>
0415 inline const EnumDescriptor* GetEnumDescriptor<::pb::CppFeatures_StringType>() {
0416   return ::pb::CppFeatures_StringType_descriptor();
0417 }
0418 
0419 }  // namespace protobuf
0420 }  // namespace google
0421 
0422 // @@protoc_insertion_point(global_scope)
0423 
0424 #include "google/protobuf/port_undef.inc"
0425 
0426 #endif  // GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fcpp_5ffeatures_2eproto_2epb_2eh