1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: protos/perfetto/trace/track_event/chrome_mojo_event_info.proto
3 
4 #include "protos/perfetto/trace/track_event/chrome_mojo_event_info.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 {
ChromeMojoEventInfo(::_pbi::ConstantInitialized)23 PROTOBUF_CONSTEXPR ChromeMojoEventInfo::ChromeMojoEventInfo(
24     ::_pbi::ConstantInitialized): _impl_{
25     /*decltype(_impl_._has_bits_)*/{}
26   , /*decltype(_impl_._cached_size_)*/{}
27   , /*decltype(_impl_.watcher_notify_interface_tag_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
28   , /*decltype(_impl_.mojo_interface_tag_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
29   , /*decltype(_impl_.ipc_hash_)*/0u
30   , /*decltype(_impl_.is_reply_)*/false
31   , /*decltype(_impl_.mojo_interface_method_iid_)*/::uint64_t{0u}
32   , /*decltype(_impl_.payload_size_)*/::uint64_t{0u}
33   , /*decltype(_impl_.data_num_bytes_)*/::uint64_t{0u}} {}
34 struct ChromeMojoEventInfoDefaultTypeInternal {
ChromeMojoEventInfoDefaultTypeInternalperfetto::protos::ChromeMojoEventInfoDefaultTypeInternal35   PROTOBUF_CONSTEXPR ChromeMojoEventInfoDefaultTypeInternal()
36       : _instance(::_pbi::ConstantInitialized{}) {}
~ChromeMojoEventInfoDefaultTypeInternalperfetto::protos::ChromeMojoEventInfoDefaultTypeInternal37   ~ChromeMojoEventInfoDefaultTypeInternal() {}
38   union {  // NOLINT(misc-non-private-member-variables-in-classes)
39     ChromeMojoEventInfo _instance;
40   };
41 };
42 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChromeMojoEventInfoDefaultTypeInternal _ChromeMojoEventInfo_default_instance_;
43 }  // namespace protos
44 }  // namespace perfetto
45 namespace perfetto {
46 namespace protos {
47 
48 // ===================================================================
49 
50 class ChromeMojoEventInfo::_Internal {
51  public:
52   using HasBits = decltype(std::declval<ChromeMojoEventInfo>()._impl_._has_bits_);
set_has_watcher_notify_interface_tag(HasBits * has_bits)53   static void set_has_watcher_notify_interface_tag(HasBits* has_bits) {
54     (*has_bits)[0] |= 1u;
55   }
set_has_ipc_hash(HasBits * has_bits)56   static void set_has_ipc_hash(HasBits* has_bits) {
57     (*has_bits)[0] |= 4u;
58   }
set_has_mojo_interface_tag(HasBits * has_bits)59   static void set_has_mojo_interface_tag(HasBits* has_bits) {
60     (*has_bits)[0] |= 2u;
61   }
set_has_mojo_interface_method_iid(HasBits * has_bits)62   static void set_has_mojo_interface_method_iid(HasBits* has_bits) {
63     (*has_bits)[0] |= 16u;
64   }
set_has_is_reply(HasBits * has_bits)65   static void set_has_is_reply(HasBits* has_bits) {
66     (*has_bits)[0] |= 8u;
67   }
set_has_payload_size(HasBits * has_bits)68   static void set_has_payload_size(HasBits* has_bits) {
69     (*has_bits)[0] |= 32u;
70   }
set_has_data_num_bytes(HasBits * has_bits)71   static void set_has_data_num_bytes(HasBits* has_bits) {
72     (*has_bits)[0] |= 64u;
73   }
74 };
75 
ChromeMojoEventInfo(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)76 ChromeMojoEventInfo::ChromeMojoEventInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena,
77                          bool is_message_owned)
78   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
79   SharedCtor(arena, is_message_owned);
80   // @@protoc_insertion_point(arena_constructor:perfetto.protos.ChromeMojoEventInfo)
81 }
ChromeMojoEventInfo(const ChromeMojoEventInfo & from)82 ChromeMojoEventInfo::ChromeMojoEventInfo(const ChromeMojoEventInfo& from)
83   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
84   ChromeMojoEventInfo* const _this = this; (void)_this;
85   new (&_impl_) Impl_{
86       decltype(_impl_._has_bits_){from._impl_._has_bits_}
87     , /*decltype(_impl_._cached_size_)*/{}
88     , decltype(_impl_.watcher_notify_interface_tag_){}
89     , decltype(_impl_.mojo_interface_tag_){}
90     , decltype(_impl_.ipc_hash_){}
91     , decltype(_impl_.is_reply_){}
92     , decltype(_impl_.mojo_interface_method_iid_){}
93     , decltype(_impl_.payload_size_){}
94     , decltype(_impl_.data_num_bytes_){}};
95 
96   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
97   _impl_.watcher_notify_interface_tag_.InitDefault();
98   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
99     _impl_.watcher_notify_interface_tag_.Set("", GetArenaForAllocation());
100   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
101   if (from._internal_has_watcher_notify_interface_tag()) {
102     _this->_impl_.watcher_notify_interface_tag_.Set(from._internal_watcher_notify_interface_tag(),
103       _this->GetArenaForAllocation());
104   }
105   _impl_.mojo_interface_tag_.InitDefault();
106   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
107     _impl_.mojo_interface_tag_.Set("", GetArenaForAllocation());
108   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
109   if (from._internal_has_mojo_interface_tag()) {
110     _this->_impl_.mojo_interface_tag_.Set(from._internal_mojo_interface_tag(),
111       _this->GetArenaForAllocation());
112   }
113   ::memcpy(&_impl_.ipc_hash_, &from._impl_.ipc_hash_,
114     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.data_num_bytes_) -
115     reinterpret_cast<char*>(&_impl_.ipc_hash_)) + sizeof(_impl_.data_num_bytes_));
116   // @@protoc_insertion_point(copy_constructor:perfetto.protos.ChromeMojoEventInfo)
117 }
118 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)119 inline void ChromeMojoEventInfo::SharedCtor(
120     ::_pb::Arena* arena, bool is_message_owned) {
121   (void)arena;
122   (void)is_message_owned;
123   new (&_impl_) Impl_{
124       decltype(_impl_._has_bits_){}
125     , /*decltype(_impl_._cached_size_)*/{}
126     , decltype(_impl_.watcher_notify_interface_tag_){}
127     , decltype(_impl_.mojo_interface_tag_){}
128     , decltype(_impl_.ipc_hash_){0u}
129     , decltype(_impl_.is_reply_){false}
130     , decltype(_impl_.mojo_interface_method_iid_){::uint64_t{0u}}
131     , decltype(_impl_.payload_size_){::uint64_t{0u}}
132     , decltype(_impl_.data_num_bytes_){::uint64_t{0u}}
133   };
134   _impl_.watcher_notify_interface_tag_.InitDefault();
135   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
136     _impl_.watcher_notify_interface_tag_.Set("", GetArenaForAllocation());
137   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
138   _impl_.mojo_interface_tag_.InitDefault();
139   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
140     _impl_.mojo_interface_tag_.Set("", GetArenaForAllocation());
141   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
142 }
143 
~ChromeMojoEventInfo()144 ChromeMojoEventInfo::~ChromeMojoEventInfo() {
145   // @@protoc_insertion_point(destructor:perfetto.protos.ChromeMojoEventInfo)
146   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
147   (void)arena;
148     return;
149   }
150   SharedDtor();
151 }
152 
SharedDtor()153 inline void ChromeMojoEventInfo::SharedDtor() {
154   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
155   _impl_.watcher_notify_interface_tag_.Destroy();
156   _impl_.mojo_interface_tag_.Destroy();
157 }
158 
SetCachedSize(int size) const159 void ChromeMojoEventInfo::SetCachedSize(int size) const {
160   _impl_._cached_size_.Set(size);
161 }
162 
Clear()163 void ChromeMojoEventInfo::Clear() {
164 // @@protoc_insertion_point(message_clear_start:perfetto.protos.ChromeMojoEventInfo)
165   ::uint32_t cached_has_bits = 0;
166   // Prevent compiler warnings about cached_has_bits being unused
167   (void) cached_has_bits;
168 
169   cached_has_bits = _impl_._has_bits_[0];
170   if (cached_has_bits & 0x00000003u) {
171     if (cached_has_bits & 0x00000001u) {
172       _impl_.watcher_notify_interface_tag_.ClearNonDefaultToEmpty();
173     }
174     if (cached_has_bits & 0x00000002u) {
175       _impl_.mojo_interface_tag_.ClearNonDefaultToEmpty();
176     }
177   }
178   if (cached_has_bits & 0x0000007cu) {
179     ::memset(&_impl_.ipc_hash_, 0, static_cast<size_t>(
180         reinterpret_cast<char*>(&_impl_.data_num_bytes_) -
181         reinterpret_cast<char*>(&_impl_.ipc_hash_)) + sizeof(_impl_.data_num_bytes_));
182   }
183   _impl_._has_bits_.Clear();
184   _internal_metadata_.Clear<std::string>();
185 }
186 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)187 const char* ChromeMojoEventInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
188 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
189   _Internal::HasBits has_bits{};
190   while (!ctx->Done(&ptr)) {
191     ::uint32_t tag;
192     ptr = ::_pbi::ReadTag(ptr, &tag);
193     switch (tag >> 3) {
194       // optional string watcher_notify_interface_tag = 1;
195       case 1:
196         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
197           auto str = _internal_mutable_watcher_notify_interface_tag();
198           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
199           CHK_(ptr);
200         } else {
201           goto handle_unusual;
202         }
203         continue;
204       // optional uint32 ipc_hash = 2;
205       case 2:
206         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
207           _Internal::set_has_ipc_hash(&has_bits);
208           _impl_.ipc_hash_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
209           CHK_(ptr);
210         } else {
211           goto handle_unusual;
212         }
213         continue;
214       // optional string mojo_interface_tag = 3;
215       case 3:
216         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
217           auto str = _internal_mutable_mojo_interface_tag();
218           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
219           CHK_(ptr);
220         } else {
221           goto handle_unusual;
222         }
223         continue;
224       // optional uint64 mojo_interface_method_iid = 4;
225       case 4:
226         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
227           _Internal::set_has_mojo_interface_method_iid(&has_bits);
228           _impl_.mojo_interface_method_iid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
229           CHK_(ptr);
230         } else {
231           goto handle_unusual;
232         }
233         continue;
234       // optional bool is_reply = 5;
235       case 5:
236         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) {
237           _Internal::set_has_is_reply(&has_bits);
238           _impl_.is_reply_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
239           CHK_(ptr);
240         } else {
241           goto handle_unusual;
242         }
243         continue;
244       // optional uint64 payload_size = 6;
245       case 6:
246         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 48)) {
247           _Internal::set_has_payload_size(&has_bits);
248           _impl_.payload_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
249           CHK_(ptr);
250         } else {
251           goto handle_unusual;
252         }
253         continue;
254       // optional uint64 data_num_bytes = 7;
255       case 7:
256         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 56)) {
257           _Internal::set_has_data_num_bytes(&has_bits);
258           _impl_.data_num_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
259           CHK_(ptr);
260         } else {
261           goto handle_unusual;
262         }
263         continue;
264       default:
265         goto handle_unusual;
266     }  // switch
267   handle_unusual:
268     if ((tag == 0) || ((tag & 7) == 4)) {
269       CHK_(ptr);
270       ctx->SetLastTag(tag);
271       goto message_done;
272     }
273     ptr = UnknownFieldParse(
274         tag,
275         _internal_metadata_.mutable_unknown_fields<std::string>(),
276         ptr, ctx);
277     CHK_(ptr != nullptr);
278   }  // while
279 message_done:
280   _impl_._has_bits_.Or(has_bits);
281   return ptr;
282 failure:
283   ptr = nullptr;
284   goto message_done;
285 #undef CHK_
286 }
287 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const288 ::uint8_t* ChromeMojoEventInfo::_InternalSerialize(
289     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
290   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.ChromeMojoEventInfo)
291   ::uint32_t cached_has_bits = 0;
292   (void) cached_has_bits;
293 
294   cached_has_bits = _impl_._has_bits_[0];
295   // optional string watcher_notify_interface_tag = 1;
296   if (cached_has_bits & 0x00000001u) {
297     target = stream->WriteStringMaybeAliased(
298         1, this->_internal_watcher_notify_interface_tag(), target);
299   }
300 
301   // optional uint32 ipc_hash = 2;
302   if (cached_has_bits & 0x00000004u) {
303     target = stream->EnsureSpace(target);
304     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_ipc_hash(), target);
305   }
306 
307   // optional string mojo_interface_tag = 3;
308   if (cached_has_bits & 0x00000002u) {
309     target = stream->WriteStringMaybeAliased(
310         3, this->_internal_mojo_interface_tag(), target);
311   }
312 
313   // optional uint64 mojo_interface_method_iid = 4;
314   if (cached_has_bits & 0x00000010u) {
315     target = stream->EnsureSpace(target);
316     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_mojo_interface_method_iid(), target);
317   }
318 
319   // optional bool is_reply = 5;
320   if (cached_has_bits & 0x00000008u) {
321     target = stream->EnsureSpace(target);
322     target = ::_pbi::WireFormatLite::WriteBoolToArray(5, this->_internal_is_reply(), target);
323   }
324 
325   // optional uint64 payload_size = 6;
326   if (cached_has_bits & 0x00000020u) {
327     target = stream->EnsureSpace(target);
328     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(6, this->_internal_payload_size(), target);
329   }
330 
331   // optional uint64 data_num_bytes = 7;
332   if (cached_has_bits & 0x00000040u) {
333     target = stream->EnsureSpace(target);
334     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(7, this->_internal_data_num_bytes(), target);
335   }
336 
337   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
338     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
339         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
340   }
341   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.ChromeMojoEventInfo)
342   return target;
343 }
344 
ByteSizeLong() const345 size_t ChromeMojoEventInfo::ByteSizeLong() const {
346 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.ChromeMojoEventInfo)
347   size_t total_size = 0;
348 
349   ::uint32_t cached_has_bits = 0;
350   // Prevent compiler warnings about cached_has_bits being unused
351   (void) cached_has_bits;
352 
353   cached_has_bits = _impl_._has_bits_[0];
354   if (cached_has_bits & 0x0000007fu) {
355     // optional string watcher_notify_interface_tag = 1;
356     if (cached_has_bits & 0x00000001u) {
357       total_size += 1 +
358         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
359           this->_internal_watcher_notify_interface_tag());
360     }
361 
362     // optional string mojo_interface_tag = 3;
363     if (cached_has_bits & 0x00000002u) {
364       total_size += 1 +
365         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
366           this->_internal_mojo_interface_tag());
367     }
368 
369     // optional uint32 ipc_hash = 2;
370     if (cached_has_bits & 0x00000004u) {
371       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_ipc_hash());
372     }
373 
374     // optional bool is_reply = 5;
375     if (cached_has_bits & 0x00000008u) {
376       total_size += 1 + 1;
377     }
378 
379     // optional uint64 mojo_interface_method_iid = 4;
380     if (cached_has_bits & 0x00000010u) {
381       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_mojo_interface_method_iid());
382     }
383 
384     // optional uint64 payload_size = 6;
385     if (cached_has_bits & 0x00000020u) {
386       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_payload_size());
387     }
388 
389     // optional uint64 data_num_bytes = 7;
390     if (cached_has_bits & 0x00000040u) {
391       total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_data_num_bytes());
392     }
393 
394   }
395   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
396     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
397   }
398   int cached_size = ::_pbi::ToCachedSize(total_size);
399   SetCachedSize(cached_size);
400   return total_size;
401 }
402 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)403 void ChromeMojoEventInfo::CheckTypeAndMergeFrom(
404     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
405   MergeFrom(*::_pbi::DownCast<const ChromeMojoEventInfo*>(
406       &from));
407 }
408 
MergeFrom(const ChromeMojoEventInfo & from)409 void ChromeMojoEventInfo::MergeFrom(const ChromeMojoEventInfo& from) {
410   ChromeMojoEventInfo* const _this = this;
411   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.ChromeMojoEventInfo)
412   GOOGLE_DCHECK_NE(&from, _this);
413   ::uint32_t cached_has_bits = 0;
414   (void) cached_has_bits;
415 
416   cached_has_bits = from._impl_._has_bits_[0];
417   if (cached_has_bits & 0x0000007fu) {
418     if (cached_has_bits & 0x00000001u) {
419       _this->_internal_set_watcher_notify_interface_tag(from._internal_watcher_notify_interface_tag());
420     }
421     if (cached_has_bits & 0x00000002u) {
422       _this->_internal_set_mojo_interface_tag(from._internal_mojo_interface_tag());
423     }
424     if (cached_has_bits & 0x00000004u) {
425       _this->_impl_.ipc_hash_ = from._impl_.ipc_hash_;
426     }
427     if (cached_has_bits & 0x00000008u) {
428       _this->_impl_.is_reply_ = from._impl_.is_reply_;
429     }
430     if (cached_has_bits & 0x00000010u) {
431       _this->_impl_.mojo_interface_method_iid_ = from._impl_.mojo_interface_method_iid_;
432     }
433     if (cached_has_bits & 0x00000020u) {
434       _this->_impl_.payload_size_ = from._impl_.payload_size_;
435     }
436     if (cached_has_bits & 0x00000040u) {
437       _this->_impl_.data_num_bytes_ = from._impl_.data_num_bytes_;
438     }
439     _this->_impl_._has_bits_[0] |= cached_has_bits;
440   }
441   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
442 }
443 
CopyFrom(const ChromeMojoEventInfo & from)444 void ChromeMojoEventInfo::CopyFrom(const ChromeMojoEventInfo& from) {
445 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.ChromeMojoEventInfo)
446   if (&from == this) return;
447   Clear();
448   MergeFrom(from);
449 }
450 
IsInitialized() const451 bool ChromeMojoEventInfo::IsInitialized() const {
452   return true;
453 }
454 
InternalSwap(ChromeMojoEventInfo * other)455 void ChromeMojoEventInfo::InternalSwap(ChromeMojoEventInfo* other) {
456   using std::swap;
457   auto* lhs_arena = GetArenaForAllocation();
458   auto* rhs_arena = other->GetArenaForAllocation();
459   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
460   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
461   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
462       &_impl_.watcher_notify_interface_tag_, lhs_arena,
463       &other->_impl_.watcher_notify_interface_tag_, rhs_arena
464   );
465   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
466       &_impl_.mojo_interface_tag_, lhs_arena,
467       &other->_impl_.mojo_interface_tag_, rhs_arena
468   );
469   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
470       PROTOBUF_FIELD_OFFSET(ChromeMojoEventInfo, _impl_.data_num_bytes_)
471       + sizeof(ChromeMojoEventInfo::_impl_.data_num_bytes_)  // NOLINT
472       - PROTOBUF_FIELD_OFFSET(ChromeMojoEventInfo, _impl_.ipc_hash_)>(
473           reinterpret_cast<char*>(&_impl_.ipc_hash_),
474           reinterpret_cast<char*>(&other->_impl_.ipc_hash_));
475 }
476 
GetTypeName() const477 std::string ChromeMojoEventInfo::GetTypeName() const {
478   return "perfetto.protos.ChromeMojoEventInfo";
479 }
480 
481 
482 // @@protoc_insertion_point(namespace_scope)
483 }  // namespace protos
484 }  // namespace perfetto
485 PROTOBUF_NAMESPACE_OPEN
486 template<> PROTOBUF_NOINLINE ::perfetto::protos::ChromeMojoEventInfo*
CreateMaybeMessage(Arena * arena)487 Arena::CreateMaybeMessage< ::perfetto::protos::ChromeMojoEventInfo >(Arena* arena) {
488   return Arena::CreateMessageInternal< ::perfetto::protos::ChromeMojoEventInfo >(arena);
489 }
490 PROTOBUF_NAMESPACE_CLOSE
491 
492 // @@protoc_insertion_point(global_scope)
493 #include <google/protobuf/port_undef.inc>
494