1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: protos/perfetto/trace/track_event/track_descriptor.proto
3
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_protos_2fperfetto_2ftrace_2ftrack_5fevent_2ftrack_5fdescriptor_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_protos_2fperfetto_2ftrace_2ftrack_5fevent_2ftrack_5fdescriptor_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 #include "protos/perfetto/trace/track_event/chrome_process_descriptor.pb.h"
34 #include "protos/perfetto/trace/track_event/chrome_thread_descriptor.pb.h"
35 #include "protos/perfetto/trace/track_event/process_descriptor.pb.h"
36 #include "protos/perfetto/trace/track_event/thread_descriptor.pb.h"
37 #include "protos/perfetto/trace/track_event/counter_descriptor.pb.h"
38 // @@protoc_insertion_point(includes)
39 #include <google/protobuf/port_def.inc>
40 #define PROTOBUF_INTERNAL_EXPORT_protos_2fperfetto_2ftrace_2ftrack_5fevent_2ftrack_5fdescriptor_2eproto
41 PROTOBUF_NAMESPACE_OPEN
42 namespace internal {
43 class AnyMetadata;
44 } // namespace internal
45 PROTOBUF_NAMESPACE_CLOSE
46
47 // Internal implementation detail -- do not use these members.
48 struct TableStruct_protos_2fperfetto_2ftrace_2ftrack_5fevent_2ftrack_5fdescriptor_2eproto {
49 static const ::uint32_t offsets[];
50 };
51 namespace perfetto {
52 namespace protos {
53 class TrackDescriptor;
54 struct TrackDescriptorDefaultTypeInternal;
55 extern TrackDescriptorDefaultTypeInternal _TrackDescriptor_default_instance_;
56 } // namespace protos
57 } // namespace perfetto
58 PROTOBUF_NAMESPACE_OPEN
59 template<> ::perfetto::protos::TrackDescriptor* Arena::CreateMaybeMessage<::perfetto::protos::TrackDescriptor>(Arena*);
60 PROTOBUF_NAMESPACE_CLOSE
61 namespace perfetto {
62 namespace protos {
63
64 enum TrackDescriptor_ChildTracksOrdering : int {
65 TrackDescriptor_ChildTracksOrdering_UNKNOWN = 0,
66 TrackDescriptor_ChildTracksOrdering_LEXICOGRAPHIC = 1,
67 TrackDescriptor_ChildTracksOrdering_CHRONOLOGICAL = 2,
68 TrackDescriptor_ChildTracksOrdering_EXPLICIT = 3
69 };
70 bool TrackDescriptor_ChildTracksOrdering_IsValid(int value);
71 constexpr TrackDescriptor_ChildTracksOrdering TrackDescriptor_ChildTracksOrdering_ChildTracksOrdering_MIN = TrackDescriptor_ChildTracksOrdering_UNKNOWN;
72 constexpr TrackDescriptor_ChildTracksOrdering TrackDescriptor_ChildTracksOrdering_ChildTracksOrdering_MAX = TrackDescriptor_ChildTracksOrdering_EXPLICIT;
73 constexpr int TrackDescriptor_ChildTracksOrdering_ChildTracksOrdering_ARRAYSIZE = TrackDescriptor_ChildTracksOrdering_ChildTracksOrdering_MAX + 1;
74
75 const std::string& TrackDescriptor_ChildTracksOrdering_Name(TrackDescriptor_ChildTracksOrdering value);
76 template<typename T>
TrackDescriptor_ChildTracksOrdering_Name(T enum_t_value)77 inline const std::string& TrackDescriptor_ChildTracksOrdering_Name(T enum_t_value) {
78 static_assert(::std::is_same<T, TrackDescriptor_ChildTracksOrdering>::value ||
79 ::std::is_integral<T>::value,
80 "Incorrect type passed to function TrackDescriptor_ChildTracksOrdering_Name.");
81 return TrackDescriptor_ChildTracksOrdering_Name(static_cast<TrackDescriptor_ChildTracksOrdering>(enum_t_value));
82 }
83 bool TrackDescriptor_ChildTracksOrdering_Parse(
84 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, TrackDescriptor_ChildTracksOrdering* value);
85 // ===================================================================
86
87 class TrackDescriptor final :
88 public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:perfetto.protos.TrackDescriptor) */ {
89 public:
TrackDescriptor()90 inline TrackDescriptor() : TrackDescriptor(nullptr) {}
91 ~TrackDescriptor() override;
92 explicit PROTOBUF_CONSTEXPR TrackDescriptor(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
93
94 TrackDescriptor(const TrackDescriptor& from);
TrackDescriptor(TrackDescriptor && from)95 TrackDescriptor(TrackDescriptor&& from) noexcept
96 : TrackDescriptor() {
97 *this = ::std::move(from);
98 }
99
100 inline TrackDescriptor& operator=(const TrackDescriptor& from) {
101 if (this == &from) return *this;
102 CopyFrom(from);
103 return *this;
104 }
105 inline TrackDescriptor& operator=(TrackDescriptor&& from) noexcept {
106 if (this == &from) return *this;
107 if (GetOwningArena() == from.GetOwningArena()
108 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
109 && GetOwningArena() != nullptr
110 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
111 ) {
112 InternalSwap(&from);
113 } else {
114 CopyFrom(from);
115 }
116 return *this;
117 }
118
unknown_fields()119 inline const std::string& unknown_fields() const {
120 return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
121 }
mutable_unknown_fields()122 inline std::string* mutable_unknown_fields() {
123 return _internal_metadata_.mutable_unknown_fields<std::string>();
124 }
125
default_instance()126 static const TrackDescriptor& default_instance() {
127 return *internal_default_instance();
128 }
129 enum StaticOrDynamicNameCase {
130 kName = 2,
131 kStaticName = 10,
132 kAtraceName = 13,
133 STATIC_OR_DYNAMIC_NAME_NOT_SET = 0,
134 };
135
internal_default_instance()136 static inline const TrackDescriptor* internal_default_instance() {
137 return reinterpret_cast<const TrackDescriptor*>(
138 &_TrackDescriptor_default_instance_);
139 }
140 static constexpr int kIndexInFileMessages =
141 0;
142
swap(TrackDescriptor & a,TrackDescriptor & b)143 friend void swap(TrackDescriptor& a, TrackDescriptor& b) {
144 a.Swap(&b);
145 }
Swap(TrackDescriptor * other)146 inline void Swap(TrackDescriptor* other) {
147 if (other == this) return;
148 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
149 if (GetOwningArena() != nullptr &&
150 GetOwningArena() == other->GetOwningArena()) {
151 #else // PROTOBUF_FORCE_COPY_IN_SWAP
152 if (GetOwningArena() == other->GetOwningArena()) {
153 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
154 InternalSwap(other);
155 } else {
156 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
157 }
158 }
159 void UnsafeArenaSwap(TrackDescriptor* other) {
160 if (other == this) return;
161 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
162 InternalSwap(other);
163 }
164
165 // implements Message ----------------------------------------------
166
167 TrackDescriptor* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
168 return CreateMaybeMessage<TrackDescriptor>(arena);
169 }
170 TrackDescriptor* New() const {
171 return New(nullptr);
172 }
173 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
174 void CopyFrom(const TrackDescriptor& from);
175 void MergeFrom(const TrackDescriptor& from);
176 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
177 bool IsInitialized() const final;
178
179 size_t ByteSizeLong() const final;
180 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
181 ::uint8_t* _InternalSerialize(
182 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
183 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
184
185 private:
186 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
187 void SharedDtor();
188 void SetCachedSize(int size) const;
189 void InternalSwap(TrackDescriptor* other);
190
191 private:
192 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
193 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
194 return "perfetto.protos.TrackDescriptor";
195 }
196 protected:
197 explicit TrackDescriptor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
198 bool is_message_owned = false);
199 public:
200
201 std::string GetTypeName() const final;
202
203 // nested types ----------------------------------------------------
204
205 typedef TrackDescriptor_ChildTracksOrdering ChildTracksOrdering;
206 static constexpr ChildTracksOrdering UNKNOWN =
207 TrackDescriptor_ChildTracksOrdering_UNKNOWN;
208 static constexpr ChildTracksOrdering LEXICOGRAPHIC =
209 TrackDescriptor_ChildTracksOrdering_LEXICOGRAPHIC;
210 static constexpr ChildTracksOrdering CHRONOLOGICAL =
211 TrackDescriptor_ChildTracksOrdering_CHRONOLOGICAL;
212 static constexpr ChildTracksOrdering EXPLICIT =
213 TrackDescriptor_ChildTracksOrdering_EXPLICIT;
214 static inline bool ChildTracksOrdering_IsValid(int value) {
215 return TrackDescriptor_ChildTracksOrdering_IsValid(value);
216 }
217 static constexpr ChildTracksOrdering ChildTracksOrdering_MIN =
218 TrackDescriptor_ChildTracksOrdering_ChildTracksOrdering_MIN;
219 static constexpr ChildTracksOrdering ChildTracksOrdering_MAX =
220 TrackDescriptor_ChildTracksOrdering_ChildTracksOrdering_MAX;
221 static constexpr int ChildTracksOrdering_ARRAYSIZE =
222 TrackDescriptor_ChildTracksOrdering_ChildTracksOrdering_ARRAYSIZE;
223 template<typename T>
224 static inline const std::string& ChildTracksOrdering_Name(T enum_t_value) {
225 static_assert(::std::is_same<T, ChildTracksOrdering>::value ||
226 ::std::is_integral<T>::value,
227 "Incorrect type passed to function ChildTracksOrdering_Name.");
228 return TrackDescriptor_ChildTracksOrdering_Name(enum_t_value);
229 }
230 static inline bool ChildTracksOrdering_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
231 ChildTracksOrdering* value) {
232 return TrackDescriptor_ChildTracksOrdering_Parse(name, value);
233 }
234
235 // accessors -------------------------------------------------------
236
237 enum : int {
238 kProcessFieldNumber = 3,
239 kThreadFieldNumber = 4,
240 kChromeProcessFieldNumber = 6,
241 kChromeThreadFieldNumber = 7,
242 kCounterFieldNumber = 8,
243 kUuidFieldNumber = 1,
244 kParentUuidFieldNumber = 5,
245 kDisallowMergingWithSystemTracksFieldNumber = 9,
246 kChildOrderingFieldNumber = 11,
247 kSiblingOrderRankFieldNumber = 12,
248 kNameFieldNumber = 2,
249 kStaticNameFieldNumber = 10,
250 kAtraceNameFieldNumber = 13,
251 };
252 // optional .perfetto.protos.ProcessDescriptor process = 3;
253 bool has_process() const;
254 private:
255 bool _internal_has_process() const;
256 public:
257 void clear_process();
258 const ::perfetto::protos::ProcessDescriptor& process() const;
259 PROTOBUF_NODISCARD ::perfetto::protos::ProcessDescriptor* release_process();
260 ::perfetto::protos::ProcessDescriptor* mutable_process();
261 void set_allocated_process(::perfetto::protos::ProcessDescriptor* process);
262 private:
263 const ::perfetto::protos::ProcessDescriptor& _internal_process() const;
264 ::perfetto::protos::ProcessDescriptor* _internal_mutable_process();
265 public:
266 void unsafe_arena_set_allocated_process(
267 ::perfetto::protos::ProcessDescriptor* process);
268 ::perfetto::protos::ProcessDescriptor* unsafe_arena_release_process();
269
270 // optional .perfetto.protos.ThreadDescriptor thread = 4;
271 bool has_thread() const;
272 private:
273 bool _internal_has_thread() const;
274 public:
275 void clear_thread();
276 const ::perfetto::protos::ThreadDescriptor& thread() const;
277 PROTOBUF_NODISCARD ::perfetto::protos::ThreadDescriptor* release_thread();
278 ::perfetto::protos::ThreadDescriptor* mutable_thread();
279 void set_allocated_thread(::perfetto::protos::ThreadDescriptor* thread);
280 private:
281 const ::perfetto::protos::ThreadDescriptor& _internal_thread() const;
282 ::perfetto::protos::ThreadDescriptor* _internal_mutable_thread();
283 public:
284 void unsafe_arena_set_allocated_thread(
285 ::perfetto::protos::ThreadDescriptor* thread);
286 ::perfetto::protos::ThreadDescriptor* unsafe_arena_release_thread();
287
288 // optional .perfetto.protos.ChromeProcessDescriptor chrome_process = 6;
289 bool has_chrome_process() const;
290 private:
291 bool _internal_has_chrome_process() const;
292 public:
293 void clear_chrome_process();
294 const ::perfetto::protos::ChromeProcessDescriptor& chrome_process() const;
295 PROTOBUF_NODISCARD ::perfetto::protos::ChromeProcessDescriptor* release_chrome_process();
296 ::perfetto::protos::ChromeProcessDescriptor* mutable_chrome_process();
297 void set_allocated_chrome_process(::perfetto::protos::ChromeProcessDescriptor* chrome_process);
298 private:
299 const ::perfetto::protos::ChromeProcessDescriptor& _internal_chrome_process() const;
300 ::perfetto::protos::ChromeProcessDescriptor* _internal_mutable_chrome_process();
301 public:
302 void unsafe_arena_set_allocated_chrome_process(
303 ::perfetto::protos::ChromeProcessDescriptor* chrome_process);
304 ::perfetto::protos::ChromeProcessDescriptor* unsafe_arena_release_chrome_process();
305
306 // optional .perfetto.protos.ChromeThreadDescriptor chrome_thread = 7;
307 bool has_chrome_thread() const;
308 private:
309 bool _internal_has_chrome_thread() const;
310 public:
311 void clear_chrome_thread();
312 const ::perfetto::protos::ChromeThreadDescriptor& chrome_thread() const;
313 PROTOBUF_NODISCARD ::perfetto::protos::ChromeThreadDescriptor* release_chrome_thread();
314 ::perfetto::protos::ChromeThreadDescriptor* mutable_chrome_thread();
315 void set_allocated_chrome_thread(::perfetto::protos::ChromeThreadDescriptor* chrome_thread);
316 private:
317 const ::perfetto::protos::ChromeThreadDescriptor& _internal_chrome_thread() const;
318 ::perfetto::protos::ChromeThreadDescriptor* _internal_mutable_chrome_thread();
319 public:
320 void unsafe_arena_set_allocated_chrome_thread(
321 ::perfetto::protos::ChromeThreadDescriptor* chrome_thread);
322 ::perfetto::protos::ChromeThreadDescriptor* unsafe_arena_release_chrome_thread();
323
324 // optional .perfetto.protos.CounterDescriptor counter = 8;
325 bool has_counter() const;
326 private:
327 bool _internal_has_counter() const;
328 public:
329 void clear_counter();
330 const ::perfetto::protos::CounterDescriptor& counter() const;
331 PROTOBUF_NODISCARD ::perfetto::protos::CounterDescriptor* release_counter();
332 ::perfetto::protos::CounterDescriptor* mutable_counter();
333 void set_allocated_counter(::perfetto::protos::CounterDescriptor* counter);
334 private:
335 const ::perfetto::protos::CounterDescriptor& _internal_counter() const;
336 ::perfetto::protos::CounterDescriptor* _internal_mutable_counter();
337 public:
338 void unsafe_arena_set_allocated_counter(
339 ::perfetto::protos::CounterDescriptor* counter);
340 ::perfetto::protos::CounterDescriptor* unsafe_arena_release_counter();
341
342 // optional uint64 uuid = 1;
343 bool has_uuid() const;
344 private:
345 bool _internal_has_uuid() const;
346 public:
347 void clear_uuid();
348 ::uint64_t uuid() const;
349 void set_uuid(::uint64_t value);
350 private:
351 ::uint64_t _internal_uuid() const;
352 void _internal_set_uuid(::uint64_t value);
353 public:
354
355 // optional uint64 parent_uuid = 5;
356 bool has_parent_uuid() const;
357 private:
358 bool _internal_has_parent_uuid() const;
359 public:
360 void clear_parent_uuid();
361 ::uint64_t parent_uuid() const;
362 void set_parent_uuid(::uint64_t value);
363 private:
364 ::uint64_t _internal_parent_uuid() const;
365 void _internal_set_parent_uuid(::uint64_t value);
366 public:
367
368 // optional bool disallow_merging_with_system_tracks = 9;
369 bool has_disallow_merging_with_system_tracks() const;
370 private:
371 bool _internal_has_disallow_merging_with_system_tracks() const;
372 public:
373 void clear_disallow_merging_with_system_tracks();
374 bool disallow_merging_with_system_tracks() const;
375 void set_disallow_merging_with_system_tracks(bool value);
376 private:
377 bool _internal_disallow_merging_with_system_tracks() const;
378 void _internal_set_disallow_merging_with_system_tracks(bool value);
379 public:
380
381 // optional .perfetto.protos.TrackDescriptor.ChildTracksOrdering child_ordering = 11;
382 bool has_child_ordering() const;
383 private:
384 bool _internal_has_child_ordering() const;
385 public:
386 void clear_child_ordering();
387 ::perfetto::protos::TrackDescriptor_ChildTracksOrdering child_ordering() const;
388 void set_child_ordering(::perfetto::protos::TrackDescriptor_ChildTracksOrdering value);
389 private:
390 ::perfetto::protos::TrackDescriptor_ChildTracksOrdering _internal_child_ordering() const;
391 void _internal_set_child_ordering(::perfetto::protos::TrackDescriptor_ChildTracksOrdering value);
392 public:
393
394 // optional int32 sibling_order_rank = 12;
395 bool has_sibling_order_rank() const;
396 private:
397 bool _internal_has_sibling_order_rank() const;
398 public:
399 void clear_sibling_order_rank();
400 ::int32_t sibling_order_rank() const;
401 void set_sibling_order_rank(::int32_t value);
402 private:
403 ::int32_t _internal_sibling_order_rank() const;
404 void _internal_set_sibling_order_rank(::int32_t value);
405 public:
406
407 // string name = 2;
408 bool has_name() const;
409 private:
410 bool _internal_has_name() const;
411 public:
412 void clear_name();
413 const std::string& name() const;
414 template <typename ArgT0 = const std::string&, typename... ArgT>
415 void set_name(ArgT0&& arg0, ArgT... args);
416 std::string* mutable_name();
417 PROTOBUF_NODISCARD std::string* release_name();
418 void set_allocated_name(std::string* name);
419 private:
420 const std::string& _internal_name() const;
421 inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
422 std::string* _internal_mutable_name();
423 public:
424
425 // string static_name = 10;
426 bool has_static_name() const;
427 private:
428 bool _internal_has_static_name() const;
429 public:
430 void clear_static_name();
431 const std::string& static_name() const;
432 template <typename ArgT0 = const std::string&, typename... ArgT>
433 void set_static_name(ArgT0&& arg0, ArgT... args);
434 std::string* mutable_static_name();
435 PROTOBUF_NODISCARD std::string* release_static_name();
436 void set_allocated_static_name(std::string* static_name);
437 private:
438 const std::string& _internal_static_name() const;
439 inline PROTOBUF_ALWAYS_INLINE void _internal_set_static_name(const std::string& value);
440 std::string* _internal_mutable_static_name();
441 public:
442
443 // string atrace_name = 13;
444 bool has_atrace_name() const;
445 private:
446 bool _internal_has_atrace_name() const;
447 public:
448 void clear_atrace_name();
449 const std::string& atrace_name() const;
450 template <typename ArgT0 = const std::string&, typename... ArgT>
451 void set_atrace_name(ArgT0&& arg0, ArgT... args);
452 std::string* mutable_atrace_name();
453 PROTOBUF_NODISCARD std::string* release_atrace_name();
454 void set_allocated_atrace_name(std::string* atrace_name);
455 private:
456 const std::string& _internal_atrace_name() const;
457 inline PROTOBUF_ALWAYS_INLINE void _internal_set_atrace_name(const std::string& value);
458 std::string* _internal_mutable_atrace_name();
459 public:
460
461 void clear_static_or_dynamic_name();
462 StaticOrDynamicNameCase static_or_dynamic_name_case() const;
463 // @@protoc_insertion_point(class_scope:perfetto.protos.TrackDescriptor)
464 private:
465 class _Internal;
466 void set_has_name();
467 void set_has_static_name();
468 void set_has_atrace_name();
469
470 inline bool has_static_or_dynamic_name() const;
471 inline void clear_has_static_or_dynamic_name();
472
473 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
474 typedef void InternalArenaConstructable_;
475 typedef void DestructorSkippable_;
476 struct Impl_ {
477 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
478 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
479 ::perfetto::protos::ProcessDescriptor* process_;
480 ::perfetto::protos::ThreadDescriptor* thread_;
481 ::perfetto::protos::ChromeProcessDescriptor* chrome_process_;
482 ::perfetto::protos::ChromeThreadDescriptor* chrome_thread_;
483 ::perfetto::protos::CounterDescriptor* counter_;
484 ::uint64_t uuid_;
485 ::uint64_t parent_uuid_;
486 bool disallow_merging_with_system_tracks_;
487 int child_ordering_;
488 ::int32_t sibling_order_rank_;
489 union StaticOrDynamicNameUnion {
490 constexpr StaticOrDynamicNameUnion() : _constinit_{} {}
491 ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_;
492 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
493 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr static_name_;
494 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr atrace_name_;
495 } static_or_dynamic_name_;
496 ::uint32_t _oneof_case_[1];
497
498 };
499 union { Impl_ _impl_; };
500 friend struct ::TableStruct_protos_2fperfetto_2ftrace_2ftrack_5fevent_2ftrack_5fdescriptor_2eproto;
501 };
502 // ===================================================================
503
504
505 // ===================================================================
506
507 #ifdef __GNUC__
508 #pragma GCC diagnostic push
509 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
510 #endif // __GNUC__
511 // TrackDescriptor
512
513 // optional uint64 uuid = 1;
_internal_has_uuid()514 inline bool TrackDescriptor::_internal_has_uuid() const {
515 bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
516 return value;
517 }
has_uuid()518 inline bool TrackDescriptor::has_uuid() const {
519 return _internal_has_uuid();
520 }
clear_uuid()521 inline void TrackDescriptor::clear_uuid() {
522 _impl_.uuid_ = ::uint64_t{0u};
523 _impl_._has_bits_[0] &= ~0x00000020u;
524 }
_internal_uuid()525 inline ::uint64_t TrackDescriptor::_internal_uuid() const {
526 return _impl_.uuid_;
527 }
uuid()528 inline ::uint64_t TrackDescriptor::uuid() const {
529 // @@protoc_insertion_point(field_get:perfetto.protos.TrackDescriptor.uuid)
530 return _internal_uuid();
531 }
_internal_set_uuid(::uint64_t value)532 inline void TrackDescriptor::_internal_set_uuid(::uint64_t value) {
533 _impl_._has_bits_[0] |= 0x00000020u;
534 _impl_.uuid_ = value;
535 }
set_uuid(::uint64_t value)536 inline void TrackDescriptor::set_uuid(::uint64_t value) {
537 _internal_set_uuid(value);
538 // @@protoc_insertion_point(field_set:perfetto.protos.TrackDescriptor.uuid)
539 }
540
541 // optional uint64 parent_uuid = 5;
_internal_has_parent_uuid()542 inline bool TrackDescriptor::_internal_has_parent_uuid() const {
543 bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0;
544 return value;
545 }
has_parent_uuid()546 inline bool TrackDescriptor::has_parent_uuid() const {
547 return _internal_has_parent_uuid();
548 }
clear_parent_uuid()549 inline void TrackDescriptor::clear_parent_uuid() {
550 _impl_.parent_uuid_ = ::uint64_t{0u};
551 _impl_._has_bits_[0] &= ~0x00000040u;
552 }
_internal_parent_uuid()553 inline ::uint64_t TrackDescriptor::_internal_parent_uuid() const {
554 return _impl_.parent_uuid_;
555 }
parent_uuid()556 inline ::uint64_t TrackDescriptor::parent_uuid() const {
557 // @@protoc_insertion_point(field_get:perfetto.protos.TrackDescriptor.parent_uuid)
558 return _internal_parent_uuid();
559 }
_internal_set_parent_uuid(::uint64_t value)560 inline void TrackDescriptor::_internal_set_parent_uuid(::uint64_t value) {
561 _impl_._has_bits_[0] |= 0x00000040u;
562 _impl_.parent_uuid_ = value;
563 }
set_parent_uuid(::uint64_t value)564 inline void TrackDescriptor::set_parent_uuid(::uint64_t value) {
565 _internal_set_parent_uuid(value);
566 // @@protoc_insertion_point(field_set:perfetto.protos.TrackDescriptor.parent_uuid)
567 }
568
569 // string name = 2;
_internal_has_name()570 inline bool TrackDescriptor::_internal_has_name() const {
571 return static_or_dynamic_name_case() == kName;
572 }
has_name()573 inline bool TrackDescriptor::has_name() const {
574 return _internal_has_name();
575 }
set_has_name()576 inline void TrackDescriptor::set_has_name() {
577 _impl_._oneof_case_[0] = kName;
578 }
clear_name()579 inline void TrackDescriptor::clear_name() {
580 if (_internal_has_name()) {
581 _impl_.static_or_dynamic_name_.name_.Destroy();
582 clear_has_static_or_dynamic_name();
583 }
584 }
name()585 inline const std::string& TrackDescriptor::name() const {
586 // @@protoc_insertion_point(field_get:perfetto.protos.TrackDescriptor.name)
587 return _internal_name();
588 }
589 template <typename ArgT0, typename... ArgT>
set_name(ArgT0 && arg0,ArgT...args)590 inline void TrackDescriptor::set_name(ArgT0&& arg0, ArgT... args) {
591 if (!_internal_has_name()) {
592 clear_static_or_dynamic_name();
593 set_has_name();
594 _impl_.static_or_dynamic_name_.name_.InitDefault();
595 }
596 _impl_.static_or_dynamic_name_.name_.Set( static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
597 // @@protoc_insertion_point(field_set:perfetto.protos.TrackDescriptor.name)
598 }
mutable_name()599 inline std::string* TrackDescriptor::mutable_name() {
600 std::string* _s = _internal_mutable_name();
601 // @@protoc_insertion_point(field_mutable:perfetto.protos.TrackDescriptor.name)
602 return _s;
603 }
_internal_name()604 inline const std::string& TrackDescriptor::_internal_name() const {
605 if (_internal_has_name()) {
606 return _impl_.static_or_dynamic_name_.name_.Get();
607 }
608 return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
609 }
_internal_set_name(const std::string & value)610 inline void TrackDescriptor::_internal_set_name(const std::string& value) {
611 if (!_internal_has_name()) {
612 clear_static_or_dynamic_name();
613 set_has_name();
614 _impl_.static_or_dynamic_name_.name_.InitDefault();
615 }
616 _impl_.static_or_dynamic_name_.name_.Set(value, GetArenaForAllocation());
617 }
_internal_mutable_name()618 inline std::string* TrackDescriptor::_internal_mutable_name() {
619 if (!_internal_has_name()) {
620 clear_static_or_dynamic_name();
621 set_has_name();
622 _impl_.static_or_dynamic_name_.name_.InitDefault();
623 }
624 return _impl_.static_or_dynamic_name_.name_.Mutable( GetArenaForAllocation());
625 }
release_name()626 inline std::string* TrackDescriptor::release_name() {
627 // @@protoc_insertion_point(field_release:perfetto.protos.TrackDescriptor.name)
628 if (_internal_has_name()) {
629 clear_has_static_or_dynamic_name();
630 return _impl_.static_or_dynamic_name_.name_.Release();
631 } else {
632 return nullptr;
633 }
634 }
set_allocated_name(std::string * name)635 inline void TrackDescriptor::set_allocated_name(std::string* name) {
636 if (has_static_or_dynamic_name()) {
637 clear_static_or_dynamic_name();
638 }
639 if (name != nullptr) {
640 set_has_name();
641 _impl_.static_or_dynamic_name_.name_.InitAllocated(name, GetArenaForAllocation());
642 }
643 // @@protoc_insertion_point(field_set_allocated:perfetto.protos.TrackDescriptor.name)
644 }
645
646 // string static_name = 10;
_internal_has_static_name()647 inline bool TrackDescriptor::_internal_has_static_name() const {
648 return static_or_dynamic_name_case() == kStaticName;
649 }
has_static_name()650 inline bool TrackDescriptor::has_static_name() const {
651 return _internal_has_static_name();
652 }
set_has_static_name()653 inline void TrackDescriptor::set_has_static_name() {
654 _impl_._oneof_case_[0] = kStaticName;
655 }
clear_static_name()656 inline void TrackDescriptor::clear_static_name() {
657 if (_internal_has_static_name()) {
658 _impl_.static_or_dynamic_name_.static_name_.Destroy();
659 clear_has_static_or_dynamic_name();
660 }
661 }
static_name()662 inline const std::string& TrackDescriptor::static_name() const {
663 // @@protoc_insertion_point(field_get:perfetto.protos.TrackDescriptor.static_name)
664 return _internal_static_name();
665 }
666 template <typename ArgT0, typename... ArgT>
set_static_name(ArgT0 && arg0,ArgT...args)667 inline void TrackDescriptor::set_static_name(ArgT0&& arg0, ArgT... args) {
668 if (!_internal_has_static_name()) {
669 clear_static_or_dynamic_name();
670 set_has_static_name();
671 _impl_.static_or_dynamic_name_.static_name_.InitDefault();
672 }
673 _impl_.static_or_dynamic_name_.static_name_.Set( static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
674 // @@protoc_insertion_point(field_set:perfetto.protos.TrackDescriptor.static_name)
675 }
mutable_static_name()676 inline std::string* TrackDescriptor::mutable_static_name() {
677 std::string* _s = _internal_mutable_static_name();
678 // @@protoc_insertion_point(field_mutable:perfetto.protos.TrackDescriptor.static_name)
679 return _s;
680 }
_internal_static_name()681 inline const std::string& TrackDescriptor::_internal_static_name() const {
682 if (_internal_has_static_name()) {
683 return _impl_.static_or_dynamic_name_.static_name_.Get();
684 }
685 return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
686 }
_internal_set_static_name(const std::string & value)687 inline void TrackDescriptor::_internal_set_static_name(const std::string& value) {
688 if (!_internal_has_static_name()) {
689 clear_static_or_dynamic_name();
690 set_has_static_name();
691 _impl_.static_or_dynamic_name_.static_name_.InitDefault();
692 }
693 _impl_.static_or_dynamic_name_.static_name_.Set(value, GetArenaForAllocation());
694 }
_internal_mutable_static_name()695 inline std::string* TrackDescriptor::_internal_mutable_static_name() {
696 if (!_internal_has_static_name()) {
697 clear_static_or_dynamic_name();
698 set_has_static_name();
699 _impl_.static_or_dynamic_name_.static_name_.InitDefault();
700 }
701 return _impl_.static_or_dynamic_name_.static_name_.Mutable( GetArenaForAllocation());
702 }
release_static_name()703 inline std::string* TrackDescriptor::release_static_name() {
704 // @@protoc_insertion_point(field_release:perfetto.protos.TrackDescriptor.static_name)
705 if (_internal_has_static_name()) {
706 clear_has_static_or_dynamic_name();
707 return _impl_.static_or_dynamic_name_.static_name_.Release();
708 } else {
709 return nullptr;
710 }
711 }
set_allocated_static_name(std::string * static_name)712 inline void TrackDescriptor::set_allocated_static_name(std::string* static_name) {
713 if (has_static_or_dynamic_name()) {
714 clear_static_or_dynamic_name();
715 }
716 if (static_name != nullptr) {
717 set_has_static_name();
718 _impl_.static_or_dynamic_name_.static_name_.InitAllocated(static_name, GetArenaForAllocation());
719 }
720 // @@protoc_insertion_point(field_set_allocated:perfetto.protos.TrackDescriptor.static_name)
721 }
722
723 // string atrace_name = 13;
_internal_has_atrace_name()724 inline bool TrackDescriptor::_internal_has_atrace_name() const {
725 return static_or_dynamic_name_case() == kAtraceName;
726 }
has_atrace_name()727 inline bool TrackDescriptor::has_atrace_name() const {
728 return _internal_has_atrace_name();
729 }
set_has_atrace_name()730 inline void TrackDescriptor::set_has_atrace_name() {
731 _impl_._oneof_case_[0] = kAtraceName;
732 }
clear_atrace_name()733 inline void TrackDescriptor::clear_atrace_name() {
734 if (_internal_has_atrace_name()) {
735 _impl_.static_or_dynamic_name_.atrace_name_.Destroy();
736 clear_has_static_or_dynamic_name();
737 }
738 }
atrace_name()739 inline const std::string& TrackDescriptor::atrace_name() const {
740 // @@protoc_insertion_point(field_get:perfetto.protos.TrackDescriptor.atrace_name)
741 return _internal_atrace_name();
742 }
743 template <typename ArgT0, typename... ArgT>
set_atrace_name(ArgT0 && arg0,ArgT...args)744 inline void TrackDescriptor::set_atrace_name(ArgT0&& arg0, ArgT... args) {
745 if (!_internal_has_atrace_name()) {
746 clear_static_or_dynamic_name();
747 set_has_atrace_name();
748 _impl_.static_or_dynamic_name_.atrace_name_.InitDefault();
749 }
750 _impl_.static_or_dynamic_name_.atrace_name_.Set( static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
751 // @@protoc_insertion_point(field_set:perfetto.protos.TrackDescriptor.atrace_name)
752 }
mutable_atrace_name()753 inline std::string* TrackDescriptor::mutable_atrace_name() {
754 std::string* _s = _internal_mutable_atrace_name();
755 // @@protoc_insertion_point(field_mutable:perfetto.protos.TrackDescriptor.atrace_name)
756 return _s;
757 }
_internal_atrace_name()758 inline const std::string& TrackDescriptor::_internal_atrace_name() const {
759 if (_internal_has_atrace_name()) {
760 return _impl_.static_or_dynamic_name_.atrace_name_.Get();
761 }
762 return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
763 }
_internal_set_atrace_name(const std::string & value)764 inline void TrackDescriptor::_internal_set_atrace_name(const std::string& value) {
765 if (!_internal_has_atrace_name()) {
766 clear_static_or_dynamic_name();
767 set_has_atrace_name();
768 _impl_.static_or_dynamic_name_.atrace_name_.InitDefault();
769 }
770 _impl_.static_or_dynamic_name_.atrace_name_.Set(value, GetArenaForAllocation());
771 }
_internal_mutable_atrace_name()772 inline std::string* TrackDescriptor::_internal_mutable_atrace_name() {
773 if (!_internal_has_atrace_name()) {
774 clear_static_or_dynamic_name();
775 set_has_atrace_name();
776 _impl_.static_or_dynamic_name_.atrace_name_.InitDefault();
777 }
778 return _impl_.static_or_dynamic_name_.atrace_name_.Mutable( GetArenaForAllocation());
779 }
release_atrace_name()780 inline std::string* TrackDescriptor::release_atrace_name() {
781 // @@protoc_insertion_point(field_release:perfetto.protos.TrackDescriptor.atrace_name)
782 if (_internal_has_atrace_name()) {
783 clear_has_static_or_dynamic_name();
784 return _impl_.static_or_dynamic_name_.atrace_name_.Release();
785 } else {
786 return nullptr;
787 }
788 }
set_allocated_atrace_name(std::string * atrace_name)789 inline void TrackDescriptor::set_allocated_atrace_name(std::string* atrace_name) {
790 if (has_static_or_dynamic_name()) {
791 clear_static_or_dynamic_name();
792 }
793 if (atrace_name != nullptr) {
794 set_has_atrace_name();
795 _impl_.static_or_dynamic_name_.atrace_name_.InitAllocated(atrace_name, GetArenaForAllocation());
796 }
797 // @@protoc_insertion_point(field_set_allocated:perfetto.protos.TrackDescriptor.atrace_name)
798 }
799
800 // optional .perfetto.protos.ProcessDescriptor process = 3;
_internal_has_process()801 inline bool TrackDescriptor::_internal_has_process() const {
802 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
803 PROTOBUF_ASSUME(!value || _impl_.process_ != nullptr);
804 return value;
805 }
has_process()806 inline bool TrackDescriptor::has_process() const {
807 return _internal_has_process();
808 }
_internal_process()809 inline const ::perfetto::protos::ProcessDescriptor& TrackDescriptor::_internal_process() const {
810 const ::perfetto::protos::ProcessDescriptor* p = _impl_.process_;
811 return p != nullptr ? *p : reinterpret_cast<const ::perfetto::protos::ProcessDescriptor&>(
812 ::perfetto::protos::_ProcessDescriptor_default_instance_);
813 }
process()814 inline const ::perfetto::protos::ProcessDescriptor& TrackDescriptor::process() const {
815 // @@protoc_insertion_point(field_get:perfetto.protos.TrackDescriptor.process)
816 return _internal_process();
817 }
unsafe_arena_set_allocated_process(::perfetto::protos::ProcessDescriptor * process)818 inline void TrackDescriptor::unsafe_arena_set_allocated_process(
819 ::perfetto::protos::ProcessDescriptor* process) {
820 if (GetArenaForAllocation() == nullptr) {
821 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.process_);
822 }
823 _impl_.process_ = process;
824 if (process) {
825 _impl_._has_bits_[0] |= 0x00000001u;
826 } else {
827 _impl_._has_bits_[0] &= ~0x00000001u;
828 }
829 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:perfetto.protos.TrackDescriptor.process)
830 }
release_process()831 inline ::perfetto::protos::ProcessDescriptor* TrackDescriptor::release_process() {
832 _impl_._has_bits_[0] &= ~0x00000001u;
833 ::perfetto::protos::ProcessDescriptor* temp = _impl_.process_;
834 _impl_.process_ = nullptr;
835 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
836 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
837 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
838 if (GetArenaForAllocation() == nullptr) { delete old; }
839 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
840 if (GetArenaForAllocation() != nullptr) {
841 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
842 }
843 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
844 return temp;
845 }
unsafe_arena_release_process()846 inline ::perfetto::protos::ProcessDescriptor* TrackDescriptor::unsafe_arena_release_process() {
847 // @@protoc_insertion_point(field_release:perfetto.protos.TrackDescriptor.process)
848 _impl_._has_bits_[0] &= ~0x00000001u;
849 ::perfetto::protos::ProcessDescriptor* temp = _impl_.process_;
850 _impl_.process_ = nullptr;
851 return temp;
852 }
_internal_mutable_process()853 inline ::perfetto::protos::ProcessDescriptor* TrackDescriptor::_internal_mutable_process() {
854 _impl_._has_bits_[0] |= 0x00000001u;
855 if (_impl_.process_ == nullptr) {
856 auto* p = CreateMaybeMessage<::perfetto::protos::ProcessDescriptor>(GetArenaForAllocation());
857 _impl_.process_ = p;
858 }
859 return _impl_.process_;
860 }
mutable_process()861 inline ::perfetto::protos::ProcessDescriptor* TrackDescriptor::mutable_process() {
862 ::perfetto::protos::ProcessDescriptor* _msg = _internal_mutable_process();
863 // @@protoc_insertion_point(field_mutable:perfetto.protos.TrackDescriptor.process)
864 return _msg;
865 }
set_allocated_process(::perfetto::protos::ProcessDescriptor * process)866 inline void TrackDescriptor::set_allocated_process(::perfetto::protos::ProcessDescriptor* process) {
867 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
868 if (message_arena == nullptr) {
869 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.process_);
870 }
871 if (process) {
872 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
873 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
874 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(process));
875 if (message_arena != submessage_arena) {
876 process = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
877 message_arena, process, submessage_arena);
878 }
879 _impl_._has_bits_[0] |= 0x00000001u;
880 } else {
881 _impl_._has_bits_[0] &= ~0x00000001u;
882 }
883 _impl_.process_ = process;
884 // @@protoc_insertion_point(field_set_allocated:perfetto.protos.TrackDescriptor.process)
885 }
886
887 // optional .perfetto.protos.ChromeProcessDescriptor chrome_process = 6;
_internal_has_chrome_process()888 inline bool TrackDescriptor::_internal_has_chrome_process() const {
889 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
890 PROTOBUF_ASSUME(!value || _impl_.chrome_process_ != nullptr);
891 return value;
892 }
has_chrome_process()893 inline bool TrackDescriptor::has_chrome_process() const {
894 return _internal_has_chrome_process();
895 }
_internal_chrome_process()896 inline const ::perfetto::protos::ChromeProcessDescriptor& TrackDescriptor::_internal_chrome_process() const {
897 const ::perfetto::protos::ChromeProcessDescriptor* p = _impl_.chrome_process_;
898 return p != nullptr ? *p : reinterpret_cast<const ::perfetto::protos::ChromeProcessDescriptor&>(
899 ::perfetto::protos::_ChromeProcessDescriptor_default_instance_);
900 }
chrome_process()901 inline const ::perfetto::protos::ChromeProcessDescriptor& TrackDescriptor::chrome_process() const {
902 // @@protoc_insertion_point(field_get:perfetto.protos.TrackDescriptor.chrome_process)
903 return _internal_chrome_process();
904 }
unsafe_arena_set_allocated_chrome_process(::perfetto::protos::ChromeProcessDescriptor * chrome_process)905 inline void TrackDescriptor::unsafe_arena_set_allocated_chrome_process(
906 ::perfetto::protos::ChromeProcessDescriptor* chrome_process) {
907 if (GetArenaForAllocation() == nullptr) {
908 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.chrome_process_);
909 }
910 _impl_.chrome_process_ = chrome_process;
911 if (chrome_process) {
912 _impl_._has_bits_[0] |= 0x00000004u;
913 } else {
914 _impl_._has_bits_[0] &= ~0x00000004u;
915 }
916 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:perfetto.protos.TrackDescriptor.chrome_process)
917 }
release_chrome_process()918 inline ::perfetto::protos::ChromeProcessDescriptor* TrackDescriptor::release_chrome_process() {
919 _impl_._has_bits_[0] &= ~0x00000004u;
920 ::perfetto::protos::ChromeProcessDescriptor* temp = _impl_.chrome_process_;
921 _impl_.chrome_process_ = nullptr;
922 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
923 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
924 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
925 if (GetArenaForAllocation() == nullptr) { delete old; }
926 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
927 if (GetArenaForAllocation() != nullptr) {
928 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
929 }
930 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
931 return temp;
932 }
unsafe_arena_release_chrome_process()933 inline ::perfetto::protos::ChromeProcessDescriptor* TrackDescriptor::unsafe_arena_release_chrome_process() {
934 // @@protoc_insertion_point(field_release:perfetto.protos.TrackDescriptor.chrome_process)
935 _impl_._has_bits_[0] &= ~0x00000004u;
936 ::perfetto::protos::ChromeProcessDescriptor* temp = _impl_.chrome_process_;
937 _impl_.chrome_process_ = nullptr;
938 return temp;
939 }
_internal_mutable_chrome_process()940 inline ::perfetto::protos::ChromeProcessDescriptor* TrackDescriptor::_internal_mutable_chrome_process() {
941 _impl_._has_bits_[0] |= 0x00000004u;
942 if (_impl_.chrome_process_ == nullptr) {
943 auto* p = CreateMaybeMessage<::perfetto::protos::ChromeProcessDescriptor>(GetArenaForAllocation());
944 _impl_.chrome_process_ = p;
945 }
946 return _impl_.chrome_process_;
947 }
mutable_chrome_process()948 inline ::perfetto::protos::ChromeProcessDescriptor* TrackDescriptor::mutable_chrome_process() {
949 ::perfetto::protos::ChromeProcessDescriptor* _msg = _internal_mutable_chrome_process();
950 // @@protoc_insertion_point(field_mutable:perfetto.protos.TrackDescriptor.chrome_process)
951 return _msg;
952 }
set_allocated_chrome_process(::perfetto::protos::ChromeProcessDescriptor * chrome_process)953 inline void TrackDescriptor::set_allocated_chrome_process(::perfetto::protos::ChromeProcessDescriptor* chrome_process) {
954 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
955 if (message_arena == nullptr) {
956 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.chrome_process_);
957 }
958 if (chrome_process) {
959 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
960 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
961 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(chrome_process));
962 if (message_arena != submessage_arena) {
963 chrome_process = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
964 message_arena, chrome_process, submessage_arena);
965 }
966 _impl_._has_bits_[0] |= 0x00000004u;
967 } else {
968 _impl_._has_bits_[0] &= ~0x00000004u;
969 }
970 _impl_.chrome_process_ = chrome_process;
971 // @@protoc_insertion_point(field_set_allocated:perfetto.protos.TrackDescriptor.chrome_process)
972 }
973
974 // optional .perfetto.protos.ThreadDescriptor thread = 4;
_internal_has_thread()975 inline bool TrackDescriptor::_internal_has_thread() const {
976 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
977 PROTOBUF_ASSUME(!value || _impl_.thread_ != nullptr);
978 return value;
979 }
has_thread()980 inline bool TrackDescriptor::has_thread() const {
981 return _internal_has_thread();
982 }
_internal_thread()983 inline const ::perfetto::protos::ThreadDescriptor& TrackDescriptor::_internal_thread() const {
984 const ::perfetto::protos::ThreadDescriptor* p = _impl_.thread_;
985 return p != nullptr ? *p : reinterpret_cast<const ::perfetto::protos::ThreadDescriptor&>(
986 ::perfetto::protos::_ThreadDescriptor_default_instance_);
987 }
thread()988 inline const ::perfetto::protos::ThreadDescriptor& TrackDescriptor::thread() const {
989 // @@protoc_insertion_point(field_get:perfetto.protos.TrackDescriptor.thread)
990 return _internal_thread();
991 }
unsafe_arena_set_allocated_thread(::perfetto::protos::ThreadDescriptor * thread)992 inline void TrackDescriptor::unsafe_arena_set_allocated_thread(
993 ::perfetto::protos::ThreadDescriptor* thread) {
994 if (GetArenaForAllocation() == nullptr) {
995 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.thread_);
996 }
997 _impl_.thread_ = thread;
998 if (thread) {
999 _impl_._has_bits_[0] |= 0x00000002u;
1000 } else {
1001 _impl_._has_bits_[0] &= ~0x00000002u;
1002 }
1003 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:perfetto.protos.TrackDescriptor.thread)
1004 }
release_thread()1005 inline ::perfetto::protos::ThreadDescriptor* TrackDescriptor::release_thread() {
1006 _impl_._has_bits_[0] &= ~0x00000002u;
1007 ::perfetto::protos::ThreadDescriptor* temp = _impl_.thread_;
1008 _impl_.thread_ = nullptr;
1009 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
1010 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
1011 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1012 if (GetArenaForAllocation() == nullptr) { delete old; }
1013 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
1014 if (GetArenaForAllocation() != nullptr) {
1015 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1016 }
1017 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
1018 return temp;
1019 }
unsafe_arena_release_thread()1020 inline ::perfetto::protos::ThreadDescriptor* TrackDescriptor::unsafe_arena_release_thread() {
1021 // @@protoc_insertion_point(field_release:perfetto.protos.TrackDescriptor.thread)
1022 _impl_._has_bits_[0] &= ~0x00000002u;
1023 ::perfetto::protos::ThreadDescriptor* temp = _impl_.thread_;
1024 _impl_.thread_ = nullptr;
1025 return temp;
1026 }
_internal_mutable_thread()1027 inline ::perfetto::protos::ThreadDescriptor* TrackDescriptor::_internal_mutable_thread() {
1028 _impl_._has_bits_[0] |= 0x00000002u;
1029 if (_impl_.thread_ == nullptr) {
1030 auto* p = CreateMaybeMessage<::perfetto::protos::ThreadDescriptor>(GetArenaForAllocation());
1031 _impl_.thread_ = p;
1032 }
1033 return _impl_.thread_;
1034 }
mutable_thread()1035 inline ::perfetto::protos::ThreadDescriptor* TrackDescriptor::mutable_thread() {
1036 ::perfetto::protos::ThreadDescriptor* _msg = _internal_mutable_thread();
1037 // @@protoc_insertion_point(field_mutable:perfetto.protos.TrackDescriptor.thread)
1038 return _msg;
1039 }
set_allocated_thread(::perfetto::protos::ThreadDescriptor * thread)1040 inline void TrackDescriptor::set_allocated_thread(::perfetto::protos::ThreadDescriptor* thread) {
1041 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
1042 if (message_arena == nullptr) {
1043 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.thread_);
1044 }
1045 if (thread) {
1046 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1047 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
1048 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(thread));
1049 if (message_arena != submessage_arena) {
1050 thread = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1051 message_arena, thread, submessage_arena);
1052 }
1053 _impl_._has_bits_[0] |= 0x00000002u;
1054 } else {
1055 _impl_._has_bits_[0] &= ~0x00000002u;
1056 }
1057 _impl_.thread_ = thread;
1058 // @@protoc_insertion_point(field_set_allocated:perfetto.protos.TrackDescriptor.thread)
1059 }
1060
1061 // optional .perfetto.protos.ChromeThreadDescriptor chrome_thread = 7;
_internal_has_chrome_thread()1062 inline bool TrackDescriptor::_internal_has_chrome_thread() const {
1063 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
1064 PROTOBUF_ASSUME(!value || _impl_.chrome_thread_ != nullptr);
1065 return value;
1066 }
has_chrome_thread()1067 inline bool TrackDescriptor::has_chrome_thread() const {
1068 return _internal_has_chrome_thread();
1069 }
_internal_chrome_thread()1070 inline const ::perfetto::protos::ChromeThreadDescriptor& TrackDescriptor::_internal_chrome_thread() const {
1071 const ::perfetto::protos::ChromeThreadDescriptor* p = _impl_.chrome_thread_;
1072 return p != nullptr ? *p : reinterpret_cast<const ::perfetto::protos::ChromeThreadDescriptor&>(
1073 ::perfetto::protos::_ChromeThreadDescriptor_default_instance_);
1074 }
chrome_thread()1075 inline const ::perfetto::protos::ChromeThreadDescriptor& TrackDescriptor::chrome_thread() const {
1076 // @@protoc_insertion_point(field_get:perfetto.protos.TrackDescriptor.chrome_thread)
1077 return _internal_chrome_thread();
1078 }
unsafe_arena_set_allocated_chrome_thread(::perfetto::protos::ChromeThreadDescriptor * chrome_thread)1079 inline void TrackDescriptor::unsafe_arena_set_allocated_chrome_thread(
1080 ::perfetto::protos::ChromeThreadDescriptor* chrome_thread) {
1081 if (GetArenaForAllocation() == nullptr) {
1082 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.chrome_thread_);
1083 }
1084 _impl_.chrome_thread_ = chrome_thread;
1085 if (chrome_thread) {
1086 _impl_._has_bits_[0] |= 0x00000008u;
1087 } else {
1088 _impl_._has_bits_[0] &= ~0x00000008u;
1089 }
1090 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:perfetto.protos.TrackDescriptor.chrome_thread)
1091 }
release_chrome_thread()1092 inline ::perfetto::protos::ChromeThreadDescriptor* TrackDescriptor::release_chrome_thread() {
1093 _impl_._has_bits_[0] &= ~0x00000008u;
1094 ::perfetto::protos::ChromeThreadDescriptor* temp = _impl_.chrome_thread_;
1095 _impl_.chrome_thread_ = nullptr;
1096 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
1097 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
1098 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1099 if (GetArenaForAllocation() == nullptr) { delete old; }
1100 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
1101 if (GetArenaForAllocation() != nullptr) {
1102 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1103 }
1104 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
1105 return temp;
1106 }
unsafe_arena_release_chrome_thread()1107 inline ::perfetto::protos::ChromeThreadDescriptor* TrackDescriptor::unsafe_arena_release_chrome_thread() {
1108 // @@protoc_insertion_point(field_release:perfetto.protos.TrackDescriptor.chrome_thread)
1109 _impl_._has_bits_[0] &= ~0x00000008u;
1110 ::perfetto::protos::ChromeThreadDescriptor* temp = _impl_.chrome_thread_;
1111 _impl_.chrome_thread_ = nullptr;
1112 return temp;
1113 }
_internal_mutable_chrome_thread()1114 inline ::perfetto::protos::ChromeThreadDescriptor* TrackDescriptor::_internal_mutable_chrome_thread() {
1115 _impl_._has_bits_[0] |= 0x00000008u;
1116 if (_impl_.chrome_thread_ == nullptr) {
1117 auto* p = CreateMaybeMessage<::perfetto::protos::ChromeThreadDescriptor>(GetArenaForAllocation());
1118 _impl_.chrome_thread_ = p;
1119 }
1120 return _impl_.chrome_thread_;
1121 }
mutable_chrome_thread()1122 inline ::perfetto::protos::ChromeThreadDescriptor* TrackDescriptor::mutable_chrome_thread() {
1123 ::perfetto::protos::ChromeThreadDescriptor* _msg = _internal_mutable_chrome_thread();
1124 // @@protoc_insertion_point(field_mutable:perfetto.protos.TrackDescriptor.chrome_thread)
1125 return _msg;
1126 }
set_allocated_chrome_thread(::perfetto::protos::ChromeThreadDescriptor * chrome_thread)1127 inline void TrackDescriptor::set_allocated_chrome_thread(::perfetto::protos::ChromeThreadDescriptor* chrome_thread) {
1128 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
1129 if (message_arena == nullptr) {
1130 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.chrome_thread_);
1131 }
1132 if (chrome_thread) {
1133 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1134 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
1135 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(chrome_thread));
1136 if (message_arena != submessage_arena) {
1137 chrome_thread = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1138 message_arena, chrome_thread, submessage_arena);
1139 }
1140 _impl_._has_bits_[0] |= 0x00000008u;
1141 } else {
1142 _impl_._has_bits_[0] &= ~0x00000008u;
1143 }
1144 _impl_.chrome_thread_ = chrome_thread;
1145 // @@protoc_insertion_point(field_set_allocated:perfetto.protos.TrackDescriptor.chrome_thread)
1146 }
1147
1148 // optional .perfetto.protos.CounterDescriptor counter = 8;
_internal_has_counter()1149 inline bool TrackDescriptor::_internal_has_counter() const {
1150 bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
1151 PROTOBUF_ASSUME(!value || _impl_.counter_ != nullptr);
1152 return value;
1153 }
has_counter()1154 inline bool TrackDescriptor::has_counter() const {
1155 return _internal_has_counter();
1156 }
_internal_counter()1157 inline const ::perfetto::protos::CounterDescriptor& TrackDescriptor::_internal_counter() const {
1158 const ::perfetto::protos::CounterDescriptor* p = _impl_.counter_;
1159 return p != nullptr ? *p : reinterpret_cast<const ::perfetto::protos::CounterDescriptor&>(
1160 ::perfetto::protos::_CounterDescriptor_default_instance_);
1161 }
counter()1162 inline const ::perfetto::protos::CounterDescriptor& TrackDescriptor::counter() const {
1163 // @@protoc_insertion_point(field_get:perfetto.protos.TrackDescriptor.counter)
1164 return _internal_counter();
1165 }
unsafe_arena_set_allocated_counter(::perfetto::protos::CounterDescriptor * counter)1166 inline void TrackDescriptor::unsafe_arena_set_allocated_counter(
1167 ::perfetto::protos::CounterDescriptor* counter) {
1168 if (GetArenaForAllocation() == nullptr) {
1169 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.counter_);
1170 }
1171 _impl_.counter_ = counter;
1172 if (counter) {
1173 _impl_._has_bits_[0] |= 0x00000010u;
1174 } else {
1175 _impl_._has_bits_[0] &= ~0x00000010u;
1176 }
1177 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:perfetto.protos.TrackDescriptor.counter)
1178 }
release_counter()1179 inline ::perfetto::protos::CounterDescriptor* TrackDescriptor::release_counter() {
1180 _impl_._has_bits_[0] &= ~0x00000010u;
1181 ::perfetto::protos::CounterDescriptor* temp = _impl_.counter_;
1182 _impl_.counter_ = nullptr;
1183 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
1184 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
1185 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1186 if (GetArenaForAllocation() == nullptr) { delete old; }
1187 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
1188 if (GetArenaForAllocation() != nullptr) {
1189 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1190 }
1191 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
1192 return temp;
1193 }
unsafe_arena_release_counter()1194 inline ::perfetto::protos::CounterDescriptor* TrackDescriptor::unsafe_arena_release_counter() {
1195 // @@protoc_insertion_point(field_release:perfetto.protos.TrackDescriptor.counter)
1196 _impl_._has_bits_[0] &= ~0x00000010u;
1197 ::perfetto::protos::CounterDescriptor* temp = _impl_.counter_;
1198 _impl_.counter_ = nullptr;
1199 return temp;
1200 }
_internal_mutable_counter()1201 inline ::perfetto::protos::CounterDescriptor* TrackDescriptor::_internal_mutable_counter() {
1202 _impl_._has_bits_[0] |= 0x00000010u;
1203 if (_impl_.counter_ == nullptr) {
1204 auto* p = CreateMaybeMessage<::perfetto::protos::CounterDescriptor>(GetArenaForAllocation());
1205 _impl_.counter_ = p;
1206 }
1207 return _impl_.counter_;
1208 }
mutable_counter()1209 inline ::perfetto::protos::CounterDescriptor* TrackDescriptor::mutable_counter() {
1210 ::perfetto::protos::CounterDescriptor* _msg = _internal_mutable_counter();
1211 // @@protoc_insertion_point(field_mutable:perfetto.protos.TrackDescriptor.counter)
1212 return _msg;
1213 }
set_allocated_counter(::perfetto::protos::CounterDescriptor * counter)1214 inline void TrackDescriptor::set_allocated_counter(::perfetto::protos::CounterDescriptor* counter) {
1215 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
1216 if (message_arena == nullptr) {
1217 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.counter_);
1218 }
1219 if (counter) {
1220 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1221 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
1222 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(counter));
1223 if (message_arena != submessage_arena) {
1224 counter = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1225 message_arena, counter, submessage_arena);
1226 }
1227 _impl_._has_bits_[0] |= 0x00000010u;
1228 } else {
1229 _impl_._has_bits_[0] &= ~0x00000010u;
1230 }
1231 _impl_.counter_ = counter;
1232 // @@protoc_insertion_point(field_set_allocated:perfetto.protos.TrackDescriptor.counter)
1233 }
1234
1235 // optional bool disallow_merging_with_system_tracks = 9;
_internal_has_disallow_merging_with_system_tracks()1236 inline bool TrackDescriptor::_internal_has_disallow_merging_with_system_tracks() const {
1237 bool value = (_impl_._has_bits_[0] & 0x00000080u) != 0;
1238 return value;
1239 }
has_disallow_merging_with_system_tracks()1240 inline bool TrackDescriptor::has_disallow_merging_with_system_tracks() const {
1241 return _internal_has_disallow_merging_with_system_tracks();
1242 }
clear_disallow_merging_with_system_tracks()1243 inline void TrackDescriptor::clear_disallow_merging_with_system_tracks() {
1244 _impl_.disallow_merging_with_system_tracks_ = false;
1245 _impl_._has_bits_[0] &= ~0x00000080u;
1246 }
_internal_disallow_merging_with_system_tracks()1247 inline bool TrackDescriptor::_internal_disallow_merging_with_system_tracks() const {
1248 return _impl_.disallow_merging_with_system_tracks_;
1249 }
disallow_merging_with_system_tracks()1250 inline bool TrackDescriptor::disallow_merging_with_system_tracks() const {
1251 // @@protoc_insertion_point(field_get:perfetto.protos.TrackDescriptor.disallow_merging_with_system_tracks)
1252 return _internal_disallow_merging_with_system_tracks();
1253 }
_internal_set_disallow_merging_with_system_tracks(bool value)1254 inline void TrackDescriptor::_internal_set_disallow_merging_with_system_tracks(bool value) {
1255 _impl_._has_bits_[0] |= 0x00000080u;
1256 _impl_.disallow_merging_with_system_tracks_ = value;
1257 }
set_disallow_merging_with_system_tracks(bool value)1258 inline void TrackDescriptor::set_disallow_merging_with_system_tracks(bool value) {
1259 _internal_set_disallow_merging_with_system_tracks(value);
1260 // @@protoc_insertion_point(field_set:perfetto.protos.TrackDescriptor.disallow_merging_with_system_tracks)
1261 }
1262
1263 // optional .perfetto.protos.TrackDescriptor.ChildTracksOrdering child_ordering = 11;
_internal_has_child_ordering()1264 inline bool TrackDescriptor::_internal_has_child_ordering() const {
1265 bool value = (_impl_._has_bits_[0] & 0x00000100u) != 0;
1266 return value;
1267 }
has_child_ordering()1268 inline bool TrackDescriptor::has_child_ordering() const {
1269 return _internal_has_child_ordering();
1270 }
clear_child_ordering()1271 inline void TrackDescriptor::clear_child_ordering() {
1272 _impl_.child_ordering_ = 0;
1273 _impl_._has_bits_[0] &= ~0x00000100u;
1274 }
_internal_child_ordering()1275 inline ::perfetto::protos::TrackDescriptor_ChildTracksOrdering TrackDescriptor::_internal_child_ordering() const {
1276 return static_cast< ::perfetto::protos::TrackDescriptor_ChildTracksOrdering >(_impl_.child_ordering_);
1277 }
child_ordering()1278 inline ::perfetto::protos::TrackDescriptor_ChildTracksOrdering TrackDescriptor::child_ordering() const {
1279 // @@protoc_insertion_point(field_get:perfetto.protos.TrackDescriptor.child_ordering)
1280 return _internal_child_ordering();
1281 }
_internal_set_child_ordering(::perfetto::protos::TrackDescriptor_ChildTracksOrdering value)1282 inline void TrackDescriptor::_internal_set_child_ordering(::perfetto::protos::TrackDescriptor_ChildTracksOrdering value) {
1283 assert(::perfetto::protos::TrackDescriptor_ChildTracksOrdering_IsValid(value));
1284 _impl_._has_bits_[0] |= 0x00000100u;
1285 _impl_.child_ordering_ = value;
1286 }
set_child_ordering(::perfetto::protos::TrackDescriptor_ChildTracksOrdering value)1287 inline void TrackDescriptor::set_child_ordering(::perfetto::protos::TrackDescriptor_ChildTracksOrdering value) {
1288 _internal_set_child_ordering(value);
1289 // @@protoc_insertion_point(field_set:perfetto.protos.TrackDescriptor.child_ordering)
1290 }
1291
1292 // optional int32 sibling_order_rank = 12;
_internal_has_sibling_order_rank()1293 inline bool TrackDescriptor::_internal_has_sibling_order_rank() const {
1294 bool value = (_impl_._has_bits_[0] & 0x00000200u) != 0;
1295 return value;
1296 }
has_sibling_order_rank()1297 inline bool TrackDescriptor::has_sibling_order_rank() const {
1298 return _internal_has_sibling_order_rank();
1299 }
clear_sibling_order_rank()1300 inline void TrackDescriptor::clear_sibling_order_rank() {
1301 _impl_.sibling_order_rank_ = 0;
1302 _impl_._has_bits_[0] &= ~0x00000200u;
1303 }
_internal_sibling_order_rank()1304 inline ::int32_t TrackDescriptor::_internal_sibling_order_rank() const {
1305 return _impl_.sibling_order_rank_;
1306 }
sibling_order_rank()1307 inline ::int32_t TrackDescriptor::sibling_order_rank() const {
1308 // @@protoc_insertion_point(field_get:perfetto.protos.TrackDescriptor.sibling_order_rank)
1309 return _internal_sibling_order_rank();
1310 }
_internal_set_sibling_order_rank(::int32_t value)1311 inline void TrackDescriptor::_internal_set_sibling_order_rank(::int32_t value) {
1312 _impl_._has_bits_[0] |= 0x00000200u;
1313 _impl_.sibling_order_rank_ = value;
1314 }
set_sibling_order_rank(::int32_t value)1315 inline void TrackDescriptor::set_sibling_order_rank(::int32_t value) {
1316 _internal_set_sibling_order_rank(value);
1317 // @@protoc_insertion_point(field_set:perfetto.protos.TrackDescriptor.sibling_order_rank)
1318 }
1319
has_static_or_dynamic_name()1320 inline bool TrackDescriptor::has_static_or_dynamic_name() const {
1321 return static_or_dynamic_name_case() != STATIC_OR_DYNAMIC_NAME_NOT_SET;
1322 }
clear_has_static_or_dynamic_name()1323 inline void TrackDescriptor::clear_has_static_or_dynamic_name() {
1324 _impl_._oneof_case_[0] = STATIC_OR_DYNAMIC_NAME_NOT_SET;
1325 }
static_or_dynamic_name_case()1326 inline TrackDescriptor::StaticOrDynamicNameCase TrackDescriptor::static_or_dynamic_name_case() const {
1327 return TrackDescriptor::StaticOrDynamicNameCase(_impl_._oneof_case_[0]);
1328 }
1329 #ifdef __GNUC__
1330 #pragma GCC diagnostic pop
1331 #endif // __GNUC__
1332
1333 // @@protoc_insertion_point(namespace_scope)
1334
1335 } // namespace protos
1336 } // namespace perfetto
1337
1338 PROTOBUF_NAMESPACE_OPEN
1339
1340 template <> struct is_proto_enum< ::perfetto::protos::TrackDescriptor_ChildTracksOrdering> : ::std::true_type {};
1341
1342 PROTOBUF_NAMESPACE_CLOSE
1343
1344 // @@protoc_insertion_point(global_scope)
1345
1346 #include <google/protobuf/port_undef.inc>
1347 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_protos_2fperfetto_2ftrace_2ftrack_5fevent_2ftrack_5fdescriptor_2eproto
1348