1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: icing/proto/internal/optimize.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_icing_2fproto_2finternal_2foptimize_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_icing_2fproto_2finternal_2foptimize_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_2fproto_2finternal_2foptimize_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_2fproto_2finternal_2foptimize_2eproto {
43   static const ::uint32_t offsets[];
44 };
45 namespace icing {
46 namespace lib {
47 class OptimizeStatusProto;
48 struct OptimizeStatusProtoDefaultTypeInternal;
49 extern OptimizeStatusProtoDefaultTypeInternal _OptimizeStatusProto_default_instance_;
50 }  // namespace lib
51 }  // namespace icing
52 PROTOBUF_NAMESPACE_OPEN
53 template<> ::icing::lib::OptimizeStatusProto* Arena::CreateMaybeMessage<::icing::lib::OptimizeStatusProto>(Arena*);
54 PROTOBUF_NAMESPACE_CLOSE
55 namespace icing {
56 namespace lib {
57 
58 // ===================================================================
59 
60 class OptimizeStatusProto final :
61     public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:icing.lib.OptimizeStatusProto) */ {
62  public:
OptimizeStatusProto()63   inline OptimizeStatusProto() : OptimizeStatusProto(nullptr) {}
64   ~OptimizeStatusProto() override;
65   explicit PROTOBUF_CONSTEXPR OptimizeStatusProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
66 
67   OptimizeStatusProto(const OptimizeStatusProto& from);
OptimizeStatusProto(OptimizeStatusProto && from)68   OptimizeStatusProto(OptimizeStatusProto&& from) noexcept
69     : OptimizeStatusProto() {
70     *this = ::std::move(from);
71   }
72 
73   inline OptimizeStatusProto& operator=(const OptimizeStatusProto& from) {
74     if (this == &from) return *this;
75     CopyFrom(from);
76     return *this;
77   }
78   inline OptimizeStatusProto& operator=(OptimizeStatusProto&& 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 OptimizeStatusProto& default_instance() {
100     return *internal_default_instance();
101   }
internal_default_instance()102   static inline const OptimizeStatusProto* internal_default_instance() {
103     return reinterpret_cast<const OptimizeStatusProto*>(
104                &_OptimizeStatusProto_default_instance_);
105   }
106   static constexpr int kIndexInFileMessages =
107     0;
108 
swap(OptimizeStatusProto & a,OptimizeStatusProto & b)109   friend void swap(OptimizeStatusProto& a, OptimizeStatusProto& b) {
110     a.Swap(&b);
111   }
Swap(OptimizeStatusProto * other)112   inline void Swap(OptimizeStatusProto* 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(OptimizeStatusProto* other) {
126     if (other == this) return;
127     GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
128     InternalSwap(other);
129   }
130 
131   // implements Message ----------------------------------------------
132 
133   OptimizeStatusProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
134     return CreateMaybeMessage<OptimizeStatusProto>(arena);
135   }
136   OptimizeStatusProto* New() const {
137     return New(nullptr);
138   }
139   void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
140   void CopyFrom(const OptimizeStatusProto& from);
141   void MergeFrom(const OptimizeStatusProto& 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(OptimizeStatusProto* other);
156 
157   private:
158   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
159   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
160     return "icing.lib.OptimizeStatusProto";
161   }
162   protected:
163   explicit OptimizeStatusProto(::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     kLastSuccessfulOptimizeRunTimeMsFieldNumber = 1,
175   };
176   // optional int64 last_successful_optimize_run_time_ms = 1;
177   bool has_last_successful_optimize_run_time_ms() const;
178   private:
179   bool _internal_has_last_successful_optimize_run_time_ms() const;
180   public:
181   void clear_last_successful_optimize_run_time_ms();
182   ::int64_t last_successful_optimize_run_time_ms() const;
183   void set_last_successful_optimize_run_time_ms(::int64_t value);
184   private:
185   ::int64_t _internal_last_successful_optimize_run_time_ms() const;
186   void _internal_set_last_successful_optimize_run_time_ms(::int64_t value);
187   public:
188 
189   // @@protoc_insertion_point(class_scope:icing.lib.OptimizeStatusProto)
190  private:
191   class _Internal;
192 
193   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
194   typedef void InternalArenaConstructable_;
195   typedef void DestructorSkippable_;
196   struct Impl_ {
197     ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
198     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
199     ::int64_t last_successful_optimize_run_time_ms_;
200   };
201   union { Impl_ _impl_; };
202   friend struct ::TableStruct_icing_2fproto_2finternal_2foptimize_2eproto;
203 };
204 // ===================================================================
205 
206 
207 // ===================================================================
208 
209 #ifdef __GNUC__
210   #pragma GCC diagnostic push
211   #pragma GCC diagnostic ignored "-Wstrict-aliasing"
212 #endif  // __GNUC__
213 // OptimizeStatusProto
214 
215 // optional int64 last_successful_optimize_run_time_ms = 1;
_internal_has_last_successful_optimize_run_time_ms()216 inline bool OptimizeStatusProto::_internal_has_last_successful_optimize_run_time_ms() const {
217   bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
218   return value;
219 }
has_last_successful_optimize_run_time_ms()220 inline bool OptimizeStatusProto::has_last_successful_optimize_run_time_ms() const {
221   return _internal_has_last_successful_optimize_run_time_ms();
222 }
clear_last_successful_optimize_run_time_ms()223 inline void OptimizeStatusProto::clear_last_successful_optimize_run_time_ms() {
224   _impl_.last_successful_optimize_run_time_ms_ = ::int64_t{0};
225   _impl_._has_bits_[0] &= ~0x00000001u;
226 }
_internal_last_successful_optimize_run_time_ms()227 inline ::int64_t OptimizeStatusProto::_internal_last_successful_optimize_run_time_ms() const {
228   return _impl_.last_successful_optimize_run_time_ms_;
229 }
last_successful_optimize_run_time_ms()230 inline ::int64_t OptimizeStatusProto::last_successful_optimize_run_time_ms() const {
231   // @@protoc_insertion_point(field_get:icing.lib.OptimizeStatusProto.last_successful_optimize_run_time_ms)
232   return _internal_last_successful_optimize_run_time_ms();
233 }
_internal_set_last_successful_optimize_run_time_ms(::int64_t value)234 inline void OptimizeStatusProto::_internal_set_last_successful_optimize_run_time_ms(::int64_t value) {
235   _impl_._has_bits_[0] |= 0x00000001u;
236   _impl_.last_successful_optimize_run_time_ms_ = value;
237 }
set_last_successful_optimize_run_time_ms(::int64_t value)238 inline void OptimizeStatusProto::set_last_successful_optimize_run_time_ms(::int64_t value) {
239   _internal_set_last_successful_optimize_run_time_ms(value);
240   // @@protoc_insertion_point(field_set:icing.lib.OptimizeStatusProto.last_successful_optimize_run_time_ms)
241 }
242 
243 #ifdef __GNUC__
244   #pragma GCC diagnostic pop
245 #endif  // __GNUC__
246 
247 // @@protoc_insertion_point(namespace_scope)
248 
249 }  // namespace lib
250 }  // namespace icing
251 
252 // @@protoc_insertion_point(global_scope)
253 
254 #include <google/protobuf/port_undef.inc>
255 #endif  // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_icing_2fproto_2finternal_2foptimize_2eproto
256