1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: icing/index/numeric/wildcard-property-storage.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_icing_2findex_2fnumeric_2fwildcard_2dproperty_2dstorage_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_icing_2findex_2fnumeric_2fwildcard_2dproperty_2dstorage_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 // @@protoc_insertion_point(includes)
33 #include <google/protobuf/port_def.inc>
34 #define PROTOBUF_INTERNAL_EXPORT_icing_2findex_2fnumeric_2fwildcard_2dproperty_2dstorage_2eproto
35 PROTOBUF_NAMESPACE_OPEN
36 namespace internal {
37 class AnyMetadata;
38 }  // namespace internal
39 PROTOBUF_NAMESPACE_CLOSE
40 
41 // Internal implementation detail -- do not use these members.
42 struct TableStruct_icing_2findex_2fnumeric_2fwildcard_2dproperty_2dstorage_2eproto {
43   static const ::uint32_t offsets[];
44 };
45 namespace icing {
46 namespace lib {
47 class WildcardPropertyStorage;
48 struct WildcardPropertyStorageDefaultTypeInternal;
49 extern WildcardPropertyStorageDefaultTypeInternal _WildcardPropertyStorage_default_instance_;
50 }  // namespace lib
51 }  // namespace icing
52 PROTOBUF_NAMESPACE_OPEN
53 template<> ::icing::lib::WildcardPropertyStorage* Arena::CreateMaybeMessage<::icing::lib::WildcardPropertyStorage>(Arena*);
54 PROTOBUF_NAMESPACE_CLOSE
55 namespace icing {
56 namespace lib {
57 
58 // ===================================================================
59 
60 class WildcardPropertyStorage final :
61     public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:icing.lib.WildcardPropertyStorage) */ {
62  public:
WildcardPropertyStorage()63   inline WildcardPropertyStorage() : WildcardPropertyStorage(nullptr) {}
64   ~WildcardPropertyStorage() override;
65   explicit PROTOBUF_CONSTEXPR WildcardPropertyStorage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
66 
67   WildcardPropertyStorage(const WildcardPropertyStorage& from);
WildcardPropertyStorage(WildcardPropertyStorage && from)68   WildcardPropertyStorage(WildcardPropertyStorage&& from) noexcept
69     : WildcardPropertyStorage() {
70     *this = ::std::move(from);
71   }
72 
73   inline WildcardPropertyStorage& operator=(const WildcardPropertyStorage& from) {
74     if (this == &from) return *this;
75     CopyFrom(from);
76     return *this;
77   }
78   inline WildcardPropertyStorage& operator=(WildcardPropertyStorage&& from) noexcept {
79     if (this == &from) return *this;
80     if (GetOwningArena() == from.GetOwningArena()
81   #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
82         && GetOwningArena() != nullptr
83   #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
84     ) {
85       InternalSwap(&from);
86     } else {
87       CopyFrom(from);
88     }
89     return *this;
90   }
91 
unknown_fields()92   inline const std::string& unknown_fields() const {
93     return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
94   }
mutable_unknown_fields()95   inline std::string* mutable_unknown_fields() {
96     return _internal_metadata_.mutable_unknown_fields<std::string>();
97   }
98 
default_instance()99   static const WildcardPropertyStorage& default_instance() {
100     return *internal_default_instance();
101   }
internal_default_instance()102   static inline const WildcardPropertyStorage* internal_default_instance() {
103     return reinterpret_cast<const WildcardPropertyStorage*>(
104                &_WildcardPropertyStorage_default_instance_);
105   }
106   static constexpr int kIndexInFileMessages =
107     0;
108 
swap(WildcardPropertyStorage & a,WildcardPropertyStorage & b)109   friend void swap(WildcardPropertyStorage& a, WildcardPropertyStorage& b) {
110     a.Swap(&b);
111   }
Swap(WildcardPropertyStorage * other)112   inline void Swap(WildcardPropertyStorage* other) {
113     if (other == this) return;
114   #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
115     if (GetOwningArena() != nullptr &&
116         GetOwningArena() == other->GetOwningArena()) {
117    #else  // PROTOBUF_FORCE_COPY_IN_SWAP
118     if (GetOwningArena() == other->GetOwningArena()) {
119   #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
120       InternalSwap(other);
121     } else {
122       ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
123     }
124   }
125   void UnsafeArenaSwap(WildcardPropertyStorage* other) {
126     if (other == this) return;
127     GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
128     InternalSwap(other);
129   }
130 
131   // implements Message ----------------------------------------------
132 
133   WildcardPropertyStorage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
134     return CreateMaybeMessage<WildcardPropertyStorage>(arena);
135   }
136   WildcardPropertyStorage* New() const {
137     return New(nullptr);
138   }
139   void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
140   void CopyFrom(const WildcardPropertyStorage& from);
141   void MergeFrom(const WildcardPropertyStorage& from);
142   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
143   bool IsInitialized() const final;
144 
145   size_t ByteSizeLong() const final;
146   const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
147   ::uint8_t* _InternalSerialize(
148       ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
149   int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
150 
151   private:
152   void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
153   void SharedDtor();
154   void SetCachedSize(int size) const;
155   void InternalSwap(WildcardPropertyStorage* other);
156 
157   private:
158   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
159   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
160     return "icing.lib.WildcardPropertyStorage";
161   }
162   protected:
163   explicit WildcardPropertyStorage(::PROTOBUF_NAMESPACE_ID::Arena* arena,
164                        bool is_message_owned = false);
165   public:
166 
167   std::string GetTypeName() const final;
168 
169   // nested types ----------------------------------------------------
170 
171   // accessors -------------------------------------------------------
172 
173   enum : int {
174     kPropertyEntriesFieldNumber = 1,
175   };
176   // repeated string property_entries = 1;
177   int property_entries_size() const;
178   private:
179   int _internal_property_entries_size() const;
180   public:
181   void clear_property_entries();
182   const std::string& property_entries(int index) const;
183   std::string* mutable_property_entries(int index);
184   void set_property_entries(int index, const std::string& value);
185   void set_property_entries(int index, std::string&& value);
186   void set_property_entries(int index, const char* value);
187   void set_property_entries(int index, const char* value, size_t size);
188   std::string* add_property_entries();
189   void add_property_entries(const std::string& value);
190   void add_property_entries(std::string&& value);
191   void add_property_entries(const char* value);
192   void add_property_entries(const char* value, size_t size);
193   const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& property_entries() const;
194   ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_property_entries();
195   private:
196   const std::string& _internal_property_entries(int index) const;
197   std::string* _internal_add_property_entries();
198   public:
199 
200   // @@protoc_insertion_point(class_scope:icing.lib.WildcardPropertyStorage)
201  private:
202   class _Internal;
203 
204   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
205   typedef void InternalArenaConstructable_;
206   typedef void DestructorSkippable_;
207   struct Impl_ {
208     ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> property_entries_;
209     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
210   };
211   union { Impl_ _impl_; };
212   friend struct ::TableStruct_icing_2findex_2fnumeric_2fwildcard_2dproperty_2dstorage_2eproto;
213 };
214 // ===================================================================
215 
216 
217 // ===================================================================
218 
219 #ifdef __GNUC__
220   #pragma GCC diagnostic push
221   #pragma GCC diagnostic ignored "-Wstrict-aliasing"
222 #endif  // __GNUC__
223 // WildcardPropertyStorage
224 
225 // repeated string property_entries = 1;
_internal_property_entries_size()226 inline int WildcardPropertyStorage::_internal_property_entries_size() const {
227   return _impl_.property_entries_.size();
228 }
property_entries_size()229 inline int WildcardPropertyStorage::property_entries_size() const {
230   return _internal_property_entries_size();
231 }
clear_property_entries()232 inline void WildcardPropertyStorage::clear_property_entries() {
233   _impl_.property_entries_.Clear();
234 }
add_property_entries()235 inline std::string* WildcardPropertyStorage::add_property_entries() {
236   std::string* _s = _internal_add_property_entries();
237   // @@protoc_insertion_point(field_add_mutable:icing.lib.WildcardPropertyStorage.property_entries)
238   return _s;
239 }
_internal_property_entries(int index)240 inline const std::string& WildcardPropertyStorage::_internal_property_entries(int index) const {
241   return _impl_.property_entries_.Get(index);
242 }
property_entries(int index)243 inline const std::string& WildcardPropertyStorage::property_entries(int index) const {
244   // @@protoc_insertion_point(field_get:icing.lib.WildcardPropertyStorage.property_entries)
245   return _internal_property_entries(index);
246 }
mutable_property_entries(int index)247 inline std::string* WildcardPropertyStorage::mutable_property_entries(int index) {
248   // @@protoc_insertion_point(field_mutable:icing.lib.WildcardPropertyStorage.property_entries)
249   return _impl_.property_entries_.Mutable(index);
250 }
set_property_entries(int index,const std::string & value)251 inline void WildcardPropertyStorage::set_property_entries(int index, const std::string& value) {
252   _impl_.property_entries_.Mutable(index)->assign(value);
253   // @@protoc_insertion_point(field_set:icing.lib.WildcardPropertyStorage.property_entries)
254 }
set_property_entries(int index,std::string && value)255 inline void WildcardPropertyStorage::set_property_entries(int index, std::string&& value) {
256   _impl_.property_entries_.Mutable(index)->assign(std::move(value));
257   // @@protoc_insertion_point(field_set:icing.lib.WildcardPropertyStorage.property_entries)
258 }
set_property_entries(int index,const char * value)259 inline void WildcardPropertyStorage::set_property_entries(int index, const char* value) {
260   GOOGLE_DCHECK(value != nullptr);
261   _impl_.property_entries_.Mutable(index)->assign(value);
262   // @@protoc_insertion_point(field_set_char:icing.lib.WildcardPropertyStorage.property_entries)
263 }
set_property_entries(int index,const char * value,size_t size)264 inline void WildcardPropertyStorage::set_property_entries(int index, const char* value, size_t size) {
265   _impl_.property_entries_.Mutable(index)->assign(
266     reinterpret_cast<const char*>(value), size);
267   // @@protoc_insertion_point(field_set_pointer:icing.lib.WildcardPropertyStorage.property_entries)
268 }
_internal_add_property_entries()269 inline std::string* WildcardPropertyStorage::_internal_add_property_entries() {
270   return _impl_.property_entries_.Add();
271 }
add_property_entries(const std::string & value)272 inline void WildcardPropertyStorage::add_property_entries(const std::string& value) {
273   _impl_.property_entries_.Add()->assign(value);
274   // @@protoc_insertion_point(field_add:icing.lib.WildcardPropertyStorage.property_entries)
275 }
add_property_entries(std::string && value)276 inline void WildcardPropertyStorage::add_property_entries(std::string&& value) {
277   _impl_.property_entries_.Add(std::move(value));
278   // @@protoc_insertion_point(field_add:icing.lib.WildcardPropertyStorage.property_entries)
279 }
add_property_entries(const char * value)280 inline void WildcardPropertyStorage::add_property_entries(const char* value) {
281   GOOGLE_DCHECK(value != nullptr);
282   _impl_.property_entries_.Add()->assign(value);
283   // @@protoc_insertion_point(field_add_char:icing.lib.WildcardPropertyStorage.property_entries)
284 }
add_property_entries(const char * value,size_t size)285 inline void WildcardPropertyStorage::add_property_entries(const char* value, size_t size) {
286   _impl_.property_entries_.Add()->assign(reinterpret_cast<const char*>(value), size);
287   // @@protoc_insertion_point(field_add_pointer:icing.lib.WildcardPropertyStorage.property_entries)
288 }
289 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
property_entries()290 WildcardPropertyStorage::property_entries() const {
291   // @@protoc_insertion_point(field_list:icing.lib.WildcardPropertyStorage.property_entries)
292   return _impl_.property_entries_;
293 }
294 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
mutable_property_entries()295 WildcardPropertyStorage::mutable_property_entries() {
296   // @@protoc_insertion_point(field_mutable_list:icing.lib.WildcardPropertyStorage.property_entries)
297   return &_impl_.property_entries_;
298 }
299 
300 #ifdef __GNUC__
301   #pragma GCC diagnostic pop
302 #endif  // __GNUC__
303 
304 // @@protoc_insertion_point(namespace_scope)
305 
306 }  // namespace lib
307 }  // namespace icing
308 
309 // @@protoc_insertion_point(global_scope)
310 
311 #include <google/protobuf/port_undef.inc>
312 #endif  // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_icing_2findex_2fnumeric_2fwildcard_2dproperty_2dstorage_2eproto
313