Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-31 10:11:59

0001 // Generated by the protocol buffer compiler.  DO NOT EDIT!
0002 // NO CHECKED-IN PROTOBUF GENCODE
0003 // source: google/protobuf/compiler/java/java_features.proto
0004 // Protobuf C++ Version: 5.28.2
0005 
0006 #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fcompiler_2fjava_2fjava_5ffeatures_2eproto_2epb_2eh
0007 #define GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fcompiler_2fjava_2fjava_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_2fcompiler_2fjava_2fjava_5ffeatures_2eproto PROTOC_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 PROTOC_EXPORT TableStruct_google_2fprotobuf_2fcompiler_2fjava_2fjava_5ffeatures_2eproto {
0050   static const ::uint32_t offsets[];
0051 };
0052 PROTOC_EXPORT extern const ::google::protobuf::internal::DescriptorTable
0053     descriptor_table_google_2fprotobuf_2fcompiler_2fjava_2fjava_5ffeatures_2eproto;
0054 namespace pb {
0055 class JavaFeatures;
0056 struct JavaFeaturesDefaultTypeInternal;
0057 PROTOC_EXPORT extern JavaFeaturesDefaultTypeInternal _JavaFeatures_default_instance_;
0058 }  // namespace pb
0059 namespace google {
0060 namespace protobuf {
0061 }  // namespace protobuf
0062 }  // namespace google
0063 
0064 namespace pb {
0065 enum JavaFeatures_Utf8Validation : int {
0066   JavaFeatures_Utf8Validation_UTF8_VALIDATION_UNKNOWN = 0,
0067   JavaFeatures_Utf8Validation_DEFAULT = 1,
0068   JavaFeatures_Utf8Validation_VERIFY = 2,
0069 };
0070 
0071 PROTOC_EXPORT bool JavaFeatures_Utf8Validation_IsValid(int value);
0072 PROTOC_EXPORT extern const uint32_t JavaFeatures_Utf8Validation_internal_data_[];
0073 constexpr JavaFeatures_Utf8Validation JavaFeatures_Utf8Validation_Utf8Validation_MIN = static_cast<JavaFeatures_Utf8Validation>(0);
0074 constexpr JavaFeatures_Utf8Validation JavaFeatures_Utf8Validation_Utf8Validation_MAX = static_cast<JavaFeatures_Utf8Validation>(2);
0075 constexpr int JavaFeatures_Utf8Validation_Utf8Validation_ARRAYSIZE = 2 + 1;
0076 PROTOC_EXPORT const ::google::protobuf::EnumDescriptor*
0077 JavaFeatures_Utf8Validation_descriptor();
0078 template <typename T>
0079 const std::string& JavaFeatures_Utf8Validation_Name(T value) {
0080   static_assert(std::is_same<T, JavaFeatures_Utf8Validation>::value ||
0081                     std::is_integral<T>::value,
0082                 "Incorrect type passed to Utf8Validation_Name().");
0083   return JavaFeatures_Utf8Validation_Name(static_cast<JavaFeatures_Utf8Validation>(value));
0084 }
0085 template <>
0086 inline const std::string& JavaFeatures_Utf8Validation_Name(JavaFeatures_Utf8Validation value) {
0087   return ::google::protobuf::internal::NameOfDenseEnum<JavaFeatures_Utf8Validation_descriptor,
0088                                                  0, 2>(
0089       static_cast<int>(value));
0090 }
0091 inline bool JavaFeatures_Utf8Validation_Parse(absl::string_view name, JavaFeatures_Utf8Validation* value) {
0092   return ::google::protobuf::internal::ParseNamedEnum<JavaFeatures_Utf8Validation>(
0093       JavaFeatures_Utf8Validation_descriptor(), name, value);
0094 }
0095 
0096 // ===================================================================
0097 
0098 
0099 // -------------------------------------------------------------------
0100 
0101 class PROTOC_EXPORT JavaFeatures final : public ::google::protobuf::Message
0102 /* @@protoc_insertion_point(class_definition:pb.JavaFeatures) */ {
0103  public:
0104   inline JavaFeatures() : JavaFeatures(nullptr) {}
0105   ~JavaFeatures() PROTOBUF_FINAL;
0106   template <typename = void>
0107   explicit PROTOBUF_CONSTEXPR JavaFeatures(
0108       ::google::protobuf::internal::ConstantInitialized);
0109 
0110   inline JavaFeatures(const JavaFeatures& from) : JavaFeatures(nullptr, from) {}
0111   inline JavaFeatures(JavaFeatures&& from) noexcept
0112       : JavaFeatures(nullptr, std::move(from)) {}
0113   inline JavaFeatures& operator=(const JavaFeatures& from) {
0114     CopyFrom(from);
0115     return *this;
0116   }
0117   inline JavaFeatures& operator=(JavaFeatures&& from) noexcept {
0118     if (this == &from) return *this;
0119     if (GetArena() == from.GetArena()
0120 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
0121         && GetArena() != nullptr
0122 #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
0123     ) {
0124       InternalSwap(&from);
0125     } else {
0126       CopyFrom(from);
0127     }
0128     return *this;
0129   }
0130 
0131   inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
0132       ABSL_ATTRIBUTE_LIFETIME_BOUND {
0133     return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
0134   }
0135   inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
0136       ABSL_ATTRIBUTE_LIFETIME_BOUND {
0137     return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
0138   }
0139 
0140   static const ::google::protobuf::Descriptor* descriptor() {
0141     return GetDescriptor();
0142   }
0143   static const ::google::protobuf::Descriptor* GetDescriptor() {
0144     return default_instance().GetMetadata().descriptor;
0145   }
0146   static const ::google::protobuf::Reflection* GetReflection() {
0147     return default_instance().GetMetadata().reflection;
0148   }
0149   static const JavaFeatures& default_instance() {
0150     return *internal_default_instance();
0151   }
0152   static inline const JavaFeatures* internal_default_instance() {
0153     return reinterpret_cast<const JavaFeatures*>(
0154         &_JavaFeatures_default_instance_);
0155   }
0156   static constexpr int kIndexInFileMessages = 0;
0157   friend void swap(JavaFeatures& a, JavaFeatures& b) { a.Swap(&b); }
0158   inline void Swap(JavaFeatures* other) {
0159     if (other == this) return;
0160 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
0161     if (GetArena() != nullptr && GetArena() == other->GetArena()) {
0162 #else   // PROTOBUF_FORCE_COPY_IN_SWAP
0163     if (GetArena() == other->GetArena()) {
0164 #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
0165       InternalSwap(other);
0166     } else {
0167       ::google::protobuf::internal::GenericSwap(this, other);
0168     }
0169   }
0170   void UnsafeArenaSwap(JavaFeatures* other) {
0171     if (other == this) return;
0172     ABSL_DCHECK(GetArena() == other->GetArena());
0173     InternalSwap(other);
0174   }
0175 
0176   // implements Message ----------------------------------------------
0177 
0178   JavaFeatures* New(::google::protobuf::Arena* arena = nullptr) const PROTOBUF_FINAL {
0179     return ::google::protobuf::Message::DefaultConstruct<JavaFeatures>(arena);
0180   }
0181   using ::google::protobuf::Message::CopyFrom;
0182   void CopyFrom(const JavaFeatures& from);
0183   using ::google::protobuf::Message::MergeFrom;
0184   void MergeFrom(const JavaFeatures& from) { JavaFeatures::MergeImpl(*this, from); }
0185 
0186   private:
0187   static void MergeImpl(
0188       ::google::protobuf::MessageLite& to_msg,
0189       const ::google::protobuf::MessageLite& from_msg);
0190 
0191   public:
0192   bool IsInitialized() const {
0193     return true;
0194   }
0195   ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
0196   #if defined(PROTOBUF_CUSTOM_VTABLE)
0197   private:
0198   static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
0199   static ::uint8_t* _InternalSerialize(
0200       const MessageLite& msg, ::uint8_t* target,
0201       ::google::protobuf::io::EpsCopyOutputStream* stream);
0202 
0203   public:
0204   ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
0205   ::uint8_t* _InternalSerialize(
0206       ::uint8_t* target,
0207       ::google::protobuf::io::EpsCopyOutputStream* stream) const {
0208     return _InternalSerialize(*this, target, stream);
0209   }
0210   #else   // PROTOBUF_CUSTOM_VTABLE
0211   ::size_t ByteSizeLong() const final;
0212   ::uint8_t* _InternalSerialize(
0213       ::uint8_t* target,
0214       ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
0215   #endif  // PROTOBUF_CUSTOM_VTABLE
0216   int GetCachedSize() const { return _impl_._cached_size_.Get(); }
0217 
0218   private:
0219   void SharedCtor(::google::protobuf::Arena* arena);
0220   void SharedDtor();
0221   void InternalSwap(JavaFeatures* other);
0222  private:
0223   friend class ::google::protobuf::internal::AnyMetadata;
0224   static ::absl::string_view FullMessageName() { return "pb.JavaFeatures"; }
0225 
0226  protected:
0227   explicit JavaFeatures(::google::protobuf::Arena* arena);
0228   JavaFeatures(::google::protobuf::Arena* arena, const JavaFeatures& from);
0229   JavaFeatures(::google::protobuf::Arena* arena, JavaFeatures&& from) noexcept
0230       : JavaFeatures(arena) {
0231     *this = ::std::move(from);
0232   }
0233   const ::google::protobuf::Message::ClassData* GetClassData() const PROTOBUF_FINAL;
0234   static const ::google::protobuf::Message::ClassDataFull _class_data_;
0235 
0236  public:
0237   ::google::protobuf::Metadata GetMetadata() const;
0238   // nested types ----------------------------------------------------
0239   using Utf8Validation = JavaFeatures_Utf8Validation;
0240   static constexpr Utf8Validation UTF8_VALIDATION_UNKNOWN = JavaFeatures_Utf8Validation_UTF8_VALIDATION_UNKNOWN;
0241   static constexpr Utf8Validation DEFAULT = JavaFeatures_Utf8Validation_DEFAULT;
0242   static constexpr Utf8Validation VERIFY = JavaFeatures_Utf8Validation_VERIFY;
0243   static inline bool Utf8Validation_IsValid(int value) {
0244     return JavaFeatures_Utf8Validation_IsValid(value);
0245   }
0246   static constexpr Utf8Validation Utf8Validation_MIN = JavaFeatures_Utf8Validation_Utf8Validation_MIN;
0247   static constexpr Utf8Validation Utf8Validation_MAX = JavaFeatures_Utf8Validation_Utf8Validation_MAX;
0248   static constexpr int Utf8Validation_ARRAYSIZE = JavaFeatures_Utf8Validation_Utf8Validation_ARRAYSIZE;
0249   static inline const ::google::protobuf::EnumDescriptor* Utf8Validation_descriptor() {
0250     return JavaFeatures_Utf8Validation_descriptor();
0251   }
0252   template <typename T>
0253   static inline const std::string& Utf8Validation_Name(T value) {
0254     return JavaFeatures_Utf8Validation_Name(value);
0255   }
0256   static inline bool Utf8Validation_Parse(absl::string_view name, Utf8Validation* value) {
0257     return JavaFeatures_Utf8Validation_Parse(name, value);
0258   }
0259 
0260   // accessors -------------------------------------------------------
0261   enum : int {
0262     kLegacyClosedEnumFieldNumber = 1,
0263     kUtf8ValidationFieldNumber = 2,
0264   };
0265   // optional bool legacy_closed_enum = 1 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = {
0266   bool has_legacy_closed_enum() const;
0267   void clear_legacy_closed_enum() ;
0268   bool legacy_closed_enum() const;
0269   void set_legacy_closed_enum(bool value);
0270 
0271   private:
0272   bool _internal_legacy_closed_enum() const;
0273   void _internal_set_legacy_closed_enum(bool value);
0274 
0275   public:
0276   // optional .pb.JavaFeatures.Utf8Validation utf8_validation = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = {
0277   bool has_utf8_validation() const;
0278   void clear_utf8_validation() ;
0279   ::pb::JavaFeatures_Utf8Validation utf8_validation() const;
0280   void set_utf8_validation(::pb::JavaFeatures_Utf8Validation value);
0281 
0282   private:
0283   ::pb::JavaFeatures_Utf8Validation _internal_utf8_validation() const;
0284   void _internal_set_utf8_validation(::pb::JavaFeatures_Utf8Validation value);
0285 
0286   public:
0287   // @@protoc_insertion_point(class_scope:pb.JavaFeatures)
0288  private:
0289   class _Internal;
0290   friend class ::google::protobuf::internal::TcParser;
0291   static const ::google::protobuf::internal::TcParseTable<
0292       1, 2, 1,
0293       0, 2>
0294       _table_;
0295 
0296 
0297   friend class ::google::protobuf::MessageLite;
0298   friend class ::google::protobuf::Arena;
0299   template <typename T>
0300   friend class ::google::protobuf::Arena::InternalHelper;
0301   using InternalArenaConstructable_ = void;
0302   using DestructorSkippable_ = void;
0303   struct Impl_ {
0304     inline explicit constexpr Impl_(
0305         ::google::protobuf::internal::ConstantInitialized) noexcept;
0306     inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
0307                           ::google::protobuf::Arena* arena);
0308     inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
0309                           ::google::protobuf::Arena* arena, const Impl_& from,
0310                           const JavaFeatures& from_msg);
0311     ::google::protobuf::internal::HasBits<1> _has_bits_;
0312     mutable ::google::protobuf::internal::CachedSize _cached_size_;
0313     bool legacy_closed_enum_;
0314     int utf8_validation_;
0315     PROTOBUF_TSAN_DECLARE_MEMBER
0316   };
0317   union { Impl_ _impl_; };
0318   friend struct ::TableStruct_google_2fprotobuf_2fcompiler_2fjava_2fjava_5ffeatures_2eproto;
0319 };
0320 
0321 // ===================================================================
0322 
0323 
0324 
0325 static const int kJavaFieldNumber = 1001;
0326 PROTOC_EXPORT extern ::google::protobuf::internal::ExtensionIdentifier<
0327     ::google::protobuf::FeatureSet, ::google::protobuf::internal::MessageTypeTraits< ::pb::JavaFeatures >, 11,
0328     false>
0329     java;
0330 
0331 // ===================================================================
0332 
0333 
0334 #ifdef __GNUC__
0335 #pragma GCC diagnostic push
0336 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
0337 #endif  // __GNUC__
0338 // -------------------------------------------------------------------
0339 
0340 // JavaFeatures
0341 
0342 // optional bool legacy_closed_enum = 1 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = {
0343 inline bool JavaFeatures::has_legacy_closed_enum() const {
0344   bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
0345   return value;
0346 }
0347 inline void JavaFeatures::clear_legacy_closed_enum() {
0348   ::google::protobuf::internal::TSanWrite(&_impl_);
0349   _impl_.legacy_closed_enum_ = false;
0350   _impl_._has_bits_[0] &= ~0x00000001u;
0351 }
0352 inline bool JavaFeatures::legacy_closed_enum() const {
0353   // @@protoc_insertion_point(field_get:pb.JavaFeatures.legacy_closed_enum)
0354   return _internal_legacy_closed_enum();
0355 }
0356 inline void JavaFeatures::set_legacy_closed_enum(bool value) {
0357   _internal_set_legacy_closed_enum(value);
0358   _impl_._has_bits_[0] |= 0x00000001u;
0359   // @@protoc_insertion_point(field_set:pb.JavaFeatures.legacy_closed_enum)
0360 }
0361 inline bool JavaFeatures::_internal_legacy_closed_enum() const {
0362   ::google::protobuf::internal::TSanRead(&_impl_);
0363   return _impl_.legacy_closed_enum_;
0364 }
0365 inline void JavaFeatures::_internal_set_legacy_closed_enum(bool value) {
0366   ::google::protobuf::internal::TSanWrite(&_impl_);
0367   _impl_.legacy_closed_enum_ = value;
0368 }
0369 
0370 // optional .pb.JavaFeatures.Utf8Validation utf8_validation = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = {
0371 inline bool JavaFeatures::has_utf8_validation() const {
0372   bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
0373   return value;
0374 }
0375 inline void JavaFeatures::clear_utf8_validation() {
0376   ::google::protobuf::internal::TSanWrite(&_impl_);
0377   _impl_.utf8_validation_ = 0;
0378   _impl_._has_bits_[0] &= ~0x00000002u;
0379 }
0380 inline ::pb::JavaFeatures_Utf8Validation JavaFeatures::utf8_validation() const {
0381   // @@protoc_insertion_point(field_get:pb.JavaFeatures.utf8_validation)
0382   return _internal_utf8_validation();
0383 }
0384 inline void JavaFeatures::set_utf8_validation(::pb::JavaFeatures_Utf8Validation value) {
0385   _internal_set_utf8_validation(value);
0386   _impl_._has_bits_[0] |= 0x00000002u;
0387   // @@protoc_insertion_point(field_set:pb.JavaFeatures.utf8_validation)
0388 }
0389 inline ::pb::JavaFeatures_Utf8Validation JavaFeatures::_internal_utf8_validation() const {
0390   ::google::protobuf::internal::TSanRead(&_impl_);
0391   return static_cast<::pb::JavaFeatures_Utf8Validation>(_impl_.utf8_validation_);
0392 }
0393 inline void JavaFeatures::_internal_set_utf8_validation(::pb::JavaFeatures_Utf8Validation value) {
0394   ::google::protobuf::internal::TSanWrite(&_impl_);
0395   assert(::pb::JavaFeatures_Utf8Validation_IsValid(value));
0396   _impl_.utf8_validation_ = value;
0397 }
0398 
0399 #ifdef __GNUC__
0400 #pragma GCC diagnostic pop
0401 #endif  // __GNUC__
0402 
0403 // @@protoc_insertion_point(namespace_scope)
0404 }  // namespace pb
0405 
0406 
0407 namespace google {
0408 namespace protobuf {
0409 
0410 template <>
0411 struct is_proto_enum<::pb::JavaFeatures_Utf8Validation> : std::true_type {};
0412 template <>
0413 inline const EnumDescriptor* GetEnumDescriptor<::pb::JavaFeatures_Utf8Validation>() {
0414   return ::pb::JavaFeatures_Utf8Validation_descriptor();
0415 }
0416 
0417 }  // namespace protobuf
0418 }  // namespace google
0419 
0420 // @@protoc_insertion_point(global_scope)
0421 
0422 #include "google/protobuf/port_undef.inc"
0423 
0424 #endif  // GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fcompiler_2fjava_2fjava_5ffeatures_2eproto_2epb_2eh