1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: protos/perfetto/trace/interned_data/interned_data.proto
3
4 #include "protos/perfetto/trace/interned_data/interned_data.pb.h"
5
6 #include <algorithm>
7 #include <cstdint>
8
9 #include <google/protobuf/io/coded_stream.h>
10 #include <google/protobuf/extension_set.h>
11 #include <google/protobuf/wire_format_lite.h>
12 #include <google/protobuf/io/zero_copy_stream_impl_lite.h>
13 // @@protoc_insertion_point(includes)
14 #include <google/protobuf/port_def.inc>
15
16 PROTOBUF_PRAGMA_INIT_SEG
17
18 namespace _pb = ::PROTOBUF_NAMESPACE_ID;
19 namespace _pbi = _pb::internal;
20
21 namespace perfetto {
22 namespace protos {
InternedData(::_pbi::ConstantInitialized)23 PROTOBUF_CONSTEXPR InternedData::InternedData(
24 ::_pbi::ConstantInitialized): _impl_{
25 /*decltype(_impl_.event_categories_)*/{}
26 , /*decltype(_impl_.event_names_)*/{}
27 , /*decltype(_impl_.debug_annotation_names_)*/{}
28 , /*decltype(_impl_.source_locations_)*/{}
29 , /*decltype(_impl_.function_names_)*/{}
30 , /*decltype(_impl_.frames_)*/{}
31 , /*decltype(_impl_.callstacks_)*/{}
32 , /*decltype(_impl_.build_ids_)*/{}
33 , /*decltype(_impl_.mapping_paths_)*/{}
34 , /*decltype(_impl_.source_paths_)*/{}
35 , /*decltype(_impl_.mappings_)*/{}
36 , /*decltype(_impl_.log_message_body_)*/{}
37 , /*decltype(_impl_.profiled_frame_symbols_)*/{}
38 , /*decltype(_impl_.vulkan_memory_keys_)*/{}
39 , /*decltype(_impl_.graphics_contexts_)*/{}
40 , /*decltype(_impl_.gpu_specifications_)*/{}
41 , /*decltype(_impl_.histogram_names_)*/{}
42 , /*decltype(_impl_.kernel_symbols_)*/{}
43 , /*decltype(_impl_.debug_annotation_value_type_names_)*/{}
44 , /*decltype(_impl_.unsymbolized_source_locations_)*/{}
45 , /*decltype(_impl_.debug_annotation_string_values_)*/{}
46 , /*decltype(_impl_.packet_context_)*/{}
47 , /*decltype(_impl_.v8_js_function_name_)*/{}
48 , /*decltype(_impl_.v8_js_function_)*/{}
49 , /*decltype(_impl_.v8_js_script_)*/{}
50 , /*decltype(_impl_.v8_wasm_script_)*/{}
51 , /*decltype(_impl_.v8_isolate_)*/{}
52 , /*decltype(_impl_.protolog_string_args_)*/{}
53 , /*decltype(_impl_.protolog_stacktrace_)*/{}
54 , /*decltype(_impl_.viewcapture_package_name_)*/{}
55 , /*decltype(_impl_.viewcapture_window_name_)*/{}
56 , /*decltype(_impl_.viewcapture_view_id_)*/{}
57 , /*decltype(_impl_.viewcapture_class_name_)*/{}
58 , /*decltype(_impl_._cached_size_)*/{}} {}
59 struct InternedDataDefaultTypeInternal {
InternedDataDefaultTypeInternalperfetto::protos::InternedDataDefaultTypeInternal60 PROTOBUF_CONSTEXPR InternedDataDefaultTypeInternal()
61 : _instance(::_pbi::ConstantInitialized{}) {}
~InternedDataDefaultTypeInternalperfetto::protos::InternedDataDefaultTypeInternal62 ~InternedDataDefaultTypeInternal() {}
63 union { // NOLINT(misc-non-private-member-variables-in-classes)
64 InternedData _instance;
65 };
66 };
67 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 InternedDataDefaultTypeInternal _InternedData_default_instance_;
68 } // namespace protos
69 } // namespace perfetto
70 namespace perfetto {
71 namespace protos {
72
73 // ===================================================================
74
75 class InternedData::_Internal {
76 public:
77 };
78
clear_event_categories()79 void InternedData::clear_event_categories() {
80 _impl_.event_categories_.Clear();
81 }
clear_event_names()82 void InternedData::clear_event_names() {
83 _impl_.event_names_.Clear();
84 }
clear_debug_annotation_names()85 void InternedData::clear_debug_annotation_names() {
86 _impl_.debug_annotation_names_.Clear();
87 }
clear_debug_annotation_value_type_names()88 void InternedData::clear_debug_annotation_value_type_names() {
89 _impl_.debug_annotation_value_type_names_.Clear();
90 }
clear_source_locations()91 void InternedData::clear_source_locations() {
92 _impl_.source_locations_.Clear();
93 }
clear_unsymbolized_source_locations()94 void InternedData::clear_unsymbolized_source_locations() {
95 _impl_.unsymbolized_source_locations_.Clear();
96 }
clear_log_message_body()97 void InternedData::clear_log_message_body() {
98 _impl_.log_message_body_.Clear();
99 }
clear_histogram_names()100 void InternedData::clear_histogram_names() {
101 _impl_.histogram_names_.Clear();
102 }
clear_build_ids()103 void InternedData::clear_build_ids() {
104 _impl_.build_ids_.Clear();
105 }
clear_mapping_paths()106 void InternedData::clear_mapping_paths() {
107 _impl_.mapping_paths_.Clear();
108 }
clear_source_paths()109 void InternedData::clear_source_paths() {
110 _impl_.source_paths_.Clear();
111 }
clear_function_names()112 void InternedData::clear_function_names() {
113 _impl_.function_names_.Clear();
114 }
clear_profiled_frame_symbols()115 void InternedData::clear_profiled_frame_symbols() {
116 _impl_.profiled_frame_symbols_.Clear();
117 }
clear_mappings()118 void InternedData::clear_mappings() {
119 _impl_.mappings_.Clear();
120 }
clear_frames()121 void InternedData::clear_frames() {
122 _impl_.frames_.Clear();
123 }
clear_callstacks()124 void InternedData::clear_callstacks() {
125 _impl_.callstacks_.Clear();
126 }
clear_vulkan_memory_keys()127 void InternedData::clear_vulkan_memory_keys() {
128 _impl_.vulkan_memory_keys_.Clear();
129 }
clear_graphics_contexts()130 void InternedData::clear_graphics_contexts() {
131 _impl_.graphics_contexts_.Clear();
132 }
clear_gpu_specifications()133 void InternedData::clear_gpu_specifications() {
134 _impl_.gpu_specifications_.Clear();
135 }
clear_kernel_symbols()136 void InternedData::clear_kernel_symbols() {
137 _impl_.kernel_symbols_.Clear();
138 }
clear_debug_annotation_string_values()139 void InternedData::clear_debug_annotation_string_values() {
140 _impl_.debug_annotation_string_values_.Clear();
141 }
clear_packet_context()142 void InternedData::clear_packet_context() {
143 _impl_.packet_context_.Clear();
144 }
clear_v8_js_function_name()145 void InternedData::clear_v8_js_function_name() {
146 _impl_.v8_js_function_name_.Clear();
147 }
clear_v8_js_function()148 void InternedData::clear_v8_js_function() {
149 _impl_.v8_js_function_.Clear();
150 }
clear_v8_js_script()151 void InternedData::clear_v8_js_script() {
152 _impl_.v8_js_script_.Clear();
153 }
clear_v8_wasm_script()154 void InternedData::clear_v8_wasm_script() {
155 _impl_.v8_wasm_script_.Clear();
156 }
clear_v8_isolate()157 void InternedData::clear_v8_isolate() {
158 _impl_.v8_isolate_.Clear();
159 }
clear_protolog_string_args()160 void InternedData::clear_protolog_string_args() {
161 _impl_.protolog_string_args_.Clear();
162 }
clear_protolog_stacktrace()163 void InternedData::clear_protolog_stacktrace() {
164 _impl_.protolog_stacktrace_.Clear();
165 }
clear_viewcapture_package_name()166 void InternedData::clear_viewcapture_package_name() {
167 _impl_.viewcapture_package_name_.Clear();
168 }
clear_viewcapture_window_name()169 void InternedData::clear_viewcapture_window_name() {
170 _impl_.viewcapture_window_name_.Clear();
171 }
clear_viewcapture_view_id()172 void InternedData::clear_viewcapture_view_id() {
173 _impl_.viewcapture_view_id_.Clear();
174 }
clear_viewcapture_class_name()175 void InternedData::clear_viewcapture_class_name() {
176 _impl_.viewcapture_class_name_.Clear();
177 }
InternedData(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)178 InternedData::InternedData(::PROTOBUF_NAMESPACE_ID::Arena* arena,
179 bool is_message_owned)
180 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
181 SharedCtor(arena, is_message_owned);
182 // @@protoc_insertion_point(arena_constructor:perfetto.protos.InternedData)
183 }
InternedData(const InternedData & from)184 InternedData::InternedData(const InternedData& from)
185 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
186 InternedData* const _this = this; (void)_this;
187 new (&_impl_) Impl_{
188 decltype(_impl_.event_categories_){from._impl_.event_categories_}
189 , decltype(_impl_.event_names_){from._impl_.event_names_}
190 , decltype(_impl_.debug_annotation_names_){from._impl_.debug_annotation_names_}
191 , decltype(_impl_.source_locations_){from._impl_.source_locations_}
192 , decltype(_impl_.function_names_){from._impl_.function_names_}
193 , decltype(_impl_.frames_){from._impl_.frames_}
194 , decltype(_impl_.callstacks_){from._impl_.callstacks_}
195 , decltype(_impl_.build_ids_){from._impl_.build_ids_}
196 , decltype(_impl_.mapping_paths_){from._impl_.mapping_paths_}
197 , decltype(_impl_.source_paths_){from._impl_.source_paths_}
198 , decltype(_impl_.mappings_){from._impl_.mappings_}
199 , decltype(_impl_.log_message_body_){from._impl_.log_message_body_}
200 , decltype(_impl_.profiled_frame_symbols_){from._impl_.profiled_frame_symbols_}
201 , decltype(_impl_.vulkan_memory_keys_){from._impl_.vulkan_memory_keys_}
202 , decltype(_impl_.graphics_contexts_){from._impl_.graphics_contexts_}
203 , decltype(_impl_.gpu_specifications_){from._impl_.gpu_specifications_}
204 , decltype(_impl_.histogram_names_){from._impl_.histogram_names_}
205 , decltype(_impl_.kernel_symbols_){from._impl_.kernel_symbols_}
206 , decltype(_impl_.debug_annotation_value_type_names_){from._impl_.debug_annotation_value_type_names_}
207 , decltype(_impl_.unsymbolized_source_locations_){from._impl_.unsymbolized_source_locations_}
208 , decltype(_impl_.debug_annotation_string_values_){from._impl_.debug_annotation_string_values_}
209 , decltype(_impl_.packet_context_){from._impl_.packet_context_}
210 , decltype(_impl_.v8_js_function_name_){from._impl_.v8_js_function_name_}
211 , decltype(_impl_.v8_js_function_){from._impl_.v8_js_function_}
212 , decltype(_impl_.v8_js_script_){from._impl_.v8_js_script_}
213 , decltype(_impl_.v8_wasm_script_){from._impl_.v8_wasm_script_}
214 , decltype(_impl_.v8_isolate_){from._impl_.v8_isolate_}
215 , decltype(_impl_.protolog_string_args_){from._impl_.protolog_string_args_}
216 , decltype(_impl_.protolog_stacktrace_){from._impl_.protolog_stacktrace_}
217 , decltype(_impl_.viewcapture_package_name_){from._impl_.viewcapture_package_name_}
218 , decltype(_impl_.viewcapture_window_name_){from._impl_.viewcapture_window_name_}
219 , decltype(_impl_.viewcapture_view_id_){from._impl_.viewcapture_view_id_}
220 , decltype(_impl_.viewcapture_class_name_){from._impl_.viewcapture_class_name_}
221 , /*decltype(_impl_._cached_size_)*/{}};
222
223 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
224 // @@protoc_insertion_point(copy_constructor:perfetto.protos.InternedData)
225 }
226
SharedCtor(::_pb::Arena * arena,bool is_message_owned)227 inline void InternedData::SharedCtor(
228 ::_pb::Arena* arena, bool is_message_owned) {
229 (void)arena;
230 (void)is_message_owned;
231 new (&_impl_) Impl_{
232 decltype(_impl_.event_categories_){arena}
233 , decltype(_impl_.event_names_){arena}
234 , decltype(_impl_.debug_annotation_names_){arena}
235 , decltype(_impl_.source_locations_){arena}
236 , decltype(_impl_.function_names_){arena}
237 , decltype(_impl_.frames_){arena}
238 , decltype(_impl_.callstacks_){arena}
239 , decltype(_impl_.build_ids_){arena}
240 , decltype(_impl_.mapping_paths_){arena}
241 , decltype(_impl_.source_paths_){arena}
242 , decltype(_impl_.mappings_){arena}
243 , decltype(_impl_.log_message_body_){arena}
244 , decltype(_impl_.profiled_frame_symbols_){arena}
245 , decltype(_impl_.vulkan_memory_keys_){arena}
246 , decltype(_impl_.graphics_contexts_){arena}
247 , decltype(_impl_.gpu_specifications_){arena}
248 , decltype(_impl_.histogram_names_){arena}
249 , decltype(_impl_.kernel_symbols_){arena}
250 , decltype(_impl_.debug_annotation_value_type_names_){arena}
251 , decltype(_impl_.unsymbolized_source_locations_){arena}
252 , decltype(_impl_.debug_annotation_string_values_){arena}
253 , decltype(_impl_.packet_context_){arena}
254 , decltype(_impl_.v8_js_function_name_){arena}
255 , decltype(_impl_.v8_js_function_){arena}
256 , decltype(_impl_.v8_js_script_){arena}
257 , decltype(_impl_.v8_wasm_script_){arena}
258 , decltype(_impl_.v8_isolate_){arena}
259 , decltype(_impl_.protolog_string_args_){arena}
260 , decltype(_impl_.protolog_stacktrace_){arena}
261 , decltype(_impl_.viewcapture_package_name_){arena}
262 , decltype(_impl_.viewcapture_window_name_){arena}
263 , decltype(_impl_.viewcapture_view_id_){arena}
264 , decltype(_impl_.viewcapture_class_name_){arena}
265 , /*decltype(_impl_._cached_size_)*/{}
266 };
267 }
268
~InternedData()269 InternedData::~InternedData() {
270 // @@protoc_insertion_point(destructor:perfetto.protos.InternedData)
271 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
272 (void)arena;
273 return;
274 }
275 SharedDtor();
276 }
277
SharedDtor()278 inline void InternedData::SharedDtor() {
279 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
280 _impl_.event_categories_.~RepeatedPtrField();
281 _impl_.event_names_.~RepeatedPtrField();
282 _impl_.debug_annotation_names_.~RepeatedPtrField();
283 _impl_.source_locations_.~RepeatedPtrField();
284 _impl_.function_names_.~RepeatedPtrField();
285 _impl_.frames_.~RepeatedPtrField();
286 _impl_.callstacks_.~RepeatedPtrField();
287 _impl_.build_ids_.~RepeatedPtrField();
288 _impl_.mapping_paths_.~RepeatedPtrField();
289 _impl_.source_paths_.~RepeatedPtrField();
290 _impl_.mappings_.~RepeatedPtrField();
291 _impl_.log_message_body_.~RepeatedPtrField();
292 _impl_.profiled_frame_symbols_.~RepeatedPtrField();
293 _impl_.vulkan_memory_keys_.~RepeatedPtrField();
294 _impl_.graphics_contexts_.~RepeatedPtrField();
295 _impl_.gpu_specifications_.~RepeatedPtrField();
296 _impl_.histogram_names_.~RepeatedPtrField();
297 _impl_.kernel_symbols_.~RepeatedPtrField();
298 _impl_.debug_annotation_value_type_names_.~RepeatedPtrField();
299 _impl_.unsymbolized_source_locations_.~RepeatedPtrField();
300 _impl_.debug_annotation_string_values_.~RepeatedPtrField();
301 _impl_.packet_context_.~RepeatedPtrField();
302 _impl_.v8_js_function_name_.~RepeatedPtrField();
303 _impl_.v8_js_function_.~RepeatedPtrField();
304 _impl_.v8_js_script_.~RepeatedPtrField();
305 _impl_.v8_wasm_script_.~RepeatedPtrField();
306 _impl_.v8_isolate_.~RepeatedPtrField();
307 _impl_.protolog_string_args_.~RepeatedPtrField();
308 _impl_.protolog_stacktrace_.~RepeatedPtrField();
309 _impl_.viewcapture_package_name_.~RepeatedPtrField();
310 _impl_.viewcapture_window_name_.~RepeatedPtrField();
311 _impl_.viewcapture_view_id_.~RepeatedPtrField();
312 _impl_.viewcapture_class_name_.~RepeatedPtrField();
313 }
314
SetCachedSize(int size) const315 void InternedData::SetCachedSize(int size) const {
316 _impl_._cached_size_.Set(size);
317 }
318
Clear()319 void InternedData::Clear() {
320 // @@protoc_insertion_point(message_clear_start:perfetto.protos.InternedData)
321 ::uint32_t cached_has_bits = 0;
322 // Prevent compiler warnings about cached_has_bits being unused
323 (void) cached_has_bits;
324
325 _impl_.event_categories_.Clear();
326 _impl_.event_names_.Clear();
327 _impl_.debug_annotation_names_.Clear();
328 _impl_.source_locations_.Clear();
329 _impl_.function_names_.Clear();
330 _impl_.frames_.Clear();
331 _impl_.callstacks_.Clear();
332 _impl_.build_ids_.Clear();
333 _impl_.mapping_paths_.Clear();
334 _impl_.source_paths_.Clear();
335 _impl_.mappings_.Clear();
336 _impl_.log_message_body_.Clear();
337 _impl_.profiled_frame_symbols_.Clear();
338 _impl_.vulkan_memory_keys_.Clear();
339 _impl_.graphics_contexts_.Clear();
340 _impl_.gpu_specifications_.Clear();
341 _impl_.histogram_names_.Clear();
342 _impl_.kernel_symbols_.Clear();
343 _impl_.debug_annotation_value_type_names_.Clear();
344 _impl_.unsymbolized_source_locations_.Clear();
345 _impl_.debug_annotation_string_values_.Clear();
346 _impl_.packet_context_.Clear();
347 _impl_.v8_js_function_name_.Clear();
348 _impl_.v8_js_function_.Clear();
349 _impl_.v8_js_script_.Clear();
350 _impl_.v8_wasm_script_.Clear();
351 _impl_.v8_isolate_.Clear();
352 _impl_.protolog_string_args_.Clear();
353 _impl_.protolog_stacktrace_.Clear();
354 _impl_.viewcapture_package_name_.Clear();
355 _impl_.viewcapture_window_name_.Clear();
356 _impl_.viewcapture_view_id_.Clear();
357 _impl_.viewcapture_class_name_.Clear();
358 _internal_metadata_.Clear<std::string>();
359 }
360
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)361 const char* InternedData::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
362 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
363 while (!ctx->Done(&ptr)) {
364 ::uint32_t tag;
365 ptr = ::_pbi::ReadTag(ptr, &tag);
366 switch (tag >> 3) {
367 // repeated .perfetto.protos.EventCategory event_categories = 1;
368 case 1:
369 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
370 ptr -= 1;
371 do {
372 ptr += 1;
373 ptr = ctx->ParseMessage(_internal_add_event_categories(), ptr);
374 CHK_(ptr);
375 if (!ctx->DataAvailable(ptr)) break;
376 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
377 } else {
378 goto handle_unusual;
379 }
380 continue;
381 // repeated .perfetto.protos.EventName event_names = 2;
382 case 2:
383 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
384 ptr -= 1;
385 do {
386 ptr += 1;
387 ptr = ctx->ParseMessage(_internal_add_event_names(), ptr);
388 CHK_(ptr);
389 if (!ctx->DataAvailable(ptr)) break;
390 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
391 } else {
392 goto handle_unusual;
393 }
394 continue;
395 // repeated .perfetto.protos.DebugAnnotationName debug_annotation_names = 3;
396 case 3:
397 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
398 ptr -= 1;
399 do {
400 ptr += 1;
401 ptr = ctx->ParseMessage(_internal_add_debug_annotation_names(), ptr);
402 CHK_(ptr);
403 if (!ctx->DataAvailable(ptr)) break;
404 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
405 } else {
406 goto handle_unusual;
407 }
408 continue;
409 // repeated .perfetto.protos.SourceLocation source_locations = 4;
410 case 4:
411 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
412 ptr -= 1;
413 do {
414 ptr += 1;
415 ptr = ctx->ParseMessage(_internal_add_source_locations(), ptr);
416 CHK_(ptr);
417 if (!ctx->DataAvailable(ptr)) break;
418 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr));
419 } else {
420 goto handle_unusual;
421 }
422 continue;
423 // repeated .perfetto.protos.InternedString function_names = 5;
424 case 5:
425 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) {
426 ptr -= 1;
427 do {
428 ptr += 1;
429 ptr = ctx->ParseMessage(_internal_add_function_names(), ptr);
430 CHK_(ptr);
431 if (!ctx->DataAvailable(ptr)) break;
432 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr));
433 } else {
434 goto handle_unusual;
435 }
436 continue;
437 // repeated .perfetto.protos.Frame frames = 6;
438 case 6:
439 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) {
440 ptr -= 1;
441 do {
442 ptr += 1;
443 ptr = ctx->ParseMessage(_internal_add_frames(), ptr);
444 CHK_(ptr);
445 if (!ctx->DataAvailable(ptr)) break;
446 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr));
447 } else {
448 goto handle_unusual;
449 }
450 continue;
451 // repeated .perfetto.protos.Callstack callstacks = 7;
452 case 7:
453 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) {
454 ptr -= 1;
455 do {
456 ptr += 1;
457 ptr = ctx->ParseMessage(_internal_add_callstacks(), ptr);
458 CHK_(ptr);
459 if (!ctx->DataAvailable(ptr)) break;
460 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<58>(ptr));
461 } else {
462 goto handle_unusual;
463 }
464 continue;
465 // repeated .perfetto.protos.InternedString build_ids = 16;
466 case 16:
467 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 130)) {
468 ptr -= 2;
469 do {
470 ptr += 2;
471 ptr = ctx->ParseMessage(_internal_add_build_ids(), ptr);
472 CHK_(ptr);
473 if (!ctx->DataAvailable(ptr)) break;
474 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<130>(ptr));
475 } else {
476 goto handle_unusual;
477 }
478 continue;
479 // repeated .perfetto.protos.InternedString mapping_paths = 17;
480 case 17:
481 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 138)) {
482 ptr -= 2;
483 do {
484 ptr += 2;
485 ptr = ctx->ParseMessage(_internal_add_mapping_paths(), ptr);
486 CHK_(ptr);
487 if (!ctx->DataAvailable(ptr)) break;
488 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<138>(ptr));
489 } else {
490 goto handle_unusual;
491 }
492 continue;
493 // repeated .perfetto.protos.InternedString source_paths = 18;
494 case 18:
495 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 146)) {
496 ptr -= 2;
497 do {
498 ptr += 2;
499 ptr = ctx->ParseMessage(_internal_add_source_paths(), ptr);
500 CHK_(ptr);
501 if (!ctx->DataAvailable(ptr)) break;
502 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<146>(ptr));
503 } else {
504 goto handle_unusual;
505 }
506 continue;
507 // repeated .perfetto.protos.Mapping mappings = 19;
508 case 19:
509 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 154)) {
510 ptr -= 2;
511 do {
512 ptr += 2;
513 ptr = ctx->ParseMessage(_internal_add_mappings(), ptr);
514 CHK_(ptr);
515 if (!ctx->DataAvailable(ptr)) break;
516 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<154>(ptr));
517 } else {
518 goto handle_unusual;
519 }
520 continue;
521 // repeated .perfetto.protos.LogMessageBody log_message_body = 20;
522 case 20:
523 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 162)) {
524 ptr -= 2;
525 do {
526 ptr += 2;
527 ptr = ctx->ParseMessage(_internal_add_log_message_body(), ptr);
528 CHK_(ptr);
529 if (!ctx->DataAvailable(ptr)) break;
530 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<162>(ptr));
531 } else {
532 goto handle_unusual;
533 }
534 continue;
535 // repeated .perfetto.protos.ProfiledFrameSymbols profiled_frame_symbols = 21;
536 case 21:
537 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 170)) {
538 ptr -= 2;
539 do {
540 ptr += 2;
541 ptr = ctx->ParseMessage(_internal_add_profiled_frame_symbols(), ptr);
542 CHK_(ptr);
543 if (!ctx->DataAvailable(ptr)) break;
544 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<170>(ptr));
545 } else {
546 goto handle_unusual;
547 }
548 continue;
549 // repeated .perfetto.protos.InternedString vulkan_memory_keys = 22;
550 case 22:
551 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 178)) {
552 ptr -= 2;
553 do {
554 ptr += 2;
555 ptr = ctx->ParseMessage(_internal_add_vulkan_memory_keys(), ptr);
556 CHK_(ptr);
557 if (!ctx->DataAvailable(ptr)) break;
558 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<178>(ptr));
559 } else {
560 goto handle_unusual;
561 }
562 continue;
563 // repeated .perfetto.protos.InternedGraphicsContext graphics_contexts = 23;
564 case 23:
565 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 186)) {
566 ptr -= 2;
567 do {
568 ptr += 2;
569 ptr = ctx->ParseMessage(_internal_add_graphics_contexts(), ptr);
570 CHK_(ptr);
571 if (!ctx->DataAvailable(ptr)) break;
572 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<186>(ptr));
573 } else {
574 goto handle_unusual;
575 }
576 continue;
577 // repeated .perfetto.protos.InternedGpuRenderStageSpecification gpu_specifications = 24;
578 case 24:
579 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 194)) {
580 ptr -= 2;
581 do {
582 ptr += 2;
583 ptr = ctx->ParseMessage(_internal_add_gpu_specifications(), ptr);
584 CHK_(ptr);
585 if (!ctx->DataAvailable(ptr)) break;
586 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<194>(ptr));
587 } else {
588 goto handle_unusual;
589 }
590 continue;
591 // repeated .perfetto.protos.HistogramName histogram_names = 25;
592 case 25:
593 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 202)) {
594 ptr -= 2;
595 do {
596 ptr += 2;
597 ptr = ctx->ParseMessage(_internal_add_histogram_names(), ptr);
598 CHK_(ptr);
599 if (!ctx->DataAvailable(ptr)) break;
600 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<202>(ptr));
601 } else {
602 goto handle_unusual;
603 }
604 continue;
605 // repeated .perfetto.protos.InternedString kernel_symbols = 26;
606 case 26:
607 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 210)) {
608 ptr -= 2;
609 do {
610 ptr += 2;
611 ptr = ctx->ParseMessage(_internal_add_kernel_symbols(), ptr);
612 CHK_(ptr);
613 if (!ctx->DataAvailable(ptr)) break;
614 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<210>(ptr));
615 } else {
616 goto handle_unusual;
617 }
618 continue;
619 // repeated .perfetto.protos.DebugAnnotationValueTypeName debug_annotation_value_type_names = 27;
620 case 27:
621 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 218)) {
622 ptr -= 2;
623 do {
624 ptr += 2;
625 ptr = ctx->ParseMessage(_internal_add_debug_annotation_value_type_names(), ptr);
626 CHK_(ptr);
627 if (!ctx->DataAvailable(ptr)) break;
628 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<218>(ptr));
629 } else {
630 goto handle_unusual;
631 }
632 continue;
633 // repeated .perfetto.protos.UnsymbolizedSourceLocation unsymbolized_source_locations = 28;
634 case 28:
635 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 226)) {
636 ptr -= 2;
637 do {
638 ptr += 2;
639 ptr = ctx->ParseMessage(_internal_add_unsymbolized_source_locations(), ptr);
640 CHK_(ptr);
641 if (!ctx->DataAvailable(ptr)) break;
642 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<226>(ptr));
643 } else {
644 goto handle_unusual;
645 }
646 continue;
647 // repeated .perfetto.protos.InternedString debug_annotation_string_values = 29;
648 case 29:
649 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 234)) {
650 ptr -= 2;
651 do {
652 ptr += 2;
653 ptr = ctx->ParseMessage(_internal_add_debug_annotation_string_values(), ptr);
654 CHK_(ptr);
655 if (!ctx->DataAvailable(ptr)) break;
656 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<234>(ptr));
657 } else {
658 goto handle_unusual;
659 }
660 continue;
661 // repeated .perfetto.protos.NetworkPacketContext packet_context = 30;
662 case 30:
663 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 242)) {
664 ptr -= 2;
665 do {
666 ptr += 2;
667 ptr = ctx->ParseMessage(_internal_add_packet_context(), ptr);
668 CHK_(ptr);
669 if (!ctx->DataAvailable(ptr)) break;
670 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<242>(ptr));
671 } else {
672 goto handle_unusual;
673 }
674 continue;
675 // repeated .perfetto.protos.InternedV8String v8_js_function_name = 31;
676 case 31:
677 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 250)) {
678 ptr -= 2;
679 do {
680 ptr += 2;
681 ptr = ctx->ParseMessage(_internal_add_v8_js_function_name(), ptr);
682 CHK_(ptr);
683 if (!ctx->DataAvailable(ptr)) break;
684 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<250>(ptr));
685 } else {
686 goto handle_unusual;
687 }
688 continue;
689 // repeated .perfetto.protos.InternedV8JsFunction v8_js_function = 32;
690 case 32:
691 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 2)) {
692 ptr -= 2;
693 do {
694 ptr += 2;
695 ptr = ctx->ParseMessage(_internal_add_v8_js_function(), ptr);
696 CHK_(ptr);
697 if (!ctx->DataAvailable(ptr)) break;
698 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<258>(ptr));
699 } else {
700 goto handle_unusual;
701 }
702 continue;
703 // repeated .perfetto.protos.InternedV8JsScript v8_js_script = 33;
704 case 33:
705 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
706 ptr -= 2;
707 do {
708 ptr += 2;
709 ptr = ctx->ParseMessage(_internal_add_v8_js_script(), ptr);
710 CHK_(ptr);
711 if (!ctx->DataAvailable(ptr)) break;
712 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<266>(ptr));
713 } else {
714 goto handle_unusual;
715 }
716 continue;
717 // repeated .perfetto.protos.InternedV8WasmScript v8_wasm_script = 34;
718 case 34:
719 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
720 ptr -= 2;
721 do {
722 ptr += 2;
723 ptr = ctx->ParseMessage(_internal_add_v8_wasm_script(), ptr);
724 CHK_(ptr);
725 if (!ctx->DataAvailable(ptr)) break;
726 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<274>(ptr));
727 } else {
728 goto handle_unusual;
729 }
730 continue;
731 // repeated .perfetto.protos.InternedV8Isolate v8_isolate = 35;
732 case 35:
733 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
734 ptr -= 2;
735 do {
736 ptr += 2;
737 ptr = ctx->ParseMessage(_internal_add_v8_isolate(), ptr);
738 CHK_(ptr);
739 if (!ctx->DataAvailable(ptr)) break;
740 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<282>(ptr));
741 } else {
742 goto handle_unusual;
743 }
744 continue;
745 // repeated .perfetto.protos.InternedString protolog_string_args = 36;
746 case 36:
747 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
748 ptr -= 2;
749 do {
750 ptr += 2;
751 ptr = ctx->ParseMessage(_internal_add_protolog_string_args(), ptr);
752 CHK_(ptr);
753 if (!ctx->DataAvailable(ptr)) break;
754 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<290>(ptr));
755 } else {
756 goto handle_unusual;
757 }
758 continue;
759 // repeated .perfetto.protos.InternedString protolog_stacktrace = 37;
760 case 37:
761 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) {
762 ptr -= 2;
763 do {
764 ptr += 2;
765 ptr = ctx->ParseMessage(_internal_add_protolog_stacktrace(), ptr);
766 CHK_(ptr);
767 if (!ctx->DataAvailable(ptr)) break;
768 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<298>(ptr));
769 } else {
770 goto handle_unusual;
771 }
772 continue;
773 // repeated .perfetto.protos.InternedString viewcapture_package_name = 38;
774 case 38:
775 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) {
776 ptr -= 2;
777 do {
778 ptr += 2;
779 ptr = ctx->ParseMessage(_internal_add_viewcapture_package_name(), ptr);
780 CHK_(ptr);
781 if (!ctx->DataAvailable(ptr)) break;
782 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<306>(ptr));
783 } else {
784 goto handle_unusual;
785 }
786 continue;
787 // repeated .perfetto.protos.InternedString viewcapture_window_name = 39;
788 case 39:
789 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) {
790 ptr -= 2;
791 do {
792 ptr += 2;
793 ptr = ctx->ParseMessage(_internal_add_viewcapture_window_name(), ptr);
794 CHK_(ptr);
795 if (!ctx->DataAvailable(ptr)) break;
796 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<314>(ptr));
797 } else {
798 goto handle_unusual;
799 }
800 continue;
801 // repeated .perfetto.protos.InternedString viewcapture_view_id = 40;
802 case 40:
803 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 66)) {
804 ptr -= 2;
805 do {
806 ptr += 2;
807 ptr = ctx->ParseMessage(_internal_add_viewcapture_view_id(), ptr);
808 CHK_(ptr);
809 if (!ctx->DataAvailable(ptr)) break;
810 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<322>(ptr));
811 } else {
812 goto handle_unusual;
813 }
814 continue;
815 // repeated .perfetto.protos.InternedString viewcapture_class_name = 41;
816 case 41:
817 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 74)) {
818 ptr -= 2;
819 do {
820 ptr += 2;
821 ptr = ctx->ParseMessage(_internal_add_viewcapture_class_name(), ptr);
822 CHK_(ptr);
823 if (!ctx->DataAvailable(ptr)) break;
824 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<330>(ptr));
825 } else {
826 goto handle_unusual;
827 }
828 continue;
829 default:
830 goto handle_unusual;
831 } // switch
832 handle_unusual:
833 if ((tag == 0) || ((tag & 7) == 4)) {
834 CHK_(ptr);
835 ctx->SetLastTag(tag);
836 goto message_done;
837 }
838 ptr = UnknownFieldParse(
839 tag,
840 _internal_metadata_.mutable_unknown_fields<std::string>(),
841 ptr, ctx);
842 CHK_(ptr != nullptr);
843 } // while
844 message_done:
845 return ptr;
846 failure:
847 ptr = nullptr;
848 goto message_done;
849 #undef CHK_
850 }
851
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const852 ::uint8_t* InternedData::_InternalSerialize(
853 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
854 // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.InternedData)
855 ::uint32_t cached_has_bits = 0;
856 (void) cached_has_bits;
857
858 // repeated .perfetto.protos.EventCategory event_categories = 1;
859 for (unsigned i = 0,
860 n = static_cast<unsigned>(this->_internal_event_categories_size()); i < n; i++) {
861 const auto& repfield = this->_internal_event_categories(i);
862 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
863 InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
864 }
865
866 // repeated .perfetto.protos.EventName event_names = 2;
867 for (unsigned i = 0,
868 n = static_cast<unsigned>(this->_internal_event_names_size()); i < n; i++) {
869 const auto& repfield = this->_internal_event_names(i);
870 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
871 InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream);
872 }
873
874 // repeated .perfetto.protos.DebugAnnotationName debug_annotation_names = 3;
875 for (unsigned i = 0,
876 n = static_cast<unsigned>(this->_internal_debug_annotation_names_size()); i < n; i++) {
877 const auto& repfield = this->_internal_debug_annotation_names(i);
878 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
879 InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream);
880 }
881
882 // repeated .perfetto.protos.SourceLocation source_locations = 4;
883 for (unsigned i = 0,
884 n = static_cast<unsigned>(this->_internal_source_locations_size()); i < n; i++) {
885 const auto& repfield = this->_internal_source_locations(i);
886 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
887 InternalWriteMessage(4, repfield, repfield.GetCachedSize(), target, stream);
888 }
889
890 // repeated .perfetto.protos.InternedString function_names = 5;
891 for (unsigned i = 0,
892 n = static_cast<unsigned>(this->_internal_function_names_size()); i < n; i++) {
893 const auto& repfield = this->_internal_function_names(i);
894 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
895 InternalWriteMessage(5, repfield, repfield.GetCachedSize(), target, stream);
896 }
897
898 // repeated .perfetto.protos.Frame frames = 6;
899 for (unsigned i = 0,
900 n = static_cast<unsigned>(this->_internal_frames_size()); i < n; i++) {
901 const auto& repfield = this->_internal_frames(i);
902 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
903 InternalWriteMessage(6, repfield, repfield.GetCachedSize(), target, stream);
904 }
905
906 // repeated .perfetto.protos.Callstack callstacks = 7;
907 for (unsigned i = 0,
908 n = static_cast<unsigned>(this->_internal_callstacks_size()); i < n; i++) {
909 const auto& repfield = this->_internal_callstacks(i);
910 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
911 InternalWriteMessage(7, repfield, repfield.GetCachedSize(), target, stream);
912 }
913
914 // repeated .perfetto.protos.InternedString build_ids = 16;
915 for (unsigned i = 0,
916 n = static_cast<unsigned>(this->_internal_build_ids_size()); i < n; i++) {
917 const auto& repfield = this->_internal_build_ids(i);
918 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
919 InternalWriteMessage(16, repfield, repfield.GetCachedSize(), target, stream);
920 }
921
922 // repeated .perfetto.protos.InternedString mapping_paths = 17;
923 for (unsigned i = 0,
924 n = static_cast<unsigned>(this->_internal_mapping_paths_size()); i < n; i++) {
925 const auto& repfield = this->_internal_mapping_paths(i);
926 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
927 InternalWriteMessage(17, repfield, repfield.GetCachedSize(), target, stream);
928 }
929
930 // repeated .perfetto.protos.InternedString source_paths = 18;
931 for (unsigned i = 0,
932 n = static_cast<unsigned>(this->_internal_source_paths_size()); i < n; i++) {
933 const auto& repfield = this->_internal_source_paths(i);
934 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
935 InternalWriteMessage(18, repfield, repfield.GetCachedSize(), target, stream);
936 }
937
938 // repeated .perfetto.protos.Mapping mappings = 19;
939 for (unsigned i = 0,
940 n = static_cast<unsigned>(this->_internal_mappings_size()); i < n; i++) {
941 const auto& repfield = this->_internal_mappings(i);
942 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
943 InternalWriteMessage(19, repfield, repfield.GetCachedSize(), target, stream);
944 }
945
946 // repeated .perfetto.protos.LogMessageBody log_message_body = 20;
947 for (unsigned i = 0,
948 n = static_cast<unsigned>(this->_internal_log_message_body_size()); i < n; i++) {
949 const auto& repfield = this->_internal_log_message_body(i);
950 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
951 InternalWriteMessage(20, repfield, repfield.GetCachedSize(), target, stream);
952 }
953
954 // repeated .perfetto.protos.ProfiledFrameSymbols profiled_frame_symbols = 21;
955 for (unsigned i = 0,
956 n = static_cast<unsigned>(this->_internal_profiled_frame_symbols_size()); i < n; i++) {
957 const auto& repfield = this->_internal_profiled_frame_symbols(i);
958 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
959 InternalWriteMessage(21, repfield, repfield.GetCachedSize(), target, stream);
960 }
961
962 // repeated .perfetto.protos.InternedString vulkan_memory_keys = 22;
963 for (unsigned i = 0,
964 n = static_cast<unsigned>(this->_internal_vulkan_memory_keys_size()); i < n; i++) {
965 const auto& repfield = this->_internal_vulkan_memory_keys(i);
966 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
967 InternalWriteMessage(22, repfield, repfield.GetCachedSize(), target, stream);
968 }
969
970 // repeated .perfetto.protos.InternedGraphicsContext graphics_contexts = 23;
971 for (unsigned i = 0,
972 n = static_cast<unsigned>(this->_internal_graphics_contexts_size()); i < n; i++) {
973 const auto& repfield = this->_internal_graphics_contexts(i);
974 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
975 InternalWriteMessage(23, repfield, repfield.GetCachedSize(), target, stream);
976 }
977
978 // repeated .perfetto.protos.InternedGpuRenderStageSpecification gpu_specifications = 24;
979 for (unsigned i = 0,
980 n = static_cast<unsigned>(this->_internal_gpu_specifications_size()); i < n; i++) {
981 const auto& repfield = this->_internal_gpu_specifications(i);
982 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
983 InternalWriteMessage(24, repfield, repfield.GetCachedSize(), target, stream);
984 }
985
986 // repeated .perfetto.protos.HistogramName histogram_names = 25;
987 for (unsigned i = 0,
988 n = static_cast<unsigned>(this->_internal_histogram_names_size()); i < n; i++) {
989 const auto& repfield = this->_internal_histogram_names(i);
990 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
991 InternalWriteMessage(25, repfield, repfield.GetCachedSize(), target, stream);
992 }
993
994 // repeated .perfetto.protos.InternedString kernel_symbols = 26;
995 for (unsigned i = 0,
996 n = static_cast<unsigned>(this->_internal_kernel_symbols_size()); i < n; i++) {
997 const auto& repfield = this->_internal_kernel_symbols(i);
998 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
999 InternalWriteMessage(26, repfield, repfield.GetCachedSize(), target, stream);
1000 }
1001
1002 // repeated .perfetto.protos.DebugAnnotationValueTypeName debug_annotation_value_type_names = 27;
1003 for (unsigned i = 0,
1004 n = static_cast<unsigned>(this->_internal_debug_annotation_value_type_names_size()); i < n; i++) {
1005 const auto& repfield = this->_internal_debug_annotation_value_type_names(i);
1006 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1007 InternalWriteMessage(27, repfield, repfield.GetCachedSize(), target, stream);
1008 }
1009
1010 // repeated .perfetto.protos.UnsymbolizedSourceLocation unsymbolized_source_locations = 28;
1011 for (unsigned i = 0,
1012 n = static_cast<unsigned>(this->_internal_unsymbolized_source_locations_size()); i < n; i++) {
1013 const auto& repfield = this->_internal_unsymbolized_source_locations(i);
1014 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1015 InternalWriteMessage(28, repfield, repfield.GetCachedSize(), target, stream);
1016 }
1017
1018 // repeated .perfetto.protos.InternedString debug_annotation_string_values = 29;
1019 for (unsigned i = 0,
1020 n = static_cast<unsigned>(this->_internal_debug_annotation_string_values_size()); i < n; i++) {
1021 const auto& repfield = this->_internal_debug_annotation_string_values(i);
1022 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1023 InternalWriteMessage(29, repfield, repfield.GetCachedSize(), target, stream);
1024 }
1025
1026 // repeated .perfetto.protos.NetworkPacketContext packet_context = 30;
1027 for (unsigned i = 0,
1028 n = static_cast<unsigned>(this->_internal_packet_context_size()); i < n; i++) {
1029 const auto& repfield = this->_internal_packet_context(i);
1030 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1031 InternalWriteMessage(30, repfield, repfield.GetCachedSize(), target, stream);
1032 }
1033
1034 // repeated .perfetto.protos.InternedV8String v8_js_function_name = 31;
1035 for (unsigned i = 0,
1036 n = static_cast<unsigned>(this->_internal_v8_js_function_name_size()); i < n; i++) {
1037 const auto& repfield = this->_internal_v8_js_function_name(i);
1038 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1039 InternalWriteMessage(31, repfield, repfield.GetCachedSize(), target, stream);
1040 }
1041
1042 // repeated .perfetto.protos.InternedV8JsFunction v8_js_function = 32;
1043 for (unsigned i = 0,
1044 n = static_cast<unsigned>(this->_internal_v8_js_function_size()); i < n; i++) {
1045 const auto& repfield = this->_internal_v8_js_function(i);
1046 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1047 InternalWriteMessage(32, repfield, repfield.GetCachedSize(), target, stream);
1048 }
1049
1050 // repeated .perfetto.protos.InternedV8JsScript v8_js_script = 33;
1051 for (unsigned i = 0,
1052 n = static_cast<unsigned>(this->_internal_v8_js_script_size()); i < n; i++) {
1053 const auto& repfield = this->_internal_v8_js_script(i);
1054 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1055 InternalWriteMessage(33, repfield, repfield.GetCachedSize(), target, stream);
1056 }
1057
1058 // repeated .perfetto.protos.InternedV8WasmScript v8_wasm_script = 34;
1059 for (unsigned i = 0,
1060 n = static_cast<unsigned>(this->_internal_v8_wasm_script_size()); i < n; i++) {
1061 const auto& repfield = this->_internal_v8_wasm_script(i);
1062 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1063 InternalWriteMessage(34, repfield, repfield.GetCachedSize(), target, stream);
1064 }
1065
1066 // repeated .perfetto.protos.InternedV8Isolate v8_isolate = 35;
1067 for (unsigned i = 0,
1068 n = static_cast<unsigned>(this->_internal_v8_isolate_size()); i < n; i++) {
1069 const auto& repfield = this->_internal_v8_isolate(i);
1070 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1071 InternalWriteMessage(35, repfield, repfield.GetCachedSize(), target, stream);
1072 }
1073
1074 // repeated .perfetto.protos.InternedString protolog_string_args = 36;
1075 for (unsigned i = 0,
1076 n = static_cast<unsigned>(this->_internal_protolog_string_args_size()); i < n; i++) {
1077 const auto& repfield = this->_internal_protolog_string_args(i);
1078 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1079 InternalWriteMessage(36, repfield, repfield.GetCachedSize(), target, stream);
1080 }
1081
1082 // repeated .perfetto.protos.InternedString protolog_stacktrace = 37;
1083 for (unsigned i = 0,
1084 n = static_cast<unsigned>(this->_internal_protolog_stacktrace_size()); i < n; i++) {
1085 const auto& repfield = this->_internal_protolog_stacktrace(i);
1086 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1087 InternalWriteMessage(37, repfield, repfield.GetCachedSize(), target, stream);
1088 }
1089
1090 // repeated .perfetto.protos.InternedString viewcapture_package_name = 38;
1091 for (unsigned i = 0,
1092 n = static_cast<unsigned>(this->_internal_viewcapture_package_name_size()); i < n; i++) {
1093 const auto& repfield = this->_internal_viewcapture_package_name(i);
1094 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1095 InternalWriteMessage(38, repfield, repfield.GetCachedSize(), target, stream);
1096 }
1097
1098 // repeated .perfetto.protos.InternedString viewcapture_window_name = 39;
1099 for (unsigned i = 0,
1100 n = static_cast<unsigned>(this->_internal_viewcapture_window_name_size()); i < n; i++) {
1101 const auto& repfield = this->_internal_viewcapture_window_name(i);
1102 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1103 InternalWriteMessage(39, repfield, repfield.GetCachedSize(), target, stream);
1104 }
1105
1106 // repeated .perfetto.protos.InternedString viewcapture_view_id = 40;
1107 for (unsigned i = 0,
1108 n = static_cast<unsigned>(this->_internal_viewcapture_view_id_size()); i < n; i++) {
1109 const auto& repfield = this->_internal_viewcapture_view_id(i);
1110 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1111 InternalWriteMessage(40, repfield, repfield.GetCachedSize(), target, stream);
1112 }
1113
1114 // repeated .perfetto.protos.InternedString viewcapture_class_name = 41;
1115 for (unsigned i = 0,
1116 n = static_cast<unsigned>(this->_internal_viewcapture_class_name_size()); i < n; i++) {
1117 const auto& repfield = this->_internal_viewcapture_class_name(i);
1118 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1119 InternalWriteMessage(41, repfield, repfield.GetCachedSize(), target, stream);
1120 }
1121
1122 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1123 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
1124 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
1125 }
1126 // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.InternedData)
1127 return target;
1128 }
1129
ByteSizeLong() const1130 size_t InternedData::ByteSizeLong() const {
1131 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.InternedData)
1132 size_t total_size = 0;
1133
1134 ::uint32_t cached_has_bits = 0;
1135 // Prevent compiler warnings about cached_has_bits being unused
1136 (void) cached_has_bits;
1137
1138 // repeated .perfetto.protos.EventCategory event_categories = 1;
1139 total_size += 1UL * this->_internal_event_categories_size();
1140 for (const auto& msg : this->_impl_.event_categories_) {
1141 total_size +=
1142 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1143 }
1144
1145 // repeated .perfetto.protos.EventName event_names = 2;
1146 total_size += 1UL * this->_internal_event_names_size();
1147 for (const auto& msg : this->_impl_.event_names_) {
1148 total_size +=
1149 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1150 }
1151
1152 // repeated .perfetto.protos.DebugAnnotationName debug_annotation_names = 3;
1153 total_size += 1UL * this->_internal_debug_annotation_names_size();
1154 for (const auto& msg : this->_impl_.debug_annotation_names_) {
1155 total_size +=
1156 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1157 }
1158
1159 // repeated .perfetto.protos.SourceLocation source_locations = 4;
1160 total_size += 1UL * this->_internal_source_locations_size();
1161 for (const auto& msg : this->_impl_.source_locations_) {
1162 total_size +=
1163 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1164 }
1165
1166 // repeated .perfetto.protos.InternedString function_names = 5;
1167 total_size += 1UL * this->_internal_function_names_size();
1168 for (const auto& msg : this->_impl_.function_names_) {
1169 total_size +=
1170 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1171 }
1172
1173 // repeated .perfetto.protos.Frame frames = 6;
1174 total_size += 1UL * this->_internal_frames_size();
1175 for (const auto& msg : this->_impl_.frames_) {
1176 total_size +=
1177 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1178 }
1179
1180 // repeated .perfetto.protos.Callstack callstacks = 7;
1181 total_size += 1UL * this->_internal_callstacks_size();
1182 for (const auto& msg : this->_impl_.callstacks_) {
1183 total_size +=
1184 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1185 }
1186
1187 // repeated .perfetto.protos.InternedString build_ids = 16;
1188 total_size += 2UL * this->_internal_build_ids_size();
1189 for (const auto& msg : this->_impl_.build_ids_) {
1190 total_size +=
1191 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1192 }
1193
1194 // repeated .perfetto.protos.InternedString mapping_paths = 17;
1195 total_size += 2UL * this->_internal_mapping_paths_size();
1196 for (const auto& msg : this->_impl_.mapping_paths_) {
1197 total_size +=
1198 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1199 }
1200
1201 // repeated .perfetto.protos.InternedString source_paths = 18;
1202 total_size += 2UL * this->_internal_source_paths_size();
1203 for (const auto& msg : this->_impl_.source_paths_) {
1204 total_size +=
1205 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1206 }
1207
1208 // repeated .perfetto.protos.Mapping mappings = 19;
1209 total_size += 2UL * this->_internal_mappings_size();
1210 for (const auto& msg : this->_impl_.mappings_) {
1211 total_size +=
1212 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1213 }
1214
1215 // repeated .perfetto.protos.LogMessageBody log_message_body = 20;
1216 total_size += 2UL * this->_internal_log_message_body_size();
1217 for (const auto& msg : this->_impl_.log_message_body_) {
1218 total_size +=
1219 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1220 }
1221
1222 // repeated .perfetto.protos.ProfiledFrameSymbols profiled_frame_symbols = 21;
1223 total_size += 2UL * this->_internal_profiled_frame_symbols_size();
1224 for (const auto& msg : this->_impl_.profiled_frame_symbols_) {
1225 total_size +=
1226 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1227 }
1228
1229 // repeated .perfetto.protos.InternedString vulkan_memory_keys = 22;
1230 total_size += 2UL * this->_internal_vulkan_memory_keys_size();
1231 for (const auto& msg : this->_impl_.vulkan_memory_keys_) {
1232 total_size +=
1233 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1234 }
1235
1236 // repeated .perfetto.protos.InternedGraphicsContext graphics_contexts = 23;
1237 total_size += 2UL * this->_internal_graphics_contexts_size();
1238 for (const auto& msg : this->_impl_.graphics_contexts_) {
1239 total_size +=
1240 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1241 }
1242
1243 // repeated .perfetto.protos.InternedGpuRenderStageSpecification gpu_specifications = 24;
1244 total_size += 2UL * this->_internal_gpu_specifications_size();
1245 for (const auto& msg : this->_impl_.gpu_specifications_) {
1246 total_size +=
1247 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1248 }
1249
1250 // repeated .perfetto.protos.HistogramName histogram_names = 25;
1251 total_size += 2UL * this->_internal_histogram_names_size();
1252 for (const auto& msg : this->_impl_.histogram_names_) {
1253 total_size +=
1254 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1255 }
1256
1257 // repeated .perfetto.protos.InternedString kernel_symbols = 26;
1258 total_size += 2UL * this->_internal_kernel_symbols_size();
1259 for (const auto& msg : this->_impl_.kernel_symbols_) {
1260 total_size +=
1261 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1262 }
1263
1264 // repeated .perfetto.protos.DebugAnnotationValueTypeName debug_annotation_value_type_names = 27;
1265 total_size += 2UL * this->_internal_debug_annotation_value_type_names_size();
1266 for (const auto& msg : this->_impl_.debug_annotation_value_type_names_) {
1267 total_size +=
1268 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1269 }
1270
1271 // repeated .perfetto.protos.UnsymbolizedSourceLocation unsymbolized_source_locations = 28;
1272 total_size += 2UL * this->_internal_unsymbolized_source_locations_size();
1273 for (const auto& msg : this->_impl_.unsymbolized_source_locations_) {
1274 total_size +=
1275 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1276 }
1277
1278 // repeated .perfetto.protos.InternedString debug_annotation_string_values = 29;
1279 total_size += 2UL * this->_internal_debug_annotation_string_values_size();
1280 for (const auto& msg : this->_impl_.debug_annotation_string_values_) {
1281 total_size +=
1282 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1283 }
1284
1285 // repeated .perfetto.protos.NetworkPacketContext packet_context = 30;
1286 total_size += 2UL * this->_internal_packet_context_size();
1287 for (const auto& msg : this->_impl_.packet_context_) {
1288 total_size +=
1289 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1290 }
1291
1292 // repeated .perfetto.protos.InternedV8String v8_js_function_name = 31;
1293 total_size += 2UL * this->_internal_v8_js_function_name_size();
1294 for (const auto& msg : this->_impl_.v8_js_function_name_) {
1295 total_size +=
1296 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1297 }
1298
1299 // repeated .perfetto.protos.InternedV8JsFunction v8_js_function = 32;
1300 total_size += 2UL * this->_internal_v8_js_function_size();
1301 for (const auto& msg : this->_impl_.v8_js_function_) {
1302 total_size +=
1303 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1304 }
1305
1306 // repeated .perfetto.protos.InternedV8JsScript v8_js_script = 33;
1307 total_size += 2UL * this->_internal_v8_js_script_size();
1308 for (const auto& msg : this->_impl_.v8_js_script_) {
1309 total_size +=
1310 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1311 }
1312
1313 // repeated .perfetto.protos.InternedV8WasmScript v8_wasm_script = 34;
1314 total_size += 2UL * this->_internal_v8_wasm_script_size();
1315 for (const auto& msg : this->_impl_.v8_wasm_script_) {
1316 total_size +=
1317 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1318 }
1319
1320 // repeated .perfetto.protos.InternedV8Isolate v8_isolate = 35;
1321 total_size += 2UL * this->_internal_v8_isolate_size();
1322 for (const auto& msg : this->_impl_.v8_isolate_) {
1323 total_size +=
1324 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1325 }
1326
1327 // repeated .perfetto.protos.InternedString protolog_string_args = 36;
1328 total_size += 2UL * this->_internal_protolog_string_args_size();
1329 for (const auto& msg : this->_impl_.protolog_string_args_) {
1330 total_size +=
1331 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1332 }
1333
1334 // repeated .perfetto.protos.InternedString protolog_stacktrace = 37;
1335 total_size += 2UL * this->_internal_protolog_stacktrace_size();
1336 for (const auto& msg : this->_impl_.protolog_stacktrace_) {
1337 total_size +=
1338 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1339 }
1340
1341 // repeated .perfetto.protos.InternedString viewcapture_package_name = 38;
1342 total_size += 2UL * this->_internal_viewcapture_package_name_size();
1343 for (const auto& msg : this->_impl_.viewcapture_package_name_) {
1344 total_size +=
1345 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1346 }
1347
1348 // repeated .perfetto.protos.InternedString viewcapture_window_name = 39;
1349 total_size += 2UL * this->_internal_viewcapture_window_name_size();
1350 for (const auto& msg : this->_impl_.viewcapture_window_name_) {
1351 total_size +=
1352 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1353 }
1354
1355 // repeated .perfetto.protos.InternedString viewcapture_view_id = 40;
1356 total_size += 2UL * this->_internal_viewcapture_view_id_size();
1357 for (const auto& msg : this->_impl_.viewcapture_view_id_) {
1358 total_size +=
1359 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1360 }
1361
1362 // repeated .perfetto.protos.InternedString viewcapture_class_name = 41;
1363 total_size += 2UL * this->_internal_viewcapture_class_name_size();
1364 for (const auto& msg : this->_impl_.viewcapture_class_name_) {
1365 total_size +=
1366 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1367 }
1368
1369 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1370 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
1371 }
1372 int cached_size = ::_pbi::ToCachedSize(total_size);
1373 SetCachedSize(cached_size);
1374 return total_size;
1375 }
1376
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)1377 void InternedData::CheckTypeAndMergeFrom(
1378 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
1379 MergeFrom(*::_pbi::DownCast<const InternedData*>(
1380 &from));
1381 }
1382
MergeFrom(const InternedData & from)1383 void InternedData::MergeFrom(const InternedData& from) {
1384 InternedData* const _this = this;
1385 // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.InternedData)
1386 GOOGLE_DCHECK_NE(&from, _this);
1387 ::uint32_t cached_has_bits = 0;
1388 (void) cached_has_bits;
1389
1390 _this->_impl_.event_categories_.MergeFrom(from._impl_.event_categories_);
1391 _this->_impl_.event_names_.MergeFrom(from._impl_.event_names_);
1392 _this->_impl_.debug_annotation_names_.MergeFrom(from._impl_.debug_annotation_names_);
1393 _this->_impl_.source_locations_.MergeFrom(from._impl_.source_locations_);
1394 _this->_impl_.function_names_.MergeFrom(from._impl_.function_names_);
1395 _this->_impl_.frames_.MergeFrom(from._impl_.frames_);
1396 _this->_impl_.callstacks_.MergeFrom(from._impl_.callstacks_);
1397 _this->_impl_.build_ids_.MergeFrom(from._impl_.build_ids_);
1398 _this->_impl_.mapping_paths_.MergeFrom(from._impl_.mapping_paths_);
1399 _this->_impl_.source_paths_.MergeFrom(from._impl_.source_paths_);
1400 _this->_impl_.mappings_.MergeFrom(from._impl_.mappings_);
1401 _this->_impl_.log_message_body_.MergeFrom(from._impl_.log_message_body_);
1402 _this->_impl_.profiled_frame_symbols_.MergeFrom(from._impl_.profiled_frame_symbols_);
1403 _this->_impl_.vulkan_memory_keys_.MergeFrom(from._impl_.vulkan_memory_keys_);
1404 _this->_impl_.graphics_contexts_.MergeFrom(from._impl_.graphics_contexts_);
1405 _this->_impl_.gpu_specifications_.MergeFrom(from._impl_.gpu_specifications_);
1406 _this->_impl_.histogram_names_.MergeFrom(from._impl_.histogram_names_);
1407 _this->_impl_.kernel_symbols_.MergeFrom(from._impl_.kernel_symbols_);
1408 _this->_impl_.debug_annotation_value_type_names_.MergeFrom(from._impl_.debug_annotation_value_type_names_);
1409 _this->_impl_.unsymbolized_source_locations_.MergeFrom(from._impl_.unsymbolized_source_locations_);
1410 _this->_impl_.debug_annotation_string_values_.MergeFrom(from._impl_.debug_annotation_string_values_);
1411 _this->_impl_.packet_context_.MergeFrom(from._impl_.packet_context_);
1412 _this->_impl_.v8_js_function_name_.MergeFrom(from._impl_.v8_js_function_name_);
1413 _this->_impl_.v8_js_function_.MergeFrom(from._impl_.v8_js_function_);
1414 _this->_impl_.v8_js_script_.MergeFrom(from._impl_.v8_js_script_);
1415 _this->_impl_.v8_wasm_script_.MergeFrom(from._impl_.v8_wasm_script_);
1416 _this->_impl_.v8_isolate_.MergeFrom(from._impl_.v8_isolate_);
1417 _this->_impl_.protolog_string_args_.MergeFrom(from._impl_.protolog_string_args_);
1418 _this->_impl_.protolog_stacktrace_.MergeFrom(from._impl_.protolog_stacktrace_);
1419 _this->_impl_.viewcapture_package_name_.MergeFrom(from._impl_.viewcapture_package_name_);
1420 _this->_impl_.viewcapture_window_name_.MergeFrom(from._impl_.viewcapture_window_name_);
1421 _this->_impl_.viewcapture_view_id_.MergeFrom(from._impl_.viewcapture_view_id_);
1422 _this->_impl_.viewcapture_class_name_.MergeFrom(from._impl_.viewcapture_class_name_);
1423 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
1424 }
1425
CopyFrom(const InternedData & from)1426 void InternedData::CopyFrom(const InternedData& from) {
1427 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.InternedData)
1428 if (&from == this) return;
1429 Clear();
1430 MergeFrom(from);
1431 }
1432
IsInitialized() const1433 bool InternedData::IsInitialized() const {
1434 return true;
1435 }
1436
InternalSwap(InternedData * other)1437 void InternedData::InternalSwap(InternedData* other) {
1438 using std::swap;
1439 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1440 _impl_.event_categories_.InternalSwap(&other->_impl_.event_categories_);
1441 _impl_.event_names_.InternalSwap(&other->_impl_.event_names_);
1442 _impl_.debug_annotation_names_.InternalSwap(&other->_impl_.debug_annotation_names_);
1443 _impl_.source_locations_.InternalSwap(&other->_impl_.source_locations_);
1444 _impl_.function_names_.InternalSwap(&other->_impl_.function_names_);
1445 _impl_.frames_.InternalSwap(&other->_impl_.frames_);
1446 _impl_.callstacks_.InternalSwap(&other->_impl_.callstacks_);
1447 _impl_.build_ids_.InternalSwap(&other->_impl_.build_ids_);
1448 _impl_.mapping_paths_.InternalSwap(&other->_impl_.mapping_paths_);
1449 _impl_.source_paths_.InternalSwap(&other->_impl_.source_paths_);
1450 _impl_.mappings_.InternalSwap(&other->_impl_.mappings_);
1451 _impl_.log_message_body_.InternalSwap(&other->_impl_.log_message_body_);
1452 _impl_.profiled_frame_symbols_.InternalSwap(&other->_impl_.profiled_frame_symbols_);
1453 _impl_.vulkan_memory_keys_.InternalSwap(&other->_impl_.vulkan_memory_keys_);
1454 _impl_.graphics_contexts_.InternalSwap(&other->_impl_.graphics_contexts_);
1455 _impl_.gpu_specifications_.InternalSwap(&other->_impl_.gpu_specifications_);
1456 _impl_.histogram_names_.InternalSwap(&other->_impl_.histogram_names_);
1457 _impl_.kernel_symbols_.InternalSwap(&other->_impl_.kernel_symbols_);
1458 _impl_.debug_annotation_value_type_names_.InternalSwap(&other->_impl_.debug_annotation_value_type_names_);
1459 _impl_.unsymbolized_source_locations_.InternalSwap(&other->_impl_.unsymbolized_source_locations_);
1460 _impl_.debug_annotation_string_values_.InternalSwap(&other->_impl_.debug_annotation_string_values_);
1461 _impl_.packet_context_.InternalSwap(&other->_impl_.packet_context_);
1462 _impl_.v8_js_function_name_.InternalSwap(&other->_impl_.v8_js_function_name_);
1463 _impl_.v8_js_function_.InternalSwap(&other->_impl_.v8_js_function_);
1464 _impl_.v8_js_script_.InternalSwap(&other->_impl_.v8_js_script_);
1465 _impl_.v8_wasm_script_.InternalSwap(&other->_impl_.v8_wasm_script_);
1466 _impl_.v8_isolate_.InternalSwap(&other->_impl_.v8_isolate_);
1467 _impl_.protolog_string_args_.InternalSwap(&other->_impl_.protolog_string_args_);
1468 _impl_.protolog_stacktrace_.InternalSwap(&other->_impl_.protolog_stacktrace_);
1469 _impl_.viewcapture_package_name_.InternalSwap(&other->_impl_.viewcapture_package_name_);
1470 _impl_.viewcapture_window_name_.InternalSwap(&other->_impl_.viewcapture_window_name_);
1471 _impl_.viewcapture_view_id_.InternalSwap(&other->_impl_.viewcapture_view_id_);
1472 _impl_.viewcapture_class_name_.InternalSwap(&other->_impl_.viewcapture_class_name_);
1473 }
1474
GetTypeName() const1475 std::string InternedData::GetTypeName() const {
1476 return "perfetto.protos.InternedData";
1477 }
1478
1479
1480 // @@protoc_insertion_point(namespace_scope)
1481 } // namespace protos
1482 } // namespace perfetto
1483 PROTOBUF_NAMESPACE_OPEN
1484 template<> PROTOBUF_NOINLINE ::perfetto::protos::InternedData*
CreateMaybeMessage(Arena * arena)1485 Arena::CreateMaybeMessage< ::perfetto::protos::InternedData >(Arena* arena) {
1486 return Arena::CreateMessageInternal< ::perfetto::protos::InternedData >(arena);
1487 }
1488 PROTOBUF_NAMESPACE_CLOSE
1489
1490 // @@protoc_insertion_point(global_scope)
1491 #include <google/protobuf/port_undef.inc>
1492