1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: frameworks/proto_logging/stats/atoms/placeholder/placeholder_extension_atoms.proto
3
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_frameworks_2fproto_5flogging_2fstats_2fatoms_2fplaceholder_2fplaceholder_5fextension_5fatoms_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_frameworks_2fproto_5flogging_2fstats_2fatoms_2fplaceholder_2fplaceholder_5fextension_5fatoms_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/generated_message_reflection.h>
30 #include <google/protobuf/message.h>
31 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
32 #include <google/protobuf/extension_set.h> // IWYU pragma: export
33 #include <google/protobuf/generated_enum_reflection.h>
34 #include <google/protobuf/unknown_field_set.h>
35 #include "frameworks/proto_logging/stats/atoms.pb.h"
36 #include "frameworks/proto_logging/stats/atom_field_options.pb.h"
37 #include "frameworks/proto_logging/stats/attribution_node.pb.h"
38 // @@protoc_insertion_point(includes)
39 #include <google/protobuf/port_def.inc>
40 #define PROTOBUF_INTERNAL_EXPORT_frameworks_2fproto_5flogging_2fstats_2fatoms_2fplaceholder_2fplaceholder_5fextension_5fatoms_2eproto
41 PROTOBUF_NAMESPACE_OPEN
42 namespace internal {
43 class AnyMetadata;
44 } // namespace internal
45 PROTOBUF_NAMESPACE_CLOSE
46
47 // Internal implementation detail -- do not use these members.
48 struct TableStruct_frameworks_2fproto_5flogging_2fstats_2fatoms_2fplaceholder_2fplaceholder_5fextension_5fatoms_2eproto {
49 static const ::uint32_t offsets[];
50 };
51 extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_frameworks_2fproto_5flogging_2fstats_2fatoms_2fplaceholder_2fplaceholder_5fextension_5fatoms_2eproto;
52 namespace android {
53 namespace os {
54 namespace statsd {
55 namespace placeholder {
56 class Atom9999;
57 struct Atom9999DefaultTypeInternal;
58 extern Atom9999DefaultTypeInternal _Atom9999_default_instance_;
59 class Atom99999;
60 struct Atom99999DefaultTypeInternal;
61 extern Atom99999DefaultTypeInternal _Atom99999_default_instance_;
62 } // namespace placeholder
63 } // namespace statsd
64 } // namespace os
65 } // namespace android
66 PROTOBUF_NAMESPACE_OPEN
67 template<> ::android::os::statsd::placeholder::Atom9999* Arena::CreateMaybeMessage<::android::os::statsd::placeholder::Atom9999>(Arena*);
68 template<> ::android::os::statsd::placeholder::Atom99999* Arena::CreateMaybeMessage<::android::os::statsd::placeholder::Atom99999>(Arena*);
69 PROTOBUF_NAMESPACE_CLOSE
70 namespace android {
71 namespace os {
72 namespace statsd {
73 namespace placeholder {
74
75 enum Atom9999_State : int {
76 Atom9999_State_UNKNOWN = 0,
77 Atom9999_State_OFF = 1,
78 Atom9999_State_ON = 2
79 };
80 bool Atom9999_State_IsValid(int value);
81 constexpr Atom9999_State Atom9999_State_State_MIN = Atom9999_State_UNKNOWN;
82 constexpr Atom9999_State Atom9999_State_State_MAX = Atom9999_State_ON;
83 constexpr int Atom9999_State_State_ARRAYSIZE = Atom9999_State_State_MAX + 1;
84
85 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Atom9999_State_descriptor();
86 template<typename T>
Atom9999_State_Name(T enum_t_value)87 inline const std::string& Atom9999_State_Name(T enum_t_value) {
88 static_assert(::std::is_same<T, Atom9999_State>::value ||
89 ::std::is_integral<T>::value,
90 "Incorrect type passed to function Atom9999_State_Name.");
91 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
92 Atom9999_State_descriptor(), enum_t_value);
93 }
Atom9999_State_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,Atom9999_State * value)94 inline bool Atom9999_State_Parse(
95 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Atom9999_State* value) {
96 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Atom9999_State>(
97 Atom9999_State_descriptor(), name, value);
98 }
99 // ===================================================================
100
101 class Atom9999 final :
102 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:android.os.statsd.placeholder.Atom9999) */ {
103 public:
Atom9999()104 inline Atom9999() : Atom9999(nullptr) {}
105 ~Atom9999() override;
106 explicit PROTOBUF_CONSTEXPR Atom9999(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
107
108 Atom9999(const Atom9999& from);
Atom9999(Atom9999 && from)109 Atom9999(Atom9999&& from) noexcept
110 : Atom9999() {
111 *this = ::std::move(from);
112 }
113
114 inline Atom9999& operator=(const Atom9999& from) {
115 if (this == &from) return *this;
116 CopyFrom(from);
117 return *this;
118 }
119 inline Atom9999& operator=(Atom9999&& from) noexcept {
120 if (this == &from) return *this;
121 if (GetOwningArena() == from.GetOwningArena()
122 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
123 && GetOwningArena() != nullptr
124 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
125 ) {
126 InternalSwap(&from);
127 } else {
128 CopyFrom(from);
129 }
130 return *this;
131 }
132
unknown_fields()133 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
134 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
135 }
mutable_unknown_fields()136 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
137 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
138 }
139
descriptor()140 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
141 return GetDescriptor();
142 }
GetDescriptor()143 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
144 return default_instance().GetMetadata().descriptor;
145 }
GetReflection()146 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
147 return default_instance().GetMetadata().reflection;
148 }
default_instance()149 static const Atom9999& default_instance() {
150 return *internal_default_instance();
151 }
internal_default_instance()152 static inline const Atom9999* internal_default_instance() {
153 return reinterpret_cast<const Atom9999*>(
154 &_Atom9999_default_instance_);
155 }
156 static constexpr int kIndexInFileMessages =
157 0;
158
swap(Atom9999 & a,Atom9999 & b)159 friend void swap(Atom9999& a, Atom9999& b) {
160 a.Swap(&b);
161 }
Swap(Atom9999 * other)162 inline void Swap(Atom9999* other) {
163 if (other == this) return;
164 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
165 if (GetOwningArena() != nullptr &&
166 GetOwningArena() == other->GetOwningArena()) {
167 #else // PROTOBUF_FORCE_COPY_IN_SWAP
168 if (GetOwningArena() == other->GetOwningArena()) {
169 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
170 InternalSwap(other);
171 } else {
172 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
173 }
174 }
175 void UnsafeArenaSwap(Atom9999* other) {
176 if (other == this) return;
177 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
178 InternalSwap(other);
179 }
180
181 // implements Message ----------------------------------------------
182
183 Atom9999* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
184 return CreateMaybeMessage<Atom9999>(arena);
185 }
186 Atom9999* New() const {
187 return New(nullptr);
188 }
189 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
190 void CopyFrom(const Atom9999& from);
191 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
192 void MergeFrom( const Atom9999& from) {
193 Atom9999::MergeImpl(*this, from);
194 }
195 private:
196 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
197 public:
198 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
199 bool IsInitialized() const final;
200
201 size_t ByteSizeLong() const final;
202 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
203 ::uint8_t* _InternalSerialize(
204 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
205 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
206
207 private:
208 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
209 void SharedDtor();
210 void SetCachedSize(int size) const final;
211 void InternalSwap(Atom9999* other);
212
213 private:
214 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
215 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
216 return "android.os.statsd.placeholder.Atom9999";
217 }
218 protected:
219 explicit Atom9999(::PROTOBUF_NAMESPACE_ID::Arena* arena,
220 bool is_message_owned = false);
221 public:
222
223 static const ClassData _class_data_;
224 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
225
226 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
227
228 // nested types ----------------------------------------------------
229
230 typedef Atom9999_State State;
231 static constexpr State UNKNOWN =
232 Atom9999_State_UNKNOWN;
233 static constexpr State OFF =
234 Atom9999_State_OFF;
235 static constexpr State ON =
236 Atom9999_State_ON;
237 static inline bool State_IsValid(int value) {
238 return Atom9999_State_IsValid(value);
239 }
240 static constexpr State State_MIN =
241 Atom9999_State_State_MIN;
242 static constexpr State State_MAX =
243 Atom9999_State_State_MAX;
244 static constexpr int State_ARRAYSIZE =
245 Atom9999_State_State_ARRAYSIZE;
246 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
247 State_descriptor() {
248 return Atom9999_State_descriptor();
249 }
250 template<typename T>
251 static inline const std::string& State_Name(T enum_t_value) {
252 static_assert(::std::is_same<T, State>::value ||
253 ::std::is_integral<T>::value,
254 "Incorrect type passed to function State_Name.");
255 return Atom9999_State_Name(enum_t_value);
256 }
257 static inline bool State_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
258 State* value) {
259 return Atom9999_State_Parse(name, value);
260 }
261
262 // accessors -------------------------------------------------------
263
264 enum : int {
265 kAttributionNodeFieldNumber = 1,
266 kLabelFieldNumber = 5,
267 kLatencyMillisFieldNumber = 3,
268 kUidFieldNumber = 2,
269 kStateFieldNumber = 4,
270 };
271 // repeated .android.os.statsd.AttributionNode attribution_node = 1;
272 int attribution_node_size() const;
273 private:
274 int _internal_attribution_node_size() const;
275 public:
276 void clear_attribution_node();
277 ::android::os::statsd::AttributionNode* mutable_attribution_node(int index);
278 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::android::os::statsd::AttributionNode >*
279 mutable_attribution_node();
280 private:
281 const ::android::os::statsd::AttributionNode& _internal_attribution_node(int index) const;
282 ::android::os::statsd::AttributionNode* _internal_add_attribution_node();
283 public:
284 const ::android::os::statsd::AttributionNode& attribution_node(int index) const;
285 ::android::os::statsd::AttributionNode* add_attribution_node();
286 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::android::os::statsd::AttributionNode >&
287 attribution_node() const;
288
289 // optional string label = 5;
290 bool has_label() const;
291 private:
292 bool _internal_has_label() const;
293 public:
294 void clear_label();
295 const std::string& label() const;
296 template <typename ArgT0 = const std::string&, typename... ArgT>
297 void set_label(ArgT0&& arg0, ArgT... args);
298 std::string* mutable_label();
299 PROTOBUF_NODISCARD std::string* release_label();
300 void set_allocated_label(std::string* label);
301 private:
302 const std::string& _internal_label() const;
303 inline PROTOBUF_ALWAYS_INLINE void _internal_set_label(const std::string& value);
304 std::string* _internal_mutable_label();
305 public:
306
307 // optional int64 latency_millis = 3;
308 bool has_latency_millis() const;
309 private:
310 bool _internal_has_latency_millis() const;
311 public:
312 void clear_latency_millis();
313 ::int64_t latency_millis() const;
314 void set_latency_millis(::int64_t value);
315 private:
316 ::int64_t _internal_latency_millis() const;
317 void _internal_set_latency_millis(::int64_t value);
318 public:
319
320 // optional int32 uid = 2 [(.android.os.statsd.is_uid) = true];
321 bool has_uid() const;
322 private:
323 bool _internal_has_uid() const;
324 public:
325 void clear_uid();
326 ::int32_t uid() const;
327 void set_uid(::int32_t value);
328 private:
329 ::int32_t _internal_uid() const;
330 void _internal_set_uid(::int32_t value);
331 public:
332
333 // optional .android.os.statsd.placeholder.Atom9999.State state = 4;
334 bool has_state() const;
335 private:
336 bool _internal_has_state() const;
337 public:
338 void clear_state();
339 ::android::os::statsd::placeholder::Atom9999_State state() const;
340 void set_state(::android::os::statsd::placeholder::Atom9999_State value);
341 private:
342 ::android::os::statsd::placeholder::Atom9999_State _internal_state() const;
343 void _internal_set_state(::android::os::statsd::placeholder::Atom9999_State value);
344 public:
345
346 // @@protoc_insertion_point(class_scope:android.os.statsd.placeholder.Atom9999)
347 private:
348 class _Internal;
349
350 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
351 typedef void InternalArenaConstructable_;
352 typedef void DestructorSkippable_;
353 struct Impl_ {
354 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
355 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
356 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::android::os::statsd::AttributionNode > attribution_node_;
357 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr label_;
358 ::int64_t latency_millis_;
359 ::int32_t uid_;
360 int state_;
361 };
362 union { Impl_ _impl_; };
363 friend struct ::TableStruct_frameworks_2fproto_5flogging_2fstats_2fatoms_2fplaceholder_2fplaceholder_5fextension_5fatoms_2eproto;
364 };
365 // -------------------------------------------------------------------
366
367 class Atom99999 final :
368 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:android.os.statsd.placeholder.Atom99999) */ {
369 public:
Atom99999()370 inline Atom99999() : Atom99999(nullptr) {}
371 ~Atom99999() override;
372 explicit PROTOBUF_CONSTEXPR Atom99999(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
373
374 Atom99999(const Atom99999& from);
Atom99999(Atom99999 && from)375 Atom99999(Atom99999&& from) noexcept
376 : Atom99999() {
377 *this = ::std::move(from);
378 }
379
380 inline Atom99999& operator=(const Atom99999& from) {
381 if (this == &from) return *this;
382 CopyFrom(from);
383 return *this;
384 }
385 inline Atom99999& operator=(Atom99999&& from) noexcept {
386 if (this == &from) return *this;
387 if (GetOwningArena() == from.GetOwningArena()
388 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
389 && GetOwningArena() != nullptr
390 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
391 ) {
392 InternalSwap(&from);
393 } else {
394 CopyFrom(from);
395 }
396 return *this;
397 }
398
unknown_fields()399 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
400 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
401 }
mutable_unknown_fields()402 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
403 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
404 }
405
descriptor()406 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
407 return GetDescriptor();
408 }
GetDescriptor()409 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
410 return default_instance().GetMetadata().descriptor;
411 }
GetReflection()412 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
413 return default_instance().GetMetadata().reflection;
414 }
default_instance()415 static const Atom99999& default_instance() {
416 return *internal_default_instance();
417 }
internal_default_instance()418 static inline const Atom99999* internal_default_instance() {
419 return reinterpret_cast<const Atom99999*>(
420 &_Atom99999_default_instance_);
421 }
422 static constexpr int kIndexInFileMessages =
423 1;
424
swap(Atom99999 & a,Atom99999 & b)425 friend void swap(Atom99999& a, Atom99999& b) {
426 a.Swap(&b);
427 }
Swap(Atom99999 * other)428 inline void Swap(Atom99999* other) {
429 if (other == this) return;
430 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
431 if (GetOwningArena() != nullptr &&
432 GetOwningArena() == other->GetOwningArena()) {
433 #else // PROTOBUF_FORCE_COPY_IN_SWAP
434 if (GetOwningArena() == other->GetOwningArena()) {
435 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
436 InternalSwap(other);
437 } else {
438 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
439 }
440 }
441 void UnsafeArenaSwap(Atom99999* other) {
442 if (other == this) return;
443 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
444 InternalSwap(other);
445 }
446
447 // implements Message ----------------------------------------------
448
449 Atom99999* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
450 return CreateMaybeMessage<Atom99999>(arena);
451 }
452 Atom99999* New() const {
453 return New(nullptr);
454 }
455 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
456 void CopyFrom(const Atom99999& from);
457 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
458 void MergeFrom( const Atom99999& from) {
459 Atom99999::MergeImpl(*this, from);
460 }
461 private:
462 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
463 public:
464 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
465 bool IsInitialized() const final;
466
467 size_t ByteSizeLong() const final;
468 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
469 ::uint8_t* _InternalSerialize(
470 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
471 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
472
473 private:
474 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
475 void SharedDtor();
476 void SetCachedSize(int size) const final;
477 void InternalSwap(Atom99999* other);
478
479 private:
480 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
481 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
482 return "android.os.statsd.placeholder.Atom99999";
483 }
484 protected:
485 explicit Atom99999(::PROTOBUF_NAMESPACE_ID::Arena* arena,
486 bool is_message_owned = false);
487 public:
488
489 static const ClassData _class_data_;
490 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
491
492 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
493
494 // nested types ----------------------------------------------------
495
496 // accessors -------------------------------------------------------
497
498 enum : int {
499 kLabelFieldNumber = 1,
500 };
501 // optional string label = 1;
502 bool has_label() const;
503 private:
504 bool _internal_has_label() const;
505 public:
506 void clear_label();
507 const std::string& label() const;
508 template <typename ArgT0 = const std::string&, typename... ArgT>
509 void set_label(ArgT0&& arg0, ArgT... args);
510 std::string* mutable_label();
511 PROTOBUF_NODISCARD std::string* release_label();
512 void set_allocated_label(std::string* label);
513 private:
514 const std::string& _internal_label() const;
515 inline PROTOBUF_ALWAYS_INLINE void _internal_set_label(const std::string& value);
516 std::string* _internal_mutable_label();
517 public:
518
519 // @@protoc_insertion_point(class_scope:android.os.statsd.placeholder.Atom99999)
520 private:
521 class _Internal;
522
523 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
524 typedef void InternalArenaConstructable_;
525 typedef void DestructorSkippable_;
526 struct Impl_ {
527 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
528 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
529 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr label_;
530 };
531 union { Impl_ _impl_; };
532 friend struct ::TableStruct_frameworks_2fproto_5flogging_2fstats_2fatoms_2fplaceholder_2fplaceholder_5fextension_5fatoms_2eproto;
533 };
534 // ===================================================================
535
536 static const int kAtom9999FieldNumber = 9999;
537 extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
538 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::placeholder::Atom9999 >, 11, false >
539 atom_9999;
540 static const int kAtom99999FieldNumber = 99999;
541 extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::android::os::statsd::Atom,
542 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::android::os::statsd::placeholder::Atom99999 >, 11, false >
543 atom_99999;
544
545 // ===================================================================
546
547 #ifdef __GNUC__
548 #pragma GCC diagnostic push
549 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
550 #endif // __GNUC__
551 // Atom9999
552
553 // repeated .android.os.statsd.AttributionNode attribution_node = 1;
_internal_attribution_node_size()554 inline int Atom9999::_internal_attribution_node_size() const {
555 return _impl_.attribution_node_.size();
556 }
attribution_node_size()557 inline int Atom9999::attribution_node_size() const {
558 return _internal_attribution_node_size();
559 }
mutable_attribution_node(int index)560 inline ::android::os::statsd::AttributionNode* Atom9999::mutable_attribution_node(int index) {
561 // @@protoc_insertion_point(field_mutable:android.os.statsd.placeholder.Atom9999.attribution_node)
562 return _impl_.attribution_node_.Mutable(index);
563 }
564 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::android::os::statsd::AttributionNode >*
mutable_attribution_node()565 Atom9999::mutable_attribution_node() {
566 // @@protoc_insertion_point(field_mutable_list:android.os.statsd.placeholder.Atom9999.attribution_node)
567 return &_impl_.attribution_node_;
568 }
_internal_attribution_node(int index)569 inline const ::android::os::statsd::AttributionNode& Atom9999::_internal_attribution_node(int index) const {
570 return _impl_.attribution_node_.Get(index);
571 }
attribution_node(int index)572 inline const ::android::os::statsd::AttributionNode& Atom9999::attribution_node(int index) const {
573 // @@protoc_insertion_point(field_get:android.os.statsd.placeholder.Atom9999.attribution_node)
574 return _internal_attribution_node(index);
575 }
_internal_add_attribution_node()576 inline ::android::os::statsd::AttributionNode* Atom9999::_internal_add_attribution_node() {
577 return _impl_.attribution_node_.Add();
578 }
add_attribution_node()579 inline ::android::os::statsd::AttributionNode* Atom9999::add_attribution_node() {
580 ::android::os::statsd::AttributionNode* _add = _internal_add_attribution_node();
581 // @@protoc_insertion_point(field_add:android.os.statsd.placeholder.Atom9999.attribution_node)
582 return _add;
583 }
584 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::android::os::statsd::AttributionNode >&
attribution_node()585 Atom9999::attribution_node() const {
586 // @@protoc_insertion_point(field_list:android.os.statsd.placeholder.Atom9999.attribution_node)
587 return _impl_.attribution_node_;
588 }
589
590 // optional int32 uid = 2 [(.android.os.statsd.is_uid) = true];
_internal_has_uid()591 inline bool Atom9999::_internal_has_uid() const {
592 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
593 return value;
594 }
has_uid()595 inline bool Atom9999::has_uid() const {
596 return _internal_has_uid();
597 }
clear_uid()598 inline void Atom9999::clear_uid() {
599 _impl_.uid_ = 0;
600 _impl_._has_bits_[0] &= ~0x00000004u;
601 }
_internal_uid()602 inline ::int32_t Atom9999::_internal_uid() const {
603 return _impl_.uid_;
604 }
uid()605 inline ::int32_t Atom9999::uid() const {
606 // @@protoc_insertion_point(field_get:android.os.statsd.placeholder.Atom9999.uid)
607 return _internal_uid();
608 }
_internal_set_uid(::int32_t value)609 inline void Atom9999::_internal_set_uid(::int32_t value) {
610 _impl_._has_bits_[0] |= 0x00000004u;
611 _impl_.uid_ = value;
612 }
set_uid(::int32_t value)613 inline void Atom9999::set_uid(::int32_t value) {
614 _internal_set_uid(value);
615 // @@protoc_insertion_point(field_set:android.os.statsd.placeholder.Atom9999.uid)
616 }
617
618 // optional int64 latency_millis = 3;
_internal_has_latency_millis()619 inline bool Atom9999::_internal_has_latency_millis() const {
620 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
621 return value;
622 }
has_latency_millis()623 inline bool Atom9999::has_latency_millis() const {
624 return _internal_has_latency_millis();
625 }
clear_latency_millis()626 inline void Atom9999::clear_latency_millis() {
627 _impl_.latency_millis_ = ::int64_t{0};
628 _impl_._has_bits_[0] &= ~0x00000002u;
629 }
_internal_latency_millis()630 inline ::int64_t Atom9999::_internal_latency_millis() const {
631 return _impl_.latency_millis_;
632 }
latency_millis()633 inline ::int64_t Atom9999::latency_millis() const {
634 // @@protoc_insertion_point(field_get:android.os.statsd.placeholder.Atom9999.latency_millis)
635 return _internal_latency_millis();
636 }
_internal_set_latency_millis(::int64_t value)637 inline void Atom9999::_internal_set_latency_millis(::int64_t value) {
638 _impl_._has_bits_[0] |= 0x00000002u;
639 _impl_.latency_millis_ = value;
640 }
set_latency_millis(::int64_t value)641 inline void Atom9999::set_latency_millis(::int64_t value) {
642 _internal_set_latency_millis(value);
643 // @@protoc_insertion_point(field_set:android.os.statsd.placeholder.Atom9999.latency_millis)
644 }
645
646 // optional .android.os.statsd.placeholder.Atom9999.State state = 4;
_internal_has_state()647 inline bool Atom9999::_internal_has_state() const {
648 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
649 return value;
650 }
has_state()651 inline bool Atom9999::has_state() const {
652 return _internal_has_state();
653 }
clear_state()654 inline void Atom9999::clear_state() {
655 _impl_.state_ = 0;
656 _impl_._has_bits_[0] &= ~0x00000008u;
657 }
_internal_state()658 inline ::android::os::statsd::placeholder::Atom9999_State Atom9999::_internal_state() const {
659 return static_cast< ::android::os::statsd::placeholder::Atom9999_State >(_impl_.state_);
660 }
state()661 inline ::android::os::statsd::placeholder::Atom9999_State Atom9999::state() const {
662 // @@protoc_insertion_point(field_get:android.os.statsd.placeholder.Atom9999.state)
663 return _internal_state();
664 }
_internal_set_state(::android::os::statsd::placeholder::Atom9999_State value)665 inline void Atom9999::_internal_set_state(::android::os::statsd::placeholder::Atom9999_State value) {
666 assert(::android::os::statsd::placeholder::Atom9999_State_IsValid(value));
667 _impl_._has_bits_[0] |= 0x00000008u;
668 _impl_.state_ = value;
669 }
set_state(::android::os::statsd::placeholder::Atom9999_State value)670 inline void Atom9999::set_state(::android::os::statsd::placeholder::Atom9999_State value) {
671 _internal_set_state(value);
672 // @@protoc_insertion_point(field_set:android.os.statsd.placeholder.Atom9999.state)
673 }
674
675 // optional string label = 5;
_internal_has_label()676 inline bool Atom9999::_internal_has_label() const {
677 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
678 return value;
679 }
has_label()680 inline bool Atom9999::has_label() const {
681 return _internal_has_label();
682 }
clear_label()683 inline void Atom9999::clear_label() {
684 _impl_.label_.ClearToEmpty();
685 _impl_._has_bits_[0] &= ~0x00000001u;
686 }
label()687 inline const std::string& Atom9999::label() const {
688 // @@protoc_insertion_point(field_get:android.os.statsd.placeholder.Atom9999.label)
689 return _internal_label();
690 }
691 template <typename ArgT0, typename... ArgT>
692 inline PROTOBUF_ALWAYS_INLINE
set_label(ArgT0 && arg0,ArgT...args)693 void Atom9999::set_label(ArgT0&& arg0, ArgT... args) {
694 _impl_._has_bits_[0] |= 0x00000001u;
695 _impl_.label_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
696 // @@protoc_insertion_point(field_set:android.os.statsd.placeholder.Atom9999.label)
697 }
mutable_label()698 inline std::string* Atom9999::mutable_label() {
699 std::string* _s = _internal_mutable_label();
700 // @@protoc_insertion_point(field_mutable:android.os.statsd.placeholder.Atom9999.label)
701 return _s;
702 }
_internal_label()703 inline const std::string& Atom9999::_internal_label() const {
704 return _impl_.label_.Get();
705 }
_internal_set_label(const std::string & value)706 inline void Atom9999::_internal_set_label(const std::string& value) {
707 _impl_._has_bits_[0] |= 0x00000001u;
708 _impl_.label_.Set(value, GetArenaForAllocation());
709 }
_internal_mutable_label()710 inline std::string* Atom9999::_internal_mutable_label() {
711 _impl_._has_bits_[0] |= 0x00000001u;
712 return _impl_.label_.Mutable(GetArenaForAllocation());
713 }
release_label()714 inline std::string* Atom9999::release_label() {
715 // @@protoc_insertion_point(field_release:android.os.statsd.placeholder.Atom9999.label)
716 if (!_internal_has_label()) {
717 return nullptr;
718 }
719 _impl_._has_bits_[0] &= ~0x00000001u;
720 auto* p = _impl_.label_.Release();
721 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
722 if (_impl_.label_.IsDefault()) {
723 _impl_.label_.Set("", GetArenaForAllocation());
724 }
725 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
726 return p;
727 }
set_allocated_label(std::string * label)728 inline void Atom9999::set_allocated_label(std::string* label) {
729 if (label != nullptr) {
730 _impl_._has_bits_[0] |= 0x00000001u;
731 } else {
732 _impl_._has_bits_[0] &= ~0x00000001u;
733 }
734 _impl_.label_.SetAllocated(label, GetArenaForAllocation());
735 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
736 if (_impl_.label_.IsDefault()) {
737 _impl_.label_.Set("", GetArenaForAllocation());
738 }
739 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
740 // @@protoc_insertion_point(field_set_allocated:android.os.statsd.placeholder.Atom9999.label)
741 }
742
743 // -------------------------------------------------------------------
744
745 // Atom99999
746
747 // optional string label = 1;
_internal_has_label()748 inline bool Atom99999::_internal_has_label() const {
749 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
750 return value;
751 }
has_label()752 inline bool Atom99999::has_label() const {
753 return _internal_has_label();
754 }
clear_label()755 inline void Atom99999::clear_label() {
756 _impl_.label_.ClearToEmpty();
757 _impl_._has_bits_[0] &= ~0x00000001u;
758 }
label()759 inline const std::string& Atom99999::label() const {
760 // @@protoc_insertion_point(field_get:android.os.statsd.placeholder.Atom99999.label)
761 return _internal_label();
762 }
763 template <typename ArgT0, typename... ArgT>
764 inline PROTOBUF_ALWAYS_INLINE
set_label(ArgT0 && arg0,ArgT...args)765 void Atom99999::set_label(ArgT0&& arg0, ArgT... args) {
766 _impl_._has_bits_[0] |= 0x00000001u;
767 _impl_.label_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
768 // @@protoc_insertion_point(field_set:android.os.statsd.placeholder.Atom99999.label)
769 }
mutable_label()770 inline std::string* Atom99999::mutable_label() {
771 std::string* _s = _internal_mutable_label();
772 // @@protoc_insertion_point(field_mutable:android.os.statsd.placeholder.Atom99999.label)
773 return _s;
774 }
_internal_label()775 inline const std::string& Atom99999::_internal_label() const {
776 return _impl_.label_.Get();
777 }
_internal_set_label(const std::string & value)778 inline void Atom99999::_internal_set_label(const std::string& value) {
779 _impl_._has_bits_[0] |= 0x00000001u;
780 _impl_.label_.Set(value, GetArenaForAllocation());
781 }
_internal_mutable_label()782 inline std::string* Atom99999::_internal_mutable_label() {
783 _impl_._has_bits_[0] |= 0x00000001u;
784 return _impl_.label_.Mutable(GetArenaForAllocation());
785 }
release_label()786 inline std::string* Atom99999::release_label() {
787 // @@protoc_insertion_point(field_release:android.os.statsd.placeholder.Atom99999.label)
788 if (!_internal_has_label()) {
789 return nullptr;
790 }
791 _impl_._has_bits_[0] &= ~0x00000001u;
792 auto* p = _impl_.label_.Release();
793 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
794 if (_impl_.label_.IsDefault()) {
795 _impl_.label_.Set("", GetArenaForAllocation());
796 }
797 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
798 return p;
799 }
set_allocated_label(std::string * label)800 inline void Atom99999::set_allocated_label(std::string* label) {
801 if (label != nullptr) {
802 _impl_._has_bits_[0] |= 0x00000001u;
803 } else {
804 _impl_._has_bits_[0] &= ~0x00000001u;
805 }
806 _impl_.label_.SetAllocated(label, GetArenaForAllocation());
807 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
808 if (_impl_.label_.IsDefault()) {
809 _impl_.label_.Set("", GetArenaForAllocation());
810 }
811 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
812 // @@protoc_insertion_point(field_set_allocated:android.os.statsd.placeholder.Atom99999.label)
813 }
814
815 #ifdef __GNUC__
816 #pragma GCC diagnostic pop
817 #endif // __GNUC__
818 // -------------------------------------------------------------------
819
820
821 // @@protoc_insertion_point(namespace_scope)
822
823 } // namespace placeholder
824 } // namespace statsd
825 } // namespace os
826 } // namespace android
827
828 PROTOBUF_NAMESPACE_OPEN
829
830 template <> struct is_proto_enum< ::android::os::statsd::placeholder::Atom9999_State> : ::std::true_type {};
831 template <>
832 inline const EnumDescriptor* GetEnumDescriptor< ::android::os::statsd::placeholder::Atom9999_State>() {
833 return ::android::os::statsd::placeholder::Atom9999_State_descriptor();
834 }
835
836 PROTOBUF_NAMESPACE_CLOSE
837
838 // @@protoc_insertion_point(global_scope)
839
840 #include <google/protobuf/port_undef.inc>
841 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_frameworks_2fproto_5flogging_2fstats_2fatoms_2fplaceholder_2fplaceholder_5fextension_5fatoms_2eproto
842