1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: ukm/web_features.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ukm_2fweb_5ffeatures_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ukm_2fweb_5ffeatures_2eproto
6 
7 #include <limits>
8 #include <string>
9 
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3021000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
14 #error your headers.
15 #endif
16 #if 3021012 < PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
20 #endif
21 
22 #include <google/protobuf/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arena.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/metadata_lite.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 // @@protoc_insertion_point(includes)
32 #include <google/protobuf/port_def.inc>
33 #define PROTOBUF_INTERNAL_EXPORT_ukm_2fweb_5ffeatures_2eproto
34 PROTOBUF_NAMESPACE_OPEN
35 namespace internal {
36 class AnyMetadata;
37 }  // namespace internal
38 PROTOBUF_NAMESPACE_CLOSE
39 
40 // Internal implementation detail -- do not use these members.
41 struct TableStruct_ukm_2fweb_5ffeatures_2eproto {
42   static const uint32_t offsets[];
43 };
44 namespace ukm {
45 class HighLevelWebFeatures;
46 struct HighLevelWebFeaturesDefaultTypeInternal;
47 extern HighLevelWebFeaturesDefaultTypeInternal _HighLevelWebFeatures_default_instance_;
48 }  // namespace ukm
49 PROTOBUF_NAMESPACE_OPEN
50 template<> ::ukm::HighLevelWebFeatures* Arena::CreateMaybeMessage<::ukm::HighLevelWebFeatures>(Arena*);
51 PROTOBUF_NAMESPACE_CLOSE
52 namespace ukm {
53 
54 // ===================================================================
55 
56 class HighLevelWebFeatures final :
57     public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:ukm.HighLevelWebFeatures) */ {
58  public:
HighLevelWebFeatures()59   inline HighLevelWebFeatures() : HighLevelWebFeatures(nullptr) {}
60   ~HighLevelWebFeatures() override;
61   explicit PROTOBUF_CONSTEXPR HighLevelWebFeatures(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
62 
63   HighLevelWebFeatures(const HighLevelWebFeatures& from);
HighLevelWebFeatures(HighLevelWebFeatures && from)64   HighLevelWebFeatures(HighLevelWebFeatures&& from) noexcept
65     : HighLevelWebFeatures() {
66     *this = ::std::move(from);
67   }
68 
69   inline HighLevelWebFeatures& operator=(const HighLevelWebFeatures& from) {
70     CopyFrom(from);
71     return *this;
72   }
73   inline HighLevelWebFeatures& operator=(HighLevelWebFeatures&& from) noexcept {
74     if (this == &from) return *this;
75     if (GetOwningArena() == from.GetOwningArena()
76   #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
77         && GetOwningArena() != nullptr
78   #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
79     ) {
80       InternalSwap(&from);
81     } else {
82       CopyFrom(from);
83     }
84     return *this;
85   }
86 
unknown_fields()87   inline const std::string& unknown_fields() const {
88     return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
89   }
mutable_unknown_fields()90   inline std::string* mutable_unknown_fields() {
91     return _internal_metadata_.mutable_unknown_fields<std::string>();
92   }
93 
default_instance()94   static const HighLevelWebFeatures& default_instance() {
95     return *internal_default_instance();
96   }
internal_default_instance()97   static inline const HighLevelWebFeatures* internal_default_instance() {
98     return reinterpret_cast<const HighLevelWebFeatures*>(
99                &_HighLevelWebFeatures_default_instance_);
100   }
101   static constexpr int kIndexInFileMessages =
102     0;
103 
swap(HighLevelWebFeatures & a,HighLevelWebFeatures & b)104   friend void swap(HighLevelWebFeatures& a, HighLevelWebFeatures& b) {
105     a.Swap(&b);
106   }
Swap(HighLevelWebFeatures * other)107   PROTOBUF_NOINLINE void Swap(HighLevelWebFeatures* other) {
108     if (other == this) return;
109   #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
110     if (GetOwningArena() != nullptr &&
111         GetOwningArena() == other->GetOwningArena()) {
112    #else  // PROTOBUF_FORCE_COPY_IN_SWAP
113     if (GetOwningArena() == other->GetOwningArena()) {
114   #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
115       InternalSwap(other);
116     } else {
117       ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
118     }
119   }
120   void UnsafeArenaSwap(HighLevelWebFeatures* other) {
121     if (other == this) return;
122     GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
123     InternalSwap(other);
124   }
125 
126   // implements Message ----------------------------------------------
127 
128   HighLevelWebFeatures* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
129     return CreateMaybeMessage<HighLevelWebFeatures>(arena);
130   }
131   void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
132   void CopyFrom(const HighLevelWebFeatures& from);
133   void MergeFrom(const HighLevelWebFeatures& from);
134   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
135   bool IsInitialized() const final;
136 
137   size_t ByteSizeLong() const final;
138   const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
139   uint8_t* _InternalSerialize(
140       uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
141   int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
142 
143   private:
144   void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
145   void SharedDtor();
146   void SetCachedSize(int size) const;
147   void InternalSwap(HighLevelWebFeatures* other);
148 
149   private:
150   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
151   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
152     return "ukm.HighLevelWebFeatures";
153   }
154   protected:
155   explicit HighLevelWebFeatures(::PROTOBUF_NAMESPACE_ID::Arena* arena,
156                        bool is_message_owned = false);
157   public:
158 
159   std::string GetTypeName() const final;
160 
161   // nested types ----------------------------------------------------
162 
163   // accessors -------------------------------------------------------
164 
165   enum : int {
166     kBitVectorFieldNumber = 1,
167     kSourceIdFieldNumber = 2,
168     kEncodingVersionFieldNumber = 3,
169   };
170   // optional bytes bit_vector = 1;
171   bool has_bit_vector() const;
172   private:
173   bool _internal_has_bit_vector() const;
174   public:
175   void clear_bit_vector();
176   const std::string& bit_vector() const;
177   template <typename ArgT0 = const std::string&, typename... ArgT>
178   void set_bit_vector(ArgT0&& arg0, ArgT... args);
179   std::string* mutable_bit_vector();
180   PROTOBUF_NODISCARD std::string* release_bit_vector();
181   void set_allocated_bit_vector(std::string* bit_vector);
182   private:
183   const std::string& _internal_bit_vector() const;
184   inline PROTOBUF_ALWAYS_INLINE void _internal_set_bit_vector(const std::string& value);
185   std::string* _internal_mutable_bit_vector();
186   public:
187 
188   // optional int64 source_id = 2;
189   bool has_source_id() const;
190   private:
191   bool _internal_has_source_id() const;
192   public:
193   void clear_source_id();
194   int64_t source_id() const;
195   void set_source_id(int64_t value);
196   private:
197   int64_t _internal_source_id() const;
198   void _internal_set_source_id(int64_t value);
199   public:
200 
201   // optional uint32 encoding_version = 3 [default = 0];
202   bool has_encoding_version() const;
203   private:
204   bool _internal_has_encoding_version() const;
205   public:
206   void clear_encoding_version();
207   uint32_t encoding_version() const;
208   void set_encoding_version(uint32_t value);
209   private:
210   uint32_t _internal_encoding_version() const;
211   void _internal_set_encoding_version(uint32_t value);
212   public:
213 
214   // @@protoc_insertion_point(class_scope:ukm.HighLevelWebFeatures)
215  private:
216   class _Internal;
217 
218   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
219   typedef void InternalArenaConstructable_;
220   typedef void DestructorSkippable_;
221   struct Impl_ {
222     ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
223     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
224     ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr bit_vector_;
225     int64_t source_id_;
226     uint32_t encoding_version_;
227   };
228   union { Impl_ _impl_; };
229   friend struct ::TableStruct_ukm_2fweb_5ffeatures_2eproto;
230 };
231 // ===================================================================
232 
233 
234 // ===================================================================
235 
236 #ifdef __GNUC__
237   #pragma GCC diagnostic push
238   #pragma GCC diagnostic ignored "-Wstrict-aliasing"
239 #endif  // __GNUC__
240 // HighLevelWebFeatures
241 
242 // optional bytes bit_vector = 1;
_internal_has_bit_vector()243 inline bool HighLevelWebFeatures::_internal_has_bit_vector() const {
244   bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
245   return value;
246 }
has_bit_vector()247 inline bool HighLevelWebFeatures::has_bit_vector() const {
248   return _internal_has_bit_vector();
249 }
clear_bit_vector()250 inline void HighLevelWebFeatures::clear_bit_vector() {
251   _impl_.bit_vector_.ClearToEmpty();
252   _impl_._has_bits_[0] &= ~0x00000001u;
253 }
bit_vector()254 inline const std::string& HighLevelWebFeatures::bit_vector() const {
255   // @@protoc_insertion_point(field_get:ukm.HighLevelWebFeatures.bit_vector)
256   return _internal_bit_vector();
257 }
258 template <typename ArgT0, typename... ArgT>
259 inline PROTOBUF_ALWAYS_INLINE
set_bit_vector(ArgT0 && arg0,ArgT...args)260 void HighLevelWebFeatures::set_bit_vector(ArgT0&& arg0, ArgT... args) {
261  _impl_._has_bits_[0] |= 0x00000001u;
262  _impl_.bit_vector_.SetBytes(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
263   // @@protoc_insertion_point(field_set:ukm.HighLevelWebFeatures.bit_vector)
264 }
mutable_bit_vector()265 inline std::string* HighLevelWebFeatures::mutable_bit_vector() {
266   std::string* _s = _internal_mutable_bit_vector();
267   // @@protoc_insertion_point(field_mutable:ukm.HighLevelWebFeatures.bit_vector)
268   return _s;
269 }
_internal_bit_vector()270 inline const std::string& HighLevelWebFeatures::_internal_bit_vector() const {
271   return _impl_.bit_vector_.Get();
272 }
_internal_set_bit_vector(const std::string & value)273 inline void HighLevelWebFeatures::_internal_set_bit_vector(const std::string& value) {
274   _impl_._has_bits_[0] |= 0x00000001u;
275   _impl_.bit_vector_.Set(value, GetArenaForAllocation());
276 }
_internal_mutable_bit_vector()277 inline std::string* HighLevelWebFeatures::_internal_mutable_bit_vector() {
278   _impl_._has_bits_[0] |= 0x00000001u;
279   return _impl_.bit_vector_.Mutable(GetArenaForAllocation());
280 }
release_bit_vector()281 inline std::string* HighLevelWebFeatures::release_bit_vector() {
282   // @@protoc_insertion_point(field_release:ukm.HighLevelWebFeatures.bit_vector)
283   if (!_internal_has_bit_vector()) {
284     return nullptr;
285   }
286   _impl_._has_bits_[0] &= ~0x00000001u;
287   auto* p = _impl_.bit_vector_.Release();
288 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
289   if (_impl_.bit_vector_.IsDefault()) {
290     _impl_.bit_vector_.Set("", GetArenaForAllocation());
291   }
292 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
293   return p;
294 }
set_allocated_bit_vector(std::string * bit_vector)295 inline void HighLevelWebFeatures::set_allocated_bit_vector(std::string* bit_vector) {
296   if (bit_vector != nullptr) {
297     _impl_._has_bits_[0] |= 0x00000001u;
298   } else {
299     _impl_._has_bits_[0] &= ~0x00000001u;
300   }
301   _impl_.bit_vector_.SetAllocated(bit_vector, GetArenaForAllocation());
302 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
303   if (_impl_.bit_vector_.IsDefault()) {
304     _impl_.bit_vector_.Set("", GetArenaForAllocation());
305   }
306 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
307   // @@protoc_insertion_point(field_set_allocated:ukm.HighLevelWebFeatures.bit_vector)
308 }
309 
310 // optional int64 source_id = 2;
_internal_has_source_id()311 inline bool HighLevelWebFeatures::_internal_has_source_id() const {
312   bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
313   return value;
314 }
has_source_id()315 inline bool HighLevelWebFeatures::has_source_id() const {
316   return _internal_has_source_id();
317 }
clear_source_id()318 inline void HighLevelWebFeatures::clear_source_id() {
319   _impl_.source_id_ = int64_t{0};
320   _impl_._has_bits_[0] &= ~0x00000002u;
321 }
_internal_source_id()322 inline int64_t HighLevelWebFeatures::_internal_source_id() const {
323   return _impl_.source_id_;
324 }
source_id()325 inline int64_t HighLevelWebFeatures::source_id() const {
326   // @@protoc_insertion_point(field_get:ukm.HighLevelWebFeatures.source_id)
327   return _internal_source_id();
328 }
_internal_set_source_id(int64_t value)329 inline void HighLevelWebFeatures::_internal_set_source_id(int64_t value) {
330   _impl_._has_bits_[0] |= 0x00000002u;
331   _impl_.source_id_ = value;
332 }
set_source_id(int64_t value)333 inline void HighLevelWebFeatures::set_source_id(int64_t value) {
334   _internal_set_source_id(value);
335   // @@protoc_insertion_point(field_set:ukm.HighLevelWebFeatures.source_id)
336 }
337 
338 // optional uint32 encoding_version = 3 [default = 0];
_internal_has_encoding_version()339 inline bool HighLevelWebFeatures::_internal_has_encoding_version() const {
340   bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
341   return value;
342 }
has_encoding_version()343 inline bool HighLevelWebFeatures::has_encoding_version() const {
344   return _internal_has_encoding_version();
345 }
clear_encoding_version()346 inline void HighLevelWebFeatures::clear_encoding_version() {
347   _impl_.encoding_version_ = 0u;
348   _impl_._has_bits_[0] &= ~0x00000004u;
349 }
_internal_encoding_version()350 inline uint32_t HighLevelWebFeatures::_internal_encoding_version() const {
351   return _impl_.encoding_version_;
352 }
encoding_version()353 inline uint32_t HighLevelWebFeatures::encoding_version() const {
354   // @@protoc_insertion_point(field_get:ukm.HighLevelWebFeatures.encoding_version)
355   return _internal_encoding_version();
356 }
_internal_set_encoding_version(uint32_t value)357 inline void HighLevelWebFeatures::_internal_set_encoding_version(uint32_t value) {
358   _impl_._has_bits_[0] |= 0x00000004u;
359   _impl_.encoding_version_ = value;
360 }
set_encoding_version(uint32_t value)361 inline void HighLevelWebFeatures::set_encoding_version(uint32_t value) {
362   _internal_set_encoding_version(value);
363   // @@protoc_insertion_point(field_set:ukm.HighLevelWebFeatures.encoding_version)
364 }
365 
366 #ifdef __GNUC__
367   #pragma GCC diagnostic pop
368 #endif  // __GNUC__
369 
370 // @@protoc_insertion_point(namespace_scope)
371 
372 }  // namespace ukm
373 
374 // @@protoc_insertion_point(global_scope)
375 
376 #include <google/protobuf/port_undef.inc>
377 #endif  // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_ukm_2fweb_5ffeatures_2eproto
378