1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: packages/modules/StatsD/statsd/src/active_config_list.proto
3
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_packages_2fmodules_2fStatsD_2fstatsd_2fsrc_2factive_5fconfig_5flist_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_packages_2fmodules_2fStatsD_2fstatsd_2fsrc_2factive_5fconfig_5flist_2eproto
6
7 #include <cstdint>
8 #include <limits>
9 #include <string>
10
11 #include <google/protobuf/port_def.inc>
12 #if PROTOBUF_VERSION < 3021000
13 #error This file was generated by a newer version of protoc which is
14 #error incompatible with your Protocol Buffer headers. Please update
15 #error your headers.
16 #endif
17 #if 3021012 < PROTOBUF_MIN_PROTOC_VERSION
18 #error This file was generated by an older version of protoc which is
19 #error incompatible with your Protocol Buffer headers. Please
20 #error regenerate this file with a newer version of protoc.
21 #endif
22
23 #include <google/protobuf/port_undef.inc>
24 #include <google/protobuf/io/coded_stream.h>
25 #include <google/protobuf/arena.h>
26 #include <google/protobuf/arenastring.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/metadata_lite.h>
29 #include <google/protobuf/message_lite.h>
30 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
31 #include <google/protobuf/extension_set.h> // IWYU pragma: export
32 #include <google/protobuf/generated_enum_util.h>
33 // @@protoc_insertion_point(includes)
34 #include <google/protobuf/port_def.inc>
35 #define PROTOBUF_INTERNAL_EXPORT_packages_2fmodules_2fStatsD_2fstatsd_2fsrc_2factive_5fconfig_5flist_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_packages_2fmodules_2fStatsD_2fstatsd_2fsrc_2factive_5fconfig_5flist_2eproto {
44 static const ::uint32_t offsets[];
45 };
46 namespace android {
47 namespace os {
48 namespace statsd {
49 class ActiveConfig;
50 struct ActiveConfigDefaultTypeInternal;
51 extern ActiveConfigDefaultTypeInternal _ActiveConfig_default_instance_;
52 class ActiveConfigList;
53 struct ActiveConfigListDefaultTypeInternal;
54 extern ActiveConfigListDefaultTypeInternal _ActiveConfigList_default_instance_;
55 class ActiveEventActivation;
56 struct ActiveEventActivationDefaultTypeInternal;
57 extern ActiveEventActivationDefaultTypeInternal _ActiveEventActivation_default_instance_;
58 class ActiveMetric;
59 struct ActiveMetricDefaultTypeInternal;
60 extern ActiveMetricDefaultTypeInternal _ActiveMetric_default_instance_;
61 } // namespace statsd
62 } // namespace os
63 } // namespace android
64 PROTOBUF_NAMESPACE_OPEN
65 template<> ::android::os::statsd::ActiveConfig* Arena::CreateMaybeMessage<::android::os::statsd::ActiveConfig>(Arena*);
66 template<> ::android::os::statsd::ActiveConfigList* Arena::CreateMaybeMessage<::android::os::statsd::ActiveConfigList>(Arena*);
67 template<> ::android::os::statsd::ActiveEventActivation* Arena::CreateMaybeMessage<::android::os::statsd::ActiveEventActivation>(Arena*);
68 template<> ::android::os::statsd::ActiveMetric* Arena::CreateMaybeMessage<::android::os::statsd::ActiveMetric>(Arena*);
69 PROTOBUF_NAMESPACE_CLOSE
70 namespace android {
71 namespace os {
72 namespace statsd {
73
74 enum ActiveEventActivation_State : int {
75 ActiveEventActivation_State_UNNKNOWN = 0,
76 ActiveEventActivation_State_ACTIVE = 1,
77 ActiveEventActivation_State_ACTIVATE_ON_BOOT = 2
78 };
79 bool ActiveEventActivation_State_IsValid(int value);
80 constexpr ActiveEventActivation_State ActiveEventActivation_State_State_MIN = ActiveEventActivation_State_UNNKNOWN;
81 constexpr ActiveEventActivation_State ActiveEventActivation_State_State_MAX = ActiveEventActivation_State_ACTIVATE_ON_BOOT;
82 constexpr int ActiveEventActivation_State_State_ARRAYSIZE = ActiveEventActivation_State_State_MAX + 1;
83
84 const std::string& ActiveEventActivation_State_Name(ActiveEventActivation_State value);
85 template<typename T>
ActiveEventActivation_State_Name(T enum_t_value)86 inline const std::string& ActiveEventActivation_State_Name(T enum_t_value) {
87 static_assert(::std::is_same<T, ActiveEventActivation_State>::value ||
88 ::std::is_integral<T>::value,
89 "Incorrect type passed to function ActiveEventActivation_State_Name.");
90 return ActiveEventActivation_State_Name(static_cast<ActiveEventActivation_State>(enum_t_value));
91 }
92 bool ActiveEventActivation_State_Parse(
93 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ActiveEventActivation_State* value);
94 // ===================================================================
95
96 class ActiveEventActivation final :
97 public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:android.os.statsd.ActiveEventActivation) */ {
98 public:
ActiveEventActivation()99 inline ActiveEventActivation() : ActiveEventActivation(nullptr) {}
100 ~ActiveEventActivation() override;
101 explicit PROTOBUF_CONSTEXPR ActiveEventActivation(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
102
103 ActiveEventActivation(const ActiveEventActivation& from);
ActiveEventActivation(ActiveEventActivation && from)104 ActiveEventActivation(ActiveEventActivation&& from) noexcept
105 : ActiveEventActivation() {
106 *this = ::std::move(from);
107 }
108
109 inline ActiveEventActivation& operator=(const ActiveEventActivation& from) {
110 if (this == &from) return *this;
111 CopyFrom(from);
112 return *this;
113 }
114 inline ActiveEventActivation& operator=(ActiveEventActivation&& from) noexcept {
115 if (this == &from) return *this;
116 if (GetOwningArena() == from.GetOwningArena()
117 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
118 && GetOwningArena() != nullptr
119 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
120 ) {
121 InternalSwap(&from);
122 } else {
123 CopyFrom(from);
124 }
125 return *this;
126 }
127
unknown_fields()128 inline const std::string& unknown_fields() const {
129 return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
130 }
mutable_unknown_fields()131 inline std::string* mutable_unknown_fields() {
132 return _internal_metadata_.mutable_unknown_fields<std::string>();
133 }
134
default_instance()135 static const ActiveEventActivation& default_instance() {
136 return *internal_default_instance();
137 }
internal_default_instance()138 static inline const ActiveEventActivation* internal_default_instance() {
139 return reinterpret_cast<const ActiveEventActivation*>(
140 &_ActiveEventActivation_default_instance_);
141 }
142 static constexpr int kIndexInFileMessages =
143 0;
144
swap(ActiveEventActivation & a,ActiveEventActivation & b)145 friend void swap(ActiveEventActivation& a, ActiveEventActivation& b) {
146 a.Swap(&b);
147 }
Swap(ActiveEventActivation * other)148 inline void Swap(ActiveEventActivation* other) {
149 if (other == this) return;
150 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
151 if (GetOwningArena() != nullptr &&
152 GetOwningArena() == other->GetOwningArena()) {
153 #else // PROTOBUF_FORCE_COPY_IN_SWAP
154 if (GetOwningArena() == other->GetOwningArena()) {
155 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
156 InternalSwap(other);
157 } else {
158 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
159 }
160 }
161 void UnsafeArenaSwap(ActiveEventActivation* other) {
162 if (other == this) return;
163 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
164 InternalSwap(other);
165 }
166
167 // implements Message ----------------------------------------------
168
169 ActiveEventActivation* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
170 return CreateMaybeMessage<ActiveEventActivation>(arena);
171 }
172 ActiveEventActivation* New() const {
173 return New(nullptr);
174 }
175 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
176 void CopyFrom(const ActiveEventActivation& from);
177 void MergeFrom(const ActiveEventActivation& from);
178 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
179 bool IsInitialized() const final;
180
181 size_t ByteSizeLong() const final;
182 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
183 ::uint8_t* _InternalSerialize(
184 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
185 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
186
187 private:
188 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
189 void SharedDtor();
190 void SetCachedSize(int size) const;
191 void InternalSwap(ActiveEventActivation* other);
192
193 private:
194 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
195 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
196 return "android.os.statsd.ActiveEventActivation";
197 }
198 protected:
199 explicit ActiveEventActivation(::PROTOBUF_NAMESPACE_ID::Arena* arena,
200 bool is_message_owned = false);
201 public:
202
203 std::string GetTypeName() const final;
204
205 // nested types ----------------------------------------------------
206
207 typedef ActiveEventActivation_State State;
208 static constexpr State UNNKNOWN =
209 ActiveEventActivation_State_UNNKNOWN;
210 static constexpr State ACTIVE =
211 ActiveEventActivation_State_ACTIVE;
212 static constexpr State ACTIVATE_ON_BOOT =
213 ActiveEventActivation_State_ACTIVATE_ON_BOOT;
214 static inline bool State_IsValid(int value) {
215 return ActiveEventActivation_State_IsValid(value);
216 }
217 static constexpr State State_MIN =
218 ActiveEventActivation_State_State_MIN;
219 static constexpr State State_MAX =
220 ActiveEventActivation_State_State_MAX;
221 static constexpr int State_ARRAYSIZE =
222 ActiveEventActivation_State_State_ARRAYSIZE;
223 template<typename T>
224 static inline const std::string& State_Name(T enum_t_value) {
225 static_assert(::std::is_same<T, State>::value ||
226 ::std::is_integral<T>::value,
227 "Incorrect type passed to function State_Name.");
228 return ActiveEventActivation_State_Name(enum_t_value);
229 }
230 static inline bool State_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
231 State* value) {
232 return ActiveEventActivation_State_Parse(name, value);
233 }
234
235 // accessors -------------------------------------------------------
236
237 enum : int {
238 kRemainingTtlNanosFieldNumber = 2,
239 kAtomMatcherIndexFieldNumber = 1,
240 kStateFieldNumber = 3,
241 };
242 // optional int64 remaining_ttl_nanos = 2;
243 bool has_remaining_ttl_nanos() const;
244 private:
245 bool _internal_has_remaining_ttl_nanos() const;
246 public:
247 void clear_remaining_ttl_nanos();
248 ::int64_t remaining_ttl_nanos() const;
249 void set_remaining_ttl_nanos(::int64_t value);
250 private:
251 ::int64_t _internal_remaining_ttl_nanos() const;
252 void _internal_set_remaining_ttl_nanos(::int64_t value);
253 public:
254
255 // optional int32 atom_matcher_index = 1;
256 bool has_atom_matcher_index() const;
257 private:
258 bool _internal_has_atom_matcher_index() const;
259 public:
260 void clear_atom_matcher_index();
261 ::int32_t atom_matcher_index() const;
262 void set_atom_matcher_index(::int32_t value);
263 private:
264 ::int32_t _internal_atom_matcher_index() const;
265 void _internal_set_atom_matcher_index(::int32_t value);
266 public:
267
268 // optional .android.os.statsd.ActiveEventActivation.State state = 3;
269 bool has_state() const;
270 private:
271 bool _internal_has_state() const;
272 public:
273 void clear_state();
274 ::android::os::statsd::ActiveEventActivation_State state() const;
275 void set_state(::android::os::statsd::ActiveEventActivation_State value);
276 private:
277 ::android::os::statsd::ActiveEventActivation_State _internal_state() const;
278 void _internal_set_state(::android::os::statsd::ActiveEventActivation_State value);
279 public:
280
281 // @@protoc_insertion_point(class_scope:android.os.statsd.ActiveEventActivation)
282 private:
283 class _Internal;
284
285 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
286 typedef void InternalArenaConstructable_;
287 typedef void DestructorSkippable_;
288 struct Impl_ {
289 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
290 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
291 ::int64_t remaining_ttl_nanos_;
292 ::int32_t atom_matcher_index_;
293 int state_;
294 };
295 union { Impl_ _impl_; };
296 friend struct ::TableStruct_packages_2fmodules_2fStatsD_2fstatsd_2fsrc_2factive_5fconfig_5flist_2eproto;
297 };
298 // -------------------------------------------------------------------
299
300 class ActiveMetric final :
301 public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:android.os.statsd.ActiveMetric) */ {
302 public:
ActiveMetric()303 inline ActiveMetric() : ActiveMetric(nullptr) {}
304 ~ActiveMetric() override;
305 explicit PROTOBUF_CONSTEXPR ActiveMetric(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
306
307 ActiveMetric(const ActiveMetric& from);
ActiveMetric(ActiveMetric && from)308 ActiveMetric(ActiveMetric&& from) noexcept
309 : ActiveMetric() {
310 *this = ::std::move(from);
311 }
312
313 inline ActiveMetric& operator=(const ActiveMetric& from) {
314 if (this == &from) return *this;
315 CopyFrom(from);
316 return *this;
317 }
318 inline ActiveMetric& operator=(ActiveMetric&& from) noexcept {
319 if (this == &from) return *this;
320 if (GetOwningArena() == from.GetOwningArena()
321 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
322 && GetOwningArena() != nullptr
323 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
324 ) {
325 InternalSwap(&from);
326 } else {
327 CopyFrom(from);
328 }
329 return *this;
330 }
331
unknown_fields()332 inline const std::string& unknown_fields() const {
333 return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
334 }
mutable_unknown_fields()335 inline std::string* mutable_unknown_fields() {
336 return _internal_metadata_.mutable_unknown_fields<std::string>();
337 }
338
default_instance()339 static const ActiveMetric& default_instance() {
340 return *internal_default_instance();
341 }
internal_default_instance()342 static inline const ActiveMetric* internal_default_instance() {
343 return reinterpret_cast<const ActiveMetric*>(
344 &_ActiveMetric_default_instance_);
345 }
346 static constexpr int kIndexInFileMessages =
347 1;
348
swap(ActiveMetric & a,ActiveMetric & b)349 friend void swap(ActiveMetric& a, ActiveMetric& b) {
350 a.Swap(&b);
351 }
Swap(ActiveMetric * other)352 inline void Swap(ActiveMetric* other) {
353 if (other == this) return;
354 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
355 if (GetOwningArena() != nullptr &&
356 GetOwningArena() == other->GetOwningArena()) {
357 #else // PROTOBUF_FORCE_COPY_IN_SWAP
358 if (GetOwningArena() == other->GetOwningArena()) {
359 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
360 InternalSwap(other);
361 } else {
362 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
363 }
364 }
365 void UnsafeArenaSwap(ActiveMetric* other) {
366 if (other == this) return;
367 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
368 InternalSwap(other);
369 }
370
371 // implements Message ----------------------------------------------
372
373 ActiveMetric* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
374 return CreateMaybeMessage<ActiveMetric>(arena);
375 }
376 ActiveMetric* New() const {
377 return New(nullptr);
378 }
379 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
380 void CopyFrom(const ActiveMetric& from);
381 void MergeFrom(const ActiveMetric& from);
382 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
383 bool IsInitialized() const final;
384
385 size_t ByteSizeLong() const final;
386 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
387 ::uint8_t* _InternalSerialize(
388 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
389 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
390
391 private:
392 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
393 void SharedDtor();
394 void SetCachedSize(int size) const;
395 void InternalSwap(ActiveMetric* other);
396
397 private:
398 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
399 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
400 return "android.os.statsd.ActiveMetric";
401 }
402 protected:
403 explicit ActiveMetric(::PROTOBUF_NAMESPACE_ID::Arena* arena,
404 bool is_message_owned = false);
405 public:
406
407 std::string GetTypeName() const final;
408
409 // nested types ----------------------------------------------------
410
411 // accessors -------------------------------------------------------
412
413 enum : int {
414 kActivationFieldNumber = 2,
415 kIdFieldNumber = 1,
416 };
417 // repeated .android.os.statsd.ActiveEventActivation activation = 2;
418 int activation_size() const;
419 private:
420 int _internal_activation_size() const;
421 public:
422 void clear_activation();
423 ::android::os::statsd::ActiveEventActivation* mutable_activation(int index);
424 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::android::os::statsd::ActiveEventActivation >*
425 mutable_activation();
426 private:
427 const ::android::os::statsd::ActiveEventActivation& _internal_activation(int index) const;
428 ::android::os::statsd::ActiveEventActivation* _internal_add_activation();
429 public:
430 const ::android::os::statsd::ActiveEventActivation& activation(int index) const;
431 ::android::os::statsd::ActiveEventActivation* add_activation();
432 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::android::os::statsd::ActiveEventActivation >&
433 activation() const;
434
435 // optional int64 id = 1;
436 bool has_id() const;
437 private:
438 bool _internal_has_id() const;
439 public:
440 void clear_id();
441 ::int64_t id() const;
442 void set_id(::int64_t value);
443 private:
444 ::int64_t _internal_id() const;
445 void _internal_set_id(::int64_t value);
446 public:
447
448 // @@protoc_insertion_point(class_scope:android.os.statsd.ActiveMetric)
449 private:
450 class _Internal;
451
452 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
453 typedef void InternalArenaConstructable_;
454 typedef void DestructorSkippable_;
455 struct Impl_ {
456 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
457 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
458 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::android::os::statsd::ActiveEventActivation > activation_;
459 ::int64_t id_;
460 };
461 union { Impl_ _impl_; };
462 friend struct ::TableStruct_packages_2fmodules_2fStatsD_2fstatsd_2fsrc_2factive_5fconfig_5flist_2eproto;
463 };
464 // -------------------------------------------------------------------
465
466 class ActiveConfig final :
467 public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:android.os.statsd.ActiveConfig) */ {
468 public:
ActiveConfig()469 inline ActiveConfig() : ActiveConfig(nullptr) {}
470 ~ActiveConfig() override;
471 explicit PROTOBUF_CONSTEXPR ActiveConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
472
473 ActiveConfig(const ActiveConfig& from);
ActiveConfig(ActiveConfig && from)474 ActiveConfig(ActiveConfig&& from) noexcept
475 : ActiveConfig() {
476 *this = ::std::move(from);
477 }
478
479 inline ActiveConfig& operator=(const ActiveConfig& from) {
480 if (this == &from) return *this;
481 CopyFrom(from);
482 return *this;
483 }
484 inline ActiveConfig& operator=(ActiveConfig&& from) noexcept {
485 if (this == &from) return *this;
486 if (GetOwningArena() == from.GetOwningArena()
487 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
488 && GetOwningArena() != nullptr
489 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
490 ) {
491 InternalSwap(&from);
492 } else {
493 CopyFrom(from);
494 }
495 return *this;
496 }
497
unknown_fields()498 inline const std::string& unknown_fields() const {
499 return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
500 }
mutable_unknown_fields()501 inline std::string* mutable_unknown_fields() {
502 return _internal_metadata_.mutable_unknown_fields<std::string>();
503 }
504
default_instance()505 static const ActiveConfig& default_instance() {
506 return *internal_default_instance();
507 }
internal_default_instance()508 static inline const ActiveConfig* internal_default_instance() {
509 return reinterpret_cast<const ActiveConfig*>(
510 &_ActiveConfig_default_instance_);
511 }
512 static constexpr int kIndexInFileMessages =
513 2;
514
swap(ActiveConfig & a,ActiveConfig & b)515 friend void swap(ActiveConfig& a, ActiveConfig& b) {
516 a.Swap(&b);
517 }
Swap(ActiveConfig * other)518 inline void Swap(ActiveConfig* other) {
519 if (other == this) return;
520 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
521 if (GetOwningArena() != nullptr &&
522 GetOwningArena() == other->GetOwningArena()) {
523 #else // PROTOBUF_FORCE_COPY_IN_SWAP
524 if (GetOwningArena() == other->GetOwningArena()) {
525 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
526 InternalSwap(other);
527 } else {
528 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
529 }
530 }
531 void UnsafeArenaSwap(ActiveConfig* other) {
532 if (other == this) return;
533 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
534 InternalSwap(other);
535 }
536
537 // implements Message ----------------------------------------------
538
539 ActiveConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
540 return CreateMaybeMessage<ActiveConfig>(arena);
541 }
542 ActiveConfig* New() const {
543 return New(nullptr);
544 }
545 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
546 void CopyFrom(const ActiveConfig& from);
547 void MergeFrom(const ActiveConfig& from);
548 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
549 bool IsInitialized() const final;
550
551 size_t ByteSizeLong() const final;
552 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
553 ::uint8_t* _InternalSerialize(
554 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
555 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
556
557 private:
558 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
559 void SharedDtor();
560 void SetCachedSize(int size) const;
561 void InternalSwap(ActiveConfig* other);
562
563 private:
564 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
565 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
566 return "android.os.statsd.ActiveConfig";
567 }
568 protected:
569 explicit ActiveConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena,
570 bool is_message_owned = false);
571 public:
572
573 std::string GetTypeName() const final;
574
575 // nested types ----------------------------------------------------
576
577 // accessors -------------------------------------------------------
578
579 enum : int {
580 kMetricFieldNumber = 3,
581 kIdFieldNumber = 1,
582 kUidFieldNumber = 2,
583 };
584 // repeated .android.os.statsd.ActiveMetric metric = 3;
585 int metric_size() const;
586 private:
587 int _internal_metric_size() const;
588 public:
589 void clear_metric();
590 ::android::os::statsd::ActiveMetric* mutable_metric(int index);
591 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::android::os::statsd::ActiveMetric >*
592 mutable_metric();
593 private:
594 const ::android::os::statsd::ActiveMetric& _internal_metric(int index) const;
595 ::android::os::statsd::ActiveMetric* _internal_add_metric();
596 public:
597 const ::android::os::statsd::ActiveMetric& metric(int index) const;
598 ::android::os::statsd::ActiveMetric* add_metric();
599 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::android::os::statsd::ActiveMetric >&
600 metric() const;
601
602 // optional int64 id = 1;
603 bool has_id() const;
604 private:
605 bool _internal_has_id() const;
606 public:
607 void clear_id();
608 ::int64_t id() const;
609 void set_id(::int64_t value);
610 private:
611 ::int64_t _internal_id() const;
612 void _internal_set_id(::int64_t value);
613 public:
614
615 // optional int32 uid = 2;
616 bool has_uid() const;
617 private:
618 bool _internal_has_uid() const;
619 public:
620 void clear_uid();
621 ::int32_t uid() const;
622 void set_uid(::int32_t value);
623 private:
624 ::int32_t _internal_uid() const;
625 void _internal_set_uid(::int32_t value);
626 public:
627
628 // @@protoc_insertion_point(class_scope:android.os.statsd.ActiveConfig)
629 private:
630 class _Internal;
631
632 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
633 typedef void InternalArenaConstructable_;
634 typedef void DestructorSkippable_;
635 struct Impl_ {
636 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
637 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
638 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::android::os::statsd::ActiveMetric > metric_;
639 ::int64_t id_;
640 ::int32_t uid_;
641 };
642 union { Impl_ _impl_; };
643 friend struct ::TableStruct_packages_2fmodules_2fStatsD_2fstatsd_2fsrc_2factive_5fconfig_5flist_2eproto;
644 };
645 // -------------------------------------------------------------------
646
647 class ActiveConfigList final :
648 public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:android.os.statsd.ActiveConfigList) */ {
649 public:
ActiveConfigList()650 inline ActiveConfigList() : ActiveConfigList(nullptr) {}
651 ~ActiveConfigList() override;
652 explicit PROTOBUF_CONSTEXPR ActiveConfigList(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
653
654 ActiveConfigList(const ActiveConfigList& from);
ActiveConfigList(ActiveConfigList && from)655 ActiveConfigList(ActiveConfigList&& from) noexcept
656 : ActiveConfigList() {
657 *this = ::std::move(from);
658 }
659
660 inline ActiveConfigList& operator=(const ActiveConfigList& from) {
661 if (this == &from) return *this;
662 CopyFrom(from);
663 return *this;
664 }
665 inline ActiveConfigList& operator=(ActiveConfigList&& from) noexcept {
666 if (this == &from) return *this;
667 if (GetOwningArena() == from.GetOwningArena()
668 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
669 && GetOwningArena() != nullptr
670 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
671 ) {
672 InternalSwap(&from);
673 } else {
674 CopyFrom(from);
675 }
676 return *this;
677 }
678
unknown_fields()679 inline const std::string& unknown_fields() const {
680 return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
681 }
mutable_unknown_fields()682 inline std::string* mutable_unknown_fields() {
683 return _internal_metadata_.mutable_unknown_fields<std::string>();
684 }
685
default_instance()686 static const ActiveConfigList& default_instance() {
687 return *internal_default_instance();
688 }
internal_default_instance()689 static inline const ActiveConfigList* internal_default_instance() {
690 return reinterpret_cast<const ActiveConfigList*>(
691 &_ActiveConfigList_default_instance_);
692 }
693 static constexpr int kIndexInFileMessages =
694 3;
695
swap(ActiveConfigList & a,ActiveConfigList & b)696 friend void swap(ActiveConfigList& a, ActiveConfigList& b) {
697 a.Swap(&b);
698 }
Swap(ActiveConfigList * other)699 inline void Swap(ActiveConfigList* other) {
700 if (other == this) return;
701 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
702 if (GetOwningArena() != nullptr &&
703 GetOwningArena() == other->GetOwningArena()) {
704 #else // PROTOBUF_FORCE_COPY_IN_SWAP
705 if (GetOwningArena() == other->GetOwningArena()) {
706 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
707 InternalSwap(other);
708 } else {
709 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
710 }
711 }
712 void UnsafeArenaSwap(ActiveConfigList* other) {
713 if (other == this) return;
714 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
715 InternalSwap(other);
716 }
717
718 // implements Message ----------------------------------------------
719
720 ActiveConfigList* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
721 return CreateMaybeMessage<ActiveConfigList>(arena);
722 }
723 ActiveConfigList* New() const {
724 return New(nullptr);
725 }
726 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
727 void CopyFrom(const ActiveConfigList& from);
728 void MergeFrom(const ActiveConfigList& from);
729 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
730 bool IsInitialized() const final;
731
732 size_t ByteSizeLong() const final;
733 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
734 ::uint8_t* _InternalSerialize(
735 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
736 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
737
738 private:
739 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
740 void SharedDtor();
741 void SetCachedSize(int size) const;
742 void InternalSwap(ActiveConfigList* other);
743
744 private:
745 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
746 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
747 return "android.os.statsd.ActiveConfigList";
748 }
749 protected:
750 explicit ActiveConfigList(::PROTOBUF_NAMESPACE_ID::Arena* arena,
751 bool is_message_owned = false);
752 public:
753
754 std::string GetTypeName() const final;
755
756 // nested types ----------------------------------------------------
757
758 // accessors -------------------------------------------------------
759
760 enum : int {
761 kConfigFieldNumber = 1,
762 };
763 // repeated .android.os.statsd.ActiveConfig config = 1;
764 int config_size() const;
765 private:
766 int _internal_config_size() const;
767 public:
768 void clear_config();
769 ::android::os::statsd::ActiveConfig* mutable_config(int index);
770 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::android::os::statsd::ActiveConfig >*
771 mutable_config();
772 private:
773 const ::android::os::statsd::ActiveConfig& _internal_config(int index) const;
774 ::android::os::statsd::ActiveConfig* _internal_add_config();
775 public:
776 const ::android::os::statsd::ActiveConfig& config(int index) const;
777 ::android::os::statsd::ActiveConfig* add_config();
778 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::android::os::statsd::ActiveConfig >&
779 config() const;
780
781 // @@protoc_insertion_point(class_scope:android.os.statsd.ActiveConfigList)
782 private:
783 class _Internal;
784
785 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
786 typedef void InternalArenaConstructable_;
787 typedef void DestructorSkippable_;
788 struct Impl_ {
789 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::android::os::statsd::ActiveConfig > config_;
790 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
791 };
792 union { Impl_ _impl_; };
793 friend struct ::TableStruct_packages_2fmodules_2fStatsD_2fstatsd_2fsrc_2factive_5fconfig_5flist_2eproto;
794 };
795 // ===================================================================
796
797
798 // ===================================================================
799
800 #ifdef __GNUC__
801 #pragma GCC diagnostic push
802 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
803 #endif // __GNUC__
804 // ActiveEventActivation
805
806 // optional int32 atom_matcher_index = 1;
_internal_has_atom_matcher_index()807 inline bool ActiveEventActivation::_internal_has_atom_matcher_index() const {
808 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
809 return value;
810 }
has_atom_matcher_index()811 inline bool ActiveEventActivation::has_atom_matcher_index() const {
812 return _internal_has_atom_matcher_index();
813 }
clear_atom_matcher_index()814 inline void ActiveEventActivation::clear_atom_matcher_index() {
815 _impl_.atom_matcher_index_ = 0;
816 _impl_._has_bits_[0] &= ~0x00000002u;
817 }
_internal_atom_matcher_index()818 inline ::int32_t ActiveEventActivation::_internal_atom_matcher_index() const {
819 return _impl_.atom_matcher_index_;
820 }
atom_matcher_index()821 inline ::int32_t ActiveEventActivation::atom_matcher_index() const {
822 // @@protoc_insertion_point(field_get:android.os.statsd.ActiveEventActivation.atom_matcher_index)
823 return _internal_atom_matcher_index();
824 }
_internal_set_atom_matcher_index(::int32_t value)825 inline void ActiveEventActivation::_internal_set_atom_matcher_index(::int32_t value) {
826 _impl_._has_bits_[0] |= 0x00000002u;
827 _impl_.atom_matcher_index_ = value;
828 }
set_atom_matcher_index(::int32_t value)829 inline void ActiveEventActivation::set_atom_matcher_index(::int32_t value) {
830 _internal_set_atom_matcher_index(value);
831 // @@protoc_insertion_point(field_set:android.os.statsd.ActiveEventActivation.atom_matcher_index)
832 }
833
834 // optional int64 remaining_ttl_nanos = 2;
_internal_has_remaining_ttl_nanos()835 inline bool ActiveEventActivation::_internal_has_remaining_ttl_nanos() const {
836 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
837 return value;
838 }
has_remaining_ttl_nanos()839 inline bool ActiveEventActivation::has_remaining_ttl_nanos() const {
840 return _internal_has_remaining_ttl_nanos();
841 }
clear_remaining_ttl_nanos()842 inline void ActiveEventActivation::clear_remaining_ttl_nanos() {
843 _impl_.remaining_ttl_nanos_ = ::int64_t{0};
844 _impl_._has_bits_[0] &= ~0x00000001u;
845 }
_internal_remaining_ttl_nanos()846 inline ::int64_t ActiveEventActivation::_internal_remaining_ttl_nanos() const {
847 return _impl_.remaining_ttl_nanos_;
848 }
remaining_ttl_nanos()849 inline ::int64_t ActiveEventActivation::remaining_ttl_nanos() const {
850 // @@protoc_insertion_point(field_get:android.os.statsd.ActiveEventActivation.remaining_ttl_nanos)
851 return _internal_remaining_ttl_nanos();
852 }
_internal_set_remaining_ttl_nanos(::int64_t value)853 inline void ActiveEventActivation::_internal_set_remaining_ttl_nanos(::int64_t value) {
854 _impl_._has_bits_[0] |= 0x00000001u;
855 _impl_.remaining_ttl_nanos_ = value;
856 }
set_remaining_ttl_nanos(::int64_t value)857 inline void ActiveEventActivation::set_remaining_ttl_nanos(::int64_t value) {
858 _internal_set_remaining_ttl_nanos(value);
859 // @@protoc_insertion_point(field_set:android.os.statsd.ActiveEventActivation.remaining_ttl_nanos)
860 }
861
862 // optional .android.os.statsd.ActiveEventActivation.State state = 3;
_internal_has_state()863 inline bool ActiveEventActivation::_internal_has_state() const {
864 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
865 return value;
866 }
has_state()867 inline bool ActiveEventActivation::has_state() const {
868 return _internal_has_state();
869 }
clear_state()870 inline void ActiveEventActivation::clear_state() {
871 _impl_.state_ = 0;
872 _impl_._has_bits_[0] &= ~0x00000004u;
873 }
_internal_state()874 inline ::android::os::statsd::ActiveEventActivation_State ActiveEventActivation::_internal_state() const {
875 return static_cast< ::android::os::statsd::ActiveEventActivation_State >(_impl_.state_);
876 }
state()877 inline ::android::os::statsd::ActiveEventActivation_State ActiveEventActivation::state() const {
878 // @@protoc_insertion_point(field_get:android.os.statsd.ActiveEventActivation.state)
879 return _internal_state();
880 }
_internal_set_state(::android::os::statsd::ActiveEventActivation_State value)881 inline void ActiveEventActivation::_internal_set_state(::android::os::statsd::ActiveEventActivation_State value) {
882 assert(::android::os::statsd::ActiveEventActivation_State_IsValid(value));
883 _impl_._has_bits_[0] |= 0x00000004u;
884 _impl_.state_ = value;
885 }
set_state(::android::os::statsd::ActiveEventActivation_State value)886 inline void ActiveEventActivation::set_state(::android::os::statsd::ActiveEventActivation_State value) {
887 _internal_set_state(value);
888 // @@protoc_insertion_point(field_set:android.os.statsd.ActiveEventActivation.state)
889 }
890
891 // -------------------------------------------------------------------
892
893 // ActiveMetric
894
895 // optional int64 id = 1;
_internal_has_id()896 inline bool ActiveMetric::_internal_has_id() const {
897 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
898 return value;
899 }
has_id()900 inline bool ActiveMetric::has_id() const {
901 return _internal_has_id();
902 }
clear_id()903 inline void ActiveMetric::clear_id() {
904 _impl_.id_ = ::int64_t{0};
905 _impl_._has_bits_[0] &= ~0x00000001u;
906 }
_internal_id()907 inline ::int64_t ActiveMetric::_internal_id() const {
908 return _impl_.id_;
909 }
id()910 inline ::int64_t ActiveMetric::id() const {
911 // @@protoc_insertion_point(field_get:android.os.statsd.ActiveMetric.id)
912 return _internal_id();
913 }
_internal_set_id(::int64_t value)914 inline void ActiveMetric::_internal_set_id(::int64_t value) {
915 _impl_._has_bits_[0] |= 0x00000001u;
916 _impl_.id_ = value;
917 }
set_id(::int64_t value)918 inline void ActiveMetric::set_id(::int64_t value) {
919 _internal_set_id(value);
920 // @@protoc_insertion_point(field_set:android.os.statsd.ActiveMetric.id)
921 }
922
923 // repeated .android.os.statsd.ActiveEventActivation activation = 2;
_internal_activation_size()924 inline int ActiveMetric::_internal_activation_size() const {
925 return _impl_.activation_.size();
926 }
activation_size()927 inline int ActiveMetric::activation_size() const {
928 return _internal_activation_size();
929 }
clear_activation()930 inline void ActiveMetric::clear_activation() {
931 _impl_.activation_.Clear();
932 }
mutable_activation(int index)933 inline ::android::os::statsd::ActiveEventActivation* ActiveMetric::mutable_activation(int index) {
934 // @@protoc_insertion_point(field_mutable:android.os.statsd.ActiveMetric.activation)
935 return _impl_.activation_.Mutable(index);
936 }
937 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::android::os::statsd::ActiveEventActivation >*
mutable_activation()938 ActiveMetric::mutable_activation() {
939 // @@protoc_insertion_point(field_mutable_list:android.os.statsd.ActiveMetric.activation)
940 return &_impl_.activation_;
941 }
_internal_activation(int index)942 inline const ::android::os::statsd::ActiveEventActivation& ActiveMetric::_internal_activation(int index) const {
943 return _impl_.activation_.Get(index);
944 }
activation(int index)945 inline const ::android::os::statsd::ActiveEventActivation& ActiveMetric::activation(int index) const {
946 // @@protoc_insertion_point(field_get:android.os.statsd.ActiveMetric.activation)
947 return _internal_activation(index);
948 }
_internal_add_activation()949 inline ::android::os::statsd::ActiveEventActivation* ActiveMetric::_internal_add_activation() {
950 return _impl_.activation_.Add();
951 }
add_activation()952 inline ::android::os::statsd::ActiveEventActivation* ActiveMetric::add_activation() {
953 ::android::os::statsd::ActiveEventActivation* _add = _internal_add_activation();
954 // @@protoc_insertion_point(field_add:android.os.statsd.ActiveMetric.activation)
955 return _add;
956 }
957 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::android::os::statsd::ActiveEventActivation >&
activation()958 ActiveMetric::activation() const {
959 // @@protoc_insertion_point(field_list:android.os.statsd.ActiveMetric.activation)
960 return _impl_.activation_;
961 }
962
963 // -------------------------------------------------------------------
964
965 // ActiveConfig
966
967 // optional int64 id = 1;
_internal_has_id()968 inline bool ActiveConfig::_internal_has_id() const {
969 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
970 return value;
971 }
has_id()972 inline bool ActiveConfig::has_id() const {
973 return _internal_has_id();
974 }
clear_id()975 inline void ActiveConfig::clear_id() {
976 _impl_.id_ = ::int64_t{0};
977 _impl_._has_bits_[0] &= ~0x00000001u;
978 }
_internal_id()979 inline ::int64_t ActiveConfig::_internal_id() const {
980 return _impl_.id_;
981 }
id()982 inline ::int64_t ActiveConfig::id() const {
983 // @@protoc_insertion_point(field_get:android.os.statsd.ActiveConfig.id)
984 return _internal_id();
985 }
_internal_set_id(::int64_t value)986 inline void ActiveConfig::_internal_set_id(::int64_t value) {
987 _impl_._has_bits_[0] |= 0x00000001u;
988 _impl_.id_ = value;
989 }
set_id(::int64_t value)990 inline void ActiveConfig::set_id(::int64_t value) {
991 _internal_set_id(value);
992 // @@protoc_insertion_point(field_set:android.os.statsd.ActiveConfig.id)
993 }
994
995 // optional int32 uid = 2;
_internal_has_uid()996 inline bool ActiveConfig::_internal_has_uid() const {
997 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
998 return value;
999 }
has_uid()1000 inline bool ActiveConfig::has_uid() const {
1001 return _internal_has_uid();
1002 }
clear_uid()1003 inline void ActiveConfig::clear_uid() {
1004 _impl_.uid_ = 0;
1005 _impl_._has_bits_[0] &= ~0x00000002u;
1006 }
_internal_uid()1007 inline ::int32_t ActiveConfig::_internal_uid() const {
1008 return _impl_.uid_;
1009 }
uid()1010 inline ::int32_t ActiveConfig::uid() const {
1011 // @@protoc_insertion_point(field_get:android.os.statsd.ActiveConfig.uid)
1012 return _internal_uid();
1013 }
_internal_set_uid(::int32_t value)1014 inline void ActiveConfig::_internal_set_uid(::int32_t value) {
1015 _impl_._has_bits_[0] |= 0x00000002u;
1016 _impl_.uid_ = value;
1017 }
set_uid(::int32_t value)1018 inline void ActiveConfig::set_uid(::int32_t value) {
1019 _internal_set_uid(value);
1020 // @@protoc_insertion_point(field_set:android.os.statsd.ActiveConfig.uid)
1021 }
1022
1023 // repeated .android.os.statsd.ActiveMetric metric = 3;
_internal_metric_size()1024 inline int ActiveConfig::_internal_metric_size() const {
1025 return _impl_.metric_.size();
1026 }
metric_size()1027 inline int ActiveConfig::metric_size() const {
1028 return _internal_metric_size();
1029 }
clear_metric()1030 inline void ActiveConfig::clear_metric() {
1031 _impl_.metric_.Clear();
1032 }
mutable_metric(int index)1033 inline ::android::os::statsd::ActiveMetric* ActiveConfig::mutable_metric(int index) {
1034 // @@protoc_insertion_point(field_mutable:android.os.statsd.ActiveConfig.metric)
1035 return _impl_.metric_.Mutable(index);
1036 }
1037 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::android::os::statsd::ActiveMetric >*
mutable_metric()1038 ActiveConfig::mutable_metric() {
1039 // @@protoc_insertion_point(field_mutable_list:android.os.statsd.ActiveConfig.metric)
1040 return &_impl_.metric_;
1041 }
_internal_metric(int index)1042 inline const ::android::os::statsd::ActiveMetric& ActiveConfig::_internal_metric(int index) const {
1043 return _impl_.metric_.Get(index);
1044 }
metric(int index)1045 inline const ::android::os::statsd::ActiveMetric& ActiveConfig::metric(int index) const {
1046 // @@protoc_insertion_point(field_get:android.os.statsd.ActiveConfig.metric)
1047 return _internal_metric(index);
1048 }
_internal_add_metric()1049 inline ::android::os::statsd::ActiveMetric* ActiveConfig::_internal_add_metric() {
1050 return _impl_.metric_.Add();
1051 }
add_metric()1052 inline ::android::os::statsd::ActiveMetric* ActiveConfig::add_metric() {
1053 ::android::os::statsd::ActiveMetric* _add = _internal_add_metric();
1054 // @@protoc_insertion_point(field_add:android.os.statsd.ActiveConfig.metric)
1055 return _add;
1056 }
1057 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::android::os::statsd::ActiveMetric >&
metric()1058 ActiveConfig::metric() const {
1059 // @@protoc_insertion_point(field_list:android.os.statsd.ActiveConfig.metric)
1060 return _impl_.metric_;
1061 }
1062
1063 // -------------------------------------------------------------------
1064
1065 // ActiveConfigList
1066
1067 // repeated .android.os.statsd.ActiveConfig config = 1;
_internal_config_size()1068 inline int ActiveConfigList::_internal_config_size() const {
1069 return _impl_.config_.size();
1070 }
config_size()1071 inline int ActiveConfigList::config_size() const {
1072 return _internal_config_size();
1073 }
clear_config()1074 inline void ActiveConfigList::clear_config() {
1075 _impl_.config_.Clear();
1076 }
mutable_config(int index)1077 inline ::android::os::statsd::ActiveConfig* ActiveConfigList::mutable_config(int index) {
1078 // @@protoc_insertion_point(field_mutable:android.os.statsd.ActiveConfigList.config)
1079 return _impl_.config_.Mutable(index);
1080 }
1081 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::android::os::statsd::ActiveConfig >*
mutable_config()1082 ActiveConfigList::mutable_config() {
1083 // @@protoc_insertion_point(field_mutable_list:android.os.statsd.ActiveConfigList.config)
1084 return &_impl_.config_;
1085 }
_internal_config(int index)1086 inline const ::android::os::statsd::ActiveConfig& ActiveConfigList::_internal_config(int index) const {
1087 return _impl_.config_.Get(index);
1088 }
config(int index)1089 inline const ::android::os::statsd::ActiveConfig& ActiveConfigList::config(int index) const {
1090 // @@protoc_insertion_point(field_get:android.os.statsd.ActiveConfigList.config)
1091 return _internal_config(index);
1092 }
_internal_add_config()1093 inline ::android::os::statsd::ActiveConfig* ActiveConfigList::_internal_add_config() {
1094 return _impl_.config_.Add();
1095 }
add_config()1096 inline ::android::os::statsd::ActiveConfig* ActiveConfigList::add_config() {
1097 ::android::os::statsd::ActiveConfig* _add = _internal_add_config();
1098 // @@protoc_insertion_point(field_add:android.os.statsd.ActiveConfigList.config)
1099 return _add;
1100 }
1101 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::android::os::statsd::ActiveConfig >&
config()1102 ActiveConfigList::config() const {
1103 // @@protoc_insertion_point(field_list:android.os.statsd.ActiveConfigList.config)
1104 return _impl_.config_;
1105 }
1106
1107 #ifdef __GNUC__
1108 #pragma GCC diagnostic pop
1109 #endif // __GNUC__
1110 // -------------------------------------------------------------------
1111
1112 // -------------------------------------------------------------------
1113
1114 // -------------------------------------------------------------------
1115
1116
1117 // @@protoc_insertion_point(namespace_scope)
1118
1119 } // namespace statsd
1120 } // namespace os
1121 } // namespace android
1122
1123 PROTOBUF_NAMESPACE_OPEN
1124
1125 template <> struct is_proto_enum< ::android::os::statsd::ActiveEventActivation_State> : ::std::true_type {};
1126
1127 PROTOBUF_NAMESPACE_CLOSE
1128
1129 // @@protoc_insertion_point(global_scope)
1130
1131 #include <google/protobuf/port_undef.inc>
1132 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_packages_2fmodules_2fStatsD_2fstatsd_2fsrc_2factive_5fconfig_5flist_2eproto
1133