1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: frameworks/proto_logging/stats/attribution_node.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_frameworks_2fproto_5flogging_2fstats_2fattribution_5fnode_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_frameworks_2fproto_5flogging_2fstats_2fattribution_5fnode_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/unknown_field_set.h>
34 // @@protoc_insertion_point(includes)
35 #include <google/protobuf/port_def.inc>
36 #define PROTOBUF_INTERNAL_EXPORT_frameworks_2fproto_5flogging_2fstats_2fattribution_5fnode_2eproto
37 PROTOBUF_NAMESPACE_OPEN
38 namespace internal {
39 class AnyMetadata;
40 }  // namespace internal
41 PROTOBUF_NAMESPACE_CLOSE
42 
43 // Internal implementation detail -- do not use these members.
44 struct TableStruct_frameworks_2fproto_5flogging_2fstats_2fattribution_5fnode_2eproto {
45   static const ::uint32_t offsets[];
46 };
47 extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_frameworks_2fproto_5flogging_2fstats_2fattribution_5fnode_2eproto;
48 namespace android {
49 namespace os {
50 namespace statsd {
51 class AttributionNode;
52 struct AttributionNodeDefaultTypeInternal;
53 extern AttributionNodeDefaultTypeInternal _AttributionNode_default_instance_;
54 }  // namespace statsd
55 }  // namespace os
56 }  // namespace android
57 PROTOBUF_NAMESPACE_OPEN
58 template<> ::android::os::statsd::AttributionNode* Arena::CreateMaybeMessage<::android::os::statsd::AttributionNode>(Arena*);
59 PROTOBUF_NAMESPACE_CLOSE
60 namespace android {
61 namespace os {
62 namespace statsd {
63 
64 // ===================================================================
65 
66 class AttributionNode final :
67     public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:android.os.statsd.AttributionNode) */ {
68  public:
AttributionNode()69   inline AttributionNode() : AttributionNode(nullptr) {}
70   ~AttributionNode() override;
71   explicit PROTOBUF_CONSTEXPR AttributionNode(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
72 
73   AttributionNode(const AttributionNode& from);
AttributionNode(AttributionNode && from)74   AttributionNode(AttributionNode&& from) noexcept
75     : AttributionNode() {
76     *this = ::std::move(from);
77   }
78 
79   inline AttributionNode& operator=(const AttributionNode& from) {
80     if (this == &from) return *this;
81     CopyFrom(from);
82     return *this;
83   }
84   inline AttributionNode& operator=(AttributionNode&& from) noexcept {
85     if (this == &from) return *this;
86     if (GetOwningArena() == from.GetOwningArena()
87   #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
88         && GetOwningArena() != nullptr
89   #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
90     ) {
91       InternalSwap(&from);
92     } else {
93       CopyFrom(from);
94     }
95     return *this;
96   }
97 
unknown_fields()98   inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
99     return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
100   }
mutable_unknown_fields()101   inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
102     return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
103   }
104 
descriptor()105   static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
106     return GetDescriptor();
107   }
GetDescriptor()108   static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
109     return default_instance().GetMetadata().descriptor;
110   }
GetReflection()111   static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
112     return default_instance().GetMetadata().reflection;
113   }
default_instance()114   static const AttributionNode& default_instance() {
115     return *internal_default_instance();
116   }
internal_default_instance()117   static inline const AttributionNode* internal_default_instance() {
118     return reinterpret_cast<const AttributionNode*>(
119                &_AttributionNode_default_instance_);
120   }
121   static constexpr int kIndexInFileMessages =
122     0;
123 
swap(AttributionNode & a,AttributionNode & b)124   friend void swap(AttributionNode& a, AttributionNode& b) {
125     a.Swap(&b);
126   }
Swap(AttributionNode * other)127   inline void Swap(AttributionNode* other) {
128     if (other == this) return;
129   #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
130     if (GetOwningArena() != nullptr &&
131         GetOwningArena() == other->GetOwningArena()) {
132    #else  // PROTOBUF_FORCE_COPY_IN_SWAP
133     if (GetOwningArena() == other->GetOwningArena()) {
134   #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
135       InternalSwap(other);
136     } else {
137       ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
138     }
139   }
140   void UnsafeArenaSwap(AttributionNode* other) {
141     if (other == this) return;
142     GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
143     InternalSwap(other);
144   }
145 
146   // implements Message ----------------------------------------------
147 
148   AttributionNode* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
149     return CreateMaybeMessage<AttributionNode>(arena);
150   }
151   AttributionNode* New() const {
152     return New(nullptr);
153   }
154   using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
155   void CopyFrom(const AttributionNode& from);
156   using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
157   void MergeFrom( const AttributionNode& from) {
158     AttributionNode::MergeImpl(*this, from);
159   }
160   private:
161   static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
162   public:
163   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
164   bool IsInitialized() const final;
165 
166   size_t ByteSizeLong() const final;
167   const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
168   ::uint8_t* _InternalSerialize(
169       ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
170   int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
171 
172   private:
173   void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
174   void SharedDtor();
175   void SetCachedSize(int size) const final;
176   void InternalSwap(AttributionNode* other);
177 
178   private:
179   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
180   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
181     return "android.os.statsd.AttributionNode";
182   }
183   protected:
184   explicit AttributionNode(::PROTOBUF_NAMESPACE_ID::Arena* arena,
185                        bool is_message_owned = false);
186   public:
187 
188   static const ClassData _class_data_;
189   const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
190 
191   ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
192 
193   // nested types ----------------------------------------------------
194 
195   // accessors -------------------------------------------------------
196 
197   enum : int {
198     kTagFieldNumber = 2,
199     kUidFieldNumber = 1,
200   };
201   // optional string tag = 2;
202   bool has_tag() const;
203   private:
204   bool _internal_has_tag() const;
205   public:
206   void clear_tag();
207   const std::string& tag() const;
208   template <typename ArgT0 = const std::string&, typename... ArgT>
209   void set_tag(ArgT0&& arg0, ArgT... args);
210   std::string* mutable_tag();
211   PROTOBUF_NODISCARD std::string* release_tag();
212   void set_allocated_tag(std::string* tag);
213   private:
214   const std::string& _internal_tag() const;
215   inline PROTOBUF_ALWAYS_INLINE void _internal_set_tag(const std::string& value);
216   std::string* _internal_mutable_tag();
217   public:
218 
219   // optional int32 uid = 1;
220   bool has_uid() const;
221   private:
222   bool _internal_has_uid() const;
223   public:
224   void clear_uid();
225   ::int32_t uid() const;
226   void set_uid(::int32_t value);
227   private:
228   ::int32_t _internal_uid() const;
229   void _internal_set_uid(::int32_t value);
230   public:
231 
232   // @@protoc_insertion_point(class_scope:android.os.statsd.AttributionNode)
233  private:
234   class _Internal;
235 
236   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
237   typedef void InternalArenaConstructable_;
238   typedef void DestructorSkippable_;
239   struct Impl_ {
240     ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
241     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
242     ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr tag_;
243     ::int32_t uid_;
244   };
245   union { Impl_ _impl_; };
246   friend struct ::TableStruct_frameworks_2fproto_5flogging_2fstats_2fattribution_5fnode_2eproto;
247 };
248 // ===================================================================
249 
250 
251 // ===================================================================
252 
253 #ifdef __GNUC__
254   #pragma GCC diagnostic push
255   #pragma GCC diagnostic ignored "-Wstrict-aliasing"
256 #endif  // __GNUC__
257 // AttributionNode
258 
259 // optional int32 uid = 1;
_internal_has_uid()260 inline bool AttributionNode::_internal_has_uid() const {
261   bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
262   return value;
263 }
has_uid()264 inline bool AttributionNode::has_uid() const {
265   return _internal_has_uid();
266 }
clear_uid()267 inline void AttributionNode::clear_uid() {
268   _impl_.uid_ = 0;
269   _impl_._has_bits_[0] &= ~0x00000002u;
270 }
_internal_uid()271 inline ::int32_t AttributionNode::_internal_uid() const {
272   return _impl_.uid_;
273 }
uid()274 inline ::int32_t AttributionNode::uid() const {
275   // @@protoc_insertion_point(field_get:android.os.statsd.AttributionNode.uid)
276   return _internal_uid();
277 }
_internal_set_uid(::int32_t value)278 inline void AttributionNode::_internal_set_uid(::int32_t value) {
279   _impl_._has_bits_[0] |= 0x00000002u;
280   _impl_.uid_ = value;
281 }
set_uid(::int32_t value)282 inline void AttributionNode::set_uid(::int32_t value) {
283   _internal_set_uid(value);
284   // @@protoc_insertion_point(field_set:android.os.statsd.AttributionNode.uid)
285 }
286 
287 // optional string tag = 2;
_internal_has_tag()288 inline bool AttributionNode::_internal_has_tag() const {
289   bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
290   return value;
291 }
has_tag()292 inline bool AttributionNode::has_tag() const {
293   return _internal_has_tag();
294 }
clear_tag()295 inline void AttributionNode::clear_tag() {
296   _impl_.tag_.ClearToEmpty();
297   _impl_._has_bits_[0] &= ~0x00000001u;
298 }
tag()299 inline const std::string& AttributionNode::tag() const {
300   // @@protoc_insertion_point(field_get:android.os.statsd.AttributionNode.tag)
301   return _internal_tag();
302 }
303 template <typename ArgT0, typename... ArgT>
304 inline PROTOBUF_ALWAYS_INLINE
set_tag(ArgT0 && arg0,ArgT...args)305 void AttributionNode::set_tag(ArgT0&& arg0, ArgT... args) {
306  _impl_._has_bits_[0] |= 0x00000001u;
307  _impl_.tag_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
308   // @@protoc_insertion_point(field_set:android.os.statsd.AttributionNode.tag)
309 }
mutable_tag()310 inline std::string* AttributionNode::mutable_tag() {
311   std::string* _s = _internal_mutable_tag();
312   // @@protoc_insertion_point(field_mutable:android.os.statsd.AttributionNode.tag)
313   return _s;
314 }
_internal_tag()315 inline const std::string& AttributionNode::_internal_tag() const {
316   return _impl_.tag_.Get();
317 }
_internal_set_tag(const std::string & value)318 inline void AttributionNode::_internal_set_tag(const std::string& value) {
319   _impl_._has_bits_[0] |= 0x00000001u;
320   _impl_.tag_.Set(value, GetArenaForAllocation());
321 }
_internal_mutable_tag()322 inline std::string* AttributionNode::_internal_mutable_tag() {
323   _impl_._has_bits_[0] |= 0x00000001u;
324   return _impl_.tag_.Mutable(GetArenaForAllocation());
325 }
release_tag()326 inline std::string* AttributionNode::release_tag() {
327   // @@protoc_insertion_point(field_release:android.os.statsd.AttributionNode.tag)
328   if (!_internal_has_tag()) {
329     return nullptr;
330   }
331   _impl_._has_bits_[0] &= ~0x00000001u;
332   auto* p = _impl_.tag_.Release();
333 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
334   if (_impl_.tag_.IsDefault()) {
335     _impl_.tag_.Set("", GetArenaForAllocation());
336   }
337 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
338   return p;
339 }
set_allocated_tag(std::string * tag)340 inline void AttributionNode::set_allocated_tag(std::string* tag) {
341   if (tag != nullptr) {
342     _impl_._has_bits_[0] |= 0x00000001u;
343   } else {
344     _impl_._has_bits_[0] &= ~0x00000001u;
345   }
346   _impl_.tag_.SetAllocated(tag, GetArenaForAllocation());
347 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
348   if (_impl_.tag_.IsDefault()) {
349     _impl_.tag_.Set("", GetArenaForAllocation());
350   }
351 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
352   // @@protoc_insertion_point(field_set_allocated:android.os.statsd.AttributionNode.tag)
353 }
354 
355 #ifdef __GNUC__
356   #pragma GCC diagnostic pop
357 #endif  // __GNUC__
358 
359 // @@protoc_insertion_point(namespace_scope)
360 
361 }  // namespace statsd
362 }  // namespace os
363 }  // namespace android
364 
365 // @@protoc_insertion_point(global_scope)
366 
367 #include <google/protobuf/port_undef.inc>
368 #endif  // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_frameworks_2fproto_5flogging_2fstats_2fattribution_5fnode_2eproto
369