• 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/compiler/java/java_features.proto
4 // Protobuf C++ Version: 5.29.4
5 
6 #ifndef google_2fprotobuf_2fcompiler_2fjava_2fjava_5ffeatures_2eproto_2epb_2eh
7 #define google_2fprotobuf_2fcompiler_2fjava_2fjava_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_2fcompiler_2fjava_2fjava_5ffeatures_2eproto PROTOC_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 PROTOC_EXPORT TableStruct_google_2fprotobuf_2fcompiler_2fjava_2fjava_5ffeatures_2eproto {
52   static const ::uint32_t offsets[];
53 };
54 PROTOC_EXPORT extern const ::google::protobuf::internal::DescriptorTable
55     descriptor_table_google_2fprotobuf_2fcompiler_2fjava_2fjava_5ffeatures_2eproto;
56 namespace pb {
57 class JavaFeatures;
58 struct JavaFeaturesDefaultTypeInternal;
59 PROTOC_EXPORT extern JavaFeaturesDefaultTypeInternal _JavaFeatures_default_instance_;
60 }  // namespace pb
61 namespace google {
62 namespace protobuf {
63 }  // namespace protobuf
64 }  // namespace google
65 
66 namespace pb {
67 enum JavaFeatures_Utf8Validation : int {
68   JavaFeatures_Utf8Validation_UTF8_VALIDATION_UNKNOWN = 0,
69   JavaFeatures_Utf8Validation_DEFAULT = 1,
70   JavaFeatures_Utf8Validation_VERIFY = 2,
71 };
72 
73 PROTOC_EXPORT bool JavaFeatures_Utf8Validation_IsValid(int value);
74 PROTOC_EXPORT extern const uint32_t JavaFeatures_Utf8Validation_internal_data_[];
75 constexpr JavaFeatures_Utf8Validation JavaFeatures_Utf8Validation_Utf8Validation_MIN = static_cast<JavaFeatures_Utf8Validation>(0);
76 constexpr JavaFeatures_Utf8Validation JavaFeatures_Utf8Validation_Utf8Validation_MAX = static_cast<JavaFeatures_Utf8Validation>(2);
77 constexpr int JavaFeatures_Utf8Validation_Utf8Validation_ARRAYSIZE = 2 + 1;
78 PROTOC_EXPORT const ::google::protobuf::EnumDescriptor*
79 JavaFeatures_Utf8Validation_descriptor();
80 template <typename T>
JavaFeatures_Utf8Validation_Name(T value)81 const std::string& JavaFeatures_Utf8Validation_Name(T value) {
82   static_assert(std::is_same<T, JavaFeatures_Utf8Validation>::value ||
83                     std::is_integral<T>::value,
84                 "Incorrect type passed to Utf8Validation_Name().");
85   return JavaFeatures_Utf8Validation_Name(static_cast<JavaFeatures_Utf8Validation>(value));
86 }
87 template <>
JavaFeatures_Utf8Validation_Name(JavaFeatures_Utf8Validation value)88 inline const std::string& JavaFeatures_Utf8Validation_Name(JavaFeatures_Utf8Validation value) {
89   return ::google::protobuf::internal::NameOfDenseEnum<JavaFeatures_Utf8Validation_descriptor,
90                                                  0, 2>(
91       static_cast<int>(value));
92 }
JavaFeatures_Utf8Validation_Parse(absl::string_view name,JavaFeatures_Utf8Validation * value)93 inline bool JavaFeatures_Utf8Validation_Parse(absl::string_view name, JavaFeatures_Utf8Validation* value) {
94   return ::google::protobuf::internal::ParseNamedEnum<JavaFeatures_Utf8Validation>(
95       JavaFeatures_Utf8Validation_descriptor(), name, value);
96 }
97 
98 // ===================================================================
99 
100 
101 // -------------------------------------------------------------------
102 
103 class PROTOC_EXPORT JavaFeatures final : public ::google::protobuf::Message
104 /* @@protoc_insertion_point(class_definition:pb.JavaFeatures) */ {
105  public:
JavaFeatures()106   inline JavaFeatures() : JavaFeatures(nullptr) {}
107   ~JavaFeatures() PROTOBUF_FINAL;
108 
109 #if defined(PROTOBUF_CUSTOM_VTABLE)
delete(JavaFeatures * msg,std::destroying_delete_t)110   void operator delete(JavaFeatures* msg, std::destroying_delete_t) {
111     SharedDtor(*msg);
112     ::google::protobuf::internal::SizedDelete(msg, sizeof(JavaFeatures));
113   }
114 #endif
115 
116   template <typename = void>
117   explicit PROTOBUF_CONSTEXPR JavaFeatures(
118       ::google::protobuf::internal::ConstantInitialized);
119 
JavaFeatures(const JavaFeatures & from)120   inline JavaFeatures(const JavaFeatures& from) : JavaFeatures(nullptr, from) {}
JavaFeatures(JavaFeatures && from)121   inline JavaFeatures(JavaFeatures&& from) noexcept
122       : JavaFeatures(nullptr, std::move(from)) {}
123   inline JavaFeatures& operator=(const JavaFeatures& from) {
124     CopyFrom(from);
125     return *this;
126   }
127   inline JavaFeatures& operator=(JavaFeatures&& from) noexcept {
128     if (this == &from) return *this;
129     if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
130       InternalSwap(&from);
131     } else {
132       CopyFrom(from);
133     }
134     return *this;
135   }
136 
unknown_fields()137   inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
138       ABSL_ATTRIBUTE_LIFETIME_BOUND {
139     return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
140   }
mutable_unknown_fields()141   inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
142       ABSL_ATTRIBUTE_LIFETIME_BOUND {
143     return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
144   }
145 
descriptor()146   static const ::google::protobuf::Descriptor* descriptor() {
147     return GetDescriptor();
148   }
GetDescriptor()149   static const ::google::protobuf::Descriptor* GetDescriptor() {
150     return default_instance().GetMetadata().descriptor;
151   }
GetReflection()152   static const ::google::protobuf::Reflection* GetReflection() {
153     return default_instance().GetMetadata().reflection;
154   }
default_instance()155   static const JavaFeatures& default_instance() {
156     return *internal_default_instance();
157   }
internal_default_instance()158   static inline const JavaFeatures* internal_default_instance() {
159     return reinterpret_cast<const JavaFeatures*>(
160         &_JavaFeatures_default_instance_);
161   }
162   static constexpr int kIndexInFileMessages = 0;
swap(JavaFeatures & a,JavaFeatures & b)163   friend void swap(JavaFeatures& a, JavaFeatures& b) { a.Swap(&b); }
Swap(JavaFeatures * other)164   inline void Swap(JavaFeatures* other) {
165     if (other == this) return;
166     if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
167       InternalSwap(other);
168     } else {
169       ::google::protobuf::internal::GenericSwap(this, other);
170     }
171   }
UnsafeArenaSwap(JavaFeatures * other)172   void UnsafeArenaSwap(JavaFeatures* other) {
173     if (other == this) return;
174     ABSL_DCHECK(GetArena() == other->GetArena());
175     InternalSwap(other);
176   }
177 
178   // implements Message ----------------------------------------------
179 
180   JavaFeatures* New(::google::protobuf::Arena* arena = nullptr) const {
181     return ::google::protobuf::Message::DefaultConstruct<JavaFeatures>(arena);
182   }
183   using ::google::protobuf::Message::CopyFrom;
184   void CopyFrom(const JavaFeatures& from);
185   using ::google::protobuf::Message::MergeFrom;
MergeFrom(const JavaFeatures & from)186   void MergeFrom(const JavaFeatures& from) { JavaFeatures::MergeImpl(*this, from); }
187 
188   private:
189   static void MergeImpl(
190       ::google::protobuf::MessageLite& to_msg,
191       const ::google::protobuf::MessageLite& from_msg);
192 
193   public:
IsInitialized()194   bool IsInitialized() const {
195     return true;
196   }
197   ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
198   #if defined(PROTOBUF_CUSTOM_VTABLE)
199   private:
200   static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
201   static ::uint8_t* _InternalSerialize(
202       const MessageLite& msg, ::uint8_t* target,
203       ::google::protobuf::io::EpsCopyOutputStream* stream);
204 
205   public:
ByteSizeLong()206   ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
_InternalSerialize(::uint8_t * target,::google::protobuf::io::EpsCopyOutputStream * stream)207   ::uint8_t* _InternalSerialize(
208       ::uint8_t* target,
209       ::google::protobuf::io::EpsCopyOutputStream* stream) const {
210     return _InternalSerialize(*this, target, stream);
211   }
212   #else   // PROTOBUF_CUSTOM_VTABLE
213   ::size_t ByteSizeLong() const final;
214   ::uint8_t* _InternalSerialize(
215       ::uint8_t* target,
216       ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
217   #endif  // PROTOBUF_CUSTOM_VTABLE
GetCachedSize()218   int GetCachedSize() const { return _impl_._cached_size_.Get(); }
219 
220   private:
221   void SharedCtor(::google::protobuf::Arena* arena);
222   static void SharedDtor(MessageLite& self);
223   void InternalSwap(JavaFeatures* other);
224  private:
225   template <typename T>
226   friend ::absl::string_view(
227       ::google::protobuf::internal::GetAnyMessageName)();
FullMessageName()228   static ::absl::string_view FullMessageName() { return "pb.JavaFeatures"; }
229 
230  protected:
231   explicit JavaFeatures(::google::protobuf::Arena* arena);
232   JavaFeatures(::google::protobuf::Arena* arena, const JavaFeatures& from);
JavaFeatures(::google::protobuf::Arena * arena,JavaFeatures && from)233   JavaFeatures(::google::protobuf::Arena* arena, JavaFeatures&& from) noexcept
234       : JavaFeatures(arena) {
235     *this = ::std::move(from);
236   }
237   const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL;
238   static void* PlacementNew_(const void*, void* mem,
239                              ::google::protobuf::Arena* arena);
240   static constexpr auto InternalNewImpl_();
241   static const ::google::protobuf::internal::ClassDataFull _class_data_;
242 
243  public:
244   ::google::protobuf::Metadata GetMetadata() const;
245   // nested types ----------------------------------------------------
246   using Utf8Validation = JavaFeatures_Utf8Validation;
247   static constexpr Utf8Validation UTF8_VALIDATION_UNKNOWN = JavaFeatures_Utf8Validation_UTF8_VALIDATION_UNKNOWN;
248   static constexpr Utf8Validation DEFAULT = JavaFeatures_Utf8Validation_DEFAULT;
249   static constexpr Utf8Validation VERIFY = JavaFeatures_Utf8Validation_VERIFY;
Utf8Validation_IsValid(int value)250   static inline bool Utf8Validation_IsValid(int value) {
251     return JavaFeatures_Utf8Validation_IsValid(value);
252   }
253   static constexpr Utf8Validation Utf8Validation_MIN = JavaFeatures_Utf8Validation_Utf8Validation_MIN;
254   static constexpr Utf8Validation Utf8Validation_MAX = JavaFeatures_Utf8Validation_Utf8Validation_MAX;
255   static constexpr int Utf8Validation_ARRAYSIZE = JavaFeatures_Utf8Validation_Utf8Validation_ARRAYSIZE;
Utf8Validation_descriptor()256   static inline const ::google::protobuf::EnumDescriptor* Utf8Validation_descriptor() {
257     return JavaFeatures_Utf8Validation_descriptor();
258   }
259   template <typename T>
Utf8Validation_Name(T value)260   static inline const std::string& Utf8Validation_Name(T value) {
261     return JavaFeatures_Utf8Validation_Name(value);
262   }
Utf8Validation_Parse(absl::string_view name,Utf8Validation * value)263   static inline bool Utf8Validation_Parse(absl::string_view name, Utf8Validation* value) {
264     return JavaFeatures_Utf8Validation_Parse(name, value);
265   }
266 
267   // accessors -------------------------------------------------------
268   enum : int {
269     kLegacyClosedEnumFieldNumber = 1,
270     kUtf8ValidationFieldNumber = 2,
271   };
272   // optional bool legacy_closed_enum = 1 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = {
273   bool has_legacy_closed_enum() const;
274   void clear_legacy_closed_enum() ;
275   bool legacy_closed_enum() const;
276   void set_legacy_closed_enum(bool value);
277 
278   private:
279   bool _internal_legacy_closed_enum() const;
280   void _internal_set_legacy_closed_enum(bool value);
281 
282   public:
283   // optional .pb.JavaFeatures.Utf8Validation utf8_validation = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = {
284   bool has_utf8_validation() const;
285   void clear_utf8_validation() ;
286   ::pb::JavaFeatures_Utf8Validation utf8_validation() const;
287   void set_utf8_validation(::pb::JavaFeatures_Utf8Validation value);
288 
289   private:
290   ::pb::JavaFeatures_Utf8Validation _internal_utf8_validation() const;
291   void _internal_set_utf8_validation(::pb::JavaFeatures_Utf8Validation value);
292 
293   public:
294   // @@protoc_insertion_point(class_scope:pb.JavaFeatures)
295  private:
296   class _Internal;
297   friend class ::google::protobuf::internal::TcParser;
298   static const ::google::protobuf::internal::TcParseTable<
299       1, 2, 1,
300       0, 2>
301       _table_;
302 
303   friend class ::google::protobuf::MessageLite;
304   friend class ::google::protobuf::Arena;
305   template <typename T>
306   friend class ::google::protobuf::Arena::InternalHelper;
307   using InternalArenaConstructable_ = void;
308   using DestructorSkippable_ = void;
309   struct Impl_ {
310     inline explicit constexpr Impl_(
311         ::google::protobuf::internal::ConstantInitialized) noexcept;
312     inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
313                           ::google::protobuf::Arena* arena);
314     inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
315                           ::google::protobuf::Arena* arena, const Impl_& from,
316                           const JavaFeatures& from_msg);
317     ::google::protobuf::internal::HasBits<1> _has_bits_;
318     ::google::protobuf::internal::CachedSize _cached_size_;
319     bool legacy_closed_enum_;
320     int utf8_validation_;
321     PROTOBUF_TSAN_DECLARE_MEMBER
322   };
323   union { Impl_ _impl_; };
324   friend struct ::TableStruct_google_2fprotobuf_2fcompiler_2fjava_2fjava_5ffeatures_2eproto;
325 };
326 
327 // ===================================================================
328 
329 
330 
331 static const int kJavaFieldNumber = 1001;
332 PROTOC_EXPORT extern ::google::protobuf::internal::ExtensionIdentifier<
333     ::google::protobuf::FeatureSet, ::google::protobuf::internal::MessageTypeTraits< ::pb::JavaFeatures >, 11,
334     false>
335     java;
336 
337 // ===================================================================
338 
339 
340 #ifdef __GNUC__
341 #pragma GCC diagnostic push
342 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
343 #endif  // __GNUC__
344 // -------------------------------------------------------------------
345 
346 // JavaFeatures
347 
348 // optional bool legacy_closed_enum = 1 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = {
has_legacy_closed_enum()349 inline bool JavaFeatures::has_legacy_closed_enum() const {
350   bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
351   return value;
352 }
clear_legacy_closed_enum()353 inline void JavaFeatures::clear_legacy_closed_enum() {
354   ::google::protobuf::internal::TSanWrite(&_impl_);
355   _impl_.legacy_closed_enum_ = false;
356   _impl_._has_bits_[0] &= ~0x00000001u;
357 }
legacy_closed_enum()358 inline bool JavaFeatures::legacy_closed_enum() const {
359   // @@protoc_insertion_point(field_get:pb.JavaFeatures.legacy_closed_enum)
360   return _internal_legacy_closed_enum();
361 }
set_legacy_closed_enum(bool value)362 inline void JavaFeatures::set_legacy_closed_enum(bool value) {
363   _internal_set_legacy_closed_enum(value);
364   _impl_._has_bits_[0] |= 0x00000001u;
365   // @@protoc_insertion_point(field_set:pb.JavaFeatures.legacy_closed_enum)
366 }
_internal_legacy_closed_enum()367 inline bool JavaFeatures::_internal_legacy_closed_enum() const {
368   ::google::protobuf::internal::TSanRead(&_impl_);
369   return _impl_.legacy_closed_enum_;
370 }
_internal_set_legacy_closed_enum(bool value)371 inline void JavaFeatures::_internal_set_legacy_closed_enum(bool value) {
372   ::google::protobuf::internal::TSanWrite(&_impl_);
373   _impl_.legacy_closed_enum_ = value;
374 }
375 
376 // optional .pb.JavaFeatures.Utf8Validation utf8_validation = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = {
has_utf8_validation()377 inline bool JavaFeatures::has_utf8_validation() const {
378   bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
379   return value;
380 }
clear_utf8_validation()381 inline void JavaFeatures::clear_utf8_validation() {
382   ::google::protobuf::internal::TSanWrite(&_impl_);
383   _impl_.utf8_validation_ = 0;
384   _impl_._has_bits_[0] &= ~0x00000002u;
385 }
utf8_validation()386 inline ::pb::JavaFeatures_Utf8Validation JavaFeatures::utf8_validation() const {
387   // @@protoc_insertion_point(field_get:pb.JavaFeatures.utf8_validation)
388   return _internal_utf8_validation();
389 }
set_utf8_validation(::pb::JavaFeatures_Utf8Validation value)390 inline void JavaFeatures::set_utf8_validation(::pb::JavaFeatures_Utf8Validation value) {
391   _internal_set_utf8_validation(value);
392   _impl_._has_bits_[0] |= 0x00000002u;
393   // @@protoc_insertion_point(field_set:pb.JavaFeatures.utf8_validation)
394 }
_internal_utf8_validation()395 inline ::pb::JavaFeatures_Utf8Validation JavaFeatures::_internal_utf8_validation() const {
396   ::google::protobuf::internal::TSanRead(&_impl_);
397   return static_cast<::pb::JavaFeatures_Utf8Validation>(_impl_.utf8_validation_);
398 }
_internal_set_utf8_validation(::pb::JavaFeatures_Utf8Validation value)399 inline void JavaFeatures::_internal_set_utf8_validation(::pb::JavaFeatures_Utf8Validation value) {
400   ::google::protobuf::internal::TSanWrite(&_impl_);
401   assert(::pb::JavaFeatures_Utf8Validation_IsValid(value));
402   _impl_.utf8_validation_ = value;
403 }
404 
405 #ifdef __GNUC__
406 #pragma GCC diagnostic pop
407 #endif  // __GNUC__
408 
409 // @@protoc_insertion_point(namespace_scope)
410 }  // namespace pb
411 
412 
413 namespace google {
414 namespace protobuf {
415 
416 template <>
417 struct is_proto_enum<::pb::JavaFeatures_Utf8Validation> : std::true_type {};
418 template <>
419 inline const EnumDescriptor* GetEnumDescriptor<::pb::JavaFeatures_Utf8Validation>() {
420   return ::pb::JavaFeatures_Utf8Validation_descriptor();
421 }
422 
423 }  // namespace protobuf
424 }  // namespace google
425 
426 // @@protoc_insertion_point(global_scope)
427 
428 #include "google/protobuf/port_undef.inc"
429 
430 #endif  // google_2fprotobuf_2fcompiler_2fjava_2fjava_5ffeatures_2eproto_2epb_2eh
431