1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: packages/modules/StatsD/statsd/src/shell/shell_config.proto
3
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_packages_2fmodules_2fStatsD_2fstatsd_2fsrc_2fshell_2fshell_5fconfig_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_packages_2fmodules_2fStatsD_2fstatsd_2fsrc_2fshell_2fshell_5fconfig_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 "packages/modules/StatsD/statsd/src/statsd_config.pb.h"
33 // @@protoc_insertion_point(includes)
34 #include <google/protobuf/port_def.inc>
35 #define PROTOBUF_INTERNAL_EXPORT_packages_2fmodules_2fStatsD_2fstatsd_2fsrc_2fshell_2fshell_5fconfig_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_2fshell_2fshell_5fconfig_2eproto {
44 static const ::uint32_t offsets[];
45 };
46 namespace android {
47 namespace os {
48 namespace statsd {
49 class PulledAtomSubscription;
50 struct PulledAtomSubscriptionDefaultTypeInternal;
51 extern PulledAtomSubscriptionDefaultTypeInternal _PulledAtomSubscription_default_instance_;
52 class ShellSubscription;
53 struct ShellSubscriptionDefaultTypeInternal;
54 extern ShellSubscriptionDefaultTypeInternal _ShellSubscription_default_instance_;
55 } // namespace statsd
56 } // namespace os
57 } // namespace android
58 PROTOBUF_NAMESPACE_OPEN
59 template<> ::android::os::statsd::PulledAtomSubscription* Arena::CreateMaybeMessage<::android::os::statsd::PulledAtomSubscription>(Arena*);
60 template<> ::android::os::statsd::ShellSubscription* Arena::CreateMaybeMessage<::android::os::statsd::ShellSubscription>(Arena*);
61 PROTOBUF_NAMESPACE_CLOSE
62 namespace android {
63 namespace os {
64 namespace statsd {
65
66 // ===================================================================
67
68 class PulledAtomSubscription final :
69 public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:android.os.statsd.PulledAtomSubscription) */ {
70 public:
PulledAtomSubscription()71 inline PulledAtomSubscription() : PulledAtomSubscription(nullptr) {}
72 ~PulledAtomSubscription() override;
73 explicit PROTOBUF_CONSTEXPR PulledAtomSubscription(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
74
75 PulledAtomSubscription(const PulledAtomSubscription& from);
PulledAtomSubscription(PulledAtomSubscription && from)76 PulledAtomSubscription(PulledAtomSubscription&& from) noexcept
77 : PulledAtomSubscription() {
78 *this = ::std::move(from);
79 }
80
81 inline PulledAtomSubscription& operator=(const PulledAtomSubscription& from) {
82 if (this == &from) return *this;
83 CopyFrom(from);
84 return *this;
85 }
86 inline PulledAtomSubscription& operator=(PulledAtomSubscription&& 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 PulledAtomSubscription& default_instance() {
108 return *internal_default_instance();
109 }
internal_default_instance()110 static inline const PulledAtomSubscription* internal_default_instance() {
111 return reinterpret_cast<const PulledAtomSubscription*>(
112 &_PulledAtomSubscription_default_instance_);
113 }
114 static constexpr int kIndexInFileMessages =
115 0;
116
swap(PulledAtomSubscription & a,PulledAtomSubscription & b)117 friend void swap(PulledAtomSubscription& a, PulledAtomSubscription& b) {
118 a.Swap(&b);
119 }
Swap(PulledAtomSubscription * other)120 inline void Swap(PulledAtomSubscription* 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(PulledAtomSubscription* other) {
134 if (other == this) return;
135 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
136 InternalSwap(other);
137 }
138
139 // implements Message ----------------------------------------------
140
141 PulledAtomSubscription* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
142 return CreateMaybeMessage<PulledAtomSubscription>(arena);
143 }
144 PulledAtomSubscription* New() const {
145 return New(nullptr);
146 }
147 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
148 void CopyFrom(const PulledAtomSubscription& from);
149 void MergeFrom(const PulledAtomSubscription& 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(PulledAtomSubscription* other);
164
165 private:
166 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
167 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
168 return "android.os.statsd.PulledAtomSubscription";
169 }
170 protected:
171 explicit PulledAtomSubscription(::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 kPackagesFieldNumber = 3,
183 kMatcherFieldNumber = 1,
184 kFreqMillisFieldNumber = 2,
185 };
186 // repeated string packages = 3;
187 int packages_size() const;
188 private:
189 int _internal_packages_size() const;
190 public:
191 void clear_packages();
192 const std::string& packages(int index) const;
193 std::string* mutable_packages(int index);
194 void set_packages(int index, const std::string& value);
195 void set_packages(int index, std::string&& value);
196 void set_packages(int index, const char* value);
197 void set_packages(int index, const char* value, size_t size);
198 std::string* add_packages();
199 void add_packages(const std::string& value);
200 void add_packages(std::string&& value);
201 void add_packages(const char* value);
202 void add_packages(const char* value, size_t size);
203 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& packages() const;
204 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_packages();
205 private:
206 const std::string& _internal_packages(int index) const;
207 std::string* _internal_add_packages();
208 public:
209
210 // optional .android.os.statsd.SimpleAtomMatcher matcher = 1;
211 bool has_matcher() const;
212 private:
213 bool _internal_has_matcher() const;
214 public:
215 void clear_matcher();
216 const ::android::os::statsd::SimpleAtomMatcher& matcher() const;
217 PROTOBUF_NODISCARD ::android::os::statsd::SimpleAtomMatcher* release_matcher();
218 ::android::os::statsd::SimpleAtomMatcher* mutable_matcher();
219 void set_allocated_matcher(::android::os::statsd::SimpleAtomMatcher* matcher);
220 private:
221 const ::android::os::statsd::SimpleAtomMatcher& _internal_matcher() const;
222 ::android::os::statsd::SimpleAtomMatcher* _internal_mutable_matcher();
223 public:
224 void unsafe_arena_set_allocated_matcher(
225 ::android::os::statsd::SimpleAtomMatcher* matcher);
226 ::android::os::statsd::SimpleAtomMatcher* unsafe_arena_release_matcher();
227
228 // optional int64 freq_millis = 2;
229 bool has_freq_millis() const;
230 private:
231 bool _internal_has_freq_millis() const;
232 public:
233 void clear_freq_millis();
234 ::int64_t freq_millis() const;
235 void set_freq_millis(::int64_t value);
236 private:
237 ::int64_t _internal_freq_millis() const;
238 void _internal_set_freq_millis(::int64_t value);
239 public:
240
241 // @@protoc_insertion_point(class_scope:android.os.statsd.PulledAtomSubscription)
242 private:
243 class _Internal;
244
245 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
246 typedef void InternalArenaConstructable_;
247 typedef void DestructorSkippable_;
248 struct Impl_ {
249 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
250 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
251 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> packages_;
252 ::android::os::statsd::SimpleAtomMatcher* matcher_;
253 ::int64_t freq_millis_;
254 };
255 union { Impl_ _impl_; };
256 friend struct ::TableStruct_packages_2fmodules_2fStatsD_2fstatsd_2fsrc_2fshell_2fshell_5fconfig_2eproto;
257 };
258 // -------------------------------------------------------------------
259
260 class ShellSubscription final :
261 public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:android.os.statsd.ShellSubscription) */ {
262 public:
ShellSubscription()263 inline ShellSubscription() : ShellSubscription(nullptr) {}
264 ~ShellSubscription() override;
265 explicit PROTOBUF_CONSTEXPR ShellSubscription(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
266
267 ShellSubscription(const ShellSubscription& from);
ShellSubscription(ShellSubscription && from)268 ShellSubscription(ShellSubscription&& from) noexcept
269 : ShellSubscription() {
270 *this = ::std::move(from);
271 }
272
273 inline ShellSubscription& operator=(const ShellSubscription& from) {
274 if (this == &from) return *this;
275 CopyFrom(from);
276 return *this;
277 }
278 inline ShellSubscription& operator=(ShellSubscription&& from) noexcept {
279 if (this == &from) return *this;
280 if (GetOwningArena() == from.GetOwningArena()
281 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
282 && GetOwningArena() != nullptr
283 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
284 ) {
285 InternalSwap(&from);
286 } else {
287 CopyFrom(from);
288 }
289 return *this;
290 }
291
unknown_fields()292 inline const std::string& unknown_fields() const {
293 return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
294 }
mutable_unknown_fields()295 inline std::string* mutable_unknown_fields() {
296 return _internal_metadata_.mutable_unknown_fields<std::string>();
297 }
298
default_instance()299 static const ShellSubscription& default_instance() {
300 return *internal_default_instance();
301 }
internal_default_instance()302 static inline const ShellSubscription* internal_default_instance() {
303 return reinterpret_cast<const ShellSubscription*>(
304 &_ShellSubscription_default_instance_);
305 }
306 static constexpr int kIndexInFileMessages =
307 1;
308
swap(ShellSubscription & a,ShellSubscription & b)309 friend void swap(ShellSubscription& a, ShellSubscription& b) {
310 a.Swap(&b);
311 }
Swap(ShellSubscription * other)312 inline void Swap(ShellSubscription* other) {
313 if (other == this) return;
314 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
315 if (GetOwningArena() != nullptr &&
316 GetOwningArena() == other->GetOwningArena()) {
317 #else // PROTOBUF_FORCE_COPY_IN_SWAP
318 if (GetOwningArena() == other->GetOwningArena()) {
319 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
320 InternalSwap(other);
321 } else {
322 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
323 }
324 }
325 void UnsafeArenaSwap(ShellSubscription* other) {
326 if (other == this) return;
327 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
328 InternalSwap(other);
329 }
330
331 // implements Message ----------------------------------------------
332
333 ShellSubscription* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
334 return CreateMaybeMessage<ShellSubscription>(arena);
335 }
336 ShellSubscription* New() const {
337 return New(nullptr);
338 }
339 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
340 void CopyFrom(const ShellSubscription& from);
341 void MergeFrom(const ShellSubscription& from);
342 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
343 bool IsInitialized() const final;
344
345 size_t ByteSizeLong() const final;
346 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
347 ::uint8_t* _InternalSerialize(
348 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
349 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
350
351 private:
352 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
353 void SharedDtor();
354 void SetCachedSize(int size) const;
355 void InternalSwap(ShellSubscription* other);
356
357 private:
358 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
359 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
360 return "android.os.statsd.ShellSubscription";
361 }
362 protected:
363 explicit ShellSubscription(::PROTOBUF_NAMESPACE_ID::Arena* arena,
364 bool is_message_owned = false);
365 public:
366
367 std::string GetTypeName() const final;
368
369 // nested types ----------------------------------------------------
370
371 // accessors -------------------------------------------------------
372
373 enum : int {
374 kPushedFieldNumber = 1,
375 kPulledFieldNumber = 2,
376 };
377 // repeated .android.os.statsd.SimpleAtomMatcher pushed = 1;
378 int pushed_size() const;
379 private:
380 int _internal_pushed_size() const;
381 public:
382 void clear_pushed();
383 ::android::os::statsd::SimpleAtomMatcher* mutable_pushed(int index);
384 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::android::os::statsd::SimpleAtomMatcher >*
385 mutable_pushed();
386 private:
387 const ::android::os::statsd::SimpleAtomMatcher& _internal_pushed(int index) const;
388 ::android::os::statsd::SimpleAtomMatcher* _internal_add_pushed();
389 public:
390 const ::android::os::statsd::SimpleAtomMatcher& pushed(int index) const;
391 ::android::os::statsd::SimpleAtomMatcher* add_pushed();
392 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::android::os::statsd::SimpleAtomMatcher >&
393 pushed() const;
394
395 // repeated .android.os.statsd.PulledAtomSubscription pulled = 2;
396 int pulled_size() const;
397 private:
398 int _internal_pulled_size() const;
399 public:
400 void clear_pulled();
401 ::android::os::statsd::PulledAtomSubscription* mutable_pulled(int index);
402 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::android::os::statsd::PulledAtomSubscription >*
403 mutable_pulled();
404 private:
405 const ::android::os::statsd::PulledAtomSubscription& _internal_pulled(int index) const;
406 ::android::os::statsd::PulledAtomSubscription* _internal_add_pulled();
407 public:
408 const ::android::os::statsd::PulledAtomSubscription& pulled(int index) const;
409 ::android::os::statsd::PulledAtomSubscription* add_pulled();
410 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::android::os::statsd::PulledAtomSubscription >&
411 pulled() const;
412
413 // @@protoc_insertion_point(class_scope:android.os.statsd.ShellSubscription)
414 private:
415 class _Internal;
416
417 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
418 typedef void InternalArenaConstructable_;
419 typedef void DestructorSkippable_;
420 struct Impl_ {
421 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::android::os::statsd::SimpleAtomMatcher > pushed_;
422 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::android::os::statsd::PulledAtomSubscription > pulled_;
423 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
424 };
425 union { Impl_ _impl_; };
426 friend struct ::TableStruct_packages_2fmodules_2fStatsD_2fstatsd_2fsrc_2fshell_2fshell_5fconfig_2eproto;
427 };
428 // ===================================================================
429
430
431 // ===================================================================
432
433 #ifdef __GNUC__
434 #pragma GCC diagnostic push
435 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
436 #endif // __GNUC__
437 // PulledAtomSubscription
438
439 // optional .android.os.statsd.SimpleAtomMatcher matcher = 1;
_internal_has_matcher()440 inline bool PulledAtomSubscription::_internal_has_matcher() const {
441 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
442 PROTOBUF_ASSUME(!value || _impl_.matcher_ != nullptr);
443 return value;
444 }
has_matcher()445 inline bool PulledAtomSubscription::has_matcher() const {
446 return _internal_has_matcher();
447 }
_internal_matcher()448 inline const ::android::os::statsd::SimpleAtomMatcher& PulledAtomSubscription::_internal_matcher() const {
449 const ::android::os::statsd::SimpleAtomMatcher* p = _impl_.matcher_;
450 return p != nullptr ? *p : reinterpret_cast<const ::android::os::statsd::SimpleAtomMatcher&>(
451 ::android::os::statsd::_SimpleAtomMatcher_default_instance_);
452 }
matcher()453 inline const ::android::os::statsd::SimpleAtomMatcher& PulledAtomSubscription::matcher() const {
454 // @@protoc_insertion_point(field_get:android.os.statsd.PulledAtomSubscription.matcher)
455 return _internal_matcher();
456 }
unsafe_arena_set_allocated_matcher(::android::os::statsd::SimpleAtomMatcher * matcher)457 inline void PulledAtomSubscription::unsafe_arena_set_allocated_matcher(
458 ::android::os::statsd::SimpleAtomMatcher* matcher) {
459 if (GetArenaForAllocation() == nullptr) {
460 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.matcher_);
461 }
462 _impl_.matcher_ = matcher;
463 if (matcher) {
464 _impl_._has_bits_[0] |= 0x00000001u;
465 } else {
466 _impl_._has_bits_[0] &= ~0x00000001u;
467 }
468 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:android.os.statsd.PulledAtomSubscription.matcher)
469 }
release_matcher()470 inline ::android::os::statsd::SimpleAtomMatcher* PulledAtomSubscription::release_matcher() {
471 _impl_._has_bits_[0] &= ~0x00000001u;
472 ::android::os::statsd::SimpleAtomMatcher* temp = _impl_.matcher_;
473 _impl_.matcher_ = nullptr;
474 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
475 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
476 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
477 if (GetArenaForAllocation() == nullptr) { delete old; }
478 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
479 if (GetArenaForAllocation() != nullptr) {
480 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
481 }
482 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
483 return temp;
484 }
unsafe_arena_release_matcher()485 inline ::android::os::statsd::SimpleAtomMatcher* PulledAtomSubscription::unsafe_arena_release_matcher() {
486 // @@protoc_insertion_point(field_release:android.os.statsd.PulledAtomSubscription.matcher)
487 _impl_._has_bits_[0] &= ~0x00000001u;
488 ::android::os::statsd::SimpleAtomMatcher* temp = _impl_.matcher_;
489 _impl_.matcher_ = nullptr;
490 return temp;
491 }
_internal_mutable_matcher()492 inline ::android::os::statsd::SimpleAtomMatcher* PulledAtomSubscription::_internal_mutable_matcher() {
493 _impl_._has_bits_[0] |= 0x00000001u;
494 if (_impl_.matcher_ == nullptr) {
495 auto* p = CreateMaybeMessage<::android::os::statsd::SimpleAtomMatcher>(GetArenaForAllocation());
496 _impl_.matcher_ = p;
497 }
498 return _impl_.matcher_;
499 }
mutable_matcher()500 inline ::android::os::statsd::SimpleAtomMatcher* PulledAtomSubscription::mutable_matcher() {
501 ::android::os::statsd::SimpleAtomMatcher* _msg = _internal_mutable_matcher();
502 // @@protoc_insertion_point(field_mutable:android.os.statsd.PulledAtomSubscription.matcher)
503 return _msg;
504 }
set_allocated_matcher(::android::os::statsd::SimpleAtomMatcher * matcher)505 inline void PulledAtomSubscription::set_allocated_matcher(::android::os::statsd::SimpleAtomMatcher* matcher) {
506 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
507 if (message_arena == nullptr) {
508 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.matcher_);
509 }
510 if (matcher) {
511 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
512 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
513 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(matcher));
514 if (message_arena != submessage_arena) {
515 matcher = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
516 message_arena, matcher, submessage_arena);
517 }
518 _impl_._has_bits_[0] |= 0x00000001u;
519 } else {
520 _impl_._has_bits_[0] &= ~0x00000001u;
521 }
522 _impl_.matcher_ = matcher;
523 // @@protoc_insertion_point(field_set_allocated:android.os.statsd.PulledAtomSubscription.matcher)
524 }
525
526 // optional int64 freq_millis = 2;
_internal_has_freq_millis()527 inline bool PulledAtomSubscription::_internal_has_freq_millis() const {
528 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
529 return value;
530 }
has_freq_millis()531 inline bool PulledAtomSubscription::has_freq_millis() const {
532 return _internal_has_freq_millis();
533 }
clear_freq_millis()534 inline void PulledAtomSubscription::clear_freq_millis() {
535 _impl_.freq_millis_ = ::int64_t{0};
536 _impl_._has_bits_[0] &= ~0x00000002u;
537 }
_internal_freq_millis()538 inline ::int64_t PulledAtomSubscription::_internal_freq_millis() const {
539 return _impl_.freq_millis_;
540 }
freq_millis()541 inline ::int64_t PulledAtomSubscription::freq_millis() const {
542 // @@protoc_insertion_point(field_get:android.os.statsd.PulledAtomSubscription.freq_millis)
543 return _internal_freq_millis();
544 }
_internal_set_freq_millis(::int64_t value)545 inline void PulledAtomSubscription::_internal_set_freq_millis(::int64_t value) {
546 _impl_._has_bits_[0] |= 0x00000002u;
547 _impl_.freq_millis_ = value;
548 }
set_freq_millis(::int64_t value)549 inline void PulledAtomSubscription::set_freq_millis(::int64_t value) {
550 _internal_set_freq_millis(value);
551 // @@protoc_insertion_point(field_set:android.os.statsd.PulledAtomSubscription.freq_millis)
552 }
553
554 // repeated string packages = 3;
_internal_packages_size()555 inline int PulledAtomSubscription::_internal_packages_size() const {
556 return _impl_.packages_.size();
557 }
packages_size()558 inline int PulledAtomSubscription::packages_size() const {
559 return _internal_packages_size();
560 }
clear_packages()561 inline void PulledAtomSubscription::clear_packages() {
562 _impl_.packages_.Clear();
563 }
add_packages()564 inline std::string* PulledAtomSubscription::add_packages() {
565 std::string* _s = _internal_add_packages();
566 // @@protoc_insertion_point(field_add_mutable:android.os.statsd.PulledAtomSubscription.packages)
567 return _s;
568 }
_internal_packages(int index)569 inline const std::string& PulledAtomSubscription::_internal_packages(int index) const {
570 return _impl_.packages_.Get(index);
571 }
packages(int index)572 inline const std::string& PulledAtomSubscription::packages(int index) const {
573 // @@protoc_insertion_point(field_get:android.os.statsd.PulledAtomSubscription.packages)
574 return _internal_packages(index);
575 }
mutable_packages(int index)576 inline std::string* PulledAtomSubscription::mutable_packages(int index) {
577 // @@protoc_insertion_point(field_mutable:android.os.statsd.PulledAtomSubscription.packages)
578 return _impl_.packages_.Mutable(index);
579 }
set_packages(int index,const std::string & value)580 inline void PulledAtomSubscription::set_packages(int index, const std::string& value) {
581 _impl_.packages_.Mutable(index)->assign(value);
582 // @@protoc_insertion_point(field_set:android.os.statsd.PulledAtomSubscription.packages)
583 }
set_packages(int index,std::string && value)584 inline void PulledAtomSubscription::set_packages(int index, std::string&& value) {
585 _impl_.packages_.Mutable(index)->assign(std::move(value));
586 // @@protoc_insertion_point(field_set:android.os.statsd.PulledAtomSubscription.packages)
587 }
set_packages(int index,const char * value)588 inline void PulledAtomSubscription::set_packages(int index, const char* value) {
589 GOOGLE_DCHECK(value != nullptr);
590 _impl_.packages_.Mutable(index)->assign(value);
591 // @@protoc_insertion_point(field_set_char:android.os.statsd.PulledAtomSubscription.packages)
592 }
set_packages(int index,const char * value,size_t size)593 inline void PulledAtomSubscription::set_packages(int index, const char* value, size_t size) {
594 _impl_.packages_.Mutable(index)->assign(
595 reinterpret_cast<const char*>(value), size);
596 // @@protoc_insertion_point(field_set_pointer:android.os.statsd.PulledAtomSubscription.packages)
597 }
_internal_add_packages()598 inline std::string* PulledAtomSubscription::_internal_add_packages() {
599 return _impl_.packages_.Add();
600 }
add_packages(const std::string & value)601 inline void PulledAtomSubscription::add_packages(const std::string& value) {
602 _impl_.packages_.Add()->assign(value);
603 // @@protoc_insertion_point(field_add:android.os.statsd.PulledAtomSubscription.packages)
604 }
add_packages(std::string && value)605 inline void PulledAtomSubscription::add_packages(std::string&& value) {
606 _impl_.packages_.Add(std::move(value));
607 // @@protoc_insertion_point(field_add:android.os.statsd.PulledAtomSubscription.packages)
608 }
add_packages(const char * value)609 inline void PulledAtomSubscription::add_packages(const char* value) {
610 GOOGLE_DCHECK(value != nullptr);
611 _impl_.packages_.Add()->assign(value);
612 // @@protoc_insertion_point(field_add_char:android.os.statsd.PulledAtomSubscription.packages)
613 }
add_packages(const char * value,size_t size)614 inline void PulledAtomSubscription::add_packages(const char* value, size_t size) {
615 _impl_.packages_.Add()->assign(reinterpret_cast<const char*>(value), size);
616 // @@protoc_insertion_point(field_add_pointer:android.os.statsd.PulledAtomSubscription.packages)
617 }
618 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
packages()619 PulledAtomSubscription::packages() const {
620 // @@protoc_insertion_point(field_list:android.os.statsd.PulledAtomSubscription.packages)
621 return _impl_.packages_;
622 }
623 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
mutable_packages()624 PulledAtomSubscription::mutable_packages() {
625 // @@protoc_insertion_point(field_mutable_list:android.os.statsd.PulledAtomSubscription.packages)
626 return &_impl_.packages_;
627 }
628
629 // -------------------------------------------------------------------
630
631 // ShellSubscription
632
633 // repeated .android.os.statsd.SimpleAtomMatcher pushed = 1;
_internal_pushed_size()634 inline int ShellSubscription::_internal_pushed_size() const {
635 return _impl_.pushed_.size();
636 }
pushed_size()637 inline int ShellSubscription::pushed_size() const {
638 return _internal_pushed_size();
639 }
mutable_pushed(int index)640 inline ::android::os::statsd::SimpleAtomMatcher* ShellSubscription::mutable_pushed(int index) {
641 // @@protoc_insertion_point(field_mutable:android.os.statsd.ShellSubscription.pushed)
642 return _impl_.pushed_.Mutable(index);
643 }
644 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::android::os::statsd::SimpleAtomMatcher >*
mutable_pushed()645 ShellSubscription::mutable_pushed() {
646 // @@protoc_insertion_point(field_mutable_list:android.os.statsd.ShellSubscription.pushed)
647 return &_impl_.pushed_;
648 }
_internal_pushed(int index)649 inline const ::android::os::statsd::SimpleAtomMatcher& ShellSubscription::_internal_pushed(int index) const {
650 return _impl_.pushed_.Get(index);
651 }
pushed(int index)652 inline const ::android::os::statsd::SimpleAtomMatcher& ShellSubscription::pushed(int index) const {
653 // @@protoc_insertion_point(field_get:android.os.statsd.ShellSubscription.pushed)
654 return _internal_pushed(index);
655 }
_internal_add_pushed()656 inline ::android::os::statsd::SimpleAtomMatcher* ShellSubscription::_internal_add_pushed() {
657 return _impl_.pushed_.Add();
658 }
add_pushed()659 inline ::android::os::statsd::SimpleAtomMatcher* ShellSubscription::add_pushed() {
660 ::android::os::statsd::SimpleAtomMatcher* _add = _internal_add_pushed();
661 // @@protoc_insertion_point(field_add:android.os.statsd.ShellSubscription.pushed)
662 return _add;
663 }
664 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::android::os::statsd::SimpleAtomMatcher >&
pushed()665 ShellSubscription::pushed() const {
666 // @@protoc_insertion_point(field_list:android.os.statsd.ShellSubscription.pushed)
667 return _impl_.pushed_;
668 }
669
670 // repeated .android.os.statsd.PulledAtomSubscription pulled = 2;
_internal_pulled_size()671 inline int ShellSubscription::_internal_pulled_size() const {
672 return _impl_.pulled_.size();
673 }
pulled_size()674 inline int ShellSubscription::pulled_size() const {
675 return _internal_pulled_size();
676 }
clear_pulled()677 inline void ShellSubscription::clear_pulled() {
678 _impl_.pulled_.Clear();
679 }
mutable_pulled(int index)680 inline ::android::os::statsd::PulledAtomSubscription* ShellSubscription::mutable_pulled(int index) {
681 // @@protoc_insertion_point(field_mutable:android.os.statsd.ShellSubscription.pulled)
682 return _impl_.pulled_.Mutable(index);
683 }
684 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::android::os::statsd::PulledAtomSubscription >*
mutable_pulled()685 ShellSubscription::mutable_pulled() {
686 // @@protoc_insertion_point(field_mutable_list:android.os.statsd.ShellSubscription.pulled)
687 return &_impl_.pulled_;
688 }
_internal_pulled(int index)689 inline const ::android::os::statsd::PulledAtomSubscription& ShellSubscription::_internal_pulled(int index) const {
690 return _impl_.pulled_.Get(index);
691 }
pulled(int index)692 inline const ::android::os::statsd::PulledAtomSubscription& ShellSubscription::pulled(int index) const {
693 // @@protoc_insertion_point(field_get:android.os.statsd.ShellSubscription.pulled)
694 return _internal_pulled(index);
695 }
_internal_add_pulled()696 inline ::android::os::statsd::PulledAtomSubscription* ShellSubscription::_internal_add_pulled() {
697 return _impl_.pulled_.Add();
698 }
add_pulled()699 inline ::android::os::statsd::PulledAtomSubscription* ShellSubscription::add_pulled() {
700 ::android::os::statsd::PulledAtomSubscription* _add = _internal_add_pulled();
701 // @@protoc_insertion_point(field_add:android.os.statsd.ShellSubscription.pulled)
702 return _add;
703 }
704 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::android::os::statsd::PulledAtomSubscription >&
pulled()705 ShellSubscription::pulled() const {
706 // @@protoc_insertion_point(field_list:android.os.statsd.ShellSubscription.pulled)
707 return _impl_.pulled_;
708 }
709
710 #ifdef __GNUC__
711 #pragma GCC diagnostic pop
712 #endif // __GNUC__
713 // -------------------------------------------------------------------
714
715
716 // @@protoc_insertion_point(namespace_scope)
717
718 } // namespace statsd
719 } // namespace os
720 } // namespace android
721
722 // @@protoc_insertion_point(global_scope)
723
724 #include <google/protobuf/port_undef.inc>
725 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_packages_2fmodules_2fStatsD_2fstatsd_2fsrc_2fshell_2fshell_5fconfig_2eproto
726