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