1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: protos/perfetto/config/system_info/system_info.proto
3 
4 #include "protos/perfetto/config/system_info/system_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 {
SystemInfoConfig(::_pbi::ConstantInitialized)23 PROTOBUF_CONSTEXPR SystemInfoConfig::SystemInfoConfig(
24     ::_pbi::ConstantInitialized): _impl_{
25     /*decltype(_impl_._cached_size_)*/{}} {}
26 struct SystemInfoConfigDefaultTypeInternal {
SystemInfoConfigDefaultTypeInternalperfetto::protos::SystemInfoConfigDefaultTypeInternal27   PROTOBUF_CONSTEXPR SystemInfoConfigDefaultTypeInternal()
28       : _instance(::_pbi::ConstantInitialized{}) {}
~SystemInfoConfigDefaultTypeInternalperfetto::protos::SystemInfoConfigDefaultTypeInternal29   ~SystemInfoConfigDefaultTypeInternal() {}
30   union {  // NOLINT(misc-non-private-member-variables-in-classes)
31     SystemInfoConfig _instance;
32   };
33 };
34 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SystemInfoConfigDefaultTypeInternal _SystemInfoConfig_default_instance_;
35 }  // namespace protos
36 }  // namespace perfetto
37 namespace perfetto {
38 namespace protos {
39 
40 // ===================================================================
41 
42 class SystemInfoConfig::_Internal {
43  public:
44 };
45 
SystemInfoConfig(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)46 SystemInfoConfig::SystemInfoConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena,
47                          bool is_message_owned)
48   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
49   SharedCtor(arena, is_message_owned);
50   // @@protoc_insertion_point(arena_constructor:perfetto.protos.SystemInfoConfig)
51 }
SystemInfoConfig(const SystemInfoConfig & from)52 SystemInfoConfig::SystemInfoConfig(const SystemInfoConfig& from)
53   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
54   SystemInfoConfig* const _this = this; (void)_this;
55   new (&_impl_) Impl_{
56       /*decltype(_impl_._cached_size_)*/{}};
57 
58   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
59   // @@protoc_insertion_point(copy_constructor:perfetto.protos.SystemInfoConfig)
60 }
61 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)62 inline void SystemInfoConfig::SharedCtor(
63     ::_pb::Arena* arena, bool is_message_owned) {
64   (void)arena;
65   (void)is_message_owned;
66   new (&_impl_) Impl_{
67       /*decltype(_impl_._cached_size_)*/{}
68   };
69 }
70 
~SystemInfoConfig()71 SystemInfoConfig::~SystemInfoConfig() {
72   // @@protoc_insertion_point(destructor:perfetto.protos.SystemInfoConfig)
73   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
74   (void)arena;
75     return;
76   }
77   SharedDtor();
78 }
79 
SharedDtor()80 inline void SystemInfoConfig::SharedDtor() {
81   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
82 }
83 
SetCachedSize(int size) const84 void SystemInfoConfig::SetCachedSize(int size) const {
85   _impl_._cached_size_.Set(size);
86 }
87 
Clear()88 void SystemInfoConfig::Clear() {
89 // @@protoc_insertion_point(message_clear_start:perfetto.protos.SystemInfoConfig)
90   ::uint32_t cached_has_bits = 0;
91   // Prevent compiler warnings about cached_has_bits being unused
92   (void) cached_has_bits;
93 
94   _internal_metadata_.Clear<std::string>();
95 }
96 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)97 const char* SystemInfoConfig::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
98 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
99   while (!ctx->Done(&ptr)) {
100     ::uint32_t tag;
101     ptr = ::_pbi::ReadTag(ptr, &tag);
102     if ((tag == 0) || ((tag & 7) == 4)) {
103       CHK_(ptr);
104       ctx->SetLastTag(tag);
105       goto message_done;
106     }
107     ptr = UnknownFieldParse(
108         tag,
109         _internal_metadata_.mutable_unknown_fields<std::string>(),
110         ptr, ctx);
111     CHK_(ptr != nullptr);
112   }  // while
113 message_done:
114   return ptr;
115 failure:
116   ptr = nullptr;
117   goto message_done;
118 #undef CHK_
119 }
120 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const121 ::uint8_t* SystemInfoConfig::_InternalSerialize(
122     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
123   // @@protoc_insertion_point(serialize_to_array_start:perfetto.protos.SystemInfoConfig)
124   ::uint32_t cached_has_bits = 0;
125   (void) cached_has_bits;
126 
127   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
128     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
129         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
130   }
131   // @@protoc_insertion_point(serialize_to_array_end:perfetto.protos.SystemInfoConfig)
132   return target;
133 }
134 
ByteSizeLong() const135 size_t SystemInfoConfig::ByteSizeLong() const {
136 // @@protoc_insertion_point(message_byte_size_start:perfetto.protos.SystemInfoConfig)
137   size_t total_size = 0;
138 
139   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
140     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
141   }
142   int cached_size = ::_pbi::ToCachedSize(total_size);
143   SetCachedSize(cached_size);
144   return total_size;
145 }
146 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)147 void SystemInfoConfig::CheckTypeAndMergeFrom(
148     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
149   MergeFrom(*::_pbi::DownCast<const SystemInfoConfig*>(
150       &from));
151 }
152 
MergeFrom(const SystemInfoConfig & from)153 void SystemInfoConfig::MergeFrom(const SystemInfoConfig& from) {
154   SystemInfoConfig* const _this = this;
155   // @@protoc_insertion_point(class_specific_merge_from_start:perfetto.protos.SystemInfoConfig)
156   GOOGLE_DCHECK_NE(&from, _this);
157   ::uint32_t cached_has_bits = 0;
158   (void) cached_has_bits;
159 
160   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
161 }
162 
CopyFrom(const SystemInfoConfig & from)163 void SystemInfoConfig::CopyFrom(const SystemInfoConfig& from) {
164 // @@protoc_insertion_point(class_specific_copy_from_start:perfetto.protos.SystemInfoConfig)
165   if (&from == this) return;
166   Clear();
167   MergeFrom(from);
168 }
169 
IsInitialized() const170 bool SystemInfoConfig::IsInitialized() const {
171   return true;
172 }
173 
InternalSwap(SystemInfoConfig * other)174 void SystemInfoConfig::InternalSwap(SystemInfoConfig* other) {
175   using std::swap;
176   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
177 }
178 
GetTypeName() const179 std::string SystemInfoConfig::GetTypeName() const {
180   return "perfetto.protos.SystemInfoConfig";
181 }
182 
183 
184 // @@protoc_insertion_point(namespace_scope)
185 }  // namespace protos
186 }  // namespace perfetto
187 PROTOBUF_NAMESPACE_OPEN
188 template<> PROTOBUF_NOINLINE ::perfetto::protos::SystemInfoConfig*
CreateMaybeMessage(Arena * arena)189 Arena::CreateMaybeMessage< ::perfetto::protos::SystemInfoConfig >(Arena* arena) {
190   return Arena::CreateMessageInternal< ::perfetto::protos::SystemInfoConfig >(arena);
191 }
192 PROTOBUF_NAMESPACE_CLOSE
193 
194 // @@protoc_insertion_point(global_scope)
195 #include <google/protobuf/port_undef.inc>
196