1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: protos/perfetto/trace/test_extensions.proto
3
4 #include "protos/perfetto/trace/test_extensions.pb.h"
5
6 #include <algorithm>
7 #include <cstdint>
8
9 #include <google/protobuf/io/coded_stream.h>
10 #include <google/protobuf/extension_set.h>
11 #include <google/protobuf/wire_format_lite.h>
12 #include <google/protobuf/io/zero_copy_stream_impl_lite.h>
13 // @@protoc_insertion_point(includes)
14 #include <google/protobuf/port_def.inc>
15
16 PROTOBUF_PRAGMA_INIT_SEG
17
18 namespace _pb = ::PROTOBUF_NAMESPACE_ID;
19 namespace _pbi = _pb::internal;
20
21 namespace perfetto {
22 namespace protos {
TestExtension(::_pbi::ConstantInitialized)23 PROTOBUF_CONSTEXPR TestExtension::TestExtension(
24 ::_pbi::ConstantInitialized): _impl_{
25 /*decltype(_impl_._cached_size_)*/{}} {}
26 struct TestExtensionDefaultTypeInternal {
TestExtensionDefaultTypeInternalperfetto::protos::TestExtensionDefaultTypeInternal27 PROTOBUF_CONSTEXPR TestExtensionDefaultTypeInternal()
28 : _instance(::_pbi::ConstantInitialized{}) {}
~TestExtensionDefaultTypeInternalperfetto::protos::TestExtensionDefaultTypeInternal29 ~TestExtensionDefaultTypeInternal() {}
30 union { // NOLINT(misc-non-private-member-variables-in-classes)
31 TestExtension _instance;
32 };
33 };
34 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TestExtensionDefaultTypeInternal _TestExtension_default_instance_;
TestExtensionChild(::_pbi::ConstantInitialized)35 PROTOBUF_CONSTEXPR TestExtensionChild::TestExtensionChild(
36 ::_pbi::ConstantInitialized): _impl_{
37 /*decltype(_impl_._has_bits_)*/{}
38 , /*decltype(_impl_._cached_size_)*/{}
39 , /*decltype(_impl_.debug_annotations_)*/{}
40 , /*decltype(_impl_.child_field_for_testing_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}} {}
41 struct TestExtensionChildDefaultTypeInternal {
TestExtensionChildDefaultTypeInternalperfetto::protos::TestExtensionChildDefaultTypeInternal42 PROTOBUF_CONSTEXPR TestExtensionChildDefaultTypeInternal()
43 : _instance(::_pbi::ConstantInitialized{}) {}
~TestExtensionChildDefaultTypeInternalperfetto::protos::TestExtensionChildDefaultTypeInternal44 ~TestExtensionChildDefaultTypeInternal() {}
45 union { // NOLINT(misc-non-private-member-variables-in-classes)
46 TestExtensionChild _instance;
47 };
48 };
49 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TestExtensionChildDefaultTypeInternal _TestExtensionChild_default_instance_;
50 } // namespace protos
51 } // namespace perfetto
52 namespace perfetto {
53 namespace protos {
54
55 // ===================================================================
56
57 class TestExtension::_Internal {
58 public:
59 };
60
TestExtension(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)61 TestExtension::TestExtension(::PROTOBUF_NAMESPACE_ID::Arena* arena,
62 bool is_message_owned)
63 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
64 SharedCtor(arena, is_message_owned);
65 // @@protoc_insertion_point(arena_constructor:perfetto.protos.TestExtension)
66 }
TestExtension(const TestExtension & from)67 TestExtension::TestExtension(const TestExtension& from)
68 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
69 TestExtension* const _this = this; (void)_this;
70 new (&_impl_) Impl_{
71 /*decltype(_impl_._cached_size_)*/{}};
72
73 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
74 // @@protoc_insertion_point(copy_constructor:perfetto.protos.TestExtension)
75 }
76
SharedCtor(::_pb::Arena * arena,bool is_message_owned)77 inline void TestExtension::SharedCtor(
78 ::_pb::Arena* arena, bool is_message_owned) {
79 (void)arena;
80 (void)is_message_owned;
81 new (&_impl_) Impl_{
82 /*decltype(_impl_._cached_size_)*/{}
83 };
84 }
85
~TestExtension()86 TestExtension::~TestExtension() {
87 // @@protoc_insertion_point(destructor:perfetto.protos.TestExtension)
88 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
89 (void)arena;
90 return;
91 }
92 SharedDtor();
93 }
94
SharedDtor()95 inline void TestExtension::SharedDtor() {
96 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
97 }
98
SetCachedSize(int size) const99 void TestExtension::SetCachedSize(int size) const {
100 _impl_._cached_size_.Set(size);
101 }
102
Clear()103 void TestExtension::Clear() {
104 // @@protoc_insertion_point(message_clear_start:perfetto.protos.TestExtension)
105 ::uint32_t cached_has_bits = 0;
106 // Prevent compiler warnings about cached_has_bits being unused
107 (void) cached_has_bits;
108
109 _internal_metadata_.Clear<std::string>();
110 }
111
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)112 const char* TestExtension::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
113 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
114 while (!ctx->Done(&ptr)) {
115 ::uint32_t tag;
116 ptr = ::_pbi::ReadTag(ptr, &tag);
117 if ((tag == 0) || ((tag & 7) == 4)) {
118 CHK_(ptr);
119 ctx->SetLastTag(tag);
120 goto message_done;
121 }
122 ptr = UnknownFieldParse(
123 tag,
124 _internal_metadata_.mutable_unknown_fields<std::string>(),
125 ptr, ctx);
126 CHK_(ptr != nullptr);
127 } // while
128 message_done:
129 return ptr;
130 failure:
131 ptr = nullptr;
132 goto message_done;
133 #undef CHK_
134 }
135
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const136 ::uint8_t* TestExtension::_InternalSerialize(
137 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
138 // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.TestExtension)
139 ::uint32_t cached_has_bits = 0;
140 (void) cached_has_bits;
141
142 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
143 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
144 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
145 }
146 // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.TestExtension)
147 return target;
148 }
149
ByteSizeLong() const150 size_t TestExtension::ByteSizeLong() const {
151 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.TestExtension)
152 size_t total_size = 0;
153
154 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
155 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
156 }
157 int cached_size = ::_pbi::ToCachedSize(total_size);
158 SetCachedSize(cached_size);
159 return total_size;
160 }
161
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)162 void TestExtension::CheckTypeAndMergeFrom(
163 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
164 MergeFrom(*::_pbi::DownCast<const TestExtension*>(
165 &from));
166 }
167
MergeFrom(const TestExtension & from)168 void TestExtension::MergeFrom(const TestExtension& from) {
169 TestExtension* const _this = this;
170 // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.TestExtension)
171 GOOGLE_DCHECK_NE(&from, _this);
172 ::uint32_t cached_has_bits = 0;
173 (void) cached_has_bits;
174
175 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
176 }
177
CopyFrom(const TestExtension & from)178 void TestExtension::CopyFrom(const TestExtension& from) {
179 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.TestExtension)
180 if (&from == this) return;
181 Clear();
182 MergeFrom(from);
183 }
184
IsInitialized() const185 bool TestExtension::IsInitialized() const {
186 return true;
187 }
188
InternalSwap(TestExtension * other)189 void TestExtension::InternalSwap(TestExtension* other) {
190 using std::swap;
191 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
192 }
193
GetTypeName() const194 std::string TestExtension::GetTypeName() const {
195 return "perfetto.protos.TestExtension";
196 }
197
198
199 // ===================================================================
200
201 class TestExtensionChild::_Internal {
202 public:
203 using HasBits = decltype(std::declval<TestExtensionChild>()._impl_._has_bits_);
set_has_child_field_for_testing(HasBits * has_bits)204 static void set_has_child_field_for_testing(HasBits* has_bits) {
205 (*has_bits)[0] |= 1u;
206 }
207 };
208
clear_debug_annotations()209 void TestExtensionChild::clear_debug_annotations() {
210 _impl_.debug_annotations_.Clear();
211 }
TestExtensionChild(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)212 TestExtensionChild::TestExtensionChild(::PROTOBUF_NAMESPACE_ID::Arena* arena,
213 bool is_message_owned)
214 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
215 SharedCtor(arena, is_message_owned);
216 // @@protoc_insertion_point(arena_constructor:perfetto.protos.TestExtensionChild)
217 }
TestExtensionChild(const TestExtensionChild & from)218 TestExtensionChild::TestExtensionChild(const TestExtensionChild& from)
219 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
220 TestExtensionChild* const _this = this; (void)_this;
221 new (&_impl_) Impl_{
222 decltype(_impl_._has_bits_){from._impl_._has_bits_}
223 , /*decltype(_impl_._cached_size_)*/{}
224 , decltype(_impl_.debug_annotations_){from._impl_.debug_annotations_}
225 , decltype(_impl_.child_field_for_testing_){}};
226
227 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
228 _impl_.child_field_for_testing_.InitDefault();
229 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
230 _impl_.child_field_for_testing_.Set("", GetArenaForAllocation());
231 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
232 if (from._internal_has_child_field_for_testing()) {
233 _this->_impl_.child_field_for_testing_.Set(from._internal_child_field_for_testing(),
234 _this->GetArenaForAllocation());
235 }
236 // @@protoc_insertion_point(copy_constructor:perfetto.protos.TestExtensionChild)
237 }
238
SharedCtor(::_pb::Arena * arena,bool is_message_owned)239 inline void TestExtensionChild::SharedCtor(
240 ::_pb::Arena* arena, bool is_message_owned) {
241 (void)arena;
242 (void)is_message_owned;
243 new (&_impl_) Impl_{
244 decltype(_impl_._has_bits_){}
245 , /*decltype(_impl_._cached_size_)*/{}
246 , decltype(_impl_.debug_annotations_){arena}
247 , decltype(_impl_.child_field_for_testing_){}
248 };
249 _impl_.child_field_for_testing_.InitDefault();
250 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
251 _impl_.child_field_for_testing_.Set("", GetArenaForAllocation());
252 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
253 }
254
~TestExtensionChild()255 TestExtensionChild::~TestExtensionChild() {
256 // @@protoc_insertion_point(destructor:perfetto.protos.TestExtensionChild)
257 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
258 (void)arena;
259 return;
260 }
261 SharedDtor();
262 }
263
SharedDtor()264 inline void TestExtensionChild::SharedDtor() {
265 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
266 _impl_.debug_annotations_.~RepeatedPtrField();
267 _impl_.child_field_for_testing_.Destroy();
268 }
269
SetCachedSize(int size) const270 void TestExtensionChild::SetCachedSize(int size) const {
271 _impl_._cached_size_.Set(size);
272 }
273
Clear()274 void TestExtensionChild::Clear() {
275 // @@protoc_insertion_point(message_clear_start:perfetto.protos.TestExtensionChild)
276 ::uint32_t cached_has_bits = 0;
277 // Prevent compiler warnings about cached_has_bits being unused
278 (void) cached_has_bits;
279
280 _impl_.debug_annotations_.Clear();
281 cached_has_bits = _impl_._has_bits_[0];
282 if (cached_has_bits & 0x00000001u) {
283 _impl_.child_field_for_testing_.ClearNonDefaultToEmpty();
284 }
285 _impl_._has_bits_.Clear();
286 _internal_metadata_.Clear<std::string>();
287 }
288
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)289 const char* TestExtensionChild::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
290 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
291 _Internal::HasBits has_bits{};
292 while (!ctx->Done(&ptr)) {
293 ::uint32_t tag;
294 ptr = ::_pbi::ReadTag(ptr, &tag);
295 switch (tag >> 3) {
296 // optional string child_field_for_testing = 1;
297 case 1:
298 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
299 auto str = _internal_mutable_child_field_for_testing();
300 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
301 CHK_(ptr);
302 } else {
303 goto handle_unusual;
304 }
305 continue;
306 // repeated .perfetto.protos.DebugAnnotation debug_annotations = 99;
307 case 99:
308 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
309 ptr -= 2;
310 do {
311 ptr += 2;
312 ptr = ctx->ParseMessage(_internal_add_debug_annotations(), ptr);
313 CHK_(ptr);
314 if (!ctx->DataAvailable(ptr)) break;
315 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<794>(ptr));
316 } else {
317 goto handle_unusual;
318 }
319 continue;
320 default:
321 goto handle_unusual;
322 } // switch
323 handle_unusual:
324 if ((tag == 0) || ((tag & 7) == 4)) {
325 CHK_(ptr);
326 ctx->SetLastTag(tag);
327 goto message_done;
328 }
329 ptr = UnknownFieldParse(
330 tag,
331 _internal_metadata_.mutable_unknown_fields<std::string>(),
332 ptr, ctx);
333 CHK_(ptr != nullptr);
334 } // while
335 message_done:
336 _impl_._has_bits_.Or(has_bits);
337 return ptr;
338 failure:
339 ptr = nullptr;
340 goto message_done;
341 #undef CHK_
342 }
343
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const344 ::uint8_t* TestExtensionChild::_InternalSerialize(
345 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
346 // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.TestExtensionChild)
347 ::uint32_t cached_has_bits = 0;
348 (void) cached_has_bits;
349
350 cached_has_bits = _impl_._has_bits_[0];
351 // optional string child_field_for_testing = 1;
352 if (cached_has_bits & 0x00000001u) {
353 target = stream->WriteStringMaybeAliased(
354 1, this->_internal_child_field_for_testing(), target);
355 }
356
357 // repeated .perfetto.protos.DebugAnnotation debug_annotations = 99;
358 for (unsigned i = 0,
359 n = static_cast<unsigned>(this->_internal_debug_annotations_size()); i < n; i++) {
360 const auto& repfield = this->_internal_debug_annotations(i);
361 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
362 InternalWriteMessage(99, repfield, repfield.GetCachedSize(), target, stream);
363 }
364
365 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
366 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
367 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
368 }
369 // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.TestExtensionChild)
370 return target;
371 }
372
ByteSizeLong() const373 size_t TestExtensionChild::ByteSizeLong() const {
374 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.TestExtensionChild)
375 size_t total_size = 0;
376
377 ::uint32_t cached_has_bits = 0;
378 // Prevent compiler warnings about cached_has_bits being unused
379 (void) cached_has_bits;
380
381 // repeated .perfetto.protos.DebugAnnotation debug_annotations = 99;
382 total_size += 2UL * this->_internal_debug_annotations_size();
383 for (const auto& msg : this->_impl_.debug_annotations_) {
384 total_size +=
385 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
386 }
387
388 // optional string child_field_for_testing = 1;
389 cached_has_bits = _impl_._has_bits_[0];
390 if (cached_has_bits & 0x00000001u) {
391 total_size += 1 +
392 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
393 this->_internal_child_field_for_testing());
394 }
395
396 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
397 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
398 }
399 int cached_size = ::_pbi::ToCachedSize(total_size);
400 SetCachedSize(cached_size);
401 return total_size;
402 }
403
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)404 void TestExtensionChild::CheckTypeAndMergeFrom(
405 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
406 MergeFrom(*::_pbi::DownCast<const TestExtensionChild*>(
407 &from));
408 }
409
MergeFrom(const TestExtensionChild & from)410 void TestExtensionChild::MergeFrom(const TestExtensionChild& from) {
411 TestExtensionChild* const _this = this;
412 // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.TestExtensionChild)
413 GOOGLE_DCHECK_NE(&from, _this);
414 ::uint32_t cached_has_bits = 0;
415 (void) cached_has_bits;
416
417 _this->_impl_.debug_annotations_.MergeFrom(from._impl_.debug_annotations_);
418 if (from._internal_has_child_field_for_testing()) {
419 _this->_internal_set_child_field_for_testing(from._internal_child_field_for_testing());
420 }
421 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
422 }
423
CopyFrom(const TestExtensionChild & from)424 void TestExtensionChild::CopyFrom(const TestExtensionChild& from) {
425 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.TestExtensionChild)
426 if (&from == this) return;
427 Clear();
428 MergeFrom(from);
429 }
430
IsInitialized() const431 bool TestExtensionChild::IsInitialized() const {
432 return true;
433 }
434
InternalSwap(TestExtensionChild * other)435 void TestExtensionChild::InternalSwap(TestExtensionChild* other) {
436 using std::swap;
437 auto* lhs_arena = GetArenaForAllocation();
438 auto* rhs_arena = other->GetArenaForAllocation();
439 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
440 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
441 _impl_.debug_annotations_.InternalSwap(&other->_impl_.debug_annotations_);
442 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
443 &_impl_.child_field_for_testing_, lhs_arena,
444 &other->_impl_.child_field_for_testing_, rhs_arena
445 );
446 }
447
GetTypeName() const448 std::string TestExtensionChild::GetTypeName() const {
449 return "perfetto.protos.TestExtensionChild";
450 }
451
452 const std::string TestExtension_string_extension_for_testing_default("");
453 #if !defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)
454 const int TestExtension::kStringExtensionForTestingFieldNumber;
455 #endif
456 PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::perfetto::protos::TrackEvent,
457 ::PROTOBUF_NAMESPACE_ID::internal::StringTypeTraits, 9, false>
458 TestExtension::string_extension_for_testing(kStringExtensionForTestingFieldNumber, TestExtension_string_extension_for_testing_default, nullptr);
459 const std::string TestExtension_string_extension_for_testing2_default("");
460 #if !defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)
461 const int TestExtension::kStringExtensionForTesting2FieldNumber;
462 #endif
463 PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::perfetto::protos::TrackEvent,
464 ::PROTOBUF_NAMESPACE_ID::internal::StringTypeTraits, 9, false>
465 TestExtension::string_extension_for_testing2(kStringExtensionForTesting2FieldNumber, TestExtension_string_extension_for_testing2_default, nullptr);
466 #if !defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)
467 const int TestExtension::kIntExtensionForTestingFieldNumber;
468 #endif
469 PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::perfetto::protos::TrackEvent,
470 ::PROTOBUF_NAMESPACE_ID::internal::RepeatedPrimitiveTypeTraits< ::int32_t >, 5, false>
471 TestExtension::int_extension_for_testing(kIntExtensionForTestingFieldNumber, 0, nullptr);
472 const std::string TestExtension_omitted_extension_for_testing_default("");
473 #if !defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)
474 const int TestExtension::kOmittedExtensionForTestingFieldNumber;
475 #endif
476 PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::perfetto::protos::TrackEvent,
477 ::PROTOBUF_NAMESPACE_ID::internal::StringTypeTraits, 9, false>
478 TestExtension::omitted_extension_for_testing(kOmittedExtensionForTestingFieldNumber, TestExtension_omitted_extension_for_testing_default, nullptr);
479 #if !defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)
480 const int TestExtension::kNestedMessageExtensionForTestingFieldNumber;
481 #endif
482 PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::perfetto::protos::TrackEvent,
483 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::perfetto::protos::TestExtensionChild >, 11, false>
484 TestExtension::nested_message_extension_for_testing(kNestedMessageExtensionForTestingFieldNumber, ::perfetto::protos::TestExtensionChild::default_instance(), nullptr);
485 #if !defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)
486 const int TestExtension::kUintExtensionForTestingFieldNumber;
487 #endif
488 PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::perfetto::protos::TrackEvent,
489 ::PROTOBUF_NAMESPACE_ID::internal::PrimitiveTypeTraits< ::uint32_t >, 13, false>
490 TestExtension::uint_extension_for_testing(kUintExtensionForTestingFieldNumber, 0u, nullptr);
491
492 // @@protoc_insertion_point(namespace_scope)
493 } // namespace protos
494 } // namespace perfetto
495 PROTOBUF_NAMESPACE_OPEN
496 template<> PROTOBUF_NOINLINE ::perfetto::protos::TestExtension*
CreateMaybeMessage(Arena * arena)497 Arena::CreateMaybeMessage< ::perfetto::protos::TestExtension >(Arena* arena) {
498 return Arena::CreateMessageInternal< ::perfetto::protos::TestExtension >(arena);
499 }
500 template<> PROTOBUF_NOINLINE ::perfetto::protos::TestExtensionChild*
CreateMaybeMessage(Arena * arena)501 Arena::CreateMaybeMessage< ::perfetto::protos::TestExtensionChild >(Arena* arena) {
502 return Arena::CreateMessageInternal< ::perfetto::protos::TestExtensionChild >(arena);
503 }
504 PROTOBUF_NAMESPACE_CLOSE
505
506 // @@protoc_insertion_point(global_scope)
507 #include <google/protobuf/port_undef.inc>
508