1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: icing/proto/term.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_icing_2fproto_2fterm_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_icing_2fproto_2fterm_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_icing_2fproto_2fterm_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_icing_2fproto_2fterm_2eproto {
44   static const ::uint32_t offsets[];
45 };
46 namespace icing {
47 namespace lib {
48 class TermMatchType;
49 struct TermMatchTypeDefaultTypeInternal;
50 extern TermMatchTypeDefaultTypeInternal _TermMatchType_default_instance_;
51 }  // namespace lib
52 }  // namespace icing
53 PROTOBUF_NAMESPACE_OPEN
54 template<> ::icing::lib::TermMatchType* Arena::CreateMaybeMessage<::icing::lib::TermMatchType>(Arena*);
55 PROTOBUF_NAMESPACE_CLOSE
56 namespace icing {
57 namespace lib {
58 
59 enum TermMatchType_Code : int {
60   TermMatchType_Code_UNKNOWN = 0,
61   TermMatchType_Code_EXACT_ONLY = 1,
62   TermMatchType_Code_PREFIX = 2,
63   TermMatchType_Code_STEMMING = 3
64 };
65 bool TermMatchType_Code_IsValid(int value);
66 constexpr TermMatchType_Code TermMatchType_Code_Code_MIN = TermMatchType_Code_UNKNOWN;
67 constexpr TermMatchType_Code TermMatchType_Code_Code_MAX = TermMatchType_Code_STEMMING;
68 constexpr int TermMatchType_Code_Code_ARRAYSIZE = TermMatchType_Code_Code_MAX + 1;
69 
70 const std::string& TermMatchType_Code_Name(TermMatchType_Code value);
71 template<typename T>
TermMatchType_Code_Name(T enum_t_value)72 inline const std::string& TermMatchType_Code_Name(T enum_t_value) {
73   static_assert(::std::is_same<T, TermMatchType_Code>::value ||
74     ::std::is_integral<T>::value,
75     "Incorrect type passed to function TermMatchType_Code_Name.");
76   return TermMatchType_Code_Name(static_cast<TermMatchType_Code>(enum_t_value));
77 }
78 bool TermMatchType_Code_Parse(
79     ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, TermMatchType_Code* value);
80 // ===================================================================
81 
82 class TermMatchType final :
83     public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:icing.lib.TermMatchType) */ {
84  public:
TermMatchType()85   inline TermMatchType() : TermMatchType(nullptr) {}
86   ~TermMatchType() override;
87   explicit PROTOBUF_CONSTEXPR TermMatchType(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
88 
89   TermMatchType(const TermMatchType& from);
TermMatchType(TermMatchType && from)90   TermMatchType(TermMatchType&& from) noexcept
91     : TermMatchType() {
92     *this = ::std::move(from);
93   }
94 
95   inline TermMatchType& operator=(const TermMatchType& from) {
96     if (this == &from) return *this;
97     CopyFrom(from);
98     return *this;
99   }
100   inline TermMatchType& operator=(TermMatchType&& from) noexcept {
101     if (this == &from) return *this;
102     if (GetOwningArena() == from.GetOwningArena()
103   #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
104         && GetOwningArena() != nullptr
105   #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
106     ) {
107       InternalSwap(&from);
108     } else {
109       CopyFrom(from);
110     }
111     return *this;
112   }
113 
unknown_fields()114   inline const std::string& unknown_fields() const {
115     return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
116   }
mutable_unknown_fields()117   inline std::string* mutable_unknown_fields() {
118     return _internal_metadata_.mutable_unknown_fields<std::string>();
119   }
120 
default_instance()121   static const TermMatchType& default_instance() {
122     return *internal_default_instance();
123   }
internal_default_instance()124   static inline const TermMatchType* internal_default_instance() {
125     return reinterpret_cast<const TermMatchType*>(
126                &_TermMatchType_default_instance_);
127   }
128   static constexpr int kIndexInFileMessages =
129     0;
130 
swap(TermMatchType & a,TermMatchType & b)131   friend void swap(TermMatchType& a, TermMatchType& b) {
132     a.Swap(&b);
133   }
Swap(TermMatchType * other)134   inline void Swap(TermMatchType* other) {
135     if (other == this) return;
136   #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
137     if (GetOwningArena() != nullptr &&
138         GetOwningArena() == other->GetOwningArena()) {
139    #else  // PROTOBUF_FORCE_COPY_IN_SWAP
140     if (GetOwningArena() == other->GetOwningArena()) {
141   #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
142       InternalSwap(other);
143     } else {
144       ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
145     }
146   }
147   void UnsafeArenaSwap(TermMatchType* other) {
148     if (other == this) return;
149     GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
150     InternalSwap(other);
151   }
152 
153   // implements Message ----------------------------------------------
154 
155   TermMatchType* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
156     return CreateMaybeMessage<TermMatchType>(arena);
157   }
158   TermMatchType* New() const {
159     return New(nullptr);
160   }
161   void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
162   void CopyFrom(const TermMatchType& from);
163   void MergeFrom(const TermMatchType& from);
164   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
165   bool IsInitialized() const final;
166 
167   size_t ByteSizeLong() const final;
168   const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
169   ::uint8_t* _InternalSerialize(
170       ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
171   int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
172 
173   private:
174   void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
175   void SharedDtor();
176   void SetCachedSize(int size) const;
177   void InternalSwap(TermMatchType* other);
178 
179   private:
180   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
181   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
182     return "icing.lib.TermMatchType";
183   }
184   protected:
185   explicit TermMatchType(::PROTOBUF_NAMESPACE_ID::Arena* arena,
186                        bool is_message_owned = false);
187   public:
188 
189   std::string GetTypeName() const final;
190 
191   // nested types ----------------------------------------------------
192 
193   typedef TermMatchType_Code Code;
194   static constexpr Code UNKNOWN =
195     TermMatchType_Code_UNKNOWN;
196   static constexpr Code EXACT_ONLY =
197     TermMatchType_Code_EXACT_ONLY;
198   static constexpr Code PREFIX =
199     TermMatchType_Code_PREFIX;
200   static constexpr Code STEMMING =
201     TermMatchType_Code_STEMMING;
202   static inline bool Code_IsValid(int value) {
203     return TermMatchType_Code_IsValid(value);
204   }
205   static constexpr Code Code_MIN =
206     TermMatchType_Code_Code_MIN;
207   static constexpr Code Code_MAX =
208     TermMatchType_Code_Code_MAX;
209   static constexpr int Code_ARRAYSIZE =
210     TermMatchType_Code_Code_ARRAYSIZE;
211   template<typename T>
212   static inline const std::string& Code_Name(T enum_t_value) {
213     static_assert(::std::is_same<T, Code>::value ||
214       ::std::is_integral<T>::value,
215       "Incorrect type passed to function Code_Name.");
216     return TermMatchType_Code_Name(enum_t_value);
217   }
218   static inline bool Code_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
219       Code* value) {
220     return TermMatchType_Code_Parse(name, value);
221   }
222 
223   // accessors -------------------------------------------------------
224 
225   // @@protoc_insertion_point(class_scope:icing.lib.TermMatchType)
226  private:
227   class _Internal;
228 
229   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
230   typedef void InternalArenaConstructable_;
231   typedef void DestructorSkippable_;
232   struct Impl_ {
233     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
234   };
235   union { Impl_ _impl_; };
236   friend struct ::TableStruct_icing_2fproto_2fterm_2eproto;
237 };
238 // ===================================================================
239 
240 
241 // ===================================================================
242 
243 #ifdef __GNUC__
244   #pragma GCC diagnostic push
245   #pragma GCC diagnostic ignored "-Wstrict-aliasing"
246 #endif  // __GNUC__
247 // TermMatchType
248 
249 #ifdef __GNUC__
250   #pragma GCC diagnostic pop
251 #endif  // __GNUC__
252 
253 // @@protoc_insertion_point(namespace_scope)
254 
255 }  // namespace lib
256 }  // namespace icing
257 
258 PROTOBUF_NAMESPACE_OPEN
259 
260 template <> struct is_proto_enum< ::icing::lib::TermMatchType_Code> : ::std::true_type {};
261 
262 PROTOBUF_NAMESPACE_CLOSE
263 
264 // @@protoc_insertion_point(global_scope)
265 
266 #include <google/protobuf/port_undef.inc>
267 #endif  // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_icing_2fproto_2fterm_2eproto
268