1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: perf_data.proto
3
4 #include "perf_data.pb.h"
5
6 #include <algorithm>
7
8 #include <google/protobuf/io/coded_stream.h>
9 #include <google/protobuf/extension_set.h>
10 #include <google/protobuf/wire_format_lite.h>
11 #include <google/protobuf/io/zero_copy_stream_impl_lite.h>
12 // @@protoc_insertion_point(includes)
13 #include <google/protobuf/port_def.inc>
14
15 PROTOBUF_PRAGMA_INIT_SEG
16
17 namespace _pb = ::PROTOBUF_NAMESPACE_ID;
18 namespace _pbi = _pb::internal;
19
20 namespace metrics {
PerfDataProto_PerfEventAttr(::_pbi::ConstantInitialized)21 PROTOBUF_CONSTEXPR PerfDataProto_PerfEventAttr::PerfDataProto_PerfEventAttr(
22 ::_pbi::ConstantInitialized): _impl_{
23 /*decltype(_impl_._has_bits_)*/{}
24 , /*decltype(_impl_._cached_size_)*/{}
25 , /*decltype(_impl_.type_)*/0u
26 , /*decltype(_impl_.size_)*/0u
27 , /*decltype(_impl_.config_)*/uint64_t{0u}
28 , /*decltype(_impl_.sample_period_)*/uint64_t{0u}
29 , /*decltype(_impl_.sample_freq_)*/uint64_t{0u}
30 , /*decltype(_impl_.sample_type_)*/uint64_t{0u}
31 , /*decltype(_impl_.read_format_)*/uint64_t{0u}
32 , /*decltype(_impl_.disabled_)*/false
33 , /*decltype(_impl_.inherit_)*/false
34 , /*decltype(_impl_.pinned_)*/false
35 , /*decltype(_impl_.exclusive_)*/false
36 , /*decltype(_impl_.exclude_user_)*/false
37 , /*decltype(_impl_.exclude_kernel_)*/false
38 , /*decltype(_impl_.exclude_hv_)*/false
39 , /*decltype(_impl_.exclude_idle_)*/false
40 , /*decltype(_impl_.mmap_)*/false
41 , /*decltype(_impl_.comm_)*/false
42 , /*decltype(_impl_.freq_)*/false
43 , /*decltype(_impl_.inherit_stat_)*/false
44 , /*decltype(_impl_.enable_on_exec_)*/false
45 , /*decltype(_impl_.task_)*/false
46 , /*decltype(_impl_.watermark_)*/false
47 , /*decltype(_impl_.mmap_data_)*/false
48 , /*decltype(_impl_.precise_ip_)*/0u
49 , /*decltype(_impl_.sample_id_all_)*/false
50 , /*decltype(_impl_.exclude_host_)*/false
51 , /*decltype(_impl_.exclude_guest_)*/false
52 , /*decltype(_impl_.wakeup_events_)*/0u
53 , /*decltype(_impl_.wakeup_watermark_)*/0u
54 , /*decltype(_impl_.bp_addr_)*/uint64_t{0u}
55 , /*decltype(_impl_.config1_)*/uint64_t{0u}
56 , /*decltype(_impl_.bp_len_)*/uint64_t{0u}
57 , /*decltype(_impl_.config2_)*/uint64_t{0u}
58 , /*decltype(_impl_.branch_sample_type_)*/uint64_t{0u}
59 , /*decltype(_impl_.bp_type_)*/0u} {}
60 struct PerfDataProto_PerfEventAttrDefaultTypeInternal {
PerfDataProto_PerfEventAttrDefaultTypeInternalmetrics::PerfDataProto_PerfEventAttrDefaultTypeInternal61 PROTOBUF_CONSTEXPR PerfDataProto_PerfEventAttrDefaultTypeInternal()
62 : _instance(::_pbi::ConstantInitialized{}) {}
~PerfDataProto_PerfEventAttrDefaultTypeInternalmetrics::PerfDataProto_PerfEventAttrDefaultTypeInternal63 ~PerfDataProto_PerfEventAttrDefaultTypeInternal() {}
64 union {
65 PerfDataProto_PerfEventAttr _instance;
66 };
67 };
68 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PerfDataProto_PerfEventAttrDefaultTypeInternal _PerfDataProto_PerfEventAttr_default_instance_;
PerfDataProto_PerfFileAttr(::_pbi::ConstantInitialized)69 PROTOBUF_CONSTEXPR PerfDataProto_PerfFileAttr::PerfDataProto_PerfFileAttr(
70 ::_pbi::ConstantInitialized): _impl_{
71 /*decltype(_impl_._has_bits_)*/{}
72 , /*decltype(_impl_._cached_size_)*/{}
73 , /*decltype(_impl_.ids_)*/{}
74 , /*decltype(_impl_.attr_)*/nullptr} {}
75 struct PerfDataProto_PerfFileAttrDefaultTypeInternal {
PerfDataProto_PerfFileAttrDefaultTypeInternalmetrics::PerfDataProto_PerfFileAttrDefaultTypeInternal76 PROTOBUF_CONSTEXPR PerfDataProto_PerfFileAttrDefaultTypeInternal()
77 : _instance(::_pbi::ConstantInitialized{}) {}
~PerfDataProto_PerfFileAttrDefaultTypeInternalmetrics::PerfDataProto_PerfFileAttrDefaultTypeInternal78 ~PerfDataProto_PerfFileAttrDefaultTypeInternal() {}
79 union {
80 PerfDataProto_PerfFileAttr _instance;
81 };
82 };
83 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PerfDataProto_PerfFileAttrDefaultTypeInternal _PerfDataProto_PerfFileAttr_default_instance_;
PerfDataProto_PerfEventType(::_pbi::ConstantInitialized)84 PROTOBUF_CONSTEXPR PerfDataProto_PerfEventType::PerfDataProto_PerfEventType(
85 ::_pbi::ConstantInitialized): _impl_{
86 /*decltype(_impl_._has_bits_)*/{}
87 , /*decltype(_impl_._cached_size_)*/{}
88 , /*decltype(_impl_.id_)*/uint64_t{0u}
89 , /*decltype(_impl_.name_md5_prefix_)*/uint64_t{0u}} {}
90 struct PerfDataProto_PerfEventTypeDefaultTypeInternal {
PerfDataProto_PerfEventTypeDefaultTypeInternalmetrics::PerfDataProto_PerfEventTypeDefaultTypeInternal91 PROTOBUF_CONSTEXPR PerfDataProto_PerfEventTypeDefaultTypeInternal()
92 : _instance(::_pbi::ConstantInitialized{}) {}
~PerfDataProto_PerfEventTypeDefaultTypeInternalmetrics::PerfDataProto_PerfEventTypeDefaultTypeInternal93 ~PerfDataProto_PerfEventTypeDefaultTypeInternal() {}
94 union {
95 PerfDataProto_PerfEventType _instance;
96 };
97 };
98 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PerfDataProto_PerfEventTypeDefaultTypeInternal _PerfDataProto_PerfEventType_default_instance_;
PerfDataProto_SampleInfo(::_pbi::ConstantInitialized)99 PROTOBUF_CONSTEXPR PerfDataProto_SampleInfo::PerfDataProto_SampleInfo(
100 ::_pbi::ConstantInitialized): _impl_{
101 /*decltype(_impl_._has_bits_)*/{}
102 , /*decltype(_impl_._cached_size_)*/{}
103 , /*decltype(_impl_.pid_)*/0u
104 , /*decltype(_impl_.tid_)*/0u
105 , /*decltype(_impl_.sample_time_ns_)*/uint64_t{0u}
106 , /*decltype(_impl_.id_)*/uint64_t{0u}
107 , /*decltype(_impl_.cpu_)*/0u} {}
108 struct PerfDataProto_SampleInfoDefaultTypeInternal {
PerfDataProto_SampleInfoDefaultTypeInternalmetrics::PerfDataProto_SampleInfoDefaultTypeInternal109 PROTOBUF_CONSTEXPR PerfDataProto_SampleInfoDefaultTypeInternal()
110 : _instance(::_pbi::ConstantInitialized{}) {}
~PerfDataProto_SampleInfoDefaultTypeInternalmetrics::PerfDataProto_SampleInfoDefaultTypeInternal111 ~PerfDataProto_SampleInfoDefaultTypeInternal() {}
112 union {
113 PerfDataProto_SampleInfo _instance;
114 };
115 };
116 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PerfDataProto_SampleInfoDefaultTypeInternal _PerfDataProto_SampleInfo_default_instance_;
PerfDataProto_CommEvent(::_pbi::ConstantInitialized)117 PROTOBUF_CONSTEXPR PerfDataProto_CommEvent::PerfDataProto_CommEvent(
118 ::_pbi::ConstantInitialized): _impl_{
119 /*decltype(_impl_._has_bits_)*/{}
120 , /*decltype(_impl_._cached_size_)*/{}
121 , /*decltype(_impl_.sample_info_)*/nullptr
122 , /*decltype(_impl_.pid_)*/0u
123 , /*decltype(_impl_.tid_)*/0u
124 , /*decltype(_impl_.comm_md5_prefix_)*/uint64_t{0u}
125 , /*decltype(_impl_.sample_time_)*/uint64_t{0u}} {}
126 struct PerfDataProto_CommEventDefaultTypeInternal {
PerfDataProto_CommEventDefaultTypeInternalmetrics::PerfDataProto_CommEventDefaultTypeInternal127 PROTOBUF_CONSTEXPR PerfDataProto_CommEventDefaultTypeInternal()
128 : _instance(::_pbi::ConstantInitialized{}) {}
~PerfDataProto_CommEventDefaultTypeInternalmetrics::PerfDataProto_CommEventDefaultTypeInternal129 ~PerfDataProto_CommEventDefaultTypeInternal() {}
130 union {
131 PerfDataProto_CommEvent _instance;
132 };
133 };
134 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PerfDataProto_CommEventDefaultTypeInternal _PerfDataProto_CommEvent_default_instance_;
PerfDataProto_MMapEvent(::_pbi::ConstantInitialized)135 PROTOBUF_CONSTEXPR PerfDataProto_MMapEvent::PerfDataProto_MMapEvent(
136 ::_pbi::ConstantInitialized): _impl_{
137 /*decltype(_impl_._has_bits_)*/{}
138 , /*decltype(_impl_._cached_size_)*/{}
139 , /*decltype(_impl_.sample_info_)*/nullptr
140 , /*decltype(_impl_.pid_)*/0u
141 , /*decltype(_impl_.tid_)*/0u
142 , /*decltype(_impl_.start_)*/uint64_t{0u}
143 , /*decltype(_impl_.len_)*/uint64_t{0u}
144 , /*decltype(_impl_.pgoff_)*/uint64_t{0u}
145 , /*decltype(_impl_.filename_md5_prefix_)*/uint64_t{0u}
146 , /*decltype(_impl_.root_path_md5_prefix_)*/uint64_t{0u}} {}
147 struct PerfDataProto_MMapEventDefaultTypeInternal {
PerfDataProto_MMapEventDefaultTypeInternalmetrics::PerfDataProto_MMapEventDefaultTypeInternal148 PROTOBUF_CONSTEXPR PerfDataProto_MMapEventDefaultTypeInternal()
149 : _instance(::_pbi::ConstantInitialized{}) {}
~PerfDataProto_MMapEventDefaultTypeInternalmetrics::PerfDataProto_MMapEventDefaultTypeInternal150 ~PerfDataProto_MMapEventDefaultTypeInternal() {}
151 union {
152 PerfDataProto_MMapEvent _instance;
153 };
154 };
155 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PerfDataProto_MMapEventDefaultTypeInternal _PerfDataProto_MMapEvent_default_instance_;
PerfDataProto_LostEvent(::_pbi::ConstantInitialized)156 PROTOBUF_CONSTEXPR PerfDataProto_LostEvent::PerfDataProto_LostEvent(
157 ::_pbi::ConstantInitialized): _impl_{
158 /*decltype(_impl_._has_bits_)*/{}
159 , /*decltype(_impl_._cached_size_)*/{}
160 , /*decltype(_impl_.sample_info_)*/nullptr
161 , /*decltype(_impl_.id_)*/uint64_t{0u}
162 , /*decltype(_impl_.lost_)*/uint64_t{0u}} {}
163 struct PerfDataProto_LostEventDefaultTypeInternal {
PerfDataProto_LostEventDefaultTypeInternalmetrics::PerfDataProto_LostEventDefaultTypeInternal164 PROTOBUF_CONSTEXPR PerfDataProto_LostEventDefaultTypeInternal()
165 : _instance(::_pbi::ConstantInitialized{}) {}
~PerfDataProto_LostEventDefaultTypeInternalmetrics::PerfDataProto_LostEventDefaultTypeInternal166 ~PerfDataProto_LostEventDefaultTypeInternal() {}
167 union {
168 PerfDataProto_LostEvent _instance;
169 };
170 };
171 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PerfDataProto_LostEventDefaultTypeInternal _PerfDataProto_LostEvent_default_instance_;
PerfDataProto_ThrottleEvent(::_pbi::ConstantInitialized)172 PROTOBUF_CONSTEXPR PerfDataProto_ThrottleEvent::PerfDataProto_ThrottleEvent(
173 ::_pbi::ConstantInitialized): _impl_{
174 /*decltype(_impl_._has_bits_)*/{}
175 , /*decltype(_impl_._cached_size_)*/{}
176 , /*decltype(_impl_.sample_info_)*/nullptr
177 , /*decltype(_impl_.time_ns_)*/uint64_t{0u}
178 , /*decltype(_impl_.id_)*/uint64_t{0u}
179 , /*decltype(_impl_.stream_id_)*/uint64_t{0u}} {}
180 struct PerfDataProto_ThrottleEventDefaultTypeInternal {
PerfDataProto_ThrottleEventDefaultTypeInternalmetrics::PerfDataProto_ThrottleEventDefaultTypeInternal181 PROTOBUF_CONSTEXPR PerfDataProto_ThrottleEventDefaultTypeInternal()
182 : _instance(::_pbi::ConstantInitialized{}) {}
~PerfDataProto_ThrottleEventDefaultTypeInternalmetrics::PerfDataProto_ThrottleEventDefaultTypeInternal183 ~PerfDataProto_ThrottleEventDefaultTypeInternal() {}
184 union {
185 PerfDataProto_ThrottleEvent _instance;
186 };
187 };
188 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PerfDataProto_ThrottleEventDefaultTypeInternal _PerfDataProto_ThrottleEvent_default_instance_;
PerfDataProto_BranchStackEntry(::_pbi::ConstantInitialized)189 PROTOBUF_CONSTEXPR PerfDataProto_BranchStackEntry::PerfDataProto_BranchStackEntry(
190 ::_pbi::ConstantInitialized): _impl_{
191 /*decltype(_impl_._has_bits_)*/{}
192 , /*decltype(_impl_._cached_size_)*/{}
193 , /*decltype(_impl_.from_ip_)*/uint64_t{0u}
194 , /*decltype(_impl_.to_ip_)*/uint64_t{0u}
195 , /*decltype(_impl_.mispredicted_)*/false
196 , /*decltype(_impl_.predicted_)*/false
197 , /*decltype(_impl_.in_transaction_)*/false
198 , /*decltype(_impl_.abort_)*/false
199 , /*decltype(_impl_.cycles_)*/0u} {}
200 struct PerfDataProto_BranchStackEntryDefaultTypeInternal {
PerfDataProto_BranchStackEntryDefaultTypeInternalmetrics::PerfDataProto_BranchStackEntryDefaultTypeInternal201 PROTOBUF_CONSTEXPR PerfDataProto_BranchStackEntryDefaultTypeInternal()
202 : _instance(::_pbi::ConstantInitialized{}) {}
~PerfDataProto_BranchStackEntryDefaultTypeInternalmetrics::PerfDataProto_BranchStackEntryDefaultTypeInternal203 ~PerfDataProto_BranchStackEntryDefaultTypeInternal() {}
204 union {
205 PerfDataProto_BranchStackEntry _instance;
206 };
207 };
208 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PerfDataProto_BranchStackEntryDefaultTypeInternal _PerfDataProto_BranchStackEntry_default_instance_;
PerfDataProto_SampleEvent(::_pbi::ConstantInitialized)209 PROTOBUF_CONSTEXPR PerfDataProto_SampleEvent::PerfDataProto_SampleEvent(
210 ::_pbi::ConstantInitialized): _impl_{
211 /*decltype(_impl_._has_bits_)*/{}
212 , /*decltype(_impl_._cached_size_)*/{}
213 , /*decltype(_impl_.callchain_)*/{}
214 , /*decltype(_impl_.branch_stack_)*/{}
215 , /*decltype(_impl_.ip_)*/uint64_t{0u}
216 , /*decltype(_impl_.pid_)*/0u
217 , /*decltype(_impl_.tid_)*/0u
218 , /*decltype(_impl_.sample_time_ns_)*/uint64_t{0u}
219 , /*decltype(_impl_.addr_)*/uint64_t{0u}
220 , /*decltype(_impl_.id_)*/uint64_t{0u}
221 , /*decltype(_impl_.stream_id_)*/uint64_t{0u}
222 , /*decltype(_impl_.period_)*/uint64_t{0u}
223 , /*decltype(_impl_.cpu_)*/0u
224 , /*decltype(_impl_.raw_size_)*/0u
225 , /*decltype(_impl_.weight_)*/uint64_t{0u}
226 , /*decltype(_impl_.data_src_)*/uint64_t{0u}
227 , /*decltype(_impl_.transaction_)*/uint64_t{0u}} {}
228 struct PerfDataProto_SampleEventDefaultTypeInternal {
PerfDataProto_SampleEventDefaultTypeInternalmetrics::PerfDataProto_SampleEventDefaultTypeInternal229 PROTOBUF_CONSTEXPR PerfDataProto_SampleEventDefaultTypeInternal()
230 : _instance(::_pbi::ConstantInitialized{}) {}
~PerfDataProto_SampleEventDefaultTypeInternalmetrics::PerfDataProto_SampleEventDefaultTypeInternal231 ~PerfDataProto_SampleEventDefaultTypeInternal() {}
232 union {
233 PerfDataProto_SampleEvent _instance;
234 };
235 };
236 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PerfDataProto_SampleEventDefaultTypeInternal _PerfDataProto_SampleEvent_default_instance_;
PerfDataProto_ForkEvent(::_pbi::ConstantInitialized)237 PROTOBUF_CONSTEXPR PerfDataProto_ForkEvent::PerfDataProto_ForkEvent(
238 ::_pbi::ConstantInitialized): _impl_{
239 /*decltype(_impl_._has_bits_)*/{}
240 , /*decltype(_impl_._cached_size_)*/{}
241 , /*decltype(_impl_.sample_info_)*/nullptr
242 , /*decltype(_impl_.pid_)*/0u
243 , /*decltype(_impl_.ppid_)*/0u
244 , /*decltype(_impl_.tid_)*/0u
245 , /*decltype(_impl_.ptid_)*/0u
246 , /*decltype(_impl_.fork_time_ns_)*/uint64_t{0u}} {}
247 struct PerfDataProto_ForkEventDefaultTypeInternal {
PerfDataProto_ForkEventDefaultTypeInternalmetrics::PerfDataProto_ForkEventDefaultTypeInternal248 PROTOBUF_CONSTEXPR PerfDataProto_ForkEventDefaultTypeInternal()
249 : _instance(::_pbi::ConstantInitialized{}) {}
~PerfDataProto_ForkEventDefaultTypeInternalmetrics::PerfDataProto_ForkEventDefaultTypeInternal250 ~PerfDataProto_ForkEventDefaultTypeInternal() {}
251 union {
252 PerfDataProto_ForkEvent _instance;
253 };
254 };
255 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PerfDataProto_ForkEventDefaultTypeInternal _PerfDataProto_ForkEvent_default_instance_;
PerfDataProto_EventHeader(::_pbi::ConstantInitialized)256 PROTOBUF_CONSTEXPR PerfDataProto_EventHeader::PerfDataProto_EventHeader(
257 ::_pbi::ConstantInitialized): _impl_{
258 /*decltype(_impl_._has_bits_)*/{}
259 , /*decltype(_impl_._cached_size_)*/{}
260 , /*decltype(_impl_.type_)*/0u
261 , /*decltype(_impl_.misc_)*/0u
262 , /*decltype(_impl_.size_)*/0u} {}
263 struct PerfDataProto_EventHeaderDefaultTypeInternal {
PerfDataProto_EventHeaderDefaultTypeInternalmetrics::PerfDataProto_EventHeaderDefaultTypeInternal264 PROTOBUF_CONSTEXPR PerfDataProto_EventHeaderDefaultTypeInternal()
265 : _instance(::_pbi::ConstantInitialized{}) {}
~PerfDataProto_EventHeaderDefaultTypeInternalmetrics::PerfDataProto_EventHeaderDefaultTypeInternal266 ~PerfDataProto_EventHeaderDefaultTypeInternal() {}
267 union {
268 PerfDataProto_EventHeader _instance;
269 };
270 };
271 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PerfDataProto_EventHeaderDefaultTypeInternal _PerfDataProto_EventHeader_default_instance_;
PerfDataProto_PerfEvent(::_pbi::ConstantInitialized)272 PROTOBUF_CONSTEXPR PerfDataProto_PerfEvent::PerfDataProto_PerfEvent(
273 ::_pbi::ConstantInitialized): _impl_{
274 /*decltype(_impl_._has_bits_)*/{}
275 , /*decltype(_impl_._cached_size_)*/{}
276 , /*decltype(_impl_.header_)*/nullptr
277 , /*decltype(_impl_.timestamp_)*/uint64_t{0u}
278 , /*decltype(_impl_.event_type_)*/{}
279 , /*decltype(_impl_._oneof_case_)*/{}} {}
280 struct PerfDataProto_PerfEventDefaultTypeInternal {
PerfDataProto_PerfEventDefaultTypeInternalmetrics::PerfDataProto_PerfEventDefaultTypeInternal281 PROTOBUF_CONSTEXPR PerfDataProto_PerfEventDefaultTypeInternal()
282 : _instance(::_pbi::ConstantInitialized{}) {}
~PerfDataProto_PerfEventDefaultTypeInternalmetrics::PerfDataProto_PerfEventDefaultTypeInternal283 ~PerfDataProto_PerfEventDefaultTypeInternal() {}
284 union {
285 PerfDataProto_PerfEvent _instance;
286 };
287 };
288 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PerfDataProto_PerfEventDefaultTypeInternal _PerfDataProto_PerfEvent_default_instance_;
PerfDataProto_PerfEventStats(::_pbi::ConstantInitialized)289 PROTOBUF_CONSTEXPR PerfDataProto_PerfEventStats::PerfDataProto_PerfEventStats(
290 ::_pbi::ConstantInitialized): _impl_{
291 /*decltype(_impl_._has_bits_)*/{}
292 , /*decltype(_impl_._cached_size_)*/{}
293 , /*decltype(_impl_.num_events_read_)*/0u
294 , /*decltype(_impl_.num_sample_events_)*/0u
295 , /*decltype(_impl_.num_mmap_events_)*/0u
296 , /*decltype(_impl_.num_fork_events_)*/0u
297 , /*decltype(_impl_.num_exit_events_)*/0u
298 , /*decltype(_impl_.num_sample_events_mapped_)*/0u
299 , /*decltype(_impl_.did_remap_)*/false} {}
300 struct PerfDataProto_PerfEventStatsDefaultTypeInternal {
PerfDataProto_PerfEventStatsDefaultTypeInternalmetrics::PerfDataProto_PerfEventStatsDefaultTypeInternal301 PROTOBUF_CONSTEXPR PerfDataProto_PerfEventStatsDefaultTypeInternal()
302 : _instance(::_pbi::ConstantInitialized{}) {}
~PerfDataProto_PerfEventStatsDefaultTypeInternalmetrics::PerfDataProto_PerfEventStatsDefaultTypeInternal303 ~PerfDataProto_PerfEventStatsDefaultTypeInternal() {}
304 union {
305 PerfDataProto_PerfEventStats _instance;
306 };
307 };
308 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PerfDataProto_PerfEventStatsDefaultTypeInternal _PerfDataProto_PerfEventStats_default_instance_;
PerfDataProto_PerfBuildID(::_pbi::ConstantInitialized)309 PROTOBUF_CONSTEXPR PerfDataProto_PerfBuildID::PerfDataProto_PerfBuildID(
310 ::_pbi::ConstantInitialized): _impl_{
311 /*decltype(_impl_._has_bits_)*/{}
312 , /*decltype(_impl_._cached_size_)*/{}
313 , /*decltype(_impl_.build_id_hash_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
314 , /*decltype(_impl_.misc_)*/0u
315 , /*decltype(_impl_.pid_)*/0u
316 , /*decltype(_impl_.filename_md5_prefix_)*/uint64_t{0u}} {}
317 struct PerfDataProto_PerfBuildIDDefaultTypeInternal {
PerfDataProto_PerfBuildIDDefaultTypeInternalmetrics::PerfDataProto_PerfBuildIDDefaultTypeInternal318 PROTOBUF_CONSTEXPR PerfDataProto_PerfBuildIDDefaultTypeInternal()
319 : _instance(::_pbi::ConstantInitialized{}) {}
~PerfDataProto_PerfBuildIDDefaultTypeInternalmetrics::PerfDataProto_PerfBuildIDDefaultTypeInternal320 ~PerfDataProto_PerfBuildIDDefaultTypeInternal() {}
321 union {
322 PerfDataProto_PerfBuildID _instance;
323 };
324 };
325 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PerfDataProto_PerfBuildIDDefaultTypeInternal _PerfDataProto_PerfBuildID_default_instance_;
PerfDataProto_PerfPMUMappingsMetadata(::_pbi::ConstantInitialized)326 PROTOBUF_CONSTEXPR PerfDataProto_PerfPMUMappingsMetadata::PerfDataProto_PerfPMUMappingsMetadata(
327 ::_pbi::ConstantInitialized): _impl_{
328 /*decltype(_impl_._has_bits_)*/{}
329 , /*decltype(_impl_._cached_size_)*/{}
330 , /*decltype(_impl_.name_md5_prefix_)*/uint64_t{0u}
331 , /*decltype(_impl_.type_)*/0u} {}
332 struct PerfDataProto_PerfPMUMappingsMetadataDefaultTypeInternal {
PerfDataProto_PerfPMUMappingsMetadataDefaultTypeInternalmetrics::PerfDataProto_PerfPMUMappingsMetadataDefaultTypeInternal333 PROTOBUF_CONSTEXPR PerfDataProto_PerfPMUMappingsMetadataDefaultTypeInternal()
334 : _instance(::_pbi::ConstantInitialized{}) {}
~PerfDataProto_PerfPMUMappingsMetadataDefaultTypeInternalmetrics::PerfDataProto_PerfPMUMappingsMetadataDefaultTypeInternal335 ~PerfDataProto_PerfPMUMappingsMetadataDefaultTypeInternal() {}
336 union {
337 PerfDataProto_PerfPMUMappingsMetadata _instance;
338 };
339 };
340 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PerfDataProto_PerfPMUMappingsMetadataDefaultTypeInternal _PerfDataProto_PerfPMUMappingsMetadata_default_instance_;
PerfDataProto_PerfHybridTopologyMetadata(::_pbi::ConstantInitialized)341 PROTOBUF_CONSTEXPR PerfDataProto_PerfHybridTopologyMetadata::PerfDataProto_PerfHybridTopologyMetadata(
342 ::_pbi::ConstantInitialized): _impl_{
343 /*decltype(_impl_._has_bits_)*/{}
344 , /*decltype(_impl_._cached_size_)*/{}
345 , /*decltype(_impl_.cpu_list_)*/{}
346 , /*decltype(_impl_._cpu_list_cached_byte_size_)*/{0}
347 , /*decltype(_impl_.pmu_name_md5_prefix_)*/uint64_t{0u}} {}
348 struct PerfDataProto_PerfHybridTopologyMetadataDefaultTypeInternal {
PerfDataProto_PerfHybridTopologyMetadataDefaultTypeInternalmetrics::PerfDataProto_PerfHybridTopologyMetadataDefaultTypeInternal349 PROTOBUF_CONSTEXPR PerfDataProto_PerfHybridTopologyMetadataDefaultTypeInternal()
350 : _instance(::_pbi::ConstantInitialized{}) {}
~PerfDataProto_PerfHybridTopologyMetadataDefaultTypeInternalmetrics::PerfDataProto_PerfHybridTopologyMetadataDefaultTypeInternal351 ~PerfDataProto_PerfHybridTopologyMetadataDefaultTypeInternal() {}
352 union {
353 PerfDataProto_PerfHybridTopologyMetadata _instance;
354 };
355 };
356 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PerfDataProto_PerfHybridTopologyMetadataDefaultTypeInternal _PerfDataProto_PerfHybridTopologyMetadata_default_instance_;
PerfDataProto_StringMetadata_StringAndMd5sumPrefix(::_pbi::ConstantInitialized)357 PROTOBUF_CONSTEXPR PerfDataProto_StringMetadata_StringAndMd5sumPrefix::PerfDataProto_StringMetadata_StringAndMd5sumPrefix(
358 ::_pbi::ConstantInitialized): _impl_{
359 /*decltype(_impl_._has_bits_)*/{}
360 , /*decltype(_impl_._cached_size_)*/{}
361 , /*decltype(_impl_.value_md5_prefix_)*/uint64_t{0u}} {}
362 struct PerfDataProto_StringMetadata_StringAndMd5sumPrefixDefaultTypeInternal {
PerfDataProto_StringMetadata_StringAndMd5sumPrefixDefaultTypeInternalmetrics::PerfDataProto_StringMetadata_StringAndMd5sumPrefixDefaultTypeInternal363 PROTOBUF_CONSTEXPR PerfDataProto_StringMetadata_StringAndMd5sumPrefixDefaultTypeInternal()
364 : _instance(::_pbi::ConstantInitialized{}) {}
~PerfDataProto_StringMetadata_StringAndMd5sumPrefixDefaultTypeInternalmetrics::PerfDataProto_StringMetadata_StringAndMd5sumPrefixDefaultTypeInternal365 ~PerfDataProto_StringMetadata_StringAndMd5sumPrefixDefaultTypeInternal() {}
366 union {
367 PerfDataProto_StringMetadata_StringAndMd5sumPrefix _instance;
368 };
369 };
370 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PerfDataProto_StringMetadata_StringAndMd5sumPrefixDefaultTypeInternal _PerfDataProto_StringMetadata_StringAndMd5sumPrefix_default_instance_;
PerfDataProto_StringMetadata(::_pbi::ConstantInitialized)371 PROTOBUF_CONSTEXPR PerfDataProto_StringMetadata::PerfDataProto_StringMetadata(
372 ::_pbi::ConstantInitialized): _impl_{
373 /*decltype(_impl_._has_bits_)*/{}
374 , /*decltype(_impl_._cached_size_)*/{}
375 , /*decltype(_impl_.perf_command_line_whole_)*/nullptr} {}
376 struct PerfDataProto_StringMetadataDefaultTypeInternal {
PerfDataProto_StringMetadataDefaultTypeInternalmetrics::PerfDataProto_StringMetadataDefaultTypeInternal377 PROTOBUF_CONSTEXPR PerfDataProto_StringMetadataDefaultTypeInternal()
378 : _instance(::_pbi::ConstantInitialized{}) {}
~PerfDataProto_StringMetadataDefaultTypeInternalmetrics::PerfDataProto_StringMetadataDefaultTypeInternal379 ~PerfDataProto_StringMetadataDefaultTypeInternal() {}
380 union {
381 PerfDataProto_StringMetadata _instance;
382 };
383 };
384 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PerfDataProto_StringMetadataDefaultTypeInternal _PerfDataProto_StringMetadata_default_instance_;
PerfDataProto(::_pbi::ConstantInitialized)385 PROTOBUF_CONSTEXPR PerfDataProto::PerfDataProto(
386 ::_pbi::ConstantInitialized): _impl_{
387 /*decltype(_impl_._has_bits_)*/{}
388 , /*decltype(_impl_._cached_size_)*/{}
389 , /*decltype(_impl_.file_attrs_)*/{}
390 , /*decltype(_impl_.events_)*/{}
391 , /*decltype(_impl_.build_ids_)*/{}
392 , /*decltype(_impl_.event_types_)*/{}
393 , /*decltype(_impl_.pmu_mappings_)*/{}
394 , /*decltype(_impl_.hybrid_topology_)*/{}
395 , /*decltype(_impl_.stats_)*/nullptr
396 , /*decltype(_impl_.string_metadata_)*/nullptr
397 , /*decltype(_impl_.timestamp_sec_)*/uint64_t{0u}} {}
398 struct PerfDataProtoDefaultTypeInternal {
PerfDataProtoDefaultTypeInternalmetrics::PerfDataProtoDefaultTypeInternal399 PROTOBUF_CONSTEXPR PerfDataProtoDefaultTypeInternal()
400 : _instance(::_pbi::ConstantInitialized{}) {}
~PerfDataProtoDefaultTypeInternalmetrics::PerfDataProtoDefaultTypeInternal401 ~PerfDataProtoDefaultTypeInternal() {}
402 union {
403 PerfDataProto _instance;
404 };
405 };
406 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PerfDataProtoDefaultTypeInternal _PerfDataProto_default_instance_;
407 } // namespace metrics
408 namespace metrics {
409
410 // ===================================================================
411
412 class PerfDataProto_PerfEventAttr::_Internal {
413 public:
414 using HasBits = decltype(std::declval<PerfDataProto_PerfEventAttr>()._impl_._has_bits_);
set_has_type(HasBits * has_bits)415 static void set_has_type(HasBits* has_bits) {
416 (*has_bits)[0] |= 1u;
417 }
set_has_size(HasBits * has_bits)418 static void set_has_size(HasBits* has_bits) {
419 (*has_bits)[0] |= 2u;
420 }
set_has_config(HasBits * has_bits)421 static void set_has_config(HasBits* has_bits) {
422 (*has_bits)[0] |= 4u;
423 }
set_has_sample_period(HasBits * has_bits)424 static void set_has_sample_period(HasBits* has_bits) {
425 (*has_bits)[0] |= 8u;
426 }
set_has_sample_freq(HasBits * has_bits)427 static void set_has_sample_freq(HasBits* has_bits) {
428 (*has_bits)[0] |= 16u;
429 }
set_has_sample_type(HasBits * has_bits)430 static void set_has_sample_type(HasBits* has_bits) {
431 (*has_bits)[0] |= 32u;
432 }
set_has_read_format(HasBits * has_bits)433 static void set_has_read_format(HasBits* has_bits) {
434 (*has_bits)[0] |= 64u;
435 }
set_has_disabled(HasBits * has_bits)436 static void set_has_disabled(HasBits* has_bits) {
437 (*has_bits)[0] |= 128u;
438 }
set_has_inherit(HasBits * has_bits)439 static void set_has_inherit(HasBits* has_bits) {
440 (*has_bits)[0] |= 256u;
441 }
set_has_pinned(HasBits * has_bits)442 static void set_has_pinned(HasBits* has_bits) {
443 (*has_bits)[0] |= 512u;
444 }
set_has_exclusive(HasBits * has_bits)445 static void set_has_exclusive(HasBits* has_bits) {
446 (*has_bits)[0] |= 1024u;
447 }
set_has_exclude_user(HasBits * has_bits)448 static void set_has_exclude_user(HasBits* has_bits) {
449 (*has_bits)[0] |= 2048u;
450 }
set_has_exclude_kernel(HasBits * has_bits)451 static void set_has_exclude_kernel(HasBits* has_bits) {
452 (*has_bits)[0] |= 4096u;
453 }
set_has_exclude_hv(HasBits * has_bits)454 static void set_has_exclude_hv(HasBits* has_bits) {
455 (*has_bits)[0] |= 8192u;
456 }
set_has_exclude_idle(HasBits * has_bits)457 static void set_has_exclude_idle(HasBits* has_bits) {
458 (*has_bits)[0] |= 16384u;
459 }
set_has_mmap(HasBits * has_bits)460 static void set_has_mmap(HasBits* has_bits) {
461 (*has_bits)[0] |= 32768u;
462 }
set_has_comm(HasBits * has_bits)463 static void set_has_comm(HasBits* has_bits) {
464 (*has_bits)[0] |= 65536u;
465 }
set_has_freq(HasBits * has_bits)466 static void set_has_freq(HasBits* has_bits) {
467 (*has_bits)[0] |= 131072u;
468 }
set_has_inherit_stat(HasBits * has_bits)469 static void set_has_inherit_stat(HasBits* has_bits) {
470 (*has_bits)[0] |= 262144u;
471 }
set_has_enable_on_exec(HasBits * has_bits)472 static void set_has_enable_on_exec(HasBits* has_bits) {
473 (*has_bits)[0] |= 524288u;
474 }
set_has_task(HasBits * has_bits)475 static void set_has_task(HasBits* has_bits) {
476 (*has_bits)[0] |= 1048576u;
477 }
set_has_watermark(HasBits * has_bits)478 static void set_has_watermark(HasBits* has_bits) {
479 (*has_bits)[0] |= 2097152u;
480 }
set_has_precise_ip(HasBits * has_bits)481 static void set_has_precise_ip(HasBits* has_bits) {
482 (*has_bits)[0] |= 8388608u;
483 }
set_has_mmap_data(HasBits * has_bits)484 static void set_has_mmap_data(HasBits* has_bits) {
485 (*has_bits)[0] |= 4194304u;
486 }
set_has_sample_id_all(HasBits * has_bits)487 static void set_has_sample_id_all(HasBits* has_bits) {
488 (*has_bits)[0] |= 16777216u;
489 }
set_has_exclude_host(HasBits * has_bits)490 static void set_has_exclude_host(HasBits* has_bits) {
491 (*has_bits)[0] |= 33554432u;
492 }
set_has_exclude_guest(HasBits * has_bits)493 static void set_has_exclude_guest(HasBits* has_bits) {
494 (*has_bits)[0] |= 67108864u;
495 }
set_has_wakeup_events(HasBits * has_bits)496 static void set_has_wakeup_events(HasBits* has_bits) {
497 (*has_bits)[0] |= 134217728u;
498 }
set_has_wakeup_watermark(HasBits * has_bits)499 static void set_has_wakeup_watermark(HasBits* has_bits) {
500 (*has_bits)[0] |= 268435456u;
501 }
set_has_bp_type(HasBits * has_bits)502 static void set_has_bp_type(HasBits* has_bits) {
503 (*has_bits)[1] |= 4u;
504 }
set_has_bp_addr(HasBits * has_bits)505 static void set_has_bp_addr(HasBits* has_bits) {
506 (*has_bits)[0] |= 536870912u;
507 }
set_has_config1(HasBits * has_bits)508 static void set_has_config1(HasBits* has_bits) {
509 (*has_bits)[0] |= 1073741824u;
510 }
set_has_bp_len(HasBits * has_bits)511 static void set_has_bp_len(HasBits* has_bits) {
512 (*has_bits)[0] |= 2147483648u;
513 }
set_has_config2(HasBits * has_bits)514 static void set_has_config2(HasBits* has_bits) {
515 (*has_bits)[1] |= 1u;
516 }
set_has_branch_sample_type(HasBits * has_bits)517 static void set_has_branch_sample_type(HasBits* has_bits) {
518 (*has_bits)[1] |= 2u;
519 }
520 };
521
PerfDataProto_PerfEventAttr(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)522 PerfDataProto_PerfEventAttr::PerfDataProto_PerfEventAttr(::PROTOBUF_NAMESPACE_ID::Arena* arena,
523 bool is_message_owned)
524 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
525 SharedCtor(arena, is_message_owned);
526 // @@protoc_insertion_point(arena_constructor:metrics.PerfDataProto.PerfEventAttr)
527 }
PerfDataProto_PerfEventAttr(const PerfDataProto_PerfEventAttr & from)528 PerfDataProto_PerfEventAttr::PerfDataProto_PerfEventAttr(const PerfDataProto_PerfEventAttr& from)
529 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
530 PerfDataProto_PerfEventAttr* const _this = this; (void)_this;
531 new (&_impl_) Impl_{
532 decltype(_impl_._has_bits_){from._impl_._has_bits_}
533 , /*decltype(_impl_._cached_size_)*/{}
534 , decltype(_impl_.type_){}
535 , decltype(_impl_.size_){}
536 , decltype(_impl_.config_){}
537 , decltype(_impl_.sample_period_){}
538 , decltype(_impl_.sample_freq_){}
539 , decltype(_impl_.sample_type_){}
540 , decltype(_impl_.read_format_){}
541 , decltype(_impl_.disabled_){}
542 , decltype(_impl_.inherit_){}
543 , decltype(_impl_.pinned_){}
544 , decltype(_impl_.exclusive_){}
545 , decltype(_impl_.exclude_user_){}
546 , decltype(_impl_.exclude_kernel_){}
547 , decltype(_impl_.exclude_hv_){}
548 , decltype(_impl_.exclude_idle_){}
549 , decltype(_impl_.mmap_){}
550 , decltype(_impl_.comm_){}
551 , decltype(_impl_.freq_){}
552 , decltype(_impl_.inherit_stat_){}
553 , decltype(_impl_.enable_on_exec_){}
554 , decltype(_impl_.task_){}
555 , decltype(_impl_.watermark_){}
556 , decltype(_impl_.mmap_data_){}
557 , decltype(_impl_.precise_ip_){}
558 , decltype(_impl_.sample_id_all_){}
559 , decltype(_impl_.exclude_host_){}
560 , decltype(_impl_.exclude_guest_){}
561 , decltype(_impl_.wakeup_events_){}
562 , decltype(_impl_.wakeup_watermark_){}
563 , decltype(_impl_.bp_addr_){}
564 , decltype(_impl_.config1_){}
565 , decltype(_impl_.bp_len_){}
566 , decltype(_impl_.config2_){}
567 , decltype(_impl_.branch_sample_type_){}
568 , decltype(_impl_.bp_type_){}};
569
570 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
571 ::memcpy(&_impl_.type_, &from._impl_.type_,
572 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.bp_type_) -
573 reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.bp_type_));
574 // @@protoc_insertion_point(copy_constructor:metrics.PerfDataProto.PerfEventAttr)
575 }
576
SharedCtor(::_pb::Arena * arena,bool is_message_owned)577 inline void PerfDataProto_PerfEventAttr::SharedCtor(
578 ::_pb::Arena* arena, bool is_message_owned) {
579 (void)arena;
580 (void)is_message_owned;
581 new (&_impl_) Impl_{
582 decltype(_impl_._has_bits_){}
583 , /*decltype(_impl_._cached_size_)*/{}
584 , decltype(_impl_.type_){0u}
585 , decltype(_impl_.size_){0u}
586 , decltype(_impl_.config_){uint64_t{0u}}
587 , decltype(_impl_.sample_period_){uint64_t{0u}}
588 , decltype(_impl_.sample_freq_){uint64_t{0u}}
589 , decltype(_impl_.sample_type_){uint64_t{0u}}
590 , decltype(_impl_.read_format_){uint64_t{0u}}
591 , decltype(_impl_.disabled_){false}
592 , decltype(_impl_.inherit_){false}
593 , decltype(_impl_.pinned_){false}
594 , decltype(_impl_.exclusive_){false}
595 , decltype(_impl_.exclude_user_){false}
596 , decltype(_impl_.exclude_kernel_){false}
597 , decltype(_impl_.exclude_hv_){false}
598 , decltype(_impl_.exclude_idle_){false}
599 , decltype(_impl_.mmap_){false}
600 , decltype(_impl_.comm_){false}
601 , decltype(_impl_.freq_){false}
602 , decltype(_impl_.inherit_stat_){false}
603 , decltype(_impl_.enable_on_exec_){false}
604 , decltype(_impl_.task_){false}
605 , decltype(_impl_.watermark_){false}
606 , decltype(_impl_.mmap_data_){false}
607 , decltype(_impl_.precise_ip_){0u}
608 , decltype(_impl_.sample_id_all_){false}
609 , decltype(_impl_.exclude_host_){false}
610 , decltype(_impl_.exclude_guest_){false}
611 , decltype(_impl_.wakeup_events_){0u}
612 , decltype(_impl_.wakeup_watermark_){0u}
613 , decltype(_impl_.bp_addr_){uint64_t{0u}}
614 , decltype(_impl_.config1_){uint64_t{0u}}
615 , decltype(_impl_.bp_len_){uint64_t{0u}}
616 , decltype(_impl_.config2_){uint64_t{0u}}
617 , decltype(_impl_.branch_sample_type_){uint64_t{0u}}
618 , decltype(_impl_.bp_type_){0u}
619 };
620 }
621
~PerfDataProto_PerfEventAttr()622 PerfDataProto_PerfEventAttr::~PerfDataProto_PerfEventAttr() {
623 // @@protoc_insertion_point(destructor:metrics.PerfDataProto.PerfEventAttr)
624 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
625 (void)arena;
626 return;
627 }
628 SharedDtor();
629 }
630
SharedDtor()631 inline void PerfDataProto_PerfEventAttr::SharedDtor() {
632 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
633 }
634
SetCachedSize(int size) const635 void PerfDataProto_PerfEventAttr::SetCachedSize(int size) const {
636 _impl_._cached_size_.Set(size);
637 }
638
Clear()639 void PerfDataProto_PerfEventAttr::Clear() {
640 // @@protoc_insertion_point(message_clear_start:metrics.PerfDataProto.PerfEventAttr)
641 uint32_t cached_has_bits = 0;
642 // Prevent compiler warnings about cached_has_bits being unused
643 (void) cached_has_bits;
644
645 cached_has_bits = _impl_._has_bits_[0];
646 if (cached_has_bits & 0x000000ffu) {
647 ::memset(&_impl_.type_, 0, static_cast<size_t>(
648 reinterpret_cast<char*>(&_impl_.disabled_) -
649 reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.disabled_));
650 }
651 if (cached_has_bits & 0x0000ff00u) {
652 ::memset(&_impl_.inherit_, 0, static_cast<size_t>(
653 reinterpret_cast<char*>(&_impl_.mmap_) -
654 reinterpret_cast<char*>(&_impl_.inherit_)) + sizeof(_impl_.mmap_));
655 }
656 if (cached_has_bits & 0x00ff0000u) {
657 ::memset(&_impl_.comm_, 0, static_cast<size_t>(
658 reinterpret_cast<char*>(&_impl_.precise_ip_) -
659 reinterpret_cast<char*>(&_impl_.comm_)) + sizeof(_impl_.precise_ip_));
660 }
661 if (cached_has_bits & 0xff000000u) {
662 ::memset(&_impl_.sample_id_all_, 0, static_cast<size_t>(
663 reinterpret_cast<char*>(&_impl_.bp_len_) -
664 reinterpret_cast<char*>(&_impl_.sample_id_all_)) + sizeof(_impl_.bp_len_));
665 }
666 cached_has_bits = _impl_._has_bits_[1];
667 if (cached_has_bits & 0x00000007u) {
668 ::memset(&_impl_.config2_, 0, static_cast<size_t>(
669 reinterpret_cast<char*>(&_impl_.bp_type_) -
670 reinterpret_cast<char*>(&_impl_.config2_)) + sizeof(_impl_.bp_type_));
671 }
672 _impl_._has_bits_.Clear();
673 _internal_metadata_.Clear<std::string>();
674 }
675
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)676 const char* PerfDataProto_PerfEventAttr::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
677 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
678 while (!ctx->Done(&ptr)) {
679 uint32_t tag;
680 ptr = ::_pbi::ReadTag(ptr, &tag);
681 switch (tag >> 3) {
682 // optional uint32 type = 1;
683 case 1:
684 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
685 _Internal::set_has_type(&_impl_._has_bits_);
686 _impl_.type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
687 CHK_(ptr);
688 } else
689 goto handle_unusual;
690 continue;
691 // optional uint32 size = 2;
692 case 2:
693 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
694 _Internal::set_has_size(&_impl_._has_bits_);
695 _impl_.size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
696 CHK_(ptr);
697 } else
698 goto handle_unusual;
699 continue;
700 // optional uint64 config = 3;
701 case 3:
702 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
703 _Internal::set_has_config(&_impl_._has_bits_);
704 _impl_.config_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
705 CHK_(ptr);
706 } else
707 goto handle_unusual;
708 continue;
709 // optional uint64 sample_period = 4;
710 case 4:
711 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
712 _Internal::set_has_sample_period(&_impl_._has_bits_);
713 _impl_.sample_period_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
714 CHK_(ptr);
715 } else
716 goto handle_unusual;
717 continue;
718 // optional uint64 sample_freq = 5;
719 case 5:
720 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
721 _Internal::set_has_sample_freq(&_impl_._has_bits_);
722 _impl_.sample_freq_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
723 CHK_(ptr);
724 } else
725 goto handle_unusual;
726 continue;
727 // optional uint64 sample_type = 6;
728 case 6:
729 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
730 _Internal::set_has_sample_type(&_impl_._has_bits_);
731 _impl_.sample_type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
732 CHK_(ptr);
733 } else
734 goto handle_unusual;
735 continue;
736 // optional uint64 read_format = 7;
737 case 7:
738 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
739 _Internal::set_has_read_format(&_impl_._has_bits_);
740 _impl_.read_format_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
741 CHK_(ptr);
742 } else
743 goto handle_unusual;
744 continue;
745 // optional bool disabled = 8;
746 case 8:
747 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64)) {
748 _Internal::set_has_disabled(&_impl_._has_bits_);
749 _impl_.disabled_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
750 CHK_(ptr);
751 } else
752 goto handle_unusual;
753 continue;
754 // optional bool inherit = 9;
755 case 9:
756 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72)) {
757 _Internal::set_has_inherit(&_impl_._has_bits_);
758 _impl_.inherit_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
759 CHK_(ptr);
760 } else
761 goto handle_unusual;
762 continue;
763 // optional bool pinned = 10;
764 case 10:
765 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80)) {
766 _Internal::set_has_pinned(&_impl_._has_bits_);
767 _impl_.pinned_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
768 CHK_(ptr);
769 } else
770 goto handle_unusual;
771 continue;
772 // optional bool exclusive = 11;
773 case 11:
774 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 88)) {
775 _Internal::set_has_exclusive(&_impl_._has_bits_);
776 _impl_.exclusive_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
777 CHK_(ptr);
778 } else
779 goto handle_unusual;
780 continue;
781 // optional bool exclude_user = 12;
782 case 12:
783 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 96)) {
784 _Internal::set_has_exclude_user(&_impl_._has_bits_);
785 _impl_.exclude_user_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
786 CHK_(ptr);
787 } else
788 goto handle_unusual;
789 continue;
790 // optional bool exclude_kernel = 13;
791 case 13:
792 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 104)) {
793 _Internal::set_has_exclude_kernel(&_impl_._has_bits_);
794 _impl_.exclude_kernel_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
795 CHK_(ptr);
796 } else
797 goto handle_unusual;
798 continue;
799 // optional bool exclude_hv = 14;
800 case 14:
801 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 112)) {
802 _Internal::set_has_exclude_hv(&_impl_._has_bits_);
803 _impl_.exclude_hv_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
804 CHK_(ptr);
805 } else
806 goto handle_unusual;
807 continue;
808 // optional bool exclude_idle = 15;
809 case 15:
810 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 120)) {
811 _Internal::set_has_exclude_idle(&_impl_._has_bits_);
812 _impl_.exclude_idle_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
813 CHK_(ptr);
814 } else
815 goto handle_unusual;
816 continue;
817 // optional bool mmap = 16;
818 case 16:
819 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 128)) {
820 _Internal::set_has_mmap(&_impl_._has_bits_);
821 _impl_.mmap_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
822 CHK_(ptr);
823 } else
824 goto handle_unusual;
825 continue;
826 // optional bool comm = 17;
827 case 17:
828 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 136)) {
829 _Internal::set_has_comm(&_impl_._has_bits_);
830 _impl_.comm_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
831 CHK_(ptr);
832 } else
833 goto handle_unusual;
834 continue;
835 // optional bool freq = 18;
836 case 18:
837 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 144)) {
838 _Internal::set_has_freq(&_impl_._has_bits_);
839 _impl_.freq_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
840 CHK_(ptr);
841 } else
842 goto handle_unusual;
843 continue;
844 // optional bool inherit_stat = 19;
845 case 19:
846 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 152)) {
847 _Internal::set_has_inherit_stat(&_impl_._has_bits_);
848 _impl_.inherit_stat_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
849 CHK_(ptr);
850 } else
851 goto handle_unusual;
852 continue;
853 // optional bool enable_on_exec = 20;
854 case 20:
855 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 160)) {
856 _Internal::set_has_enable_on_exec(&_impl_._has_bits_);
857 _impl_.enable_on_exec_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
858 CHK_(ptr);
859 } else
860 goto handle_unusual;
861 continue;
862 // optional bool task = 21;
863 case 21:
864 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 168)) {
865 _Internal::set_has_task(&_impl_._has_bits_);
866 _impl_.task_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
867 CHK_(ptr);
868 } else
869 goto handle_unusual;
870 continue;
871 // optional bool watermark = 22;
872 case 22:
873 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 176)) {
874 _Internal::set_has_watermark(&_impl_._has_bits_);
875 _impl_.watermark_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
876 CHK_(ptr);
877 } else
878 goto handle_unusual;
879 continue;
880 // optional uint32 precise_ip = 23;
881 case 23:
882 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 184)) {
883 _Internal::set_has_precise_ip(&_impl_._has_bits_);
884 _impl_.precise_ip_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
885 CHK_(ptr);
886 } else
887 goto handle_unusual;
888 continue;
889 // optional bool mmap_data = 24;
890 case 24:
891 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 192)) {
892 _Internal::set_has_mmap_data(&_impl_._has_bits_);
893 _impl_.mmap_data_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
894 CHK_(ptr);
895 } else
896 goto handle_unusual;
897 continue;
898 // optional bool sample_id_all = 25;
899 case 25:
900 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 200)) {
901 _Internal::set_has_sample_id_all(&_impl_._has_bits_);
902 _impl_.sample_id_all_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
903 CHK_(ptr);
904 } else
905 goto handle_unusual;
906 continue;
907 // optional bool exclude_host = 26;
908 case 26:
909 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 208)) {
910 _Internal::set_has_exclude_host(&_impl_._has_bits_);
911 _impl_.exclude_host_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
912 CHK_(ptr);
913 } else
914 goto handle_unusual;
915 continue;
916 // optional bool exclude_guest = 27;
917 case 27:
918 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 216)) {
919 _Internal::set_has_exclude_guest(&_impl_._has_bits_);
920 _impl_.exclude_guest_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
921 CHK_(ptr);
922 } else
923 goto handle_unusual;
924 continue;
925 // optional uint32 wakeup_events = 28;
926 case 28:
927 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 224)) {
928 _Internal::set_has_wakeup_events(&_impl_._has_bits_);
929 _impl_.wakeup_events_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
930 CHK_(ptr);
931 } else
932 goto handle_unusual;
933 continue;
934 // optional uint32 wakeup_watermark = 29;
935 case 29:
936 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 232)) {
937 _Internal::set_has_wakeup_watermark(&_impl_._has_bits_);
938 _impl_.wakeup_watermark_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
939 CHK_(ptr);
940 } else
941 goto handle_unusual;
942 continue;
943 // optional uint32 bp_type = 30;
944 case 30:
945 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 240)) {
946 _Internal::set_has_bp_type(&_impl_._has_bits_);
947 _impl_.bp_type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
948 CHK_(ptr);
949 } else
950 goto handle_unusual;
951 continue;
952 // optional uint64 bp_addr = 31;
953 case 31:
954 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 248)) {
955 _Internal::set_has_bp_addr(&_impl_._has_bits_);
956 _impl_.bp_addr_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
957 CHK_(ptr);
958 } else
959 goto handle_unusual;
960 continue;
961 // optional uint64 config1 = 32;
962 case 32:
963 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 0)) {
964 _Internal::set_has_config1(&_impl_._has_bits_);
965 _impl_.config1_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
966 CHK_(ptr);
967 } else
968 goto handle_unusual;
969 continue;
970 // optional uint64 bp_len = 33;
971 case 33:
972 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
973 _Internal::set_has_bp_len(&_impl_._has_bits_);
974 _impl_.bp_len_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
975 CHK_(ptr);
976 } else
977 goto handle_unusual;
978 continue;
979 // optional uint64 config2 = 34;
980 case 34:
981 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
982 _Internal::set_has_config2(&_impl_._has_bits_);
983 _impl_.config2_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
984 CHK_(ptr);
985 } else
986 goto handle_unusual;
987 continue;
988 // optional uint64 branch_sample_type = 35;
989 case 35:
990 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
991 _Internal::set_has_branch_sample_type(&_impl_._has_bits_);
992 _impl_.branch_sample_type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
993 CHK_(ptr);
994 } else
995 goto handle_unusual;
996 continue;
997 default:
998 goto handle_unusual;
999 } // switch
1000 handle_unusual:
1001 if ((tag == 0) || ((tag & 7) == 4)) {
1002 CHK_(ptr);
1003 ctx->SetLastTag(tag);
1004 goto message_done;
1005 }
1006 ptr = UnknownFieldParse(
1007 tag,
1008 _internal_metadata_.mutable_unknown_fields<std::string>(),
1009 ptr, ctx);
1010 CHK_(ptr != nullptr);
1011 } // while
1012 message_done:
1013 return ptr;
1014 failure:
1015 ptr = nullptr;
1016 goto message_done;
1017 #undef CHK_
1018 }
1019
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const1020 uint8_t* PerfDataProto_PerfEventAttr::_InternalSerialize(
1021 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1022 // @@protoc_insertion_point(serialize_to_array_start:metrics.PerfDataProto.PerfEventAttr)
1023 uint32_t cached_has_bits = 0;
1024 (void) cached_has_bits;
1025
1026 cached_has_bits = _impl_._has_bits_[0];
1027 // optional uint32 type = 1;
1028 if (cached_has_bits & 0x00000001u) {
1029 target = stream->EnsureSpace(target);
1030 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_type(), target);
1031 }
1032
1033 // optional uint32 size = 2;
1034 if (cached_has_bits & 0x00000002u) {
1035 target = stream->EnsureSpace(target);
1036 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_size(), target);
1037 }
1038
1039 // optional uint64 config = 3;
1040 if (cached_has_bits & 0x00000004u) {
1041 target = stream->EnsureSpace(target);
1042 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(3, this->_internal_config(), target);
1043 }
1044
1045 // optional uint64 sample_period = 4;
1046 if (cached_has_bits & 0x00000008u) {
1047 target = stream->EnsureSpace(target);
1048 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_sample_period(), target);
1049 }
1050
1051 // optional uint64 sample_freq = 5;
1052 if (cached_has_bits & 0x00000010u) {
1053 target = stream->EnsureSpace(target);
1054 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(5, this->_internal_sample_freq(), target);
1055 }
1056
1057 // optional uint64 sample_type = 6;
1058 if (cached_has_bits & 0x00000020u) {
1059 target = stream->EnsureSpace(target);
1060 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(6, this->_internal_sample_type(), target);
1061 }
1062
1063 // optional uint64 read_format = 7;
1064 if (cached_has_bits & 0x00000040u) {
1065 target = stream->EnsureSpace(target);
1066 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(7, this->_internal_read_format(), target);
1067 }
1068
1069 // optional bool disabled = 8;
1070 if (cached_has_bits & 0x00000080u) {
1071 target = stream->EnsureSpace(target);
1072 target = ::_pbi::WireFormatLite::WriteBoolToArray(8, this->_internal_disabled(), target);
1073 }
1074
1075 // optional bool inherit = 9;
1076 if (cached_has_bits & 0x00000100u) {
1077 target = stream->EnsureSpace(target);
1078 target = ::_pbi::WireFormatLite::WriteBoolToArray(9, this->_internal_inherit(), target);
1079 }
1080
1081 // optional bool pinned = 10;
1082 if (cached_has_bits & 0x00000200u) {
1083 target = stream->EnsureSpace(target);
1084 target = ::_pbi::WireFormatLite::WriteBoolToArray(10, this->_internal_pinned(), target);
1085 }
1086
1087 // optional bool exclusive = 11;
1088 if (cached_has_bits & 0x00000400u) {
1089 target = stream->EnsureSpace(target);
1090 target = ::_pbi::WireFormatLite::WriteBoolToArray(11, this->_internal_exclusive(), target);
1091 }
1092
1093 // optional bool exclude_user = 12;
1094 if (cached_has_bits & 0x00000800u) {
1095 target = stream->EnsureSpace(target);
1096 target = ::_pbi::WireFormatLite::WriteBoolToArray(12, this->_internal_exclude_user(), target);
1097 }
1098
1099 // optional bool exclude_kernel = 13;
1100 if (cached_has_bits & 0x00001000u) {
1101 target = stream->EnsureSpace(target);
1102 target = ::_pbi::WireFormatLite::WriteBoolToArray(13, this->_internal_exclude_kernel(), target);
1103 }
1104
1105 // optional bool exclude_hv = 14;
1106 if (cached_has_bits & 0x00002000u) {
1107 target = stream->EnsureSpace(target);
1108 target = ::_pbi::WireFormatLite::WriteBoolToArray(14, this->_internal_exclude_hv(), target);
1109 }
1110
1111 // optional bool exclude_idle = 15;
1112 if (cached_has_bits & 0x00004000u) {
1113 target = stream->EnsureSpace(target);
1114 target = ::_pbi::WireFormatLite::WriteBoolToArray(15, this->_internal_exclude_idle(), target);
1115 }
1116
1117 // optional bool mmap = 16;
1118 if (cached_has_bits & 0x00008000u) {
1119 target = stream->EnsureSpace(target);
1120 target = ::_pbi::WireFormatLite::WriteBoolToArray(16, this->_internal_mmap(), target);
1121 }
1122
1123 // optional bool comm = 17;
1124 if (cached_has_bits & 0x00010000u) {
1125 target = stream->EnsureSpace(target);
1126 target = ::_pbi::WireFormatLite::WriteBoolToArray(17, this->_internal_comm(), target);
1127 }
1128
1129 // optional bool freq = 18;
1130 if (cached_has_bits & 0x00020000u) {
1131 target = stream->EnsureSpace(target);
1132 target = ::_pbi::WireFormatLite::WriteBoolToArray(18, this->_internal_freq(), target);
1133 }
1134
1135 // optional bool inherit_stat = 19;
1136 if (cached_has_bits & 0x00040000u) {
1137 target = stream->EnsureSpace(target);
1138 target = ::_pbi::WireFormatLite::WriteBoolToArray(19, this->_internal_inherit_stat(), target);
1139 }
1140
1141 // optional bool enable_on_exec = 20;
1142 if (cached_has_bits & 0x00080000u) {
1143 target = stream->EnsureSpace(target);
1144 target = ::_pbi::WireFormatLite::WriteBoolToArray(20, this->_internal_enable_on_exec(), target);
1145 }
1146
1147 // optional bool task = 21;
1148 if (cached_has_bits & 0x00100000u) {
1149 target = stream->EnsureSpace(target);
1150 target = ::_pbi::WireFormatLite::WriteBoolToArray(21, this->_internal_task(), target);
1151 }
1152
1153 // optional bool watermark = 22;
1154 if (cached_has_bits & 0x00200000u) {
1155 target = stream->EnsureSpace(target);
1156 target = ::_pbi::WireFormatLite::WriteBoolToArray(22, this->_internal_watermark(), target);
1157 }
1158
1159 // optional uint32 precise_ip = 23;
1160 if (cached_has_bits & 0x00800000u) {
1161 target = stream->EnsureSpace(target);
1162 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(23, this->_internal_precise_ip(), target);
1163 }
1164
1165 // optional bool mmap_data = 24;
1166 if (cached_has_bits & 0x00400000u) {
1167 target = stream->EnsureSpace(target);
1168 target = ::_pbi::WireFormatLite::WriteBoolToArray(24, this->_internal_mmap_data(), target);
1169 }
1170
1171 // optional bool sample_id_all = 25;
1172 if (cached_has_bits & 0x01000000u) {
1173 target = stream->EnsureSpace(target);
1174 target = ::_pbi::WireFormatLite::WriteBoolToArray(25, this->_internal_sample_id_all(), target);
1175 }
1176
1177 // optional bool exclude_host = 26;
1178 if (cached_has_bits & 0x02000000u) {
1179 target = stream->EnsureSpace(target);
1180 target = ::_pbi::WireFormatLite::WriteBoolToArray(26, this->_internal_exclude_host(), target);
1181 }
1182
1183 // optional bool exclude_guest = 27;
1184 if (cached_has_bits & 0x04000000u) {
1185 target = stream->EnsureSpace(target);
1186 target = ::_pbi::WireFormatLite::WriteBoolToArray(27, this->_internal_exclude_guest(), target);
1187 }
1188
1189 // optional uint32 wakeup_events = 28;
1190 if (cached_has_bits & 0x08000000u) {
1191 target = stream->EnsureSpace(target);
1192 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(28, this->_internal_wakeup_events(), target);
1193 }
1194
1195 // optional uint32 wakeup_watermark = 29;
1196 if (cached_has_bits & 0x10000000u) {
1197 target = stream->EnsureSpace(target);
1198 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(29, this->_internal_wakeup_watermark(), target);
1199 }
1200
1201 cached_has_bits = _impl_._has_bits_[1];
1202 // optional uint32 bp_type = 30;
1203 if (cached_has_bits & 0x00000004u) {
1204 target = stream->EnsureSpace(target);
1205 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(30, this->_internal_bp_type(), target);
1206 }
1207
1208 cached_has_bits = _impl_._has_bits_[0];
1209 // optional uint64 bp_addr = 31;
1210 if (cached_has_bits & 0x20000000u) {
1211 target = stream->EnsureSpace(target);
1212 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(31, this->_internal_bp_addr(), target);
1213 }
1214
1215 // optional uint64 config1 = 32;
1216 if (cached_has_bits & 0x40000000u) {
1217 target = stream->EnsureSpace(target);
1218 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(32, this->_internal_config1(), target);
1219 }
1220
1221 // optional uint64 bp_len = 33;
1222 if (cached_has_bits & 0x80000000u) {
1223 target = stream->EnsureSpace(target);
1224 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(33, this->_internal_bp_len(), target);
1225 }
1226
1227 cached_has_bits = _impl_._has_bits_[1];
1228 // optional uint64 config2 = 34;
1229 if (cached_has_bits & 0x00000001u) {
1230 target = stream->EnsureSpace(target);
1231 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(34, this->_internal_config2(), target);
1232 }
1233
1234 // optional uint64 branch_sample_type = 35;
1235 if (cached_has_bits & 0x00000002u) {
1236 target = stream->EnsureSpace(target);
1237 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(35, this->_internal_branch_sample_type(), target);
1238 }
1239
1240 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1241 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
1242 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
1243 }
1244 // @@protoc_insertion_point(serialize_to_array_end:metrics.PerfDataProto.PerfEventAttr)
1245 return target;
1246 }
1247
ByteSizeLong() const1248 size_t PerfDataProto_PerfEventAttr::ByteSizeLong() const {
1249 // @@protoc_insertion_point(message_byte_size_start:metrics.PerfDataProto.PerfEventAttr)
1250 size_t total_size = 0;
1251
1252 uint32_t cached_has_bits = 0;
1253 // Prevent compiler warnings about cached_has_bits being unused
1254 (void) cached_has_bits;
1255
1256 cached_has_bits = _impl_._has_bits_[0];
1257 if (cached_has_bits & 0x000000ffu) {
1258 // optional uint32 type = 1;
1259 if (cached_has_bits & 0x00000001u) {
1260 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_type());
1261 }
1262
1263 // optional uint32 size = 2;
1264 if (cached_has_bits & 0x00000002u) {
1265 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_size());
1266 }
1267
1268 // optional uint64 config = 3;
1269 if (cached_has_bits & 0x00000004u) {
1270 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_config());
1271 }
1272
1273 // optional uint64 sample_period = 4;
1274 if (cached_has_bits & 0x00000008u) {
1275 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_sample_period());
1276 }
1277
1278 // optional uint64 sample_freq = 5;
1279 if (cached_has_bits & 0x00000010u) {
1280 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_sample_freq());
1281 }
1282
1283 // optional uint64 sample_type = 6;
1284 if (cached_has_bits & 0x00000020u) {
1285 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_sample_type());
1286 }
1287
1288 // optional uint64 read_format = 7;
1289 if (cached_has_bits & 0x00000040u) {
1290 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_read_format());
1291 }
1292
1293 // optional bool disabled = 8;
1294 if (cached_has_bits & 0x00000080u) {
1295 total_size += 1 + 1;
1296 }
1297
1298 }
1299 if (cached_has_bits & 0x0000ff00u) {
1300 // optional bool inherit = 9;
1301 if (cached_has_bits & 0x00000100u) {
1302 total_size += 1 + 1;
1303 }
1304
1305 // optional bool pinned = 10;
1306 if (cached_has_bits & 0x00000200u) {
1307 total_size += 1 + 1;
1308 }
1309
1310 // optional bool exclusive = 11;
1311 if (cached_has_bits & 0x00000400u) {
1312 total_size += 1 + 1;
1313 }
1314
1315 // optional bool exclude_user = 12;
1316 if (cached_has_bits & 0x00000800u) {
1317 total_size += 1 + 1;
1318 }
1319
1320 // optional bool exclude_kernel = 13;
1321 if (cached_has_bits & 0x00001000u) {
1322 total_size += 1 + 1;
1323 }
1324
1325 // optional bool exclude_hv = 14;
1326 if (cached_has_bits & 0x00002000u) {
1327 total_size += 1 + 1;
1328 }
1329
1330 // optional bool exclude_idle = 15;
1331 if (cached_has_bits & 0x00004000u) {
1332 total_size += 1 + 1;
1333 }
1334
1335 // optional bool mmap = 16;
1336 if (cached_has_bits & 0x00008000u) {
1337 total_size += 2 + 1;
1338 }
1339
1340 }
1341 if (cached_has_bits & 0x00ff0000u) {
1342 // optional bool comm = 17;
1343 if (cached_has_bits & 0x00010000u) {
1344 total_size += 2 + 1;
1345 }
1346
1347 // optional bool freq = 18;
1348 if (cached_has_bits & 0x00020000u) {
1349 total_size += 2 + 1;
1350 }
1351
1352 // optional bool inherit_stat = 19;
1353 if (cached_has_bits & 0x00040000u) {
1354 total_size += 2 + 1;
1355 }
1356
1357 // optional bool enable_on_exec = 20;
1358 if (cached_has_bits & 0x00080000u) {
1359 total_size += 2 + 1;
1360 }
1361
1362 // optional bool task = 21;
1363 if (cached_has_bits & 0x00100000u) {
1364 total_size += 2 + 1;
1365 }
1366
1367 // optional bool watermark = 22;
1368 if (cached_has_bits & 0x00200000u) {
1369 total_size += 2 + 1;
1370 }
1371
1372 // optional bool mmap_data = 24;
1373 if (cached_has_bits & 0x00400000u) {
1374 total_size += 2 + 1;
1375 }
1376
1377 // optional uint32 precise_ip = 23;
1378 if (cached_has_bits & 0x00800000u) {
1379 total_size += 2 +
1380 ::_pbi::WireFormatLite::UInt32Size(
1381 this->_internal_precise_ip());
1382 }
1383
1384 }
1385 if (cached_has_bits & 0xff000000u) {
1386 // optional bool sample_id_all = 25;
1387 if (cached_has_bits & 0x01000000u) {
1388 total_size += 2 + 1;
1389 }
1390
1391 // optional bool exclude_host = 26;
1392 if (cached_has_bits & 0x02000000u) {
1393 total_size += 2 + 1;
1394 }
1395
1396 // optional bool exclude_guest = 27;
1397 if (cached_has_bits & 0x04000000u) {
1398 total_size += 2 + 1;
1399 }
1400
1401 // optional uint32 wakeup_events = 28;
1402 if (cached_has_bits & 0x08000000u) {
1403 total_size += 2 +
1404 ::_pbi::WireFormatLite::UInt32Size(
1405 this->_internal_wakeup_events());
1406 }
1407
1408 // optional uint32 wakeup_watermark = 29;
1409 if (cached_has_bits & 0x10000000u) {
1410 total_size += 2 +
1411 ::_pbi::WireFormatLite::UInt32Size(
1412 this->_internal_wakeup_watermark());
1413 }
1414
1415 // optional uint64 bp_addr = 31;
1416 if (cached_has_bits & 0x20000000u) {
1417 total_size += 2 +
1418 ::_pbi::WireFormatLite::UInt64Size(
1419 this->_internal_bp_addr());
1420 }
1421
1422 // optional uint64 config1 = 32;
1423 if (cached_has_bits & 0x40000000u) {
1424 total_size += 2 +
1425 ::_pbi::WireFormatLite::UInt64Size(
1426 this->_internal_config1());
1427 }
1428
1429 // optional uint64 bp_len = 33;
1430 if (cached_has_bits & 0x80000000u) {
1431 total_size += 2 +
1432 ::_pbi::WireFormatLite::UInt64Size(
1433 this->_internal_bp_len());
1434 }
1435
1436 }
1437 cached_has_bits = _impl_._has_bits_[1];
1438 if (cached_has_bits & 0x00000007u) {
1439 // optional uint64 config2 = 34;
1440 if (cached_has_bits & 0x00000001u) {
1441 total_size += 2 +
1442 ::_pbi::WireFormatLite::UInt64Size(
1443 this->_internal_config2());
1444 }
1445
1446 // optional uint64 branch_sample_type = 35;
1447 if (cached_has_bits & 0x00000002u) {
1448 total_size += 2 +
1449 ::_pbi::WireFormatLite::UInt64Size(
1450 this->_internal_branch_sample_type());
1451 }
1452
1453 // optional uint32 bp_type = 30;
1454 if (cached_has_bits & 0x00000004u) {
1455 total_size += 2 +
1456 ::_pbi::WireFormatLite::UInt32Size(
1457 this->_internal_bp_type());
1458 }
1459
1460 }
1461 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1462 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
1463 }
1464 int cached_size = ::_pbi::ToCachedSize(total_size);
1465 SetCachedSize(cached_size);
1466 return total_size;
1467 }
1468
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)1469 void PerfDataProto_PerfEventAttr::CheckTypeAndMergeFrom(
1470 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
1471 MergeFrom(*::_pbi::DownCast<const PerfDataProto_PerfEventAttr*>(
1472 &from));
1473 }
1474
MergeFrom(const PerfDataProto_PerfEventAttr & from)1475 void PerfDataProto_PerfEventAttr::MergeFrom(const PerfDataProto_PerfEventAttr& from) {
1476 PerfDataProto_PerfEventAttr* const _this = this;
1477 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.PerfDataProto.PerfEventAttr)
1478 GOOGLE_DCHECK_NE(&from, _this);
1479 uint32_t cached_has_bits = 0;
1480 (void) cached_has_bits;
1481
1482 cached_has_bits = from._impl_._has_bits_[0];
1483 if (cached_has_bits & 0x000000ffu) {
1484 if (cached_has_bits & 0x00000001u) {
1485 _this->_impl_.type_ = from._impl_.type_;
1486 }
1487 if (cached_has_bits & 0x00000002u) {
1488 _this->_impl_.size_ = from._impl_.size_;
1489 }
1490 if (cached_has_bits & 0x00000004u) {
1491 _this->_impl_.config_ = from._impl_.config_;
1492 }
1493 if (cached_has_bits & 0x00000008u) {
1494 _this->_impl_.sample_period_ = from._impl_.sample_period_;
1495 }
1496 if (cached_has_bits & 0x00000010u) {
1497 _this->_impl_.sample_freq_ = from._impl_.sample_freq_;
1498 }
1499 if (cached_has_bits & 0x00000020u) {
1500 _this->_impl_.sample_type_ = from._impl_.sample_type_;
1501 }
1502 if (cached_has_bits & 0x00000040u) {
1503 _this->_impl_.read_format_ = from._impl_.read_format_;
1504 }
1505 if (cached_has_bits & 0x00000080u) {
1506 _this->_impl_.disabled_ = from._impl_.disabled_;
1507 }
1508 _this->_impl_._has_bits_[0] |= cached_has_bits;
1509 }
1510 if (cached_has_bits & 0x0000ff00u) {
1511 if (cached_has_bits & 0x00000100u) {
1512 _this->_impl_.inherit_ = from._impl_.inherit_;
1513 }
1514 if (cached_has_bits & 0x00000200u) {
1515 _this->_impl_.pinned_ = from._impl_.pinned_;
1516 }
1517 if (cached_has_bits & 0x00000400u) {
1518 _this->_impl_.exclusive_ = from._impl_.exclusive_;
1519 }
1520 if (cached_has_bits & 0x00000800u) {
1521 _this->_impl_.exclude_user_ = from._impl_.exclude_user_;
1522 }
1523 if (cached_has_bits & 0x00001000u) {
1524 _this->_impl_.exclude_kernel_ = from._impl_.exclude_kernel_;
1525 }
1526 if (cached_has_bits & 0x00002000u) {
1527 _this->_impl_.exclude_hv_ = from._impl_.exclude_hv_;
1528 }
1529 if (cached_has_bits & 0x00004000u) {
1530 _this->_impl_.exclude_idle_ = from._impl_.exclude_idle_;
1531 }
1532 if (cached_has_bits & 0x00008000u) {
1533 _this->_impl_.mmap_ = from._impl_.mmap_;
1534 }
1535 _this->_impl_._has_bits_[0] |= cached_has_bits;
1536 }
1537 if (cached_has_bits & 0x00ff0000u) {
1538 if (cached_has_bits & 0x00010000u) {
1539 _this->_impl_.comm_ = from._impl_.comm_;
1540 }
1541 if (cached_has_bits & 0x00020000u) {
1542 _this->_impl_.freq_ = from._impl_.freq_;
1543 }
1544 if (cached_has_bits & 0x00040000u) {
1545 _this->_impl_.inherit_stat_ = from._impl_.inherit_stat_;
1546 }
1547 if (cached_has_bits & 0x00080000u) {
1548 _this->_impl_.enable_on_exec_ = from._impl_.enable_on_exec_;
1549 }
1550 if (cached_has_bits & 0x00100000u) {
1551 _this->_impl_.task_ = from._impl_.task_;
1552 }
1553 if (cached_has_bits & 0x00200000u) {
1554 _this->_impl_.watermark_ = from._impl_.watermark_;
1555 }
1556 if (cached_has_bits & 0x00400000u) {
1557 _this->_impl_.mmap_data_ = from._impl_.mmap_data_;
1558 }
1559 if (cached_has_bits & 0x00800000u) {
1560 _this->_impl_.precise_ip_ = from._impl_.precise_ip_;
1561 }
1562 _this->_impl_._has_bits_[0] |= cached_has_bits;
1563 }
1564 if (cached_has_bits & 0xff000000u) {
1565 if (cached_has_bits & 0x01000000u) {
1566 _this->_impl_.sample_id_all_ = from._impl_.sample_id_all_;
1567 }
1568 if (cached_has_bits & 0x02000000u) {
1569 _this->_impl_.exclude_host_ = from._impl_.exclude_host_;
1570 }
1571 if (cached_has_bits & 0x04000000u) {
1572 _this->_impl_.exclude_guest_ = from._impl_.exclude_guest_;
1573 }
1574 if (cached_has_bits & 0x08000000u) {
1575 _this->_impl_.wakeup_events_ = from._impl_.wakeup_events_;
1576 }
1577 if (cached_has_bits & 0x10000000u) {
1578 _this->_impl_.wakeup_watermark_ = from._impl_.wakeup_watermark_;
1579 }
1580 if (cached_has_bits & 0x20000000u) {
1581 _this->_impl_.bp_addr_ = from._impl_.bp_addr_;
1582 }
1583 if (cached_has_bits & 0x40000000u) {
1584 _this->_impl_.config1_ = from._impl_.config1_;
1585 }
1586 if (cached_has_bits & 0x80000000u) {
1587 _this->_impl_.bp_len_ = from._impl_.bp_len_;
1588 }
1589 _this->_impl_._has_bits_[0] |= cached_has_bits;
1590 }
1591 cached_has_bits = from._impl_._has_bits_[1];
1592 if (cached_has_bits & 0x00000007u) {
1593 if (cached_has_bits & 0x00000001u) {
1594 _this->_impl_.config2_ = from._impl_.config2_;
1595 }
1596 if (cached_has_bits & 0x00000002u) {
1597 _this->_impl_.branch_sample_type_ = from._impl_.branch_sample_type_;
1598 }
1599 if (cached_has_bits & 0x00000004u) {
1600 _this->_impl_.bp_type_ = from._impl_.bp_type_;
1601 }
1602 _this->_impl_._has_bits_[1] |= cached_has_bits;
1603 }
1604 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
1605 }
1606
CopyFrom(const PerfDataProto_PerfEventAttr & from)1607 void PerfDataProto_PerfEventAttr::CopyFrom(const PerfDataProto_PerfEventAttr& from) {
1608 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.PerfDataProto.PerfEventAttr)
1609 if (&from == this) return;
1610 Clear();
1611 MergeFrom(from);
1612 }
1613
IsInitialized() const1614 bool PerfDataProto_PerfEventAttr::IsInitialized() const {
1615 return true;
1616 }
1617
InternalSwap(PerfDataProto_PerfEventAttr * other)1618 void PerfDataProto_PerfEventAttr::InternalSwap(PerfDataProto_PerfEventAttr* other) {
1619 using std::swap;
1620 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1621 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1622 swap(_impl_._has_bits_[1], other->_impl_._has_bits_[1]);
1623 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
1624 PROTOBUF_FIELD_OFFSET(PerfDataProto_PerfEventAttr, _impl_.bp_type_)
1625 + sizeof(PerfDataProto_PerfEventAttr::_impl_.bp_type_)
1626 - PROTOBUF_FIELD_OFFSET(PerfDataProto_PerfEventAttr, _impl_.type_)>(
1627 reinterpret_cast<char*>(&_impl_.type_),
1628 reinterpret_cast<char*>(&other->_impl_.type_));
1629 }
1630
GetTypeName() const1631 std::string PerfDataProto_PerfEventAttr::GetTypeName() const {
1632 return "metrics.PerfDataProto.PerfEventAttr";
1633 }
1634
1635
1636 // ===================================================================
1637
1638 class PerfDataProto_PerfFileAttr::_Internal {
1639 public:
1640 using HasBits = decltype(std::declval<PerfDataProto_PerfFileAttr>()._impl_._has_bits_);
1641 static const ::metrics::PerfDataProto_PerfEventAttr& attr(const PerfDataProto_PerfFileAttr* msg);
set_has_attr(HasBits * has_bits)1642 static void set_has_attr(HasBits* has_bits) {
1643 (*has_bits)[0] |= 1u;
1644 }
1645 };
1646
1647 const ::metrics::PerfDataProto_PerfEventAttr&
attr(const PerfDataProto_PerfFileAttr * msg)1648 PerfDataProto_PerfFileAttr::_Internal::attr(const PerfDataProto_PerfFileAttr* msg) {
1649 return *msg->_impl_.attr_;
1650 }
PerfDataProto_PerfFileAttr(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)1651 PerfDataProto_PerfFileAttr::PerfDataProto_PerfFileAttr(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1652 bool is_message_owned)
1653 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
1654 SharedCtor(arena, is_message_owned);
1655 // @@protoc_insertion_point(arena_constructor:metrics.PerfDataProto.PerfFileAttr)
1656 }
PerfDataProto_PerfFileAttr(const PerfDataProto_PerfFileAttr & from)1657 PerfDataProto_PerfFileAttr::PerfDataProto_PerfFileAttr(const PerfDataProto_PerfFileAttr& from)
1658 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
1659 PerfDataProto_PerfFileAttr* const _this = this; (void)_this;
1660 new (&_impl_) Impl_{
1661 decltype(_impl_._has_bits_){from._impl_._has_bits_}
1662 , /*decltype(_impl_._cached_size_)*/{}
1663 , decltype(_impl_.ids_){from._impl_.ids_}
1664 , decltype(_impl_.attr_){nullptr}};
1665
1666 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
1667 if (from._internal_has_attr()) {
1668 _this->_impl_.attr_ = new ::metrics::PerfDataProto_PerfEventAttr(*from._impl_.attr_);
1669 }
1670 // @@protoc_insertion_point(copy_constructor:metrics.PerfDataProto.PerfFileAttr)
1671 }
1672
SharedCtor(::_pb::Arena * arena,bool is_message_owned)1673 inline void PerfDataProto_PerfFileAttr::SharedCtor(
1674 ::_pb::Arena* arena, bool is_message_owned) {
1675 (void)arena;
1676 (void)is_message_owned;
1677 new (&_impl_) Impl_{
1678 decltype(_impl_._has_bits_){}
1679 , /*decltype(_impl_._cached_size_)*/{}
1680 , decltype(_impl_.ids_){arena}
1681 , decltype(_impl_.attr_){nullptr}
1682 };
1683 }
1684
~PerfDataProto_PerfFileAttr()1685 PerfDataProto_PerfFileAttr::~PerfDataProto_PerfFileAttr() {
1686 // @@protoc_insertion_point(destructor:metrics.PerfDataProto.PerfFileAttr)
1687 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
1688 (void)arena;
1689 return;
1690 }
1691 SharedDtor();
1692 }
1693
SharedDtor()1694 inline void PerfDataProto_PerfFileAttr::SharedDtor() {
1695 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
1696 _impl_.ids_.~RepeatedField();
1697 if (this != internal_default_instance()) delete _impl_.attr_;
1698 }
1699
SetCachedSize(int size) const1700 void PerfDataProto_PerfFileAttr::SetCachedSize(int size) const {
1701 _impl_._cached_size_.Set(size);
1702 }
1703
Clear()1704 void PerfDataProto_PerfFileAttr::Clear() {
1705 // @@protoc_insertion_point(message_clear_start:metrics.PerfDataProto.PerfFileAttr)
1706 uint32_t cached_has_bits = 0;
1707 // Prevent compiler warnings about cached_has_bits being unused
1708 (void) cached_has_bits;
1709
1710 _impl_.ids_.Clear();
1711 cached_has_bits = _impl_._has_bits_[0];
1712 if (cached_has_bits & 0x00000001u) {
1713 GOOGLE_DCHECK(_impl_.attr_ != nullptr);
1714 _impl_.attr_->Clear();
1715 }
1716 _impl_._has_bits_.Clear();
1717 _internal_metadata_.Clear<std::string>();
1718 }
1719
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)1720 const char* PerfDataProto_PerfFileAttr::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
1721 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1722 _Internal::HasBits has_bits{};
1723 while (!ctx->Done(&ptr)) {
1724 uint32_t tag;
1725 ptr = ::_pbi::ReadTag(ptr, &tag);
1726 switch (tag >> 3) {
1727 // optional .metrics.PerfDataProto.PerfEventAttr attr = 1;
1728 case 1:
1729 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
1730 ptr = ctx->ParseMessage(_internal_mutable_attr(), ptr);
1731 CHK_(ptr);
1732 } else
1733 goto handle_unusual;
1734 continue;
1735 // repeated uint64 ids = 2;
1736 case 2:
1737 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
1738 ptr -= 1;
1739 do {
1740 ptr += 1;
1741 _internal_add_ids(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr));
1742 CHK_(ptr);
1743 if (!ctx->DataAvailable(ptr)) break;
1744 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<16>(ptr));
1745 } else if (static_cast<uint8_t>(tag) == 18) {
1746 ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt64Parser(_internal_mutable_ids(), ptr, ctx);
1747 CHK_(ptr);
1748 } else
1749 goto handle_unusual;
1750 continue;
1751 default:
1752 goto handle_unusual;
1753 } // switch
1754 handle_unusual:
1755 if ((tag == 0) || ((tag & 7) == 4)) {
1756 CHK_(ptr);
1757 ctx->SetLastTag(tag);
1758 goto message_done;
1759 }
1760 ptr = UnknownFieldParse(
1761 tag,
1762 _internal_metadata_.mutable_unknown_fields<std::string>(),
1763 ptr, ctx);
1764 CHK_(ptr != nullptr);
1765 } // while
1766 message_done:
1767 _impl_._has_bits_.Or(has_bits);
1768 return ptr;
1769 failure:
1770 ptr = nullptr;
1771 goto message_done;
1772 #undef CHK_
1773 }
1774
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const1775 uint8_t* PerfDataProto_PerfFileAttr::_InternalSerialize(
1776 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1777 // @@protoc_insertion_point(serialize_to_array_start:metrics.PerfDataProto.PerfFileAttr)
1778 uint32_t cached_has_bits = 0;
1779 (void) cached_has_bits;
1780
1781 cached_has_bits = _impl_._has_bits_[0];
1782 // optional .metrics.PerfDataProto.PerfEventAttr attr = 1;
1783 if (cached_has_bits & 0x00000001u) {
1784 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1785 InternalWriteMessage(1, _Internal::attr(this),
1786 _Internal::attr(this).GetCachedSize(), target, stream);
1787 }
1788
1789 // repeated uint64 ids = 2;
1790 for (int i = 0, n = this->_internal_ids_size(); i < n; i++) {
1791 target = stream->EnsureSpace(target);
1792 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_ids(i), target);
1793 }
1794
1795 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1796 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
1797 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
1798 }
1799 // @@protoc_insertion_point(serialize_to_array_end:metrics.PerfDataProto.PerfFileAttr)
1800 return target;
1801 }
1802
ByteSizeLong() const1803 size_t PerfDataProto_PerfFileAttr::ByteSizeLong() const {
1804 // @@protoc_insertion_point(message_byte_size_start:metrics.PerfDataProto.PerfFileAttr)
1805 size_t total_size = 0;
1806
1807 uint32_t cached_has_bits = 0;
1808 // Prevent compiler warnings about cached_has_bits being unused
1809 (void) cached_has_bits;
1810
1811 // repeated uint64 ids = 2;
1812 {
1813 size_t data_size = ::_pbi::WireFormatLite::
1814 UInt64Size(this->_impl_.ids_);
1815 total_size += 1 *
1816 ::_pbi::FromIntSize(this->_internal_ids_size());
1817 total_size += data_size;
1818 }
1819
1820 // optional .metrics.PerfDataProto.PerfEventAttr attr = 1;
1821 cached_has_bits = _impl_._has_bits_[0];
1822 if (cached_has_bits & 0x00000001u) {
1823 total_size += 1 +
1824 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1825 *_impl_.attr_);
1826 }
1827
1828 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1829 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
1830 }
1831 int cached_size = ::_pbi::ToCachedSize(total_size);
1832 SetCachedSize(cached_size);
1833 return total_size;
1834 }
1835
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)1836 void PerfDataProto_PerfFileAttr::CheckTypeAndMergeFrom(
1837 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
1838 MergeFrom(*::_pbi::DownCast<const PerfDataProto_PerfFileAttr*>(
1839 &from));
1840 }
1841
MergeFrom(const PerfDataProto_PerfFileAttr & from)1842 void PerfDataProto_PerfFileAttr::MergeFrom(const PerfDataProto_PerfFileAttr& from) {
1843 PerfDataProto_PerfFileAttr* const _this = this;
1844 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.PerfDataProto.PerfFileAttr)
1845 GOOGLE_DCHECK_NE(&from, _this);
1846 uint32_t cached_has_bits = 0;
1847 (void) cached_has_bits;
1848
1849 _this->_impl_.ids_.MergeFrom(from._impl_.ids_);
1850 if (from._internal_has_attr()) {
1851 _this->_internal_mutable_attr()->::metrics::PerfDataProto_PerfEventAttr::MergeFrom(
1852 from._internal_attr());
1853 }
1854 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
1855 }
1856
CopyFrom(const PerfDataProto_PerfFileAttr & from)1857 void PerfDataProto_PerfFileAttr::CopyFrom(const PerfDataProto_PerfFileAttr& from) {
1858 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.PerfDataProto.PerfFileAttr)
1859 if (&from == this) return;
1860 Clear();
1861 MergeFrom(from);
1862 }
1863
IsInitialized() const1864 bool PerfDataProto_PerfFileAttr::IsInitialized() const {
1865 return true;
1866 }
1867
InternalSwap(PerfDataProto_PerfFileAttr * other)1868 void PerfDataProto_PerfFileAttr::InternalSwap(PerfDataProto_PerfFileAttr* other) {
1869 using std::swap;
1870 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1871 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1872 _impl_.ids_.InternalSwap(&other->_impl_.ids_);
1873 swap(_impl_.attr_, other->_impl_.attr_);
1874 }
1875
GetTypeName() const1876 std::string PerfDataProto_PerfFileAttr::GetTypeName() const {
1877 return "metrics.PerfDataProto.PerfFileAttr";
1878 }
1879
1880
1881 // ===================================================================
1882
1883 class PerfDataProto_PerfEventType::_Internal {
1884 public:
1885 using HasBits = decltype(std::declval<PerfDataProto_PerfEventType>()._impl_._has_bits_);
set_has_id(HasBits * has_bits)1886 static void set_has_id(HasBits* has_bits) {
1887 (*has_bits)[0] |= 1u;
1888 }
set_has_name_md5_prefix(HasBits * has_bits)1889 static void set_has_name_md5_prefix(HasBits* has_bits) {
1890 (*has_bits)[0] |= 2u;
1891 }
1892 };
1893
PerfDataProto_PerfEventType(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)1894 PerfDataProto_PerfEventType::PerfDataProto_PerfEventType(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1895 bool is_message_owned)
1896 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
1897 SharedCtor(arena, is_message_owned);
1898 // @@protoc_insertion_point(arena_constructor:metrics.PerfDataProto.PerfEventType)
1899 }
PerfDataProto_PerfEventType(const PerfDataProto_PerfEventType & from)1900 PerfDataProto_PerfEventType::PerfDataProto_PerfEventType(const PerfDataProto_PerfEventType& from)
1901 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
1902 PerfDataProto_PerfEventType* const _this = this; (void)_this;
1903 new (&_impl_) Impl_{
1904 decltype(_impl_._has_bits_){from._impl_._has_bits_}
1905 , /*decltype(_impl_._cached_size_)*/{}
1906 , decltype(_impl_.id_){}
1907 , decltype(_impl_.name_md5_prefix_){}};
1908
1909 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
1910 ::memcpy(&_impl_.id_, &from._impl_.id_,
1911 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.name_md5_prefix_) -
1912 reinterpret_cast<char*>(&_impl_.id_)) + sizeof(_impl_.name_md5_prefix_));
1913 // @@protoc_insertion_point(copy_constructor:metrics.PerfDataProto.PerfEventType)
1914 }
1915
SharedCtor(::_pb::Arena * arena,bool is_message_owned)1916 inline void PerfDataProto_PerfEventType::SharedCtor(
1917 ::_pb::Arena* arena, bool is_message_owned) {
1918 (void)arena;
1919 (void)is_message_owned;
1920 new (&_impl_) Impl_{
1921 decltype(_impl_._has_bits_){}
1922 , /*decltype(_impl_._cached_size_)*/{}
1923 , decltype(_impl_.id_){uint64_t{0u}}
1924 , decltype(_impl_.name_md5_prefix_){uint64_t{0u}}
1925 };
1926 }
1927
~PerfDataProto_PerfEventType()1928 PerfDataProto_PerfEventType::~PerfDataProto_PerfEventType() {
1929 // @@protoc_insertion_point(destructor:metrics.PerfDataProto.PerfEventType)
1930 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
1931 (void)arena;
1932 return;
1933 }
1934 SharedDtor();
1935 }
1936
SharedDtor()1937 inline void PerfDataProto_PerfEventType::SharedDtor() {
1938 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
1939 }
1940
SetCachedSize(int size) const1941 void PerfDataProto_PerfEventType::SetCachedSize(int size) const {
1942 _impl_._cached_size_.Set(size);
1943 }
1944
Clear()1945 void PerfDataProto_PerfEventType::Clear() {
1946 // @@protoc_insertion_point(message_clear_start:metrics.PerfDataProto.PerfEventType)
1947 uint32_t cached_has_bits = 0;
1948 // Prevent compiler warnings about cached_has_bits being unused
1949 (void) cached_has_bits;
1950
1951 cached_has_bits = _impl_._has_bits_[0];
1952 if (cached_has_bits & 0x00000003u) {
1953 ::memset(&_impl_.id_, 0, static_cast<size_t>(
1954 reinterpret_cast<char*>(&_impl_.name_md5_prefix_) -
1955 reinterpret_cast<char*>(&_impl_.id_)) + sizeof(_impl_.name_md5_prefix_));
1956 }
1957 _impl_._has_bits_.Clear();
1958 _internal_metadata_.Clear<std::string>();
1959 }
1960
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)1961 const char* PerfDataProto_PerfEventType::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
1962 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1963 _Internal::HasBits has_bits{};
1964 while (!ctx->Done(&ptr)) {
1965 uint32_t tag;
1966 ptr = ::_pbi::ReadTag(ptr, &tag);
1967 switch (tag >> 3) {
1968 // optional uint64 id = 1;
1969 case 1:
1970 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
1971 _Internal::set_has_id(&has_bits);
1972 _impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1973 CHK_(ptr);
1974 } else
1975 goto handle_unusual;
1976 continue;
1977 // optional uint64 name_md5_prefix = 3;
1978 case 3:
1979 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
1980 _Internal::set_has_name_md5_prefix(&has_bits);
1981 _impl_.name_md5_prefix_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1982 CHK_(ptr);
1983 } else
1984 goto handle_unusual;
1985 continue;
1986 default:
1987 goto handle_unusual;
1988 } // switch
1989 handle_unusual:
1990 if ((tag == 0) || ((tag & 7) == 4)) {
1991 CHK_(ptr);
1992 ctx->SetLastTag(tag);
1993 goto message_done;
1994 }
1995 ptr = UnknownFieldParse(
1996 tag,
1997 _internal_metadata_.mutable_unknown_fields<std::string>(),
1998 ptr, ctx);
1999 CHK_(ptr != nullptr);
2000 } // while
2001 message_done:
2002 _impl_._has_bits_.Or(has_bits);
2003 return ptr;
2004 failure:
2005 ptr = nullptr;
2006 goto message_done;
2007 #undef CHK_
2008 }
2009
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const2010 uint8_t* PerfDataProto_PerfEventType::_InternalSerialize(
2011 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
2012 // @@protoc_insertion_point(serialize_to_array_start:metrics.PerfDataProto.PerfEventType)
2013 uint32_t cached_has_bits = 0;
2014 (void) cached_has_bits;
2015
2016 cached_has_bits = _impl_._has_bits_[0];
2017 // optional uint64 id = 1;
2018 if (cached_has_bits & 0x00000001u) {
2019 target = stream->EnsureSpace(target);
2020 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_id(), target);
2021 }
2022
2023 // optional uint64 name_md5_prefix = 3;
2024 if (cached_has_bits & 0x00000002u) {
2025 target = stream->EnsureSpace(target);
2026 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(3, this->_internal_name_md5_prefix(), target);
2027 }
2028
2029 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2030 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
2031 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
2032 }
2033 // @@protoc_insertion_point(serialize_to_array_end:metrics.PerfDataProto.PerfEventType)
2034 return target;
2035 }
2036
ByteSizeLong() const2037 size_t PerfDataProto_PerfEventType::ByteSizeLong() const {
2038 // @@protoc_insertion_point(message_byte_size_start:metrics.PerfDataProto.PerfEventType)
2039 size_t total_size = 0;
2040
2041 uint32_t cached_has_bits = 0;
2042 // Prevent compiler warnings about cached_has_bits being unused
2043 (void) cached_has_bits;
2044
2045 cached_has_bits = _impl_._has_bits_[0];
2046 if (cached_has_bits & 0x00000003u) {
2047 // optional uint64 id = 1;
2048 if (cached_has_bits & 0x00000001u) {
2049 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_id());
2050 }
2051
2052 // optional uint64 name_md5_prefix = 3;
2053 if (cached_has_bits & 0x00000002u) {
2054 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_name_md5_prefix());
2055 }
2056
2057 }
2058 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2059 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
2060 }
2061 int cached_size = ::_pbi::ToCachedSize(total_size);
2062 SetCachedSize(cached_size);
2063 return total_size;
2064 }
2065
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)2066 void PerfDataProto_PerfEventType::CheckTypeAndMergeFrom(
2067 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
2068 MergeFrom(*::_pbi::DownCast<const PerfDataProto_PerfEventType*>(
2069 &from));
2070 }
2071
MergeFrom(const PerfDataProto_PerfEventType & from)2072 void PerfDataProto_PerfEventType::MergeFrom(const PerfDataProto_PerfEventType& from) {
2073 PerfDataProto_PerfEventType* const _this = this;
2074 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.PerfDataProto.PerfEventType)
2075 GOOGLE_DCHECK_NE(&from, _this);
2076 uint32_t cached_has_bits = 0;
2077 (void) cached_has_bits;
2078
2079 cached_has_bits = from._impl_._has_bits_[0];
2080 if (cached_has_bits & 0x00000003u) {
2081 if (cached_has_bits & 0x00000001u) {
2082 _this->_impl_.id_ = from._impl_.id_;
2083 }
2084 if (cached_has_bits & 0x00000002u) {
2085 _this->_impl_.name_md5_prefix_ = from._impl_.name_md5_prefix_;
2086 }
2087 _this->_impl_._has_bits_[0] |= cached_has_bits;
2088 }
2089 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
2090 }
2091
CopyFrom(const PerfDataProto_PerfEventType & from)2092 void PerfDataProto_PerfEventType::CopyFrom(const PerfDataProto_PerfEventType& from) {
2093 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.PerfDataProto.PerfEventType)
2094 if (&from == this) return;
2095 Clear();
2096 MergeFrom(from);
2097 }
2098
IsInitialized() const2099 bool PerfDataProto_PerfEventType::IsInitialized() const {
2100 return true;
2101 }
2102
InternalSwap(PerfDataProto_PerfEventType * other)2103 void PerfDataProto_PerfEventType::InternalSwap(PerfDataProto_PerfEventType* other) {
2104 using std::swap;
2105 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2106 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2107 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
2108 PROTOBUF_FIELD_OFFSET(PerfDataProto_PerfEventType, _impl_.name_md5_prefix_)
2109 + sizeof(PerfDataProto_PerfEventType::_impl_.name_md5_prefix_)
2110 - PROTOBUF_FIELD_OFFSET(PerfDataProto_PerfEventType, _impl_.id_)>(
2111 reinterpret_cast<char*>(&_impl_.id_),
2112 reinterpret_cast<char*>(&other->_impl_.id_));
2113 }
2114
GetTypeName() const2115 std::string PerfDataProto_PerfEventType::GetTypeName() const {
2116 return "metrics.PerfDataProto.PerfEventType";
2117 }
2118
2119
2120 // ===================================================================
2121
2122 class PerfDataProto_SampleInfo::_Internal {
2123 public:
2124 using HasBits = decltype(std::declval<PerfDataProto_SampleInfo>()._impl_._has_bits_);
set_has_pid(HasBits * has_bits)2125 static void set_has_pid(HasBits* has_bits) {
2126 (*has_bits)[0] |= 1u;
2127 }
set_has_tid(HasBits * has_bits)2128 static void set_has_tid(HasBits* has_bits) {
2129 (*has_bits)[0] |= 2u;
2130 }
set_has_sample_time_ns(HasBits * has_bits)2131 static void set_has_sample_time_ns(HasBits* has_bits) {
2132 (*has_bits)[0] |= 4u;
2133 }
set_has_id(HasBits * has_bits)2134 static void set_has_id(HasBits* has_bits) {
2135 (*has_bits)[0] |= 8u;
2136 }
set_has_cpu(HasBits * has_bits)2137 static void set_has_cpu(HasBits* has_bits) {
2138 (*has_bits)[0] |= 16u;
2139 }
2140 };
2141
PerfDataProto_SampleInfo(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)2142 PerfDataProto_SampleInfo::PerfDataProto_SampleInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2143 bool is_message_owned)
2144 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
2145 SharedCtor(arena, is_message_owned);
2146 // @@protoc_insertion_point(arena_constructor:metrics.PerfDataProto.SampleInfo)
2147 }
PerfDataProto_SampleInfo(const PerfDataProto_SampleInfo & from)2148 PerfDataProto_SampleInfo::PerfDataProto_SampleInfo(const PerfDataProto_SampleInfo& from)
2149 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
2150 PerfDataProto_SampleInfo* const _this = this; (void)_this;
2151 new (&_impl_) Impl_{
2152 decltype(_impl_._has_bits_){from._impl_._has_bits_}
2153 , /*decltype(_impl_._cached_size_)*/{}
2154 , decltype(_impl_.pid_){}
2155 , decltype(_impl_.tid_){}
2156 , decltype(_impl_.sample_time_ns_){}
2157 , decltype(_impl_.id_){}
2158 , decltype(_impl_.cpu_){}};
2159
2160 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
2161 ::memcpy(&_impl_.pid_, &from._impl_.pid_,
2162 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.cpu_) -
2163 reinterpret_cast<char*>(&_impl_.pid_)) + sizeof(_impl_.cpu_));
2164 // @@protoc_insertion_point(copy_constructor:metrics.PerfDataProto.SampleInfo)
2165 }
2166
SharedCtor(::_pb::Arena * arena,bool is_message_owned)2167 inline void PerfDataProto_SampleInfo::SharedCtor(
2168 ::_pb::Arena* arena, bool is_message_owned) {
2169 (void)arena;
2170 (void)is_message_owned;
2171 new (&_impl_) Impl_{
2172 decltype(_impl_._has_bits_){}
2173 , /*decltype(_impl_._cached_size_)*/{}
2174 , decltype(_impl_.pid_){0u}
2175 , decltype(_impl_.tid_){0u}
2176 , decltype(_impl_.sample_time_ns_){uint64_t{0u}}
2177 , decltype(_impl_.id_){uint64_t{0u}}
2178 , decltype(_impl_.cpu_){0u}
2179 };
2180 }
2181
~PerfDataProto_SampleInfo()2182 PerfDataProto_SampleInfo::~PerfDataProto_SampleInfo() {
2183 // @@protoc_insertion_point(destructor:metrics.PerfDataProto.SampleInfo)
2184 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
2185 (void)arena;
2186 return;
2187 }
2188 SharedDtor();
2189 }
2190
SharedDtor()2191 inline void PerfDataProto_SampleInfo::SharedDtor() {
2192 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
2193 }
2194
SetCachedSize(int size) const2195 void PerfDataProto_SampleInfo::SetCachedSize(int size) const {
2196 _impl_._cached_size_.Set(size);
2197 }
2198
Clear()2199 void PerfDataProto_SampleInfo::Clear() {
2200 // @@protoc_insertion_point(message_clear_start:metrics.PerfDataProto.SampleInfo)
2201 uint32_t cached_has_bits = 0;
2202 // Prevent compiler warnings about cached_has_bits being unused
2203 (void) cached_has_bits;
2204
2205 cached_has_bits = _impl_._has_bits_[0];
2206 if (cached_has_bits & 0x0000001fu) {
2207 ::memset(&_impl_.pid_, 0, static_cast<size_t>(
2208 reinterpret_cast<char*>(&_impl_.cpu_) -
2209 reinterpret_cast<char*>(&_impl_.pid_)) + sizeof(_impl_.cpu_));
2210 }
2211 _impl_._has_bits_.Clear();
2212 _internal_metadata_.Clear<std::string>();
2213 }
2214
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)2215 const char* PerfDataProto_SampleInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
2216 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2217 _Internal::HasBits has_bits{};
2218 while (!ctx->Done(&ptr)) {
2219 uint32_t tag;
2220 ptr = ::_pbi::ReadTag(ptr, &tag);
2221 switch (tag >> 3) {
2222 // optional uint32 pid = 1;
2223 case 1:
2224 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
2225 _Internal::set_has_pid(&has_bits);
2226 _impl_.pid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2227 CHK_(ptr);
2228 } else
2229 goto handle_unusual;
2230 continue;
2231 // optional uint32 tid = 2;
2232 case 2:
2233 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
2234 _Internal::set_has_tid(&has_bits);
2235 _impl_.tid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2236 CHK_(ptr);
2237 } else
2238 goto handle_unusual;
2239 continue;
2240 // optional uint64 sample_time_ns = 3;
2241 case 3:
2242 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
2243 _Internal::set_has_sample_time_ns(&has_bits);
2244 _impl_.sample_time_ns_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2245 CHK_(ptr);
2246 } else
2247 goto handle_unusual;
2248 continue;
2249 // optional uint64 id = 4;
2250 case 4:
2251 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
2252 _Internal::set_has_id(&has_bits);
2253 _impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2254 CHK_(ptr);
2255 } else
2256 goto handle_unusual;
2257 continue;
2258 // optional uint32 cpu = 5;
2259 case 5:
2260 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
2261 _Internal::set_has_cpu(&has_bits);
2262 _impl_.cpu_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2263 CHK_(ptr);
2264 } else
2265 goto handle_unusual;
2266 continue;
2267 default:
2268 goto handle_unusual;
2269 } // switch
2270 handle_unusual:
2271 if ((tag == 0) || ((tag & 7) == 4)) {
2272 CHK_(ptr);
2273 ctx->SetLastTag(tag);
2274 goto message_done;
2275 }
2276 ptr = UnknownFieldParse(
2277 tag,
2278 _internal_metadata_.mutable_unknown_fields<std::string>(),
2279 ptr, ctx);
2280 CHK_(ptr != nullptr);
2281 } // while
2282 message_done:
2283 _impl_._has_bits_.Or(has_bits);
2284 return ptr;
2285 failure:
2286 ptr = nullptr;
2287 goto message_done;
2288 #undef CHK_
2289 }
2290
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const2291 uint8_t* PerfDataProto_SampleInfo::_InternalSerialize(
2292 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
2293 // @@protoc_insertion_point(serialize_to_array_start:metrics.PerfDataProto.SampleInfo)
2294 uint32_t cached_has_bits = 0;
2295 (void) cached_has_bits;
2296
2297 cached_has_bits = _impl_._has_bits_[0];
2298 // optional uint32 pid = 1;
2299 if (cached_has_bits & 0x00000001u) {
2300 target = stream->EnsureSpace(target);
2301 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_pid(), target);
2302 }
2303
2304 // optional uint32 tid = 2;
2305 if (cached_has_bits & 0x00000002u) {
2306 target = stream->EnsureSpace(target);
2307 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_tid(), target);
2308 }
2309
2310 // optional uint64 sample_time_ns = 3;
2311 if (cached_has_bits & 0x00000004u) {
2312 target = stream->EnsureSpace(target);
2313 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(3, this->_internal_sample_time_ns(), target);
2314 }
2315
2316 // optional uint64 id = 4;
2317 if (cached_has_bits & 0x00000008u) {
2318 target = stream->EnsureSpace(target);
2319 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_id(), target);
2320 }
2321
2322 // optional uint32 cpu = 5;
2323 if (cached_has_bits & 0x00000010u) {
2324 target = stream->EnsureSpace(target);
2325 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(5, this->_internal_cpu(), target);
2326 }
2327
2328 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2329 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
2330 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
2331 }
2332 // @@protoc_insertion_point(serialize_to_array_end:metrics.PerfDataProto.SampleInfo)
2333 return target;
2334 }
2335
ByteSizeLong() const2336 size_t PerfDataProto_SampleInfo::ByteSizeLong() const {
2337 // @@protoc_insertion_point(message_byte_size_start:metrics.PerfDataProto.SampleInfo)
2338 size_t total_size = 0;
2339
2340 uint32_t cached_has_bits = 0;
2341 // Prevent compiler warnings about cached_has_bits being unused
2342 (void) cached_has_bits;
2343
2344 cached_has_bits = _impl_._has_bits_[0];
2345 if (cached_has_bits & 0x0000001fu) {
2346 // optional uint32 pid = 1;
2347 if (cached_has_bits & 0x00000001u) {
2348 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_pid());
2349 }
2350
2351 // optional uint32 tid = 2;
2352 if (cached_has_bits & 0x00000002u) {
2353 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_tid());
2354 }
2355
2356 // optional uint64 sample_time_ns = 3;
2357 if (cached_has_bits & 0x00000004u) {
2358 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_sample_time_ns());
2359 }
2360
2361 // optional uint64 id = 4;
2362 if (cached_has_bits & 0x00000008u) {
2363 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_id());
2364 }
2365
2366 // optional uint32 cpu = 5;
2367 if (cached_has_bits & 0x00000010u) {
2368 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_cpu());
2369 }
2370
2371 }
2372 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2373 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
2374 }
2375 int cached_size = ::_pbi::ToCachedSize(total_size);
2376 SetCachedSize(cached_size);
2377 return total_size;
2378 }
2379
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)2380 void PerfDataProto_SampleInfo::CheckTypeAndMergeFrom(
2381 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
2382 MergeFrom(*::_pbi::DownCast<const PerfDataProto_SampleInfo*>(
2383 &from));
2384 }
2385
MergeFrom(const PerfDataProto_SampleInfo & from)2386 void PerfDataProto_SampleInfo::MergeFrom(const PerfDataProto_SampleInfo& from) {
2387 PerfDataProto_SampleInfo* const _this = this;
2388 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.PerfDataProto.SampleInfo)
2389 GOOGLE_DCHECK_NE(&from, _this);
2390 uint32_t cached_has_bits = 0;
2391 (void) cached_has_bits;
2392
2393 cached_has_bits = from._impl_._has_bits_[0];
2394 if (cached_has_bits & 0x0000001fu) {
2395 if (cached_has_bits & 0x00000001u) {
2396 _this->_impl_.pid_ = from._impl_.pid_;
2397 }
2398 if (cached_has_bits & 0x00000002u) {
2399 _this->_impl_.tid_ = from._impl_.tid_;
2400 }
2401 if (cached_has_bits & 0x00000004u) {
2402 _this->_impl_.sample_time_ns_ = from._impl_.sample_time_ns_;
2403 }
2404 if (cached_has_bits & 0x00000008u) {
2405 _this->_impl_.id_ = from._impl_.id_;
2406 }
2407 if (cached_has_bits & 0x00000010u) {
2408 _this->_impl_.cpu_ = from._impl_.cpu_;
2409 }
2410 _this->_impl_._has_bits_[0] |= cached_has_bits;
2411 }
2412 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
2413 }
2414
CopyFrom(const PerfDataProto_SampleInfo & from)2415 void PerfDataProto_SampleInfo::CopyFrom(const PerfDataProto_SampleInfo& from) {
2416 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.PerfDataProto.SampleInfo)
2417 if (&from == this) return;
2418 Clear();
2419 MergeFrom(from);
2420 }
2421
IsInitialized() const2422 bool PerfDataProto_SampleInfo::IsInitialized() const {
2423 return true;
2424 }
2425
InternalSwap(PerfDataProto_SampleInfo * other)2426 void PerfDataProto_SampleInfo::InternalSwap(PerfDataProto_SampleInfo* other) {
2427 using std::swap;
2428 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2429 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2430 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
2431 PROTOBUF_FIELD_OFFSET(PerfDataProto_SampleInfo, _impl_.cpu_)
2432 + sizeof(PerfDataProto_SampleInfo::_impl_.cpu_)
2433 - PROTOBUF_FIELD_OFFSET(PerfDataProto_SampleInfo, _impl_.pid_)>(
2434 reinterpret_cast<char*>(&_impl_.pid_),
2435 reinterpret_cast<char*>(&other->_impl_.pid_));
2436 }
2437
GetTypeName() const2438 std::string PerfDataProto_SampleInfo::GetTypeName() const {
2439 return "metrics.PerfDataProto.SampleInfo";
2440 }
2441
2442
2443 // ===================================================================
2444
2445 class PerfDataProto_CommEvent::_Internal {
2446 public:
2447 using HasBits = decltype(std::declval<PerfDataProto_CommEvent>()._impl_._has_bits_);
set_has_pid(HasBits * has_bits)2448 static void set_has_pid(HasBits* has_bits) {
2449 (*has_bits)[0] |= 2u;
2450 }
set_has_tid(HasBits * has_bits)2451 static void set_has_tid(HasBits* has_bits) {
2452 (*has_bits)[0] |= 4u;
2453 }
set_has_comm_md5_prefix(HasBits * has_bits)2454 static void set_has_comm_md5_prefix(HasBits* has_bits) {
2455 (*has_bits)[0] |= 8u;
2456 }
set_has_sample_time(HasBits * has_bits)2457 static void set_has_sample_time(HasBits* has_bits) {
2458 (*has_bits)[0] |= 16u;
2459 }
2460 static const ::metrics::PerfDataProto_SampleInfo& sample_info(const PerfDataProto_CommEvent* msg);
set_has_sample_info(HasBits * has_bits)2461 static void set_has_sample_info(HasBits* has_bits) {
2462 (*has_bits)[0] |= 1u;
2463 }
2464 };
2465
2466 const ::metrics::PerfDataProto_SampleInfo&
sample_info(const PerfDataProto_CommEvent * msg)2467 PerfDataProto_CommEvent::_Internal::sample_info(const PerfDataProto_CommEvent* msg) {
2468 return *msg->_impl_.sample_info_;
2469 }
PerfDataProto_CommEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)2470 PerfDataProto_CommEvent::PerfDataProto_CommEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2471 bool is_message_owned)
2472 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
2473 SharedCtor(arena, is_message_owned);
2474 // @@protoc_insertion_point(arena_constructor:metrics.PerfDataProto.CommEvent)
2475 }
PerfDataProto_CommEvent(const PerfDataProto_CommEvent & from)2476 PerfDataProto_CommEvent::PerfDataProto_CommEvent(const PerfDataProto_CommEvent& from)
2477 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
2478 PerfDataProto_CommEvent* const _this = this; (void)_this;
2479 new (&_impl_) Impl_{
2480 decltype(_impl_._has_bits_){from._impl_._has_bits_}
2481 , /*decltype(_impl_._cached_size_)*/{}
2482 , decltype(_impl_.sample_info_){nullptr}
2483 , decltype(_impl_.pid_){}
2484 , decltype(_impl_.tid_){}
2485 , decltype(_impl_.comm_md5_prefix_){}
2486 , decltype(_impl_.sample_time_){}};
2487
2488 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
2489 if (from._internal_has_sample_info()) {
2490 _this->_impl_.sample_info_ = new ::metrics::PerfDataProto_SampleInfo(*from._impl_.sample_info_);
2491 }
2492 ::memcpy(&_impl_.pid_, &from._impl_.pid_,
2493 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.sample_time_) -
2494 reinterpret_cast<char*>(&_impl_.pid_)) + sizeof(_impl_.sample_time_));
2495 // @@protoc_insertion_point(copy_constructor:metrics.PerfDataProto.CommEvent)
2496 }
2497
SharedCtor(::_pb::Arena * arena,bool is_message_owned)2498 inline void PerfDataProto_CommEvent::SharedCtor(
2499 ::_pb::Arena* arena, bool is_message_owned) {
2500 (void)arena;
2501 (void)is_message_owned;
2502 new (&_impl_) Impl_{
2503 decltype(_impl_._has_bits_){}
2504 , /*decltype(_impl_._cached_size_)*/{}
2505 , decltype(_impl_.sample_info_){nullptr}
2506 , decltype(_impl_.pid_){0u}
2507 , decltype(_impl_.tid_){0u}
2508 , decltype(_impl_.comm_md5_prefix_){uint64_t{0u}}
2509 , decltype(_impl_.sample_time_){uint64_t{0u}}
2510 };
2511 }
2512
~PerfDataProto_CommEvent()2513 PerfDataProto_CommEvent::~PerfDataProto_CommEvent() {
2514 // @@protoc_insertion_point(destructor:metrics.PerfDataProto.CommEvent)
2515 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
2516 (void)arena;
2517 return;
2518 }
2519 SharedDtor();
2520 }
2521
SharedDtor()2522 inline void PerfDataProto_CommEvent::SharedDtor() {
2523 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
2524 if (this != internal_default_instance()) delete _impl_.sample_info_;
2525 }
2526
SetCachedSize(int size) const2527 void PerfDataProto_CommEvent::SetCachedSize(int size) const {
2528 _impl_._cached_size_.Set(size);
2529 }
2530
Clear()2531 void PerfDataProto_CommEvent::Clear() {
2532 // @@protoc_insertion_point(message_clear_start:metrics.PerfDataProto.CommEvent)
2533 uint32_t cached_has_bits = 0;
2534 // Prevent compiler warnings about cached_has_bits being unused
2535 (void) cached_has_bits;
2536
2537 cached_has_bits = _impl_._has_bits_[0];
2538 if (cached_has_bits & 0x00000001u) {
2539 GOOGLE_DCHECK(_impl_.sample_info_ != nullptr);
2540 _impl_.sample_info_->Clear();
2541 }
2542 if (cached_has_bits & 0x0000001eu) {
2543 ::memset(&_impl_.pid_, 0, static_cast<size_t>(
2544 reinterpret_cast<char*>(&_impl_.sample_time_) -
2545 reinterpret_cast<char*>(&_impl_.pid_)) + sizeof(_impl_.sample_time_));
2546 }
2547 _impl_._has_bits_.Clear();
2548 _internal_metadata_.Clear<std::string>();
2549 }
2550
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)2551 const char* PerfDataProto_CommEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
2552 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2553 _Internal::HasBits has_bits{};
2554 while (!ctx->Done(&ptr)) {
2555 uint32_t tag;
2556 ptr = ::_pbi::ReadTag(ptr, &tag);
2557 switch (tag >> 3) {
2558 // optional uint32 pid = 1;
2559 case 1:
2560 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
2561 _Internal::set_has_pid(&has_bits);
2562 _impl_.pid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2563 CHK_(ptr);
2564 } else
2565 goto handle_unusual;
2566 continue;
2567 // optional uint32 tid = 2;
2568 case 2:
2569 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
2570 _Internal::set_has_tid(&has_bits);
2571 _impl_.tid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2572 CHK_(ptr);
2573 } else
2574 goto handle_unusual;
2575 continue;
2576 // optional uint64 comm_md5_prefix = 4;
2577 case 4:
2578 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
2579 _Internal::set_has_comm_md5_prefix(&has_bits);
2580 _impl_.comm_md5_prefix_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2581 CHK_(ptr);
2582 } else
2583 goto handle_unusual;
2584 continue;
2585 // optional uint64 sample_time = 5 [deprecated = true];
2586 case 5:
2587 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
2588 _Internal::set_has_sample_time(&has_bits);
2589 _impl_.sample_time_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2590 CHK_(ptr);
2591 } else
2592 goto handle_unusual;
2593 continue;
2594 // optional .metrics.PerfDataProto.SampleInfo sample_info = 6;
2595 case 6:
2596 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) {
2597 ptr = ctx->ParseMessage(_internal_mutable_sample_info(), ptr);
2598 CHK_(ptr);
2599 } else
2600 goto handle_unusual;
2601 continue;
2602 default:
2603 goto handle_unusual;
2604 } // switch
2605 handle_unusual:
2606 if ((tag == 0) || ((tag & 7) == 4)) {
2607 CHK_(ptr);
2608 ctx->SetLastTag(tag);
2609 goto message_done;
2610 }
2611 ptr = UnknownFieldParse(
2612 tag,
2613 _internal_metadata_.mutable_unknown_fields<std::string>(),
2614 ptr, ctx);
2615 CHK_(ptr != nullptr);
2616 } // while
2617 message_done:
2618 _impl_._has_bits_.Or(has_bits);
2619 return ptr;
2620 failure:
2621 ptr = nullptr;
2622 goto message_done;
2623 #undef CHK_
2624 }
2625
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const2626 uint8_t* PerfDataProto_CommEvent::_InternalSerialize(
2627 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
2628 // @@protoc_insertion_point(serialize_to_array_start:metrics.PerfDataProto.CommEvent)
2629 uint32_t cached_has_bits = 0;
2630 (void) cached_has_bits;
2631
2632 cached_has_bits = _impl_._has_bits_[0];
2633 // optional uint32 pid = 1;
2634 if (cached_has_bits & 0x00000002u) {
2635 target = stream->EnsureSpace(target);
2636 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_pid(), target);
2637 }
2638
2639 // optional uint32 tid = 2;
2640 if (cached_has_bits & 0x00000004u) {
2641 target = stream->EnsureSpace(target);
2642 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_tid(), target);
2643 }
2644
2645 // optional uint64 comm_md5_prefix = 4;
2646 if (cached_has_bits & 0x00000008u) {
2647 target = stream->EnsureSpace(target);
2648 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_comm_md5_prefix(), target);
2649 }
2650
2651 // optional uint64 sample_time = 5 [deprecated = true];
2652 if (cached_has_bits & 0x00000010u) {
2653 target = stream->EnsureSpace(target);
2654 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(5, this->_internal_sample_time(), target);
2655 }
2656
2657 // optional .metrics.PerfDataProto.SampleInfo sample_info = 6;
2658 if (cached_has_bits & 0x00000001u) {
2659 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2660 InternalWriteMessage(6, _Internal::sample_info(this),
2661 _Internal::sample_info(this).GetCachedSize(), target, stream);
2662 }
2663
2664 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2665 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
2666 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
2667 }
2668 // @@protoc_insertion_point(serialize_to_array_end:metrics.PerfDataProto.CommEvent)
2669 return target;
2670 }
2671
ByteSizeLong() const2672 size_t PerfDataProto_CommEvent::ByteSizeLong() const {
2673 // @@protoc_insertion_point(message_byte_size_start:metrics.PerfDataProto.CommEvent)
2674 size_t total_size = 0;
2675
2676 uint32_t cached_has_bits = 0;
2677 // Prevent compiler warnings about cached_has_bits being unused
2678 (void) cached_has_bits;
2679
2680 cached_has_bits = _impl_._has_bits_[0];
2681 if (cached_has_bits & 0x0000001fu) {
2682 // optional .metrics.PerfDataProto.SampleInfo sample_info = 6;
2683 if (cached_has_bits & 0x00000001u) {
2684 total_size += 1 +
2685 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2686 *_impl_.sample_info_);
2687 }
2688
2689 // optional uint32 pid = 1;
2690 if (cached_has_bits & 0x00000002u) {
2691 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_pid());
2692 }
2693
2694 // optional uint32 tid = 2;
2695 if (cached_has_bits & 0x00000004u) {
2696 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_tid());
2697 }
2698
2699 // optional uint64 comm_md5_prefix = 4;
2700 if (cached_has_bits & 0x00000008u) {
2701 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_comm_md5_prefix());
2702 }
2703
2704 // optional uint64 sample_time = 5 [deprecated = true];
2705 if (cached_has_bits & 0x00000010u) {
2706 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_sample_time());
2707 }
2708
2709 }
2710 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2711 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
2712 }
2713 int cached_size = ::_pbi::ToCachedSize(total_size);
2714 SetCachedSize(cached_size);
2715 return total_size;
2716 }
2717
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)2718 void PerfDataProto_CommEvent::CheckTypeAndMergeFrom(
2719 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
2720 MergeFrom(*::_pbi::DownCast<const PerfDataProto_CommEvent*>(
2721 &from));
2722 }
2723
MergeFrom(const PerfDataProto_CommEvent & from)2724 void PerfDataProto_CommEvent::MergeFrom(const PerfDataProto_CommEvent& from) {
2725 PerfDataProto_CommEvent* const _this = this;
2726 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.PerfDataProto.CommEvent)
2727 GOOGLE_DCHECK_NE(&from, _this);
2728 uint32_t cached_has_bits = 0;
2729 (void) cached_has_bits;
2730
2731 cached_has_bits = from._impl_._has_bits_[0];
2732 if (cached_has_bits & 0x0000001fu) {
2733 if (cached_has_bits & 0x00000001u) {
2734 _this->_internal_mutable_sample_info()->::metrics::PerfDataProto_SampleInfo::MergeFrom(
2735 from._internal_sample_info());
2736 }
2737 if (cached_has_bits & 0x00000002u) {
2738 _this->_impl_.pid_ = from._impl_.pid_;
2739 }
2740 if (cached_has_bits & 0x00000004u) {
2741 _this->_impl_.tid_ = from._impl_.tid_;
2742 }
2743 if (cached_has_bits & 0x00000008u) {
2744 _this->_impl_.comm_md5_prefix_ = from._impl_.comm_md5_prefix_;
2745 }
2746 if (cached_has_bits & 0x00000010u) {
2747 _this->_impl_.sample_time_ = from._impl_.sample_time_;
2748 }
2749 _this->_impl_._has_bits_[0] |= cached_has_bits;
2750 }
2751 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
2752 }
2753
CopyFrom(const PerfDataProto_CommEvent & from)2754 void PerfDataProto_CommEvent::CopyFrom(const PerfDataProto_CommEvent& from) {
2755 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.PerfDataProto.CommEvent)
2756 if (&from == this) return;
2757 Clear();
2758 MergeFrom(from);
2759 }
2760
IsInitialized() const2761 bool PerfDataProto_CommEvent::IsInitialized() const {
2762 return true;
2763 }
2764
InternalSwap(PerfDataProto_CommEvent * other)2765 void PerfDataProto_CommEvent::InternalSwap(PerfDataProto_CommEvent* other) {
2766 using std::swap;
2767 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2768 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2769 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
2770 PROTOBUF_FIELD_OFFSET(PerfDataProto_CommEvent, _impl_.sample_time_)
2771 + sizeof(PerfDataProto_CommEvent::_impl_.sample_time_)
2772 - PROTOBUF_FIELD_OFFSET(PerfDataProto_CommEvent, _impl_.sample_info_)>(
2773 reinterpret_cast<char*>(&_impl_.sample_info_),
2774 reinterpret_cast<char*>(&other->_impl_.sample_info_));
2775 }
2776
GetTypeName() const2777 std::string PerfDataProto_CommEvent::GetTypeName() const {
2778 return "metrics.PerfDataProto.CommEvent";
2779 }
2780
2781
2782 // ===================================================================
2783
2784 class PerfDataProto_MMapEvent::_Internal {
2785 public:
2786 using HasBits = decltype(std::declval<PerfDataProto_MMapEvent>()._impl_._has_bits_);
set_has_pid(HasBits * has_bits)2787 static void set_has_pid(HasBits* has_bits) {
2788 (*has_bits)[0] |= 2u;
2789 }
set_has_tid(HasBits * has_bits)2790 static void set_has_tid(HasBits* has_bits) {
2791 (*has_bits)[0] |= 4u;
2792 }
set_has_start(HasBits * has_bits)2793 static void set_has_start(HasBits* has_bits) {
2794 (*has_bits)[0] |= 8u;
2795 }
set_has_len(HasBits * has_bits)2796 static void set_has_len(HasBits* has_bits) {
2797 (*has_bits)[0] |= 16u;
2798 }
set_has_pgoff(HasBits * has_bits)2799 static void set_has_pgoff(HasBits* has_bits) {
2800 (*has_bits)[0] |= 32u;
2801 }
set_has_filename_md5_prefix(HasBits * has_bits)2802 static void set_has_filename_md5_prefix(HasBits* has_bits) {
2803 (*has_bits)[0] |= 64u;
2804 }
set_has_root_path_md5_prefix(HasBits * has_bits)2805 static void set_has_root_path_md5_prefix(HasBits* has_bits) {
2806 (*has_bits)[0] |= 128u;
2807 }
2808 static const ::metrics::PerfDataProto_SampleInfo& sample_info(const PerfDataProto_MMapEvent* msg);
set_has_sample_info(HasBits * has_bits)2809 static void set_has_sample_info(HasBits* has_bits) {
2810 (*has_bits)[0] |= 1u;
2811 }
2812 };
2813
2814 const ::metrics::PerfDataProto_SampleInfo&
sample_info(const PerfDataProto_MMapEvent * msg)2815 PerfDataProto_MMapEvent::_Internal::sample_info(const PerfDataProto_MMapEvent* msg) {
2816 return *msg->_impl_.sample_info_;
2817 }
PerfDataProto_MMapEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)2818 PerfDataProto_MMapEvent::PerfDataProto_MMapEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2819 bool is_message_owned)
2820 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
2821 SharedCtor(arena, is_message_owned);
2822 // @@protoc_insertion_point(arena_constructor:metrics.PerfDataProto.MMapEvent)
2823 }
PerfDataProto_MMapEvent(const PerfDataProto_MMapEvent & from)2824 PerfDataProto_MMapEvent::PerfDataProto_MMapEvent(const PerfDataProto_MMapEvent& from)
2825 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
2826 PerfDataProto_MMapEvent* const _this = this; (void)_this;
2827 new (&_impl_) Impl_{
2828 decltype(_impl_._has_bits_){from._impl_._has_bits_}
2829 , /*decltype(_impl_._cached_size_)*/{}
2830 , decltype(_impl_.sample_info_){nullptr}
2831 , decltype(_impl_.pid_){}
2832 , decltype(_impl_.tid_){}
2833 , decltype(_impl_.start_){}
2834 , decltype(_impl_.len_){}
2835 , decltype(_impl_.pgoff_){}
2836 , decltype(_impl_.filename_md5_prefix_){}
2837 , decltype(_impl_.root_path_md5_prefix_){}};
2838
2839 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
2840 if (from._internal_has_sample_info()) {
2841 _this->_impl_.sample_info_ = new ::metrics::PerfDataProto_SampleInfo(*from._impl_.sample_info_);
2842 }
2843 ::memcpy(&_impl_.pid_, &from._impl_.pid_,
2844 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.root_path_md5_prefix_) -
2845 reinterpret_cast<char*>(&_impl_.pid_)) + sizeof(_impl_.root_path_md5_prefix_));
2846 // @@protoc_insertion_point(copy_constructor:metrics.PerfDataProto.MMapEvent)
2847 }
2848
SharedCtor(::_pb::Arena * arena,bool is_message_owned)2849 inline void PerfDataProto_MMapEvent::SharedCtor(
2850 ::_pb::Arena* arena, bool is_message_owned) {
2851 (void)arena;
2852 (void)is_message_owned;
2853 new (&_impl_) Impl_{
2854 decltype(_impl_._has_bits_){}
2855 , /*decltype(_impl_._cached_size_)*/{}
2856 , decltype(_impl_.sample_info_){nullptr}
2857 , decltype(_impl_.pid_){0u}
2858 , decltype(_impl_.tid_){0u}
2859 , decltype(_impl_.start_){uint64_t{0u}}
2860 , decltype(_impl_.len_){uint64_t{0u}}
2861 , decltype(_impl_.pgoff_){uint64_t{0u}}
2862 , decltype(_impl_.filename_md5_prefix_){uint64_t{0u}}
2863 , decltype(_impl_.root_path_md5_prefix_){uint64_t{0u}}
2864 };
2865 }
2866
~PerfDataProto_MMapEvent()2867 PerfDataProto_MMapEvent::~PerfDataProto_MMapEvent() {
2868 // @@protoc_insertion_point(destructor:metrics.PerfDataProto.MMapEvent)
2869 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
2870 (void)arena;
2871 return;
2872 }
2873 SharedDtor();
2874 }
2875
SharedDtor()2876 inline void PerfDataProto_MMapEvent::SharedDtor() {
2877 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
2878 if (this != internal_default_instance()) delete _impl_.sample_info_;
2879 }
2880
SetCachedSize(int size) const2881 void PerfDataProto_MMapEvent::SetCachedSize(int size) const {
2882 _impl_._cached_size_.Set(size);
2883 }
2884
Clear()2885 void PerfDataProto_MMapEvent::Clear() {
2886 // @@protoc_insertion_point(message_clear_start:metrics.PerfDataProto.MMapEvent)
2887 uint32_t cached_has_bits = 0;
2888 // Prevent compiler warnings about cached_has_bits being unused
2889 (void) cached_has_bits;
2890
2891 cached_has_bits = _impl_._has_bits_[0];
2892 if (cached_has_bits & 0x00000001u) {
2893 GOOGLE_DCHECK(_impl_.sample_info_ != nullptr);
2894 _impl_.sample_info_->Clear();
2895 }
2896 if (cached_has_bits & 0x000000feu) {
2897 ::memset(&_impl_.pid_, 0, static_cast<size_t>(
2898 reinterpret_cast<char*>(&_impl_.root_path_md5_prefix_) -
2899 reinterpret_cast<char*>(&_impl_.pid_)) + sizeof(_impl_.root_path_md5_prefix_));
2900 }
2901 _impl_._has_bits_.Clear();
2902 _internal_metadata_.Clear<std::string>();
2903 }
2904
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)2905 const char* PerfDataProto_MMapEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
2906 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2907 _Internal::HasBits has_bits{};
2908 while (!ctx->Done(&ptr)) {
2909 uint32_t tag;
2910 ptr = ::_pbi::ReadTag(ptr, &tag);
2911 switch (tag >> 3) {
2912 // optional uint32 pid = 1;
2913 case 1:
2914 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
2915 _Internal::set_has_pid(&has_bits);
2916 _impl_.pid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2917 CHK_(ptr);
2918 } else
2919 goto handle_unusual;
2920 continue;
2921 // optional uint32 tid = 2;
2922 case 2:
2923 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
2924 _Internal::set_has_tid(&has_bits);
2925 _impl_.tid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2926 CHK_(ptr);
2927 } else
2928 goto handle_unusual;
2929 continue;
2930 // optional uint64 start = 3;
2931 case 3:
2932 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
2933 _Internal::set_has_start(&has_bits);
2934 _impl_.start_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2935 CHK_(ptr);
2936 } else
2937 goto handle_unusual;
2938 continue;
2939 // optional uint64 len = 4;
2940 case 4:
2941 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
2942 _Internal::set_has_len(&has_bits);
2943 _impl_.len_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2944 CHK_(ptr);
2945 } else
2946 goto handle_unusual;
2947 continue;
2948 // optional uint64 pgoff = 5;
2949 case 5:
2950 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
2951 _Internal::set_has_pgoff(&has_bits);
2952 _impl_.pgoff_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2953 CHK_(ptr);
2954 } else
2955 goto handle_unusual;
2956 continue;
2957 // optional uint64 filename_md5_prefix = 7;
2958 case 7:
2959 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
2960 _Internal::set_has_filename_md5_prefix(&has_bits);
2961 _impl_.filename_md5_prefix_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2962 CHK_(ptr);
2963 } else
2964 goto handle_unusual;
2965 continue;
2966 // optional .metrics.PerfDataProto.SampleInfo sample_info = 8;
2967 case 8:
2968 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) {
2969 ptr = ctx->ParseMessage(_internal_mutable_sample_info(), ptr);
2970 CHK_(ptr);
2971 } else
2972 goto handle_unusual;
2973 continue;
2974 // optional uint64 root_path_md5_prefix = 16;
2975 case 16:
2976 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 128)) {
2977 _Internal::set_has_root_path_md5_prefix(&has_bits);
2978 _impl_.root_path_md5_prefix_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2979 CHK_(ptr);
2980 } else
2981 goto handle_unusual;
2982 continue;
2983 default:
2984 goto handle_unusual;
2985 } // switch
2986 handle_unusual:
2987 if ((tag == 0) || ((tag & 7) == 4)) {
2988 CHK_(ptr);
2989 ctx->SetLastTag(tag);
2990 goto message_done;
2991 }
2992 ptr = UnknownFieldParse(
2993 tag,
2994 _internal_metadata_.mutable_unknown_fields<std::string>(),
2995 ptr, ctx);
2996 CHK_(ptr != nullptr);
2997 } // while
2998 message_done:
2999 _impl_._has_bits_.Or(has_bits);
3000 return ptr;
3001 failure:
3002 ptr = nullptr;
3003 goto message_done;
3004 #undef CHK_
3005 }
3006
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const3007 uint8_t* PerfDataProto_MMapEvent::_InternalSerialize(
3008 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
3009 // @@protoc_insertion_point(serialize_to_array_start:metrics.PerfDataProto.MMapEvent)
3010 uint32_t cached_has_bits = 0;
3011 (void) cached_has_bits;
3012
3013 cached_has_bits = _impl_._has_bits_[0];
3014 // optional uint32 pid = 1;
3015 if (cached_has_bits & 0x00000002u) {
3016 target = stream->EnsureSpace(target);
3017 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_pid(), target);
3018 }
3019
3020 // optional uint32 tid = 2;
3021 if (cached_has_bits & 0x00000004u) {
3022 target = stream->EnsureSpace(target);
3023 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_tid(), target);
3024 }
3025
3026 // optional uint64 start = 3;
3027 if (cached_has_bits & 0x00000008u) {
3028 target = stream->EnsureSpace(target);
3029 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(3, this->_internal_start(), target);
3030 }
3031
3032 // optional uint64 len = 4;
3033 if (cached_has_bits & 0x00000010u) {
3034 target = stream->EnsureSpace(target);
3035 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_len(), target);
3036 }
3037
3038 // optional uint64 pgoff = 5;
3039 if (cached_has_bits & 0x00000020u) {
3040 target = stream->EnsureSpace(target);
3041 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(5, this->_internal_pgoff(), target);
3042 }
3043
3044 // optional uint64 filename_md5_prefix = 7;
3045 if (cached_has_bits & 0x00000040u) {
3046 target = stream->EnsureSpace(target);
3047 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(7, this->_internal_filename_md5_prefix(), target);
3048 }
3049
3050 // optional .metrics.PerfDataProto.SampleInfo sample_info = 8;
3051 if (cached_has_bits & 0x00000001u) {
3052 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3053 InternalWriteMessage(8, _Internal::sample_info(this),
3054 _Internal::sample_info(this).GetCachedSize(), target, stream);
3055 }
3056
3057 // optional uint64 root_path_md5_prefix = 16;
3058 if (cached_has_bits & 0x00000080u) {
3059 target = stream->EnsureSpace(target);
3060 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(16, this->_internal_root_path_md5_prefix(), target);
3061 }
3062
3063 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3064 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
3065 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
3066 }
3067 // @@protoc_insertion_point(serialize_to_array_end:metrics.PerfDataProto.MMapEvent)
3068 return target;
3069 }
3070
ByteSizeLong() const3071 size_t PerfDataProto_MMapEvent::ByteSizeLong() const {
3072 // @@protoc_insertion_point(message_byte_size_start:metrics.PerfDataProto.MMapEvent)
3073 size_t total_size = 0;
3074
3075 uint32_t cached_has_bits = 0;
3076 // Prevent compiler warnings about cached_has_bits being unused
3077 (void) cached_has_bits;
3078
3079 cached_has_bits = _impl_._has_bits_[0];
3080 if (cached_has_bits & 0x000000ffu) {
3081 // optional .metrics.PerfDataProto.SampleInfo sample_info = 8;
3082 if (cached_has_bits & 0x00000001u) {
3083 total_size += 1 +
3084 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
3085 *_impl_.sample_info_);
3086 }
3087
3088 // optional uint32 pid = 1;
3089 if (cached_has_bits & 0x00000002u) {
3090 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_pid());
3091 }
3092
3093 // optional uint32 tid = 2;
3094 if (cached_has_bits & 0x00000004u) {
3095 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_tid());
3096 }
3097
3098 // optional uint64 start = 3;
3099 if (cached_has_bits & 0x00000008u) {
3100 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_start());
3101 }
3102
3103 // optional uint64 len = 4;
3104 if (cached_has_bits & 0x00000010u) {
3105 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_len());
3106 }
3107
3108 // optional uint64 pgoff = 5;
3109 if (cached_has_bits & 0x00000020u) {
3110 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_pgoff());
3111 }
3112
3113 // optional uint64 filename_md5_prefix = 7;
3114 if (cached_has_bits & 0x00000040u) {
3115 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_filename_md5_prefix());
3116 }
3117
3118 // optional uint64 root_path_md5_prefix = 16;
3119 if (cached_has_bits & 0x00000080u) {
3120 total_size += 2 +
3121 ::_pbi::WireFormatLite::UInt64Size(
3122 this->_internal_root_path_md5_prefix());
3123 }
3124
3125 }
3126 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3127 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
3128 }
3129 int cached_size = ::_pbi::ToCachedSize(total_size);
3130 SetCachedSize(cached_size);
3131 return total_size;
3132 }
3133
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)3134 void PerfDataProto_MMapEvent::CheckTypeAndMergeFrom(
3135 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
3136 MergeFrom(*::_pbi::DownCast<const PerfDataProto_MMapEvent*>(
3137 &from));
3138 }
3139
MergeFrom(const PerfDataProto_MMapEvent & from)3140 void PerfDataProto_MMapEvent::MergeFrom(const PerfDataProto_MMapEvent& from) {
3141 PerfDataProto_MMapEvent* const _this = this;
3142 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.PerfDataProto.MMapEvent)
3143 GOOGLE_DCHECK_NE(&from, _this);
3144 uint32_t cached_has_bits = 0;
3145 (void) cached_has_bits;
3146
3147 cached_has_bits = from._impl_._has_bits_[0];
3148 if (cached_has_bits & 0x000000ffu) {
3149 if (cached_has_bits & 0x00000001u) {
3150 _this->_internal_mutable_sample_info()->::metrics::PerfDataProto_SampleInfo::MergeFrom(
3151 from._internal_sample_info());
3152 }
3153 if (cached_has_bits & 0x00000002u) {
3154 _this->_impl_.pid_ = from._impl_.pid_;
3155 }
3156 if (cached_has_bits & 0x00000004u) {
3157 _this->_impl_.tid_ = from._impl_.tid_;
3158 }
3159 if (cached_has_bits & 0x00000008u) {
3160 _this->_impl_.start_ = from._impl_.start_;
3161 }
3162 if (cached_has_bits & 0x00000010u) {
3163 _this->_impl_.len_ = from._impl_.len_;
3164 }
3165 if (cached_has_bits & 0x00000020u) {
3166 _this->_impl_.pgoff_ = from._impl_.pgoff_;
3167 }
3168 if (cached_has_bits & 0x00000040u) {
3169 _this->_impl_.filename_md5_prefix_ = from._impl_.filename_md5_prefix_;
3170 }
3171 if (cached_has_bits & 0x00000080u) {
3172 _this->_impl_.root_path_md5_prefix_ = from._impl_.root_path_md5_prefix_;
3173 }
3174 _this->_impl_._has_bits_[0] |= cached_has_bits;
3175 }
3176 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
3177 }
3178
CopyFrom(const PerfDataProto_MMapEvent & from)3179 void PerfDataProto_MMapEvent::CopyFrom(const PerfDataProto_MMapEvent& from) {
3180 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.PerfDataProto.MMapEvent)
3181 if (&from == this) return;
3182 Clear();
3183 MergeFrom(from);
3184 }
3185
IsInitialized() const3186 bool PerfDataProto_MMapEvent::IsInitialized() const {
3187 return true;
3188 }
3189
InternalSwap(PerfDataProto_MMapEvent * other)3190 void PerfDataProto_MMapEvent::InternalSwap(PerfDataProto_MMapEvent* other) {
3191 using std::swap;
3192 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
3193 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
3194 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
3195 PROTOBUF_FIELD_OFFSET(PerfDataProto_MMapEvent, _impl_.root_path_md5_prefix_)
3196 + sizeof(PerfDataProto_MMapEvent::_impl_.root_path_md5_prefix_)
3197 - PROTOBUF_FIELD_OFFSET(PerfDataProto_MMapEvent, _impl_.sample_info_)>(
3198 reinterpret_cast<char*>(&_impl_.sample_info_),
3199 reinterpret_cast<char*>(&other->_impl_.sample_info_));
3200 }
3201
GetTypeName() const3202 std::string PerfDataProto_MMapEvent::GetTypeName() const {
3203 return "metrics.PerfDataProto.MMapEvent";
3204 }
3205
3206
3207 // ===================================================================
3208
3209 class PerfDataProto_LostEvent::_Internal {
3210 public:
3211 using HasBits = decltype(std::declval<PerfDataProto_LostEvent>()._impl_._has_bits_);
set_has_id(HasBits * has_bits)3212 static void set_has_id(HasBits* has_bits) {
3213 (*has_bits)[0] |= 2u;
3214 }
set_has_lost(HasBits * has_bits)3215 static void set_has_lost(HasBits* has_bits) {
3216 (*has_bits)[0] |= 4u;
3217 }
3218 static const ::metrics::PerfDataProto_SampleInfo& sample_info(const PerfDataProto_LostEvent* msg);
set_has_sample_info(HasBits * has_bits)3219 static void set_has_sample_info(HasBits* has_bits) {
3220 (*has_bits)[0] |= 1u;
3221 }
3222 };
3223
3224 const ::metrics::PerfDataProto_SampleInfo&
sample_info(const PerfDataProto_LostEvent * msg)3225 PerfDataProto_LostEvent::_Internal::sample_info(const PerfDataProto_LostEvent* msg) {
3226 return *msg->_impl_.sample_info_;
3227 }
PerfDataProto_LostEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)3228 PerfDataProto_LostEvent::PerfDataProto_LostEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
3229 bool is_message_owned)
3230 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
3231 SharedCtor(arena, is_message_owned);
3232 // @@protoc_insertion_point(arena_constructor:metrics.PerfDataProto.LostEvent)
3233 }
PerfDataProto_LostEvent(const PerfDataProto_LostEvent & from)3234 PerfDataProto_LostEvent::PerfDataProto_LostEvent(const PerfDataProto_LostEvent& from)
3235 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
3236 PerfDataProto_LostEvent* const _this = this; (void)_this;
3237 new (&_impl_) Impl_{
3238 decltype(_impl_._has_bits_){from._impl_._has_bits_}
3239 , /*decltype(_impl_._cached_size_)*/{}
3240 , decltype(_impl_.sample_info_){nullptr}
3241 , decltype(_impl_.id_){}
3242 , decltype(_impl_.lost_){}};
3243
3244 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
3245 if (from._internal_has_sample_info()) {
3246 _this->_impl_.sample_info_ = new ::metrics::PerfDataProto_SampleInfo(*from._impl_.sample_info_);
3247 }
3248 ::memcpy(&_impl_.id_, &from._impl_.id_,
3249 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.lost_) -
3250 reinterpret_cast<char*>(&_impl_.id_)) + sizeof(_impl_.lost_));
3251 // @@protoc_insertion_point(copy_constructor:metrics.PerfDataProto.LostEvent)
3252 }
3253
SharedCtor(::_pb::Arena * arena,bool is_message_owned)3254 inline void PerfDataProto_LostEvent::SharedCtor(
3255 ::_pb::Arena* arena, bool is_message_owned) {
3256 (void)arena;
3257 (void)is_message_owned;
3258 new (&_impl_) Impl_{
3259 decltype(_impl_._has_bits_){}
3260 , /*decltype(_impl_._cached_size_)*/{}
3261 , decltype(_impl_.sample_info_){nullptr}
3262 , decltype(_impl_.id_){uint64_t{0u}}
3263 , decltype(_impl_.lost_){uint64_t{0u}}
3264 };
3265 }
3266
~PerfDataProto_LostEvent()3267 PerfDataProto_LostEvent::~PerfDataProto_LostEvent() {
3268 // @@protoc_insertion_point(destructor:metrics.PerfDataProto.LostEvent)
3269 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
3270 (void)arena;
3271 return;
3272 }
3273 SharedDtor();
3274 }
3275
SharedDtor()3276 inline void PerfDataProto_LostEvent::SharedDtor() {
3277 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
3278 if (this != internal_default_instance()) delete _impl_.sample_info_;
3279 }
3280
SetCachedSize(int size) const3281 void PerfDataProto_LostEvent::SetCachedSize(int size) const {
3282 _impl_._cached_size_.Set(size);
3283 }
3284
Clear()3285 void PerfDataProto_LostEvent::Clear() {
3286 // @@protoc_insertion_point(message_clear_start:metrics.PerfDataProto.LostEvent)
3287 uint32_t cached_has_bits = 0;
3288 // Prevent compiler warnings about cached_has_bits being unused
3289 (void) cached_has_bits;
3290
3291 cached_has_bits = _impl_._has_bits_[0];
3292 if (cached_has_bits & 0x00000001u) {
3293 GOOGLE_DCHECK(_impl_.sample_info_ != nullptr);
3294 _impl_.sample_info_->Clear();
3295 }
3296 if (cached_has_bits & 0x00000006u) {
3297 ::memset(&_impl_.id_, 0, static_cast<size_t>(
3298 reinterpret_cast<char*>(&_impl_.lost_) -
3299 reinterpret_cast<char*>(&_impl_.id_)) + sizeof(_impl_.lost_));
3300 }
3301 _impl_._has_bits_.Clear();
3302 _internal_metadata_.Clear<std::string>();
3303 }
3304
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)3305 const char* PerfDataProto_LostEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
3306 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
3307 _Internal::HasBits has_bits{};
3308 while (!ctx->Done(&ptr)) {
3309 uint32_t tag;
3310 ptr = ::_pbi::ReadTag(ptr, &tag);
3311 switch (tag >> 3) {
3312 // optional uint64 id = 1;
3313 case 1:
3314 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
3315 _Internal::set_has_id(&has_bits);
3316 _impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
3317 CHK_(ptr);
3318 } else
3319 goto handle_unusual;
3320 continue;
3321 // optional uint64 lost = 2;
3322 case 2:
3323 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
3324 _Internal::set_has_lost(&has_bits);
3325 _impl_.lost_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
3326 CHK_(ptr);
3327 } else
3328 goto handle_unusual;
3329 continue;
3330 // optional .metrics.PerfDataProto.SampleInfo sample_info = 3;
3331 case 3:
3332 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
3333 ptr = ctx->ParseMessage(_internal_mutable_sample_info(), ptr);
3334 CHK_(ptr);
3335 } else
3336 goto handle_unusual;
3337 continue;
3338 default:
3339 goto handle_unusual;
3340 } // switch
3341 handle_unusual:
3342 if ((tag == 0) || ((tag & 7) == 4)) {
3343 CHK_(ptr);
3344 ctx->SetLastTag(tag);
3345 goto message_done;
3346 }
3347 ptr = UnknownFieldParse(
3348 tag,
3349 _internal_metadata_.mutable_unknown_fields<std::string>(),
3350 ptr, ctx);
3351 CHK_(ptr != nullptr);
3352 } // while
3353 message_done:
3354 _impl_._has_bits_.Or(has_bits);
3355 return ptr;
3356 failure:
3357 ptr = nullptr;
3358 goto message_done;
3359 #undef CHK_
3360 }
3361
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const3362 uint8_t* PerfDataProto_LostEvent::_InternalSerialize(
3363 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
3364 // @@protoc_insertion_point(serialize_to_array_start:metrics.PerfDataProto.LostEvent)
3365 uint32_t cached_has_bits = 0;
3366 (void) cached_has_bits;
3367
3368 cached_has_bits = _impl_._has_bits_[0];
3369 // optional uint64 id = 1;
3370 if (cached_has_bits & 0x00000002u) {
3371 target = stream->EnsureSpace(target);
3372 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_id(), target);
3373 }
3374
3375 // optional uint64 lost = 2;
3376 if (cached_has_bits & 0x00000004u) {
3377 target = stream->EnsureSpace(target);
3378 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_lost(), target);
3379 }
3380
3381 // optional .metrics.PerfDataProto.SampleInfo sample_info = 3;
3382 if (cached_has_bits & 0x00000001u) {
3383 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3384 InternalWriteMessage(3, _Internal::sample_info(this),
3385 _Internal::sample_info(this).GetCachedSize(), target, stream);
3386 }
3387
3388 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3389 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
3390 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
3391 }
3392 // @@protoc_insertion_point(serialize_to_array_end:metrics.PerfDataProto.LostEvent)
3393 return target;
3394 }
3395
ByteSizeLong() const3396 size_t PerfDataProto_LostEvent::ByteSizeLong() const {
3397 // @@protoc_insertion_point(message_byte_size_start:metrics.PerfDataProto.LostEvent)
3398 size_t total_size = 0;
3399
3400 uint32_t cached_has_bits = 0;
3401 // Prevent compiler warnings about cached_has_bits being unused
3402 (void) cached_has_bits;
3403
3404 cached_has_bits = _impl_._has_bits_[0];
3405 if (cached_has_bits & 0x00000007u) {
3406 // optional .metrics.PerfDataProto.SampleInfo sample_info = 3;
3407 if (cached_has_bits & 0x00000001u) {
3408 total_size += 1 +
3409 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
3410 *_impl_.sample_info_);
3411 }
3412
3413 // optional uint64 id = 1;
3414 if (cached_has_bits & 0x00000002u) {
3415 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_id());
3416 }
3417
3418 // optional uint64 lost = 2;
3419 if (cached_has_bits & 0x00000004u) {
3420 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_lost());
3421 }
3422
3423 }
3424 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3425 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
3426 }
3427 int cached_size = ::_pbi::ToCachedSize(total_size);
3428 SetCachedSize(cached_size);
3429 return total_size;
3430 }
3431
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)3432 void PerfDataProto_LostEvent::CheckTypeAndMergeFrom(
3433 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
3434 MergeFrom(*::_pbi::DownCast<const PerfDataProto_LostEvent*>(
3435 &from));
3436 }
3437
MergeFrom(const PerfDataProto_LostEvent & from)3438 void PerfDataProto_LostEvent::MergeFrom(const PerfDataProto_LostEvent& from) {
3439 PerfDataProto_LostEvent* const _this = this;
3440 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.PerfDataProto.LostEvent)
3441 GOOGLE_DCHECK_NE(&from, _this);
3442 uint32_t cached_has_bits = 0;
3443 (void) cached_has_bits;
3444
3445 cached_has_bits = from._impl_._has_bits_[0];
3446 if (cached_has_bits & 0x00000007u) {
3447 if (cached_has_bits & 0x00000001u) {
3448 _this->_internal_mutable_sample_info()->::metrics::PerfDataProto_SampleInfo::MergeFrom(
3449 from._internal_sample_info());
3450 }
3451 if (cached_has_bits & 0x00000002u) {
3452 _this->_impl_.id_ = from._impl_.id_;
3453 }
3454 if (cached_has_bits & 0x00000004u) {
3455 _this->_impl_.lost_ = from._impl_.lost_;
3456 }
3457 _this->_impl_._has_bits_[0] |= cached_has_bits;
3458 }
3459 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
3460 }
3461
CopyFrom(const PerfDataProto_LostEvent & from)3462 void PerfDataProto_LostEvent::CopyFrom(const PerfDataProto_LostEvent& from) {
3463 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.PerfDataProto.LostEvent)
3464 if (&from == this) return;
3465 Clear();
3466 MergeFrom(from);
3467 }
3468
IsInitialized() const3469 bool PerfDataProto_LostEvent::IsInitialized() const {
3470 return true;
3471 }
3472
InternalSwap(PerfDataProto_LostEvent * other)3473 void PerfDataProto_LostEvent::InternalSwap(PerfDataProto_LostEvent* other) {
3474 using std::swap;
3475 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
3476 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
3477 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
3478 PROTOBUF_FIELD_OFFSET(PerfDataProto_LostEvent, _impl_.lost_)
3479 + sizeof(PerfDataProto_LostEvent::_impl_.lost_)
3480 - PROTOBUF_FIELD_OFFSET(PerfDataProto_LostEvent, _impl_.sample_info_)>(
3481 reinterpret_cast<char*>(&_impl_.sample_info_),
3482 reinterpret_cast<char*>(&other->_impl_.sample_info_));
3483 }
3484
GetTypeName() const3485 std::string PerfDataProto_LostEvent::GetTypeName() const {
3486 return "metrics.PerfDataProto.LostEvent";
3487 }
3488
3489
3490 // ===================================================================
3491
3492 class PerfDataProto_ThrottleEvent::_Internal {
3493 public:
3494 using HasBits = decltype(std::declval<PerfDataProto_ThrottleEvent>()._impl_._has_bits_);
set_has_time_ns(HasBits * has_bits)3495 static void set_has_time_ns(HasBits* has_bits) {
3496 (*has_bits)[0] |= 2u;
3497 }
set_has_id(HasBits * has_bits)3498 static void set_has_id(HasBits* has_bits) {
3499 (*has_bits)[0] |= 4u;
3500 }
set_has_stream_id(HasBits * has_bits)3501 static void set_has_stream_id(HasBits* has_bits) {
3502 (*has_bits)[0] |= 8u;
3503 }
3504 static const ::metrics::PerfDataProto_SampleInfo& sample_info(const PerfDataProto_ThrottleEvent* msg);
set_has_sample_info(HasBits * has_bits)3505 static void set_has_sample_info(HasBits* has_bits) {
3506 (*has_bits)[0] |= 1u;
3507 }
3508 };
3509
3510 const ::metrics::PerfDataProto_SampleInfo&
sample_info(const PerfDataProto_ThrottleEvent * msg)3511 PerfDataProto_ThrottleEvent::_Internal::sample_info(const PerfDataProto_ThrottleEvent* msg) {
3512 return *msg->_impl_.sample_info_;
3513 }
PerfDataProto_ThrottleEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)3514 PerfDataProto_ThrottleEvent::PerfDataProto_ThrottleEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
3515 bool is_message_owned)
3516 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
3517 SharedCtor(arena, is_message_owned);
3518 // @@protoc_insertion_point(arena_constructor:metrics.PerfDataProto.ThrottleEvent)
3519 }
PerfDataProto_ThrottleEvent(const PerfDataProto_ThrottleEvent & from)3520 PerfDataProto_ThrottleEvent::PerfDataProto_ThrottleEvent(const PerfDataProto_ThrottleEvent& from)
3521 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
3522 PerfDataProto_ThrottleEvent* const _this = this; (void)_this;
3523 new (&_impl_) Impl_{
3524 decltype(_impl_._has_bits_){from._impl_._has_bits_}
3525 , /*decltype(_impl_._cached_size_)*/{}
3526 , decltype(_impl_.sample_info_){nullptr}
3527 , decltype(_impl_.time_ns_){}
3528 , decltype(_impl_.id_){}
3529 , decltype(_impl_.stream_id_){}};
3530
3531 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
3532 if (from._internal_has_sample_info()) {
3533 _this->_impl_.sample_info_ = new ::metrics::PerfDataProto_SampleInfo(*from._impl_.sample_info_);
3534 }
3535 ::memcpy(&_impl_.time_ns_, &from._impl_.time_ns_,
3536 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.stream_id_) -
3537 reinterpret_cast<char*>(&_impl_.time_ns_)) + sizeof(_impl_.stream_id_));
3538 // @@protoc_insertion_point(copy_constructor:metrics.PerfDataProto.ThrottleEvent)
3539 }
3540
SharedCtor(::_pb::Arena * arena,bool is_message_owned)3541 inline void PerfDataProto_ThrottleEvent::SharedCtor(
3542 ::_pb::Arena* arena, bool is_message_owned) {
3543 (void)arena;
3544 (void)is_message_owned;
3545 new (&_impl_) Impl_{
3546 decltype(_impl_._has_bits_){}
3547 , /*decltype(_impl_._cached_size_)*/{}
3548 , decltype(_impl_.sample_info_){nullptr}
3549 , decltype(_impl_.time_ns_){uint64_t{0u}}
3550 , decltype(_impl_.id_){uint64_t{0u}}
3551 , decltype(_impl_.stream_id_){uint64_t{0u}}
3552 };
3553 }
3554
~PerfDataProto_ThrottleEvent()3555 PerfDataProto_ThrottleEvent::~PerfDataProto_ThrottleEvent() {
3556 // @@protoc_insertion_point(destructor:metrics.PerfDataProto.ThrottleEvent)
3557 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
3558 (void)arena;
3559 return;
3560 }
3561 SharedDtor();
3562 }
3563
SharedDtor()3564 inline void PerfDataProto_ThrottleEvent::SharedDtor() {
3565 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
3566 if (this != internal_default_instance()) delete _impl_.sample_info_;
3567 }
3568
SetCachedSize(int size) const3569 void PerfDataProto_ThrottleEvent::SetCachedSize(int size) const {
3570 _impl_._cached_size_.Set(size);
3571 }
3572
Clear()3573 void PerfDataProto_ThrottleEvent::Clear() {
3574 // @@protoc_insertion_point(message_clear_start:metrics.PerfDataProto.ThrottleEvent)
3575 uint32_t cached_has_bits = 0;
3576 // Prevent compiler warnings about cached_has_bits being unused
3577 (void) cached_has_bits;
3578
3579 cached_has_bits = _impl_._has_bits_[0];
3580 if (cached_has_bits & 0x00000001u) {
3581 GOOGLE_DCHECK(_impl_.sample_info_ != nullptr);
3582 _impl_.sample_info_->Clear();
3583 }
3584 if (cached_has_bits & 0x0000000eu) {
3585 ::memset(&_impl_.time_ns_, 0, static_cast<size_t>(
3586 reinterpret_cast<char*>(&_impl_.stream_id_) -
3587 reinterpret_cast<char*>(&_impl_.time_ns_)) + sizeof(_impl_.stream_id_));
3588 }
3589 _impl_._has_bits_.Clear();
3590 _internal_metadata_.Clear<std::string>();
3591 }
3592
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)3593 const char* PerfDataProto_ThrottleEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
3594 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
3595 _Internal::HasBits has_bits{};
3596 while (!ctx->Done(&ptr)) {
3597 uint32_t tag;
3598 ptr = ::_pbi::ReadTag(ptr, &tag);
3599 switch (tag >> 3) {
3600 // optional uint64 time_ns = 1;
3601 case 1:
3602 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
3603 _Internal::set_has_time_ns(&has_bits);
3604 _impl_.time_ns_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
3605 CHK_(ptr);
3606 } else
3607 goto handle_unusual;
3608 continue;
3609 // optional uint64 id = 2;
3610 case 2:
3611 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
3612 _Internal::set_has_id(&has_bits);
3613 _impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
3614 CHK_(ptr);
3615 } else
3616 goto handle_unusual;
3617 continue;
3618 // optional uint64 stream_id = 3;
3619 case 3:
3620 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
3621 _Internal::set_has_stream_id(&has_bits);
3622 _impl_.stream_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
3623 CHK_(ptr);
3624 } else
3625 goto handle_unusual;
3626 continue;
3627 // optional .metrics.PerfDataProto.SampleInfo sample_info = 4;
3628 case 4:
3629 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
3630 ptr = ctx->ParseMessage(_internal_mutable_sample_info(), ptr);
3631 CHK_(ptr);
3632 } else
3633 goto handle_unusual;
3634 continue;
3635 default:
3636 goto handle_unusual;
3637 } // switch
3638 handle_unusual:
3639 if ((tag == 0) || ((tag & 7) == 4)) {
3640 CHK_(ptr);
3641 ctx->SetLastTag(tag);
3642 goto message_done;
3643 }
3644 ptr = UnknownFieldParse(
3645 tag,
3646 _internal_metadata_.mutable_unknown_fields<std::string>(),
3647 ptr, ctx);
3648 CHK_(ptr != nullptr);
3649 } // while
3650 message_done:
3651 _impl_._has_bits_.Or(has_bits);
3652 return ptr;
3653 failure:
3654 ptr = nullptr;
3655 goto message_done;
3656 #undef CHK_
3657 }
3658
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const3659 uint8_t* PerfDataProto_ThrottleEvent::_InternalSerialize(
3660 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
3661 // @@protoc_insertion_point(serialize_to_array_start:metrics.PerfDataProto.ThrottleEvent)
3662 uint32_t cached_has_bits = 0;
3663 (void) cached_has_bits;
3664
3665 cached_has_bits = _impl_._has_bits_[0];
3666 // optional uint64 time_ns = 1;
3667 if (cached_has_bits & 0x00000002u) {
3668 target = stream->EnsureSpace(target);
3669 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_time_ns(), target);
3670 }
3671
3672 // optional uint64 id = 2;
3673 if (cached_has_bits & 0x00000004u) {
3674 target = stream->EnsureSpace(target);
3675 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_id(), target);
3676 }
3677
3678 // optional uint64 stream_id = 3;
3679 if (cached_has_bits & 0x00000008u) {
3680 target = stream->EnsureSpace(target);
3681 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(3, this->_internal_stream_id(), target);
3682 }
3683
3684 // optional .metrics.PerfDataProto.SampleInfo sample_info = 4;
3685 if (cached_has_bits & 0x00000001u) {
3686 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3687 InternalWriteMessage(4, _Internal::sample_info(this),
3688 _Internal::sample_info(this).GetCachedSize(), target, stream);
3689 }
3690
3691 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3692 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
3693 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
3694 }
3695 // @@protoc_insertion_point(serialize_to_array_end:metrics.PerfDataProto.ThrottleEvent)
3696 return target;
3697 }
3698
ByteSizeLong() const3699 size_t PerfDataProto_ThrottleEvent::ByteSizeLong() const {
3700 // @@protoc_insertion_point(message_byte_size_start:metrics.PerfDataProto.ThrottleEvent)
3701 size_t total_size = 0;
3702
3703 uint32_t cached_has_bits = 0;
3704 // Prevent compiler warnings about cached_has_bits being unused
3705 (void) cached_has_bits;
3706
3707 cached_has_bits = _impl_._has_bits_[0];
3708 if (cached_has_bits & 0x0000000fu) {
3709 // optional .metrics.PerfDataProto.SampleInfo sample_info = 4;
3710 if (cached_has_bits & 0x00000001u) {
3711 total_size += 1 +
3712 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
3713 *_impl_.sample_info_);
3714 }
3715
3716 // optional uint64 time_ns = 1;
3717 if (cached_has_bits & 0x00000002u) {
3718 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_time_ns());
3719 }
3720
3721 // optional uint64 id = 2;
3722 if (cached_has_bits & 0x00000004u) {
3723 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_id());
3724 }
3725
3726 // optional uint64 stream_id = 3;
3727 if (cached_has_bits & 0x00000008u) {
3728 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_stream_id());
3729 }
3730
3731 }
3732 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3733 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
3734 }
3735 int cached_size = ::_pbi::ToCachedSize(total_size);
3736 SetCachedSize(cached_size);
3737 return total_size;
3738 }
3739
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)3740 void PerfDataProto_ThrottleEvent::CheckTypeAndMergeFrom(
3741 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
3742 MergeFrom(*::_pbi::DownCast<const PerfDataProto_ThrottleEvent*>(
3743 &from));
3744 }
3745
MergeFrom(const PerfDataProto_ThrottleEvent & from)3746 void PerfDataProto_ThrottleEvent::MergeFrom(const PerfDataProto_ThrottleEvent& from) {
3747 PerfDataProto_ThrottleEvent* const _this = this;
3748 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.PerfDataProto.ThrottleEvent)
3749 GOOGLE_DCHECK_NE(&from, _this);
3750 uint32_t cached_has_bits = 0;
3751 (void) cached_has_bits;
3752
3753 cached_has_bits = from._impl_._has_bits_[0];
3754 if (cached_has_bits & 0x0000000fu) {
3755 if (cached_has_bits & 0x00000001u) {
3756 _this->_internal_mutable_sample_info()->::metrics::PerfDataProto_SampleInfo::MergeFrom(
3757 from._internal_sample_info());
3758 }
3759 if (cached_has_bits & 0x00000002u) {
3760 _this->_impl_.time_ns_ = from._impl_.time_ns_;
3761 }
3762 if (cached_has_bits & 0x00000004u) {
3763 _this->_impl_.id_ = from._impl_.id_;
3764 }
3765 if (cached_has_bits & 0x00000008u) {
3766 _this->_impl_.stream_id_ = from._impl_.stream_id_;
3767 }
3768 _this->_impl_._has_bits_[0] |= cached_has_bits;
3769 }
3770 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
3771 }
3772
CopyFrom(const PerfDataProto_ThrottleEvent & from)3773 void PerfDataProto_ThrottleEvent::CopyFrom(const PerfDataProto_ThrottleEvent& from) {
3774 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.PerfDataProto.ThrottleEvent)
3775 if (&from == this) return;
3776 Clear();
3777 MergeFrom(from);
3778 }
3779
IsInitialized() const3780 bool PerfDataProto_ThrottleEvent::IsInitialized() const {
3781 return true;
3782 }
3783
InternalSwap(PerfDataProto_ThrottleEvent * other)3784 void PerfDataProto_ThrottleEvent::InternalSwap(PerfDataProto_ThrottleEvent* other) {
3785 using std::swap;
3786 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
3787 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
3788 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
3789 PROTOBUF_FIELD_OFFSET(PerfDataProto_ThrottleEvent, _impl_.stream_id_)
3790 + sizeof(PerfDataProto_ThrottleEvent::_impl_.stream_id_)
3791 - PROTOBUF_FIELD_OFFSET(PerfDataProto_ThrottleEvent, _impl_.sample_info_)>(
3792 reinterpret_cast<char*>(&_impl_.sample_info_),
3793 reinterpret_cast<char*>(&other->_impl_.sample_info_));
3794 }
3795
GetTypeName() const3796 std::string PerfDataProto_ThrottleEvent::GetTypeName() const {
3797 return "metrics.PerfDataProto.ThrottleEvent";
3798 }
3799
3800
3801 // ===================================================================
3802
3803 class PerfDataProto_BranchStackEntry::_Internal {
3804 public:
3805 using HasBits = decltype(std::declval<PerfDataProto_BranchStackEntry>()._impl_._has_bits_);
set_has_from_ip(HasBits * has_bits)3806 static void set_has_from_ip(HasBits* has_bits) {
3807 (*has_bits)[0] |= 1u;
3808 }
set_has_to_ip(HasBits * has_bits)3809 static void set_has_to_ip(HasBits* has_bits) {
3810 (*has_bits)[0] |= 2u;
3811 }
set_has_mispredicted(HasBits * has_bits)3812 static void set_has_mispredicted(HasBits* has_bits) {
3813 (*has_bits)[0] |= 4u;
3814 }
set_has_predicted(HasBits * has_bits)3815 static void set_has_predicted(HasBits* has_bits) {
3816 (*has_bits)[0] |= 8u;
3817 }
set_has_in_transaction(HasBits * has_bits)3818 static void set_has_in_transaction(HasBits* has_bits) {
3819 (*has_bits)[0] |= 16u;
3820 }
set_has_abort(HasBits * has_bits)3821 static void set_has_abort(HasBits* has_bits) {
3822 (*has_bits)[0] |= 32u;
3823 }
set_has_cycles(HasBits * has_bits)3824 static void set_has_cycles(HasBits* has_bits) {
3825 (*has_bits)[0] |= 64u;
3826 }
3827 };
3828
PerfDataProto_BranchStackEntry(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)3829 PerfDataProto_BranchStackEntry::PerfDataProto_BranchStackEntry(::PROTOBUF_NAMESPACE_ID::Arena* arena,
3830 bool is_message_owned)
3831 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
3832 SharedCtor(arena, is_message_owned);
3833 // @@protoc_insertion_point(arena_constructor:metrics.PerfDataProto.BranchStackEntry)
3834 }
PerfDataProto_BranchStackEntry(const PerfDataProto_BranchStackEntry & from)3835 PerfDataProto_BranchStackEntry::PerfDataProto_BranchStackEntry(const PerfDataProto_BranchStackEntry& from)
3836 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
3837 PerfDataProto_BranchStackEntry* const _this = this; (void)_this;
3838 new (&_impl_) Impl_{
3839 decltype(_impl_._has_bits_){from._impl_._has_bits_}
3840 , /*decltype(_impl_._cached_size_)*/{}
3841 , decltype(_impl_.from_ip_){}
3842 , decltype(_impl_.to_ip_){}
3843 , decltype(_impl_.mispredicted_){}
3844 , decltype(_impl_.predicted_){}
3845 , decltype(_impl_.in_transaction_){}
3846 , decltype(_impl_.abort_){}
3847 , decltype(_impl_.cycles_){}};
3848
3849 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
3850 ::memcpy(&_impl_.from_ip_, &from._impl_.from_ip_,
3851 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.cycles_) -
3852 reinterpret_cast<char*>(&_impl_.from_ip_)) + sizeof(_impl_.cycles_));
3853 // @@protoc_insertion_point(copy_constructor:metrics.PerfDataProto.BranchStackEntry)
3854 }
3855
SharedCtor(::_pb::Arena * arena,bool is_message_owned)3856 inline void PerfDataProto_BranchStackEntry::SharedCtor(
3857 ::_pb::Arena* arena, bool is_message_owned) {
3858 (void)arena;
3859 (void)is_message_owned;
3860 new (&_impl_) Impl_{
3861 decltype(_impl_._has_bits_){}
3862 , /*decltype(_impl_._cached_size_)*/{}
3863 , decltype(_impl_.from_ip_){uint64_t{0u}}
3864 , decltype(_impl_.to_ip_){uint64_t{0u}}
3865 , decltype(_impl_.mispredicted_){false}
3866 , decltype(_impl_.predicted_){false}
3867 , decltype(_impl_.in_transaction_){false}
3868 , decltype(_impl_.abort_){false}
3869 , decltype(_impl_.cycles_){0u}
3870 };
3871 }
3872
~PerfDataProto_BranchStackEntry()3873 PerfDataProto_BranchStackEntry::~PerfDataProto_BranchStackEntry() {
3874 // @@protoc_insertion_point(destructor:metrics.PerfDataProto.BranchStackEntry)
3875 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
3876 (void)arena;
3877 return;
3878 }
3879 SharedDtor();
3880 }
3881
SharedDtor()3882 inline void PerfDataProto_BranchStackEntry::SharedDtor() {
3883 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
3884 }
3885
SetCachedSize(int size) const3886 void PerfDataProto_BranchStackEntry::SetCachedSize(int size) const {
3887 _impl_._cached_size_.Set(size);
3888 }
3889
Clear()3890 void PerfDataProto_BranchStackEntry::Clear() {
3891 // @@protoc_insertion_point(message_clear_start:metrics.PerfDataProto.BranchStackEntry)
3892 uint32_t cached_has_bits = 0;
3893 // Prevent compiler warnings about cached_has_bits being unused
3894 (void) cached_has_bits;
3895
3896 cached_has_bits = _impl_._has_bits_[0];
3897 if (cached_has_bits & 0x0000007fu) {
3898 ::memset(&_impl_.from_ip_, 0, static_cast<size_t>(
3899 reinterpret_cast<char*>(&_impl_.cycles_) -
3900 reinterpret_cast<char*>(&_impl_.from_ip_)) + sizeof(_impl_.cycles_));
3901 }
3902 _impl_._has_bits_.Clear();
3903 _internal_metadata_.Clear<std::string>();
3904 }
3905
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)3906 const char* PerfDataProto_BranchStackEntry::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
3907 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
3908 _Internal::HasBits has_bits{};
3909 while (!ctx->Done(&ptr)) {
3910 uint32_t tag;
3911 ptr = ::_pbi::ReadTag(ptr, &tag);
3912 switch (tag >> 3) {
3913 // optional uint64 from_ip = 1;
3914 case 1:
3915 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
3916 _Internal::set_has_from_ip(&has_bits);
3917 _impl_.from_ip_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
3918 CHK_(ptr);
3919 } else
3920 goto handle_unusual;
3921 continue;
3922 // optional uint64 to_ip = 2;
3923 case 2:
3924 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
3925 _Internal::set_has_to_ip(&has_bits);
3926 _impl_.to_ip_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
3927 CHK_(ptr);
3928 } else
3929 goto handle_unusual;
3930 continue;
3931 // optional bool mispredicted = 3;
3932 case 3:
3933 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
3934 _Internal::set_has_mispredicted(&has_bits);
3935 _impl_.mispredicted_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
3936 CHK_(ptr);
3937 } else
3938 goto handle_unusual;
3939 continue;
3940 // optional bool predicted = 4;
3941 case 4:
3942 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
3943 _Internal::set_has_predicted(&has_bits);
3944 _impl_.predicted_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
3945 CHK_(ptr);
3946 } else
3947 goto handle_unusual;
3948 continue;
3949 // optional bool in_transaction = 5;
3950 case 5:
3951 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
3952 _Internal::set_has_in_transaction(&has_bits);
3953 _impl_.in_transaction_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
3954 CHK_(ptr);
3955 } else
3956 goto handle_unusual;
3957 continue;
3958 // optional bool abort = 6;
3959 case 6:
3960 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
3961 _Internal::set_has_abort(&has_bits);
3962 _impl_.abort_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
3963 CHK_(ptr);
3964 } else
3965 goto handle_unusual;
3966 continue;
3967 // optional uint32 cycles = 7;
3968 case 7:
3969 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
3970 _Internal::set_has_cycles(&has_bits);
3971 _impl_.cycles_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3972 CHK_(ptr);
3973 } else
3974 goto handle_unusual;
3975 continue;
3976 default:
3977 goto handle_unusual;
3978 } // switch
3979 handle_unusual:
3980 if ((tag == 0) || ((tag & 7) == 4)) {
3981 CHK_(ptr);
3982 ctx->SetLastTag(tag);
3983 goto message_done;
3984 }
3985 ptr = UnknownFieldParse(
3986 tag,
3987 _internal_metadata_.mutable_unknown_fields<std::string>(),
3988 ptr, ctx);
3989 CHK_(ptr != nullptr);
3990 } // while
3991 message_done:
3992 _impl_._has_bits_.Or(has_bits);
3993 return ptr;
3994 failure:
3995 ptr = nullptr;
3996 goto message_done;
3997 #undef CHK_
3998 }
3999
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const4000 uint8_t* PerfDataProto_BranchStackEntry::_InternalSerialize(
4001 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
4002 // @@protoc_insertion_point(serialize_to_array_start:metrics.PerfDataProto.BranchStackEntry)
4003 uint32_t cached_has_bits = 0;
4004 (void) cached_has_bits;
4005
4006 cached_has_bits = _impl_._has_bits_[0];
4007 // optional uint64 from_ip = 1;
4008 if (cached_has_bits & 0x00000001u) {
4009 target = stream->EnsureSpace(target);
4010 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_from_ip(), target);
4011 }
4012
4013 // optional uint64 to_ip = 2;
4014 if (cached_has_bits & 0x00000002u) {
4015 target = stream->EnsureSpace(target);
4016 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_to_ip(), target);
4017 }
4018
4019 // optional bool mispredicted = 3;
4020 if (cached_has_bits & 0x00000004u) {
4021 target = stream->EnsureSpace(target);
4022 target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_mispredicted(), target);
4023 }
4024
4025 // optional bool predicted = 4;
4026 if (cached_has_bits & 0x00000008u) {
4027 target = stream->EnsureSpace(target);
4028 target = ::_pbi::WireFormatLite::WriteBoolToArray(4, this->_internal_predicted(), target);
4029 }
4030
4031 // optional bool in_transaction = 5;
4032 if (cached_has_bits & 0x00000010u) {
4033 target = stream->EnsureSpace(target);
4034 target = ::_pbi::WireFormatLite::WriteBoolToArray(5, this->_internal_in_transaction(), target);
4035 }
4036
4037 // optional bool abort = 6;
4038 if (cached_has_bits & 0x00000020u) {
4039 target = stream->EnsureSpace(target);
4040 target = ::_pbi::WireFormatLite::WriteBoolToArray(6, this->_internal_abort(), target);
4041 }
4042
4043 // optional uint32 cycles = 7;
4044 if (cached_has_bits & 0x00000040u) {
4045 target = stream->EnsureSpace(target);
4046 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(7, this->_internal_cycles(), target);
4047 }
4048
4049 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4050 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
4051 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
4052 }
4053 // @@protoc_insertion_point(serialize_to_array_end:metrics.PerfDataProto.BranchStackEntry)
4054 return target;
4055 }
4056
ByteSizeLong() const4057 size_t PerfDataProto_BranchStackEntry::ByteSizeLong() const {
4058 // @@protoc_insertion_point(message_byte_size_start:metrics.PerfDataProto.BranchStackEntry)
4059 size_t total_size = 0;
4060
4061 uint32_t cached_has_bits = 0;
4062 // Prevent compiler warnings about cached_has_bits being unused
4063 (void) cached_has_bits;
4064
4065 cached_has_bits = _impl_._has_bits_[0];
4066 if (cached_has_bits & 0x0000007fu) {
4067 // optional uint64 from_ip = 1;
4068 if (cached_has_bits & 0x00000001u) {
4069 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_from_ip());
4070 }
4071
4072 // optional uint64 to_ip = 2;
4073 if (cached_has_bits & 0x00000002u) {
4074 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_to_ip());
4075 }
4076
4077 // optional bool mispredicted = 3;
4078 if (cached_has_bits & 0x00000004u) {
4079 total_size += 1 + 1;
4080 }
4081
4082 // optional bool predicted = 4;
4083 if (cached_has_bits & 0x00000008u) {
4084 total_size += 1 + 1;
4085 }
4086
4087 // optional bool in_transaction = 5;
4088 if (cached_has_bits & 0x00000010u) {
4089 total_size += 1 + 1;
4090 }
4091
4092 // optional bool abort = 6;
4093 if (cached_has_bits & 0x00000020u) {
4094 total_size += 1 + 1;
4095 }
4096
4097 // optional uint32 cycles = 7;
4098 if (cached_has_bits & 0x00000040u) {
4099 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_cycles());
4100 }
4101
4102 }
4103 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4104 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
4105 }
4106 int cached_size = ::_pbi::ToCachedSize(total_size);
4107 SetCachedSize(cached_size);
4108 return total_size;
4109 }
4110
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)4111 void PerfDataProto_BranchStackEntry::CheckTypeAndMergeFrom(
4112 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
4113 MergeFrom(*::_pbi::DownCast<const PerfDataProto_BranchStackEntry*>(
4114 &from));
4115 }
4116
MergeFrom(const PerfDataProto_BranchStackEntry & from)4117 void PerfDataProto_BranchStackEntry::MergeFrom(const PerfDataProto_BranchStackEntry& from) {
4118 PerfDataProto_BranchStackEntry* const _this = this;
4119 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.PerfDataProto.BranchStackEntry)
4120 GOOGLE_DCHECK_NE(&from, _this);
4121 uint32_t cached_has_bits = 0;
4122 (void) cached_has_bits;
4123
4124 cached_has_bits = from._impl_._has_bits_[0];
4125 if (cached_has_bits & 0x0000007fu) {
4126 if (cached_has_bits & 0x00000001u) {
4127 _this->_impl_.from_ip_ = from._impl_.from_ip_;
4128 }
4129 if (cached_has_bits & 0x00000002u) {
4130 _this->_impl_.to_ip_ = from._impl_.to_ip_;
4131 }
4132 if (cached_has_bits & 0x00000004u) {
4133 _this->_impl_.mispredicted_ = from._impl_.mispredicted_;
4134 }
4135 if (cached_has_bits & 0x00000008u) {
4136 _this->_impl_.predicted_ = from._impl_.predicted_;
4137 }
4138 if (cached_has_bits & 0x00000010u) {
4139 _this->_impl_.in_transaction_ = from._impl_.in_transaction_;
4140 }
4141 if (cached_has_bits & 0x00000020u) {
4142 _this->_impl_.abort_ = from._impl_.abort_;
4143 }
4144 if (cached_has_bits & 0x00000040u) {
4145 _this->_impl_.cycles_ = from._impl_.cycles_;
4146 }
4147 _this->_impl_._has_bits_[0] |= cached_has_bits;
4148 }
4149 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
4150 }
4151
CopyFrom(const PerfDataProto_BranchStackEntry & from)4152 void PerfDataProto_BranchStackEntry::CopyFrom(const PerfDataProto_BranchStackEntry& from) {
4153 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.PerfDataProto.BranchStackEntry)
4154 if (&from == this) return;
4155 Clear();
4156 MergeFrom(from);
4157 }
4158
IsInitialized() const4159 bool PerfDataProto_BranchStackEntry::IsInitialized() const {
4160 return true;
4161 }
4162
InternalSwap(PerfDataProto_BranchStackEntry * other)4163 void PerfDataProto_BranchStackEntry::InternalSwap(PerfDataProto_BranchStackEntry* other) {
4164 using std::swap;
4165 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
4166 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
4167 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
4168 PROTOBUF_FIELD_OFFSET(PerfDataProto_BranchStackEntry, _impl_.cycles_)
4169 + sizeof(PerfDataProto_BranchStackEntry::_impl_.cycles_)
4170 - PROTOBUF_FIELD_OFFSET(PerfDataProto_BranchStackEntry, _impl_.from_ip_)>(
4171 reinterpret_cast<char*>(&_impl_.from_ip_),
4172 reinterpret_cast<char*>(&other->_impl_.from_ip_));
4173 }
4174
GetTypeName() const4175 std::string PerfDataProto_BranchStackEntry::GetTypeName() const {
4176 return "metrics.PerfDataProto.BranchStackEntry";
4177 }
4178
4179
4180 // ===================================================================
4181
4182 class PerfDataProto_SampleEvent::_Internal {
4183 public:
4184 using HasBits = decltype(std::declval<PerfDataProto_SampleEvent>()._impl_._has_bits_);
set_has_ip(HasBits * has_bits)4185 static void set_has_ip(HasBits* has_bits) {
4186 (*has_bits)[0] |= 1u;
4187 }
set_has_pid(HasBits * has_bits)4188 static void set_has_pid(HasBits* has_bits) {
4189 (*has_bits)[0] |= 2u;
4190 }
set_has_tid(HasBits * has_bits)4191 static void set_has_tid(HasBits* has_bits) {
4192 (*has_bits)[0] |= 4u;
4193 }
set_has_sample_time_ns(HasBits * has_bits)4194 static void set_has_sample_time_ns(HasBits* has_bits) {
4195 (*has_bits)[0] |= 8u;
4196 }
set_has_addr(HasBits * has_bits)4197 static void set_has_addr(HasBits* has_bits) {
4198 (*has_bits)[0] |= 16u;
4199 }
set_has_id(HasBits * has_bits)4200 static void set_has_id(HasBits* has_bits) {
4201 (*has_bits)[0] |= 32u;
4202 }
set_has_stream_id(HasBits * has_bits)4203 static void set_has_stream_id(HasBits* has_bits) {
4204 (*has_bits)[0] |= 64u;
4205 }
set_has_period(HasBits * has_bits)4206 static void set_has_period(HasBits* has_bits) {
4207 (*has_bits)[0] |= 128u;
4208 }
set_has_cpu(HasBits * has_bits)4209 static void set_has_cpu(HasBits* has_bits) {
4210 (*has_bits)[0] |= 256u;
4211 }
set_has_raw_size(HasBits * has_bits)4212 static void set_has_raw_size(HasBits* has_bits) {
4213 (*has_bits)[0] |= 512u;
4214 }
set_has_weight(HasBits * has_bits)4215 static void set_has_weight(HasBits* has_bits) {
4216 (*has_bits)[0] |= 1024u;
4217 }
set_has_data_src(HasBits * has_bits)4218 static void set_has_data_src(HasBits* has_bits) {
4219 (*has_bits)[0] |= 2048u;
4220 }
set_has_transaction(HasBits * has_bits)4221 static void set_has_transaction(HasBits* has_bits) {
4222 (*has_bits)[0] |= 4096u;
4223 }
4224 };
4225
PerfDataProto_SampleEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)4226 PerfDataProto_SampleEvent::PerfDataProto_SampleEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
4227 bool is_message_owned)
4228 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
4229 SharedCtor(arena, is_message_owned);
4230 // @@protoc_insertion_point(arena_constructor:metrics.PerfDataProto.SampleEvent)
4231 }
PerfDataProto_SampleEvent(const PerfDataProto_SampleEvent & from)4232 PerfDataProto_SampleEvent::PerfDataProto_SampleEvent(const PerfDataProto_SampleEvent& from)
4233 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
4234 PerfDataProto_SampleEvent* const _this = this; (void)_this;
4235 new (&_impl_) Impl_{
4236 decltype(_impl_._has_bits_){from._impl_._has_bits_}
4237 , /*decltype(_impl_._cached_size_)*/{}
4238 , decltype(_impl_.callchain_){from._impl_.callchain_}
4239 , decltype(_impl_.branch_stack_){from._impl_.branch_stack_}
4240 , decltype(_impl_.ip_){}
4241 , decltype(_impl_.pid_){}
4242 , decltype(_impl_.tid_){}
4243 , decltype(_impl_.sample_time_ns_){}
4244 , decltype(_impl_.addr_){}
4245 , decltype(_impl_.id_){}
4246 , decltype(_impl_.stream_id_){}
4247 , decltype(_impl_.period_){}
4248 , decltype(_impl_.cpu_){}
4249 , decltype(_impl_.raw_size_){}
4250 , decltype(_impl_.weight_){}
4251 , decltype(_impl_.data_src_){}
4252 , decltype(_impl_.transaction_){}};
4253
4254 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
4255 ::memcpy(&_impl_.ip_, &from._impl_.ip_,
4256 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.transaction_) -
4257 reinterpret_cast<char*>(&_impl_.ip_)) + sizeof(_impl_.transaction_));
4258 // @@protoc_insertion_point(copy_constructor:metrics.PerfDataProto.SampleEvent)
4259 }
4260
SharedCtor(::_pb::Arena * arena,bool is_message_owned)4261 inline void PerfDataProto_SampleEvent::SharedCtor(
4262 ::_pb::Arena* arena, bool is_message_owned) {
4263 (void)arena;
4264 (void)is_message_owned;
4265 new (&_impl_) Impl_{
4266 decltype(_impl_._has_bits_){}
4267 , /*decltype(_impl_._cached_size_)*/{}
4268 , decltype(_impl_.callchain_){arena}
4269 , decltype(_impl_.branch_stack_){arena}
4270 , decltype(_impl_.ip_){uint64_t{0u}}
4271 , decltype(_impl_.pid_){0u}
4272 , decltype(_impl_.tid_){0u}
4273 , decltype(_impl_.sample_time_ns_){uint64_t{0u}}
4274 , decltype(_impl_.addr_){uint64_t{0u}}
4275 , decltype(_impl_.id_){uint64_t{0u}}
4276 , decltype(_impl_.stream_id_){uint64_t{0u}}
4277 , decltype(_impl_.period_){uint64_t{0u}}
4278 , decltype(_impl_.cpu_){0u}
4279 , decltype(_impl_.raw_size_){0u}
4280 , decltype(_impl_.weight_){uint64_t{0u}}
4281 , decltype(_impl_.data_src_){uint64_t{0u}}
4282 , decltype(_impl_.transaction_){uint64_t{0u}}
4283 };
4284 }
4285
~PerfDataProto_SampleEvent()4286 PerfDataProto_SampleEvent::~PerfDataProto_SampleEvent() {
4287 // @@protoc_insertion_point(destructor:metrics.PerfDataProto.SampleEvent)
4288 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
4289 (void)arena;
4290 return;
4291 }
4292 SharedDtor();
4293 }
4294
SharedDtor()4295 inline void PerfDataProto_SampleEvent::SharedDtor() {
4296 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
4297 _impl_.callchain_.~RepeatedField();
4298 _impl_.branch_stack_.~RepeatedPtrField();
4299 }
4300
SetCachedSize(int size) const4301 void PerfDataProto_SampleEvent::SetCachedSize(int size) const {
4302 _impl_._cached_size_.Set(size);
4303 }
4304
Clear()4305 void PerfDataProto_SampleEvent::Clear() {
4306 // @@protoc_insertion_point(message_clear_start:metrics.PerfDataProto.SampleEvent)
4307 uint32_t cached_has_bits = 0;
4308 // Prevent compiler warnings about cached_has_bits being unused
4309 (void) cached_has_bits;
4310
4311 _impl_.callchain_.Clear();
4312 _impl_.branch_stack_.Clear();
4313 cached_has_bits = _impl_._has_bits_[0];
4314 if (cached_has_bits & 0x000000ffu) {
4315 ::memset(&_impl_.ip_, 0, static_cast<size_t>(
4316 reinterpret_cast<char*>(&_impl_.period_) -
4317 reinterpret_cast<char*>(&_impl_.ip_)) + sizeof(_impl_.period_));
4318 }
4319 if (cached_has_bits & 0x00001f00u) {
4320 ::memset(&_impl_.cpu_, 0, static_cast<size_t>(
4321 reinterpret_cast<char*>(&_impl_.transaction_) -
4322 reinterpret_cast<char*>(&_impl_.cpu_)) + sizeof(_impl_.transaction_));
4323 }
4324 _impl_._has_bits_.Clear();
4325 _internal_metadata_.Clear<std::string>();
4326 }
4327
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)4328 const char* PerfDataProto_SampleEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
4329 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
4330 _Internal::HasBits has_bits{};
4331 while (!ctx->Done(&ptr)) {
4332 uint32_t tag;
4333 ptr = ::_pbi::ReadTag(ptr, &tag);
4334 switch (tag >> 3) {
4335 // optional uint64 ip = 1;
4336 case 1:
4337 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
4338 _Internal::set_has_ip(&has_bits);
4339 _impl_.ip_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
4340 CHK_(ptr);
4341 } else
4342 goto handle_unusual;
4343 continue;
4344 // optional uint32 pid = 2;
4345 case 2:
4346 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
4347 _Internal::set_has_pid(&has_bits);
4348 _impl_.pid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
4349 CHK_(ptr);
4350 } else
4351 goto handle_unusual;
4352 continue;
4353 // optional uint32 tid = 3;
4354 case 3:
4355 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
4356 _Internal::set_has_tid(&has_bits);
4357 _impl_.tid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
4358 CHK_(ptr);
4359 } else
4360 goto handle_unusual;
4361 continue;
4362 // optional uint64 sample_time_ns = 4;
4363 case 4:
4364 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
4365 _Internal::set_has_sample_time_ns(&has_bits);
4366 _impl_.sample_time_ns_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
4367 CHK_(ptr);
4368 } else
4369 goto handle_unusual;
4370 continue;
4371 // optional uint64 addr = 5;
4372 case 5:
4373 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
4374 _Internal::set_has_addr(&has_bits);
4375 _impl_.addr_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
4376 CHK_(ptr);
4377 } else
4378 goto handle_unusual;
4379 continue;
4380 // optional uint64 id = 6;
4381 case 6:
4382 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
4383 _Internal::set_has_id(&has_bits);
4384 _impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
4385 CHK_(ptr);
4386 } else
4387 goto handle_unusual;
4388 continue;
4389 // optional uint64 stream_id = 7;
4390 case 7:
4391 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
4392 _Internal::set_has_stream_id(&has_bits);
4393 _impl_.stream_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
4394 CHK_(ptr);
4395 } else
4396 goto handle_unusual;
4397 continue;
4398 // optional uint64 period = 8;
4399 case 8:
4400 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64)) {
4401 _Internal::set_has_period(&has_bits);
4402 _impl_.period_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
4403 CHK_(ptr);
4404 } else
4405 goto handle_unusual;
4406 continue;
4407 // optional uint32 cpu = 9;
4408 case 9:
4409 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72)) {
4410 _Internal::set_has_cpu(&has_bits);
4411 _impl_.cpu_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
4412 CHK_(ptr);
4413 } else
4414 goto handle_unusual;
4415 continue;
4416 // optional uint32 raw_size = 10;
4417 case 10:
4418 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80)) {
4419 _Internal::set_has_raw_size(&has_bits);
4420 _impl_.raw_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
4421 CHK_(ptr);
4422 } else
4423 goto handle_unusual;
4424 continue;
4425 // repeated uint64 callchain = 11;
4426 case 11:
4427 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 88)) {
4428 ptr -= 1;
4429 do {
4430 ptr += 1;
4431 _internal_add_callchain(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr));
4432 CHK_(ptr);
4433 if (!ctx->DataAvailable(ptr)) break;
4434 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<88>(ptr));
4435 } else if (static_cast<uint8_t>(tag) == 90) {
4436 ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt64Parser(_internal_mutable_callchain(), ptr, ctx);
4437 CHK_(ptr);
4438 } else
4439 goto handle_unusual;
4440 continue;
4441 // repeated .metrics.PerfDataProto.BranchStackEntry branch_stack = 12;
4442 case 12:
4443 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 98)) {
4444 ptr -= 1;
4445 do {
4446 ptr += 1;
4447 ptr = ctx->ParseMessage(_internal_add_branch_stack(), ptr);
4448 CHK_(ptr);
4449 if (!ctx->DataAvailable(ptr)) break;
4450 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<98>(ptr));
4451 } else
4452 goto handle_unusual;
4453 continue;
4454 // optional uint64 weight = 15;
4455 case 15:
4456 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 120)) {
4457 _Internal::set_has_weight(&has_bits);
4458 _impl_.weight_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
4459 CHK_(ptr);
4460 } else
4461 goto handle_unusual;
4462 continue;
4463 // optional uint64 data_src = 16;
4464 case 16:
4465 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 128)) {
4466 _Internal::set_has_data_src(&has_bits);
4467 _impl_.data_src_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
4468 CHK_(ptr);
4469 } else
4470 goto handle_unusual;
4471 continue;
4472 // optional uint64 transaction = 17;
4473 case 17:
4474 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 136)) {
4475 _Internal::set_has_transaction(&has_bits);
4476 _impl_.transaction_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
4477 CHK_(ptr);
4478 } else
4479 goto handle_unusual;
4480 continue;
4481 default:
4482 goto handle_unusual;
4483 } // switch
4484 handle_unusual:
4485 if ((tag == 0) || ((tag & 7) == 4)) {
4486 CHK_(ptr);
4487 ctx->SetLastTag(tag);
4488 goto message_done;
4489 }
4490 ptr = UnknownFieldParse(
4491 tag,
4492 _internal_metadata_.mutable_unknown_fields<std::string>(),
4493 ptr, ctx);
4494 CHK_(ptr != nullptr);
4495 } // while
4496 message_done:
4497 _impl_._has_bits_.Or(has_bits);
4498 return ptr;
4499 failure:
4500 ptr = nullptr;
4501 goto message_done;
4502 #undef CHK_
4503 }
4504
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const4505 uint8_t* PerfDataProto_SampleEvent::_InternalSerialize(
4506 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
4507 // @@protoc_insertion_point(serialize_to_array_start:metrics.PerfDataProto.SampleEvent)
4508 uint32_t cached_has_bits = 0;
4509 (void) cached_has_bits;
4510
4511 cached_has_bits = _impl_._has_bits_[0];
4512 // optional uint64 ip = 1;
4513 if (cached_has_bits & 0x00000001u) {
4514 target = stream->EnsureSpace(target);
4515 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_ip(), target);
4516 }
4517
4518 // optional uint32 pid = 2;
4519 if (cached_has_bits & 0x00000002u) {
4520 target = stream->EnsureSpace(target);
4521 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_pid(), target);
4522 }
4523
4524 // optional uint32 tid = 3;
4525 if (cached_has_bits & 0x00000004u) {
4526 target = stream->EnsureSpace(target);
4527 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_tid(), target);
4528 }
4529
4530 // optional uint64 sample_time_ns = 4;
4531 if (cached_has_bits & 0x00000008u) {
4532 target = stream->EnsureSpace(target);
4533 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_sample_time_ns(), target);
4534 }
4535
4536 // optional uint64 addr = 5;
4537 if (cached_has_bits & 0x00000010u) {
4538 target = stream->EnsureSpace(target);
4539 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(5, this->_internal_addr(), target);
4540 }
4541
4542 // optional uint64 id = 6;
4543 if (cached_has_bits & 0x00000020u) {
4544 target = stream->EnsureSpace(target);
4545 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(6, this->_internal_id(), target);
4546 }
4547
4548 // optional uint64 stream_id = 7;
4549 if (cached_has_bits & 0x00000040u) {
4550 target = stream->EnsureSpace(target);
4551 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(7, this->_internal_stream_id(), target);
4552 }
4553
4554 // optional uint64 period = 8;
4555 if (cached_has_bits & 0x00000080u) {
4556 target = stream->EnsureSpace(target);
4557 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(8, this->_internal_period(), target);
4558 }
4559
4560 // optional uint32 cpu = 9;
4561 if (cached_has_bits & 0x00000100u) {
4562 target = stream->EnsureSpace(target);
4563 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(9, this->_internal_cpu(), target);
4564 }
4565
4566 // optional uint32 raw_size = 10;
4567 if (cached_has_bits & 0x00000200u) {
4568 target = stream->EnsureSpace(target);
4569 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(10, this->_internal_raw_size(), target);
4570 }
4571
4572 // repeated uint64 callchain = 11;
4573 for (int i = 0, n = this->_internal_callchain_size(); i < n; i++) {
4574 target = stream->EnsureSpace(target);
4575 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(11, this->_internal_callchain(i), target);
4576 }
4577
4578 // repeated .metrics.PerfDataProto.BranchStackEntry branch_stack = 12;
4579 for (unsigned i = 0,
4580 n = static_cast<unsigned>(this->_internal_branch_stack_size()); i < n; i++) {
4581 const auto& repfield = this->_internal_branch_stack(i);
4582 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
4583 InternalWriteMessage(12, repfield, repfield.GetCachedSize(), target, stream);
4584 }
4585
4586 // optional uint64 weight = 15;
4587 if (cached_has_bits & 0x00000400u) {
4588 target = stream->EnsureSpace(target);
4589 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(15, this->_internal_weight(), target);
4590 }
4591
4592 // optional uint64 data_src = 16;
4593 if (cached_has_bits & 0x00000800u) {
4594 target = stream->EnsureSpace(target);
4595 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(16, this->_internal_data_src(), target);
4596 }
4597
4598 // optional uint64 transaction = 17;
4599 if (cached_has_bits & 0x00001000u) {
4600 target = stream->EnsureSpace(target);
4601 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(17, this->_internal_transaction(), target);
4602 }
4603
4604 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4605 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
4606 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
4607 }
4608 // @@protoc_insertion_point(serialize_to_array_end:metrics.PerfDataProto.SampleEvent)
4609 return target;
4610 }
4611
ByteSizeLong() const4612 size_t PerfDataProto_SampleEvent::ByteSizeLong() const {
4613 // @@protoc_insertion_point(message_byte_size_start:metrics.PerfDataProto.SampleEvent)
4614 size_t total_size = 0;
4615
4616 uint32_t cached_has_bits = 0;
4617 // Prevent compiler warnings about cached_has_bits being unused
4618 (void) cached_has_bits;
4619
4620 // repeated uint64 callchain = 11;
4621 {
4622 size_t data_size = ::_pbi::WireFormatLite::
4623 UInt64Size(this->_impl_.callchain_);
4624 total_size += 1 *
4625 ::_pbi::FromIntSize(this->_internal_callchain_size());
4626 total_size += data_size;
4627 }
4628
4629 // repeated .metrics.PerfDataProto.BranchStackEntry branch_stack = 12;
4630 total_size += 1UL * this->_internal_branch_stack_size();
4631 for (const auto& msg : this->_impl_.branch_stack_) {
4632 total_size +=
4633 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
4634 }
4635
4636 cached_has_bits = _impl_._has_bits_[0];
4637 if (cached_has_bits & 0x000000ffu) {
4638 // optional uint64 ip = 1;
4639 if (cached_has_bits & 0x00000001u) {
4640 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_ip());
4641 }
4642
4643 // optional uint32 pid = 2;
4644 if (cached_has_bits & 0x00000002u) {
4645 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_pid());
4646 }
4647
4648 // optional uint32 tid = 3;
4649 if (cached_has_bits & 0x00000004u) {
4650 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_tid());
4651 }
4652
4653 // optional uint64 sample_time_ns = 4;
4654 if (cached_has_bits & 0x00000008u) {
4655 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_sample_time_ns());
4656 }
4657
4658 // optional uint64 addr = 5;
4659 if (cached_has_bits & 0x00000010u) {
4660 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_addr());
4661 }
4662
4663 // optional uint64 id = 6;
4664 if (cached_has_bits & 0x00000020u) {
4665 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_id());
4666 }
4667
4668 // optional uint64 stream_id = 7;
4669 if (cached_has_bits & 0x00000040u) {
4670 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_stream_id());
4671 }
4672
4673 // optional uint64 period = 8;
4674 if (cached_has_bits & 0x00000080u) {
4675 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_period());
4676 }
4677
4678 }
4679 if (cached_has_bits & 0x00001f00u) {
4680 // optional uint32 cpu = 9;
4681 if (cached_has_bits & 0x00000100u) {
4682 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_cpu());
4683 }
4684
4685 // optional uint32 raw_size = 10;
4686 if (cached_has_bits & 0x00000200u) {
4687 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_raw_size());
4688 }
4689
4690 // optional uint64 weight = 15;
4691 if (cached_has_bits & 0x00000400u) {
4692 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_weight());
4693 }
4694
4695 // optional uint64 data_src = 16;
4696 if (cached_has_bits & 0x00000800u) {
4697 total_size += 2 +
4698 ::_pbi::WireFormatLite::UInt64Size(
4699 this->_internal_data_src());
4700 }
4701
4702 // optional uint64 transaction = 17;
4703 if (cached_has_bits & 0x00001000u) {
4704 total_size += 2 +
4705 ::_pbi::WireFormatLite::UInt64Size(
4706 this->_internal_transaction());
4707 }
4708
4709 }
4710 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4711 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
4712 }
4713 int cached_size = ::_pbi::ToCachedSize(total_size);
4714 SetCachedSize(cached_size);
4715 return total_size;
4716 }
4717
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)4718 void PerfDataProto_SampleEvent::CheckTypeAndMergeFrom(
4719 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
4720 MergeFrom(*::_pbi::DownCast<const PerfDataProto_SampleEvent*>(
4721 &from));
4722 }
4723
MergeFrom(const PerfDataProto_SampleEvent & from)4724 void PerfDataProto_SampleEvent::MergeFrom(const PerfDataProto_SampleEvent& from) {
4725 PerfDataProto_SampleEvent* const _this = this;
4726 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.PerfDataProto.SampleEvent)
4727 GOOGLE_DCHECK_NE(&from, _this);
4728 uint32_t cached_has_bits = 0;
4729 (void) cached_has_bits;
4730
4731 _this->_impl_.callchain_.MergeFrom(from._impl_.callchain_);
4732 _this->_impl_.branch_stack_.MergeFrom(from._impl_.branch_stack_);
4733 cached_has_bits = from._impl_._has_bits_[0];
4734 if (cached_has_bits & 0x000000ffu) {
4735 if (cached_has_bits & 0x00000001u) {
4736 _this->_impl_.ip_ = from._impl_.ip_;
4737 }
4738 if (cached_has_bits & 0x00000002u) {
4739 _this->_impl_.pid_ = from._impl_.pid_;
4740 }
4741 if (cached_has_bits & 0x00000004u) {
4742 _this->_impl_.tid_ = from._impl_.tid_;
4743 }
4744 if (cached_has_bits & 0x00000008u) {
4745 _this->_impl_.sample_time_ns_ = from._impl_.sample_time_ns_;
4746 }
4747 if (cached_has_bits & 0x00000010u) {
4748 _this->_impl_.addr_ = from._impl_.addr_;
4749 }
4750 if (cached_has_bits & 0x00000020u) {
4751 _this->_impl_.id_ = from._impl_.id_;
4752 }
4753 if (cached_has_bits & 0x00000040u) {
4754 _this->_impl_.stream_id_ = from._impl_.stream_id_;
4755 }
4756 if (cached_has_bits & 0x00000080u) {
4757 _this->_impl_.period_ = from._impl_.period_;
4758 }
4759 _this->_impl_._has_bits_[0] |= cached_has_bits;
4760 }
4761 if (cached_has_bits & 0x00001f00u) {
4762 if (cached_has_bits & 0x00000100u) {
4763 _this->_impl_.cpu_ = from._impl_.cpu_;
4764 }
4765 if (cached_has_bits & 0x00000200u) {
4766 _this->_impl_.raw_size_ = from._impl_.raw_size_;
4767 }
4768 if (cached_has_bits & 0x00000400u) {
4769 _this->_impl_.weight_ = from._impl_.weight_;
4770 }
4771 if (cached_has_bits & 0x00000800u) {
4772 _this->_impl_.data_src_ = from._impl_.data_src_;
4773 }
4774 if (cached_has_bits & 0x00001000u) {
4775 _this->_impl_.transaction_ = from._impl_.transaction_;
4776 }
4777 _this->_impl_._has_bits_[0] |= cached_has_bits;
4778 }
4779 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
4780 }
4781
CopyFrom(const PerfDataProto_SampleEvent & from)4782 void PerfDataProto_SampleEvent::CopyFrom(const PerfDataProto_SampleEvent& from) {
4783 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.PerfDataProto.SampleEvent)
4784 if (&from == this) return;
4785 Clear();
4786 MergeFrom(from);
4787 }
4788
IsInitialized() const4789 bool PerfDataProto_SampleEvent::IsInitialized() const {
4790 return true;
4791 }
4792
InternalSwap(PerfDataProto_SampleEvent * other)4793 void PerfDataProto_SampleEvent::InternalSwap(PerfDataProto_SampleEvent* other) {
4794 using std::swap;
4795 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
4796 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
4797 _impl_.callchain_.InternalSwap(&other->_impl_.callchain_);
4798 _impl_.branch_stack_.InternalSwap(&other->_impl_.branch_stack_);
4799 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
4800 PROTOBUF_FIELD_OFFSET(PerfDataProto_SampleEvent, _impl_.transaction_)
4801 + sizeof(PerfDataProto_SampleEvent::_impl_.transaction_)
4802 - PROTOBUF_FIELD_OFFSET(PerfDataProto_SampleEvent, _impl_.ip_)>(
4803 reinterpret_cast<char*>(&_impl_.ip_),
4804 reinterpret_cast<char*>(&other->_impl_.ip_));
4805 }
4806
GetTypeName() const4807 std::string PerfDataProto_SampleEvent::GetTypeName() const {
4808 return "metrics.PerfDataProto.SampleEvent";
4809 }
4810
4811
4812 // ===================================================================
4813
4814 class PerfDataProto_ForkEvent::_Internal {
4815 public:
4816 using HasBits = decltype(std::declval<PerfDataProto_ForkEvent>()._impl_._has_bits_);
set_has_pid(HasBits * has_bits)4817 static void set_has_pid(HasBits* has_bits) {
4818 (*has_bits)[0] |= 2u;
4819 }
set_has_ppid(HasBits * has_bits)4820 static void set_has_ppid(HasBits* has_bits) {
4821 (*has_bits)[0] |= 4u;
4822 }
set_has_tid(HasBits * has_bits)4823 static void set_has_tid(HasBits* has_bits) {
4824 (*has_bits)[0] |= 8u;
4825 }
set_has_ptid(HasBits * has_bits)4826 static void set_has_ptid(HasBits* has_bits) {
4827 (*has_bits)[0] |= 16u;
4828 }
set_has_fork_time_ns(HasBits * has_bits)4829 static void set_has_fork_time_ns(HasBits* has_bits) {
4830 (*has_bits)[0] |= 32u;
4831 }
4832 static const ::metrics::PerfDataProto_SampleInfo& sample_info(const PerfDataProto_ForkEvent* msg);
set_has_sample_info(HasBits * has_bits)4833 static void set_has_sample_info(HasBits* has_bits) {
4834 (*has_bits)[0] |= 1u;
4835 }
4836 };
4837
4838 const ::metrics::PerfDataProto_SampleInfo&
sample_info(const PerfDataProto_ForkEvent * msg)4839 PerfDataProto_ForkEvent::_Internal::sample_info(const PerfDataProto_ForkEvent* msg) {
4840 return *msg->_impl_.sample_info_;
4841 }
PerfDataProto_ForkEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)4842 PerfDataProto_ForkEvent::PerfDataProto_ForkEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
4843 bool is_message_owned)
4844 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
4845 SharedCtor(arena, is_message_owned);
4846 // @@protoc_insertion_point(arena_constructor:metrics.PerfDataProto.ForkEvent)
4847 }
PerfDataProto_ForkEvent(const PerfDataProto_ForkEvent & from)4848 PerfDataProto_ForkEvent::PerfDataProto_ForkEvent(const PerfDataProto_ForkEvent& from)
4849 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
4850 PerfDataProto_ForkEvent* const _this = this; (void)_this;
4851 new (&_impl_) Impl_{
4852 decltype(_impl_._has_bits_){from._impl_._has_bits_}
4853 , /*decltype(_impl_._cached_size_)*/{}
4854 , decltype(_impl_.sample_info_){nullptr}
4855 , decltype(_impl_.pid_){}
4856 , decltype(_impl_.ppid_){}
4857 , decltype(_impl_.tid_){}
4858 , decltype(_impl_.ptid_){}
4859 , decltype(_impl_.fork_time_ns_){}};
4860
4861 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
4862 if (from._internal_has_sample_info()) {
4863 _this->_impl_.sample_info_ = new ::metrics::PerfDataProto_SampleInfo(*from._impl_.sample_info_);
4864 }
4865 ::memcpy(&_impl_.pid_, &from._impl_.pid_,
4866 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.fork_time_ns_) -
4867 reinterpret_cast<char*>(&_impl_.pid_)) + sizeof(_impl_.fork_time_ns_));
4868 // @@protoc_insertion_point(copy_constructor:metrics.PerfDataProto.ForkEvent)
4869 }
4870
SharedCtor(::_pb::Arena * arena,bool is_message_owned)4871 inline void PerfDataProto_ForkEvent::SharedCtor(
4872 ::_pb::Arena* arena, bool is_message_owned) {
4873 (void)arena;
4874 (void)is_message_owned;
4875 new (&_impl_) Impl_{
4876 decltype(_impl_._has_bits_){}
4877 , /*decltype(_impl_._cached_size_)*/{}
4878 , decltype(_impl_.sample_info_){nullptr}
4879 , decltype(_impl_.pid_){0u}
4880 , decltype(_impl_.ppid_){0u}
4881 , decltype(_impl_.tid_){0u}
4882 , decltype(_impl_.ptid_){0u}
4883 , decltype(_impl_.fork_time_ns_){uint64_t{0u}}
4884 };
4885 }
4886
~PerfDataProto_ForkEvent()4887 PerfDataProto_ForkEvent::~PerfDataProto_ForkEvent() {
4888 // @@protoc_insertion_point(destructor:metrics.PerfDataProto.ForkEvent)
4889 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
4890 (void)arena;
4891 return;
4892 }
4893 SharedDtor();
4894 }
4895
SharedDtor()4896 inline void PerfDataProto_ForkEvent::SharedDtor() {
4897 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
4898 if (this != internal_default_instance()) delete _impl_.sample_info_;
4899 }
4900
SetCachedSize(int size) const4901 void PerfDataProto_ForkEvent::SetCachedSize(int size) const {
4902 _impl_._cached_size_.Set(size);
4903 }
4904
Clear()4905 void PerfDataProto_ForkEvent::Clear() {
4906 // @@protoc_insertion_point(message_clear_start:metrics.PerfDataProto.ForkEvent)
4907 uint32_t cached_has_bits = 0;
4908 // Prevent compiler warnings about cached_has_bits being unused
4909 (void) cached_has_bits;
4910
4911 cached_has_bits = _impl_._has_bits_[0];
4912 if (cached_has_bits & 0x00000001u) {
4913 GOOGLE_DCHECK(_impl_.sample_info_ != nullptr);
4914 _impl_.sample_info_->Clear();
4915 }
4916 if (cached_has_bits & 0x0000003eu) {
4917 ::memset(&_impl_.pid_, 0, static_cast<size_t>(
4918 reinterpret_cast<char*>(&_impl_.fork_time_ns_) -
4919 reinterpret_cast<char*>(&_impl_.pid_)) + sizeof(_impl_.fork_time_ns_));
4920 }
4921 _impl_._has_bits_.Clear();
4922 _internal_metadata_.Clear<std::string>();
4923 }
4924
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)4925 const char* PerfDataProto_ForkEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
4926 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
4927 _Internal::HasBits has_bits{};
4928 while (!ctx->Done(&ptr)) {
4929 uint32_t tag;
4930 ptr = ::_pbi::ReadTag(ptr, &tag);
4931 switch (tag >> 3) {
4932 // optional uint32 pid = 1;
4933 case 1:
4934 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
4935 _Internal::set_has_pid(&has_bits);
4936 _impl_.pid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
4937 CHK_(ptr);
4938 } else
4939 goto handle_unusual;
4940 continue;
4941 // optional uint32 ppid = 2;
4942 case 2:
4943 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
4944 _Internal::set_has_ppid(&has_bits);
4945 _impl_.ppid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
4946 CHK_(ptr);
4947 } else
4948 goto handle_unusual;
4949 continue;
4950 // optional uint32 tid = 3;
4951 case 3:
4952 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
4953 _Internal::set_has_tid(&has_bits);
4954 _impl_.tid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
4955 CHK_(ptr);
4956 } else
4957 goto handle_unusual;
4958 continue;
4959 // optional uint32 ptid = 4;
4960 case 4:
4961 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
4962 _Internal::set_has_ptid(&has_bits);
4963 _impl_.ptid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
4964 CHK_(ptr);
4965 } else
4966 goto handle_unusual;
4967 continue;
4968 // optional uint64 fork_time_ns = 5;
4969 case 5:
4970 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
4971 _Internal::set_has_fork_time_ns(&has_bits);
4972 _impl_.fork_time_ns_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
4973 CHK_(ptr);
4974 } else
4975 goto handle_unusual;
4976 continue;
4977 // optional .metrics.PerfDataProto.SampleInfo sample_info = 11;
4978 case 11:
4979 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 90)) {
4980 ptr = ctx->ParseMessage(_internal_mutable_sample_info(), ptr);
4981 CHK_(ptr);
4982 } else
4983 goto handle_unusual;
4984 continue;
4985 default:
4986 goto handle_unusual;
4987 } // switch
4988 handle_unusual:
4989 if ((tag == 0) || ((tag & 7) == 4)) {
4990 CHK_(ptr);
4991 ctx->SetLastTag(tag);
4992 goto message_done;
4993 }
4994 ptr = UnknownFieldParse(
4995 tag,
4996 _internal_metadata_.mutable_unknown_fields<std::string>(),
4997 ptr, ctx);
4998 CHK_(ptr != nullptr);
4999 } // while
5000 message_done:
5001 _impl_._has_bits_.Or(has_bits);
5002 return ptr;
5003 failure:
5004 ptr = nullptr;
5005 goto message_done;
5006 #undef CHK_
5007 }
5008
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const5009 uint8_t* PerfDataProto_ForkEvent::_InternalSerialize(
5010 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
5011 // @@protoc_insertion_point(serialize_to_array_start:metrics.PerfDataProto.ForkEvent)
5012 uint32_t cached_has_bits = 0;
5013 (void) cached_has_bits;
5014
5015 cached_has_bits = _impl_._has_bits_[0];
5016 // optional uint32 pid = 1;
5017 if (cached_has_bits & 0x00000002u) {
5018 target = stream->EnsureSpace(target);
5019 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_pid(), target);
5020 }
5021
5022 // optional uint32 ppid = 2;
5023 if (cached_has_bits & 0x00000004u) {
5024 target = stream->EnsureSpace(target);
5025 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_ppid(), target);
5026 }
5027
5028 // optional uint32 tid = 3;
5029 if (cached_has_bits & 0x00000008u) {
5030 target = stream->EnsureSpace(target);
5031 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_tid(), target);
5032 }
5033
5034 // optional uint32 ptid = 4;
5035 if (cached_has_bits & 0x00000010u) {
5036 target = stream->EnsureSpace(target);
5037 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(4, this->_internal_ptid(), target);
5038 }
5039
5040 // optional uint64 fork_time_ns = 5;
5041 if (cached_has_bits & 0x00000020u) {
5042 target = stream->EnsureSpace(target);
5043 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(5, this->_internal_fork_time_ns(), target);
5044 }
5045
5046 // optional .metrics.PerfDataProto.SampleInfo sample_info = 11;
5047 if (cached_has_bits & 0x00000001u) {
5048 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
5049 InternalWriteMessage(11, _Internal::sample_info(this),
5050 _Internal::sample_info(this).GetCachedSize(), target, stream);
5051 }
5052
5053 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5054 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
5055 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
5056 }
5057 // @@protoc_insertion_point(serialize_to_array_end:metrics.PerfDataProto.ForkEvent)
5058 return target;
5059 }
5060
ByteSizeLong() const5061 size_t PerfDataProto_ForkEvent::ByteSizeLong() const {
5062 // @@protoc_insertion_point(message_byte_size_start:metrics.PerfDataProto.ForkEvent)
5063 size_t total_size = 0;
5064
5065 uint32_t cached_has_bits = 0;
5066 // Prevent compiler warnings about cached_has_bits being unused
5067 (void) cached_has_bits;
5068
5069 cached_has_bits = _impl_._has_bits_[0];
5070 if (cached_has_bits & 0x0000003fu) {
5071 // optional .metrics.PerfDataProto.SampleInfo sample_info = 11;
5072 if (cached_has_bits & 0x00000001u) {
5073 total_size += 1 +
5074 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
5075 *_impl_.sample_info_);
5076 }
5077
5078 // optional uint32 pid = 1;
5079 if (cached_has_bits & 0x00000002u) {
5080 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_pid());
5081 }
5082
5083 // optional uint32 ppid = 2;
5084 if (cached_has_bits & 0x00000004u) {
5085 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_ppid());
5086 }
5087
5088 // optional uint32 tid = 3;
5089 if (cached_has_bits & 0x00000008u) {
5090 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_tid());
5091 }
5092
5093 // optional uint32 ptid = 4;
5094 if (cached_has_bits & 0x00000010u) {
5095 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_ptid());
5096 }
5097
5098 // optional uint64 fork_time_ns = 5;
5099 if (cached_has_bits & 0x00000020u) {
5100 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_fork_time_ns());
5101 }
5102
5103 }
5104 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5105 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
5106 }
5107 int cached_size = ::_pbi::ToCachedSize(total_size);
5108 SetCachedSize(cached_size);
5109 return total_size;
5110 }
5111
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)5112 void PerfDataProto_ForkEvent::CheckTypeAndMergeFrom(
5113 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
5114 MergeFrom(*::_pbi::DownCast<const PerfDataProto_ForkEvent*>(
5115 &from));
5116 }
5117
MergeFrom(const PerfDataProto_ForkEvent & from)5118 void PerfDataProto_ForkEvent::MergeFrom(const PerfDataProto_ForkEvent& from) {
5119 PerfDataProto_ForkEvent* const _this = this;
5120 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.PerfDataProto.ForkEvent)
5121 GOOGLE_DCHECK_NE(&from, _this);
5122 uint32_t cached_has_bits = 0;
5123 (void) cached_has_bits;
5124
5125 cached_has_bits = from._impl_._has_bits_[0];
5126 if (cached_has_bits & 0x0000003fu) {
5127 if (cached_has_bits & 0x00000001u) {
5128 _this->_internal_mutable_sample_info()->::metrics::PerfDataProto_SampleInfo::MergeFrom(
5129 from._internal_sample_info());
5130 }
5131 if (cached_has_bits & 0x00000002u) {
5132 _this->_impl_.pid_ = from._impl_.pid_;
5133 }
5134 if (cached_has_bits & 0x00000004u) {
5135 _this->_impl_.ppid_ = from._impl_.ppid_;
5136 }
5137 if (cached_has_bits & 0x00000008u) {
5138 _this->_impl_.tid_ = from._impl_.tid_;
5139 }
5140 if (cached_has_bits & 0x00000010u) {
5141 _this->_impl_.ptid_ = from._impl_.ptid_;
5142 }
5143 if (cached_has_bits & 0x00000020u) {
5144 _this->_impl_.fork_time_ns_ = from._impl_.fork_time_ns_;
5145 }
5146 _this->_impl_._has_bits_[0] |= cached_has_bits;
5147 }
5148 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
5149 }
5150
CopyFrom(const PerfDataProto_ForkEvent & from)5151 void PerfDataProto_ForkEvent::CopyFrom(const PerfDataProto_ForkEvent& from) {
5152 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.PerfDataProto.ForkEvent)
5153 if (&from == this) return;
5154 Clear();
5155 MergeFrom(from);
5156 }
5157
IsInitialized() const5158 bool PerfDataProto_ForkEvent::IsInitialized() const {
5159 return true;
5160 }
5161
InternalSwap(PerfDataProto_ForkEvent * other)5162 void PerfDataProto_ForkEvent::InternalSwap(PerfDataProto_ForkEvent* other) {
5163 using std::swap;
5164 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
5165 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
5166 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
5167 PROTOBUF_FIELD_OFFSET(PerfDataProto_ForkEvent, _impl_.fork_time_ns_)
5168 + sizeof(PerfDataProto_ForkEvent::_impl_.fork_time_ns_)
5169 - PROTOBUF_FIELD_OFFSET(PerfDataProto_ForkEvent, _impl_.sample_info_)>(
5170 reinterpret_cast<char*>(&_impl_.sample_info_),
5171 reinterpret_cast<char*>(&other->_impl_.sample_info_));
5172 }
5173
GetTypeName() const5174 std::string PerfDataProto_ForkEvent::GetTypeName() const {
5175 return "metrics.PerfDataProto.ForkEvent";
5176 }
5177
5178
5179 // ===================================================================
5180
5181 class PerfDataProto_EventHeader::_Internal {
5182 public:
5183 using HasBits = decltype(std::declval<PerfDataProto_EventHeader>()._impl_._has_bits_);
set_has_type(HasBits * has_bits)5184 static void set_has_type(HasBits* has_bits) {
5185 (*has_bits)[0] |= 1u;
5186 }
set_has_misc(HasBits * has_bits)5187 static void set_has_misc(HasBits* has_bits) {
5188 (*has_bits)[0] |= 2u;
5189 }
set_has_size(HasBits * has_bits)5190 static void set_has_size(HasBits* has_bits) {
5191 (*has_bits)[0] |= 4u;
5192 }
5193 };
5194
PerfDataProto_EventHeader(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)5195 PerfDataProto_EventHeader::PerfDataProto_EventHeader(::PROTOBUF_NAMESPACE_ID::Arena* arena,
5196 bool is_message_owned)
5197 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
5198 SharedCtor(arena, is_message_owned);
5199 // @@protoc_insertion_point(arena_constructor:metrics.PerfDataProto.EventHeader)
5200 }
PerfDataProto_EventHeader(const PerfDataProto_EventHeader & from)5201 PerfDataProto_EventHeader::PerfDataProto_EventHeader(const PerfDataProto_EventHeader& from)
5202 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
5203 PerfDataProto_EventHeader* const _this = this; (void)_this;
5204 new (&_impl_) Impl_{
5205 decltype(_impl_._has_bits_){from._impl_._has_bits_}
5206 , /*decltype(_impl_._cached_size_)*/{}
5207 , decltype(_impl_.type_){}
5208 , decltype(_impl_.misc_){}
5209 , decltype(_impl_.size_){}};
5210
5211 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
5212 ::memcpy(&_impl_.type_, &from._impl_.type_,
5213 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.size_) -
5214 reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.size_));
5215 // @@protoc_insertion_point(copy_constructor:metrics.PerfDataProto.EventHeader)
5216 }
5217
SharedCtor(::_pb::Arena * arena,bool is_message_owned)5218 inline void PerfDataProto_EventHeader::SharedCtor(
5219 ::_pb::Arena* arena, bool is_message_owned) {
5220 (void)arena;
5221 (void)is_message_owned;
5222 new (&_impl_) Impl_{
5223 decltype(_impl_._has_bits_){}
5224 , /*decltype(_impl_._cached_size_)*/{}
5225 , decltype(_impl_.type_){0u}
5226 , decltype(_impl_.misc_){0u}
5227 , decltype(_impl_.size_){0u}
5228 };
5229 }
5230
~PerfDataProto_EventHeader()5231 PerfDataProto_EventHeader::~PerfDataProto_EventHeader() {
5232 // @@protoc_insertion_point(destructor:metrics.PerfDataProto.EventHeader)
5233 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
5234 (void)arena;
5235 return;
5236 }
5237 SharedDtor();
5238 }
5239
SharedDtor()5240 inline void PerfDataProto_EventHeader::SharedDtor() {
5241 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
5242 }
5243
SetCachedSize(int size) const5244 void PerfDataProto_EventHeader::SetCachedSize(int size) const {
5245 _impl_._cached_size_.Set(size);
5246 }
5247
Clear()5248 void PerfDataProto_EventHeader::Clear() {
5249 // @@protoc_insertion_point(message_clear_start:metrics.PerfDataProto.EventHeader)
5250 uint32_t cached_has_bits = 0;
5251 // Prevent compiler warnings about cached_has_bits being unused
5252 (void) cached_has_bits;
5253
5254 cached_has_bits = _impl_._has_bits_[0];
5255 if (cached_has_bits & 0x00000007u) {
5256 ::memset(&_impl_.type_, 0, static_cast<size_t>(
5257 reinterpret_cast<char*>(&_impl_.size_) -
5258 reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.size_));
5259 }
5260 _impl_._has_bits_.Clear();
5261 _internal_metadata_.Clear<std::string>();
5262 }
5263
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)5264 const char* PerfDataProto_EventHeader::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
5265 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
5266 _Internal::HasBits has_bits{};
5267 while (!ctx->Done(&ptr)) {
5268 uint32_t tag;
5269 ptr = ::_pbi::ReadTag(ptr, &tag);
5270 switch (tag >> 3) {
5271 // optional uint32 type = 1;
5272 case 1:
5273 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
5274 _Internal::set_has_type(&has_bits);
5275 _impl_.type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
5276 CHK_(ptr);
5277 } else
5278 goto handle_unusual;
5279 continue;
5280 // optional uint32 misc = 2;
5281 case 2:
5282 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
5283 _Internal::set_has_misc(&has_bits);
5284 _impl_.misc_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
5285 CHK_(ptr);
5286 } else
5287 goto handle_unusual;
5288 continue;
5289 // optional uint32 size = 3;
5290 case 3:
5291 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
5292 _Internal::set_has_size(&has_bits);
5293 _impl_.size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
5294 CHK_(ptr);
5295 } else
5296 goto handle_unusual;
5297 continue;
5298 default:
5299 goto handle_unusual;
5300 } // switch
5301 handle_unusual:
5302 if ((tag == 0) || ((tag & 7) == 4)) {
5303 CHK_(ptr);
5304 ctx->SetLastTag(tag);
5305 goto message_done;
5306 }
5307 ptr = UnknownFieldParse(
5308 tag,
5309 _internal_metadata_.mutable_unknown_fields<std::string>(),
5310 ptr, ctx);
5311 CHK_(ptr != nullptr);
5312 } // while
5313 message_done:
5314 _impl_._has_bits_.Or(has_bits);
5315 return ptr;
5316 failure:
5317 ptr = nullptr;
5318 goto message_done;
5319 #undef CHK_
5320 }
5321
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const5322 uint8_t* PerfDataProto_EventHeader::_InternalSerialize(
5323 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
5324 // @@protoc_insertion_point(serialize_to_array_start:metrics.PerfDataProto.EventHeader)
5325 uint32_t cached_has_bits = 0;
5326 (void) cached_has_bits;
5327
5328 cached_has_bits = _impl_._has_bits_[0];
5329 // optional uint32 type = 1;
5330 if (cached_has_bits & 0x00000001u) {
5331 target = stream->EnsureSpace(target);
5332 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_type(), target);
5333 }
5334
5335 // optional uint32 misc = 2;
5336 if (cached_has_bits & 0x00000002u) {
5337 target = stream->EnsureSpace(target);
5338 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_misc(), target);
5339 }
5340
5341 // optional uint32 size = 3;
5342 if (cached_has_bits & 0x00000004u) {
5343 target = stream->EnsureSpace(target);
5344 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_size(), target);
5345 }
5346
5347 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5348 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
5349 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
5350 }
5351 // @@protoc_insertion_point(serialize_to_array_end:metrics.PerfDataProto.EventHeader)
5352 return target;
5353 }
5354
ByteSizeLong() const5355 size_t PerfDataProto_EventHeader::ByteSizeLong() const {
5356 // @@protoc_insertion_point(message_byte_size_start:metrics.PerfDataProto.EventHeader)
5357 size_t total_size = 0;
5358
5359 uint32_t cached_has_bits = 0;
5360 // Prevent compiler warnings about cached_has_bits being unused
5361 (void) cached_has_bits;
5362
5363 cached_has_bits = _impl_._has_bits_[0];
5364 if (cached_has_bits & 0x00000007u) {
5365 // optional uint32 type = 1;
5366 if (cached_has_bits & 0x00000001u) {
5367 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_type());
5368 }
5369
5370 // optional uint32 misc = 2;
5371 if (cached_has_bits & 0x00000002u) {
5372 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_misc());
5373 }
5374
5375 // optional uint32 size = 3;
5376 if (cached_has_bits & 0x00000004u) {
5377 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_size());
5378 }
5379
5380 }
5381 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5382 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
5383 }
5384 int cached_size = ::_pbi::ToCachedSize(total_size);
5385 SetCachedSize(cached_size);
5386 return total_size;
5387 }
5388
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)5389 void PerfDataProto_EventHeader::CheckTypeAndMergeFrom(
5390 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
5391 MergeFrom(*::_pbi::DownCast<const PerfDataProto_EventHeader*>(
5392 &from));
5393 }
5394
MergeFrom(const PerfDataProto_EventHeader & from)5395 void PerfDataProto_EventHeader::MergeFrom(const PerfDataProto_EventHeader& from) {
5396 PerfDataProto_EventHeader* const _this = this;
5397 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.PerfDataProto.EventHeader)
5398 GOOGLE_DCHECK_NE(&from, _this);
5399 uint32_t cached_has_bits = 0;
5400 (void) cached_has_bits;
5401
5402 cached_has_bits = from._impl_._has_bits_[0];
5403 if (cached_has_bits & 0x00000007u) {
5404 if (cached_has_bits & 0x00000001u) {
5405 _this->_impl_.type_ = from._impl_.type_;
5406 }
5407 if (cached_has_bits & 0x00000002u) {
5408 _this->_impl_.misc_ = from._impl_.misc_;
5409 }
5410 if (cached_has_bits & 0x00000004u) {
5411 _this->_impl_.size_ = from._impl_.size_;
5412 }
5413 _this->_impl_._has_bits_[0] |= cached_has_bits;
5414 }
5415 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
5416 }
5417
CopyFrom(const PerfDataProto_EventHeader & from)5418 void PerfDataProto_EventHeader::CopyFrom(const PerfDataProto_EventHeader& from) {
5419 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.PerfDataProto.EventHeader)
5420 if (&from == this) return;
5421 Clear();
5422 MergeFrom(from);
5423 }
5424
IsInitialized() const5425 bool PerfDataProto_EventHeader::IsInitialized() const {
5426 return true;
5427 }
5428
InternalSwap(PerfDataProto_EventHeader * other)5429 void PerfDataProto_EventHeader::InternalSwap(PerfDataProto_EventHeader* other) {
5430 using std::swap;
5431 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
5432 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
5433 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
5434 PROTOBUF_FIELD_OFFSET(PerfDataProto_EventHeader, _impl_.size_)
5435 + sizeof(PerfDataProto_EventHeader::_impl_.size_)
5436 - PROTOBUF_FIELD_OFFSET(PerfDataProto_EventHeader, _impl_.type_)>(
5437 reinterpret_cast<char*>(&_impl_.type_),
5438 reinterpret_cast<char*>(&other->_impl_.type_));
5439 }
5440
GetTypeName() const5441 std::string PerfDataProto_EventHeader::GetTypeName() const {
5442 return "metrics.PerfDataProto.EventHeader";
5443 }
5444
5445
5446 // ===================================================================
5447
5448 class PerfDataProto_PerfEvent::_Internal {
5449 public:
5450 using HasBits = decltype(std::declval<PerfDataProto_PerfEvent>()._impl_._has_bits_);
5451 static const ::metrics::PerfDataProto_EventHeader& header(const PerfDataProto_PerfEvent* msg);
set_has_header(HasBits * has_bits)5452 static void set_has_header(HasBits* has_bits) {
5453 (*has_bits)[0] |= 1u;
5454 }
5455 static const ::metrics::PerfDataProto_MMapEvent& mmap_event(const PerfDataProto_PerfEvent* msg);
5456 static const ::metrics::PerfDataProto_SampleEvent& sample_event(const PerfDataProto_PerfEvent* msg);
5457 static const ::metrics::PerfDataProto_CommEvent& comm_event(const PerfDataProto_PerfEvent* msg);
5458 static const ::metrics::PerfDataProto_ForkEvent& fork_event(const PerfDataProto_PerfEvent* msg);
5459 static const ::metrics::PerfDataProto_ForkEvent& exit_event(const PerfDataProto_PerfEvent* msg);
5460 static const ::metrics::PerfDataProto_LostEvent& lost_event(const PerfDataProto_PerfEvent* msg);
5461 static const ::metrics::PerfDataProto_ThrottleEvent& throttle_event(const PerfDataProto_PerfEvent* msg);
set_has_timestamp(HasBits * has_bits)5462 static void set_has_timestamp(HasBits* has_bits) {
5463 (*has_bits)[0] |= 2u;
5464 }
5465 };
5466
5467 const ::metrics::PerfDataProto_EventHeader&
header(const PerfDataProto_PerfEvent * msg)5468 PerfDataProto_PerfEvent::_Internal::header(const PerfDataProto_PerfEvent* msg) {
5469 return *msg->_impl_.header_;
5470 }
5471 const ::metrics::PerfDataProto_MMapEvent&
mmap_event(const PerfDataProto_PerfEvent * msg)5472 PerfDataProto_PerfEvent::_Internal::mmap_event(const PerfDataProto_PerfEvent* msg) {
5473 return *msg->_impl_.event_type_.mmap_event_;
5474 }
5475 const ::metrics::PerfDataProto_SampleEvent&
sample_event(const PerfDataProto_PerfEvent * msg)5476 PerfDataProto_PerfEvent::_Internal::sample_event(const PerfDataProto_PerfEvent* msg) {
5477 return *msg->_impl_.event_type_.sample_event_;
5478 }
5479 const ::metrics::PerfDataProto_CommEvent&
comm_event(const PerfDataProto_PerfEvent * msg)5480 PerfDataProto_PerfEvent::_Internal::comm_event(const PerfDataProto_PerfEvent* msg) {
5481 return *msg->_impl_.event_type_.comm_event_;
5482 }
5483 const ::metrics::PerfDataProto_ForkEvent&
fork_event(const PerfDataProto_PerfEvent * msg)5484 PerfDataProto_PerfEvent::_Internal::fork_event(const PerfDataProto_PerfEvent* msg) {
5485 return *msg->_impl_.event_type_.fork_event_;
5486 }
5487 const ::metrics::PerfDataProto_ForkEvent&
exit_event(const PerfDataProto_PerfEvent * msg)5488 PerfDataProto_PerfEvent::_Internal::exit_event(const PerfDataProto_PerfEvent* msg) {
5489 return *msg->_impl_.event_type_.exit_event_;
5490 }
5491 const ::metrics::PerfDataProto_LostEvent&
lost_event(const PerfDataProto_PerfEvent * msg)5492 PerfDataProto_PerfEvent::_Internal::lost_event(const PerfDataProto_PerfEvent* msg) {
5493 return *msg->_impl_.event_type_.lost_event_;
5494 }
5495 const ::metrics::PerfDataProto_ThrottleEvent&
throttle_event(const PerfDataProto_PerfEvent * msg)5496 PerfDataProto_PerfEvent::_Internal::throttle_event(const PerfDataProto_PerfEvent* msg) {
5497 return *msg->_impl_.event_type_.throttle_event_;
5498 }
set_allocated_mmap_event(::metrics::PerfDataProto_MMapEvent * mmap_event)5499 void PerfDataProto_PerfEvent::set_allocated_mmap_event(::metrics::PerfDataProto_MMapEvent* mmap_event) {
5500 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
5501 clear_event_type();
5502 if (mmap_event) {
5503 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
5504 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(mmap_event);
5505 if (message_arena != submessage_arena) {
5506 mmap_event = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
5507 message_arena, mmap_event, submessage_arena);
5508 }
5509 set_has_mmap_event();
5510 _impl_.event_type_.mmap_event_ = mmap_event;
5511 }
5512 // @@protoc_insertion_point(field_set_allocated:metrics.PerfDataProto.PerfEvent.mmap_event)
5513 }
set_allocated_sample_event(::metrics::PerfDataProto_SampleEvent * sample_event)5514 void PerfDataProto_PerfEvent::set_allocated_sample_event(::metrics::PerfDataProto_SampleEvent* sample_event) {
5515 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
5516 clear_event_type();
5517 if (sample_event) {
5518 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
5519 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(sample_event);
5520 if (message_arena != submessage_arena) {
5521 sample_event = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
5522 message_arena, sample_event, submessage_arena);
5523 }
5524 set_has_sample_event();
5525 _impl_.event_type_.sample_event_ = sample_event;
5526 }
5527 // @@protoc_insertion_point(field_set_allocated:metrics.PerfDataProto.PerfEvent.sample_event)
5528 }
set_allocated_comm_event(::metrics::PerfDataProto_CommEvent * comm_event)5529 void PerfDataProto_PerfEvent::set_allocated_comm_event(::metrics::PerfDataProto_CommEvent* comm_event) {
5530 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
5531 clear_event_type();
5532 if (comm_event) {
5533 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
5534 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(comm_event);
5535 if (message_arena != submessage_arena) {
5536 comm_event = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
5537 message_arena, comm_event, submessage_arena);
5538 }
5539 set_has_comm_event();
5540 _impl_.event_type_.comm_event_ = comm_event;
5541 }
5542 // @@protoc_insertion_point(field_set_allocated:metrics.PerfDataProto.PerfEvent.comm_event)
5543 }
set_allocated_fork_event(::metrics::PerfDataProto_ForkEvent * fork_event)5544 void PerfDataProto_PerfEvent::set_allocated_fork_event(::metrics::PerfDataProto_ForkEvent* fork_event) {
5545 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
5546 clear_event_type();
5547 if (fork_event) {
5548 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
5549 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(fork_event);
5550 if (message_arena != submessage_arena) {
5551 fork_event = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
5552 message_arena, fork_event, submessage_arena);
5553 }
5554 set_has_fork_event();
5555 _impl_.event_type_.fork_event_ = fork_event;
5556 }
5557 // @@protoc_insertion_point(field_set_allocated:metrics.PerfDataProto.PerfEvent.fork_event)
5558 }
set_allocated_exit_event(::metrics::PerfDataProto_ForkEvent * exit_event)5559 void PerfDataProto_PerfEvent::set_allocated_exit_event(::metrics::PerfDataProto_ForkEvent* exit_event) {
5560 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
5561 clear_event_type();
5562 if (exit_event) {
5563 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
5564 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(exit_event);
5565 if (message_arena != submessage_arena) {
5566 exit_event = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
5567 message_arena, exit_event, submessage_arena);
5568 }
5569 set_has_exit_event();
5570 _impl_.event_type_.exit_event_ = exit_event;
5571 }
5572 // @@protoc_insertion_point(field_set_allocated:metrics.PerfDataProto.PerfEvent.exit_event)
5573 }
set_allocated_lost_event(::metrics::PerfDataProto_LostEvent * lost_event)5574 void PerfDataProto_PerfEvent::set_allocated_lost_event(::metrics::PerfDataProto_LostEvent* lost_event) {
5575 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
5576 clear_event_type();
5577 if (lost_event) {
5578 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
5579 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(lost_event);
5580 if (message_arena != submessage_arena) {
5581 lost_event = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
5582 message_arena, lost_event, submessage_arena);
5583 }
5584 set_has_lost_event();
5585 _impl_.event_type_.lost_event_ = lost_event;
5586 }
5587 // @@protoc_insertion_point(field_set_allocated:metrics.PerfDataProto.PerfEvent.lost_event)
5588 }
set_allocated_throttle_event(::metrics::PerfDataProto_ThrottleEvent * throttle_event)5589 void PerfDataProto_PerfEvent::set_allocated_throttle_event(::metrics::PerfDataProto_ThrottleEvent* throttle_event) {
5590 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
5591 clear_event_type();
5592 if (throttle_event) {
5593 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
5594 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(throttle_event);
5595 if (message_arena != submessage_arena) {
5596 throttle_event = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
5597 message_arena, throttle_event, submessage_arena);
5598 }
5599 set_has_throttle_event();
5600 _impl_.event_type_.throttle_event_ = throttle_event;
5601 }
5602 // @@protoc_insertion_point(field_set_allocated:metrics.PerfDataProto.PerfEvent.throttle_event)
5603 }
PerfDataProto_PerfEvent(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)5604 PerfDataProto_PerfEvent::PerfDataProto_PerfEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
5605 bool is_message_owned)
5606 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
5607 SharedCtor(arena, is_message_owned);
5608 // @@protoc_insertion_point(arena_constructor:metrics.PerfDataProto.PerfEvent)
5609 }
PerfDataProto_PerfEvent(const PerfDataProto_PerfEvent & from)5610 PerfDataProto_PerfEvent::PerfDataProto_PerfEvent(const PerfDataProto_PerfEvent& from)
5611 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
5612 PerfDataProto_PerfEvent* const _this = this; (void)_this;
5613 new (&_impl_) Impl_{
5614 decltype(_impl_._has_bits_){from._impl_._has_bits_}
5615 , /*decltype(_impl_._cached_size_)*/{}
5616 , decltype(_impl_.header_){nullptr}
5617 , decltype(_impl_.timestamp_){}
5618 , decltype(_impl_.event_type_){}
5619 , /*decltype(_impl_._oneof_case_)*/{}};
5620
5621 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
5622 if (from._internal_has_header()) {
5623 _this->_impl_.header_ = new ::metrics::PerfDataProto_EventHeader(*from._impl_.header_);
5624 }
5625 _this->_impl_.timestamp_ = from._impl_.timestamp_;
5626 clear_has_event_type();
5627 switch (from.event_type_case()) {
5628 case kMmapEvent: {
5629 _this->_internal_mutable_mmap_event()->::metrics::PerfDataProto_MMapEvent::MergeFrom(
5630 from._internal_mmap_event());
5631 break;
5632 }
5633 case kSampleEvent: {
5634 _this->_internal_mutable_sample_event()->::metrics::PerfDataProto_SampleEvent::MergeFrom(
5635 from._internal_sample_event());
5636 break;
5637 }
5638 case kCommEvent: {
5639 _this->_internal_mutable_comm_event()->::metrics::PerfDataProto_CommEvent::MergeFrom(
5640 from._internal_comm_event());
5641 break;
5642 }
5643 case kForkEvent: {
5644 _this->_internal_mutable_fork_event()->::metrics::PerfDataProto_ForkEvent::MergeFrom(
5645 from._internal_fork_event());
5646 break;
5647 }
5648 case kExitEvent: {
5649 _this->_internal_mutable_exit_event()->::metrics::PerfDataProto_ForkEvent::MergeFrom(
5650 from._internal_exit_event());
5651 break;
5652 }
5653 case kLostEvent: {
5654 _this->_internal_mutable_lost_event()->::metrics::PerfDataProto_LostEvent::MergeFrom(
5655 from._internal_lost_event());
5656 break;
5657 }
5658 case kThrottleEvent: {
5659 _this->_internal_mutable_throttle_event()->::metrics::PerfDataProto_ThrottleEvent::MergeFrom(
5660 from._internal_throttle_event());
5661 break;
5662 }
5663 case EVENT_TYPE_NOT_SET: {
5664 break;
5665 }
5666 }
5667 // @@protoc_insertion_point(copy_constructor:metrics.PerfDataProto.PerfEvent)
5668 }
5669
SharedCtor(::_pb::Arena * arena,bool is_message_owned)5670 inline void PerfDataProto_PerfEvent::SharedCtor(
5671 ::_pb::Arena* arena, bool is_message_owned) {
5672 (void)arena;
5673 (void)is_message_owned;
5674 new (&_impl_) Impl_{
5675 decltype(_impl_._has_bits_){}
5676 , /*decltype(_impl_._cached_size_)*/{}
5677 , decltype(_impl_.header_){nullptr}
5678 , decltype(_impl_.timestamp_){uint64_t{0u}}
5679 , decltype(_impl_.event_type_){}
5680 , /*decltype(_impl_._oneof_case_)*/{}
5681 };
5682 clear_has_event_type();
5683 }
5684
~PerfDataProto_PerfEvent()5685 PerfDataProto_PerfEvent::~PerfDataProto_PerfEvent() {
5686 // @@protoc_insertion_point(destructor:metrics.PerfDataProto.PerfEvent)
5687 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
5688 (void)arena;
5689 return;
5690 }
5691 SharedDtor();
5692 }
5693
SharedDtor()5694 inline void PerfDataProto_PerfEvent::SharedDtor() {
5695 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
5696 if (this != internal_default_instance()) delete _impl_.header_;
5697 if (has_event_type()) {
5698 clear_event_type();
5699 }
5700 }
5701
SetCachedSize(int size) const5702 void PerfDataProto_PerfEvent::SetCachedSize(int size) const {
5703 _impl_._cached_size_.Set(size);
5704 }
5705
clear_event_type()5706 void PerfDataProto_PerfEvent::clear_event_type() {
5707 // @@protoc_insertion_point(one_of_clear_start:metrics.PerfDataProto.PerfEvent)
5708 switch (event_type_case()) {
5709 case kMmapEvent: {
5710 if (GetArenaForAllocation() == nullptr) {
5711 delete _impl_.event_type_.mmap_event_;
5712 }
5713 break;
5714 }
5715 case kSampleEvent: {
5716 if (GetArenaForAllocation() == nullptr) {
5717 delete _impl_.event_type_.sample_event_;
5718 }
5719 break;
5720 }
5721 case kCommEvent: {
5722 if (GetArenaForAllocation() == nullptr) {
5723 delete _impl_.event_type_.comm_event_;
5724 }
5725 break;
5726 }
5727 case kForkEvent: {
5728 if (GetArenaForAllocation() == nullptr) {
5729 delete _impl_.event_type_.fork_event_;
5730 }
5731 break;
5732 }
5733 case kExitEvent: {
5734 if (GetArenaForAllocation() == nullptr) {
5735 delete _impl_.event_type_.exit_event_;
5736 }
5737 break;
5738 }
5739 case kLostEvent: {
5740 if (GetArenaForAllocation() == nullptr) {
5741 delete _impl_.event_type_.lost_event_;
5742 }
5743 break;
5744 }
5745 case kThrottleEvent: {
5746 if (GetArenaForAllocation() == nullptr) {
5747 delete _impl_.event_type_.throttle_event_;
5748 }
5749 break;
5750 }
5751 case EVENT_TYPE_NOT_SET: {
5752 break;
5753 }
5754 }
5755 _impl_._oneof_case_[0] = EVENT_TYPE_NOT_SET;
5756 }
5757
5758
Clear()5759 void PerfDataProto_PerfEvent::Clear() {
5760 // @@protoc_insertion_point(message_clear_start:metrics.PerfDataProto.PerfEvent)
5761 uint32_t cached_has_bits = 0;
5762 // Prevent compiler warnings about cached_has_bits being unused
5763 (void) cached_has_bits;
5764
5765 cached_has_bits = _impl_._has_bits_[0];
5766 if (cached_has_bits & 0x00000001u) {
5767 GOOGLE_DCHECK(_impl_.header_ != nullptr);
5768 _impl_.header_->Clear();
5769 }
5770 _impl_.timestamp_ = uint64_t{0u};
5771 clear_event_type();
5772 _impl_._has_bits_.Clear();
5773 _internal_metadata_.Clear<std::string>();
5774 }
5775
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)5776 const char* PerfDataProto_PerfEvent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
5777 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
5778 _Internal::HasBits has_bits{};
5779 while (!ctx->Done(&ptr)) {
5780 uint32_t tag;
5781 ptr = ::_pbi::ReadTag(ptr, &tag);
5782 switch (tag >> 3) {
5783 // optional .metrics.PerfDataProto.EventHeader header = 1;
5784 case 1:
5785 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
5786 ptr = ctx->ParseMessage(_internal_mutable_header(), ptr);
5787 CHK_(ptr);
5788 } else
5789 goto handle_unusual;
5790 continue;
5791 // .metrics.PerfDataProto.MMapEvent mmap_event = 2;
5792 case 2:
5793 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
5794 ptr = ctx->ParseMessage(_internal_mutable_mmap_event(), ptr);
5795 CHK_(ptr);
5796 } else
5797 goto handle_unusual;
5798 continue;
5799 // .metrics.PerfDataProto.SampleEvent sample_event = 3;
5800 case 3:
5801 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
5802 ptr = ctx->ParseMessage(_internal_mutable_sample_event(), ptr);
5803 CHK_(ptr);
5804 } else
5805 goto handle_unusual;
5806 continue;
5807 // .metrics.PerfDataProto.CommEvent comm_event = 4;
5808 case 4:
5809 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
5810 ptr = ctx->ParseMessage(_internal_mutable_comm_event(), ptr);
5811 CHK_(ptr);
5812 } else
5813 goto handle_unusual;
5814 continue;
5815 // .metrics.PerfDataProto.ForkEvent fork_event = 5;
5816 case 5:
5817 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) {
5818 ptr = ctx->ParseMessage(_internal_mutable_fork_event(), ptr);
5819 CHK_(ptr);
5820 } else
5821 goto handle_unusual;
5822 continue;
5823 // .metrics.PerfDataProto.LostEvent lost_event = 6;
5824 case 6:
5825 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) {
5826 ptr = ctx->ParseMessage(_internal_mutable_lost_event(), ptr);
5827 CHK_(ptr);
5828 } else
5829 goto handle_unusual;
5830 continue;
5831 // .metrics.PerfDataProto.ThrottleEvent throttle_event = 7;
5832 case 7:
5833 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) {
5834 ptr = ctx->ParseMessage(_internal_mutable_throttle_event(), ptr);
5835 CHK_(ptr);
5836 } else
5837 goto handle_unusual;
5838 continue;
5839 // .metrics.PerfDataProto.ForkEvent exit_event = 9;
5840 case 9:
5841 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 74)) {
5842 ptr = ctx->ParseMessage(_internal_mutable_exit_event(), ptr);
5843 CHK_(ptr);
5844 } else
5845 goto handle_unusual;
5846 continue;
5847 // optional uint64 timestamp = 10;
5848 case 10:
5849 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80)) {
5850 _Internal::set_has_timestamp(&has_bits);
5851 _impl_.timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
5852 CHK_(ptr);
5853 } else
5854 goto handle_unusual;
5855 continue;
5856 default:
5857 goto handle_unusual;
5858 } // switch
5859 handle_unusual:
5860 if ((tag == 0) || ((tag & 7) == 4)) {
5861 CHK_(ptr);
5862 ctx->SetLastTag(tag);
5863 goto message_done;
5864 }
5865 ptr = UnknownFieldParse(
5866 tag,
5867 _internal_metadata_.mutable_unknown_fields<std::string>(),
5868 ptr, ctx);
5869 CHK_(ptr != nullptr);
5870 } // while
5871 message_done:
5872 _impl_._has_bits_.Or(has_bits);
5873 return ptr;
5874 failure:
5875 ptr = nullptr;
5876 goto message_done;
5877 #undef CHK_
5878 }
5879
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const5880 uint8_t* PerfDataProto_PerfEvent::_InternalSerialize(
5881 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
5882 // @@protoc_insertion_point(serialize_to_array_start:metrics.PerfDataProto.PerfEvent)
5883 uint32_t cached_has_bits = 0;
5884 (void) cached_has_bits;
5885
5886 cached_has_bits = _impl_._has_bits_[0];
5887 // optional .metrics.PerfDataProto.EventHeader header = 1;
5888 if (cached_has_bits & 0x00000001u) {
5889 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
5890 InternalWriteMessage(1, _Internal::header(this),
5891 _Internal::header(this).GetCachedSize(), target, stream);
5892 }
5893
5894 switch (event_type_case()) {
5895 case kMmapEvent: {
5896 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
5897 InternalWriteMessage(2, _Internal::mmap_event(this),
5898 _Internal::mmap_event(this).GetCachedSize(), target, stream);
5899 break;
5900 }
5901 case kSampleEvent: {
5902 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
5903 InternalWriteMessage(3, _Internal::sample_event(this),
5904 _Internal::sample_event(this).GetCachedSize(), target, stream);
5905 break;
5906 }
5907 case kCommEvent: {
5908 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
5909 InternalWriteMessage(4, _Internal::comm_event(this),
5910 _Internal::comm_event(this).GetCachedSize(), target, stream);
5911 break;
5912 }
5913 case kForkEvent: {
5914 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
5915 InternalWriteMessage(5, _Internal::fork_event(this),
5916 _Internal::fork_event(this).GetCachedSize(), target, stream);
5917 break;
5918 }
5919 case kLostEvent: {
5920 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
5921 InternalWriteMessage(6, _Internal::lost_event(this),
5922 _Internal::lost_event(this).GetCachedSize(), target, stream);
5923 break;
5924 }
5925 case kThrottleEvent: {
5926 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
5927 InternalWriteMessage(7, _Internal::throttle_event(this),
5928 _Internal::throttle_event(this).GetCachedSize(), target, stream);
5929 break;
5930 }
5931 case kExitEvent: {
5932 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
5933 InternalWriteMessage(9, _Internal::exit_event(this),
5934 _Internal::exit_event(this).GetCachedSize(), target, stream);
5935 break;
5936 }
5937 default: ;
5938 }
5939 // optional uint64 timestamp = 10;
5940 if (cached_has_bits & 0x00000002u) {
5941 target = stream->EnsureSpace(target);
5942 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(10, this->_internal_timestamp(), target);
5943 }
5944
5945 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5946 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
5947 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
5948 }
5949 // @@protoc_insertion_point(serialize_to_array_end:metrics.PerfDataProto.PerfEvent)
5950 return target;
5951 }
5952
ByteSizeLong() const5953 size_t PerfDataProto_PerfEvent::ByteSizeLong() const {
5954 // @@protoc_insertion_point(message_byte_size_start:metrics.PerfDataProto.PerfEvent)
5955 size_t total_size = 0;
5956
5957 uint32_t cached_has_bits = 0;
5958 // Prevent compiler warnings about cached_has_bits being unused
5959 (void) cached_has_bits;
5960
5961 cached_has_bits = _impl_._has_bits_[0];
5962 if (cached_has_bits & 0x00000003u) {
5963 // optional .metrics.PerfDataProto.EventHeader header = 1;
5964 if (cached_has_bits & 0x00000001u) {
5965 total_size += 1 +
5966 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
5967 *_impl_.header_);
5968 }
5969
5970 // optional uint64 timestamp = 10;
5971 if (cached_has_bits & 0x00000002u) {
5972 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_timestamp());
5973 }
5974
5975 }
5976 switch (event_type_case()) {
5977 // .metrics.PerfDataProto.MMapEvent mmap_event = 2;
5978 case kMmapEvent: {
5979 total_size += 1 +
5980 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
5981 *_impl_.event_type_.mmap_event_);
5982 break;
5983 }
5984 // .metrics.PerfDataProto.SampleEvent sample_event = 3;
5985 case kSampleEvent: {
5986 total_size += 1 +
5987 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
5988 *_impl_.event_type_.sample_event_);
5989 break;
5990 }
5991 // .metrics.PerfDataProto.CommEvent comm_event = 4;
5992 case kCommEvent: {
5993 total_size += 1 +
5994 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
5995 *_impl_.event_type_.comm_event_);
5996 break;
5997 }
5998 // .metrics.PerfDataProto.ForkEvent fork_event = 5;
5999 case kForkEvent: {
6000 total_size += 1 +
6001 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
6002 *_impl_.event_type_.fork_event_);
6003 break;
6004 }
6005 // .metrics.PerfDataProto.ForkEvent exit_event = 9;
6006 case kExitEvent: {
6007 total_size += 1 +
6008 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
6009 *_impl_.event_type_.exit_event_);
6010 break;
6011 }
6012 // .metrics.PerfDataProto.LostEvent lost_event = 6;
6013 case kLostEvent: {
6014 total_size += 1 +
6015 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
6016 *_impl_.event_type_.lost_event_);
6017 break;
6018 }
6019 // .metrics.PerfDataProto.ThrottleEvent throttle_event = 7;
6020 case kThrottleEvent: {
6021 total_size += 1 +
6022 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
6023 *_impl_.event_type_.throttle_event_);
6024 break;
6025 }
6026 case EVENT_TYPE_NOT_SET: {
6027 break;
6028 }
6029 }
6030 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
6031 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
6032 }
6033 int cached_size = ::_pbi::ToCachedSize(total_size);
6034 SetCachedSize(cached_size);
6035 return total_size;
6036 }
6037
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)6038 void PerfDataProto_PerfEvent::CheckTypeAndMergeFrom(
6039 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
6040 MergeFrom(*::_pbi::DownCast<const PerfDataProto_PerfEvent*>(
6041 &from));
6042 }
6043
MergeFrom(const PerfDataProto_PerfEvent & from)6044 void PerfDataProto_PerfEvent::MergeFrom(const PerfDataProto_PerfEvent& from) {
6045 PerfDataProto_PerfEvent* const _this = this;
6046 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.PerfDataProto.PerfEvent)
6047 GOOGLE_DCHECK_NE(&from, _this);
6048 uint32_t cached_has_bits = 0;
6049 (void) cached_has_bits;
6050
6051 cached_has_bits = from._impl_._has_bits_[0];
6052 if (cached_has_bits & 0x00000003u) {
6053 if (cached_has_bits & 0x00000001u) {
6054 _this->_internal_mutable_header()->::metrics::PerfDataProto_EventHeader::MergeFrom(
6055 from._internal_header());
6056 }
6057 if (cached_has_bits & 0x00000002u) {
6058 _this->_impl_.timestamp_ = from._impl_.timestamp_;
6059 }
6060 _this->_impl_._has_bits_[0] |= cached_has_bits;
6061 }
6062 switch (from.event_type_case()) {
6063 case kMmapEvent: {
6064 _this->_internal_mutable_mmap_event()->::metrics::PerfDataProto_MMapEvent::MergeFrom(
6065 from._internal_mmap_event());
6066 break;
6067 }
6068 case kSampleEvent: {
6069 _this->_internal_mutable_sample_event()->::metrics::PerfDataProto_SampleEvent::MergeFrom(
6070 from._internal_sample_event());
6071 break;
6072 }
6073 case kCommEvent: {
6074 _this->_internal_mutable_comm_event()->::metrics::PerfDataProto_CommEvent::MergeFrom(
6075 from._internal_comm_event());
6076 break;
6077 }
6078 case kForkEvent: {
6079 _this->_internal_mutable_fork_event()->::metrics::PerfDataProto_ForkEvent::MergeFrom(
6080 from._internal_fork_event());
6081 break;
6082 }
6083 case kExitEvent: {
6084 _this->_internal_mutable_exit_event()->::metrics::PerfDataProto_ForkEvent::MergeFrom(
6085 from._internal_exit_event());
6086 break;
6087 }
6088 case kLostEvent: {
6089 _this->_internal_mutable_lost_event()->::metrics::PerfDataProto_LostEvent::MergeFrom(
6090 from._internal_lost_event());
6091 break;
6092 }
6093 case kThrottleEvent: {
6094 _this->_internal_mutable_throttle_event()->::metrics::PerfDataProto_ThrottleEvent::MergeFrom(
6095 from._internal_throttle_event());
6096 break;
6097 }
6098 case EVENT_TYPE_NOT_SET: {
6099 break;
6100 }
6101 }
6102 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
6103 }
6104
CopyFrom(const PerfDataProto_PerfEvent & from)6105 void PerfDataProto_PerfEvent::CopyFrom(const PerfDataProto_PerfEvent& from) {
6106 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.PerfDataProto.PerfEvent)
6107 if (&from == this) return;
6108 Clear();
6109 MergeFrom(from);
6110 }
6111
IsInitialized() const6112 bool PerfDataProto_PerfEvent::IsInitialized() const {
6113 return true;
6114 }
6115
InternalSwap(PerfDataProto_PerfEvent * other)6116 void PerfDataProto_PerfEvent::InternalSwap(PerfDataProto_PerfEvent* other) {
6117 using std::swap;
6118 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
6119 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
6120 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
6121 PROTOBUF_FIELD_OFFSET(PerfDataProto_PerfEvent, _impl_.timestamp_)
6122 + sizeof(PerfDataProto_PerfEvent::_impl_.timestamp_)
6123 - PROTOBUF_FIELD_OFFSET(PerfDataProto_PerfEvent, _impl_.header_)>(
6124 reinterpret_cast<char*>(&_impl_.header_),
6125 reinterpret_cast<char*>(&other->_impl_.header_));
6126 swap(_impl_.event_type_, other->_impl_.event_type_);
6127 swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
6128 }
6129
GetTypeName() const6130 std::string PerfDataProto_PerfEvent::GetTypeName() const {
6131 return "metrics.PerfDataProto.PerfEvent";
6132 }
6133
6134
6135 // ===================================================================
6136
6137 class PerfDataProto_PerfEventStats::_Internal {
6138 public:
6139 using HasBits = decltype(std::declval<PerfDataProto_PerfEventStats>()._impl_._has_bits_);
set_has_num_events_read(HasBits * has_bits)6140 static void set_has_num_events_read(HasBits* has_bits) {
6141 (*has_bits)[0] |= 1u;
6142 }
set_has_num_sample_events(HasBits * has_bits)6143 static void set_has_num_sample_events(HasBits* has_bits) {
6144 (*has_bits)[0] |= 2u;
6145 }
set_has_num_mmap_events(HasBits * has_bits)6146 static void set_has_num_mmap_events(HasBits* has_bits) {
6147 (*has_bits)[0] |= 4u;
6148 }
set_has_num_fork_events(HasBits * has_bits)6149 static void set_has_num_fork_events(HasBits* has_bits) {
6150 (*has_bits)[0] |= 8u;
6151 }
set_has_num_exit_events(HasBits * has_bits)6152 static void set_has_num_exit_events(HasBits* has_bits) {
6153 (*has_bits)[0] |= 16u;
6154 }
set_has_num_sample_events_mapped(HasBits * has_bits)6155 static void set_has_num_sample_events_mapped(HasBits* has_bits) {
6156 (*has_bits)[0] |= 32u;
6157 }
set_has_did_remap(HasBits * has_bits)6158 static void set_has_did_remap(HasBits* has_bits) {
6159 (*has_bits)[0] |= 64u;
6160 }
6161 };
6162
PerfDataProto_PerfEventStats(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)6163 PerfDataProto_PerfEventStats::PerfDataProto_PerfEventStats(::PROTOBUF_NAMESPACE_ID::Arena* arena,
6164 bool is_message_owned)
6165 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
6166 SharedCtor(arena, is_message_owned);
6167 // @@protoc_insertion_point(arena_constructor:metrics.PerfDataProto.PerfEventStats)
6168 }
PerfDataProto_PerfEventStats(const PerfDataProto_PerfEventStats & from)6169 PerfDataProto_PerfEventStats::PerfDataProto_PerfEventStats(const PerfDataProto_PerfEventStats& from)
6170 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
6171 PerfDataProto_PerfEventStats* const _this = this; (void)_this;
6172 new (&_impl_) Impl_{
6173 decltype(_impl_._has_bits_){from._impl_._has_bits_}
6174 , /*decltype(_impl_._cached_size_)*/{}
6175 , decltype(_impl_.num_events_read_){}
6176 , decltype(_impl_.num_sample_events_){}
6177 , decltype(_impl_.num_mmap_events_){}
6178 , decltype(_impl_.num_fork_events_){}
6179 , decltype(_impl_.num_exit_events_){}
6180 , decltype(_impl_.num_sample_events_mapped_){}
6181 , decltype(_impl_.did_remap_){}};
6182
6183 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
6184 ::memcpy(&_impl_.num_events_read_, &from._impl_.num_events_read_,
6185 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.did_remap_) -
6186 reinterpret_cast<char*>(&_impl_.num_events_read_)) + sizeof(_impl_.did_remap_));
6187 // @@protoc_insertion_point(copy_constructor:metrics.PerfDataProto.PerfEventStats)
6188 }
6189
SharedCtor(::_pb::Arena * arena,bool is_message_owned)6190 inline void PerfDataProto_PerfEventStats::SharedCtor(
6191 ::_pb::Arena* arena, bool is_message_owned) {
6192 (void)arena;
6193 (void)is_message_owned;
6194 new (&_impl_) Impl_{
6195 decltype(_impl_._has_bits_){}
6196 , /*decltype(_impl_._cached_size_)*/{}
6197 , decltype(_impl_.num_events_read_){0u}
6198 , decltype(_impl_.num_sample_events_){0u}
6199 , decltype(_impl_.num_mmap_events_){0u}
6200 , decltype(_impl_.num_fork_events_){0u}
6201 , decltype(_impl_.num_exit_events_){0u}
6202 , decltype(_impl_.num_sample_events_mapped_){0u}
6203 , decltype(_impl_.did_remap_){false}
6204 };
6205 }
6206
~PerfDataProto_PerfEventStats()6207 PerfDataProto_PerfEventStats::~PerfDataProto_PerfEventStats() {
6208 // @@protoc_insertion_point(destructor:metrics.PerfDataProto.PerfEventStats)
6209 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
6210 (void)arena;
6211 return;
6212 }
6213 SharedDtor();
6214 }
6215
SharedDtor()6216 inline void PerfDataProto_PerfEventStats::SharedDtor() {
6217 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
6218 }
6219
SetCachedSize(int size) const6220 void PerfDataProto_PerfEventStats::SetCachedSize(int size) const {
6221 _impl_._cached_size_.Set(size);
6222 }
6223
Clear()6224 void PerfDataProto_PerfEventStats::Clear() {
6225 // @@protoc_insertion_point(message_clear_start:metrics.PerfDataProto.PerfEventStats)
6226 uint32_t cached_has_bits = 0;
6227 // Prevent compiler warnings about cached_has_bits being unused
6228 (void) cached_has_bits;
6229
6230 cached_has_bits = _impl_._has_bits_[0];
6231 if (cached_has_bits & 0x0000007fu) {
6232 ::memset(&_impl_.num_events_read_, 0, static_cast<size_t>(
6233 reinterpret_cast<char*>(&_impl_.did_remap_) -
6234 reinterpret_cast<char*>(&_impl_.num_events_read_)) + sizeof(_impl_.did_remap_));
6235 }
6236 _impl_._has_bits_.Clear();
6237 _internal_metadata_.Clear<std::string>();
6238 }
6239
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)6240 const char* PerfDataProto_PerfEventStats::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
6241 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
6242 _Internal::HasBits has_bits{};
6243 while (!ctx->Done(&ptr)) {
6244 uint32_t tag;
6245 ptr = ::_pbi::ReadTag(ptr, &tag);
6246 switch (tag >> 3) {
6247 // optional uint32 num_events_read = 1;
6248 case 1:
6249 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
6250 _Internal::set_has_num_events_read(&has_bits);
6251 _impl_.num_events_read_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
6252 CHK_(ptr);
6253 } else
6254 goto handle_unusual;
6255 continue;
6256 // optional uint32 num_sample_events = 2;
6257 case 2:
6258 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
6259 _Internal::set_has_num_sample_events(&has_bits);
6260 _impl_.num_sample_events_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
6261 CHK_(ptr);
6262 } else
6263 goto handle_unusual;
6264 continue;
6265 // optional uint32 num_mmap_events = 3;
6266 case 3:
6267 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
6268 _Internal::set_has_num_mmap_events(&has_bits);
6269 _impl_.num_mmap_events_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
6270 CHK_(ptr);
6271 } else
6272 goto handle_unusual;
6273 continue;
6274 // optional uint32 num_fork_events = 4;
6275 case 4:
6276 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
6277 _Internal::set_has_num_fork_events(&has_bits);
6278 _impl_.num_fork_events_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
6279 CHK_(ptr);
6280 } else
6281 goto handle_unusual;
6282 continue;
6283 // optional uint32 num_exit_events = 5;
6284 case 5:
6285 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
6286 _Internal::set_has_num_exit_events(&has_bits);
6287 _impl_.num_exit_events_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
6288 CHK_(ptr);
6289 } else
6290 goto handle_unusual;
6291 continue;
6292 // optional uint32 num_sample_events_mapped = 6;
6293 case 6:
6294 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
6295 _Internal::set_has_num_sample_events_mapped(&has_bits);
6296 _impl_.num_sample_events_mapped_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
6297 CHK_(ptr);
6298 } else
6299 goto handle_unusual;
6300 continue;
6301 // optional bool did_remap = 7;
6302 case 7:
6303 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
6304 _Internal::set_has_did_remap(&has_bits);
6305 _impl_.did_remap_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
6306 CHK_(ptr);
6307 } else
6308 goto handle_unusual;
6309 continue;
6310 default:
6311 goto handle_unusual;
6312 } // switch
6313 handle_unusual:
6314 if ((tag == 0) || ((tag & 7) == 4)) {
6315 CHK_(ptr);
6316 ctx->SetLastTag(tag);
6317 goto message_done;
6318 }
6319 ptr = UnknownFieldParse(
6320 tag,
6321 _internal_metadata_.mutable_unknown_fields<std::string>(),
6322 ptr, ctx);
6323 CHK_(ptr != nullptr);
6324 } // while
6325 message_done:
6326 _impl_._has_bits_.Or(has_bits);
6327 return ptr;
6328 failure:
6329 ptr = nullptr;
6330 goto message_done;
6331 #undef CHK_
6332 }
6333
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const6334 uint8_t* PerfDataProto_PerfEventStats::_InternalSerialize(
6335 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
6336 // @@protoc_insertion_point(serialize_to_array_start:metrics.PerfDataProto.PerfEventStats)
6337 uint32_t cached_has_bits = 0;
6338 (void) cached_has_bits;
6339
6340 cached_has_bits = _impl_._has_bits_[0];
6341 // optional uint32 num_events_read = 1;
6342 if (cached_has_bits & 0x00000001u) {
6343 target = stream->EnsureSpace(target);
6344 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_num_events_read(), target);
6345 }
6346
6347 // optional uint32 num_sample_events = 2;
6348 if (cached_has_bits & 0x00000002u) {
6349 target = stream->EnsureSpace(target);
6350 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_num_sample_events(), target);
6351 }
6352
6353 // optional uint32 num_mmap_events = 3;
6354 if (cached_has_bits & 0x00000004u) {
6355 target = stream->EnsureSpace(target);
6356 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_num_mmap_events(), target);
6357 }
6358
6359 // optional uint32 num_fork_events = 4;
6360 if (cached_has_bits & 0x00000008u) {
6361 target = stream->EnsureSpace(target);
6362 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(4, this->_internal_num_fork_events(), target);
6363 }
6364
6365 // optional uint32 num_exit_events = 5;
6366 if (cached_has_bits & 0x00000010u) {
6367 target = stream->EnsureSpace(target);
6368 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(5, this->_internal_num_exit_events(), target);
6369 }
6370
6371 // optional uint32 num_sample_events_mapped = 6;
6372 if (cached_has_bits & 0x00000020u) {
6373 target = stream->EnsureSpace(target);
6374 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(6, this->_internal_num_sample_events_mapped(), target);
6375 }
6376
6377 // optional bool did_remap = 7;
6378 if (cached_has_bits & 0x00000040u) {
6379 target = stream->EnsureSpace(target);
6380 target = ::_pbi::WireFormatLite::WriteBoolToArray(7, this->_internal_did_remap(), target);
6381 }
6382
6383 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
6384 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
6385 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
6386 }
6387 // @@protoc_insertion_point(serialize_to_array_end:metrics.PerfDataProto.PerfEventStats)
6388 return target;
6389 }
6390
ByteSizeLong() const6391 size_t PerfDataProto_PerfEventStats::ByteSizeLong() const {
6392 // @@protoc_insertion_point(message_byte_size_start:metrics.PerfDataProto.PerfEventStats)
6393 size_t total_size = 0;
6394
6395 uint32_t cached_has_bits = 0;
6396 // Prevent compiler warnings about cached_has_bits being unused
6397 (void) cached_has_bits;
6398
6399 cached_has_bits = _impl_._has_bits_[0];
6400 if (cached_has_bits & 0x0000007fu) {
6401 // optional uint32 num_events_read = 1;
6402 if (cached_has_bits & 0x00000001u) {
6403 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_num_events_read());
6404 }
6405
6406 // optional uint32 num_sample_events = 2;
6407 if (cached_has_bits & 0x00000002u) {
6408 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_num_sample_events());
6409 }
6410
6411 // optional uint32 num_mmap_events = 3;
6412 if (cached_has_bits & 0x00000004u) {
6413 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_num_mmap_events());
6414 }
6415
6416 // optional uint32 num_fork_events = 4;
6417 if (cached_has_bits & 0x00000008u) {
6418 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_num_fork_events());
6419 }
6420
6421 // optional uint32 num_exit_events = 5;
6422 if (cached_has_bits & 0x00000010u) {
6423 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_num_exit_events());
6424 }
6425
6426 // optional uint32 num_sample_events_mapped = 6;
6427 if (cached_has_bits & 0x00000020u) {
6428 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_num_sample_events_mapped());
6429 }
6430
6431 // optional bool did_remap = 7;
6432 if (cached_has_bits & 0x00000040u) {
6433 total_size += 1 + 1;
6434 }
6435
6436 }
6437 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
6438 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
6439 }
6440 int cached_size = ::_pbi::ToCachedSize(total_size);
6441 SetCachedSize(cached_size);
6442 return total_size;
6443 }
6444
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)6445 void PerfDataProto_PerfEventStats::CheckTypeAndMergeFrom(
6446 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
6447 MergeFrom(*::_pbi::DownCast<const PerfDataProto_PerfEventStats*>(
6448 &from));
6449 }
6450
MergeFrom(const PerfDataProto_PerfEventStats & from)6451 void PerfDataProto_PerfEventStats::MergeFrom(const PerfDataProto_PerfEventStats& from) {
6452 PerfDataProto_PerfEventStats* const _this = this;
6453 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.PerfDataProto.PerfEventStats)
6454 GOOGLE_DCHECK_NE(&from, _this);
6455 uint32_t cached_has_bits = 0;
6456 (void) cached_has_bits;
6457
6458 cached_has_bits = from._impl_._has_bits_[0];
6459 if (cached_has_bits & 0x0000007fu) {
6460 if (cached_has_bits & 0x00000001u) {
6461 _this->_impl_.num_events_read_ = from._impl_.num_events_read_;
6462 }
6463 if (cached_has_bits & 0x00000002u) {
6464 _this->_impl_.num_sample_events_ = from._impl_.num_sample_events_;
6465 }
6466 if (cached_has_bits & 0x00000004u) {
6467 _this->_impl_.num_mmap_events_ = from._impl_.num_mmap_events_;
6468 }
6469 if (cached_has_bits & 0x00000008u) {
6470 _this->_impl_.num_fork_events_ = from._impl_.num_fork_events_;
6471 }
6472 if (cached_has_bits & 0x00000010u) {
6473 _this->_impl_.num_exit_events_ = from._impl_.num_exit_events_;
6474 }
6475 if (cached_has_bits & 0x00000020u) {
6476 _this->_impl_.num_sample_events_mapped_ = from._impl_.num_sample_events_mapped_;
6477 }
6478 if (cached_has_bits & 0x00000040u) {
6479 _this->_impl_.did_remap_ = from._impl_.did_remap_;
6480 }
6481 _this->_impl_._has_bits_[0] |= cached_has_bits;
6482 }
6483 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
6484 }
6485
CopyFrom(const PerfDataProto_PerfEventStats & from)6486 void PerfDataProto_PerfEventStats::CopyFrom(const PerfDataProto_PerfEventStats& from) {
6487 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.PerfDataProto.PerfEventStats)
6488 if (&from == this) return;
6489 Clear();
6490 MergeFrom(from);
6491 }
6492
IsInitialized() const6493 bool PerfDataProto_PerfEventStats::IsInitialized() const {
6494 return true;
6495 }
6496
InternalSwap(PerfDataProto_PerfEventStats * other)6497 void PerfDataProto_PerfEventStats::InternalSwap(PerfDataProto_PerfEventStats* other) {
6498 using std::swap;
6499 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
6500 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
6501 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
6502 PROTOBUF_FIELD_OFFSET(PerfDataProto_PerfEventStats, _impl_.did_remap_)
6503 + sizeof(PerfDataProto_PerfEventStats::_impl_.did_remap_)
6504 - PROTOBUF_FIELD_OFFSET(PerfDataProto_PerfEventStats, _impl_.num_events_read_)>(
6505 reinterpret_cast<char*>(&_impl_.num_events_read_),
6506 reinterpret_cast<char*>(&other->_impl_.num_events_read_));
6507 }
6508
GetTypeName() const6509 std::string PerfDataProto_PerfEventStats::GetTypeName() const {
6510 return "metrics.PerfDataProto.PerfEventStats";
6511 }
6512
6513
6514 // ===================================================================
6515
6516 class PerfDataProto_PerfBuildID::_Internal {
6517 public:
6518 using HasBits = decltype(std::declval<PerfDataProto_PerfBuildID>()._impl_._has_bits_);
set_has_misc(HasBits * has_bits)6519 static void set_has_misc(HasBits* has_bits) {
6520 (*has_bits)[0] |= 2u;
6521 }
set_has_pid(HasBits * has_bits)6522 static void set_has_pid(HasBits* has_bits) {
6523 (*has_bits)[0] |= 4u;
6524 }
set_has_build_id_hash(HasBits * has_bits)6525 static void set_has_build_id_hash(HasBits* has_bits) {
6526 (*has_bits)[0] |= 1u;
6527 }
set_has_filename_md5_prefix(HasBits * has_bits)6528 static void set_has_filename_md5_prefix(HasBits* has_bits) {
6529 (*has_bits)[0] |= 8u;
6530 }
6531 };
6532
PerfDataProto_PerfBuildID(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)6533 PerfDataProto_PerfBuildID::PerfDataProto_PerfBuildID(::PROTOBUF_NAMESPACE_ID::Arena* arena,
6534 bool is_message_owned)
6535 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
6536 SharedCtor(arena, is_message_owned);
6537 // @@protoc_insertion_point(arena_constructor:metrics.PerfDataProto.PerfBuildID)
6538 }
PerfDataProto_PerfBuildID(const PerfDataProto_PerfBuildID & from)6539 PerfDataProto_PerfBuildID::PerfDataProto_PerfBuildID(const PerfDataProto_PerfBuildID& from)
6540 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
6541 PerfDataProto_PerfBuildID* const _this = this; (void)_this;
6542 new (&_impl_) Impl_{
6543 decltype(_impl_._has_bits_){from._impl_._has_bits_}
6544 , /*decltype(_impl_._cached_size_)*/{}
6545 , decltype(_impl_.build_id_hash_){}
6546 , decltype(_impl_.misc_){}
6547 , decltype(_impl_.pid_){}
6548 , decltype(_impl_.filename_md5_prefix_){}};
6549
6550 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
6551 _impl_.build_id_hash_.InitDefault();
6552 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
6553 _impl_.build_id_hash_.Set("", GetArenaForAllocation());
6554 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
6555 if (from._internal_has_build_id_hash()) {
6556 _this->_impl_.build_id_hash_.Set(from._internal_build_id_hash(),
6557 _this->GetArenaForAllocation());
6558 }
6559 ::memcpy(&_impl_.misc_, &from._impl_.misc_,
6560 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.filename_md5_prefix_) -
6561 reinterpret_cast<char*>(&_impl_.misc_)) + sizeof(_impl_.filename_md5_prefix_));
6562 // @@protoc_insertion_point(copy_constructor:metrics.PerfDataProto.PerfBuildID)
6563 }
6564
SharedCtor(::_pb::Arena * arena,bool is_message_owned)6565 inline void PerfDataProto_PerfBuildID::SharedCtor(
6566 ::_pb::Arena* arena, bool is_message_owned) {
6567 (void)arena;
6568 (void)is_message_owned;
6569 new (&_impl_) Impl_{
6570 decltype(_impl_._has_bits_){}
6571 , /*decltype(_impl_._cached_size_)*/{}
6572 , decltype(_impl_.build_id_hash_){}
6573 , decltype(_impl_.misc_){0u}
6574 , decltype(_impl_.pid_){0u}
6575 , decltype(_impl_.filename_md5_prefix_){uint64_t{0u}}
6576 };
6577 _impl_.build_id_hash_.InitDefault();
6578 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
6579 _impl_.build_id_hash_.Set("", GetArenaForAllocation());
6580 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
6581 }
6582
~PerfDataProto_PerfBuildID()6583 PerfDataProto_PerfBuildID::~PerfDataProto_PerfBuildID() {
6584 // @@protoc_insertion_point(destructor:metrics.PerfDataProto.PerfBuildID)
6585 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
6586 (void)arena;
6587 return;
6588 }
6589 SharedDtor();
6590 }
6591
SharedDtor()6592 inline void PerfDataProto_PerfBuildID::SharedDtor() {
6593 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
6594 _impl_.build_id_hash_.Destroy();
6595 }
6596
SetCachedSize(int size) const6597 void PerfDataProto_PerfBuildID::SetCachedSize(int size) const {
6598 _impl_._cached_size_.Set(size);
6599 }
6600
Clear()6601 void PerfDataProto_PerfBuildID::Clear() {
6602 // @@protoc_insertion_point(message_clear_start:metrics.PerfDataProto.PerfBuildID)
6603 uint32_t cached_has_bits = 0;
6604 // Prevent compiler warnings about cached_has_bits being unused
6605 (void) cached_has_bits;
6606
6607 cached_has_bits = _impl_._has_bits_[0];
6608 if (cached_has_bits & 0x00000001u) {
6609 _impl_.build_id_hash_.ClearNonDefaultToEmpty();
6610 }
6611 if (cached_has_bits & 0x0000000eu) {
6612 ::memset(&_impl_.misc_, 0, static_cast<size_t>(
6613 reinterpret_cast<char*>(&_impl_.filename_md5_prefix_) -
6614 reinterpret_cast<char*>(&_impl_.misc_)) + sizeof(_impl_.filename_md5_prefix_));
6615 }
6616 _impl_._has_bits_.Clear();
6617 _internal_metadata_.Clear<std::string>();
6618 }
6619
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)6620 const char* PerfDataProto_PerfBuildID::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
6621 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
6622 _Internal::HasBits has_bits{};
6623 while (!ctx->Done(&ptr)) {
6624 uint32_t tag;
6625 ptr = ::_pbi::ReadTag(ptr, &tag);
6626 switch (tag >> 3) {
6627 // optional uint32 misc = 1;
6628 case 1:
6629 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
6630 _Internal::set_has_misc(&has_bits);
6631 _impl_.misc_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
6632 CHK_(ptr);
6633 } else
6634 goto handle_unusual;
6635 continue;
6636 // optional uint32 pid = 2;
6637 case 2:
6638 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
6639 _Internal::set_has_pid(&has_bits);
6640 _impl_.pid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
6641 CHK_(ptr);
6642 } else
6643 goto handle_unusual;
6644 continue;
6645 // optional bytes build_id_hash = 3;
6646 case 3:
6647 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
6648 auto str = _internal_mutable_build_id_hash();
6649 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
6650 CHK_(ptr);
6651 } else
6652 goto handle_unusual;
6653 continue;
6654 // optional uint64 filename_md5_prefix = 5;
6655 case 5:
6656 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
6657 _Internal::set_has_filename_md5_prefix(&has_bits);
6658 _impl_.filename_md5_prefix_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
6659 CHK_(ptr);
6660 } else
6661 goto handle_unusual;
6662 continue;
6663 default:
6664 goto handle_unusual;
6665 } // switch
6666 handle_unusual:
6667 if ((tag == 0) || ((tag & 7) == 4)) {
6668 CHK_(ptr);
6669 ctx->SetLastTag(tag);
6670 goto message_done;
6671 }
6672 ptr = UnknownFieldParse(
6673 tag,
6674 _internal_metadata_.mutable_unknown_fields<std::string>(),
6675 ptr, ctx);
6676 CHK_(ptr != nullptr);
6677 } // while
6678 message_done:
6679 _impl_._has_bits_.Or(has_bits);
6680 return ptr;
6681 failure:
6682 ptr = nullptr;
6683 goto message_done;
6684 #undef CHK_
6685 }
6686
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const6687 uint8_t* PerfDataProto_PerfBuildID::_InternalSerialize(
6688 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
6689 // @@protoc_insertion_point(serialize_to_array_start:metrics.PerfDataProto.PerfBuildID)
6690 uint32_t cached_has_bits = 0;
6691 (void) cached_has_bits;
6692
6693 cached_has_bits = _impl_._has_bits_[0];
6694 // optional uint32 misc = 1;
6695 if (cached_has_bits & 0x00000002u) {
6696 target = stream->EnsureSpace(target);
6697 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_misc(), target);
6698 }
6699
6700 // optional uint32 pid = 2;
6701 if (cached_has_bits & 0x00000004u) {
6702 target = stream->EnsureSpace(target);
6703 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_pid(), target);
6704 }
6705
6706 // optional bytes build_id_hash = 3;
6707 if (cached_has_bits & 0x00000001u) {
6708 target = stream->WriteBytesMaybeAliased(
6709 3, this->_internal_build_id_hash(), target);
6710 }
6711
6712 // optional uint64 filename_md5_prefix = 5;
6713 if (cached_has_bits & 0x00000008u) {
6714 target = stream->EnsureSpace(target);
6715 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(5, this->_internal_filename_md5_prefix(), target);
6716 }
6717
6718 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
6719 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
6720 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
6721 }
6722 // @@protoc_insertion_point(serialize_to_array_end:metrics.PerfDataProto.PerfBuildID)
6723 return target;
6724 }
6725
ByteSizeLong() const6726 size_t PerfDataProto_PerfBuildID::ByteSizeLong() const {
6727 // @@protoc_insertion_point(message_byte_size_start:metrics.PerfDataProto.PerfBuildID)
6728 size_t total_size = 0;
6729
6730 uint32_t cached_has_bits = 0;
6731 // Prevent compiler warnings about cached_has_bits being unused
6732 (void) cached_has_bits;
6733
6734 cached_has_bits = _impl_._has_bits_[0];
6735 if (cached_has_bits & 0x0000000fu) {
6736 // optional bytes build_id_hash = 3;
6737 if (cached_has_bits & 0x00000001u) {
6738 total_size += 1 +
6739 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
6740 this->_internal_build_id_hash());
6741 }
6742
6743 // optional uint32 misc = 1;
6744 if (cached_has_bits & 0x00000002u) {
6745 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_misc());
6746 }
6747
6748 // optional uint32 pid = 2;
6749 if (cached_has_bits & 0x00000004u) {
6750 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_pid());
6751 }
6752
6753 // optional uint64 filename_md5_prefix = 5;
6754 if (cached_has_bits & 0x00000008u) {
6755 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_filename_md5_prefix());
6756 }
6757
6758 }
6759 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
6760 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
6761 }
6762 int cached_size = ::_pbi::ToCachedSize(total_size);
6763 SetCachedSize(cached_size);
6764 return total_size;
6765 }
6766
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)6767 void PerfDataProto_PerfBuildID::CheckTypeAndMergeFrom(
6768 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
6769 MergeFrom(*::_pbi::DownCast<const PerfDataProto_PerfBuildID*>(
6770 &from));
6771 }
6772
MergeFrom(const PerfDataProto_PerfBuildID & from)6773 void PerfDataProto_PerfBuildID::MergeFrom(const PerfDataProto_PerfBuildID& from) {
6774 PerfDataProto_PerfBuildID* const _this = this;
6775 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.PerfDataProto.PerfBuildID)
6776 GOOGLE_DCHECK_NE(&from, _this);
6777 uint32_t cached_has_bits = 0;
6778 (void) cached_has_bits;
6779
6780 cached_has_bits = from._impl_._has_bits_[0];
6781 if (cached_has_bits & 0x0000000fu) {
6782 if (cached_has_bits & 0x00000001u) {
6783 _this->_internal_set_build_id_hash(from._internal_build_id_hash());
6784 }
6785 if (cached_has_bits & 0x00000002u) {
6786 _this->_impl_.misc_ = from._impl_.misc_;
6787 }
6788 if (cached_has_bits & 0x00000004u) {
6789 _this->_impl_.pid_ = from._impl_.pid_;
6790 }
6791 if (cached_has_bits & 0x00000008u) {
6792 _this->_impl_.filename_md5_prefix_ = from._impl_.filename_md5_prefix_;
6793 }
6794 _this->_impl_._has_bits_[0] |= cached_has_bits;
6795 }
6796 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
6797 }
6798
CopyFrom(const PerfDataProto_PerfBuildID & from)6799 void PerfDataProto_PerfBuildID::CopyFrom(const PerfDataProto_PerfBuildID& from) {
6800 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.PerfDataProto.PerfBuildID)
6801 if (&from == this) return;
6802 Clear();
6803 MergeFrom(from);
6804 }
6805
IsInitialized() const6806 bool PerfDataProto_PerfBuildID::IsInitialized() const {
6807 return true;
6808 }
6809
InternalSwap(PerfDataProto_PerfBuildID * other)6810 void PerfDataProto_PerfBuildID::InternalSwap(PerfDataProto_PerfBuildID* other) {
6811 using std::swap;
6812 auto* lhs_arena = GetArenaForAllocation();
6813 auto* rhs_arena = other->GetArenaForAllocation();
6814 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
6815 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
6816 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
6817 &_impl_.build_id_hash_, lhs_arena,
6818 &other->_impl_.build_id_hash_, rhs_arena
6819 );
6820 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
6821 PROTOBUF_FIELD_OFFSET(PerfDataProto_PerfBuildID, _impl_.filename_md5_prefix_)
6822 + sizeof(PerfDataProto_PerfBuildID::_impl_.filename_md5_prefix_)
6823 - PROTOBUF_FIELD_OFFSET(PerfDataProto_PerfBuildID, _impl_.misc_)>(
6824 reinterpret_cast<char*>(&_impl_.misc_),
6825 reinterpret_cast<char*>(&other->_impl_.misc_));
6826 }
6827
GetTypeName() const6828 std::string PerfDataProto_PerfBuildID::GetTypeName() const {
6829 return "metrics.PerfDataProto.PerfBuildID";
6830 }
6831
6832
6833 // ===================================================================
6834
6835 class PerfDataProto_PerfPMUMappingsMetadata::_Internal {
6836 public:
6837 using HasBits = decltype(std::declval<PerfDataProto_PerfPMUMappingsMetadata>()._impl_._has_bits_);
set_has_type(HasBits * has_bits)6838 static void set_has_type(HasBits* has_bits) {
6839 (*has_bits)[0] |= 2u;
6840 }
set_has_name_md5_prefix(HasBits * has_bits)6841 static void set_has_name_md5_prefix(HasBits* has_bits) {
6842 (*has_bits)[0] |= 1u;
6843 }
6844 };
6845
PerfDataProto_PerfPMUMappingsMetadata(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)6846 PerfDataProto_PerfPMUMappingsMetadata::PerfDataProto_PerfPMUMappingsMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena,
6847 bool is_message_owned)
6848 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
6849 SharedCtor(arena, is_message_owned);
6850 // @@protoc_insertion_point(arena_constructor:metrics.PerfDataProto.PerfPMUMappingsMetadata)
6851 }
PerfDataProto_PerfPMUMappingsMetadata(const PerfDataProto_PerfPMUMappingsMetadata & from)6852 PerfDataProto_PerfPMUMappingsMetadata::PerfDataProto_PerfPMUMappingsMetadata(const PerfDataProto_PerfPMUMappingsMetadata& from)
6853 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
6854 PerfDataProto_PerfPMUMappingsMetadata* const _this = this; (void)_this;
6855 new (&_impl_) Impl_{
6856 decltype(_impl_._has_bits_){from._impl_._has_bits_}
6857 , /*decltype(_impl_._cached_size_)*/{}
6858 , decltype(_impl_.name_md5_prefix_){}
6859 , decltype(_impl_.type_){}};
6860
6861 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
6862 ::memcpy(&_impl_.name_md5_prefix_, &from._impl_.name_md5_prefix_,
6863 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.type_) -
6864 reinterpret_cast<char*>(&_impl_.name_md5_prefix_)) + sizeof(_impl_.type_));
6865 // @@protoc_insertion_point(copy_constructor:metrics.PerfDataProto.PerfPMUMappingsMetadata)
6866 }
6867
SharedCtor(::_pb::Arena * arena,bool is_message_owned)6868 inline void PerfDataProto_PerfPMUMappingsMetadata::SharedCtor(
6869 ::_pb::Arena* arena, bool is_message_owned) {
6870 (void)arena;
6871 (void)is_message_owned;
6872 new (&_impl_) Impl_{
6873 decltype(_impl_._has_bits_){}
6874 , /*decltype(_impl_._cached_size_)*/{}
6875 , decltype(_impl_.name_md5_prefix_){uint64_t{0u}}
6876 , decltype(_impl_.type_){0u}
6877 };
6878 }
6879
~PerfDataProto_PerfPMUMappingsMetadata()6880 PerfDataProto_PerfPMUMappingsMetadata::~PerfDataProto_PerfPMUMappingsMetadata() {
6881 // @@protoc_insertion_point(destructor:metrics.PerfDataProto.PerfPMUMappingsMetadata)
6882 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
6883 (void)arena;
6884 return;
6885 }
6886 SharedDtor();
6887 }
6888
SharedDtor()6889 inline void PerfDataProto_PerfPMUMappingsMetadata::SharedDtor() {
6890 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
6891 }
6892
SetCachedSize(int size) const6893 void PerfDataProto_PerfPMUMappingsMetadata::SetCachedSize(int size) const {
6894 _impl_._cached_size_.Set(size);
6895 }
6896
Clear()6897 void PerfDataProto_PerfPMUMappingsMetadata::Clear() {
6898 // @@protoc_insertion_point(message_clear_start:metrics.PerfDataProto.PerfPMUMappingsMetadata)
6899 uint32_t cached_has_bits = 0;
6900 // Prevent compiler warnings about cached_has_bits being unused
6901 (void) cached_has_bits;
6902
6903 cached_has_bits = _impl_._has_bits_[0];
6904 if (cached_has_bits & 0x00000003u) {
6905 ::memset(&_impl_.name_md5_prefix_, 0, static_cast<size_t>(
6906 reinterpret_cast<char*>(&_impl_.type_) -
6907 reinterpret_cast<char*>(&_impl_.name_md5_prefix_)) + sizeof(_impl_.type_));
6908 }
6909 _impl_._has_bits_.Clear();
6910 _internal_metadata_.Clear<std::string>();
6911 }
6912
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)6913 const char* PerfDataProto_PerfPMUMappingsMetadata::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
6914 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
6915 _Internal::HasBits has_bits{};
6916 while (!ctx->Done(&ptr)) {
6917 uint32_t tag;
6918 ptr = ::_pbi::ReadTag(ptr, &tag);
6919 switch (tag >> 3) {
6920 // optional uint32 type = 1;
6921 case 1:
6922 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
6923 _Internal::set_has_type(&has_bits);
6924 _impl_.type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
6925 CHK_(ptr);
6926 } else
6927 goto handle_unusual;
6928 continue;
6929 // optional uint64 name_md5_prefix = 3;
6930 case 3:
6931 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
6932 _Internal::set_has_name_md5_prefix(&has_bits);
6933 _impl_.name_md5_prefix_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
6934 CHK_(ptr);
6935 } else
6936 goto handle_unusual;
6937 continue;
6938 default:
6939 goto handle_unusual;
6940 } // switch
6941 handle_unusual:
6942 if ((tag == 0) || ((tag & 7) == 4)) {
6943 CHK_(ptr);
6944 ctx->SetLastTag(tag);
6945 goto message_done;
6946 }
6947 ptr = UnknownFieldParse(
6948 tag,
6949 _internal_metadata_.mutable_unknown_fields<std::string>(),
6950 ptr, ctx);
6951 CHK_(ptr != nullptr);
6952 } // while
6953 message_done:
6954 _impl_._has_bits_.Or(has_bits);
6955 return ptr;
6956 failure:
6957 ptr = nullptr;
6958 goto message_done;
6959 #undef CHK_
6960 }
6961
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const6962 uint8_t* PerfDataProto_PerfPMUMappingsMetadata::_InternalSerialize(
6963 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
6964 // @@protoc_insertion_point(serialize_to_array_start:metrics.PerfDataProto.PerfPMUMappingsMetadata)
6965 uint32_t cached_has_bits = 0;
6966 (void) cached_has_bits;
6967
6968 cached_has_bits = _impl_._has_bits_[0];
6969 // optional uint32 type = 1;
6970 if (cached_has_bits & 0x00000002u) {
6971 target = stream->EnsureSpace(target);
6972 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_type(), target);
6973 }
6974
6975 // optional uint64 name_md5_prefix = 3;
6976 if (cached_has_bits & 0x00000001u) {
6977 target = stream->EnsureSpace(target);
6978 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(3, this->_internal_name_md5_prefix(), target);
6979 }
6980
6981 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
6982 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
6983 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
6984 }
6985 // @@protoc_insertion_point(serialize_to_array_end:metrics.PerfDataProto.PerfPMUMappingsMetadata)
6986 return target;
6987 }
6988
ByteSizeLong() const6989 size_t PerfDataProto_PerfPMUMappingsMetadata::ByteSizeLong() const {
6990 // @@protoc_insertion_point(message_byte_size_start:metrics.PerfDataProto.PerfPMUMappingsMetadata)
6991 size_t total_size = 0;
6992
6993 uint32_t cached_has_bits = 0;
6994 // Prevent compiler warnings about cached_has_bits being unused
6995 (void) cached_has_bits;
6996
6997 cached_has_bits = _impl_._has_bits_[0];
6998 if (cached_has_bits & 0x00000003u) {
6999 // optional uint64 name_md5_prefix = 3;
7000 if (cached_has_bits & 0x00000001u) {
7001 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_name_md5_prefix());
7002 }
7003
7004 // optional uint32 type = 1;
7005 if (cached_has_bits & 0x00000002u) {
7006 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_type());
7007 }
7008
7009 }
7010 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
7011 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
7012 }
7013 int cached_size = ::_pbi::ToCachedSize(total_size);
7014 SetCachedSize(cached_size);
7015 return total_size;
7016 }
7017
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)7018 void PerfDataProto_PerfPMUMappingsMetadata::CheckTypeAndMergeFrom(
7019 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
7020 MergeFrom(*::_pbi::DownCast<const PerfDataProto_PerfPMUMappingsMetadata*>(
7021 &from));
7022 }
7023
MergeFrom(const PerfDataProto_PerfPMUMappingsMetadata & from)7024 void PerfDataProto_PerfPMUMappingsMetadata::MergeFrom(const PerfDataProto_PerfPMUMappingsMetadata& from) {
7025 PerfDataProto_PerfPMUMappingsMetadata* const _this = this;
7026 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.PerfDataProto.PerfPMUMappingsMetadata)
7027 GOOGLE_DCHECK_NE(&from, _this);
7028 uint32_t cached_has_bits = 0;
7029 (void) cached_has_bits;
7030
7031 cached_has_bits = from._impl_._has_bits_[0];
7032 if (cached_has_bits & 0x00000003u) {
7033 if (cached_has_bits & 0x00000001u) {
7034 _this->_impl_.name_md5_prefix_ = from._impl_.name_md5_prefix_;
7035 }
7036 if (cached_has_bits & 0x00000002u) {
7037 _this->_impl_.type_ = from._impl_.type_;
7038 }
7039 _this->_impl_._has_bits_[0] |= cached_has_bits;
7040 }
7041 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
7042 }
7043
CopyFrom(const PerfDataProto_PerfPMUMappingsMetadata & from)7044 void PerfDataProto_PerfPMUMappingsMetadata::CopyFrom(const PerfDataProto_PerfPMUMappingsMetadata& from) {
7045 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.PerfDataProto.PerfPMUMappingsMetadata)
7046 if (&from == this) return;
7047 Clear();
7048 MergeFrom(from);
7049 }
7050
IsInitialized() const7051 bool PerfDataProto_PerfPMUMappingsMetadata::IsInitialized() const {
7052 return true;
7053 }
7054
InternalSwap(PerfDataProto_PerfPMUMappingsMetadata * other)7055 void PerfDataProto_PerfPMUMappingsMetadata::InternalSwap(PerfDataProto_PerfPMUMappingsMetadata* other) {
7056 using std::swap;
7057 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
7058 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
7059 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
7060 PROTOBUF_FIELD_OFFSET(PerfDataProto_PerfPMUMappingsMetadata, _impl_.type_)
7061 + sizeof(PerfDataProto_PerfPMUMappingsMetadata::_impl_.type_)
7062 - PROTOBUF_FIELD_OFFSET(PerfDataProto_PerfPMUMappingsMetadata, _impl_.name_md5_prefix_)>(
7063 reinterpret_cast<char*>(&_impl_.name_md5_prefix_),
7064 reinterpret_cast<char*>(&other->_impl_.name_md5_prefix_));
7065 }
7066
GetTypeName() const7067 std::string PerfDataProto_PerfPMUMappingsMetadata::GetTypeName() const {
7068 return "metrics.PerfDataProto.PerfPMUMappingsMetadata";
7069 }
7070
7071
7072 // ===================================================================
7073
7074 class PerfDataProto_PerfHybridTopologyMetadata::_Internal {
7075 public:
7076 using HasBits = decltype(std::declval<PerfDataProto_PerfHybridTopologyMetadata>()._impl_._has_bits_);
set_has_pmu_name_md5_prefix(HasBits * has_bits)7077 static void set_has_pmu_name_md5_prefix(HasBits* has_bits) {
7078 (*has_bits)[0] |= 1u;
7079 }
7080 };
7081
PerfDataProto_PerfHybridTopologyMetadata(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)7082 PerfDataProto_PerfHybridTopologyMetadata::PerfDataProto_PerfHybridTopologyMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena,
7083 bool is_message_owned)
7084 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
7085 SharedCtor(arena, is_message_owned);
7086 // @@protoc_insertion_point(arena_constructor:metrics.PerfDataProto.PerfHybridTopologyMetadata)
7087 }
PerfDataProto_PerfHybridTopologyMetadata(const PerfDataProto_PerfHybridTopologyMetadata & from)7088 PerfDataProto_PerfHybridTopologyMetadata::PerfDataProto_PerfHybridTopologyMetadata(const PerfDataProto_PerfHybridTopologyMetadata& from)
7089 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
7090 PerfDataProto_PerfHybridTopologyMetadata* const _this = this; (void)_this;
7091 new (&_impl_) Impl_{
7092 decltype(_impl_._has_bits_){from._impl_._has_bits_}
7093 , /*decltype(_impl_._cached_size_)*/{}
7094 , decltype(_impl_.cpu_list_){from._impl_.cpu_list_}
7095 , /*decltype(_impl_._cpu_list_cached_byte_size_)*/{0}
7096 , decltype(_impl_.pmu_name_md5_prefix_){}};
7097
7098 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
7099 _this->_impl_.pmu_name_md5_prefix_ = from._impl_.pmu_name_md5_prefix_;
7100 // @@protoc_insertion_point(copy_constructor:metrics.PerfDataProto.PerfHybridTopologyMetadata)
7101 }
7102
SharedCtor(::_pb::Arena * arena,bool is_message_owned)7103 inline void PerfDataProto_PerfHybridTopologyMetadata::SharedCtor(
7104 ::_pb::Arena* arena, bool is_message_owned) {
7105 (void)arena;
7106 (void)is_message_owned;
7107 new (&_impl_) Impl_{
7108 decltype(_impl_._has_bits_){}
7109 , /*decltype(_impl_._cached_size_)*/{}
7110 , decltype(_impl_.cpu_list_){arena}
7111 , /*decltype(_impl_._cpu_list_cached_byte_size_)*/{0}
7112 , decltype(_impl_.pmu_name_md5_prefix_){uint64_t{0u}}
7113 };
7114 }
7115
~PerfDataProto_PerfHybridTopologyMetadata()7116 PerfDataProto_PerfHybridTopologyMetadata::~PerfDataProto_PerfHybridTopologyMetadata() {
7117 // @@protoc_insertion_point(destructor:metrics.PerfDataProto.PerfHybridTopologyMetadata)
7118 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
7119 (void)arena;
7120 return;
7121 }
7122 SharedDtor();
7123 }
7124
SharedDtor()7125 inline void PerfDataProto_PerfHybridTopologyMetadata::SharedDtor() {
7126 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
7127 _impl_.cpu_list_.~RepeatedField();
7128 }
7129
SetCachedSize(int size) const7130 void PerfDataProto_PerfHybridTopologyMetadata::SetCachedSize(int size) const {
7131 _impl_._cached_size_.Set(size);
7132 }
7133
Clear()7134 void PerfDataProto_PerfHybridTopologyMetadata::Clear() {
7135 // @@protoc_insertion_point(message_clear_start:metrics.PerfDataProto.PerfHybridTopologyMetadata)
7136 uint32_t cached_has_bits = 0;
7137 // Prevent compiler warnings about cached_has_bits being unused
7138 (void) cached_has_bits;
7139
7140 _impl_.cpu_list_.Clear();
7141 _impl_.pmu_name_md5_prefix_ = uint64_t{0u};
7142 _impl_._has_bits_.Clear();
7143 _internal_metadata_.Clear<std::string>();
7144 }
7145
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)7146 const char* PerfDataProto_PerfHybridTopologyMetadata::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
7147 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
7148 _Internal::HasBits has_bits{};
7149 while (!ctx->Done(&ptr)) {
7150 uint32_t tag;
7151 ptr = ::_pbi::ReadTag(ptr, &tag);
7152 switch (tag >> 3) {
7153 // optional uint64 pmu_name_md5_prefix = 2;
7154 case 2:
7155 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
7156 _Internal::set_has_pmu_name_md5_prefix(&has_bits);
7157 _impl_.pmu_name_md5_prefix_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
7158 CHK_(ptr);
7159 } else
7160 goto handle_unusual;
7161 continue;
7162 // repeated uint32 cpu_list = 4 [packed = true];
7163 case 4:
7164 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
7165 ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(_internal_mutable_cpu_list(), ptr, ctx);
7166 CHK_(ptr);
7167 } else if (static_cast<uint8_t>(tag) == 32) {
7168 _internal_add_cpu_list(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr));
7169 CHK_(ptr);
7170 } else
7171 goto handle_unusual;
7172 continue;
7173 default:
7174 goto handle_unusual;
7175 } // switch
7176 handle_unusual:
7177 if ((tag == 0) || ((tag & 7) == 4)) {
7178 CHK_(ptr);
7179 ctx->SetLastTag(tag);
7180 goto message_done;
7181 }
7182 ptr = UnknownFieldParse(
7183 tag,
7184 _internal_metadata_.mutable_unknown_fields<std::string>(),
7185 ptr, ctx);
7186 CHK_(ptr != nullptr);
7187 } // while
7188 message_done:
7189 _impl_._has_bits_.Or(has_bits);
7190 return ptr;
7191 failure:
7192 ptr = nullptr;
7193 goto message_done;
7194 #undef CHK_
7195 }
7196
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const7197 uint8_t* PerfDataProto_PerfHybridTopologyMetadata::_InternalSerialize(
7198 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
7199 // @@protoc_insertion_point(serialize_to_array_start:metrics.PerfDataProto.PerfHybridTopologyMetadata)
7200 uint32_t cached_has_bits = 0;
7201 (void) cached_has_bits;
7202
7203 cached_has_bits = _impl_._has_bits_[0];
7204 // optional uint64 pmu_name_md5_prefix = 2;
7205 if (cached_has_bits & 0x00000001u) {
7206 target = stream->EnsureSpace(target);
7207 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_pmu_name_md5_prefix(), target);
7208 }
7209
7210 // repeated uint32 cpu_list = 4 [packed = true];
7211 {
7212 int byte_size = _impl_._cpu_list_cached_byte_size_.load(std::memory_order_relaxed);
7213 if (byte_size > 0) {
7214 target = stream->WriteUInt32Packed(
7215 4, _internal_cpu_list(), byte_size, target);
7216 }
7217 }
7218
7219 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
7220 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
7221 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
7222 }
7223 // @@protoc_insertion_point(serialize_to_array_end:metrics.PerfDataProto.PerfHybridTopologyMetadata)
7224 return target;
7225 }
7226
ByteSizeLong() const7227 size_t PerfDataProto_PerfHybridTopologyMetadata::ByteSizeLong() const {
7228 // @@protoc_insertion_point(message_byte_size_start:metrics.PerfDataProto.PerfHybridTopologyMetadata)
7229 size_t total_size = 0;
7230
7231 uint32_t cached_has_bits = 0;
7232 // Prevent compiler warnings about cached_has_bits being unused
7233 (void) cached_has_bits;
7234
7235 // repeated uint32 cpu_list = 4 [packed = true];
7236 {
7237 size_t data_size = ::_pbi::WireFormatLite::
7238 UInt32Size(this->_impl_.cpu_list_);
7239 if (data_size > 0) {
7240 total_size += 1 +
7241 ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
7242 }
7243 int cached_size = ::_pbi::ToCachedSize(data_size);
7244 _impl_._cpu_list_cached_byte_size_.store(cached_size,
7245 std::memory_order_relaxed);
7246 total_size += data_size;
7247 }
7248
7249 // optional uint64 pmu_name_md5_prefix = 2;
7250 cached_has_bits = _impl_._has_bits_[0];
7251 if (cached_has_bits & 0x00000001u) {
7252 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_pmu_name_md5_prefix());
7253 }
7254
7255 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
7256 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
7257 }
7258 int cached_size = ::_pbi::ToCachedSize(total_size);
7259 SetCachedSize(cached_size);
7260 return total_size;
7261 }
7262
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)7263 void PerfDataProto_PerfHybridTopologyMetadata::CheckTypeAndMergeFrom(
7264 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
7265 MergeFrom(*::_pbi::DownCast<const PerfDataProto_PerfHybridTopologyMetadata*>(
7266 &from));
7267 }
7268
MergeFrom(const PerfDataProto_PerfHybridTopologyMetadata & from)7269 void PerfDataProto_PerfHybridTopologyMetadata::MergeFrom(const PerfDataProto_PerfHybridTopologyMetadata& from) {
7270 PerfDataProto_PerfHybridTopologyMetadata* const _this = this;
7271 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.PerfDataProto.PerfHybridTopologyMetadata)
7272 GOOGLE_DCHECK_NE(&from, _this);
7273 uint32_t cached_has_bits = 0;
7274 (void) cached_has_bits;
7275
7276 _this->_impl_.cpu_list_.MergeFrom(from._impl_.cpu_list_);
7277 if (from._internal_has_pmu_name_md5_prefix()) {
7278 _this->_internal_set_pmu_name_md5_prefix(from._internal_pmu_name_md5_prefix());
7279 }
7280 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
7281 }
7282
CopyFrom(const PerfDataProto_PerfHybridTopologyMetadata & from)7283 void PerfDataProto_PerfHybridTopologyMetadata::CopyFrom(const PerfDataProto_PerfHybridTopologyMetadata& from) {
7284 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.PerfDataProto.PerfHybridTopologyMetadata)
7285 if (&from == this) return;
7286 Clear();
7287 MergeFrom(from);
7288 }
7289
IsInitialized() const7290 bool PerfDataProto_PerfHybridTopologyMetadata::IsInitialized() const {
7291 return true;
7292 }
7293
InternalSwap(PerfDataProto_PerfHybridTopologyMetadata * other)7294 void PerfDataProto_PerfHybridTopologyMetadata::InternalSwap(PerfDataProto_PerfHybridTopologyMetadata* other) {
7295 using std::swap;
7296 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
7297 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
7298 _impl_.cpu_list_.InternalSwap(&other->_impl_.cpu_list_);
7299 swap(_impl_.pmu_name_md5_prefix_, other->_impl_.pmu_name_md5_prefix_);
7300 }
7301
GetTypeName() const7302 std::string PerfDataProto_PerfHybridTopologyMetadata::GetTypeName() const {
7303 return "metrics.PerfDataProto.PerfHybridTopologyMetadata";
7304 }
7305
7306
7307 // ===================================================================
7308
7309 class PerfDataProto_StringMetadata_StringAndMd5sumPrefix::_Internal {
7310 public:
7311 using HasBits = decltype(std::declval<PerfDataProto_StringMetadata_StringAndMd5sumPrefix>()._impl_._has_bits_);
set_has_value_md5_prefix(HasBits * has_bits)7312 static void set_has_value_md5_prefix(HasBits* has_bits) {
7313 (*has_bits)[0] |= 1u;
7314 }
7315 };
7316
PerfDataProto_StringMetadata_StringAndMd5sumPrefix(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)7317 PerfDataProto_StringMetadata_StringAndMd5sumPrefix::PerfDataProto_StringMetadata_StringAndMd5sumPrefix(::PROTOBUF_NAMESPACE_ID::Arena* arena,
7318 bool is_message_owned)
7319 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
7320 SharedCtor(arena, is_message_owned);
7321 // @@protoc_insertion_point(arena_constructor:metrics.PerfDataProto.StringMetadata.StringAndMd5sumPrefix)
7322 }
PerfDataProto_StringMetadata_StringAndMd5sumPrefix(const PerfDataProto_StringMetadata_StringAndMd5sumPrefix & from)7323 PerfDataProto_StringMetadata_StringAndMd5sumPrefix::PerfDataProto_StringMetadata_StringAndMd5sumPrefix(const PerfDataProto_StringMetadata_StringAndMd5sumPrefix& from)
7324 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
7325 PerfDataProto_StringMetadata_StringAndMd5sumPrefix* const _this = this; (void)_this;
7326 new (&_impl_) Impl_{
7327 decltype(_impl_._has_bits_){from._impl_._has_bits_}
7328 , /*decltype(_impl_._cached_size_)*/{}
7329 , decltype(_impl_.value_md5_prefix_){}};
7330
7331 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
7332 _this->_impl_.value_md5_prefix_ = from._impl_.value_md5_prefix_;
7333 // @@protoc_insertion_point(copy_constructor:metrics.PerfDataProto.StringMetadata.StringAndMd5sumPrefix)
7334 }
7335
SharedCtor(::_pb::Arena * arena,bool is_message_owned)7336 inline void PerfDataProto_StringMetadata_StringAndMd5sumPrefix::SharedCtor(
7337 ::_pb::Arena* arena, bool is_message_owned) {
7338 (void)arena;
7339 (void)is_message_owned;
7340 new (&_impl_) Impl_{
7341 decltype(_impl_._has_bits_){}
7342 , /*decltype(_impl_._cached_size_)*/{}
7343 , decltype(_impl_.value_md5_prefix_){uint64_t{0u}}
7344 };
7345 }
7346
~PerfDataProto_StringMetadata_StringAndMd5sumPrefix()7347 PerfDataProto_StringMetadata_StringAndMd5sumPrefix::~PerfDataProto_StringMetadata_StringAndMd5sumPrefix() {
7348 // @@protoc_insertion_point(destructor:metrics.PerfDataProto.StringMetadata.StringAndMd5sumPrefix)
7349 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
7350 (void)arena;
7351 return;
7352 }
7353 SharedDtor();
7354 }
7355
SharedDtor()7356 inline void PerfDataProto_StringMetadata_StringAndMd5sumPrefix::SharedDtor() {
7357 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
7358 }
7359
SetCachedSize(int size) const7360 void PerfDataProto_StringMetadata_StringAndMd5sumPrefix::SetCachedSize(int size) const {
7361 _impl_._cached_size_.Set(size);
7362 }
7363
Clear()7364 void PerfDataProto_StringMetadata_StringAndMd5sumPrefix::Clear() {
7365 // @@protoc_insertion_point(message_clear_start:metrics.PerfDataProto.StringMetadata.StringAndMd5sumPrefix)
7366 uint32_t cached_has_bits = 0;
7367 // Prevent compiler warnings about cached_has_bits being unused
7368 (void) cached_has_bits;
7369
7370 _impl_.value_md5_prefix_ = uint64_t{0u};
7371 _impl_._has_bits_.Clear();
7372 _internal_metadata_.Clear<std::string>();
7373 }
7374
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)7375 const char* PerfDataProto_StringMetadata_StringAndMd5sumPrefix::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
7376 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
7377 _Internal::HasBits has_bits{};
7378 while (!ctx->Done(&ptr)) {
7379 uint32_t tag;
7380 ptr = ::_pbi::ReadTag(ptr, &tag);
7381 switch (tag >> 3) {
7382 // optional uint64 value_md5_prefix = 2;
7383 case 2:
7384 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
7385 _Internal::set_has_value_md5_prefix(&has_bits);
7386 _impl_.value_md5_prefix_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
7387 CHK_(ptr);
7388 } else
7389 goto handle_unusual;
7390 continue;
7391 default:
7392 goto handle_unusual;
7393 } // switch
7394 handle_unusual:
7395 if ((tag == 0) || ((tag & 7) == 4)) {
7396 CHK_(ptr);
7397 ctx->SetLastTag(tag);
7398 goto message_done;
7399 }
7400 ptr = UnknownFieldParse(
7401 tag,
7402 _internal_metadata_.mutable_unknown_fields<std::string>(),
7403 ptr, ctx);
7404 CHK_(ptr != nullptr);
7405 } // while
7406 message_done:
7407 _impl_._has_bits_.Or(has_bits);
7408 return ptr;
7409 failure:
7410 ptr = nullptr;
7411 goto message_done;
7412 #undef CHK_
7413 }
7414
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const7415 uint8_t* PerfDataProto_StringMetadata_StringAndMd5sumPrefix::_InternalSerialize(
7416 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
7417 // @@protoc_insertion_point(serialize_to_array_start:metrics.PerfDataProto.StringMetadata.StringAndMd5sumPrefix)
7418 uint32_t cached_has_bits = 0;
7419 (void) cached_has_bits;
7420
7421 cached_has_bits = _impl_._has_bits_[0];
7422 // optional uint64 value_md5_prefix = 2;
7423 if (cached_has_bits & 0x00000001u) {
7424 target = stream->EnsureSpace(target);
7425 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_value_md5_prefix(), target);
7426 }
7427
7428 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
7429 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
7430 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
7431 }
7432 // @@protoc_insertion_point(serialize_to_array_end:metrics.PerfDataProto.StringMetadata.StringAndMd5sumPrefix)
7433 return target;
7434 }
7435
ByteSizeLong() const7436 size_t PerfDataProto_StringMetadata_StringAndMd5sumPrefix::ByteSizeLong() const {
7437 // @@protoc_insertion_point(message_byte_size_start:metrics.PerfDataProto.StringMetadata.StringAndMd5sumPrefix)
7438 size_t total_size = 0;
7439
7440 uint32_t cached_has_bits = 0;
7441 // Prevent compiler warnings about cached_has_bits being unused
7442 (void) cached_has_bits;
7443
7444 // optional uint64 value_md5_prefix = 2;
7445 cached_has_bits = _impl_._has_bits_[0];
7446 if (cached_has_bits & 0x00000001u) {
7447 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_value_md5_prefix());
7448 }
7449
7450 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
7451 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
7452 }
7453 int cached_size = ::_pbi::ToCachedSize(total_size);
7454 SetCachedSize(cached_size);
7455 return total_size;
7456 }
7457
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)7458 void PerfDataProto_StringMetadata_StringAndMd5sumPrefix::CheckTypeAndMergeFrom(
7459 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
7460 MergeFrom(*::_pbi::DownCast<const PerfDataProto_StringMetadata_StringAndMd5sumPrefix*>(
7461 &from));
7462 }
7463
MergeFrom(const PerfDataProto_StringMetadata_StringAndMd5sumPrefix & from)7464 void PerfDataProto_StringMetadata_StringAndMd5sumPrefix::MergeFrom(const PerfDataProto_StringMetadata_StringAndMd5sumPrefix& from) {
7465 PerfDataProto_StringMetadata_StringAndMd5sumPrefix* const _this = this;
7466 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.PerfDataProto.StringMetadata.StringAndMd5sumPrefix)
7467 GOOGLE_DCHECK_NE(&from, _this);
7468 uint32_t cached_has_bits = 0;
7469 (void) cached_has_bits;
7470
7471 if (from._internal_has_value_md5_prefix()) {
7472 _this->_internal_set_value_md5_prefix(from._internal_value_md5_prefix());
7473 }
7474 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
7475 }
7476
CopyFrom(const PerfDataProto_StringMetadata_StringAndMd5sumPrefix & from)7477 void PerfDataProto_StringMetadata_StringAndMd5sumPrefix::CopyFrom(const PerfDataProto_StringMetadata_StringAndMd5sumPrefix& from) {
7478 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.PerfDataProto.StringMetadata.StringAndMd5sumPrefix)
7479 if (&from == this) return;
7480 Clear();
7481 MergeFrom(from);
7482 }
7483
IsInitialized() const7484 bool PerfDataProto_StringMetadata_StringAndMd5sumPrefix::IsInitialized() const {
7485 return true;
7486 }
7487
InternalSwap(PerfDataProto_StringMetadata_StringAndMd5sumPrefix * other)7488 void PerfDataProto_StringMetadata_StringAndMd5sumPrefix::InternalSwap(PerfDataProto_StringMetadata_StringAndMd5sumPrefix* other) {
7489 using std::swap;
7490 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
7491 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
7492 swap(_impl_.value_md5_prefix_, other->_impl_.value_md5_prefix_);
7493 }
7494
GetTypeName() const7495 std::string PerfDataProto_StringMetadata_StringAndMd5sumPrefix::GetTypeName() const {
7496 return "metrics.PerfDataProto.StringMetadata.StringAndMd5sumPrefix";
7497 }
7498
7499
7500 // ===================================================================
7501
7502 class PerfDataProto_StringMetadata::_Internal {
7503 public:
7504 using HasBits = decltype(std::declval<PerfDataProto_StringMetadata>()._impl_._has_bits_);
7505 static const ::metrics::PerfDataProto_StringMetadata_StringAndMd5sumPrefix& perf_command_line_whole(const PerfDataProto_StringMetadata* msg);
set_has_perf_command_line_whole(HasBits * has_bits)7506 static void set_has_perf_command_line_whole(HasBits* has_bits) {
7507 (*has_bits)[0] |= 1u;
7508 }
7509 };
7510
7511 const ::metrics::PerfDataProto_StringMetadata_StringAndMd5sumPrefix&
perf_command_line_whole(const PerfDataProto_StringMetadata * msg)7512 PerfDataProto_StringMetadata::_Internal::perf_command_line_whole(const PerfDataProto_StringMetadata* msg) {
7513 return *msg->_impl_.perf_command_line_whole_;
7514 }
PerfDataProto_StringMetadata(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)7515 PerfDataProto_StringMetadata::PerfDataProto_StringMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena,
7516 bool is_message_owned)
7517 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
7518 SharedCtor(arena, is_message_owned);
7519 // @@protoc_insertion_point(arena_constructor:metrics.PerfDataProto.StringMetadata)
7520 }
PerfDataProto_StringMetadata(const PerfDataProto_StringMetadata & from)7521 PerfDataProto_StringMetadata::PerfDataProto_StringMetadata(const PerfDataProto_StringMetadata& from)
7522 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
7523 PerfDataProto_StringMetadata* const _this = this; (void)_this;
7524 new (&_impl_) Impl_{
7525 decltype(_impl_._has_bits_){from._impl_._has_bits_}
7526 , /*decltype(_impl_._cached_size_)*/{}
7527 , decltype(_impl_.perf_command_line_whole_){nullptr}};
7528
7529 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
7530 if (from._internal_has_perf_command_line_whole()) {
7531 _this->_impl_.perf_command_line_whole_ = new ::metrics::PerfDataProto_StringMetadata_StringAndMd5sumPrefix(*from._impl_.perf_command_line_whole_);
7532 }
7533 // @@protoc_insertion_point(copy_constructor:metrics.PerfDataProto.StringMetadata)
7534 }
7535
SharedCtor(::_pb::Arena * arena,bool is_message_owned)7536 inline void PerfDataProto_StringMetadata::SharedCtor(
7537 ::_pb::Arena* arena, bool is_message_owned) {
7538 (void)arena;
7539 (void)is_message_owned;
7540 new (&_impl_) Impl_{
7541 decltype(_impl_._has_bits_){}
7542 , /*decltype(_impl_._cached_size_)*/{}
7543 , decltype(_impl_.perf_command_line_whole_){nullptr}
7544 };
7545 }
7546
~PerfDataProto_StringMetadata()7547 PerfDataProto_StringMetadata::~PerfDataProto_StringMetadata() {
7548 // @@protoc_insertion_point(destructor:metrics.PerfDataProto.StringMetadata)
7549 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
7550 (void)arena;
7551 return;
7552 }
7553 SharedDtor();
7554 }
7555
SharedDtor()7556 inline void PerfDataProto_StringMetadata::SharedDtor() {
7557 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
7558 if (this != internal_default_instance()) delete _impl_.perf_command_line_whole_;
7559 }
7560
SetCachedSize(int size) const7561 void PerfDataProto_StringMetadata::SetCachedSize(int size) const {
7562 _impl_._cached_size_.Set(size);
7563 }
7564
Clear()7565 void PerfDataProto_StringMetadata::Clear() {
7566 // @@protoc_insertion_point(message_clear_start:metrics.PerfDataProto.StringMetadata)
7567 uint32_t cached_has_bits = 0;
7568 // Prevent compiler warnings about cached_has_bits being unused
7569 (void) cached_has_bits;
7570
7571 cached_has_bits = _impl_._has_bits_[0];
7572 if (cached_has_bits & 0x00000001u) {
7573 GOOGLE_DCHECK(_impl_.perf_command_line_whole_ != nullptr);
7574 _impl_.perf_command_line_whole_->Clear();
7575 }
7576 _impl_._has_bits_.Clear();
7577 _internal_metadata_.Clear<std::string>();
7578 }
7579
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)7580 const char* PerfDataProto_StringMetadata::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
7581 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
7582 _Internal::HasBits has_bits{};
7583 while (!ctx->Done(&ptr)) {
7584 uint32_t tag;
7585 ptr = ::_pbi::ReadTag(ptr, &tag);
7586 switch (tag >> 3) {
7587 // optional .metrics.PerfDataProto.StringMetadata.StringAndMd5sumPrefix perf_command_line_whole = 8;
7588 case 8:
7589 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) {
7590 ptr = ctx->ParseMessage(_internal_mutable_perf_command_line_whole(), ptr);
7591 CHK_(ptr);
7592 } else
7593 goto handle_unusual;
7594 continue;
7595 default:
7596 goto handle_unusual;
7597 } // switch
7598 handle_unusual:
7599 if ((tag == 0) || ((tag & 7) == 4)) {
7600 CHK_(ptr);
7601 ctx->SetLastTag(tag);
7602 goto message_done;
7603 }
7604 ptr = UnknownFieldParse(
7605 tag,
7606 _internal_metadata_.mutable_unknown_fields<std::string>(),
7607 ptr, ctx);
7608 CHK_(ptr != nullptr);
7609 } // while
7610 message_done:
7611 _impl_._has_bits_.Or(has_bits);
7612 return ptr;
7613 failure:
7614 ptr = nullptr;
7615 goto message_done;
7616 #undef CHK_
7617 }
7618
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const7619 uint8_t* PerfDataProto_StringMetadata::_InternalSerialize(
7620 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
7621 // @@protoc_insertion_point(serialize_to_array_start:metrics.PerfDataProto.StringMetadata)
7622 uint32_t cached_has_bits = 0;
7623 (void) cached_has_bits;
7624
7625 cached_has_bits = _impl_._has_bits_[0];
7626 // optional .metrics.PerfDataProto.StringMetadata.StringAndMd5sumPrefix perf_command_line_whole = 8;
7627 if (cached_has_bits & 0x00000001u) {
7628 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
7629 InternalWriteMessage(8, _Internal::perf_command_line_whole(this),
7630 _Internal::perf_command_line_whole(this).GetCachedSize(), target, stream);
7631 }
7632
7633 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
7634 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
7635 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
7636 }
7637 // @@protoc_insertion_point(serialize_to_array_end:metrics.PerfDataProto.StringMetadata)
7638 return target;
7639 }
7640
ByteSizeLong() const7641 size_t PerfDataProto_StringMetadata::ByteSizeLong() const {
7642 // @@protoc_insertion_point(message_byte_size_start:metrics.PerfDataProto.StringMetadata)
7643 size_t total_size = 0;
7644
7645 uint32_t cached_has_bits = 0;
7646 // Prevent compiler warnings about cached_has_bits being unused
7647 (void) cached_has_bits;
7648
7649 // optional .metrics.PerfDataProto.StringMetadata.StringAndMd5sumPrefix perf_command_line_whole = 8;
7650 cached_has_bits = _impl_._has_bits_[0];
7651 if (cached_has_bits & 0x00000001u) {
7652 total_size += 1 +
7653 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
7654 *_impl_.perf_command_line_whole_);
7655 }
7656
7657 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
7658 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
7659 }
7660 int cached_size = ::_pbi::ToCachedSize(total_size);
7661 SetCachedSize(cached_size);
7662 return total_size;
7663 }
7664
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)7665 void PerfDataProto_StringMetadata::CheckTypeAndMergeFrom(
7666 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
7667 MergeFrom(*::_pbi::DownCast<const PerfDataProto_StringMetadata*>(
7668 &from));
7669 }
7670
MergeFrom(const PerfDataProto_StringMetadata & from)7671 void PerfDataProto_StringMetadata::MergeFrom(const PerfDataProto_StringMetadata& from) {
7672 PerfDataProto_StringMetadata* const _this = this;
7673 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.PerfDataProto.StringMetadata)
7674 GOOGLE_DCHECK_NE(&from, _this);
7675 uint32_t cached_has_bits = 0;
7676 (void) cached_has_bits;
7677
7678 if (from._internal_has_perf_command_line_whole()) {
7679 _this->_internal_mutable_perf_command_line_whole()->::metrics::PerfDataProto_StringMetadata_StringAndMd5sumPrefix::MergeFrom(
7680 from._internal_perf_command_line_whole());
7681 }
7682 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
7683 }
7684
CopyFrom(const PerfDataProto_StringMetadata & from)7685 void PerfDataProto_StringMetadata::CopyFrom(const PerfDataProto_StringMetadata& from) {
7686 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.PerfDataProto.StringMetadata)
7687 if (&from == this) return;
7688 Clear();
7689 MergeFrom(from);
7690 }
7691
IsInitialized() const7692 bool PerfDataProto_StringMetadata::IsInitialized() const {
7693 return true;
7694 }
7695
InternalSwap(PerfDataProto_StringMetadata * other)7696 void PerfDataProto_StringMetadata::InternalSwap(PerfDataProto_StringMetadata* other) {
7697 using std::swap;
7698 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
7699 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
7700 swap(_impl_.perf_command_line_whole_, other->_impl_.perf_command_line_whole_);
7701 }
7702
GetTypeName() const7703 std::string PerfDataProto_StringMetadata::GetTypeName() const {
7704 return "metrics.PerfDataProto.StringMetadata";
7705 }
7706
7707
7708 // ===================================================================
7709
7710 class PerfDataProto::_Internal {
7711 public:
7712 using HasBits = decltype(std::declval<PerfDataProto>()._impl_._has_bits_);
set_has_timestamp_sec(HasBits * has_bits)7713 static void set_has_timestamp_sec(HasBits* has_bits) {
7714 (*has_bits)[0] |= 4u;
7715 }
7716 static const ::metrics::PerfDataProto_PerfEventStats& stats(const PerfDataProto* msg);
set_has_stats(HasBits * has_bits)7717 static void set_has_stats(HasBits* has_bits) {
7718 (*has_bits)[0] |= 1u;
7719 }
7720 static const ::metrics::PerfDataProto_StringMetadata& string_metadata(const PerfDataProto* msg);
set_has_string_metadata(HasBits * has_bits)7721 static void set_has_string_metadata(HasBits* has_bits) {
7722 (*has_bits)[0] |= 2u;
7723 }
7724 };
7725
7726 const ::metrics::PerfDataProto_PerfEventStats&
stats(const PerfDataProto * msg)7727 PerfDataProto::_Internal::stats(const PerfDataProto* msg) {
7728 return *msg->_impl_.stats_;
7729 }
7730 const ::metrics::PerfDataProto_StringMetadata&
string_metadata(const PerfDataProto * msg)7731 PerfDataProto::_Internal::string_metadata(const PerfDataProto* msg) {
7732 return *msg->_impl_.string_metadata_;
7733 }
PerfDataProto(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)7734 PerfDataProto::PerfDataProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
7735 bool is_message_owned)
7736 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
7737 SharedCtor(arena, is_message_owned);
7738 // @@protoc_insertion_point(arena_constructor:metrics.PerfDataProto)
7739 }
PerfDataProto(const PerfDataProto & from)7740 PerfDataProto::PerfDataProto(const PerfDataProto& from)
7741 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
7742 PerfDataProto* const _this = this; (void)_this;
7743 new (&_impl_) Impl_{
7744 decltype(_impl_._has_bits_){from._impl_._has_bits_}
7745 , /*decltype(_impl_._cached_size_)*/{}
7746 , decltype(_impl_.file_attrs_){from._impl_.file_attrs_}
7747 , decltype(_impl_.events_){from._impl_.events_}
7748 , decltype(_impl_.build_ids_){from._impl_.build_ids_}
7749 , decltype(_impl_.event_types_){from._impl_.event_types_}
7750 , decltype(_impl_.pmu_mappings_){from._impl_.pmu_mappings_}
7751 , decltype(_impl_.hybrid_topology_){from._impl_.hybrid_topology_}
7752 , decltype(_impl_.stats_){nullptr}
7753 , decltype(_impl_.string_metadata_){nullptr}
7754 , decltype(_impl_.timestamp_sec_){}};
7755
7756 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
7757 if (from._internal_has_stats()) {
7758 _this->_impl_.stats_ = new ::metrics::PerfDataProto_PerfEventStats(*from._impl_.stats_);
7759 }
7760 if (from._internal_has_string_metadata()) {
7761 _this->_impl_.string_metadata_ = new ::metrics::PerfDataProto_StringMetadata(*from._impl_.string_metadata_);
7762 }
7763 _this->_impl_.timestamp_sec_ = from._impl_.timestamp_sec_;
7764 // @@protoc_insertion_point(copy_constructor:metrics.PerfDataProto)
7765 }
7766
SharedCtor(::_pb::Arena * arena,bool is_message_owned)7767 inline void PerfDataProto::SharedCtor(
7768 ::_pb::Arena* arena, bool is_message_owned) {
7769 (void)arena;
7770 (void)is_message_owned;
7771 new (&_impl_) Impl_{
7772 decltype(_impl_._has_bits_){}
7773 , /*decltype(_impl_._cached_size_)*/{}
7774 , decltype(_impl_.file_attrs_){arena}
7775 , decltype(_impl_.events_){arena}
7776 , decltype(_impl_.build_ids_){arena}
7777 , decltype(_impl_.event_types_){arena}
7778 , decltype(_impl_.pmu_mappings_){arena}
7779 , decltype(_impl_.hybrid_topology_){arena}
7780 , decltype(_impl_.stats_){nullptr}
7781 , decltype(_impl_.string_metadata_){nullptr}
7782 , decltype(_impl_.timestamp_sec_){uint64_t{0u}}
7783 };
7784 }
7785
~PerfDataProto()7786 PerfDataProto::~PerfDataProto() {
7787 // @@protoc_insertion_point(destructor:metrics.PerfDataProto)
7788 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
7789 (void)arena;
7790 return;
7791 }
7792 SharedDtor();
7793 }
7794
SharedDtor()7795 inline void PerfDataProto::SharedDtor() {
7796 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
7797 _impl_.file_attrs_.~RepeatedPtrField();
7798 _impl_.events_.~RepeatedPtrField();
7799 _impl_.build_ids_.~RepeatedPtrField();
7800 _impl_.event_types_.~RepeatedPtrField();
7801 _impl_.pmu_mappings_.~RepeatedPtrField();
7802 _impl_.hybrid_topology_.~RepeatedPtrField();
7803 if (this != internal_default_instance()) delete _impl_.stats_;
7804 if (this != internal_default_instance()) delete _impl_.string_metadata_;
7805 }
7806
SetCachedSize(int size) const7807 void PerfDataProto::SetCachedSize(int size) const {
7808 _impl_._cached_size_.Set(size);
7809 }
7810
Clear()7811 void PerfDataProto::Clear() {
7812 // @@protoc_insertion_point(message_clear_start:metrics.PerfDataProto)
7813 uint32_t cached_has_bits = 0;
7814 // Prevent compiler warnings about cached_has_bits being unused
7815 (void) cached_has_bits;
7816
7817 _impl_.file_attrs_.Clear();
7818 _impl_.events_.Clear();
7819 _impl_.build_ids_.Clear();
7820 _impl_.event_types_.Clear();
7821 _impl_.pmu_mappings_.Clear();
7822 _impl_.hybrid_topology_.Clear();
7823 cached_has_bits = _impl_._has_bits_[0];
7824 if (cached_has_bits & 0x00000003u) {
7825 if (cached_has_bits & 0x00000001u) {
7826 GOOGLE_DCHECK(_impl_.stats_ != nullptr);
7827 _impl_.stats_->Clear();
7828 }
7829 if (cached_has_bits & 0x00000002u) {
7830 GOOGLE_DCHECK(_impl_.string_metadata_ != nullptr);
7831 _impl_.string_metadata_->Clear();
7832 }
7833 }
7834 _impl_.timestamp_sec_ = uint64_t{0u};
7835 _impl_._has_bits_.Clear();
7836 _internal_metadata_.Clear<std::string>();
7837 }
7838
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)7839 const char* PerfDataProto::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
7840 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
7841 _Internal::HasBits has_bits{};
7842 while (!ctx->Done(&ptr)) {
7843 uint32_t tag;
7844 ptr = ::_pbi::ReadTag(ptr, &tag);
7845 switch (tag >> 3) {
7846 // repeated .metrics.PerfDataProto.PerfFileAttr file_attrs = 1;
7847 case 1:
7848 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
7849 ptr -= 1;
7850 do {
7851 ptr += 1;
7852 ptr = ctx->ParseMessage(_internal_add_file_attrs(), ptr);
7853 CHK_(ptr);
7854 if (!ctx->DataAvailable(ptr)) break;
7855 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
7856 } else
7857 goto handle_unusual;
7858 continue;
7859 // repeated .metrics.PerfDataProto.PerfEvent events = 2;
7860 case 2:
7861 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
7862 ptr -= 1;
7863 do {
7864 ptr += 1;
7865 ptr = ctx->ParseMessage(_internal_add_events(), ptr);
7866 CHK_(ptr);
7867 if (!ctx->DataAvailable(ptr)) break;
7868 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
7869 } else
7870 goto handle_unusual;
7871 continue;
7872 // optional uint64 timestamp_sec = 3;
7873 case 3:
7874 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
7875 _Internal::set_has_timestamp_sec(&has_bits);
7876 _impl_.timestamp_sec_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
7877 CHK_(ptr);
7878 } else
7879 goto handle_unusual;
7880 continue;
7881 // optional .metrics.PerfDataProto.PerfEventStats stats = 4;
7882 case 4:
7883 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
7884 ptr = ctx->ParseMessage(_internal_mutable_stats(), ptr);
7885 CHK_(ptr);
7886 } else
7887 goto handle_unusual;
7888 continue;
7889 // repeated .metrics.PerfDataProto.PerfBuildID build_ids = 7;
7890 case 7:
7891 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) {
7892 ptr -= 1;
7893 do {
7894 ptr += 1;
7895 ptr = ctx->ParseMessage(_internal_add_build_ids(), ptr);
7896 CHK_(ptr);
7897 if (!ctx->DataAvailable(ptr)) break;
7898 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<58>(ptr));
7899 } else
7900 goto handle_unusual;
7901 continue;
7902 // repeated .metrics.PerfDataProto.PerfEventType event_types = 10;
7903 case 10:
7904 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 82)) {
7905 ptr -= 1;
7906 do {
7907 ptr += 1;
7908 ptr = ctx->ParseMessage(_internal_add_event_types(), ptr);
7909 CHK_(ptr);
7910 if (!ctx->DataAvailable(ptr)) break;
7911 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<82>(ptr));
7912 } else
7913 goto handle_unusual;
7914 continue;
7915 // optional .metrics.PerfDataProto.StringMetadata string_metadata = 13;
7916 case 13:
7917 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 106)) {
7918 ptr = ctx->ParseMessage(_internal_mutable_string_metadata(), ptr);
7919 CHK_(ptr);
7920 } else
7921 goto handle_unusual;
7922 continue;
7923 // repeated .metrics.PerfDataProto.PerfPMUMappingsMetadata pmu_mappings = 15;
7924 case 15:
7925 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 122)) {
7926 ptr -= 1;
7927 do {
7928 ptr += 1;
7929 ptr = ctx->ParseMessage(_internal_add_pmu_mappings(), ptr);
7930 CHK_(ptr);
7931 if (!ctx->DataAvailable(ptr)) break;
7932 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<122>(ptr));
7933 } else
7934 goto handle_unusual;
7935 continue;
7936 // repeated .metrics.PerfDataProto.PerfHybridTopologyMetadata hybrid_topology = 17;
7937 case 17:
7938 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 138)) {
7939 ptr -= 2;
7940 do {
7941 ptr += 2;
7942 ptr = ctx->ParseMessage(_internal_add_hybrid_topology(), ptr);
7943 CHK_(ptr);
7944 if (!ctx->DataAvailable(ptr)) break;
7945 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<138>(ptr));
7946 } else
7947 goto handle_unusual;
7948 continue;
7949 default:
7950 goto handle_unusual;
7951 } // switch
7952 handle_unusual:
7953 if ((tag == 0) || ((tag & 7) == 4)) {
7954 CHK_(ptr);
7955 ctx->SetLastTag(tag);
7956 goto message_done;
7957 }
7958 ptr = UnknownFieldParse(
7959 tag,
7960 _internal_metadata_.mutable_unknown_fields<std::string>(),
7961 ptr, ctx);
7962 CHK_(ptr != nullptr);
7963 } // while
7964 message_done:
7965 _impl_._has_bits_.Or(has_bits);
7966 return ptr;
7967 failure:
7968 ptr = nullptr;
7969 goto message_done;
7970 #undef CHK_
7971 }
7972
_InternalSerialize(uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const7973 uint8_t* PerfDataProto::_InternalSerialize(
7974 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
7975 // @@protoc_insertion_point(serialize_to_array_start:metrics.PerfDataProto)
7976 uint32_t cached_has_bits = 0;
7977 (void) cached_has_bits;
7978
7979 // repeated .metrics.PerfDataProto.PerfFileAttr file_attrs = 1;
7980 for (unsigned i = 0,
7981 n = static_cast<unsigned>(this->_internal_file_attrs_size()); i < n; i++) {
7982 const auto& repfield = this->_internal_file_attrs(i);
7983 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
7984 InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
7985 }
7986
7987 // repeated .metrics.PerfDataProto.PerfEvent events = 2;
7988 for (unsigned i = 0,
7989 n = static_cast<unsigned>(this->_internal_events_size()); i < n; i++) {
7990 const auto& repfield = this->_internal_events(i);
7991 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
7992 InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream);
7993 }
7994
7995 cached_has_bits = _impl_._has_bits_[0];
7996 // optional uint64 timestamp_sec = 3;
7997 if (cached_has_bits & 0x00000004u) {
7998 target = stream->EnsureSpace(target);
7999 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(3, this->_internal_timestamp_sec(), target);
8000 }
8001
8002 // optional .metrics.PerfDataProto.PerfEventStats stats = 4;
8003 if (cached_has_bits & 0x00000001u) {
8004 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
8005 InternalWriteMessage(4, _Internal::stats(this),
8006 _Internal::stats(this).GetCachedSize(), target, stream);
8007 }
8008
8009 // repeated .metrics.PerfDataProto.PerfBuildID build_ids = 7;
8010 for (unsigned i = 0,
8011 n = static_cast<unsigned>(this->_internal_build_ids_size()); i < n; i++) {
8012 const auto& repfield = this->_internal_build_ids(i);
8013 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
8014 InternalWriteMessage(7, repfield, repfield.GetCachedSize(), target, stream);
8015 }
8016
8017 // repeated .metrics.PerfDataProto.PerfEventType event_types = 10;
8018 for (unsigned i = 0,
8019 n = static_cast<unsigned>(this->_internal_event_types_size()); i < n; i++) {
8020 const auto& repfield = this->_internal_event_types(i);
8021 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
8022 InternalWriteMessage(10, repfield, repfield.GetCachedSize(), target, stream);
8023 }
8024
8025 // optional .metrics.PerfDataProto.StringMetadata string_metadata = 13;
8026 if (cached_has_bits & 0x00000002u) {
8027 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
8028 InternalWriteMessage(13, _Internal::string_metadata(this),
8029 _Internal::string_metadata(this).GetCachedSize(), target, stream);
8030 }
8031
8032 // repeated .metrics.PerfDataProto.PerfPMUMappingsMetadata pmu_mappings = 15;
8033 for (unsigned i = 0,
8034 n = static_cast<unsigned>(this->_internal_pmu_mappings_size()); i < n; i++) {
8035 const auto& repfield = this->_internal_pmu_mappings(i);
8036 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
8037 InternalWriteMessage(15, repfield, repfield.GetCachedSize(), target, stream);
8038 }
8039
8040 // repeated .metrics.PerfDataProto.PerfHybridTopologyMetadata hybrid_topology = 17;
8041 for (unsigned i = 0,
8042 n = static_cast<unsigned>(this->_internal_hybrid_topology_size()); i < n; i++) {
8043 const auto& repfield = this->_internal_hybrid_topology(i);
8044 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
8045 InternalWriteMessage(17, repfield, repfield.GetCachedSize(), target, stream);
8046 }
8047
8048 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
8049 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
8050 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
8051 }
8052 // @@protoc_insertion_point(serialize_to_array_end:metrics.PerfDataProto)
8053 return target;
8054 }
8055
ByteSizeLong() const8056 size_t PerfDataProto::ByteSizeLong() const {
8057 // @@protoc_insertion_point(message_byte_size_start:metrics.PerfDataProto)
8058 size_t total_size = 0;
8059
8060 uint32_t cached_has_bits = 0;
8061 // Prevent compiler warnings about cached_has_bits being unused
8062 (void) cached_has_bits;
8063
8064 // repeated .metrics.PerfDataProto.PerfFileAttr file_attrs = 1;
8065 total_size += 1UL * this->_internal_file_attrs_size();
8066 for (const auto& msg : this->_impl_.file_attrs_) {
8067 total_size +=
8068 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
8069 }
8070
8071 // repeated .metrics.PerfDataProto.PerfEvent events = 2;
8072 total_size += 1UL * this->_internal_events_size();
8073 for (const auto& msg : this->_impl_.events_) {
8074 total_size +=
8075 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
8076 }
8077
8078 // repeated .metrics.PerfDataProto.PerfBuildID build_ids = 7;
8079 total_size += 1UL * this->_internal_build_ids_size();
8080 for (const auto& msg : this->_impl_.build_ids_) {
8081 total_size +=
8082 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
8083 }
8084
8085 // repeated .metrics.PerfDataProto.PerfEventType event_types = 10;
8086 total_size += 1UL * this->_internal_event_types_size();
8087 for (const auto& msg : this->_impl_.event_types_) {
8088 total_size +=
8089 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
8090 }
8091
8092 // repeated .metrics.PerfDataProto.PerfPMUMappingsMetadata pmu_mappings = 15;
8093 total_size += 1UL * this->_internal_pmu_mappings_size();
8094 for (const auto& msg : this->_impl_.pmu_mappings_) {
8095 total_size +=
8096 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
8097 }
8098
8099 // repeated .metrics.PerfDataProto.PerfHybridTopologyMetadata hybrid_topology = 17;
8100 total_size += 2UL * this->_internal_hybrid_topology_size();
8101 for (const auto& msg : this->_impl_.hybrid_topology_) {
8102 total_size +=
8103 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
8104 }
8105
8106 cached_has_bits = _impl_._has_bits_[0];
8107 if (cached_has_bits & 0x00000007u) {
8108 // optional .metrics.PerfDataProto.PerfEventStats stats = 4;
8109 if (cached_has_bits & 0x00000001u) {
8110 total_size += 1 +
8111 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
8112 *_impl_.stats_);
8113 }
8114
8115 // optional .metrics.PerfDataProto.StringMetadata string_metadata = 13;
8116 if (cached_has_bits & 0x00000002u) {
8117 total_size += 1 +
8118 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
8119 *_impl_.string_metadata_);
8120 }
8121
8122 // optional uint64 timestamp_sec = 3;
8123 if (cached_has_bits & 0x00000004u) {
8124 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_timestamp_sec());
8125 }
8126
8127 }
8128 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
8129 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
8130 }
8131 int cached_size = ::_pbi::ToCachedSize(total_size);
8132 SetCachedSize(cached_size);
8133 return total_size;
8134 }
8135
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)8136 void PerfDataProto::CheckTypeAndMergeFrom(
8137 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
8138 MergeFrom(*::_pbi::DownCast<const PerfDataProto*>(
8139 &from));
8140 }
8141
MergeFrom(const PerfDataProto & from)8142 void PerfDataProto::MergeFrom(const PerfDataProto& from) {
8143 PerfDataProto* const _this = this;
8144 // @@protoc_insertion_point(class_specific_merge_from_start:metrics.PerfDataProto)
8145 GOOGLE_DCHECK_NE(&from, _this);
8146 uint32_t cached_has_bits = 0;
8147 (void) cached_has_bits;
8148
8149 _this->_impl_.file_attrs_.MergeFrom(from._impl_.file_attrs_);
8150 _this->_impl_.events_.MergeFrom(from._impl_.events_);
8151 _this->_impl_.build_ids_.MergeFrom(from._impl_.build_ids_);
8152 _this->_impl_.event_types_.MergeFrom(from._impl_.event_types_);
8153 _this->_impl_.pmu_mappings_.MergeFrom(from._impl_.pmu_mappings_);
8154 _this->_impl_.hybrid_topology_.MergeFrom(from._impl_.hybrid_topology_);
8155 cached_has_bits = from._impl_._has_bits_[0];
8156 if (cached_has_bits & 0x00000007u) {
8157 if (cached_has_bits & 0x00000001u) {
8158 _this->_internal_mutable_stats()->::metrics::PerfDataProto_PerfEventStats::MergeFrom(
8159 from._internal_stats());
8160 }
8161 if (cached_has_bits & 0x00000002u) {
8162 _this->_internal_mutable_string_metadata()->::metrics::PerfDataProto_StringMetadata::MergeFrom(
8163 from._internal_string_metadata());
8164 }
8165 if (cached_has_bits & 0x00000004u) {
8166 _this->_impl_.timestamp_sec_ = from._impl_.timestamp_sec_;
8167 }
8168 _this->_impl_._has_bits_[0] |= cached_has_bits;
8169 }
8170 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
8171 }
8172
CopyFrom(const PerfDataProto & from)8173 void PerfDataProto::CopyFrom(const PerfDataProto& from) {
8174 // @@protoc_insertion_point(class_specific_copy_from_start:metrics.PerfDataProto)
8175 if (&from == this) return;
8176 Clear();
8177 MergeFrom(from);
8178 }
8179
IsInitialized() const8180 bool PerfDataProto::IsInitialized() const {
8181 return true;
8182 }
8183
InternalSwap(PerfDataProto * other)8184 void PerfDataProto::InternalSwap(PerfDataProto* other) {
8185 using std::swap;
8186 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
8187 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
8188 _impl_.file_attrs_.InternalSwap(&other->_impl_.file_attrs_);
8189 _impl_.events_.InternalSwap(&other->_impl_.events_);
8190 _impl_.build_ids_.InternalSwap(&other->_impl_.build_ids_);
8191 _impl_.event_types_.InternalSwap(&other->_impl_.event_types_);
8192 _impl_.pmu_mappings_.InternalSwap(&other->_impl_.pmu_mappings_);
8193 _impl_.hybrid_topology_.InternalSwap(&other->_impl_.hybrid_topology_);
8194 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
8195 PROTOBUF_FIELD_OFFSET(PerfDataProto, _impl_.timestamp_sec_)
8196 + sizeof(PerfDataProto::_impl_.timestamp_sec_)
8197 - PROTOBUF_FIELD_OFFSET(PerfDataProto, _impl_.stats_)>(
8198 reinterpret_cast<char*>(&_impl_.stats_),
8199 reinterpret_cast<char*>(&other->_impl_.stats_));
8200 }
8201
GetTypeName() const8202 std::string PerfDataProto::GetTypeName() const {
8203 return "metrics.PerfDataProto";
8204 }
8205
8206
8207 // @@protoc_insertion_point(namespace_scope)
8208 } // namespace metrics
8209 PROTOBUF_NAMESPACE_OPEN
8210 template<> PROTOBUF_NOINLINE ::metrics::PerfDataProto_PerfEventAttr*
CreateMaybeMessage(Arena * arena)8211 Arena::CreateMaybeMessage< ::metrics::PerfDataProto_PerfEventAttr >(Arena* arena) {
8212 return Arena::CreateMessageInternal< ::metrics::PerfDataProto_PerfEventAttr >(arena);
8213 }
8214 template<> PROTOBUF_NOINLINE ::metrics::PerfDataProto_PerfFileAttr*
CreateMaybeMessage(Arena * arena)8215 Arena::CreateMaybeMessage< ::metrics::PerfDataProto_PerfFileAttr >(Arena* arena) {
8216 return Arena::CreateMessageInternal< ::metrics::PerfDataProto_PerfFileAttr >(arena);
8217 }
8218 template<> PROTOBUF_NOINLINE ::metrics::PerfDataProto_PerfEventType*
CreateMaybeMessage(Arena * arena)8219 Arena::CreateMaybeMessage< ::metrics::PerfDataProto_PerfEventType >(Arena* arena) {
8220 return Arena::CreateMessageInternal< ::metrics::PerfDataProto_PerfEventType >(arena);
8221 }
8222 template<> PROTOBUF_NOINLINE ::metrics::PerfDataProto_SampleInfo*
CreateMaybeMessage(Arena * arena)8223 Arena::CreateMaybeMessage< ::metrics::PerfDataProto_SampleInfo >(Arena* arena) {
8224 return Arena::CreateMessageInternal< ::metrics::PerfDataProto_SampleInfo >(arena);
8225 }
8226 template<> PROTOBUF_NOINLINE ::metrics::PerfDataProto_CommEvent*
CreateMaybeMessage(Arena * arena)8227 Arena::CreateMaybeMessage< ::metrics::PerfDataProto_CommEvent >(Arena* arena) {
8228 return Arena::CreateMessageInternal< ::metrics::PerfDataProto_CommEvent >(arena);
8229 }
8230 template<> PROTOBUF_NOINLINE ::metrics::PerfDataProto_MMapEvent*
CreateMaybeMessage(Arena * arena)8231 Arena::CreateMaybeMessage< ::metrics::PerfDataProto_MMapEvent >(Arena* arena) {
8232 return Arena::CreateMessageInternal< ::metrics::PerfDataProto_MMapEvent >(arena);
8233 }
8234 template<> PROTOBUF_NOINLINE ::metrics::PerfDataProto_LostEvent*
CreateMaybeMessage(Arena * arena)8235 Arena::CreateMaybeMessage< ::metrics::PerfDataProto_LostEvent >(Arena* arena) {
8236 return Arena::CreateMessageInternal< ::metrics::PerfDataProto_LostEvent >(arena);
8237 }
8238 template<> PROTOBUF_NOINLINE ::metrics::PerfDataProto_ThrottleEvent*
CreateMaybeMessage(Arena * arena)8239 Arena::CreateMaybeMessage< ::metrics::PerfDataProto_ThrottleEvent >(Arena* arena) {
8240 return Arena::CreateMessageInternal< ::metrics::PerfDataProto_ThrottleEvent >(arena);
8241 }
8242 template<> PROTOBUF_NOINLINE ::metrics::PerfDataProto_BranchStackEntry*
CreateMaybeMessage(Arena * arena)8243 Arena::CreateMaybeMessage< ::metrics::PerfDataProto_BranchStackEntry >(Arena* arena) {
8244 return Arena::CreateMessageInternal< ::metrics::PerfDataProto_BranchStackEntry >(arena);
8245 }
8246 template<> PROTOBUF_NOINLINE ::metrics::PerfDataProto_SampleEvent*
CreateMaybeMessage(Arena * arena)8247 Arena::CreateMaybeMessage< ::metrics::PerfDataProto_SampleEvent >(Arena* arena) {
8248 return Arena::CreateMessageInternal< ::metrics::PerfDataProto_SampleEvent >(arena);
8249 }
8250 template<> PROTOBUF_NOINLINE ::metrics::PerfDataProto_ForkEvent*
CreateMaybeMessage(Arena * arena)8251 Arena::CreateMaybeMessage< ::metrics::PerfDataProto_ForkEvent >(Arena* arena) {
8252 return Arena::CreateMessageInternal< ::metrics::PerfDataProto_ForkEvent >(arena);
8253 }
8254 template<> PROTOBUF_NOINLINE ::metrics::PerfDataProto_EventHeader*
CreateMaybeMessage(Arena * arena)8255 Arena::CreateMaybeMessage< ::metrics::PerfDataProto_EventHeader >(Arena* arena) {
8256 return Arena::CreateMessageInternal< ::metrics::PerfDataProto_EventHeader >(arena);
8257 }
8258 template<> PROTOBUF_NOINLINE ::metrics::PerfDataProto_PerfEvent*
CreateMaybeMessage(Arena * arena)8259 Arena::CreateMaybeMessage< ::metrics::PerfDataProto_PerfEvent >(Arena* arena) {
8260 return Arena::CreateMessageInternal< ::metrics::PerfDataProto_PerfEvent >(arena);
8261 }
8262 template<> PROTOBUF_NOINLINE ::metrics::PerfDataProto_PerfEventStats*
CreateMaybeMessage(Arena * arena)8263 Arena::CreateMaybeMessage< ::metrics::PerfDataProto_PerfEventStats >(Arena* arena) {
8264 return Arena::CreateMessageInternal< ::metrics::PerfDataProto_PerfEventStats >(arena);
8265 }
8266 template<> PROTOBUF_NOINLINE ::metrics::PerfDataProto_PerfBuildID*
CreateMaybeMessage(Arena * arena)8267 Arena::CreateMaybeMessage< ::metrics::PerfDataProto_PerfBuildID >(Arena* arena) {
8268 return Arena::CreateMessageInternal< ::metrics::PerfDataProto_PerfBuildID >(arena);
8269 }
8270 template<> PROTOBUF_NOINLINE ::metrics::PerfDataProto_PerfPMUMappingsMetadata*
CreateMaybeMessage(Arena * arena)8271 Arena::CreateMaybeMessage< ::metrics::PerfDataProto_PerfPMUMappingsMetadata >(Arena* arena) {
8272 return Arena::CreateMessageInternal< ::metrics::PerfDataProto_PerfPMUMappingsMetadata >(arena);
8273 }
8274 template<> PROTOBUF_NOINLINE ::metrics::PerfDataProto_PerfHybridTopologyMetadata*
CreateMaybeMessage(Arena * arena)8275 Arena::CreateMaybeMessage< ::metrics::PerfDataProto_PerfHybridTopologyMetadata >(Arena* arena) {
8276 return Arena::CreateMessageInternal< ::metrics::PerfDataProto_PerfHybridTopologyMetadata >(arena);
8277 }
8278 template<> PROTOBUF_NOINLINE ::metrics::PerfDataProto_StringMetadata_StringAndMd5sumPrefix*
CreateMaybeMessage(Arena * arena)8279 Arena::CreateMaybeMessage< ::metrics::PerfDataProto_StringMetadata_StringAndMd5sumPrefix >(Arena* arena) {
8280 return Arena::CreateMessageInternal< ::metrics::PerfDataProto_StringMetadata_StringAndMd5sumPrefix >(arena);
8281 }
8282 template<> PROTOBUF_NOINLINE ::metrics::PerfDataProto_StringMetadata*
CreateMaybeMessage(Arena * arena)8283 Arena::CreateMaybeMessage< ::metrics::PerfDataProto_StringMetadata >(Arena* arena) {
8284 return Arena::CreateMessageInternal< ::metrics::PerfDataProto_StringMetadata >(arena);
8285 }
8286 template<> PROTOBUF_NOINLINE ::metrics::PerfDataProto*
CreateMaybeMessage(Arena * arena)8287 Arena::CreateMaybeMessage< ::metrics::PerfDataProto >(Arena* arena) {
8288 return Arena::CreateMessageInternal< ::metrics::PerfDataProto >(arena);
8289 }
8290 PROTOBUF_NAMESPACE_CLOSE
8291
8292 // @@protoc_insertion_point(global_scope)
8293 #include <google/protobuf/port_undef.inc>
8294