1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: reporting_info.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_reporting_5finfo_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_reporting_5finfo_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_reporting_5finfo_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_reporting_5finfo_2eproto {
42   static const uint32_t offsets[];
43 };
44 namespace metrics {
45 class ReportingInfo;
46 struct ReportingInfoDefaultTypeInternal;
47 extern ReportingInfoDefaultTypeInternal _ReportingInfo_default_instance_;
48 }  // namespace metrics
49 PROTOBUF_NAMESPACE_OPEN
50 template<> ::metrics::ReportingInfo* Arena::CreateMaybeMessage<::metrics::ReportingInfo>(Arena*);
51 PROTOBUF_NAMESPACE_CLOSE
52 namespace metrics {
53 
54 // ===================================================================
55 
56 class ReportingInfo final :
57     public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:metrics.ReportingInfo) */ {
58  public:
ReportingInfo()59   inline ReportingInfo() : ReportingInfo(nullptr) {}
60   ~ReportingInfo() override;
61   explicit PROTOBUF_CONSTEXPR ReportingInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
62 
63   ReportingInfo(const ReportingInfo& from);
ReportingInfo(ReportingInfo && from)64   ReportingInfo(ReportingInfo&& from) noexcept
65     : ReportingInfo() {
66     *this = ::std::move(from);
67   }
68 
69   inline ReportingInfo& operator=(const ReportingInfo& from) {
70     CopyFrom(from);
71     return *this;
72   }
73   inline ReportingInfo& operator=(ReportingInfo&& 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 ReportingInfo& default_instance() {
95     return *internal_default_instance();
96   }
internal_default_instance()97   static inline const ReportingInfo* internal_default_instance() {
98     return reinterpret_cast<const ReportingInfo*>(
99                &_ReportingInfo_default_instance_);
100   }
101   static constexpr int kIndexInFileMessages =
102     0;
103 
swap(ReportingInfo & a,ReportingInfo & b)104   friend void swap(ReportingInfo& a, ReportingInfo& b) {
105     a.Swap(&b);
106   }
Swap(ReportingInfo * other)107   PROTOBUF_NOINLINE void Swap(ReportingInfo* 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(ReportingInfo* other) {
121     if (other == this) return;
122     GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
123     InternalSwap(other);
124   }
125 
126   // implements Message ----------------------------------------------
127 
128   ReportingInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
129     return CreateMaybeMessage<ReportingInfo>(arena);
130   }
131   void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
132   void CopyFrom(const ReportingInfo& from);
133   void MergeFrom(const ReportingInfo& 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(ReportingInfo* other);
148 
149   private:
150   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
151   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
152     return "metrics.ReportingInfo";
153   }
154   protected:
155   explicit ReportingInfo(::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     kAttemptCountFieldNumber = 1,
167     kLastResponseCodeFieldNumber = 2,
168     kLastErrorCodeFieldNumber = 3,
169     kLastAttemptWasHttpsFieldNumber = 4,
170   };
171   // optional int32 attempt_count = 1;
172   bool has_attempt_count() const;
173   private:
174   bool _internal_has_attempt_count() const;
175   public:
176   void clear_attempt_count();
177   int32_t attempt_count() const;
178   void set_attempt_count(int32_t value);
179   private:
180   int32_t _internal_attempt_count() const;
181   void _internal_set_attempt_count(int32_t value);
182   public:
183 
184   // optional int32 last_response_code = 2;
185   bool has_last_response_code() const;
186   private:
187   bool _internal_has_last_response_code() const;
188   public:
189   void clear_last_response_code();
190   int32_t last_response_code() const;
191   void set_last_response_code(int32_t value);
192   private:
193   int32_t _internal_last_response_code() const;
194   void _internal_set_last_response_code(int32_t value);
195   public:
196 
197   // optional int32 last_error_code = 3;
198   bool has_last_error_code() const;
199   private:
200   bool _internal_has_last_error_code() const;
201   public:
202   void clear_last_error_code();
203   int32_t last_error_code() const;
204   void set_last_error_code(int32_t value);
205   private:
206   int32_t _internal_last_error_code() const;
207   void _internal_set_last_error_code(int32_t value);
208   public:
209 
210   // optional bool last_attempt_was_https = 4;
211   bool has_last_attempt_was_https() const;
212   private:
213   bool _internal_has_last_attempt_was_https() const;
214   public:
215   void clear_last_attempt_was_https();
216   bool last_attempt_was_https() const;
217   void set_last_attempt_was_https(bool value);
218   private:
219   bool _internal_last_attempt_was_https() const;
220   void _internal_set_last_attempt_was_https(bool value);
221   public:
222 
223   // @@protoc_insertion_point(class_scope:metrics.ReportingInfo)
224  private:
225   class _Internal;
226 
227   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
228   typedef void InternalArenaConstructable_;
229   typedef void DestructorSkippable_;
230   struct Impl_ {
231     ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
232     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
233     int32_t attempt_count_;
234     int32_t last_response_code_;
235     int32_t last_error_code_;
236     bool last_attempt_was_https_;
237   };
238   union { Impl_ _impl_; };
239   friend struct ::TableStruct_reporting_5finfo_2eproto;
240 };
241 // ===================================================================
242 
243 
244 // ===================================================================
245 
246 #ifdef __GNUC__
247   #pragma GCC diagnostic push
248   #pragma GCC diagnostic ignored "-Wstrict-aliasing"
249 #endif  // __GNUC__
250 // ReportingInfo
251 
252 // optional int32 attempt_count = 1;
_internal_has_attempt_count()253 inline bool ReportingInfo::_internal_has_attempt_count() const {
254   bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
255   return value;
256 }
has_attempt_count()257 inline bool ReportingInfo::has_attempt_count() const {
258   return _internal_has_attempt_count();
259 }
clear_attempt_count()260 inline void ReportingInfo::clear_attempt_count() {
261   _impl_.attempt_count_ = 0;
262   _impl_._has_bits_[0] &= ~0x00000001u;
263 }
_internal_attempt_count()264 inline int32_t ReportingInfo::_internal_attempt_count() const {
265   return _impl_.attempt_count_;
266 }
attempt_count()267 inline int32_t ReportingInfo::attempt_count() const {
268   // @@protoc_insertion_point(field_get:metrics.ReportingInfo.attempt_count)
269   return _internal_attempt_count();
270 }
_internal_set_attempt_count(int32_t value)271 inline void ReportingInfo::_internal_set_attempt_count(int32_t value) {
272   _impl_._has_bits_[0] |= 0x00000001u;
273   _impl_.attempt_count_ = value;
274 }
set_attempt_count(int32_t value)275 inline void ReportingInfo::set_attempt_count(int32_t value) {
276   _internal_set_attempt_count(value);
277   // @@protoc_insertion_point(field_set:metrics.ReportingInfo.attempt_count)
278 }
279 
280 // optional int32 last_response_code = 2;
_internal_has_last_response_code()281 inline bool ReportingInfo::_internal_has_last_response_code() const {
282   bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
283   return value;
284 }
has_last_response_code()285 inline bool ReportingInfo::has_last_response_code() const {
286   return _internal_has_last_response_code();
287 }
clear_last_response_code()288 inline void ReportingInfo::clear_last_response_code() {
289   _impl_.last_response_code_ = 0;
290   _impl_._has_bits_[0] &= ~0x00000002u;
291 }
_internal_last_response_code()292 inline int32_t ReportingInfo::_internal_last_response_code() const {
293   return _impl_.last_response_code_;
294 }
last_response_code()295 inline int32_t ReportingInfo::last_response_code() const {
296   // @@protoc_insertion_point(field_get:metrics.ReportingInfo.last_response_code)
297   return _internal_last_response_code();
298 }
_internal_set_last_response_code(int32_t value)299 inline void ReportingInfo::_internal_set_last_response_code(int32_t value) {
300   _impl_._has_bits_[0] |= 0x00000002u;
301   _impl_.last_response_code_ = value;
302 }
set_last_response_code(int32_t value)303 inline void ReportingInfo::set_last_response_code(int32_t value) {
304   _internal_set_last_response_code(value);
305   // @@protoc_insertion_point(field_set:metrics.ReportingInfo.last_response_code)
306 }
307 
308 // optional int32 last_error_code = 3;
_internal_has_last_error_code()309 inline bool ReportingInfo::_internal_has_last_error_code() const {
310   bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
311   return value;
312 }
has_last_error_code()313 inline bool ReportingInfo::has_last_error_code() const {
314   return _internal_has_last_error_code();
315 }
clear_last_error_code()316 inline void ReportingInfo::clear_last_error_code() {
317   _impl_.last_error_code_ = 0;
318   _impl_._has_bits_[0] &= ~0x00000004u;
319 }
_internal_last_error_code()320 inline int32_t ReportingInfo::_internal_last_error_code() const {
321   return _impl_.last_error_code_;
322 }
last_error_code()323 inline int32_t ReportingInfo::last_error_code() const {
324   // @@protoc_insertion_point(field_get:metrics.ReportingInfo.last_error_code)
325   return _internal_last_error_code();
326 }
_internal_set_last_error_code(int32_t value)327 inline void ReportingInfo::_internal_set_last_error_code(int32_t value) {
328   _impl_._has_bits_[0] |= 0x00000004u;
329   _impl_.last_error_code_ = value;
330 }
set_last_error_code(int32_t value)331 inline void ReportingInfo::set_last_error_code(int32_t value) {
332   _internal_set_last_error_code(value);
333   // @@protoc_insertion_point(field_set:metrics.ReportingInfo.last_error_code)
334 }
335 
336 // optional bool last_attempt_was_https = 4;
_internal_has_last_attempt_was_https()337 inline bool ReportingInfo::_internal_has_last_attempt_was_https() const {
338   bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
339   return value;
340 }
has_last_attempt_was_https()341 inline bool ReportingInfo::has_last_attempt_was_https() const {
342   return _internal_has_last_attempt_was_https();
343 }
clear_last_attempt_was_https()344 inline void ReportingInfo::clear_last_attempt_was_https() {
345   _impl_.last_attempt_was_https_ = false;
346   _impl_._has_bits_[0] &= ~0x00000008u;
347 }
_internal_last_attempt_was_https()348 inline bool ReportingInfo::_internal_last_attempt_was_https() const {
349   return _impl_.last_attempt_was_https_;
350 }
last_attempt_was_https()351 inline bool ReportingInfo::last_attempt_was_https() const {
352   // @@protoc_insertion_point(field_get:metrics.ReportingInfo.last_attempt_was_https)
353   return _internal_last_attempt_was_https();
354 }
_internal_set_last_attempt_was_https(bool value)355 inline void ReportingInfo::_internal_set_last_attempt_was_https(bool value) {
356   _impl_._has_bits_[0] |= 0x00000008u;
357   _impl_.last_attempt_was_https_ = value;
358 }
set_last_attempt_was_https(bool value)359 inline void ReportingInfo::set_last_attempt_was_https(bool value) {
360   _internal_set_last_attempt_was_https(value);
361   // @@protoc_insertion_point(field_set:metrics.ReportingInfo.last_attempt_was_https)
362 }
363 
364 #ifdef __GNUC__
365   #pragma GCC diagnostic pop
366 #endif  // __GNUC__
367 
368 // @@protoc_insertion_point(namespace_scope)
369 
370 }  // namespace metrics
371 
372 // @@protoc_insertion_point(global_scope)
373 
374 #include <google/protobuf/port_undef.inc>
375 #endif  // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_reporting_5finfo_2eproto
376