1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: packages/modules/common/proto/sdk.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_packages_2fmodules_2fcommon_2fproto_2fsdk_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_packages_2fmodules_2fcommon_2fproto_2fsdk_2eproto
6 
7 #include <cstdint>
8 #include <limits>
9 #include <string>
10 
11 #include <google/protobuf/port_def.inc>
12 #if PROTOBUF_VERSION < 3021000
13 #error This file was generated by a newer version of protoc which is
14 #error incompatible with your Protocol Buffer headers. Please update
15 #error your headers.
16 #endif
17 #if 3021012 < PROTOBUF_MIN_PROTOC_VERSION
18 #error This file was generated by an older version of protoc which is
19 #error incompatible with your Protocol Buffer headers. Please
20 #error regenerate this file with a newer version of protoc.
21 #endif
22 
23 #include <google/protobuf/port_undef.inc>
24 #include <google/protobuf/io/coded_stream.h>
25 #include <google/protobuf/arena.h>
26 #include <google/protobuf/arenastring.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/metadata_lite.h>
29 #include <google/protobuf/message_lite.h>
30 #include <google/protobuf/repeated_field.h>  // IWYU pragma: export
31 #include <google/protobuf/extension_set.h>  // IWYU pragma: export
32 #include <google/protobuf/generated_enum_util.h>
33 // @@protoc_insertion_point(includes)
34 #include <google/protobuf/port_def.inc>
35 #define PROTOBUF_INTERNAL_EXPORT_packages_2fmodules_2fcommon_2fproto_2fsdk_2eproto
36 PROTOBUF_NAMESPACE_OPEN
37 namespace internal {
38 class AnyMetadata;
39 }  // namespace internal
40 PROTOBUF_NAMESPACE_CLOSE
41 
42 // Internal implementation detail -- do not use these members.
43 struct TableStruct_packages_2fmodules_2fcommon_2fproto_2fsdk_2eproto {
44   static const ::uint32_t offsets[];
45 };
46 class ExtensionDatabase;
47 struct ExtensionDatabaseDefaultTypeInternal;
48 extern ExtensionDatabaseDefaultTypeInternal _ExtensionDatabase_default_instance_;
49 class ExtensionVersion;
50 struct ExtensionVersionDefaultTypeInternal;
51 extern ExtensionVersionDefaultTypeInternal _ExtensionVersion_default_instance_;
52 class ExtensionVersion_ModuleRequirement;
53 struct ExtensionVersion_ModuleRequirementDefaultTypeInternal;
54 extern ExtensionVersion_ModuleRequirementDefaultTypeInternal _ExtensionVersion_ModuleRequirement_default_instance_;
55 class SdkVersion;
56 struct SdkVersionDefaultTypeInternal;
57 extern SdkVersionDefaultTypeInternal _SdkVersion_default_instance_;
58 PROTOBUF_NAMESPACE_OPEN
59 template<> ::ExtensionDatabase* Arena::CreateMaybeMessage<::ExtensionDatabase>(Arena*);
60 template<> ::ExtensionVersion* Arena::CreateMaybeMessage<::ExtensionVersion>(Arena*);
61 template<> ::ExtensionVersion_ModuleRequirement* Arena::CreateMaybeMessage<::ExtensionVersion_ModuleRequirement>(Arena*);
62 template<> ::SdkVersion* Arena::CreateMaybeMessage<::SdkVersion>(Arena*);
63 PROTOBUF_NAMESPACE_CLOSE
64 
65 enum SdkModule : int {
66   UNKNOWN = 0,
67   CONSCRYPT = 10,
68   EXT_SERVICES = 14,
69   IPSEC = 1,
70   MEDIA = 2,
71   MEDIA_PROVIDER = 3,
72   PERMISSIONS = 4,
73   SDK_EXTENSIONS = 5,
74   STATSD = 6,
75   TETHERING = 7,
76   ART = 8,
77   SCHEDULING = 9,
78   AD_SERVICES = 11,
79   APPSEARCH = 12,
80   ON_DEVICE_PERSONALIZATION = 13,
81   CONFIG_INFRASTRUCTURE = 15,
82   HEALTH_FITNESS = 16,
83   SdkModule_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::min(),
84   SdkModule_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::max()
85 };
86 bool SdkModule_IsValid(int value);
87 constexpr SdkModule SdkModule_MIN = UNKNOWN;
88 constexpr SdkModule SdkModule_MAX = HEALTH_FITNESS;
89 constexpr int SdkModule_ARRAYSIZE = SdkModule_MAX + 1;
90 
91 const std::string& SdkModule_Name(SdkModule value);
92 template<typename T>
SdkModule_Name(T enum_t_value)93 inline const std::string& SdkModule_Name(T enum_t_value) {
94   static_assert(::std::is_same<T, SdkModule>::value ||
95     ::std::is_integral<T>::value,
96     "Incorrect type passed to function SdkModule_Name.");
97   return SdkModule_Name(static_cast<SdkModule>(enum_t_value));
98 }
99 bool SdkModule_Parse(
100     ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SdkModule* value);
101 // ===================================================================
102 
103 class SdkVersion final :
104     public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:SdkVersion) */ {
105  public:
SdkVersion()106   inline SdkVersion() : SdkVersion(nullptr) {}
107   ~SdkVersion() override;
108   explicit PROTOBUF_CONSTEXPR SdkVersion(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
109 
110   SdkVersion(const SdkVersion& from);
SdkVersion(SdkVersion && from)111   SdkVersion(SdkVersion&& from) noexcept
112     : SdkVersion() {
113     *this = ::std::move(from);
114   }
115 
116   inline SdkVersion& operator=(const SdkVersion& from) {
117     if (this == &from) return *this;
118     CopyFrom(from);
119     return *this;
120   }
121   inline SdkVersion& operator=(SdkVersion&& from) noexcept {
122     if (this == &from) return *this;
123     if (GetOwningArena() == from.GetOwningArena()
124   #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
125         && GetOwningArena() != nullptr
126   #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
127     ) {
128       InternalSwap(&from);
129     } else {
130       CopyFrom(from);
131     }
132     return *this;
133   }
134 
default_instance()135   static const SdkVersion& default_instance() {
136     return *internal_default_instance();
137   }
internal_default_instance()138   static inline const SdkVersion* internal_default_instance() {
139     return reinterpret_cast<const SdkVersion*>(
140                &_SdkVersion_default_instance_);
141   }
142   static constexpr int kIndexInFileMessages =
143     0;
144 
swap(SdkVersion & a,SdkVersion & b)145   friend void swap(SdkVersion& a, SdkVersion& b) {
146     a.Swap(&b);
147   }
Swap(SdkVersion * other)148   inline void Swap(SdkVersion* other) {
149     if (other == this) return;
150   #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
151     if (GetOwningArena() != nullptr &&
152         GetOwningArena() == other->GetOwningArena()) {
153    #else  // PROTOBUF_FORCE_COPY_IN_SWAP
154     if (GetOwningArena() == other->GetOwningArena()) {
155   #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
156       InternalSwap(other);
157     } else {
158       ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
159     }
160   }
161   void UnsafeArenaSwap(SdkVersion* other) {
162     if (other == this) return;
163     GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
164     InternalSwap(other);
165   }
166 
167   // implements Message ----------------------------------------------
168 
169   SdkVersion* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
170     return CreateMaybeMessage<SdkVersion>(arena);
171   }
172   SdkVersion* New() const {
173     return New(nullptr);
174   }
175   void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
176   void CopyFrom(const SdkVersion& from);
177   void MergeFrom(const SdkVersion& from);
178   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
179   bool IsInitialized() const final;
180 
181   size_t ByteSizeLong() const final;
182   const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
183   ::uint8_t* _InternalSerialize(
184       ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
185   int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
186 
187   private:
188   void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
189   void SharedDtor();
190   void SetCachedSize(int size) const;
191   void InternalSwap(SdkVersion* other);
192 
193   private:
194   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
195   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
196     return "SdkVersion";
197   }
198   protected:
199   explicit SdkVersion(::PROTOBUF_NAMESPACE_ID::Arena* arena,
200                        bool is_message_owned = false);
201   public:
202 
203   std::string GetTypeName() const final;
204 
205   // nested types ----------------------------------------------------
206 
207   // accessors -------------------------------------------------------
208 
209   enum : int {
210     kVersionFieldNumber = 1,
211   };
212   // int32 version = 1;
213   void clear_version();
214   ::int32_t version() const;
215   void set_version(::int32_t value);
216   private:
217   ::int32_t _internal_version() const;
218   void _internal_set_version(::int32_t value);
219   public:
220 
221   // @@protoc_insertion_point(class_scope:SdkVersion)
222  private:
223   class _Internal;
224 
225   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
226   typedef void InternalArenaConstructable_;
227   typedef void DestructorSkippable_;
228   struct Impl_ {
229     ::int32_t version_;
230     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
231   };
232   union { Impl_ _impl_; };
233   friend struct ::TableStruct_packages_2fmodules_2fcommon_2fproto_2fsdk_2eproto;
234 };
235 // -------------------------------------------------------------------
236 
237 class ExtensionVersion_ModuleRequirement final :
238     public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:ExtensionVersion.ModuleRequirement) */ {
239  public:
ExtensionVersion_ModuleRequirement()240   inline ExtensionVersion_ModuleRequirement() : ExtensionVersion_ModuleRequirement(nullptr) {}
241   ~ExtensionVersion_ModuleRequirement() override;
242   explicit PROTOBUF_CONSTEXPR ExtensionVersion_ModuleRequirement(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
243 
244   ExtensionVersion_ModuleRequirement(const ExtensionVersion_ModuleRequirement& from);
ExtensionVersion_ModuleRequirement(ExtensionVersion_ModuleRequirement && from)245   ExtensionVersion_ModuleRequirement(ExtensionVersion_ModuleRequirement&& from) noexcept
246     : ExtensionVersion_ModuleRequirement() {
247     *this = ::std::move(from);
248   }
249 
250   inline ExtensionVersion_ModuleRequirement& operator=(const ExtensionVersion_ModuleRequirement& from) {
251     if (this == &from) return *this;
252     CopyFrom(from);
253     return *this;
254   }
255   inline ExtensionVersion_ModuleRequirement& operator=(ExtensionVersion_ModuleRequirement&& from) noexcept {
256     if (this == &from) return *this;
257     if (GetOwningArena() == from.GetOwningArena()
258   #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
259         && GetOwningArena() != nullptr
260   #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
261     ) {
262       InternalSwap(&from);
263     } else {
264       CopyFrom(from);
265     }
266     return *this;
267   }
268 
default_instance()269   static const ExtensionVersion_ModuleRequirement& default_instance() {
270     return *internal_default_instance();
271   }
internal_default_instance()272   static inline const ExtensionVersion_ModuleRequirement* internal_default_instance() {
273     return reinterpret_cast<const ExtensionVersion_ModuleRequirement*>(
274                &_ExtensionVersion_ModuleRequirement_default_instance_);
275   }
276   static constexpr int kIndexInFileMessages =
277     1;
278 
swap(ExtensionVersion_ModuleRequirement & a,ExtensionVersion_ModuleRequirement & b)279   friend void swap(ExtensionVersion_ModuleRequirement& a, ExtensionVersion_ModuleRequirement& b) {
280     a.Swap(&b);
281   }
Swap(ExtensionVersion_ModuleRequirement * other)282   inline void Swap(ExtensionVersion_ModuleRequirement* other) {
283     if (other == this) return;
284   #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
285     if (GetOwningArena() != nullptr &&
286         GetOwningArena() == other->GetOwningArena()) {
287    #else  // PROTOBUF_FORCE_COPY_IN_SWAP
288     if (GetOwningArena() == other->GetOwningArena()) {
289   #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
290       InternalSwap(other);
291     } else {
292       ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
293     }
294   }
295   void UnsafeArenaSwap(ExtensionVersion_ModuleRequirement* other) {
296     if (other == this) return;
297     GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
298     InternalSwap(other);
299   }
300 
301   // implements Message ----------------------------------------------
302 
303   ExtensionVersion_ModuleRequirement* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
304     return CreateMaybeMessage<ExtensionVersion_ModuleRequirement>(arena);
305   }
306   ExtensionVersion_ModuleRequirement* New() const {
307     return New(nullptr);
308   }
309   void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
310   void CopyFrom(const ExtensionVersion_ModuleRequirement& from);
311   void MergeFrom(const ExtensionVersion_ModuleRequirement& from);
312   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
313   bool IsInitialized() const final;
314 
315   size_t ByteSizeLong() const final;
316   const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
317   ::uint8_t* _InternalSerialize(
318       ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
319   int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
320 
321   private:
322   void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
323   void SharedDtor();
324   void SetCachedSize(int size) const;
325   void InternalSwap(ExtensionVersion_ModuleRequirement* other);
326 
327   private:
328   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
329   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
330     return "ExtensionVersion.ModuleRequirement";
331   }
332   protected:
333   explicit ExtensionVersion_ModuleRequirement(::PROTOBUF_NAMESPACE_ID::Arena* arena,
334                        bool is_message_owned = false);
335   public:
336 
337   std::string GetTypeName() const final;
338 
339   // nested types ----------------------------------------------------
340 
341   // accessors -------------------------------------------------------
342 
343   enum : int {
344     kVersionFieldNumber = 2,
345     kModuleFieldNumber = 1,
346   };
347   // .SdkVersion version = 2;
348   bool has_version() const;
349   private:
350   bool _internal_has_version() const;
351   public:
352   void clear_version();
353   const ::SdkVersion& version() const;
354   PROTOBUF_NODISCARD ::SdkVersion* release_version();
355   ::SdkVersion* mutable_version();
356   void set_allocated_version(::SdkVersion* version);
357   private:
358   const ::SdkVersion& _internal_version() const;
359   ::SdkVersion* _internal_mutable_version();
360   public:
361   void unsafe_arena_set_allocated_version(
362       ::SdkVersion* version);
363   ::SdkVersion* unsafe_arena_release_version();
364 
365   // .SdkModule module = 1;
366   void clear_module();
367   ::SdkModule module() const;
368   void set_module(::SdkModule value);
369   private:
370   ::SdkModule _internal_module() const;
371   void _internal_set_module(::SdkModule value);
372   public:
373 
374   // @@protoc_insertion_point(class_scope:ExtensionVersion.ModuleRequirement)
375  private:
376   class _Internal;
377 
378   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
379   typedef void InternalArenaConstructable_;
380   typedef void DestructorSkippable_;
381   struct Impl_ {
382     ::SdkVersion* version_;
383     int module_;
384     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
385   };
386   union { Impl_ _impl_; };
387   friend struct ::TableStruct_packages_2fmodules_2fcommon_2fproto_2fsdk_2eproto;
388 };
389 // -------------------------------------------------------------------
390 
391 class ExtensionVersion final :
392     public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:ExtensionVersion) */ {
393  public:
ExtensionVersion()394   inline ExtensionVersion() : ExtensionVersion(nullptr) {}
395   ~ExtensionVersion() override;
396   explicit PROTOBUF_CONSTEXPR ExtensionVersion(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
397 
398   ExtensionVersion(const ExtensionVersion& from);
ExtensionVersion(ExtensionVersion && from)399   ExtensionVersion(ExtensionVersion&& from) noexcept
400     : ExtensionVersion() {
401     *this = ::std::move(from);
402   }
403 
404   inline ExtensionVersion& operator=(const ExtensionVersion& from) {
405     if (this == &from) return *this;
406     CopyFrom(from);
407     return *this;
408   }
409   inline ExtensionVersion& operator=(ExtensionVersion&& from) noexcept {
410     if (this == &from) return *this;
411     if (GetOwningArena() == from.GetOwningArena()
412   #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
413         && GetOwningArena() != nullptr
414   #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
415     ) {
416       InternalSwap(&from);
417     } else {
418       CopyFrom(from);
419     }
420     return *this;
421   }
422 
default_instance()423   static const ExtensionVersion& default_instance() {
424     return *internal_default_instance();
425   }
internal_default_instance()426   static inline const ExtensionVersion* internal_default_instance() {
427     return reinterpret_cast<const ExtensionVersion*>(
428                &_ExtensionVersion_default_instance_);
429   }
430   static constexpr int kIndexInFileMessages =
431     2;
432 
swap(ExtensionVersion & a,ExtensionVersion & b)433   friend void swap(ExtensionVersion& a, ExtensionVersion& b) {
434     a.Swap(&b);
435   }
Swap(ExtensionVersion * other)436   inline void Swap(ExtensionVersion* other) {
437     if (other == this) return;
438   #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
439     if (GetOwningArena() != nullptr &&
440         GetOwningArena() == other->GetOwningArena()) {
441    #else  // PROTOBUF_FORCE_COPY_IN_SWAP
442     if (GetOwningArena() == other->GetOwningArena()) {
443   #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
444       InternalSwap(other);
445     } else {
446       ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
447     }
448   }
449   void UnsafeArenaSwap(ExtensionVersion* other) {
450     if (other == this) return;
451     GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
452     InternalSwap(other);
453   }
454 
455   // implements Message ----------------------------------------------
456 
457   ExtensionVersion* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
458     return CreateMaybeMessage<ExtensionVersion>(arena);
459   }
460   ExtensionVersion* New() const {
461     return New(nullptr);
462   }
463   void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
464   void CopyFrom(const ExtensionVersion& from);
465   void MergeFrom(const ExtensionVersion& from);
466   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
467   bool IsInitialized() const final;
468 
469   size_t ByteSizeLong() const final;
470   const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
471   ::uint8_t* _InternalSerialize(
472       ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
473   int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
474 
475   private:
476   void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
477   void SharedDtor();
478   void SetCachedSize(int size) const;
479   void InternalSwap(ExtensionVersion* other);
480 
481   private:
482   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
483   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
484     return "ExtensionVersion";
485   }
486   protected:
487   explicit ExtensionVersion(::PROTOBUF_NAMESPACE_ID::Arena* arena,
488                        bool is_message_owned = false);
489   public:
490 
491   std::string GetTypeName() const final;
492 
493   // nested types ----------------------------------------------------
494 
495   typedef ExtensionVersion_ModuleRequirement ModuleRequirement;
496 
497   // accessors -------------------------------------------------------
498 
499   enum : int {
500     kRequirementsFieldNumber = 2,
501     kVersionFieldNumber = 1,
502   };
503   // repeated .ExtensionVersion.ModuleRequirement requirements = 2;
504   int requirements_size() const;
505   private:
506   int _internal_requirements_size() const;
507   public:
508   void clear_requirements();
509   ::ExtensionVersion_ModuleRequirement* mutable_requirements(int index);
510   ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ExtensionVersion_ModuleRequirement >*
511       mutable_requirements();
512   private:
513   const ::ExtensionVersion_ModuleRequirement& _internal_requirements(int index) const;
514   ::ExtensionVersion_ModuleRequirement* _internal_add_requirements();
515   public:
516   const ::ExtensionVersion_ModuleRequirement& requirements(int index) const;
517   ::ExtensionVersion_ModuleRequirement* add_requirements();
518   const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ExtensionVersion_ModuleRequirement >&
519       requirements() const;
520 
521   // int32 version = 1;
522   void clear_version();
523   ::int32_t version() const;
524   void set_version(::int32_t value);
525   private:
526   ::int32_t _internal_version() const;
527   void _internal_set_version(::int32_t value);
528   public:
529 
530   // @@protoc_insertion_point(class_scope:ExtensionVersion)
531  private:
532   class _Internal;
533 
534   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
535   typedef void InternalArenaConstructable_;
536   typedef void DestructorSkippable_;
537   struct Impl_ {
538     ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ExtensionVersion_ModuleRequirement > requirements_;
539     ::int32_t version_;
540     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
541   };
542   union { Impl_ _impl_; };
543   friend struct ::TableStruct_packages_2fmodules_2fcommon_2fproto_2fsdk_2eproto;
544 };
545 // -------------------------------------------------------------------
546 
547 class ExtensionDatabase final :
548     public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:ExtensionDatabase) */ {
549  public:
ExtensionDatabase()550   inline ExtensionDatabase() : ExtensionDatabase(nullptr) {}
551   ~ExtensionDatabase() override;
552   explicit PROTOBUF_CONSTEXPR ExtensionDatabase(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
553 
554   ExtensionDatabase(const ExtensionDatabase& from);
ExtensionDatabase(ExtensionDatabase && from)555   ExtensionDatabase(ExtensionDatabase&& from) noexcept
556     : ExtensionDatabase() {
557     *this = ::std::move(from);
558   }
559 
560   inline ExtensionDatabase& operator=(const ExtensionDatabase& from) {
561     if (this == &from) return *this;
562     CopyFrom(from);
563     return *this;
564   }
565   inline ExtensionDatabase& operator=(ExtensionDatabase&& from) noexcept {
566     if (this == &from) return *this;
567     if (GetOwningArena() == from.GetOwningArena()
568   #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
569         && GetOwningArena() != nullptr
570   #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
571     ) {
572       InternalSwap(&from);
573     } else {
574       CopyFrom(from);
575     }
576     return *this;
577   }
578 
default_instance()579   static const ExtensionDatabase& default_instance() {
580     return *internal_default_instance();
581   }
internal_default_instance()582   static inline const ExtensionDatabase* internal_default_instance() {
583     return reinterpret_cast<const ExtensionDatabase*>(
584                &_ExtensionDatabase_default_instance_);
585   }
586   static constexpr int kIndexInFileMessages =
587     3;
588 
swap(ExtensionDatabase & a,ExtensionDatabase & b)589   friend void swap(ExtensionDatabase& a, ExtensionDatabase& b) {
590     a.Swap(&b);
591   }
Swap(ExtensionDatabase * other)592   inline void Swap(ExtensionDatabase* other) {
593     if (other == this) return;
594   #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
595     if (GetOwningArena() != nullptr &&
596         GetOwningArena() == other->GetOwningArena()) {
597    #else  // PROTOBUF_FORCE_COPY_IN_SWAP
598     if (GetOwningArena() == other->GetOwningArena()) {
599   #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
600       InternalSwap(other);
601     } else {
602       ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
603     }
604   }
605   void UnsafeArenaSwap(ExtensionDatabase* other) {
606     if (other == this) return;
607     GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
608     InternalSwap(other);
609   }
610 
611   // implements Message ----------------------------------------------
612 
613   ExtensionDatabase* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
614     return CreateMaybeMessage<ExtensionDatabase>(arena);
615   }
616   ExtensionDatabase* New() const {
617     return New(nullptr);
618   }
619   void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
620   void CopyFrom(const ExtensionDatabase& from);
621   void MergeFrom(const ExtensionDatabase& from);
622   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
623   bool IsInitialized() const final;
624 
625   size_t ByteSizeLong() const final;
626   const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
627   ::uint8_t* _InternalSerialize(
628       ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
629   int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
630 
631   private:
632   void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
633   void SharedDtor();
634   void SetCachedSize(int size) const;
635   void InternalSwap(ExtensionDatabase* other);
636 
637   private:
638   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
639   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
640     return "ExtensionDatabase";
641   }
642   protected:
643   explicit ExtensionDatabase(::PROTOBUF_NAMESPACE_ID::Arena* arena,
644                        bool is_message_owned = false);
645   public:
646 
647   std::string GetTypeName() const final;
648 
649   // nested types ----------------------------------------------------
650 
651   // accessors -------------------------------------------------------
652 
653   enum : int {
654     kVersionsFieldNumber = 1,
655   };
656   // repeated .ExtensionVersion versions = 1;
657   int versions_size() const;
658   private:
659   int _internal_versions_size() const;
660   public:
661   void clear_versions();
662   ::ExtensionVersion* mutable_versions(int index);
663   ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ExtensionVersion >*
664       mutable_versions();
665   private:
666   const ::ExtensionVersion& _internal_versions(int index) const;
667   ::ExtensionVersion* _internal_add_versions();
668   public:
669   const ::ExtensionVersion& versions(int index) const;
670   ::ExtensionVersion* add_versions();
671   const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ExtensionVersion >&
672       versions() const;
673 
674   // @@protoc_insertion_point(class_scope:ExtensionDatabase)
675  private:
676   class _Internal;
677 
678   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
679   typedef void InternalArenaConstructable_;
680   typedef void DestructorSkippable_;
681   struct Impl_ {
682     ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ExtensionVersion > versions_;
683     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
684   };
685   union { Impl_ _impl_; };
686   friend struct ::TableStruct_packages_2fmodules_2fcommon_2fproto_2fsdk_2eproto;
687 };
688 // ===================================================================
689 
690 
691 // ===================================================================
692 
693 #ifdef __GNUC__
694   #pragma GCC diagnostic push
695   #pragma GCC diagnostic ignored "-Wstrict-aliasing"
696 #endif  // __GNUC__
697 // SdkVersion
698 
699 // int32 version = 1;
clear_version()700 inline void SdkVersion::clear_version() {
701   _impl_.version_ = 0;
702 }
_internal_version()703 inline ::int32_t SdkVersion::_internal_version() const {
704   return _impl_.version_;
705 }
version()706 inline ::int32_t SdkVersion::version() const {
707   // @@protoc_insertion_point(field_get:SdkVersion.version)
708   return _internal_version();
709 }
_internal_set_version(::int32_t value)710 inline void SdkVersion::_internal_set_version(::int32_t value) {
711 
712   _impl_.version_ = value;
713 }
set_version(::int32_t value)714 inline void SdkVersion::set_version(::int32_t value) {
715   _internal_set_version(value);
716   // @@protoc_insertion_point(field_set:SdkVersion.version)
717 }
718 
719 // -------------------------------------------------------------------
720 
721 // ExtensionVersion_ModuleRequirement
722 
723 // .SdkModule module = 1;
clear_module()724 inline void ExtensionVersion_ModuleRequirement::clear_module() {
725   _impl_.module_ = 0;
726 }
_internal_module()727 inline ::SdkModule ExtensionVersion_ModuleRequirement::_internal_module() const {
728   return static_cast< ::SdkModule >(_impl_.module_);
729 }
module()730 inline ::SdkModule ExtensionVersion_ModuleRequirement::module() const {
731   // @@protoc_insertion_point(field_get:ExtensionVersion.ModuleRequirement.module)
732   return _internal_module();
733 }
_internal_set_module(::SdkModule value)734 inline void ExtensionVersion_ModuleRequirement::_internal_set_module(::SdkModule value) {
735 
736   _impl_.module_ = value;
737 }
set_module(::SdkModule value)738 inline void ExtensionVersion_ModuleRequirement::set_module(::SdkModule value) {
739   _internal_set_module(value);
740   // @@protoc_insertion_point(field_set:ExtensionVersion.ModuleRequirement.module)
741 }
742 
743 // .SdkVersion version = 2;
_internal_has_version()744 inline bool ExtensionVersion_ModuleRequirement::_internal_has_version() const {
745   return this != internal_default_instance() && _impl_.version_ != nullptr;
746 }
has_version()747 inline bool ExtensionVersion_ModuleRequirement::has_version() const {
748   return _internal_has_version();
749 }
clear_version()750 inline void ExtensionVersion_ModuleRequirement::clear_version() {
751   if (GetArenaForAllocation() == nullptr && _impl_.version_ != nullptr) {
752     delete _impl_.version_;
753   }
754   _impl_.version_ = nullptr;
755 }
_internal_version()756 inline const ::SdkVersion& ExtensionVersion_ModuleRequirement::_internal_version() const {
757   const ::SdkVersion* p = _impl_.version_;
758   return p != nullptr ? *p : reinterpret_cast<const ::SdkVersion&>(
759       ::_SdkVersion_default_instance_);
760 }
version()761 inline const ::SdkVersion& ExtensionVersion_ModuleRequirement::version() const {
762   // @@protoc_insertion_point(field_get:ExtensionVersion.ModuleRequirement.version)
763   return _internal_version();
764 }
unsafe_arena_set_allocated_version(::SdkVersion * version)765 inline void ExtensionVersion_ModuleRequirement::unsafe_arena_set_allocated_version(
766     ::SdkVersion* version) {
767   if (GetArenaForAllocation() == nullptr) {
768     delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.version_);
769   }
770   _impl_.version_ = version;
771   // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ExtensionVersion.ModuleRequirement.version)
772 }
release_version()773 inline ::SdkVersion* ExtensionVersion_ModuleRequirement::release_version() {
774 
775   ::SdkVersion* temp = _impl_.version_;
776   _impl_.version_ = nullptr;
777 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
778   auto* old =  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
779   temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
780   if (GetArenaForAllocation() == nullptr) { delete old; }
781 #else  // PROTOBUF_FORCE_COPY_IN_RELEASE
782   if (GetArenaForAllocation() != nullptr) {
783     temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
784   }
785 #endif  // !PROTOBUF_FORCE_COPY_IN_RELEASE
786   return temp;
787 }
unsafe_arena_release_version()788 inline ::SdkVersion* ExtensionVersion_ModuleRequirement::unsafe_arena_release_version() {
789   // @@protoc_insertion_point(field_release:ExtensionVersion.ModuleRequirement.version)
790 
791   ::SdkVersion* temp = _impl_.version_;
792   _impl_.version_ = nullptr;
793   return temp;
794 }
_internal_mutable_version()795 inline ::SdkVersion* ExtensionVersion_ModuleRequirement::_internal_mutable_version() {
796 
797   if (_impl_.version_ == nullptr) {
798     auto* p = CreateMaybeMessage<::SdkVersion>(GetArenaForAllocation());
799     _impl_.version_ = p;
800   }
801   return _impl_.version_;
802 }
mutable_version()803 inline ::SdkVersion* ExtensionVersion_ModuleRequirement::mutable_version() {
804   ::SdkVersion* _msg = _internal_mutable_version();
805   // @@protoc_insertion_point(field_mutable:ExtensionVersion.ModuleRequirement.version)
806   return _msg;
807 }
set_allocated_version(::SdkVersion * version)808 inline void ExtensionVersion_ModuleRequirement::set_allocated_version(::SdkVersion* version) {
809   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
810   if (message_arena == nullptr) {
811     delete _impl_.version_;
812   }
813   if (version) {
814     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
815         ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(version);
816     if (message_arena != submessage_arena) {
817       version = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
818           message_arena, version, submessage_arena);
819     }
820 
821   } else {
822 
823   }
824   _impl_.version_ = version;
825   // @@protoc_insertion_point(field_set_allocated:ExtensionVersion.ModuleRequirement.version)
826 }
827 
828 // -------------------------------------------------------------------
829 
830 // ExtensionVersion
831 
832 // int32 version = 1;
clear_version()833 inline void ExtensionVersion::clear_version() {
834   _impl_.version_ = 0;
835 }
_internal_version()836 inline ::int32_t ExtensionVersion::_internal_version() const {
837   return _impl_.version_;
838 }
version()839 inline ::int32_t ExtensionVersion::version() const {
840   // @@protoc_insertion_point(field_get:ExtensionVersion.version)
841   return _internal_version();
842 }
_internal_set_version(::int32_t value)843 inline void ExtensionVersion::_internal_set_version(::int32_t value) {
844 
845   _impl_.version_ = value;
846 }
set_version(::int32_t value)847 inline void ExtensionVersion::set_version(::int32_t value) {
848   _internal_set_version(value);
849   // @@protoc_insertion_point(field_set:ExtensionVersion.version)
850 }
851 
852 // repeated .ExtensionVersion.ModuleRequirement requirements = 2;
_internal_requirements_size()853 inline int ExtensionVersion::_internal_requirements_size() const {
854   return _impl_.requirements_.size();
855 }
requirements_size()856 inline int ExtensionVersion::requirements_size() const {
857   return _internal_requirements_size();
858 }
clear_requirements()859 inline void ExtensionVersion::clear_requirements() {
860   _impl_.requirements_.Clear();
861 }
mutable_requirements(int index)862 inline ::ExtensionVersion_ModuleRequirement* ExtensionVersion::mutable_requirements(int index) {
863   // @@protoc_insertion_point(field_mutable:ExtensionVersion.requirements)
864   return _impl_.requirements_.Mutable(index);
865 }
866 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ExtensionVersion_ModuleRequirement >*
mutable_requirements()867 ExtensionVersion::mutable_requirements() {
868   // @@protoc_insertion_point(field_mutable_list:ExtensionVersion.requirements)
869   return &_impl_.requirements_;
870 }
_internal_requirements(int index)871 inline const ::ExtensionVersion_ModuleRequirement& ExtensionVersion::_internal_requirements(int index) const {
872   return _impl_.requirements_.Get(index);
873 }
requirements(int index)874 inline const ::ExtensionVersion_ModuleRequirement& ExtensionVersion::requirements(int index) const {
875   // @@protoc_insertion_point(field_get:ExtensionVersion.requirements)
876   return _internal_requirements(index);
877 }
_internal_add_requirements()878 inline ::ExtensionVersion_ModuleRequirement* ExtensionVersion::_internal_add_requirements() {
879   return _impl_.requirements_.Add();
880 }
add_requirements()881 inline ::ExtensionVersion_ModuleRequirement* ExtensionVersion::add_requirements() {
882   ::ExtensionVersion_ModuleRequirement* _add = _internal_add_requirements();
883   // @@protoc_insertion_point(field_add:ExtensionVersion.requirements)
884   return _add;
885 }
886 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ExtensionVersion_ModuleRequirement >&
requirements()887 ExtensionVersion::requirements() const {
888   // @@protoc_insertion_point(field_list:ExtensionVersion.requirements)
889   return _impl_.requirements_;
890 }
891 
892 // -------------------------------------------------------------------
893 
894 // ExtensionDatabase
895 
896 // repeated .ExtensionVersion versions = 1;
_internal_versions_size()897 inline int ExtensionDatabase::_internal_versions_size() const {
898   return _impl_.versions_.size();
899 }
versions_size()900 inline int ExtensionDatabase::versions_size() const {
901   return _internal_versions_size();
902 }
clear_versions()903 inline void ExtensionDatabase::clear_versions() {
904   _impl_.versions_.Clear();
905 }
mutable_versions(int index)906 inline ::ExtensionVersion* ExtensionDatabase::mutable_versions(int index) {
907   // @@protoc_insertion_point(field_mutable:ExtensionDatabase.versions)
908   return _impl_.versions_.Mutable(index);
909 }
910 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ExtensionVersion >*
mutable_versions()911 ExtensionDatabase::mutable_versions() {
912   // @@protoc_insertion_point(field_mutable_list:ExtensionDatabase.versions)
913   return &_impl_.versions_;
914 }
_internal_versions(int index)915 inline const ::ExtensionVersion& ExtensionDatabase::_internal_versions(int index) const {
916   return _impl_.versions_.Get(index);
917 }
versions(int index)918 inline const ::ExtensionVersion& ExtensionDatabase::versions(int index) const {
919   // @@protoc_insertion_point(field_get:ExtensionDatabase.versions)
920   return _internal_versions(index);
921 }
_internal_add_versions()922 inline ::ExtensionVersion* ExtensionDatabase::_internal_add_versions() {
923   return _impl_.versions_.Add();
924 }
add_versions()925 inline ::ExtensionVersion* ExtensionDatabase::add_versions() {
926   ::ExtensionVersion* _add = _internal_add_versions();
927   // @@protoc_insertion_point(field_add:ExtensionDatabase.versions)
928   return _add;
929 }
930 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ExtensionVersion >&
versions()931 ExtensionDatabase::versions() const {
932   // @@protoc_insertion_point(field_list:ExtensionDatabase.versions)
933   return _impl_.versions_;
934 }
935 
936 #ifdef __GNUC__
937   #pragma GCC diagnostic pop
938 #endif  // __GNUC__
939 // -------------------------------------------------------------------
940 
941 // -------------------------------------------------------------------
942 
943 // -------------------------------------------------------------------
944 
945 
946 // @@protoc_insertion_point(namespace_scope)
947 
948 
949 PROTOBUF_NAMESPACE_OPEN
950 
951 template <> struct is_proto_enum< ::SdkModule> : ::std::true_type {};
952 
953 PROTOBUF_NAMESPACE_CLOSE
954 
955 // @@protoc_insertion_point(global_scope)
956 
957 #include <google/protobuf/port_undef.inc>
958 #endif  // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_packages_2fmodules_2fcommon_2fproto_2fsdk_2eproto
959