1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: protos/perfetto/trace/chrome/chrome_trigger.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_protos_2fperfetto_2ftrace_2fchrome_2fchrome_5ftrigger_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_protos_2fperfetto_2ftrace_2fchrome_2fchrome_5ftrigger_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_2fchrome_2fchrome_5ftrigger_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_2fchrome_2fchrome_5ftrigger_2eproto {
43   static const ::uint32_t offsets[];
44 };
45 namespace perfetto {
46 namespace protos {
47 class ChromeTrigger;
48 struct ChromeTriggerDefaultTypeInternal;
49 extern ChromeTriggerDefaultTypeInternal _ChromeTrigger_default_instance_;
50 }  // namespace protos
51 }  // namespace perfetto
52 PROTOBUF_NAMESPACE_OPEN
53 template<> ::perfetto::protos::ChromeTrigger* Arena::CreateMaybeMessage<::perfetto::protos::ChromeTrigger>(Arena*);
54 PROTOBUF_NAMESPACE_CLOSE
55 namespace perfetto {
56 namespace protos {
57 
58 // ===================================================================
59 
60 class ChromeTrigger final :
61     public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:perfetto.protos.ChromeTrigger) */ {
62  public:
ChromeTrigger()63   inline ChromeTrigger() : ChromeTrigger(nullptr) {}
64   ~ChromeTrigger() override;
65   explicit PROTOBUF_CONSTEXPR ChromeTrigger(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
66 
67   ChromeTrigger(const ChromeTrigger& from);
ChromeTrigger(ChromeTrigger && from)68   ChromeTrigger(ChromeTrigger&& from) noexcept
69     : ChromeTrigger() {
70     *this = ::std::move(from);
71   }
72 
73   inline ChromeTrigger& operator=(const ChromeTrigger& from) {
74     if (this == &from) return *this;
75     CopyFrom(from);
76     return *this;
77   }
78   inline ChromeTrigger& operator=(ChromeTrigger&& 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 ChromeTrigger& default_instance() {
100     return *internal_default_instance();
101   }
internal_default_instance()102   static inline const ChromeTrigger* internal_default_instance() {
103     return reinterpret_cast<const ChromeTrigger*>(
104                &_ChromeTrigger_default_instance_);
105   }
106   static constexpr int kIndexInFileMessages =
107     0;
108 
swap(ChromeTrigger & a,ChromeTrigger & b)109   friend void swap(ChromeTrigger& a, ChromeTrigger& b) {
110     a.Swap(&b);
111   }
Swap(ChromeTrigger * other)112   inline void Swap(ChromeTrigger* 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(ChromeTrigger* other) {
126     if (other == this) return;
127     GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
128     InternalSwap(other);
129   }
130 
131   // implements Message ----------------------------------------------
132 
133   ChromeTrigger* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
134     return CreateMaybeMessage<ChromeTrigger>(arena);
135   }
136   ChromeTrigger* New() const {
137     return New(nullptr);
138   }
139   void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
140   void CopyFrom(const ChromeTrigger& from);
141   void MergeFrom(const ChromeTrigger& 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(ChromeTrigger* other);
156 
157   private:
158   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
159   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
160     return "perfetto.protos.ChromeTrigger";
161   }
162   protected:
163   explicit ChromeTrigger(::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     kTriggerNameFieldNumber = 1,
175     kFlowIdFieldNumber = 3,
176     kTriggerNameHashFieldNumber = 2,
177   };
178   // optional string trigger_name = 1;
179   bool has_trigger_name() const;
180   private:
181   bool _internal_has_trigger_name() const;
182   public:
183   void clear_trigger_name();
184   const std::string& trigger_name() const;
185   template <typename ArgT0 = const std::string&, typename... ArgT>
186   void set_trigger_name(ArgT0&& arg0, ArgT... args);
187   std::string* mutable_trigger_name();
188   PROTOBUF_NODISCARD std::string* release_trigger_name();
189   void set_allocated_trigger_name(std::string* trigger_name);
190   private:
191   const std::string& _internal_trigger_name() const;
192   inline PROTOBUF_ALWAYS_INLINE void _internal_set_trigger_name(const std::string& value);
193   std::string* _internal_mutable_trigger_name();
194   public:
195 
196   // optional fixed64 flow_id = 3;
197   bool has_flow_id() const;
198   private:
199   bool _internal_has_flow_id() const;
200   public:
201   void clear_flow_id();
202   ::uint64_t flow_id() const;
203   void set_flow_id(::uint64_t value);
204   private:
205   ::uint64_t _internal_flow_id() const;
206   void _internal_set_flow_id(::uint64_t value);
207   public:
208 
209   // optional fixed32 trigger_name_hash = 2;
210   bool has_trigger_name_hash() const;
211   private:
212   bool _internal_has_trigger_name_hash() const;
213   public:
214   void clear_trigger_name_hash();
215   ::uint32_t trigger_name_hash() const;
216   void set_trigger_name_hash(::uint32_t value);
217   private:
218   ::uint32_t _internal_trigger_name_hash() const;
219   void _internal_set_trigger_name_hash(::uint32_t value);
220   public:
221 
222   // @@protoc_insertion_point(class_scope:perfetto.protos.ChromeTrigger)
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 trigger_name_;
233     ::uint64_t flow_id_;
234     ::uint32_t trigger_name_hash_;
235   };
236   union { Impl_ _impl_; };
237   friend struct ::TableStruct_protos_2fperfetto_2ftrace_2fchrome_2fchrome_5ftrigger_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 // ChromeTrigger
249 
250 // optional string trigger_name = 1;
_internal_has_trigger_name()251 inline bool ChromeTrigger::_internal_has_trigger_name() const {
252   bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
253   return value;
254 }
has_trigger_name()255 inline bool ChromeTrigger::has_trigger_name() const {
256   return _internal_has_trigger_name();
257 }
clear_trigger_name()258 inline void ChromeTrigger::clear_trigger_name() {
259   _impl_.trigger_name_.ClearToEmpty();
260   _impl_._has_bits_[0] &= ~0x00000001u;
261 }
trigger_name()262 inline const std::string& ChromeTrigger::trigger_name() const {
263   // @@protoc_insertion_point(field_get:perfetto.protos.ChromeTrigger.trigger_name)
264   return _internal_trigger_name();
265 }
266 template <typename ArgT0, typename... ArgT>
267 inline PROTOBUF_ALWAYS_INLINE
set_trigger_name(ArgT0 && arg0,ArgT...args)268 void ChromeTrigger::set_trigger_name(ArgT0&& arg0, ArgT... args) {
269  _impl_._has_bits_[0] |= 0x00000001u;
270  _impl_.trigger_name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
271   // @@protoc_insertion_point(field_set:perfetto.protos.ChromeTrigger.trigger_name)
272 }
mutable_trigger_name()273 inline std::string* ChromeTrigger::mutable_trigger_name() {
274   std::string* _s = _internal_mutable_trigger_name();
275   // @@protoc_insertion_point(field_mutable:perfetto.protos.ChromeTrigger.trigger_name)
276   return _s;
277 }
_internal_trigger_name()278 inline const std::string& ChromeTrigger::_internal_trigger_name() const {
279   return _impl_.trigger_name_.Get();
280 }
_internal_set_trigger_name(const std::string & value)281 inline void ChromeTrigger::_internal_set_trigger_name(const std::string& value) {
282   _impl_._has_bits_[0] |= 0x00000001u;
283   _impl_.trigger_name_.Set(value, GetArenaForAllocation());
284 }
_internal_mutable_trigger_name()285 inline std::string* ChromeTrigger::_internal_mutable_trigger_name() {
286   _impl_._has_bits_[0] |= 0x00000001u;
287   return _impl_.trigger_name_.Mutable(GetArenaForAllocation());
288 }
release_trigger_name()289 inline std::string* ChromeTrigger::release_trigger_name() {
290   // @@protoc_insertion_point(field_release:perfetto.protos.ChromeTrigger.trigger_name)
291   if (!_internal_has_trigger_name()) {
292     return nullptr;
293   }
294   _impl_._has_bits_[0] &= ~0x00000001u;
295   auto* p = _impl_.trigger_name_.Release();
296 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
297   if (_impl_.trigger_name_.IsDefault()) {
298     _impl_.trigger_name_.Set("", GetArenaForAllocation());
299   }
300 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
301   return p;
302 }
set_allocated_trigger_name(std::string * trigger_name)303 inline void ChromeTrigger::set_allocated_trigger_name(std::string* trigger_name) {
304   if (trigger_name != nullptr) {
305     _impl_._has_bits_[0] |= 0x00000001u;
306   } else {
307     _impl_._has_bits_[0] &= ~0x00000001u;
308   }
309   _impl_.trigger_name_.SetAllocated(trigger_name, GetArenaForAllocation());
310 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
311   if (_impl_.trigger_name_.IsDefault()) {
312     _impl_.trigger_name_.Set("", GetArenaForAllocation());
313   }
314 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
315   // @@protoc_insertion_point(field_set_allocated:perfetto.protos.ChromeTrigger.trigger_name)
316 }
317 
318 // optional fixed32 trigger_name_hash = 2;
_internal_has_trigger_name_hash()319 inline bool ChromeTrigger::_internal_has_trigger_name_hash() const {
320   bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
321   return value;
322 }
has_trigger_name_hash()323 inline bool ChromeTrigger::has_trigger_name_hash() const {
324   return _internal_has_trigger_name_hash();
325 }
clear_trigger_name_hash()326 inline void ChromeTrigger::clear_trigger_name_hash() {
327   _impl_.trigger_name_hash_ = 0u;
328   _impl_._has_bits_[0] &= ~0x00000004u;
329 }
_internal_trigger_name_hash()330 inline ::uint32_t ChromeTrigger::_internal_trigger_name_hash() const {
331   return _impl_.trigger_name_hash_;
332 }
trigger_name_hash()333 inline ::uint32_t ChromeTrigger::trigger_name_hash() const {
334   // @@protoc_insertion_point(field_get:perfetto.protos.ChromeTrigger.trigger_name_hash)
335   return _internal_trigger_name_hash();
336 }
_internal_set_trigger_name_hash(::uint32_t value)337 inline void ChromeTrigger::_internal_set_trigger_name_hash(::uint32_t value) {
338   _impl_._has_bits_[0] |= 0x00000004u;
339   _impl_.trigger_name_hash_ = value;
340 }
set_trigger_name_hash(::uint32_t value)341 inline void ChromeTrigger::set_trigger_name_hash(::uint32_t value) {
342   _internal_set_trigger_name_hash(value);
343   // @@protoc_insertion_point(field_set:perfetto.protos.ChromeTrigger.trigger_name_hash)
344 }
345 
346 // optional fixed64 flow_id = 3;
_internal_has_flow_id()347 inline bool ChromeTrigger::_internal_has_flow_id() const {
348   bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
349   return value;
350 }
has_flow_id()351 inline bool ChromeTrigger::has_flow_id() const {
352   return _internal_has_flow_id();
353 }
clear_flow_id()354 inline void ChromeTrigger::clear_flow_id() {
355   _impl_.flow_id_ = ::uint64_t{0u};
356   _impl_._has_bits_[0] &= ~0x00000002u;
357 }
_internal_flow_id()358 inline ::uint64_t ChromeTrigger::_internal_flow_id() const {
359   return _impl_.flow_id_;
360 }
flow_id()361 inline ::uint64_t ChromeTrigger::flow_id() const {
362   // @@protoc_insertion_point(field_get:perfetto.protos.ChromeTrigger.flow_id)
363   return _internal_flow_id();
364 }
_internal_set_flow_id(::uint64_t value)365 inline void ChromeTrigger::_internal_set_flow_id(::uint64_t value) {
366   _impl_._has_bits_[0] |= 0x00000002u;
367   _impl_.flow_id_ = value;
368 }
set_flow_id(::uint64_t value)369 inline void ChromeTrigger::set_flow_id(::uint64_t value) {
370   _internal_set_flow_id(value);
371   // @@protoc_insertion_point(field_set:perfetto.protos.ChromeTrigger.flow_id)
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_2fchrome_2fchrome_5ftrigger_2eproto
387