1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: frameworks/base/cmds/incidentd/src/report_file.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_frameworks_2fbase_2fcmds_2fincidentd_2fsrc_2freport_5ffile_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_frameworks_2fbase_2fcmds_2fincidentd_2fsrc_2freport_5ffile_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 "frameworks/base/core/proto/android/os/metadata.pb.h"
33 // @@protoc_insertion_point(includes)
34 #include <google/protobuf/port_def.inc>
35 #define PROTOBUF_INTERNAL_EXPORT_frameworks_2fbase_2fcmds_2fincidentd_2fsrc_2freport_5ffile_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_frameworks_2fbase_2fcmds_2fincidentd_2fsrc_2freport_5ffile_2eproto {
44   static const ::uint32_t offsets[];
45 };
46 namespace android {
47 namespace os {
48 namespace incidentd {
49 class ReportFileProto;
50 struct ReportFileProtoDefaultTypeInternal;
51 extern ReportFileProtoDefaultTypeInternal _ReportFileProto_default_instance_;
52 class ReportFileProto_Report;
53 struct ReportFileProto_ReportDefaultTypeInternal;
54 extern ReportFileProto_ReportDefaultTypeInternal _ReportFileProto_Report_default_instance_;
55 }  // namespace incidentd
56 }  // namespace os
57 }  // namespace android
58 PROTOBUF_NAMESPACE_OPEN
59 template<> ::android::os::incidentd::ReportFileProto* Arena::CreateMaybeMessage<::android::os::incidentd::ReportFileProto>(Arena*);
60 template<> ::android::os::incidentd::ReportFileProto_Report* Arena::CreateMaybeMessage<::android::os::incidentd::ReportFileProto_Report>(Arena*);
61 PROTOBUF_NAMESPACE_CLOSE
62 namespace android {
63 namespace os {
64 namespace incidentd {
65 
66 // ===================================================================
67 
68 class ReportFileProto_Report final :
69     public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:android.os.incidentd.ReportFileProto.Report) */ {
70  public:
ReportFileProto_Report()71   inline ReportFileProto_Report() : ReportFileProto_Report(nullptr) {}
72   ~ReportFileProto_Report() override;
73   explicit PROTOBUF_CONSTEXPR ReportFileProto_Report(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
74 
75   ReportFileProto_Report(const ReportFileProto_Report& from);
ReportFileProto_Report(ReportFileProto_Report && from)76   ReportFileProto_Report(ReportFileProto_Report&& from) noexcept
77     : ReportFileProto_Report() {
78     *this = ::std::move(from);
79   }
80 
81   inline ReportFileProto_Report& operator=(const ReportFileProto_Report& from) {
82     if (this == &from) return *this;
83     CopyFrom(from);
84     return *this;
85   }
86   inline ReportFileProto_Report& operator=(ReportFileProto_Report&& from) noexcept {
87     if (this == &from) return *this;
88     if (GetOwningArena() == from.GetOwningArena()
89   #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
90         && GetOwningArena() != nullptr
91   #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
92     ) {
93       InternalSwap(&from);
94     } else {
95       CopyFrom(from);
96     }
97     return *this;
98   }
99 
unknown_fields()100   inline const std::string& unknown_fields() const {
101     return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
102   }
mutable_unknown_fields()103   inline std::string* mutable_unknown_fields() {
104     return _internal_metadata_.mutable_unknown_fields<std::string>();
105   }
106 
default_instance()107   static const ReportFileProto_Report& default_instance() {
108     return *internal_default_instance();
109   }
internal_default_instance()110   static inline const ReportFileProto_Report* internal_default_instance() {
111     return reinterpret_cast<const ReportFileProto_Report*>(
112                &_ReportFileProto_Report_default_instance_);
113   }
114   static constexpr int kIndexInFileMessages =
115     0;
116 
swap(ReportFileProto_Report & a,ReportFileProto_Report & b)117   friend void swap(ReportFileProto_Report& a, ReportFileProto_Report& b) {
118     a.Swap(&b);
119   }
Swap(ReportFileProto_Report * other)120   inline void Swap(ReportFileProto_Report* other) {
121     if (other == this) return;
122   #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
123     if (GetOwningArena() != nullptr &&
124         GetOwningArena() == other->GetOwningArena()) {
125    #else  // PROTOBUF_FORCE_COPY_IN_SWAP
126     if (GetOwningArena() == other->GetOwningArena()) {
127   #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
128       InternalSwap(other);
129     } else {
130       ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
131     }
132   }
133   void UnsafeArenaSwap(ReportFileProto_Report* other) {
134     if (other == this) return;
135     GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
136     InternalSwap(other);
137   }
138 
139   // implements Message ----------------------------------------------
140 
141   ReportFileProto_Report* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
142     return CreateMaybeMessage<ReportFileProto_Report>(arena);
143   }
144   ReportFileProto_Report* New() const {
145     return New(nullptr);
146   }
147   void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
148   void CopyFrom(const ReportFileProto_Report& from);
149   void MergeFrom(const ReportFileProto_Report& from);
150   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
151   bool IsInitialized() const final;
152 
153   size_t ByteSizeLong() const final;
154   const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
155   ::uint8_t* _InternalSerialize(
156       ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
157   int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
158 
159   private:
160   void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
161   void SharedDtor();
162   void SetCachedSize(int size) const;
163   void InternalSwap(ReportFileProto_Report* other);
164 
165   private:
166   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
167   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
168     return "android.os.incidentd.ReportFileProto.Report";
169   }
170   protected:
171   explicit ReportFileProto_Report(::PROTOBUF_NAMESPACE_ID::Arena* arena,
172                        bool is_message_owned = false);
173   public:
174 
175   std::string GetTypeName() const final;
176 
177   // nested types ----------------------------------------------------
178 
179   // accessors -------------------------------------------------------
180 
181   enum : int {
182     kSectionFieldNumber = 6,
183     kHeaderFieldNumber = 7,
184     kPkgFieldNumber = 1,
185     kClsFieldNumber = 2,
186     kPrivacyPolicyFieldNumber = 4,
187     kAllSectionsFieldNumber = 5,
188     kShareApprovedFieldNumber = 8,
189     kGzipFieldNumber = 9,
190   };
191   // repeated int32 section = 6;
192   int section_size() const;
193   private:
194   int _internal_section_size() const;
195   public:
196   void clear_section();
197   private:
198   ::int32_t _internal_section(int index) const;
199   const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int32_t >&
200       _internal_section() const;
201   void _internal_add_section(::int32_t value);
202   ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int32_t >*
203       _internal_mutable_section();
204   public:
205   ::int32_t section(int index) const;
206   void set_section(int index, ::int32_t value);
207   void add_section(::int32_t value);
208   const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int32_t >&
209       section() const;
210   ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int32_t >*
211       mutable_section();
212 
213   // repeated bytes header = 7;
214   int header_size() const;
215   private:
216   int _internal_header_size() const;
217   public:
218   void clear_header();
219   const std::string& header(int index) const;
220   std::string* mutable_header(int index);
221   void set_header(int index, const std::string& value);
222   void set_header(int index, std::string&& value);
223   void set_header(int index, const char* value);
224   void set_header(int index, const void* value, size_t size);
225   std::string* add_header();
226   void add_header(const std::string& value);
227   void add_header(std::string&& value);
228   void add_header(const char* value);
229   void add_header(const void* value, size_t size);
230   const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& header() const;
231   ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_header();
232   private:
233   const std::string& _internal_header(int index) const;
234   std::string* _internal_add_header();
235   public:
236 
237   // optional string pkg = 1;
238   bool has_pkg() const;
239   private:
240   bool _internal_has_pkg() const;
241   public:
242   void clear_pkg();
243   const std::string& pkg() const;
244   template <typename ArgT0 = const std::string&, typename... ArgT>
245   void set_pkg(ArgT0&& arg0, ArgT... args);
246   std::string* mutable_pkg();
247   PROTOBUF_NODISCARD std::string* release_pkg();
248   void set_allocated_pkg(std::string* pkg);
249   private:
250   const std::string& _internal_pkg() const;
251   inline PROTOBUF_ALWAYS_INLINE void _internal_set_pkg(const std::string& value);
252   std::string* _internal_mutable_pkg();
253   public:
254 
255   // optional string cls = 2;
256   bool has_cls() const;
257   private:
258   bool _internal_has_cls() const;
259   public:
260   void clear_cls();
261   const std::string& cls() const;
262   template <typename ArgT0 = const std::string&, typename... ArgT>
263   void set_cls(ArgT0&& arg0, ArgT... args);
264   std::string* mutable_cls();
265   PROTOBUF_NODISCARD std::string* release_cls();
266   void set_allocated_cls(std::string* cls);
267   private:
268   const std::string& _internal_cls() const;
269   inline PROTOBUF_ALWAYS_INLINE void _internal_set_cls(const std::string& value);
270   std::string* _internal_mutable_cls();
271   public:
272 
273   // optional uint32 privacy_policy = 4;
274   bool has_privacy_policy() const;
275   private:
276   bool _internal_has_privacy_policy() const;
277   public:
278   void clear_privacy_policy();
279   ::uint32_t privacy_policy() const;
280   void set_privacy_policy(::uint32_t value);
281   private:
282   ::uint32_t _internal_privacy_policy() const;
283   void _internal_set_privacy_policy(::uint32_t value);
284   public:
285 
286   // optional bool all_sections = 5;
287   bool has_all_sections() const;
288   private:
289   bool _internal_has_all_sections() const;
290   public:
291   void clear_all_sections();
292   bool all_sections() const;
293   void set_all_sections(bool value);
294   private:
295   bool _internal_all_sections() const;
296   void _internal_set_all_sections(bool value);
297   public:
298 
299   // optional bool share_approved = 8;
300   bool has_share_approved() const;
301   private:
302   bool _internal_has_share_approved() const;
303   public:
304   void clear_share_approved();
305   bool share_approved() const;
306   void set_share_approved(bool value);
307   private:
308   bool _internal_share_approved() const;
309   void _internal_set_share_approved(bool value);
310   public:
311 
312   // optional bool gzip = 9;
313   bool has_gzip() const;
314   private:
315   bool _internal_has_gzip() const;
316   public:
317   void clear_gzip();
318   bool gzip() const;
319   void set_gzip(bool value);
320   private:
321   bool _internal_gzip() const;
322   void _internal_set_gzip(bool value);
323   public:
324 
325   // @@protoc_insertion_point(class_scope:android.os.incidentd.ReportFileProto.Report)
326  private:
327   class _Internal;
328 
329   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
330   typedef void InternalArenaConstructable_;
331   typedef void DestructorSkippable_;
332   struct Impl_ {
333     ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
334     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
335     ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int32_t > section_;
336     ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> header_;
337     ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr pkg_;
338     ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr cls_;
339     ::uint32_t privacy_policy_;
340     bool all_sections_;
341     bool share_approved_;
342     bool gzip_;
343   };
344   union { Impl_ _impl_; };
345   friend struct ::TableStruct_frameworks_2fbase_2fcmds_2fincidentd_2fsrc_2freport_5ffile_2eproto;
346 };
347 // -------------------------------------------------------------------
348 
349 class ReportFileProto final :
350     public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:android.os.incidentd.ReportFileProto) */ {
351  public:
ReportFileProto()352   inline ReportFileProto() : ReportFileProto(nullptr) {}
353   ~ReportFileProto() override;
354   explicit PROTOBUF_CONSTEXPR ReportFileProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
355 
356   ReportFileProto(const ReportFileProto& from);
ReportFileProto(ReportFileProto && from)357   ReportFileProto(ReportFileProto&& from) noexcept
358     : ReportFileProto() {
359     *this = ::std::move(from);
360   }
361 
362   inline ReportFileProto& operator=(const ReportFileProto& from) {
363     if (this == &from) return *this;
364     CopyFrom(from);
365     return *this;
366   }
367   inline ReportFileProto& operator=(ReportFileProto&& from) noexcept {
368     if (this == &from) return *this;
369     if (GetOwningArena() == from.GetOwningArena()
370   #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
371         && GetOwningArena() != nullptr
372   #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
373     ) {
374       InternalSwap(&from);
375     } else {
376       CopyFrom(from);
377     }
378     return *this;
379   }
380 
unknown_fields()381   inline const std::string& unknown_fields() const {
382     return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
383   }
mutable_unknown_fields()384   inline std::string* mutable_unknown_fields() {
385     return _internal_metadata_.mutable_unknown_fields<std::string>();
386   }
387 
default_instance()388   static const ReportFileProto& default_instance() {
389     return *internal_default_instance();
390   }
internal_default_instance()391   static inline const ReportFileProto* internal_default_instance() {
392     return reinterpret_cast<const ReportFileProto*>(
393                &_ReportFileProto_default_instance_);
394   }
395   static constexpr int kIndexInFileMessages =
396     1;
397 
swap(ReportFileProto & a,ReportFileProto & b)398   friend void swap(ReportFileProto& a, ReportFileProto& b) {
399     a.Swap(&b);
400   }
Swap(ReportFileProto * other)401   inline void Swap(ReportFileProto* other) {
402     if (other == this) return;
403   #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
404     if (GetOwningArena() != nullptr &&
405         GetOwningArena() == other->GetOwningArena()) {
406    #else  // PROTOBUF_FORCE_COPY_IN_SWAP
407     if (GetOwningArena() == other->GetOwningArena()) {
408   #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
409       InternalSwap(other);
410     } else {
411       ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
412     }
413   }
414   void UnsafeArenaSwap(ReportFileProto* other) {
415     if (other == this) return;
416     GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
417     InternalSwap(other);
418   }
419 
420   // implements Message ----------------------------------------------
421 
422   ReportFileProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
423     return CreateMaybeMessage<ReportFileProto>(arena);
424   }
425   ReportFileProto* New() const {
426     return New(nullptr);
427   }
428   void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
429   void CopyFrom(const ReportFileProto& from);
430   void MergeFrom(const ReportFileProto& from);
431   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
432   bool IsInitialized() const final;
433 
434   size_t ByteSizeLong() const final;
435   const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
436   ::uint8_t* _InternalSerialize(
437       ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
438   int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
439 
440   private:
441   void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
442   void SharedDtor();
443   void SetCachedSize(int size) const;
444   void InternalSwap(ReportFileProto* other);
445 
446   private:
447   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
448   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
449     return "android.os.incidentd.ReportFileProto";
450   }
451   protected:
452   explicit ReportFileProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
453                        bool is_message_owned = false);
454   public:
455 
456   std::string GetTypeName() const final;
457 
458   // nested types ----------------------------------------------------
459 
460   typedef ReportFileProto_Report Report;
461 
462   // accessors -------------------------------------------------------
463 
464   enum : int {
465     kReportFieldNumber = 2,
466     kDataFileFieldNumber = 3,
467     kMetadataFieldNumber = 1,
468     kDataFileSizeFieldNumber = 5,
469     kPrivacyPolicyFieldNumber = 4,
470     kCompletedFieldNumber = 6,
471   };
472   // repeated .android.os.incidentd.ReportFileProto.Report report = 2;
473   int report_size() const;
474   private:
475   int _internal_report_size() const;
476   public:
477   void clear_report();
478   ::android::os::incidentd::ReportFileProto_Report* mutable_report(int index);
479   ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::android::os::incidentd::ReportFileProto_Report >*
480       mutable_report();
481   private:
482   const ::android::os::incidentd::ReportFileProto_Report& _internal_report(int index) const;
483   ::android::os::incidentd::ReportFileProto_Report* _internal_add_report();
484   public:
485   const ::android::os::incidentd::ReportFileProto_Report& report(int index) const;
486   ::android::os::incidentd::ReportFileProto_Report* add_report();
487   const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::android::os::incidentd::ReportFileProto_Report >&
488       report() const;
489 
490   // optional string data_file = 3;
491   bool has_data_file() const;
492   private:
493   bool _internal_has_data_file() const;
494   public:
495   void clear_data_file();
496   const std::string& data_file() const;
497   template <typename ArgT0 = const std::string&, typename... ArgT>
498   void set_data_file(ArgT0&& arg0, ArgT... args);
499   std::string* mutable_data_file();
500   PROTOBUF_NODISCARD std::string* release_data_file();
501   void set_allocated_data_file(std::string* data_file);
502   private:
503   const std::string& _internal_data_file() const;
504   inline PROTOBUF_ALWAYS_INLINE void _internal_set_data_file(const std::string& value);
505   std::string* _internal_mutable_data_file();
506   public:
507 
508   // optional .android.os.IncidentMetadata metadata = 1;
509   bool has_metadata() const;
510   private:
511   bool _internal_has_metadata() const;
512   public:
513   void clear_metadata();
514   const ::android::os::IncidentMetadata& metadata() const;
515   PROTOBUF_NODISCARD ::android::os::IncidentMetadata* release_metadata();
516   ::android::os::IncidentMetadata* mutable_metadata();
517   void set_allocated_metadata(::android::os::IncidentMetadata* metadata);
518   private:
519   const ::android::os::IncidentMetadata& _internal_metadata() const;
520   ::android::os::IncidentMetadata* _internal_mutable_metadata();
521   public:
522   void unsafe_arena_set_allocated_metadata(
523       ::android::os::IncidentMetadata* metadata);
524   ::android::os::IncidentMetadata* unsafe_arena_release_metadata();
525 
526   // optional int64 data_file_size = 5;
527   bool has_data_file_size() const;
528   private:
529   bool _internal_has_data_file_size() const;
530   public:
531   void clear_data_file_size();
532   ::int64_t data_file_size() const;
533   void set_data_file_size(::int64_t value);
534   private:
535   ::int64_t _internal_data_file_size() const;
536   void _internal_set_data_file_size(::int64_t value);
537   public:
538 
539   // optional uint32 privacy_policy = 4;
540   bool has_privacy_policy() const;
541   private:
542   bool _internal_has_privacy_policy() const;
543   public:
544   void clear_privacy_policy();
545   ::uint32_t privacy_policy() const;
546   void set_privacy_policy(::uint32_t value);
547   private:
548   ::uint32_t _internal_privacy_policy() const;
549   void _internal_set_privacy_policy(::uint32_t value);
550   public:
551 
552   // optional bool completed = 6;
553   bool has_completed() const;
554   private:
555   bool _internal_has_completed() const;
556   public:
557   void clear_completed();
558   bool completed() const;
559   void set_completed(bool value);
560   private:
561   bool _internal_completed() const;
562   void _internal_set_completed(bool value);
563   public:
564 
565   // @@protoc_insertion_point(class_scope:android.os.incidentd.ReportFileProto)
566  private:
567   class _Internal;
568 
569   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
570   typedef void InternalArenaConstructable_;
571   typedef void DestructorSkippable_;
572   struct Impl_ {
573     ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
574     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
575     ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::android::os::incidentd::ReportFileProto_Report > report_;
576     ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr data_file_;
577     ::android::os::IncidentMetadata* metadata_;
578     ::int64_t data_file_size_;
579     ::uint32_t privacy_policy_;
580     bool completed_;
581   };
582   union { Impl_ _impl_; };
583   friend struct ::TableStruct_frameworks_2fbase_2fcmds_2fincidentd_2fsrc_2freport_5ffile_2eproto;
584 };
585 // ===================================================================
586 
587 
588 // ===================================================================
589 
590 #ifdef __GNUC__
591   #pragma GCC diagnostic push
592   #pragma GCC diagnostic ignored "-Wstrict-aliasing"
593 #endif  // __GNUC__
594 // ReportFileProto_Report
595 
596 // optional string pkg = 1;
_internal_has_pkg()597 inline bool ReportFileProto_Report::_internal_has_pkg() const {
598   bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
599   return value;
600 }
has_pkg()601 inline bool ReportFileProto_Report::has_pkg() const {
602   return _internal_has_pkg();
603 }
clear_pkg()604 inline void ReportFileProto_Report::clear_pkg() {
605   _impl_.pkg_.ClearToEmpty();
606   _impl_._has_bits_[0] &= ~0x00000001u;
607 }
pkg()608 inline const std::string& ReportFileProto_Report::pkg() const {
609   // @@protoc_insertion_point(field_get:android.os.incidentd.ReportFileProto.Report.pkg)
610   return _internal_pkg();
611 }
612 template <typename ArgT0, typename... ArgT>
613 inline PROTOBUF_ALWAYS_INLINE
set_pkg(ArgT0 && arg0,ArgT...args)614 void ReportFileProto_Report::set_pkg(ArgT0&& arg0, ArgT... args) {
615  _impl_._has_bits_[0] |= 0x00000001u;
616  _impl_.pkg_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
617   // @@protoc_insertion_point(field_set:android.os.incidentd.ReportFileProto.Report.pkg)
618 }
mutable_pkg()619 inline std::string* ReportFileProto_Report::mutable_pkg() {
620   std::string* _s = _internal_mutable_pkg();
621   // @@protoc_insertion_point(field_mutable:android.os.incidentd.ReportFileProto.Report.pkg)
622   return _s;
623 }
_internal_pkg()624 inline const std::string& ReportFileProto_Report::_internal_pkg() const {
625   return _impl_.pkg_.Get();
626 }
_internal_set_pkg(const std::string & value)627 inline void ReportFileProto_Report::_internal_set_pkg(const std::string& value) {
628   _impl_._has_bits_[0] |= 0x00000001u;
629   _impl_.pkg_.Set(value, GetArenaForAllocation());
630 }
_internal_mutable_pkg()631 inline std::string* ReportFileProto_Report::_internal_mutable_pkg() {
632   _impl_._has_bits_[0] |= 0x00000001u;
633   return _impl_.pkg_.Mutable(GetArenaForAllocation());
634 }
release_pkg()635 inline std::string* ReportFileProto_Report::release_pkg() {
636   // @@protoc_insertion_point(field_release:android.os.incidentd.ReportFileProto.Report.pkg)
637   if (!_internal_has_pkg()) {
638     return nullptr;
639   }
640   _impl_._has_bits_[0] &= ~0x00000001u;
641   auto* p = _impl_.pkg_.Release();
642 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
643   if (_impl_.pkg_.IsDefault()) {
644     _impl_.pkg_.Set("", GetArenaForAllocation());
645   }
646 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
647   return p;
648 }
set_allocated_pkg(std::string * pkg)649 inline void ReportFileProto_Report::set_allocated_pkg(std::string* pkg) {
650   if (pkg != nullptr) {
651     _impl_._has_bits_[0] |= 0x00000001u;
652   } else {
653     _impl_._has_bits_[0] &= ~0x00000001u;
654   }
655   _impl_.pkg_.SetAllocated(pkg, GetArenaForAllocation());
656 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
657   if (_impl_.pkg_.IsDefault()) {
658     _impl_.pkg_.Set("", GetArenaForAllocation());
659   }
660 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
661   // @@protoc_insertion_point(field_set_allocated:android.os.incidentd.ReportFileProto.Report.pkg)
662 }
663 
664 // optional string cls = 2;
_internal_has_cls()665 inline bool ReportFileProto_Report::_internal_has_cls() const {
666   bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
667   return value;
668 }
has_cls()669 inline bool ReportFileProto_Report::has_cls() const {
670   return _internal_has_cls();
671 }
clear_cls()672 inline void ReportFileProto_Report::clear_cls() {
673   _impl_.cls_.ClearToEmpty();
674   _impl_._has_bits_[0] &= ~0x00000002u;
675 }
cls()676 inline const std::string& ReportFileProto_Report::cls() const {
677   // @@protoc_insertion_point(field_get:android.os.incidentd.ReportFileProto.Report.cls)
678   return _internal_cls();
679 }
680 template <typename ArgT0, typename... ArgT>
681 inline PROTOBUF_ALWAYS_INLINE
set_cls(ArgT0 && arg0,ArgT...args)682 void ReportFileProto_Report::set_cls(ArgT0&& arg0, ArgT... args) {
683  _impl_._has_bits_[0] |= 0x00000002u;
684  _impl_.cls_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
685   // @@protoc_insertion_point(field_set:android.os.incidentd.ReportFileProto.Report.cls)
686 }
mutable_cls()687 inline std::string* ReportFileProto_Report::mutable_cls() {
688   std::string* _s = _internal_mutable_cls();
689   // @@protoc_insertion_point(field_mutable:android.os.incidentd.ReportFileProto.Report.cls)
690   return _s;
691 }
_internal_cls()692 inline const std::string& ReportFileProto_Report::_internal_cls() const {
693   return _impl_.cls_.Get();
694 }
_internal_set_cls(const std::string & value)695 inline void ReportFileProto_Report::_internal_set_cls(const std::string& value) {
696   _impl_._has_bits_[0] |= 0x00000002u;
697   _impl_.cls_.Set(value, GetArenaForAllocation());
698 }
_internal_mutable_cls()699 inline std::string* ReportFileProto_Report::_internal_mutable_cls() {
700   _impl_._has_bits_[0] |= 0x00000002u;
701   return _impl_.cls_.Mutable(GetArenaForAllocation());
702 }
release_cls()703 inline std::string* ReportFileProto_Report::release_cls() {
704   // @@protoc_insertion_point(field_release:android.os.incidentd.ReportFileProto.Report.cls)
705   if (!_internal_has_cls()) {
706     return nullptr;
707   }
708   _impl_._has_bits_[0] &= ~0x00000002u;
709   auto* p = _impl_.cls_.Release();
710 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
711   if (_impl_.cls_.IsDefault()) {
712     _impl_.cls_.Set("", GetArenaForAllocation());
713   }
714 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
715   return p;
716 }
set_allocated_cls(std::string * cls)717 inline void ReportFileProto_Report::set_allocated_cls(std::string* cls) {
718   if (cls != nullptr) {
719     _impl_._has_bits_[0] |= 0x00000002u;
720   } else {
721     _impl_._has_bits_[0] &= ~0x00000002u;
722   }
723   _impl_.cls_.SetAllocated(cls, GetArenaForAllocation());
724 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
725   if (_impl_.cls_.IsDefault()) {
726     _impl_.cls_.Set("", GetArenaForAllocation());
727   }
728 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
729   // @@protoc_insertion_point(field_set_allocated:android.os.incidentd.ReportFileProto.Report.cls)
730 }
731 
732 // optional uint32 privacy_policy = 4;
_internal_has_privacy_policy()733 inline bool ReportFileProto_Report::_internal_has_privacy_policy() const {
734   bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
735   return value;
736 }
has_privacy_policy()737 inline bool ReportFileProto_Report::has_privacy_policy() const {
738   return _internal_has_privacy_policy();
739 }
clear_privacy_policy()740 inline void ReportFileProto_Report::clear_privacy_policy() {
741   _impl_.privacy_policy_ = 0u;
742   _impl_._has_bits_[0] &= ~0x00000004u;
743 }
_internal_privacy_policy()744 inline ::uint32_t ReportFileProto_Report::_internal_privacy_policy() const {
745   return _impl_.privacy_policy_;
746 }
privacy_policy()747 inline ::uint32_t ReportFileProto_Report::privacy_policy() const {
748   // @@protoc_insertion_point(field_get:android.os.incidentd.ReportFileProto.Report.privacy_policy)
749   return _internal_privacy_policy();
750 }
_internal_set_privacy_policy(::uint32_t value)751 inline void ReportFileProto_Report::_internal_set_privacy_policy(::uint32_t value) {
752   _impl_._has_bits_[0] |= 0x00000004u;
753   _impl_.privacy_policy_ = value;
754 }
set_privacy_policy(::uint32_t value)755 inline void ReportFileProto_Report::set_privacy_policy(::uint32_t value) {
756   _internal_set_privacy_policy(value);
757   // @@protoc_insertion_point(field_set:android.os.incidentd.ReportFileProto.Report.privacy_policy)
758 }
759 
760 // optional bool all_sections = 5;
_internal_has_all_sections()761 inline bool ReportFileProto_Report::_internal_has_all_sections() const {
762   bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
763   return value;
764 }
has_all_sections()765 inline bool ReportFileProto_Report::has_all_sections() const {
766   return _internal_has_all_sections();
767 }
clear_all_sections()768 inline void ReportFileProto_Report::clear_all_sections() {
769   _impl_.all_sections_ = false;
770   _impl_._has_bits_[0] &= ~0x00000008u;
771 }
_internal_all_sections()772 inline bool ReportFileProto_Report::_internal_all_sections() const {
773   return _impl_.all_sections_;
774 }
all_sections()775 inline bool ReportFileProto_Report::all_sections() const {
776   // @@protoc_insertion_point(field_get:android.os.incidentd.ReportFileProto.Report.all_sections)
777   return _internal_all_sections();
778 }
_internal_set_all_sections(bool value)779 inline void ReportFileProto_Report::_internal_set_all_sections(bool value) {
780   _impl_._has_bits_[0] |= 0x00000008u;
781   _impl_.all_sections_ = value;
782 }
set_all_sections(bool value)783 inline void ReportFileProto_Report::set_all_sections(bool value) {
784   _internal_set_all_sections(value);
785   // @@protoc_insertion_point(field_set:android.os.incidentd.ReportFileProto.Report.all_sections)
786 }
787 
788 // repeated int32 section = 6;
_internal_section_size()789 inline int ReportFileProto_Report::_internal_section_size() const {
790   return _impl_.section_.size();
791 }
section_size()792 inline int ReportFileProto_Report::section_size() const {
793   return _internal_section_size();
794 }
clear_section()795 inline void ReportFileProto_Report::clear_section() {
796   _impl_.section_.Clear();
797 }
_internal_section(int index)798 inline ::int32_t ReportFileProto_Report::_internal_section(int index) const {
799   return _impl_.section_.Get(index);
800 }
section(int index)801 inline ::int32_t ReportFileProto_Report::section(int index) const {
802   // @@protoc_insertion_point(field_get:android.os.incidentd.ReportFileProto.Report.section)
803   return _internal_section(index);
804 }
set_section(int index,::int32_t value)805 inline void ReportFileProto_Report::set_section(int index, ::int32_t value) {
806   _impl_.section_.Set(index, value);
807   // @@protoc_insertion_point(field_set:android.os.incidentd.ReportFileProto.Report.section)
808 }
_internal_add_section(::int32_t value)809 inline void ReportFileProto_Report::_internal_add_section(::int32_t value) {
810   _impl_.section_.Add(value);
811 }
add_section(::int32_t value)812 inline void ReportFileProto_Report::add_section(::int32_t value) {
813   _internal_add_section(value);
814   // @@protoc_insertion_point(field_add:android.os.incidentd.ReportFileProto.Report.section)
815 }
816 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int32_t >&
_internal_section()817 ReportFileProto_Report::_internal_section() const {
818   return _impl_.section_;
819 }
820 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int32_t >&
section()821 ReportFileProto_Report::section() const {
822   // @@protoc_insertion_point(field_list:android.os.incidentd.ReportFileProto.Report.section)
823   return _internal_section();
824 }
825 inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int32_t >*
_internal_mutable_section()826 ReportFileProto_Report::_internal_mutable_section() {
827   return &_impl_.section_;
828 }
829 inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int32_t >*
mutable_section()830 ReportFileProto_Report::mutable_section() {
831   // @@protoc_insertion_point(field_mutable_list:android.os.incidentd.ReportFileProto.Report.section)
832   return _internal_mutable_section();
833 }
834 
835 // repeated bytes header = 7;
_internal_header_size()836 inline int ReportFileProto_Report::_internal_header_size() const {
837   return _impl_.header_.size();
838 }
header_size()839 inline int ReportFileProto_Report::header_size() const {
840   return _internal_header_size();
841 }
clear_header()842 inline void ReportFileProto_Report::clear_header() {
843   _impl_.header_.Clear();
844 }
add_header()845 inline std::string* ReportFileProto_Report::add_header() {
846   std::string* _s = _internal_add_header();
847   // @@protoc_insertion_point(field_add_mutable:android.os.incidentd.ReportFileProto.Report.header)
848   return _s;
849 }
_internal_header(int index)850 inline const std::string& ReportFileProto_Report::_internal_header(int index) const {
851   return _impl_.header_.Get(index);
852 }
header(int index)853 inline const std::string& ReportFileProto_Report::header(int index) const {
854   // @@protoc_insertion_point(field_get:android.os.incidentd.ReportFileProto.Report.header)
855   return _internal_header(index);
856 }
mutable_header(int index)857 inline std::string* ReportFileProto_Report::mutable_header(int index) {
858   // @@protoc_insertion_point(field_mutable:android.os.incidentd.ReportFileProto.Report.header)
859   return _impl_.header_.Mutable(index);
860 }
set_header(int index,const std::string & value)861 inline void ReportFileProto_Report::set_header(int index, const std::string& value) {
862   _impl_.header_.Mutable(index)->assign(value);
863   // @@protoc_insertion_point(field_set:android.os.incidentd.ReportFileProto.Report.header)
864 }
set_header(int index,std::string && value)865 inline void ReportFileProto_Report::set_header(int index, std::string&& value) {
866   _impl_.header_.Mutable(index)->assign(std::move(value));
867   // @@protoc_insertion_point(field_set:android.os.incidentd.ReportFileProto.Report.header)
868 }
set_header(int index,const char * value)869 inline void ReportFileProto_Report::set_header(int index, const char* value) {
870   GOOGLE_DCHECK(value != nullptr);
871   _impl_.header_.Mutable(index)->assign(value);
872   // @@protoc_insertion_point(field_set_char:android.os.incidentd.ReportFileProto.Report.header)
873 }
set_header(int index,const void * value,size_t size)874 inline void ReportFileProto_Report::set_header(int index, const void* value, size_t size) {
875   _impl_.header_.Mutable(index)->assign(
876     reinterpret_cast<const char*>(value), size);
877   // @@protoc_insertion_point(field_set_pointer:android.os.incidentd.ReportFileProto.Report.header)
878 }
_internal_add_header()879 inline std::string* ReportFileProto_Report::_internal_add_header() {
880   return _impl_.header_.Add();
881 }
add_header(const std::string & value)882 inline void ReportFileProto_Report::add_header(const std::string& value) {
883   _impl_.header_.Add()->assign(value);
884   // @@protoc_insertion_point(field_add:android.os.incidentd.ReportFileProto.Report.header)
885 }
add_header(std::string && value)886 inline void ReportFileProto_Report::add_header(std::string&& value) {
887   _impl_.header_.Add(std::move(value));
888   // @@protoc_insertion_point(field_add:android.os.incidentd.ReportFileProto.Report.header)
889 }
add_header(const char * value)890 inline void ReportFileProto_Report::add_header(const char* value) {
891   GOOGLE_DCHECK(value != nullptr);
892   _impl_.header_.Add()->assign(value);
893   // @@protoc_insertion_point(field_add_char:android.os.incidentd.ReportFileProto.Report.header)
894 }
add_header(const void * value,size_t size)895 inline void ReportFileProto_Report::add_header(const void* value, size_t size) {
896   _impl_.header_.Add()->assign(reinterpret_cast<const char*>(value), size);
897   // @@protoc_insertion_point(field_add_pointer:android.os.incidentd.ReportFileProto.Report.header)
898 }
899 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
header()900 ReportFileProto_Report::header() const {
901   // @@protoc_insertion_point(field_list:android.os.incidentd.ReportFileProto.Report.header)
902   return _impl_.header_;
903 }
904 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
mutable_header()905 ReportFileProto_Report::mutable_header() {
906   // @@protoc_insertion_point(field_mutable_list:android.os.incidentd.ReportFileProto.Report.header)
907   return &_impl_.header_;
908 }
909 
910 // optional bool share_approved = 8;
_internal_has_share_approved()911 inline bool ReportFileProto_Report::_internal_has_share_approved() const {
912   bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
913   return value;
914 }
has_share_approved()915 inline bool ReportFileProto_Report::has_share_approved() const {
916   return _internal_has_share_approved();
917 }
clear_share_approved()918 inline void ReportFileProto_Report::clear_share_approved() {
919   _impl_.share_approved_ = false;
920   _impl_._has_bits_[0] &= ~0x00000010u;
921 }
_internal_share_approved()922 inline bool ReportFileProto_Report::_internal_share_approved() const {
923   return _impl_.share_approved_;
924 }
share_approved()925 inline bool ReportFileProto_Report::share_approved() const {
926   // @@protoc_insertion_point(field_get:android.os.incidentd.ReportFileProto.Report.share_approved)
927   return _internal_share_approved();
928 }
_internal_set_share_approved(bool value)929 inline void ReportFileProto_Report::_internal_set_share_approved(bool value) {
930   _impl_._has_bits_[0] |= 0x00000010u;
931   _impl_.share_approved_ = value;
932 }
set_share_approved(bool value)933 inline void ReportFileProto_Report::set_share_approved(bool value) {
934   _internal_set_share_approved(value);
935   // @@protoc_insertion_point(field_set:android.os.incidentd.ReportFileProto.Report.share_approved)
936 }
937 
938 // optional bool gzip = 9;
_internal_has_gzip()939 inline bool ReportFileProto_Report::_internal_has_gzip() const {
940   bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
941   return value;
942 }
has_gzip()943 inline bool ReportFileProto_Report::has_gzip() const {
944   return _internal_has_gzip();
945 }
clear_gzip()946 inline void ReportFileProto_Report::clear_gzip() {
947   _impl_.gzip_ = false;
948   _impl_._has_bits_[0] &= ~0x00000020u;
949 }
_internal_gzip()950 inline bool ReportFileProto_Report::_internal_gzip() const {
951   return _impl_.gzip_;
952 }
gzip()953 inline bool ReportFileProto_Report::gzip() const {
954   // @@protoc_insertion_point(field_get:android.os.incidentd.ReportFileProto.Report.gzip)
955   return _internal_gzip();
956 }
_internal_set_gzip(bool value)957 inline void ReportFileProto_Report::_internal_set_gzip(bool value) {
958   _impl_._has_bits_[0] |= 0x00000020u;
959   _impl_.gzip_ = value;
960 }
set_gzip(bool value)961 inline void ReportFileProto_Report::set_gzip(bool value) {
962   _internal_set_gzip(value);
963   // @@protoc_insertion_point(field_set:android.os.incidentd.ReportFileProto.Report.gzip)
964 }
965 
966 // -------------------------------------------------------------------
967 
968 // ReportFileProto
969 
970 // optional .android.os.IncidentMetadata metadata = 1;
_internal_has_metadata()971 inline bool ReportFileProto::_internal_has_metadata() const {
972   bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
973   PROTOBUF_ASSUME(!value || _impl_.metadata_ != nullptr);
974   return value;
975 }
has_metadata()976 inline bool ReportFileProto::has_metadata() const {
977   return _internal_has_metadata();
978 }
_internal_metadata()979 inline const ::android::os::IncidentMetadata& ReportFileProto::_internal_metadata() const {
980   const ::android::os::IncidentMetadata* p = _impl_.metadata_;
981   return p != nullptr ? *p : reinterpret_cast<const ::android::os::IncidentMetadata&>(
982       ::android::os::_IncidentMetadata_default_instance_);
983 }
metadata()984 inline const ::android::os::IncidentMetadata& ReportFileProto::metadata() const {
985   // @@protoc_insertion_point(field_get:android.os.incidentd.ReportFileProto.metadata)
986   return _internal_metadata();
987 }
unsafe_arena_set_allocated_metadata(::android::os::IncidentMetadata * metadata)988 inline void ReportFileProto::unsafe_arena_set_allocated_metadata(
989     ::android::os::IncidentMetadata* metadata) {
990   if (GetArenaForAllocation() == nullptr) {
991     delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.metadata_);
992   }
993   _impl_.metadata_ = metadata;
994   if (metadata) {
995     _impl_._has_bits_[0] |= 0x00000002u;
996   } else {
997     _impl_._has_bits_[0] &= ~0x00000002u;
998   }
999   // @@protoc_insertion_point(field_unsafe_arena_set_allocated:android.os.incidentd.ReportFileProto.metadata)
1000 }
release_metadata()1001 inline ::android::os::IncidentMetadata* ReportFileProto::release_metadata() {
1002   _impl_._has_bits_[0] &= ~0x00000002u;
1003   ::android::os::IncidentMetadata* temp = _impl_.metadata_;
1004   _impl_.metadata_ = nullptr;
1005 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
1006   auto* old =  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
1007   temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1008   if (GetArenaForAllocation() == nullptr) { delete old; }
1009 #else  // PROTOBUF_FORCE_COPY_IN_RELEASE
1010   if (GetArenaForAllocation() != nullptr) {
1011     temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1012   }
1013 #endif  // !PROTOBUF_FORCE_COPY_IN_RELEASE
1014   return temp;
1015 }
unsafe_arena_release_metadata()1016 inline ::android::os::IncidentMetadata* ReportFileProto::unsafe_arena_release_metadata() {
1017   // @@protoc_insertion_point(field_release:android.os.incidentd.ReportFileProto.metadata)
1018   _impl_._has_bits_[0] &= ~0x00000002u;
1019   ::android::os::IncidentMetadata* temp = _impl_.metadata_;
1020   _impl_.metadata_ = nullptr;
1021   return temp;
1022 }
_internal_mutable_metadata()1023 inline ::android::os::IncidentMetadata* ReportFileProto::_internal_mutable_metadata() {
1024   _impl_._has_bits_[0] |= 0x00000002u;
1025   if (_impl_.metadata_ == nullptr) {
1026     auto* p = CreateMaybeMessage<::android::os::IncidentMetadata>(GetArenaForAllocation());
1027     _impl_.metadata_ = p;
1028   }
1029   return _impl_.metadata_;
1030 }
mutable_metadata()1031 inline ::android::os::IncidentMetadata* ReportFileProto::mutable_metadata() {
1032   ::android::os::IncidentMetadata* _msg = _internal_mutable_metadata();
1033   // @@protoc_insertion_point(field_mutable:android.os.incidentd.ReportFileProto.metadata)
1034   return _msg;
1035 }
set_allocated_metadata(::android::os::IncidentMetadata * metadata)1036 inline void ReportFileProto::set_allocated_metadata(::android::os::IncidentMetadata* metadata) {
1037   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
1038   if (message_arena == nullptr) {
1039     delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.metadata_);
1040   }
1041   if (metadata) {
1042     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1043         ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
1044                 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(metadata));
1045     if (message_arena != submessage_arena) {
1046       metadata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1047           message_arena, metadata, submessage_arena);
1048     }
1049     _impl_._has_bits_[0] |= 0x00000002u;
1050   } else {
1051     _impl_._has_bits_[0] &= ~0x00000002u;
1052   }
1053   _impl_.metadata_ = metadata;
1054   // @@protoc_insertion_point(field_set_allocated:android.os.incidentd.ReportFileProto.metadata)
1055 }
1056 
1057 // repeated .android.os.incidentd.ReportFileProto.Report report = 2;
_internal_report_size()1058 inline int ReportFileProto::_internal_report_size() const {
1059   return _impl_.report_.size();
1060 }
report_size()1061 inline int ReportFileProto::report_size() const {
1062   return _internal_report_size();
1063 }
clear_report()1064 inline void ReportFileProto::clear_report() {
1065   _impl_.report_.Clear();
1066 }
mutable_report(int index)1067 inline ::android::os::incidentd::ReportFileProto_Report* ReportFileProto::mutable_report(int index) {
1068   // @@protoc_insertion_point(field_mutable:android.os.incidentd.ReportFileProto.report)
1069   return _impl_.report_.Mutable(index);
1070 }
1071 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::android::os::incidentd::ReportFileProto_Report >*
mutable_report()1072 ReportFileProto::mutable_report() {
1073   // @@protoc_insertion_point(field_mutable_list:android.os.incidentd.ReportFileProto.report)
1074   return &_impl_.report_;
1075 }
_internal_report(int index)1076 inline const ::android::os::incidentd::ReportFileProto_Report& ReportFileProto::_internal_report(int index) const {
1077   return _impl_.report_.Get(index);
1078 }
report(int index)1079 inline const ::android::os::incidentd::ReportFileProto_Report& ReportFileProto::report(int index) const {
1080   // @@protoc_insertion_point(field_get:android.os.incidentd.ReportFileProto.report)
1081   return _internal_report(index);
1082 }
_internal_add_report()1083 inline ::android::os::incidentd::ReportFileProto_Report* ReportFileProto::_internal_add_report() {
1084   return _impl_.report_.Add();
1085 }
add_report()1086 inline ::android::os::incidentd::ReportFileProto_Report* ReportFileProto::add_report() {
1087   ::android::os::incidentd::ReportFileProto_Report* _add = _internal_add_report();
1088   // @@protoc_insertion_point(field_add:android.os.incidentd.ReportFileProto.report)
1089   return _add;
1090 }
1091 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::android::os::incidentd::ReportFileProto_Report >&
report()1092 ReportFileProto::report() const {
1093   // @@protoc_insertion_point(field_list:android.os.incidentd.ReportFileProto.report)
1094   return _impl_.report_;
1095 }
1096 
1097 // optional string data_file = 3;
_internal_has_data_file()1098 inline bool ReportFileProto::_internal_has_data_file() const {
1099   bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
1100   return value;
1101 }
has_data_file()1102 inline bool ReportFileProto::has_data_file() const {
1103   return _internal_has_data_file();
1104 }
clear_data_file()1105 inline void ReportFileProto::clear_data_file() {
1106   _impl_.data_file_.ClearToEmpty();
1107   _impl_._has_bits_[0] &= ~0x00000001u;
1108 }
data_file()1109 inline const std::string& ReportFileProto::data_file() const {
1110   // @@protoc_insertion_point(field_get:android.os.incidentd.ReportFileProto.data_file)
1111   return _internal_data_file();
1112 }
1113 template <typename ArgT0, typename... ArgT>
1114 inline PROTOBUF_ALWAYS_INLINE
set_data_file(ArgT0 && arg0,ArgT...args)1115 void ReportFileProto::set_data_file(ArgT0&& arg0, ArgT... args) {
1116  _impl_._has_bits_[0] |= 0x00000001u;
1117  _impl_.data_file_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
1118   // @@protoc_insertion_point(field_set:android.os.incidentd.ReportFileProto.data_file)
1119 }
mutable_data_file()1120 inline std::string* ReportFileProto::mutable_data_file() {
1121   std::string* _s = _internal_mutable_data_file();
1122   // @@protoc_insertion_point(field_mutable:android.os.incidentd.ReportFileProto.data_file)
1123   return _s;
1124 }
_internal_data_file()1125 inline const std::string& ReportFileProto::_internal_data_file() const {
1126   return _impl_.data_file_.Get();
1127 }
_internal_set_data_file(const std::string & value)1128 inline void ReportFileProto::_internal_set_data_file(const std::string& value) {
1129   _impl_._has_bits_[0] |= 0x00000001u;
1130   _impl_.data_file_.Set(value, GetArenaForAllocation());
1131 }
_internal_mutable_data_file()1132 inline std::string* ReportFileProto::_internal_mutable_data_file() {
1133   _impl_._has_bits_[0] |= 0x00000001u;
1134   return _impl_.data_file_.Mutable(GetArenaForAllocation());
1135 }
release_data_file()1136 inline std::string* ReportFileProto::release_data_file() {
1137   // @@protoc_insertion_point(field_release:android.os.incidentd.ReportFileProto.data_file)
1138   if (!_internal_has_data_file()) {
1139     return nullptr;
1140   }
1141   _impl_._has_bits_[0] &= ~0x00000001u;
1142   auto* p = _impl_.data_file_.Release();
1143 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1144   if (_impl_.data_file_.IsDefault()) {
1145     _impl_.data_file_.Set("", GetArenaForAllocation());
1146   }
1147 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1148   return p;
1149 }
set_allocated_data_file(std::string * data_file)1150 inline void ReportFileProto::set_allocated_data_file(std::string* data_file) {
1151   if (data_file != nullptr) {
1152     _impl_._has_bits_[0] |= 0x00000001u;
1153   } else {
1154     _impl_._has_bits_[0] &= ~0x00000001u;
1155   }
1156   _impl_.data_file_.SetAllocated(data_file, GetArenaForAllocation());
1157 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1158   if (_impl_.data_file_.IsDefault()) {
1159     _impl_.data_file_.Set("", GetArenaForAllocation());
1160   }
1161 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1162   // @@protoc_insertion_point(field_set_allocated:android.os.incidentd.ReportFileProto.data_file)
1163 }
1164 
1165 // optional uint32 privacy_policy = 4;
_internal_has_privacy_policy()1166 inline bool ReportFileProto::_internal_has_privacy_policy() const {
1167   bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
1168   return value;
1169 }
has_privacy_policy()1170 inline bool ReportFileProto::has_privacy_policy() const {
1171   return _internal_has_privacy_policy();
1172 }
clear_privacy_policy()1173 inline void ReportFileProto::clear_privacy_policy() {
1174   _impl_.privacy_policy_ = 0u;
1175   _impl_._has_bits_[0] &= ~0x00000008u;
1176 }
_internal_privacy_policy()1177 inline ::uint32_t ReportFileProto::_internal_privacy_policy() const {
1178   return _impl_.privacy_policy_;
1179 }
privacy_policy()1180 inline ::uint32_t ReportFileProto::privacy_policy() const {
1181   // @@protoc_insertion_point(field_get:android.os.incidentd.ReportFileProto.privacy_policy)
1182   return _internal_privacy_policy();
1183 }
_internal_set_privacy_policy(::uint32_t value)1184 inline void ReportFileProto::_internal_set_privacy_policy(::uint32_t value) {
1185   _impl_._has_bits_[0] |= 0x00000008u;
1186   _impl_.privacy_policy_ = value;
1187 }
set_privacy_policy(::uint32_t value)1188 inline void ReportFileProto::set_privacy_policy(::uint32_t value) {
1189   _internal_set_privacy_policy(value);
1190   // @@protoc_insertion_point(field_set:android.os.incidentd.ReportFileProto.privacy_policy)
1191 }
1192 
1193 // optional int64 data_file_size = 5;
_internal_has_data_file_size()1194 inline bool ReportFileProto::_internal_has_data_file_size() const {
1195   bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
1196   return value;
1197 }
has_data_file_size()1198 inline bool ReportFileProto::has_data_file_size() const {
1199   return _internal_has_data_file_size();
1200 }
clear_data_file_size()1201 inline void ReportFileProto::clear_data_file_size() {
1202   _impl_.data_file_size_ = ::int64_t{0};
1203   _impl_._has_bits_[0] &= ~0x00000004u;
1204 }
_internal_data_file_size()1205 inline ::int64_t ReportFileProto::_internal_data_file_size() const {
1206   return _impl_.data_file_size_;
1207 }
data_file_size()1208 inline ::int64_t ReportFileProto::data_file_size() const {
1209   // @@protoc_insertion_point(field_get:android.os.incidentd.ReportFileProto.data_file_size)
1210   return _internal_data_file_size();
1211 }
_internal_set_data_file_size(::int64_t value)1212 inline void ReportFileProto::_internal_set_data_file_size(::int64_t value) {
1213   _impl_._has_bits_[0] |= 0x00000004u;
1214   _impl_.data_file_size_ = value;
1215 }
set_data_file_size(::int64_t value)1216 inline void ReportFileProto::set_data_file_size(::int64_t value) {
1217   _internal_set_data_file_size(value);
1218   // @@protoc_insertion_point(field_set:android.os.incidentd.ReportFileProto.data_file_size)
1219 }
1220 
1221 // optional bool completed = 6;
_internal_has_completed()1222 inline bool ReportFileProto::_internal_has_completed() const {
1223   bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
1224   return value;
1225 }
has_completed()1226 inline bool ReportFileProto::has_completed() const {
1227   return _internal_has_completed();
1228 }
clear_completed()1229 inline void ReportFileProto::clear_completed() {
1230   _impl_.completed_ = false;
1231   _impl_._has_bits_[0] &= ~0x00000010u;
1232 }
_internal_completed()1233 inline bool ReportFileProto::_internal_completed() const {
1234   return _impl_.completed_;
1235 }
completed()1236 inline bool ReportFileProto::completed() const {
1237   // @@protoc_insertion_point(field_get:android.os.incidentd.ReportFileProto.completed)
1238   return _internal_completed();
1239 }
_internal_set_completed(bool value)1240 inline void ReportFileProto::_internal_set_completed(bool value) {
1241   _impl_._has_bits_[0] |= 0x00000010u;
1242   _impl_.completed_ = value;
1243 }
set_completed(bool value)1244 inline void ReportFileProto::set_completed(bool value) {
1245   _internal_set_completed(value);
1246   // @@protoc_insertion_point(field_set:android.os.incidentd.ReportFileProto.completed)
1247 }
1248 
1249 #ifdef __GNUC__
1250   #pragma GCC diagnostic pop
1251 #endif  // __GNUC__
1252 // -------------------------------------------------------------------
1253 
1254 
1255 // @@protoc_insertion_point(namespace_scope)
1256 
1257 }  // namespace incidentd
1258 }  // namespace os
1259 }  // namespace android
1260 
1261 // @@protoc_insertion_point(global_scope)
1262 
1263 #include <google/protobuf/port_undef.inc>
1264 #endif  // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_frameworks_2fbase_2fcmds_2fincidentd_2fsrc_2freport_5ffile_2eproto
1265