1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: frameworks/base/cmds/am/proto/instrumentation_data.proto
3
4 #include "frameworks/base/cmds/am/proto/instrumentation_data.pb.h"
5
6 #include <algorithm>
7 #include <cstdint>
8
9 #include <google/protobuf/io/coded_stream.h>
10 #include <google/protobuf/extension_set.h>
11 #include <google/protobuf/wire_format_lite.h>
12 #include <google/protobuf/descriptor.h>
13 #include <google/protobuf/generated_message_reflection.h>
14 #include <google/protobuf/reflection_ops.h>
15 #include <google/protobuf/wire_format.h>
16 // @@protoc_insertion_point(includes)
17 #include <google/protobuf/port_def.inc>
18
19 PROTOBUF_PRAGMA_INIT_SEG
20
21 namespace _pb = ::PROTOBUF_NAMESPACE_ID;
22 namespace _pbi = _pb::internal;
23
24 namespace android {
25 namespace am {
ResultsBundleEntry(::_pbi::ConstantInitialized)26 PROTOBUF_CONSTEXPR ResultsBundleEntry::ResultsBundleEntry(
27 ::_pbi::ConstantInitialized): _impl_{
28 /*decltype(_impl_._has_bits_)*/{}
29 , /*decltype(_impl_._cached_size_)*/{}
30 , /*decltype(_impl_.key_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
31 , /*decltype(_impl_.value_string_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
32 , /*decltype(_impl_.value_bytes_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
33 , /*decltype(_impl_.value_bundle_)*/nullptr
34 , /*decltype(_impl_.value_int_)*/0
35 , /*decltype(_impl_.value_float_)*/0
36 , /*decltype(_impl_.value_double_)*/0
37 , /*decltype(_impl_.value_long_)*/::int64_t{0}} {}
38 struct ResultsBundleEntryDefaultTypeInternal {
ResultsBundleEntryDefaultTypeInternalandroid::am::ResultsBundleEntryDefaultTypeInternal39 PROTOBUF_CONSTEXPR ResultsBundleEntryDefaultTypeInternal()
40 : _instance(::_pbi::ConstantInitialized{}) {}
~ResultsBundleEntryDefaultTypeInternalandroid::am::ResultsBundleEntryDefaultTypeInternal41 ~ResultsBundleEntryDefaultTypeInternal() {}
42 union { // NOLINT(misc-non-private-member-variables-in-classes)
43 ResultsBundleEntry _instance;
44 };
45 };
46 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResultsBundleEntryDefaultTypeInternal _ResultsBundleEntry_default_instance_;
ResultsBundle(::_pbi::ConstantInitialized)47 PROTOBUF_CONSTEXPR ResultsBundle::ResultsBundle(
48 ::_pbi::ConstantInitialized): _impl_{
49 /*decltype(_impl_.entries_)*/{}
50 , /*decltype(_impl_._cached_size_)*/{}} {}
51 struct ResultsBundleDefaultTypeInternal {
ResultsBundleDefaultTypeInternalandroid::am::ResultsBundleDefaultTypeInternal52 PROTOBUF_CONSTEXPR ResultsBundleDefaultTypeInternal()
53 : _instance(::_pbi::ConstantInitialized{}) {}
~ResultsBundleDefaultTypeInternalandroid::am::ResultsBundleDefaultTypeInternal54 ~ResultsBundleDefaultTypeInternal() {}
55 union { // NOLINT(misc-non-private-member-variables-in-classes)
56 ResultsBundle _instance;
57 };
58 };
59 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResultsBundleDefaultTypeInternal _ResultsBundle_default_instance_;
TestStatus(::_pbi::ConstantInitialized)60 PROTOBUF_CONSTEXPR TestStatus::TestStatus(
61 ::_pbi::ConstantInitialized): _impl_{
62 /*decltype(_impl_._has_bits_)*/{}
63 , /*decltype(_impl_._cached_size_)*/{}
64 , /*decltype(_impl_.logcat_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
65 , /*decltype(_impl_.results_)*/nullptr
66 , /*decltype(_impl_.result_code_)*/0} {}
67 struct TestStatusDefaultTypeInternal {
TestStatusDefaultTypeInternalandroid::am::TestStatusDefaultTypeInternal68 PROTOBUF_CONSTEXPR TestStatusDefaultTypeInternal()
69 : _instance(::_pbi::ConstantInitialized{}) {}
~TestStatusDefaultTypeInternalandroid::am::TestStatusDefaultTypeInternal70 ~TestStatusDefaultTypeInternal() {}
71 union { // NOLINT(misc-non-private-member-variables-in-classes)
72 TestStatus _instance;
73 };
74 };
75 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TestStatusDefaultTypeInternal _TestStatus_default_instance_;
SessionStatus(::_pbi::ConstantInitialized)76 PROTOBUF_CONSTEXPR SessionStatus::SessionStatus(
77 ::_pbi::ConstantInitialized): _impl_{
78 /*decltype(_impl_._has_bits_)*/{}
79 , /*decltype(_impl_._cached_size_)*/{}
80 , /*decltype(_impl_.error_text_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
81 , /*decltype(_impl_.results_)*/nullptr
82 , /*decltype(_impl_.status_code_)*/0
83 , /*decltype(_impl_.result_code_)*/0} {}
84 struct SessionStatusDefaultTypeInternal {
SessionStatusDefaultTypeInternalandroid::am::SessionStatusDefaultTypeInternal85 PROTOBUF_CONSTEXPR SessionStatusDefaultTypeInternal()
86 : _instance(::_pbi::ConstantInitialized{}) {}
~SessionStatusDefaultTypeInternalandroid::am::SessionStatusDefaultTypeInternal87 ~SessionStatusDefaultTypeInternal() {}
88 union { // NOLINT(misc-non-private-member-variables-in-classes)
89 SessionStatus _instance;
90 };
91 };
92 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SessionStatusDefaultTypeInternal _SessionStatus_default_instance_;
Session(::_pbi::ConstantInitialized)93 PROTOBUF_CONSTEXPR Session::Session(
94 ::_pbi::ConstantInitialized): _impl_{
95 /*decltype(_impl_._has_bits_)*/{}
96 , /*decltype(_impl_._cached_size_)*/{}
97 , /*decltype(_impl_.test_status_)*/{}
98 , /*decltype(_impl_.session_status_)*/nullptr} {}
99 struct SessionDefaultTypeInternal {
SessionDefaultTypeInternalandroid::am::SessionDefaultTypeInternal100 PROTOBUF_CONSTEXPR SessionDefaultTypeInternal()
101 : _instance(::_pbi::ConstantInitialized{}) {}
~SessionDefaultTypeInternalandroid::am::SessionDefaultTypeInternal102 ~SessionDefaultTypeInternal() {}
103 union { // NOLINT(misc-non-private-member-variables-in-classes)
104 Session _instance;
105 };
106 };
107 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SessionDefaultTypeInternal _Session_default_instance_;
108 } // namespace am
109 } // namespace android
110 static ::_pb::Metadata file_level_metadata_frameworks_2fbase_2fcmds_2fam_2fproto_2finstrumentation_5fdata_2eproto[5];
111 static const ::_pb::EnumDescriptor* file_level_enum_descriptors_frameworks_2fbase_2fcmds_2fam_2fproto_2finstrumentation_5fdata_2eproto[1];
112 static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_frameworks_2fbase_2fcmds_2fam_2fproto_2finstrumentation_5fdata_2eproto = nullptr;
113
114 const ::uint32_t TableStruct_frameworks_2fbase_2fcmds_2fam_2fproto_2finstrumentation_5fdata_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
115 PROTOBUF_FIELD_OFFSET(::android::am::ResultsBundleEntry, _impl_._has_bits_),
116 PROTOBUF_FIELD_OFFSET(::android::am::ResultsBundleEntry, _internal_metadata_),
117 ~0u, // no _extensions_
118 ~0u, // no _oneof_case_
119 ~0u, // no _weak_field_map_
120 ~0u, // no _inlined_string_donated_
121 PROTOBUF_FIELD_OFFSET(::android::am::ResultsBundleEntry, _impl_.key_),
122 PROTOBUF_FIELD_OFFSET(::android::am::ResultsBundleEntry, _impl_.value_string_),
123 PROTOBUF_FIELD_OFFSET(::android::am::ResultsBundleEntry, _impl_.value_int_),
124 PROTOBUF_FIELD_OFFSET(::android::am::ResultsBundleEntry, _impl_.value_float_),
125 PROTOBUF_FIELD_OFFSET(::android::am::ResultsBundleEntry, _impl_.value_double_),
126 PROTOBUF_FIELD_OFFSET(::android::am::ResultsBundleEntry, _impl_.value_long_),
127 PROTOBUF_FIELD_OFFSET(::android::am::ResultsBundleEntry, _impl_.value_bundle_),
128 PROTOBUF_FIELD_OFFSET(::android::am::ResultsBundleEntry, _impl_.value_bytes_),
129 0,
130 1,
131 4,
132 5,
133 6,
134 7,
135 3,
136 2,
137 ~0u, // no _has_bits_
138 PROTOBUF_FIELD_OFFSET(::android::am::ResultsBundle, _internal_metadata_),
139 ~0u, // no _extensions_
140 ~0u, // no _oneof_case_
141 ~0u, // no _weak_field_map_
142 ~0u, // no _inlined_string_donated_
143 PROTOBUF_FIELD_OFFSET(::android::am::ResultsBundle, _impl_.entries_),
144 PROTOBUF_FIELD_OFFSET(::android::am::TestStatus, _impl_._has_bits_),
145 PROTOBUF_FIELD_OFFSET(::android::am::TestStatus, _internal_metadata_),
146 ~0u, // no _extensions_
147 ~0u, // no _oneof_case_
148 ~0u, // no _weak_field_map_
149 ~0u, // no _inlined_string_donated_
150 PROTOBUF_FIELD_OFFSET(::android::am::TestStatus, _impl_.result_code_),
151 PROTOBUF_FIELD_OFFSET(::android::am::TestStatus, _impl_.results_),
152 PROTOBUF_FIELD_OFFSET(::android::am::TestStatus, _impl_.logcat_),
153 2,
154 1,
155 0,
156 PROTOBUF_FIELD_OFFSET(::android::am::SessionStatus, _impl_._has_bits_),
157 PROTOBUF_FIELD_OFFSET(::android::am::SessionStatus, _internal_metadata_),
158 ~0u, // no _extensions_
159 ~0u, // no _oneof_case_
160 ~0u, // no _weak_field_map_
161 ~0u, // no _inlined_string_donated_
162 PROTOBUF_FIELD_OFFSET(::android::am::SessionStatus, _impl_.status_code_),
163 PROTOBUF_FIELD_OFFSET(::android::am::SessionStatus, _impl_.error_text_),
164 PROTOBUF_FIELD_OFFSET(::android::am::SessionStatus, _impl_.result_code_),
165 PROTOBUF_FIELD_OFFSET(::android::am::SessionStatus, _impl_.results_),
166 2,
167 0,
168 3,
169 1,
170 PROTOBUF_FIELD_OFFSET(::android::am::Session, _impl_._has_bits_),
171 PROTOBUF_FIELD_OFFSET(::android::am::Session, _internal_metadata_),
172 ~0u, // no _extensions_
173 ~0u, // no _oneof_case_
174 ~0u, // no _weak_field_map_
175 ~0u, // no _inlined_string_donated_
176 PROTOBUF_FIELD_OFFSET(::android::am::Session, _impl_.test_status_),
177 PROTOBUF_FIELD_OFFSET(::android::am::Session, _impl_.session_status_),
178 ~0u,
179 0,
180 };
181 static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
182 { 0, 14, -1, sizeof(::android::am::ResultsBundleEntry)},
183 { 22, -1, -1, sizeof(::android::am::ResultsBundle)},
184 { 29, 38, -1, sizeof(::android::am::TestStatus)},
185 { 41, 51, -1, sizeof(::android::am::SessionStatus)},
186 { 55, 63, -1, sizeof(::android::am::Session)},
187 };
188
189 static const ::_pb::Message* const file_default_instances[] = {
190 &::android::am::_ResultsBundleEntry_default_instance_._instance,
191 &::android::am::_ResultsBundle_default_instance_._instance,
192 &::android::am::_TestStatus_default_instance_._instance,
193 &::android::am::_SessionStatus_default_instance_._instance,
194 &::android::am::_Session_default_instance_._instance,
195 };
196
197 const char descriptor_table_protodef_frameworks_2fbase_2fcmds_2fam_2fproto_2finstrumentation_5fdata_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
198 "\n8frameworks/base/cmds/am/proto/instrume"
199 "ntation_data.proto\022\nandroid.am\"\317\001\n\022Resul"
200 "tsBundleEntry\022\013\n\003key\030\001 \001(\t\022\024\n\014value_stri"
201 "ng\030\002 \001(\t\022\021\n\tvalue_int\030\003 \001(\021\022\023\n\013value_flo"
202 "at\030\004 \001(\002\022\024\n\014value_double\030\005 \001(\001\022\022\n\nvalue_"
203 "long\030\006 \001(\022\022/\n\014value_bundle\030\007 \001(\0132\031.andro"
204 "id.am.ResultsBundle\022\023\n\013value_bytes\030\010 \001(\014"
205 "\"@\n\rResultsBundle\022/\n\007entries\030\001 \003(\0132\036.and"
206 "roid.am.ResultsBundleEntry\"]\n\nTestStatus"
207 "\022\023\n\013result_code\030\003 \001(\021\022*\n\007results\030\004 \001(\0132\031"
208 ".android.am.ResultsBundle\022\016\n\006logcat\030\005 \001("
209 "\t\"\230\001\n\rSessionStatus\0222\n\013status_code\030\001 \001(\016"
210 "2\035.android.am.SessionStatusCode\022\022\n\nerror"
211 "_text\030\002 \001(\t\022\023\n\013result_code\030\003 \001(\021\022*\n\007resu"
212 "lts\030\004 \001(\0132\031.android.am.ResultsBundle\"i\n\007"
213 "Session\022+\n\013test_status\030\001 \003(\0132\026.android.a"
214 "m.TestStatus\0221\n\016session_status\030\002 \001(\0132\031.a"
215 "ndroid.am.SessionStatus*>\n\021SessionStatus"
216 "Code\022\024\n\020SESSION_FINISHED\020\000\022\023\n\017SESSION_AB"
217 "ORTED\020\001B\031\n\027com.android.commands.am"
218 ;
219 static ::_pbi::once_flag descriptor_table_frameworks_2fbase_2fcmds_2fam_2fproto_2finstrumentation_5fdata_2eproto_once;
220 const ::_pbi::DescriptorTable descriptor_table_frameworks_2fbase_2fcmds_2fam_2fproto_2finstrumentation_5fdata_2eproto = {
221 false, false, 794, descriptor_table_protodef_frameworks_2fbase_2fcmds_2fam_2fproto_2finstrumentation_5fdata_2eproto,
222 "frameworks/base/cmds/am/proto/instrumentation_data.proto",
223 &descriptor_table_frameworks_2fbase_2fcmds_2fam_2fproto_2finstrumentation_5fdata_2eproto_once, nullptr, 0, 5,
224 schemas, file_default_instances, TableStruct_frameworks_2fbase_2fcmds_2fam_2fproto_2finstrumentation_5fdata_2eproto::offsets,
225 file_level_metadata_frameworks_2fbase_2fcmds_2fam_2fproto_2finstrumentation_5fdata_2eproto, file_level_enum_descriptors_frameworks_2fbase_2fcmds_2fam_2fproto_2finstrumentation_5fdata_2eproto,
226 file_level_service_descriptors_frameworks_2fbase_2fcmds_2fam_2fproto_2finstrumentation_5fdata_2eproto,
227 };
descriptor_table_frameworks_2fbase_2fcmds_2fam_2fproto_2finstrumentation_5fdata_2eproto_getter()228 PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_frameworks_2fbase_2fcmds_2fam_2fproto_2finstrumentation_5fdata_2eproto_getter() {
229 return &descriptor_table_frameworks_2fbase_2fcmds_2fam_2fproto_2finstrumentation_5fdata_2eproto;
230 }
231
232 // Force running AddDescriptors() at dynamic initialization time.
233 PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_frameworks_2fbase_2fcmds_2fam_2fproto_2finstrumentation_5fdata_2eproto(&descriptor_table_frameworks_2fbase_2fcmds_2fam_2fproto_2finstrumentation_5fdata_2eproto);
234 namespace android {
235 namespace am {
SessionStatusCode_descriptor()236 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SessionStatusCode_descriptor() {
237 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_frameworks_2fbase_2fcmds_2fam_2fproto_2finstrumentation_5fdata_2eproto);
238 return file_level_enum_descriptors_frameworks_2fbase_2fcmds_2fam_2fproto_2finstrumentation_5fdata_2eproto[0];
239 }
SessionStatusCode_IsValid(int value)240 bool SessionStatusCode_IsValid(int value) {
241 switch (value) {
242 case 0:
243 case 1:
244 return true;
245 default:
246 return false;
247 }
248 }
249
250
251 // ===================================================================
252
253 class ResultsBundleEntry::_Internal {
254 public:
255 using HasBits = decltype(std::declval<ResultsBundleEntry>()._impl_._has_bits_);
set_has_key(HasBits * has_bits)256 static void set_has_key(HasBits* has_bits) {
257 (*has_bits)[0] |= 1u;
258 }
set_has_value_string(HasBits * has_bits)259 static void set_has_value_string(HasBits* has_bits) {
260 (*has_bits)[0] |= 2u;
261 }
set_has_value_int(HasBits * has_bits)262 static void set_has_value_int(HasBits* has_bits) {
263 (*has_bits)[0] |= 16u;
264 }
set_has_value_float(HasBits * has_bits)265 static void set_has_value_float(HasBits* has_bits) {
266 (*has_bits)[0] |= 32u;
267 }
set_has_value_double(HasBits * has_bits)268 static void set_has_value_double(HasBits* has_bits) {
269 (*has_bits)[0] |= 64u;
270 }
set_has_value_long(HasBits * has_bits)271 static void set_has_value_long(HasBits* has_bits) {
272 (*has_bits)[0] |= 128u;
273 }
274 static const ::android::am::ResultsBundle& value_bundle(const ResultsBundleEntry* msg);
set_has_value_bundle(HasBits * has_bits)275 static void set_has_value_bundle(HasBits* has_bits) {
276 (*has_bits)[0] |= 8u;
277 }
set_has_value_bytes(HasBits * has_bits)278 static void set_has_value_bytes(HasBits* has_bits) {
279 (*has_bits)[0] |= 4u;
280 }
281 };
282
283 const ::android::am::ResultsBundle&
value_bundle(const ResultsBundleEntry * msg)284 ResultsBundleEntry::_Internal::value_bundle(const ResultsBundleEntry* msg) {
285 return *msg->_impl_.value_bundle_;
286 }
ResultsBundleEntry(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)287 ResultsBundleEntry::ResultsBundleEntry(::PROTOBUF_NAMESPACE_ID::Arena* arena,
288 bool is_message_owned)
289 : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
290 SharedCtor(arena, is_message_owned);
291 // @@protoc_insertion_point(arena_constructor:android.am.ResultsBundleEntry)
292 }
ResultsBundleEntry(const ResultsBundleEntry & from)293 ResultsBundleEntry::ResultsBundleEntry(const ResultsBundleEntry& from)
294 : ::PROTOBUF_NAMESPACE_ID::Message() {
295 ResultsBundleEntry* const _this = this; (void)_this;
296 new (&_impl_) Impl_{
297 decltype(_impl_._has_bits_){from._impl_._has_bits_}
298 , /*decltype(_impl_._cached_size_)*/{}
299 , decltype(_impl_.key_){}
300 , decltype(_impl_.value_string_){}
301 , decltype(_impl_.value_bytes_){}
302 , decltype(_impl_.value_bundle_){nullptr}
303 , decltype(_impl_.value_int_){}
304 , decltype(_impl_.value_float_){}
305 , decltype(_impl_.value_double_){}
306 , decltype(_impl_.value_long_){}};
307
308 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
309 _impl_.key_.InitDefault();
310 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
311 _impl_.key_.Set("", GetArenaForAllocation());
312 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
313 if (from._internal_has_key()) {
314 _this->_impl_.key_.Set(from._internal_key(),
315 _this->GetArenaForAllocation());
316 }
317 _impl_.value_string_.InitDefault();
318 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
319 _impl_.value_string_.Set("", GetArenaForAllocation());
320 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
321 if (from._internal_has_value_string()) {
322 _this->_impl_.value_string_.Set(from._internal_value_string(),
323 _this->GetArenaForAllocation());
324 }
325 _impl_.value_bytes_.InitDefault();
326 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
327 _impl_.value_bytes_.Set("", GetArenaForAllocation());
328 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
329 if (from._internal_has_value_bytes()) {
330 _this->_impl_.value_bytes_.Set(from._internal_value_bytes(),
331 _this->GetArenaForAllocation());
332 }
333 if (from._internal_has_value_bundle()) {
334 _this->_impl_.value_bundle_ = new ::android::am::ResultsBundle(*from._impl_.value_bundle_);
335 }
336 ::memcpy(&_impl_.value_int_, &from._impl_.value_int_,
337 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.value_long_) -
338 reinterpret_cast<char*>(&_impl_.value_int_)) + sizeof(_impl_.value_long_));
339 // @@protoc_insertion_point(copy_constructor:android.am.ResultsBundleEntry)
340 }
341
SharedCtor(::_pb::Arena * arena,bool is_message_owned)342 inline void ResultsBundleEntry::SharedCtor(
343 ::_pb::Arena* arena, bool is_message_owned) {
344 (void)arena;
345 (void)is_message_owned;
346 new (&_impl_) Impl_{
347 decltype(_impl_._has_bits_){}
348 , /*decltype(_impl_._cached_size_)*/{}
349 , decltype(_impl_.key_){}
350 , decltype(_impl_.value_string_){}
351 , decltype(_impl_.value_bytes_){}
352 , decltype(_impl_.value_bundle_){nullptr}
353 , decltype(_impl_.value_int_){0}
354 , decltype(_impl_.value_float_){0}
355 , decltype(_impl_.value_double_){0}
356 , decltype(_impl_.value_long_){::int64_t{0}}
357 };
358 _impl_.key_.InitDefault();
359 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
360 _impl_.key_.Set("", GetArenaForAllocation());
361 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
362 _impl_.value_string_.InitDefault();
363 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
364 _impl_.value_string_.Set("", GetArenaForAllocation());
365 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
366 _impl_.value_bytes_.InitDefault();
367 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
368 _impl_.value_bytes_.Set("", GetArenaForAllocation());
369 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
370 }
371
~ResultsBundleEntry()372 ResultsBundleEntry::~ResultsBundleEntry() {
373 // @@protoc_insertion_point(destructor:android.am.ResultsBundleEntry)
374 if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
375 (void)arena;
376 return;
377 }
378 SharedDtor();
379 }
380
SharedDtor()381 inline void ResultsBundleEntry::SharedDtor() {
382 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
383 _impl_.key_.Destroy();
384 _impl_.value_string_.Destroy();
385 _impl_.value_bytes_.Destroy();
386 if (this != internal_default_instance()) delete _impl_.value_bundle_;
387 }
388
SetCachedSize(int size) const389 void ResultsBundleEntry::SetCachedSize(int size) const {
390 _impl_._cached_size_.Set(size);
391 }
392
Clear()393 void ResultsBundleEntry::Clear() {
394 // @@protoc_insertion_point(message_clear_start:android.am.ResultsBundleEntry)
395 ::uint32_t cached_has_bits = 0;
396 // Prevent compiler warnings about cached_has_bits being unused
397 (void) cached_has_bits;
398
399 cached_has_bits = _impl_._has_bits_[0];
400 if (cached_has_bits & 0x0000000fu) {
401 if (cached_has_bits & 0x00000001u) {
402 _impl_.key_.ClearNonDefaultToEmpty();
403 }
404 if (cached_has_bits & 0x00000002u) {
405 _impl_.value_string_.ClearNonDefaultToEmpty();
406 }
407 if (cached_has_bits & 0x00000004u) {
408 _impl_.value_bytes_.ClearNonDefaultToEmpty();
409 }
410 if (cached_has_bits & 0x00000008u) {
411 GOOGLE_DCHECK(_impl_.value_bundle_ != nullptr);
412 _impl_.value_bundle_->Clear();
413 }
414 }
415 if (cached_has_bits & 0x000000f0u) {
416 ::memset(&_impl_.value_int_, 0, static_cast<size_t>(
417 reinterpret_cast<char*>(&_impl_.value_long_) -
418 reinterpret_cast<char*>(&_impl_.value_int_)) + sizeof(_impl_.value_long_));
419 }
420 _impl_._has_bits_.Clear();
421 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
422 }
423
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)424 const char* ResultsBundleEntry::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
425 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
426 _Internal::HasBits has_bits{};
427 while (!ctx->Done(&ptr)) {
428 ::uint32_t tag;
429 ptr = ::_pbi::ReadTag(ptr, &tag);
430 switch (tag >> 3) {
431 // optional string key = 1;
432 case 1:
433 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
434 auto str = _internal_mutable_key();
435 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
436 CHK_(ptr);
437 #ifndef NDEBUG
438 ::_pbi::VerifyUTF8(str, "android.am.ResultsBundleEntry.key");
439 #endif // !NDEBUG
440 } else {
441 goto handle_unusual;
442 }
443 continue;
444 // optional string value_string = 2;
445 case 2:
446 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
447 auto str = _internal_mutable_value_string();
448 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
449 CHK_(ptr);
450 #ifndef NDEBUG
451 ::_pbi::VerifyUTF8(str, "android.am.ResultsBundleEntry.value_string");
452 #endif // !NDEBUG
453 } else {
454 goto handle_unusual;
455 }
456 continue;
457 // optional sint32 value_int = 3;
458 case 3:
459 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
460 _Internal::set_has_value_int(&has_bits);
461 _impl_.value_int_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarintZigZag32(&ptr);
462 CHK_(ptr);
463 } else {
464 goto handle_unusual;
465 }
466 continue;
467 // optional float value_float = 4;
468 case 4:
469 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 37)) {
470 _Internal::set_has_value_float(&has_bits);
471 _impl_.value_float_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
472 ptr += sizeof(float);
473 } else {
474 goto handle_unusual;
475 }
476 continue;
477 // optional double value_double = 5;
478 case 5:
479 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 41)) {
480 _Internal::set_has_value_double(&has_bits);
481 _impl_.value_double_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
482 ptr += sizeof(double);
483 } else {
484 goto handle_unusual;
485 }
486 continue;
487 // optional sint64 value_long = 6;
488 case 6:
489 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 48)) {
490 _Internal::set_has_value_long(&has_bits);
491 _impl_.value_long_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarintZigZag64(&ptr);
492 CHK_(ptr);
493 } else {
494 goto handle_unusual;
495 }
496 continue;
497 // optional .android.am.ResultsBundle value_bundle = 7;
498 case 7:
499 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) {
500 ptr = ctx->ParseMessage(_internal_mutable_value_bundle(), ptr);
501 CHK_(ptr);
502 } else {
503 goto handle_unusual;
504 }
505 continue;
506 // optional bytes value_bytes = 8;
507 case 8:
508 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 66)) {
509 auto str = _internal_mutable_value_bytes();
510 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
511 CHK_(ptr);
512 } else {
513 goto handle_unusual;
514 }
515 continue;
516 default:
517 goto handle_unusual;
518 } // switch
519 handle_unusual:
520 if ((tag == 0) || ((tag & 7) == 4)) {
521 CHK_(ptr);
522 ctx->SetLastTag(tag);
523 goto message_done;
524 }
525 ptr = UnknownFieldParse(
526 tag,
527 _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
528 ptr, ctx);
529 CHK_(ptr != nullptr);
530 } // while
531 message_done:
532 _impl_._has_bits_.Or(has_bits);
533 return ptr;
534 failure:
535 ptr = nullptr;
536 goto message_done;
537 #undef CHK_
538 }
539
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const540 ::uint8_t* ResultsBundleEntry::_InternalSerialize(
541 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
542 // @@protoc_insertion_point(serialize_to_array_start:android.am.ResultsBundleEntry)
543 ::uint32_t cached_has_bits = 0;
544 (void) cached_has_bits;
545
546 cached_has_bits = _impl_._has_bits_[0];
547 // optional string key = 1;
548 if (cached_has_bits & 0x00000001u) {
549 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
550 this->_internal_key().data(), static_cast<int>(this->_internal_key().length()),
551 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
552 "android.am.ResultsBundleEntry.key");
553 target = stream->WriteStringMaybeAliased(
554 1, this->_internal_key(), target);
555 }
556
557 // optional string value_string = 2;
558 if (cached_has_bits & 0x00000002u) {
559 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
560 this->_internal_value_string().data(), static_cast<int>(this->_internal_value_string().length()),
561 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
562 "android.am.ResultsBundleEntry.value_string");
563 target = stream->WriteStringMaybeAliased(
564 2, this->_internal_value_string(), target);
565 }
566
567 // optional sint32 value_int = 3;
568 if (cached_has_bits & 0x00000010u) {
569 target = stream->EnsureSpace(target);
570 target = ::_pbi::WireFormatLite::WriteSInt32ToArray(3, this->_internal_value_int(), target);
571 }
572
573 // optional float value_float = 4;
574 if (cached_has_bits & 0x00000020u) {
575 target = stream->EnsureSpace(target);
576 target = ::_pbi::WireFormatLite::WriteFloatToArray(4, this->_internal_value_float(), target);
577 }
578
579 // optional double value_double = 5;
580 if (cached_has_bits & 0x00000040u) {
581 target = stream->EnsureSpace(target);
582 target = ::_pbi::WireFormatLite::WriteDoubleToArray(5, this->_internal_value_double(), target);
583 }
584
585 // optional sint64 value_long = 6;
586 if (cached_has_bits & 0x00000080u) {
587 target = stream->EnsureSpace(target);
588 target = ::_pbi::WireFormatLite::WriteSInt64ToArray(6, this->_internal_value_long(), target);
589 }
590
591 // optional .android.am.ResultsBundle value_bundle = 7;
592 if (cached_has_bits & 0x00000008u) {
593 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
594 InternalWriteMessage(7, _Internal::value_bundle(this),
595 _Internal::value_bundle(this).GetCachedSize(), target, stream);
596 }
597
598 // optional bytes value_bytes = 8;
599 if (cached_has_bits & 0x00000004u) {
600 target = stream->WriteBytesMaybeAliased(
601 8, this->_internal_value_bytes(), target);
602 }
603
604 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
605 target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
606 _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
607 }
608 // @@protoc_insertion_point(serialize_to_array_end:android.am.ResultsBundleEntry)
609 return target;
610 }
611
ByteSizeLong() const612 size_t ResultsBundleEntry::ByteSizeLong() const {
613 // @@protoc_insertion_point(message_byte_size_start:android.am.ResultsBundleEntry)
614 size_t total_size = 0;
615
616 ::uint32_t cached_has_bits = 0;
617 // Prevent compiler warnings about cached_has_bits being unused
618 (void) cached_has_bits;
619
620 cached_has_bits = _impl_._has_bits_[0];
621 if (cached_has_bits & 0x000000ffu) {
622 // optional string key = 1;
623 if (cached_has_bits & 0x00000001u) {
624 total_size += 1 +
625 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
626 this->_internal_key());
627 }
628
629 // optional string value_string = 2;
630 if (cached_has_bits & 0x00000002u) {
631 total_size += 1 +
632 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
633 this->_internal_value_string());
634 }
635
636 // optional bytes value_bytes = 8;
637 if (cached_has_bits & 0x00000004u) {
638 total_size += 1 +
639 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
640 this->_internal_value_bytes());
641 }
642
643 // optional .android.am.ResultsBundle value_bundle = 7;
644 if (cached_has_bits & 0x00000008u) {
645 total_size += 1 +
646 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
647 *_impl_.value_bundle_);
648 }
649
650 // optional sint32 value_int = 3;
651 if (cached_has_bits & 0x00000010u) {
652 total_size += ::_pbi::WireFormatLite::SInt32SizePlusOne(this->_internal_value_int());
653 }
654
655 // optional float value_float = 4;
656 if (cached_has_bits & 0x00000020u) {
657 total_size += 1 + 4;
658 }
659
660 // optional double value_double = 5;
661 if (cached_has_bits & 0x00000040u) {
662 total_size += 1 + 8;
663 }
664
665 // optional sint64 value_long = 6;
666 if (cached_has_bits & 0x00000080u) {
667 total_size += ::_pbi::WireFormatLite::SInt64SizePlusOne(this->_internal_value_long());
668 }
669
670 }
671 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
672 }
673
674 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ResultsBundleEntry::_class_data_ = {
675 ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
676 ResultsBundleEntry::MergeImpl
677 };
GetClassData() const678 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ResultsBundleEntry::GetClassData() const { return &_class_data_; }
679
680
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)681 void ResultsBundleEntry::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
682 auto* const _this = static_cast<ResultsBundleEntry*>(&to_msg);
683 auto& from = static_cast<const ResultsBundleEntry&>(from_msg);
684 // @@protoc_insertion_point(class_specific_merge_from_start:android.am.ResultsBundleEntry)
685 GOOGLE_DCHECK_NE(&from, _this);
686 ::uint32_t cached_has_bits = 0;
687 (void) cached_has_bits;
688
689 cached_has_bits = from._impl_._has_bits_[0];
690 if (cached_has_bits & 0x000000ffu) {
691 if (cached_has_bits & 0x00000001u) {
692 _this->_internal_set_key(from._internal_key());
693 }
694 if (cached_has_bits & 0x00000002u) {
695 _this->_internal_set_value_string(from._internal_value_string());
696 }
697 if (cached_has_bits & 0x00000004u) {
698 _this->_internal_set_value_bytes(from._internal_value_bytes());
699 }
700 if (cached_has_bits & 0x00000008u) {
701 _this->_internal_mutable_value_bundle()->::android::am::ResultsBundle::MergeFrom(
702 from._internal_value_bundle());
703 }
704 if (cached_has_bits & 0x00000010u) {
705 _this->_impl_.value_int_ = from._impl_.value_int_;
706 }
707 if (cached_has_bits & 0x00000020u) {
708 _this->_impl_.value_float_ = from._impl_.value_float_;
709 }
710 if (cached_has_bits & 0x00000040u) {
711 _this->_impl_.value_double_ = from._impl_.value_double_;
712 }
713 if (cached_has_bits & 0x00000080u) {
714 _this->_impl_.value_long_ = from._impl_.value_long_;
715 }
716 _this->_impl_._has_bits_[0] |= cached_has_bits;
717 }
718 _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
719 }
720
CopyFrom(const ResultsBundleEntry & from)721 void ResultsBundleEntry::CopyFrom(const ResultsBundleEntry& from) {
722 // @@protoc_insertion_point(class_specific_copy_from_start:android.am.ResultsBundleEntry)
723 if (&from == this) return;
724 Clear();
725 MergeFrom(from);
726 }
727
IsInitialized() const728 bool ResultsBundleEntry::IsInitialized() const {
729 return true;
730 }
731
InternalSwap(ResultsBundleEntry * other)732 void ResultsBundleEntry::InternalSwap(ResultsBundleEntry* other) {
733 using std::swap;
734 auto* lhs_arena = GetArenaForAllocation();
735 auto* rhs_arena = other->GetArenaForAllocation();
736 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
737 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
738 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
739 &_impl_.key_, lhs_arena,
740 &other->_impl_.key_, rhs_arena
741 );
742 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
743 &_impl_.value_string_, lhs_arena,
744 &other->_impl_.value_string_, rhs_arena
745 );
746 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
747 &_impl_.value_bytes_, lhs_arena,
748 &other->_impl_.value_bytes_, rhs_arena
749 );
750 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
751 PROTOBUF_FIELD_OFFSET(ResultsBundleEntry, _impl_.value_long_)
752 + sizeof(ResultsBundleEntry::_impl_.value_long_) // NOLINT
753 - PROTOBUF_FIELD_OFFSET(ResultsBundleEntry, _impl_.value_bundle_)>(
754 reinterpret_cast<char*>(&_impl_.value_bundle_),
755 reinterpret_cast<char*>(&other->_impl_.value_bundle_));
756 }
757
GetMetadata() const758 ::PROTOBUF_NAMESPACE_ID::Metadata ResultsBundleEntry::GetMetadata() const {
759 return ::_pbi::AssignDescriptors(
760 &descriptor_table_frameworks_2fbase_2fcmds_2fam_2fproto_2finstrumentation_5fdata_2eproto_getter, &descriptor_table_frameworks_2fbase_2fcmds_2fam_2fproto_2finstrumentation_5fdata_2eproto_once,
761 file_level_metadata_frameworks_2fbase_2fcmds_2fam_2fproto_2finstrumentation_5fdata_2eproto[0]);
762 }
763
764 // ===================================================================
765
766 class ResultsBundle::_Internal {
767 public:
768 };
769
ResultsBundle(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)770 ResultsBundle::ResultsBundle(::PROTOBUF_NAMESPACE_ID::Arena* arena,
771 bool is_message_owned)
772 : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
773 SharedCtor(arena, is_message_owned);
774 // @@protoc_insertion_point(arena_constructor:android.am.ResultsBundle)
775 }
ResultsBundle(const ResultsBundle & from)776 ResultsBundle::ResultsBundle(const ResultsBundle& from)
777 : ::PROTOBUF_NAMESPACE_ID::Message() {
778 ResultsBundle* const _this = this; (void)_this;
779 new (&_impl_) Impl_{
780 decltype(_impl_.entries_){from._impl_.entries_}
781 , /*decltype(_impl_._cached_size_)*/{}};
782
783 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
784 // @@protoc_insertion_point(copy_constructor:android.am.ResultsBundle)
785 }
786
SharedCtor(::_pb::Arena * arena,bool is_message_owned)787 inline void ResultsBundle::SharedCtor(
788 ::_pb::Arena* arena, bool is_message_owned) {
789 (void)arena;
790 (void)is_message_owned;
791 new (&_impl_) Impl_{
792 decltype(_impl_.entries_){arena}
793 , /*decltype(_impl_._cached_size_)*/{}
794 };
795 }
796
~ResultsBundle()797 ResultsBundle::~ResultsBundle() {
798 // @@protoc_insertion_point(destructor:android.am.ResultsBundle)
799 if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
800 (void)arena;
801 return;
802 }
803 SharedDtor();
804 }
805
SharedDtor()806 inline void ResultsBundle::SharedDtor() {
807 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
808 _impl_.entries_.~RepeatedPtrField();
809 }
810
SetCachedSize(int size) const811 void ResultsBundle::SetCachedSize(int size) const {
812 _impl_._cached_size_.Set(size);
813 }
814
Clear()815 void ResultsBundle::Clear() {
816 // @@protoc_insertion_point(message_clear_start:android.am.ResultsBundle)
817 ::uint32_t cached_has_bits = 0;
818 // Prevent compiler warnings about cached_has_bits being unused
819 (void) cached_has_bits;
820
821 _impl_.entries_.Clear();
822 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
823 }
824
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)825 const char* ResultsBundle::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
826 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
827 while (!ctx->Done(&ptr)) {
828 ::uint32_t tag;
829 ptr = ::_pbi::ReadTag(ptr, &tag);
830 switch (tag >> 3) {
831 // repeated .android.am.ResultsBundleEntry entries = 1;
832 case 1:
833 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
834 ptr -= 1;
835 do {
836 ptr += 1;
837 ptr = ctx->ParseMessage(_internal_add_entries(), ptr);
838 CHK_(ptr);
839 if (!ctx->DataAvailable(ptr)) break;
840 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
841 } else {
842 goto handle_unusual;
843 }
844 continue;
845 default:
846 goto handle_unusual;
847 } // switch
848 handle_unusual:
849 if ((tag == 0) || ((tag & 7) == 4)) {
850 CHK_(ptr);
851 ctx->SetLastTag(tag);
852 goto message_done;
853 }
854 ptr = UnknownFieldParse(
855 tag,
856 _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
857 ptr, ctx);
858 CHK_(ptr != nullptr);
859 } // while
860 message_done:
861 return ptr;
862 failure:
863 ptr = nullptr;
864 goto message_done;
865 #undef CHK_
866 }
867
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const868 ::uint8_t* ResultsBundle::_InternalSerialize(
869 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
870 // @@protoc_insertion_point(serialize_to_array_start:android.am.ResultsBundle)
871 ::uint32_t cached_has_bits = 0;
872 (void) cached_has_bits;
873
874 // repeated .android.am.ResultsBundleEntry entries = 1;
875 for (unsigned i = 0,
876 n = static_cast<unsigned>(this->_internal_entries_size()); i < n; i++) {
877 const auto& repfield = this->_internal_entries(i);
878 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
879 InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
880 }
881
882 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
883 target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
884 _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
885 }
886 // @@protoc_insertion_point(serialize_to_array_end:android.am.ResultsBundle)
887 return target;
888 }
889
ByteSizeLong() const890 size_t ResultsBundle::ByteSizeLong() const {
891 // @@protoc_insertion_point(message_byte_size_start:android.am.ResultsBundle)
892 size_t total_size = 0;
893
894 ::uint32_t cached_has_bits = 0;
895 // Prevent compiler warnings about cached_has_bits being unused
896 (void) cached_has_bits;
897
898 // repeated .android.am.ResultsBundleEntry entries = 1;
899 total_size += 1UL * this->_internal_entries_size();
900 for (const auto& msg : this->_impl_.entries_) {
901 total_size +=
902 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
903 }
904
905 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
906 }
907
908 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ResultsBundle::_class_data_ = {
909 ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
910 ResultsBundle::MergeImpl
911 };
GetClassData() const912 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ResultsBundle::GetClassData() const { return &_class_data_; }
913
914
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)915 void ResultsBundle::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
916 auto* const _this = static_cast<ResultsBundle*>(&to_msg);
917 auto& from = static_cast<const ResultsBundle&>(from_msg);
918 // @@protoc_insertion_point(class_specific_merge_from_start:android.am.ResultsBundle)
919 GOOGLE_DCHECK_NE(&from, _this);
920 ::uint32_t cached_has_bits = 0;
921 (void) cached_has_bits;
922
923 _this->_impl_.entries_.MergeFrom(from._impl_.entries_);
924 _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
925 }
926
CopyFrom(const ResultsBundle & from)927 void ResultsBundle::CopyFrom(const ResultsBundle& from) {
928 // @@protoc_insertion_point(class_specific_copy_from_start:android.am.ResultsBundle)
929 if (&from == this) return;
930 Clear();
931 MergeFrom(from);
932 }
933
IsInitialized() const934 bool ResultsBundle::IsInitialized() const {
935 return true;
936 }
937
InternalSwap(ResultsBundle * other)938 void ResultsBundle::InternalSwap(ResultsBundle* other) {
939 using std::swap;
940 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
941 _impl_.entries_.InternalSwap(&other->_impl_.entries_);
942 }
943
GetMetadata() const944 ::PROTOBUF_NAMESPACE_ID::Metadata ResultsBundle::GetMetadata() const {
945 return ::_pbi::AssignDescriptors(
946 &descriptor_table_frameworks_2fbase_2fcmds_2fam_2fproto_2finstrumentation_5fdata_2eproto_getter, &descriptor_table_frameworks_2fbase_2fcmds_2fam_2fproto_2finstrumentation_5fdata_2eproto_once,
947 file_level_metadata_frameworks_2fbase_2fcmds_2fam_2fproto_2finstrumentation_5fdata_2eproto[1]);
948 }
949
950 // ===================================================================
951
952 class TestStatus::_Internal {
953 public:
954 using HasBits = decltype(std::declval<TestStatus>()._impl_._has_bits_);
set_has_result_code(HasBits * has_bits)955 static void set_has_result_code(HasBits* has_bits) {
956 (*has_bits)[0] |= 4u;
957 }
958 static const ::android::am::ResultsBundle& results(const TestStatus* msg);
set_has_results(HasBits * has_bits)959 static void set_has_results(HasBits* has_bits) {
960 (*has_bits)[0] |= 2u;
961 }
set_has_logcat(HasBits * has_bits)962 static void set_has_logcat(HasBits* has_bits) {
963 (*has_bits)[0] |= 1u;
964 }
965 };
966
967 const ::android::am::ResultsBundle&
results(const TestStatus * msg)968 TestStatus::_Internal::results(const TestStatus* msg) {
969 return *msg->_impl_.results_;
970 }
TestStatus(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)971 TestStatus::TestStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena,
972 bool is_message_owned)
973 : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
974 SharedCtor(arena, is_message_owned);
975 // @@protoc_insertion_point(arena_constructor:android.am.TestStatus)
976 }
TestStatus(const TestStatus & from)977 TestStatus::TestStatus(const TestStatus& from)
978 : ::PROTOBUF_NAMESPACE_ID::Message() {
979 TestStatus* const _this = this; (void)_this;
980 new (&_impl_) Impl_{
981 decltype(_impl_._has_bits_){from._impl_._has_bits_}
982 , /*decltype(_impl_._cached_size_)*/{}
983 , decltype(_impl_.logcat_){}
984 , decltype(_impl_.results_){nullptr}
985 , decltype(_impl_.result_code_){}};
986
987 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
988 _impl_.logcat_.InitDefault();
989 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
990 _impl_.logcat_.Set("", GetArenaForAllocation());
991 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
992 if (from._internal_has_logcat()) {
993 _this->_impl_.logcat_.Set(from._internal_logcat(),
994 _this->GetArenaForAllocation());
995 }
996 if (from._internal_has_results()) {
997 _this->_impl_.results_ = new ::android::am::ResultsBundle(*from._impl_.results_);
998 }
999 _this->_impl_.result_code_ = from._impl_.result_code_;
1000 // @@protoc_insertion_point(copy_constructor:android.am.TestStatus)
1001 }
1002
SharedCtor(::_pb::Arena * arena,bool is_message_owned)1003 inline void TestStatus::SharedCtor(
1004 ::_pb::Arena* arena, bool is_message_owned) {
1005 (void)arena;
1006 (void)is_message_owned;
1007 new (&_impl_) Impl_{
1008 decltype(_impl_._has_bits_){}
1009 , /*decltype(_impl_._cached_size_)*/{}
1010 , decltype(_impl_.logcat_){}
1011 , decltype(_impl_.results_){nullptr}
1012 , decltype(_impl_.result_code_){0}
1013 };
1014 _impl_.logcat_.InitDefault();
1015 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1016 _impl_.logcat_.Set("", GetArenaForAllocation());
1017 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1018 }
1019
~TestStatus()1020 TestStatus::~TestStatus() {
1021 // @@protoc_insertion_point(destructor:android.am.TestStatus)
1022 if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
1023 (void)arena;
1024 return;
1025 }
1026 SharedDtor();
1027 }
1028
SharedDtor()1029 inline void TestStatus::SharedDtor() {
1030 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
1031 _impl_.logcat_.Destroy();
1032 if (this != internal_default_instance()) delete _impl_.results_;
1033 }
1034
SetCachedSize(int size) const1035 void TestStatus::SetCachedSize(int size) const {
1036 _impl_._cached_size_.Set(size);
1037 }
1038
Clear()1039 void TestStatus::Clear() {
1040 // @@protoc_insertion_point(message_clear_start:android.am.TestStatus)
1041 ::uint32_t cached_has_bits = 0;
1042 // Prevent compiler warnings about cached_has_bits being unused
1043 (void) cached_has_bits;
1044
1045 cached_has_bits = _impl_._has_bits_[0];
1046 if (cached_has_bits & 0x00000003u) {
1047 if (cached_has_bits & 0x00000001u) {
1048 _impl_.logcat_.ClearNonDefaultToEmpty();
1049 }
1050 if (cached_has_bits & 0x00000002u) {
1051 GOOGLE_DCHECK(_impl_.results_ != nullptr);
1052 _impl_.results_->Clear();
1053 }
1054 }
1055 _impl_.result_code_ = 0;
1056 _impl_._has_bits_.Clear();
1057 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1058 }
1059
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)1060 const char* TestStatus::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
1061 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1062 _Internal::HasBits has_bits{};
1063 while (!ctx->Done(&ptr)) {
1064 ::uint32_t tag;
1065 ptr = ::_pbi::ReadTag(ptr, &tag);
1066 switch (tag >> 3) {
1067 // optional sint32 result_code = 3;
1068 case 3:
1069 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
1070 _Internal::set_has_result_code(&has_bits);
1071 _impl_.result_code_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarintZigZag32(&ptr);
1072 CHK_(ptr);
1073 } else {
1074 goto handle_unusual;
1075 }
1076 continue;
1077 // optional .android.am.ResultsBundle results = 4;
1078 case 4:
1079 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
1080 ptr = ctx->ParseMessage(_internal_mutable_results(), ptr);
1081 CHK_(ptr);
1082 } else {
1083 goto handle_unusual;
1084 }
1085 continue;
1086 // optional string logcat = 5;
1087 case 5:
1088 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) {
1089 auto str = _internal_mutable_logcat();
1090 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
1091 CHK_(ptr);
1092 #ifndef NDEBUG
1093 ::_pbi::VerifyUTF8(str, "android.am.TestStatus.logcat");
1094 #endif // !NDEBUG
1095 } else {
1096 goto handle_unusual;
1097 }
1098 continue;
1099 default:
1100 goto handle_unusual;
1101 } // switch
1102 handle_unusual:
1103 if ((tag == 0) || ((tag & 7) == 4)) {
1104 CHK_(ptr);
1105 ctx->SetLastTag(tag);
1106 goto message_done;
1107 }
1108 ptr = UnknownFieldParse(
1109 tag,
1110 _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
1111 ptr, ctx);
1112 CHK_(ptr != nullptr);
1113 } // while
1114 message_done:
1115 _impl_._has_bits_.Or(has_bits);
1116 return ptr;
1117 failure:
1118 ptr = nullptr;
1119 goto message_done;
1120 #undef CHK_
1121 }
1122
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const1123 ::uint8_t* TestStatus::_InternalSerialize(
1124 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1125 // @@protoc_insertion_point(serialize_to_array_start:android.am.TestStatus)
1126 ::uint32_t cached_has_bits = 0;
1127 (void) cached_has_bits;
1128
1129 cached_has_bits = _impl_._has_bits_[0];
1130 // optional sint32 result_code = 3;
1131 if (cached_has_bits & 0x00000004u) {
1132 target = stream->EnsureSpace(target);
1133 target = ::_pbi::WireFormatLite::WriteSInt32ToArray(3, this->_internal_result_code(), target);
1134 }
1135
1136 // optional .android.am.ResultsBundle results = 4;
1137 if (cached_has_bits & 0x00000002u) {
1138 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1139 InternalWriteMessage(4, _Internal::results(this),
1140 _Internal::results(this).GetCachedSize(), target, stream);
1141 }
1142
1143 // optional string logcat = 5;
1144 if (cached_has_bits & 0x00000001u) {
1145 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
1146 this->_internal_logcat().data(), static_cast<int>(this->_internal_logcat().length()),
1147 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
1148 "android.am.TestStatus.logcat");
1149 target = stream->WriteStringMaybeAliased(
1150 5, this->_internal_logcat(), target);
1151 }
1152
1153 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1154 target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1155 _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
1156 }
1157 // @@protoc_insertion_point(serialize_to_array_end:android.am.TestStatus)
1158 return target;
1159 }
1160
ByteSizeLong() const1161 size_t TestStatus::ByteSizeLong() const {
1162 // @@protoc_insertion_point(message_byte_size_start:android.am.TestStatus)
1163 size_t total_size = 0;
1164
1165 ::uint32_t cached_has_bits = 0;
1166 // Prevent compiler warnings about cached_has_bits being unused
1167 (void) cached_has_bits;
1168
1169 cached_has_bits = _impl_._has_bits_[0];
1170 if (cached_has_bits & 0x00000007u) {
1171 // optional string logcat = 5;
1172 if (cached_has_bits & 0x00000001u) {
1173 total_size += 1 +
1174 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1175 this->_internal_logcat());
1176 }
1177
1178 // optional .android.am.ResultsBundle results = 4;
1179 if (cached_has_bits & 0x00000002u) {
1180 total_size += 1 +
1181 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1182 *_impl_.results_);
1183 }
1184
1185 // optional sint32 result_code = 3;
1186 if (cached_has_bits & 0x00000004u) {
1187 total_size += ::_pbi::WireFormatLite::SInt32SizePlusOne(this->_internal_result_code());
1188 }
1189
1190 }
1191 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
1192 }
1193
1194 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TestStatus::_class_data_ = {
1195 ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
1196 TestStatus::MergeImpl
1197 };
GetClassData() const1198 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TestStatus::GetClassData() const { return &_class_data_; }
1199
1200
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)1201 void TestStatus::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
1202 auto* const _this = static_cast<TestStatus*>(&to_msg);
1203 auto& from = static_cast<const TestStatus&>(from_msg);
1204 // @@protoc_insertion_point(class_specific_merge_from_start:android.am.TestStatus)
1205 GOOGLE_DCHECK_NE(&from, _this);
1206 ::uint32_t cached_has_bits = 0;
1207 (void) cached_has_bits;
1208
1209 cached_has_bits = from._impl_._has_bits_[0];
1210 if (cached_has_bits & 0x00000007u) {
1211 if (cached_has_bits & 0x00000001u) {
1212 _this->_internal_set_logcat(from._internal_logcat());
1213 }
1214 if (cached_has_bits & 0x00000002u) {
1215 _this->_internal_mutable_results()->::android::am::ResultsBundle::MergeFrom(
1216 from._internal_results());
1217 }
1218 if (cached_has_bits & 0x00000004u) {
1219 _this->_impl_.result_code_ = from._impl_.result_code_;
1220 }
1221 _this->_impl_._has_bits_[0] |= cached_has_bits;
1222 }
1223 _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1224 }
1225
CopyFrom(const TestStatus & from)1226 void TestStatus::CopyFrom(const TestStatus& from) {
1227 // @@protoc_insertion_point(class_specific_copy_from_start:android.am.TestStatus)
1228 if (&from == this) return;
1229 Clear();
1230 MergeFrom(from);
1231 }
1232
IsInitialized() const1233 bool TestStatus::IsInitialized() const {
1234 return true;
1235 }
1236
InternalSwap(TestStatus * other)1237 void TestStatus::InternalSwap(TestStatus* other) {
1238 using std::swap;
1239 auto* lhs_arena = GetArenaForAllocation();
1240 auto* rhs_arena = other->GetArenaForAllocation();
1241 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1242 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1243 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
1244 &_impl_.logcat_, lhs_arena,
1245 &other->_impl_.logcat_, rhs_arena
1246 );
1247 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
1248 PROTOBUF_FIELD_OFFSET(TestStatus, _impl_.result_code_)
1249 + sizeof(TestStatus::_impl_.result_code_) // NOLINT
1250 - PROTOBUF_FIELD_OFFSET(TestStatus, _impl_.results_)>(
1251 reinterpret_cast<char*>(&_impl_.results_),
1252 reinterpret_cast<char*>(&other->_impl_.results_));
1253 }
1254
GetMetadata() const1255 ::PROTOBUF_NAMESPACE_ID::Metadata TestStatus::GetMetadata() const {
1256 return ::_pbi::AssignDescriptors(
1257 &descriptor_table_frameworks_2fbase_2fcmds_2fam_2fproto_2finstrumentation_5fdata_2eproto_getter, &descriptor_table_frameworks_2fbase_2fcmds_2fam_2fproto_2finstrumentation_5fdata_2eproto_once,
1258 file_level_metadata_frameworks_2fbase_2fcmds_2fam_2fproto_2finstrumentation_5fdata_2eproto[2]);
1259 }
1260
1261 // ===================================================================
1262
1263 class SessionStatus::_Internal {
1264 public:
1265 using HasBits = decltype(std::declval<SessionStatus>()._impl_._has_bits_);
set_has_status_code(HasBits * has_bits)1266 static void set_has_status_code(HasBits* has_bits) {
1267 (*has_bits)[0] |= 4u;
1268 }
set_has_error_text(HasBits * has_bits)1269 static void set_has_error_text(HasBits* has_bits) {
1270 (*has_bits)[0] |= 1u;
1271 }
set_has_result_code(HasBits * has_bits)1272 static void set_has_result_code(HasBits* has_bits) {
1273 (*has_bits)[0] |= 8u;
1274 }
1275 static const ::android::am::ResultsBundle& results(const SessionStatus* msg);
set_has_results(HasBits * has_bits)1276 static void set_has_results(HasBits* has_bits) {
1277 (*has_bits)[0] |= 2u;
1278 }
1279 };
1280
1281 const ::android::am::ResultsBundle&
results(const SessionStatus * msg)1282 SessionStatus::_Internal::results(const SessionStatus* msg) {
1283 return *msg->_impl_.results_;
1284 }
SessionStatus(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)1285 SessionStatus::SessionStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1286 bool is_message_owned)
1287 : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
1288 SharedCtor(arena, is_message_owned);
1289 // @@protoc_insertion_point(arena_constructor:android.am.SessionStatus)
1290 }
SessionStatus(const SessionStatus & from)1291 SessionStatus::SessionStatus(const SessionStatus& from)
1292 : ::PROTOBUF_NAMESPACE_ID::Message() {
1293 SessionStatus* const _this = this; (void)_this;
1294 new (&_impl_) Impl_{
1295 decltype(_impl_._has_bits_){from._impl_._has_bits_}
1296 , /*decltype(_impl_._cached_size_)*/{}
1297 , decltype(_impl_.error_text_){}
1298 , decltype(_impl_.results_){nullptr}
1299 , decltype(_impl_.status_code_){}
1300 , decltype(_impl_.result_code_){}};
1301
1302 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1303 _impl_.error_text_.InitDefault();
1304 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1305 _impl_.error_text_.Set("", GetArenaForAllocation());
1306 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1307 if (from._internal_has_error_text()) {
1308 _this->_impl_.error_text_.Set(from._internal_error_text(),
1309 _this->GetArenaForAllocation());
1310 }
1311 if (from._internal_has_results()) {
1312 _this->_impl_.results_ = new ::android::am::ResultsBundle(*from._impl_.results_);
1313 }
1314 ::memcpy(&_impl_.status_code_, &from._impl_.status_code_,
1315 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.result_code_) -
1316 reinterpret_cast<char*>(&_impl_.status_code_)) + sizeof(_impl_.result_code_));
1317 // @@protoc_insertion_point(copy_constructor:android.am.SessionStatus)
1318 }
1319
SharedCtor(::_pb::Arena * arena,bool is_message_owned)1320 inline void SessionStatus::SharedCtor(
1321 ::_pb::Arena* arena, bool is_message_owned) {
1322 (void)arena;
1323 (void)is_message_owned;
1324 new (&_impl_) Impl_{
1325 decltype(_impl_._has_bits_){}
1326 , /*decltype(_impl_._cached_size_)*/{}
1327 , decltype(_impl_.error_text_){}
1328 , decltype(_impl_.results_){nullptr}
1329 , decltype(_impl_.status_code_){0}
1330 , decltype(_impl_.result_code_){0}
1331 };
1332 _impl_.error_text_.InitDefault();
1333 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1334 _impl_.error_text_.Set("", GetArenaForAllocation());
1335 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1336 }
1337
~SessionStatus()1338 SessionStatus::~SessionStatus() {
1339 // @@protoc_insertion_point(destructor:android.am.SessionStatus)
1340 if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
1341 (void)arena;
1342 return;
1343 }
1344 SharedDtor();
1345 }
1346
SharedDtor()1347 inline void SessionStatus::SharedDtor() {
1348 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
1349 _impl_.error_text_.Destroy();
1350 if (this != internal_default_instance()) delete _impl_.results_;
1351 }
1352
SetCachedSize(int size) const1353 void SessionStatus::SetCachedSize(int size) const {
1354 _impl_._cached_size_.Set(size);
1355 }
1356
Clear()1357 void SessionStatus::Clear() {
1358 // @@protoc_insertion_point(message_clear_start:android.am.SessionStatus)
1359 ::uint32_t cached_has_bits = 0;
1360 // Prevent compiler warnings about cached_has_bits being unused
1361 (void) cached_has_bits;
1362
1363 cached_has_bits = _impl_._has_bits_[0];
1364 if (cached_has_bits & 0x00000003u) {
1365 if (cached_has_bits & 0x00000001u) {
1366 _impl_.error_text_.ClearNonDefaultToEmpty();
1367 }
1368 if (cached_has_bits & 0x00000002u) {
1369 GOOGLE_DCHECK(_impl_.results_ != nullptr);
1370 _impl_.results_->Clear();
1371 }
1372 }
1373 if (cached_has_bits & 0x0000000cu) {
1374 ::memset(&_impl_.status_code_, 0, static_cast<size_t>(
1375 reinterpret_cast<char*>(&_impl_.result_code_) -
1376 reinterpret_cast<char*>(&_impl_.status_code_)) + sizeof(_impl_.result_code_));
1377 }
1378 _impl_._has_bits_.Clear();
1379 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1380 }
1381
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)1382 const char* SessionStatus::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
1383 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1384 _Internal::HasBits has_bits{};
1385 while (!ctx->Done(&ptr)) {
1386 ::uint32_t tag;
1387 ptr = ::_pbi::ReadTag(ptr, &tag);
1388 switch (tag >> 3) {
1389 // optional .android.am.SessionStatusCode status_code = 1;
1390 case 1:
1391 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
1392 ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1393 CHK_(ptr);
1394 if (PROTOBUF_PREDICT_TRUE(::android::am::SessionStatusCode_IsValid(val))) {
1395 _internal_set_status_code(static_cast<::android::am::SessionStatusCode>(val));
1396 } else {
1397 ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields());
1398 }
1399 } else {
1400 goto handle_unusual;
1401 }
1402 continue;
1403 // optional string error_text = 2;
1404 case 2:
1405 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
1406 auto str = _internal_mutable_error_text();
1407 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
1408 CHK_(ptr);
1409 #ifndef NDEBUG
1410 ::_pbi::VerifyUTF8(str, "android.am.SessionStatus.error_text");
1411 #endif // !NDEBUG
1412 } else {
1413 goto handle_unusual;
1414 }
1415 continue;
1416 // optional sint32 result_code = 3;
1417 case 3:
1418 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
1419 _Internal::set_has_result_code(&has_bits);
1420 _impl_.result_code_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarintZigZag32(&ptr);
1421 CHK_(ptr);
1422 } else {
1423 goto handle_unusual;
1424 }
1425 continue;
1426 // optional .android.am.ResultsBundle results = 4;
1427 case 4:
1428 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
1429 ptr = ctx->ParseMessage(_internal_mutable_results(), ptr);
1430 CHK_(ptr);
1431 } else {
1432 goto handle_unusual;
1433 }
1434 continue;
1435 default:
1436 goto handle_unusual;
1437 } // switch
1438 handle_unusual:
1439 if ((tag == 0) || ((tag & 7) == 4)) {
1440 CHK_(ptr);
1441 ctx->SetLastTag(tag);
1442 goto message_done;
1443 }
1444 ptr = UnknownFieldParse(
1445 tag,
1446 _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
1447 ptr, ctx);
1448 CHK_(ptr != nullptr);
1449 } // while
1450 message_done:
1451 _impl_._has_bits_.Or(has_bits);
1452 return ptr;
1453 failure:
1454 ptr = nullptr;
1455 goto message_done;
1456 #undef CHK_
1457 }
1458
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const1459 ::uint8_t* SessionStatus::_InternalSerialize(
1460 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1461 // @@protoc_insertion_point(serialize_to_array_start:android.am.SessionStatus)
1462 ::uint32_t cached_has_bits = 0;
1463 (void) cached_has_bits;
1464
1465 cached_has_bits = _impl_._has_bits_[0];
1466 // optional .android.am.SessionStatusCode status_code = 1;
1467 if (cached_has_bits & 0x00000004u) {
1468 target = stream->EnsureSpace(target);
1469 target = ::_pbi::WireFormatLite::WriteEnumToArray(
1470 1, this->_internal_status_code(), target);
1471 }
1472
1473 // optional string error_text = 2;
1474 if (cached_has_bits & 0x00000001u) {
1475 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
1476 this->_internal_error_text().data(), static_cast<int>(this->_internal_error_text().length()),
1477 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
1478 "android.am.SessionStatus.error_text");
1479 target = stream->WriteStringMaybeAliased(
1480 2, this->_internal_error_text(), target);
1481 }
1482
1483 // optional sint32 result_code = 3;
1484 if (cached_has_bits & 0x00000008u) {
1485 target = stream->EnsureSpace(target);
1486 target = ::_pbi::WireFormatLite::WriteSInt32ToArray(3, this->_internal_result_code(), target);
1487 }
1488
1489 // optional .android.am.ResultsBundle results = 4;
1490 if (cached_has_bits & 0x00000002u) {
1491 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1492 InternalWriteMessage(4, _Internal::results(this),
1493 _Internal::results(this).GetCachedSize(), target, stream);
1494 }
1495
1496 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1497 target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1498 _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
1499 }
1500 // @@protoc_insertion_point(serialize_to_array_end:android.am.SessionStatus)
1501 return target;
1502 }
1503
ByteSizeLong() const1504 size_t SessionStatus::ByteSizeLong() const {
1505 // @@protoc_insertion_point(message_byte_size_start:android.am.SessionStatus)
1506 size_t total_size = 0;
1507
1508 ::uint32_t cached_has_bits = 0;
1509 // Prevent compiler warnings about cached_has_bits being unused
1510 (void) cached_has_bits;
1511
1512 cached_has_bits = _impl_._has_bits_[0];
1513 if (cached_has_bits & 0x0000000fu) {
1514 // optional string error_text = 2;
1515 if (cached_has_bits & 0x00000001u) {
1516 total_size += 1 +
1517 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1518 this->_internal_error_text());
1519 }
1520
1521 // optional .android.am.ResultsBundle results = 4;
1522 if (cached_has_bits & 0x00000002u) {
1523 total_size += 1 +
1524 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1525 *_impl_.results_);
1526 }
1527
1528 // optional .android.am.SessionStatusCode status_code = 1;
1529 if (cached_has_bits & 0x00000004u) {
1530 total_size += 1 +
1531 ::_pbi::WireFormatLite::EnumSize(this->_internal_status_code());
1532 }
1533
1534 // optional sint32 result_code = 3;
1535 if (cached_has_bits & 0x00000008u) {
1536 total_size += ::_pbi::WireFormatLite::SInt32SizePlusOne(this->_internal_result_code());
1537 }
1538
1539 }
1540 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
1541 }
1542
1543 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SessionStatus::_class_data_ = {
1544 ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
1545 SessionStatus::MergeImpl
1546 };
GetClassData() const1547 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SessionStatus::GetClassData() const { return &_class_data_; }
1548
1549
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)1550 void SessionStatus::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
1551 auto* const _this = static_cast<SessionStatus*>(&to_msg);
1552 auto& from = static_cast<const SessionStatus&>(from_msg);
1553 // @@protoc_insertion_point(class_specific_merge_from_start:android.am.SessionStatus)
1554 GOOGLE_DCHECK_NE(&from, _this);
1555 ::uint32_t cached_has_bits = 0;
1556 (void) cached_has_bits;
1557
1558 cached_has_bits = from._impl_._has_bits_[0];
1559 if (cached_has_bits & 0x0000000fu) {
1560 if (cached_has_bits & 0x00000001u) {
1561 _this->_internal_set_error_text(from._internal_error_text());
1562 }
1563 if (cached_has_bits & 0x00000002u) {
1564 _this->_internal_mutable_results()->::android::am::ResultsBundle::MergeFrom(
1565 from._internal_results());
1566 }
1567 if (cached_has_bits & 0x00000004u) {
1568 _this->_impl_.status_code_ = from._impl_.status_code_;
1569 }
1570 if (cached_has_bits & 0x00000008u) {
1571 _this->_impl_.result_code_ = from._impl_.result_code_;
1572 }
1573 _this->_impl_._has_bits_[0] |= cached_has_bits;
1574 }
1575 _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1576 }
1577
CopyFrom(const SessionStatus & from)1578 void SessionStatus::CopyFrom(const SessionStatus& from) {
1579 // @@protoc_insertion_point(class_specific_copy_from_start:android.am.SessionStatus)
1580 if (&from == this) return;
1581 Clear();
1582 MergeFrom(from);
1583 }
1584
IsInitialized() const1585 bool SessionStatus::IsInitialized() const {
1586 return true;
1587 }
1588
InternalSwap(SessionStatus * other)1589 void SessionStatus::InternalSwap(SessionStatus* other) {
1590 using std::swap;
1591 auto* lhs_arena = GetArenaForAllocation();
1592 auto* rhs_arena = other->GetArenaForAllocation();
1593 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1594 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1595 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
1596 &_impl_.error_text_, lhs_arena,
1597 &other->_impl_.error_text_, rhs_arena
1598 );
1599 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
1600 PROTOBUF_FIELD_OFFSET(SessionStatus, _impl_.result_code_)
1601 + sizeof(SessionStatus::_impl_.result_code_) // NOLINT
1602 - PROTOBUF_FIELD_OFFSET(SessionStatus, _impl_.results_)>(
1603 reinterpret_cast<char*>(&_impl_.results_),
1604 reinterpret_cast<char*>(&other->_impl_.results_));
1605 }
1606
GetMetadata() const1607 ::PROTOBUF_NAMESPACE_ID::Metadata SessionStatus::GetMetadata() const {
1608 return ::_pbi::AssignDescriptors(
1609 &descriptor_table_frameworks_2fbase_2fcmds_2fam_2fproto_2finstrumentation_5fdata_2eproto_getter, &descriptor_table_frameworks_2fbase_2fcmds_2fam_2fproto_2finstrumentation_5fdata_2eproto_once,
1610 file_level_metadata_frameworks_2fbase_2fcmds_2fam_2fproto_2finstrumentation_5fdata_2eproto[3]);
1611 }
1612
1613 // ===================================================================
1614
1615 class Session::_Internal {
1616 public:
1617 using HasBits = decltype(std::declval<Session>()._impl_._has_bits_);
1618 static const ::android::am::SessionStatus& session_status(const Session* msg);
set_has_session_status(HasBits * has_bits)1619 static void set_has_session_status(HasBits* has_bits) {
1620 (*has_bits)[0] |= 1u;
1621 }
1622 };
1623
1624 const ::android::am::SessionStatus&
session_status(const Session * msg)1625 Session::_Internal::session_status(const Session* msg) {
1626 return *msg->_impl_.session_status_;
1627 }
Session(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)1628 Session::Session(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1629 bool is_message_owned)
1630 : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
1631 SharedCtor(arena, is_message_owned);
1632 // @@protoc_insertion_point(arena_constructor:android.am.Session)
1633 }
Session(const Session & from)1634 Session::Session(const Session& from)
1635 : ::PROTOBUF_NAMESPACE_ID::Message() {
1636 Session* const _this = this; (void)_this;
1637 new (&_impl_) Impl_{
1638 decltype(_impl_._has_bits_){from._impl_._has_bits_}
1639 , /*decltype(_impl_._cached_size_)*/{}
1640 , decltype(_impl_.test_status_){from._impl_.test_status_}
1641 , decltype(_impl_.session_status_){nullptr}};
1642
1643 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1644 if (from._internal_has_session_status()) {
1645 _this->_impl_.session_status_ = new ::android::am::SessionStatus(*from._impl_.session_status_);
1646 }
1647 // @@protoc_insertion_point(copy_constructor:android.am.Session)
1648 }
1649
SharedCtor(::_pb::Arena * arena,bool is_message_owned)1650 inline void Session::SharedCtor(
1651 ::_pb::Arena* arena, bool is_message_owned) {
1652 (void)arena;
1653 (void)is_message_owned;
1654 new (&_impl_) Impl_{
1655 decltype(_impl_._has_bits_){}
1656 , /*decltype(_impl_._cached_size_)*/{}
1657 , decltype(_impl_.test_status_){arena}
1658 , decltype(_impl_.session_status_){nullptr}
1659 };
1660 }
1661
~Session()1662 Session::~Session() {
1663 // @@protoc_insertion_point(destructor:android.am.Session)
1664 if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
1665 (void)arena;
1666 return;
1667 }
1668 SharedDtor();
1669 }
1670
SharedDtor()1671 inline void Session::SharedDtor() {
1672 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
1673 _impl_.test_status_.~RepeatedPtrField();
1674 if (this != internal_default_instance()) delete _impl_.session_status_;
1675 }
1676
SetCachedSize(int size) const1677 void Session::SetCachedSize(int size) const {
1678 _impl_._cached_size_.Set(size);
1679 }
1680
Clear()1681 void Session::Clear() {
1682 // @@protoc_insertion_point(message_clear_start:android.am.Session)
1683 ::uint32_t cached_has_bits = 0;
1684 // Prevent compiler warnings about cached_has_bits being unused
1685 (void) cached_has_bits;
1686
1687 _impl_.test_status_.Clear();
1688 cached_has_bits = _impl_._has_bits_[0];
1689 if (cached_has_bits & 0x00000001u) {
1690 GOOGLE_DCHECK(_impl_.session_status_ != nullptr);
1691 _impl_.session_status_->Clear();
1692 }
1693 _impl_._has_bits_.Clear();
1694 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1695 }
1696
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)1697 const char* Session::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
1698 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1699 _Internal::HasBits has_bits{};
1700 while (!ctx->Done(&ptr)) {
1701 ::uint32_t tag;
1702 ptr = ::_pbi::ReadTag(ptr, &tag);
1703 switch (tag >> 3) {
1704 // repeated .android.am.TestStatus test_status = 1;
1705 case 1:
1706 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
1707 ptr -= 1;
1708 do {
1709 ptr += 1;
1710 ptr = ctx->ParseMessage(_internal_add_test_status(), ptr);
1711 CHK_(ptr);
1712 if (!ctx->DataAvailable(ptr)) break;
1713 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
1714 } else {
1715 goto handle_unusual;
1716 }
1717 continue;
1718 // optional .android.am.SessionStatus session_status = 2;
1719 case 2:
1720 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
1721 ptr = ctx->ParseMessage(_internal_mutable_session_status(), ptr);
1722 CHK_(ptr);
1723 } else {
1724 goto handle_unusual;
1725 }
1726 continue;
1727 default:
1728 goto handle_unusual;
1729 } // switch
1730 handle_unusual:
1731 if ((tag == 0) || ((tag & 7) == 4)) {
1732 CHK_(ptr);
1733 ctx->SetLastTag(tag);
1734 goto message_done;
1735 }
1736 ptr = UnknownFieldParse(
1737 tag,
1738 _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
1739 ptr, ctx);
1740 CHK_(ptr != nullptr);
1741 } // while
1742 message_done:
1743 _impl_._has_bits_.Or(has_bits);
1744 return ptr;
1745 failure:
1746 ptr = nullptr;
1747 goto message_done;
1748 #undef CHK_
1749 }
1750
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const1751 ::uint8_t* Session::_InternalSerialize(
1752 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1753 // @@protoc_insertion_point(serialize_to_array_start:android.am.Session)
1754 ::uint32_t cached_has_bits = 0;
1755 (void) cached_has_bits;
1756
1757 // repeated .android.am.TestStatus test_status = 1;
1758 for (unsigned i = 0,
1759 n = static_cast<unsigned>(this->_internal_test_status_size()); i < n; i++) {
1760 const auto& repfield = this->_internal_test_status(i);
1761 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1762 InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
1763 }
1764
1765 cached_has_bits = _impl_._has_bits_[0];
1766 // optional .android.am.SessionStatus session_status = 2;
1767 if (cached_has_bits & 0x00000001u) {
1768 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1769 InternalWriteMessage(2, _Internal::session_status(this),
1770 _Internal::session_status(this).GetCachedSize(), target, stream);
1771 }
1772
1773 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1774 target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1775 _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
1776 }
1777 // @@protoc_insertion_point(serialize_to_array_end:android.am.Session)
1778 return target;
1779 }
1780
ByteSizeLong() const1781 size_t Session::ByteSizeLong() const {
1782 // @@protoc_insertion_point(message_byte_size_start:android.am.Session)
1783 size_t total_size = 0;
1784
1785 ::uint32_t cached_has_bits = 0;
1786 // Prevent compiler warnings about cached_has_bits being unused
1787 (void) cached_has_bits;
1788
1789 // repeated .android.am.TestStatus test_status = 1;
1790 total_size += 1UL * this->_internal_test_status_size();
1791 for (const auto& msg : this->_impl_.test_status_) {
1792 total_size +=
1793 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1794 }
1795
1796 // optional .android.am.SessionStatus session_status = 2;
1797 cached_has_bits = _impl_._has_bits_[0];
1798 if (cached_has_bits & 0x00000001u) {
1799 total_size += 1 +
1800 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1801 *_impl_.session_status_);
1802 }
1803
1804 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
1805 }
1806
1807 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Session::_class_data_ = {
1808 ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
1809 Session::MergeImpl
1810 };
GetClassData() const1811 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Session::GetClassData() const { return &_class_data_; }
1812
1813
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)1814 void Session::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
1815 auto* const _this = static_cast<Session*>(&to_msg);
1816 auto& from = static_cast<const Session&>(from_msg);
1817 // @@protoc_insertion_point(class_specific_merge_from_start:android.am.Session)
1818 GOOGLE_DCHECK_NE(&from, _this);
1819 ::uint32_t cached_has_bits = 0;
1820 (void) cached_has_bits;
1821
1822 _this->_impl_.test_status_.MergeFrom(from._impl_.test_status_);
1823 if (from._internal_has_session_status()) {
1824 _this->_internal_mutable_session_status()->::android::am::SessionStatus::MergeFrom(
1825 from._internal_session_status());
1826 }
1827 _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1828 }
1829
CopyFrom(const Session & from)1830 void Session::CopyFrom(const Session& from) {
1831 // @@protoc_insertion_point(class_specific_copy_from_start:android.am.Session)
1832 if (&from == this) return;
1833 Clear();
1834 MergeFrom(from);
1835 }
1836
IsInitialized() const1837 bool Session::IsInitialized() const {
1838 return true;
1839 }
1840
InternalSwap(Session * other)1841 void Session::InternalSwap(Session* other) {
1842 using std::swap;
1843 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1844 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1845 _impl_.test_status_.InternalSwap(&other->_impl_.test_status_);
1846 swap(_impl_.session_status_, other->_impl_.session_status_);
1847 }
1848
GetMetadata() const1849 ::PROTOBUF_NAMESPACE_ID::Metadata Session::GetMetadata() const {
1850 return ::_pbi::AssignDescriptors(
1851 &descriptor_table_frameworks_2fbase_2fcmds_2fam_2fproto_2finstrumentation_5fdata_2eproto_getter, &descriptor_table_frameworks_2fbase_2fcmds_2fam_2fproto_2finstrumentation_5fdata_2eproto_once,
1852 file_level_metadata_frameworks_2fbase_2fcmds_2fam_2fproto_2finstrumentation_5fdata_2eproto[4]);
1853 }
1854
1855 // @@protoc_insertion_point(namespace_scope)
1856 } // namespace am
1857 } // namespace android
1858 PROTOBUF_NAMESPACE_OPEN
1859 template<> PROTOBUF_NOINLINE ::android::am::ResultsBundleEntry*
CreateMaybeMessage(Arena * arena)1860 Arena::CreateMaybeMessage< ::android::am::ResultsBundleEntry >(Arena* arena) {
1861 return Arena::CreateMessageInternal< ::android::am::ResultsBundleEntry >(arena);
1862 }
1863 template<> PROTOBUF_NOINLINE ::android::am::ResultsBundle*
CreateMaybeMessage(Arena * arena)1864 Arena::CreateMaybeMessage< ::android::am::ResultsBundle >(Arena* arena) {
1865 return Arena::CreateMessageInternal< ::android::am::ResultsBundle >(arena);
1866 }
1867 template<> PROTOBUF_NOINLINE ::android::am::TestStatus*
CreateMaybeMessage(Arena * arena)1868 Arena::CreateMaybeMessage< ::android::am::TestStatus >(Arena* arena) {
1869 return Arena::CreateMessageInternal< ::android::am::TestStatus >(arena);
1870 }
1871 template<> PROTOBUF_NOINLINE ::android::am::SessionStatus*
CreateMaybeMessage(Arena * arena)1872 Arena::CreateMaybeMessage< ::android::am::SessionStatus >(Arena* arena) {
1873 return Arena::CreateMessageInternal< ::android::am::SessionStatus >(arena);
1874 }
1875 template<> PROTOBUF_NOINLINE ::android::am::Session*
CreateMaybeMessage(Arena * arena)1876 Arena::CreateMaybeMessage< ::android::am::Session >(Arena* arena) {
1877 return Arena::CreateMessageInternal< ::android::am::Session >(arena);
1878 }
1879 PROTOBUF_NAMESPACE_CLOSE
1880
1881 // @@protoc_insertion_point(global_scope)
1882 #include <google/protobuf/port_undef.inc>
1883