1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: packages/modules/adb/proto/adb_host.proto
3 
4 #include "packages/modules/adb/proto/adb_host.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 adb {
25 namespace proto {
Device(::_pbi::ConstantInitialized)26 PROTOBUF_CONSTEXPR Device::Device(
27     ::_pbi::ConstantInitialized): _impl_{
28     /*decltype(_impl_.serial_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
29   , /*decltype(_impl_.bus_address_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
30   , /*decltype(_impl_.product_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
31   , /*decltype(_impl_.model_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
32   , /*decltype(_impl_.device_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
33   , /*decltype(_impl_.state_)*/0
34   , /*decltype(_impl_.connection_type_)*/0
35   , /*decltype(_impl_.negotiated_speed_)*/::int64_t{0}
36   , /*decltype(_impl_.max_speed_)*/::int64_t{0}
37   , /*decltype(_impl_.transport_id_)*/::int64_t{0}
38   , /*decltype(_impl_._cached_size_)*/{}} {}
39 struct DeviceDefaultTypeInternal {
DeviceDefaultTypeInternaladb::proto::DeviceDefaultTypeInternal40   PROTOBUF_CONSTEXPR DeviceDefaultTypeInternal()
41       : _instance(::_pbi::ConstantInitialized{}) {}
~DeviceDefaultTypeInternaladb::proto::DeviceDefaultTypeInternal42   ~DeviceDefaultTypeInternal() {}
43   union {  // NOLINT(misc-non-private-member-variables-in-classes)
44     Device _instance;
45   };
46 };
47 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeviceDefaultTypeInternal _Device_default_instance_;
Devices(::_pbi::ConstantInitialized)48 PROTOBUF_CONSTEXPR Devices::Devices(
49     ::_pbi::ConstantInitialized): _impl_{
50     /*decltype(_impl_.device_)*/{}
51   , /*decltype(_impl_._cached_size_)*/{}} {}
52 struct DevicesDefaultTypeInternal {
DevicesDefaultTypeInternaladb::proto::DevicesDefaultTypeInternal53   PROTOBUF_CONSTEXPR DevicesDefaultTypeInternal()
54       : _instance(::_pbi::ConstantInitialized{}) {}
~DevicesDefaultTypeInternaladb::proto::DevicesDefaultTypeInternal55   ~DevicesDefaultTypeInternal() {}
56   union {  // NOLINT(misc-non-private-member-variables-in-classes)
57     Devices _instance;
58   };
59 };
60 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DevicesDefaultTypeInternal _Devices_default_instance_;
AdbServerStatus(::_pbi::ConstantInitialized)61 PROTOBUF_CONSTEXPR AdbServerStatus::AdbServerStatus(
62     ::_pbi::ConstantInitialized): _impl_{
63     /*decltype(_impl_.version_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
64   , /*decltype(_impl_.build_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
65   , /*decltype(_impl_.executable_absolute_path_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
66   , /*decltype(_impl_.log_absolute_path_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
67   , /*decltype(_impl_.os_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
68   , /*decltype(_impl_.usb_backend_)*/0
69   , /*decltype(_impl_.mdns_backend_)*/0
70   , /*decltype(_impl_.usb_backend_forced_)*/false
71   , /*decltype(_impl_.mdns_backend_forced_)*/false
72   , /*decltype(_impl_._cached_size_)*/{}} {}
73 struct AdbServerStatusDefaultTypeInternal {
AdbServerStatusDefaultTypeInternaladb::proto::AdbServerStatusDefaultTypeInternal74   PROTOBUF_CONSTEXPR AdbServerStatusDefaultTypeInternal()
75       : _instance(::_pbi::ConstantInitialized{}) {}
~AdbServerStatusDefaultTypeInternaladb::proto::AdbServerStatusDefaultTypeInternal76   ~AdbServerStatusDefaultTypeInternal() {}
77   union {  // NOLINT(misc-non-private-member-variables-in-classes)
78     AdbServerStatus _instance;
79   };
80 };
81 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AdbServerStatusDefaultTypeInternal _AdbServerStatus_default_instance_;
82 }  // namespace proto
83 }  // namespace adb
84 static ::_pb::Metadata file_level_metadata_packages_2fmodules_2fadb_2fproto_2fadb_5fhost_2eproto[3];
85 static const ::_pb::EnumDescriptor* file_level_enum_descriptors_packages_2fmodules_2fadb_2fproto_2fadb_5fhost_2eproto[4];
86 static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_packages_2fmodules_2fadb_2fproto_2fadb_5fhost_2eproto = nullptr;
87 
88 const ::uint32_t TableStruct_packages_2fmodules_2fadb_2fproto_2fadb_5fhost_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
89   ~0u,  // no _has_bits_
90   PROTOBUF_FIELD_OFFSET(::adb::proto::Device, _internal_metadata_),
91   ~0u,  // no _extensions_
92   ~0u,  // no _oneof_case_
93   ~0u,  // no _weak_field_map_
94   ~0u,  // no _inlined_string_donated_
95   PROTOBUF_FIELD_OFFSET(::adb::proto::Device, _impl_.serial_),
96   PROTOBUF_FIELD_OFFSET(::adb::proto::Device, _impl_.state_),
97   PROTOBUF_FIELD_OFFSET(::adb::proto::Device, _impl_.bus_address_),
98   PROTOBUF_FIELD_OFFSET(::adb::proto::Device, _impl_.product_),
99   PROTOBUF_FIELD_OFFSET(::adb::proto::Device, _impl_.model_),
100   PROTOBUF_FIELD_OFFSET(::adb::proto::Device, _impl_.device_),
101   PROTOBUF_FIELD_OFFSET(::adb::proto::Device, _impl_.connection_type_),
102   PROTOBUF_FIELD_OFFSET(::adb::proto::Device, _impl_.negotiated_speed_),
103   PROTOBUF_FIELD_OFFSET(::adb::proto::Device, _impl_.max_speed_),
104   PROTOBUF_FIELD_OFFSET(::adb::proto::Device, _impl_.transport_id_),
105   ~0u,  // no _has_bits_
106   PROTOBUF_FIELD_OFFSET(::adb::proto::Devices, _internal_metadata_),
107   ~0u,  // no _extensions_
108   ~0u,  // no _oneof_case_
109   ~0u,  // no _weak_field_map_
110   ~0u,  // no _inlined_string_donated_
111   PROTOBUF_FIELD_OFFSET(::adb::proto::Devices, _impl_.device_),
112   ~0u,  // no _has_bits_
113   PROTOBUF_FIELD_OFFSET(::adb::proto::AdbServerStatus, _internal_metadata_),
114   ~0u,  // no _extensions_
115   ~0u,  // no _oneof_case_
116   ~0u,  // no _weak_field_map_
117   ~0u,  // no _inlined_string_donated_
118   PROTOBUF_FIELD_OFFSET(::adb::proto::AdbServerStatus, _impl_.usb_backend_),
119   PROTOBUF_FIELD_OFFSET(::adb::proto::AdbServerStatus, _impl_.usb_backend_forced_),
120   PROTOBUF_FIELD_OFFSET(::adb::proto::AdbServerStatus, _impl_.mdns_backend_),
121   PROTOBUF_FIELD_OFFSET(::adb::proto::AdbServerStatus, _impl_.mdns_backend_forced_),
122   PROTOBUF_FIELD_OFFSET(::adb::proto::AdbServerStatus, _impl_.version_),
123   PROTOBUF_FIELD_OFFSET(::adb::proto::AdbServerStatus, _impl_.build_),
124   PROTOBUF_FIELD_OFFSET(::adb::proto::AdbServerStatus, _impl_.executable_absolute_path_),
125   PROTOBUF_FIELD_OFFSET(::adb::proto::AdbServerStatus, _impl_.log_absolute_path_),
126   PROTOBUF_FIELD_OFFSET(::adb::proto::AdbServerStatus, _impl_.os_),
127 };
128 static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
129   { 0, -1, -1, sizeof(::adb::proto::Device)},
130   { 16, -1, -1, sizeof(::adb::proto::Devices)},
131   { 23, -1, -1, sizeof(::adb::proto::AdbServerStatus)},
132 };
133 
134 static const ::_pb::Message* const file_default_instances[] = {
135   &::adb::proto::_Device_default_instance_._instance,
136   &::adb::proto::_Devices_default_instance_._instance,
137   &::adb::proto::_AdbServerStatus_default_instance_._instance,
138 };
139 
140 const char descriptor_table_protodef_packages_2fmodules_2fadb_2fproto_2fadb_5fhost_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
141   "\n)packages/modules/adb/proto/adb_host.pr"
142   "oto\022\tadb.proto\"\377\001\n\006Device\022\016\n\006serial\030\001 \001("
143   "\t\022)\n\005state\030\002 \001(\0162\032.adb.proto.ConnectionS"
144   "tate\022\023\n\013bus_address\030\003 \001(\t\022\017\n\007product\030\004 \001"
145   "(\t\022\r\n\005model\030\005 \001(\t\022\016\n\006device\030\006 \001(\t\0222\n\017con"
146   "nection_type\030\007 \001(\0162\031.adb.proto.Connectio"
147   "nType\022\030\n\020negotiated_speed\030\010 \001(\003\022\021\n\tmax_s"
148   "peed\030\t \001(\003\022\024\n\014transport_id\030\n \001(\003\",\n\007Devi"
149   "ces\022!\n\006device\030\001 \003(\0132\021.adb.proto.Device\"\242"
150   "\003\n\017AdbServerStatus\022:\n\013usb_backend\030\001 \001(\0162"
151   "%.adb.proto.AdbServerStatus.UsbBackend\022\032"
152   "\n\022usb_backend_forced\030\002 \001(\010\022<\n\014mdns_backe"
153   "nd\030\003 \001(\0162&.adb.proto.AdbServerStatus.Mdn"
154   "sBackend\022\033\n\023mdns_backend_forced\030\004 \001(\010\022\017\n"
155   "\007version\030\005 \001(\t\022\r\n\005build\030\006 \001(\t\022 \n\030executa"
156   "ble_absolute_path\030\007 \001(\t\022\031\n\021log_absolute_"
157   "path\030\010 \001(\t\022\n\n\002os\030\t \001(\t\"5\n\nUsbBackend\022\017\n\013"
158   "UNKNOWN_USB\020\000\022\n\n\006NATIVE\020\001\022\n\n\006LIBUSB\020\002\"<\n"
159   "\013MdnsBackend\022\020\n\014UNKNOWN_MDNS\020\000\022\013\n\007BONJOU"
160   "R\020\001\022\016\n\nOPENSCREEN\020\002*\310\001\n\017ConnectionState\022"
161   "\007\n\003ANY\020\000\022\016\n\nCONNECTING\020\001\022\017\n\013AUTHORIZING\020"
162   "\002\022\020\n\014UNAUTHORIZED\020\003\022\020\n\014NOPERMISSION\020\004\022\014\n"
163   "\010DETACHED\020\005\022\013\n\007OFFLINE\020\006\022\016\n\nBOOTLOADER\020\007"
164   "\022\n\n\006DEVICE\020\010\022\010\n\004HOST\020\t\022\014\n\010RECOVERY\020\n\022\014\n\010"
165   "SIDELOAD\020\013\022\n\n\006RESCUE\020\014*2\n\016ConnectionType"
166   "\022\013\n\007UNKNOWN\020\000\022\007\n\003USB\020\001\022\n\n\006SOCKET\020\002B-\n\035co"
167   "m.android.server.adb.protosB\014DevicesProt"
168   "ob\006proto3"
169   ;
170 static ::_pbi::once_flag descriptor_table_packages_2fmodules_2fadb_2fproto_2fadb_5fhost_2eproto_once;
171 const ::_pbi::DescriptorTable descriptor_table_packages_2fmodules_2fadb_2fproto_2fadb_5fhost_2eproto = {
172     false, false, 1089, descriptor_table_protodef_packages_2fmodules_2fadb_2fproto_2fadb_5fhost_2eproto,
173     "packages/modules/adb/proto/adb_host.proto",
174     &descriptor_table_packages_2fmodules_2fadb_2fproto_2fadb_5fhost_2eproto_once, nullptr, 0, 3,
175     schemas, file_default_instances, TableStruct_packages_2fmodules_2fadb_2fproto_2fadb_5fhost_2eproto::offsets,
176     file_level_metadata_packages_2fmodules_2fadb_2fproto_2fadb_5fhost_2eproto, file_level_enum_descriptors_packages_2fmodules_2fadb_2fproto_2fadb_5fhost_2eproto,
177     file_level_service_descriptors_packages_2fmodules_2fadb_2fproto_2fadb_5fhost_2eproto,
178 };
descriptor_table_packages_2fmodules_2fadb_2fproto_2fadb_5fhost_2eproto_getter()179 PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_packages_2fmodules_2fadb_2fproto_2fadb_5fhost_2eproto_getter() {
180   return &descriptor_table_packages_2fmodules_2fadb_2fproto_2fadb_5fhost_2eproto;
181 }
182 
183 // Force running AddDescriptors() at dynamic initialization time.
184 PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_packages_2fmodules_2fadb_2fproto_2fadb_5fhost_2eproto(&descriptor_table_packages_2fmodules_2fadb_2fproto_2fadb_5fhost_2eproto);
185 namespace adb {
186 namespace proto {
AdbServerStatus_UsbBackend_descriptor()187 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* AdbServerStatus_UsbBackend_descriptor() {
188   ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_packages_2fmodules_2fadb_2fproto_2fadb_5fhost_2eproto);
189   return file_level_enum_descriptors_packages_2fmodules_2fadb_2fproto_2fadb_5fhost_2eproto[0];
190 }
AdbServerStatus_UsbBackend_IsValid(int value)191 bool AdbServerStatus_UsbBackend_IsValid(int value) {
192   switch (value) {
193     case 0:
194     case 1:
195     case 2:
196       return true;
197     default:
198       return false;
199   }
200 }
201 
202 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
203 constexpr AdbServerStatus_UsbBackend AdbServerStatus::UNKNOWN_USB;
204 constexpr AdbServerStatus_UsbBackend AdbServerStatus::NATIVE;
205 constexpr AdbServerStatus_UsbBackend AdbServerStatus::LIBUSB;
206 constexpr AdbServerStatus_UsbBackend AdbServerStatus::UsbBackend_MIN;
207 constexpr AdbServerStatus_UsbBackend AdbServerStatus::UsbBackend_MAX;
208 constexpr int AdbServerStatus::UsbBackend_ARRAYSIZE;
209 #endif  // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
AdbServerStatus_MdnsBackend_descriptor()210 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* AdbServerStatus_MdnsBackend_descriptor() {
211   ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_packages_2fmodules_2fadb_2fproto_2fadb_5fhost_2eproto);
212   return file_level_enum_descriptors_packages_2fmodules_2fadb_2fproto_2fadb_5fhost_2eproto[1];
213 }
AdbServerStatus_MdnsBackend_IsValid(int value)214 bool AdbServerStatus_MdnsBackend_IsValid(int value) {
215   switch (value) {
216     case 0:
217     case 1:
218     case 2:
219       return true;
220     default:
221       return false;
222   }
223 }
224 
225 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
226 constexpr AdbServerStatus_MdnsBackend AdbServerStatus::UNKNOWN_MDNS;
227 constexpr AdbServerStatus_MdnsBackend AdbServerStatus::BONJOUR;
228 constexpr AdbServerStatus_MdnsBackend AdbServerStatus::OPENSCREEN;
229 constexpr AdbServerStatus_MdnsBackend AdbServerStatus::MdnsBackend_MIN;
230 constexpr AdbServerStatus_MdnsBackend AdbServerStatus::MdnsBackend_MAX;
231 constexpr int AdbServerStatus::MdnsBackend_ARRAYSIZE;
232 #endif  // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
ConnectionState_descriptor()233 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ConnectionState_descriptor() {
234   ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_packages_2fmodules_2fadb_2fproto_2fadb_5fhost_2eproto);
235   return file_level_enum_descriptors_packages_2fmodules_2fadb_2fproto_2fadb_5fhost_2eproto[2];
236 }
ConnectionState_IsValid(int value)237 bool ConnectionState_IsValid(int value) {
238   switch (value) {
239     case 0:
240     case 1:
241     case 2:
242     case 3:
243     case 4:
244     case 5:
245     case 6:
246     case 7:
247     case 8:
248     case 9:
249     case 10:
250     case 11:
251     case 12:
252       return true;
253     default:
254       return false;
255   }
256 }
257 
ConnectionType_descriptor()258 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ConnectionType_descriptor() {
259   ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_packages_2fmodules_2fadb_2fproto_2fadb_5fhost_2eproto);
260   return file_level_enum_descriptors_packages_2fmodules_2fadb_2fproto_2fadb_5fhost_2eproto[3];
261 }
ConnectionType_IsValid(int value)262 bool ConnectionType_IsValid(int value) {
263   switch (value) {
264     case 0:
265     case 1:
266     case 2:
267       return true;
268     default:
269       return false;
270   }
271 }
272 
273 
274 // ===================================================================
275 
276 class Device::_Internal {
277  public:
278 };
279 
Device(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)280 Device::Device(::PROTOBUF_NAMESPACE_ID::Arena* arena,
281                          bool is_message_owned)
282   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
283   SharedCtor(arena, is_message_owned);
284   // @@protoc_insertion_point(arena_constructor:adb.proto.Device)
285 }
Device(const Device & from)286 Device::Device(const Device& from)
287   : ::PROTOBUF_NAMESPACE_ID::Message() {
288   Device* const _this = this; (void)_this;
289   new (&_impl_) Impl_{
290       decltype(_impl_.serial_){}
291     , decltype(_impl_.bus_address_){}
292     , decltype(_impl_.product_){}
293     , decltype(_impl_.model_){}
294     , decltype(_impl_.device_){}
295     , decltype(_impl_.state_){}
296     , decltype(_impl_.connection_type_){}
297     , decltype(_impl_.negotiated_speed_){}
298     , decltype(_impl_.max_speed_){}
299     , decltype(_impl_.transport_id_){}
300     , /*decltype(_impl_._cached_size_)*/{}};
301 
302   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
303   _impl_.serial_.InitDefault();
304   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
305     _impl_.serial_.Set("", GetArenaForAllocation());
306   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
307   if (!from._internal_serial().empty()) {
308     _this->_impl_.serial_.Set(from._internal_serial(),
309       _this->GetArenaForAllocation());
310   }
311   _impl_.bus_address_.InitDefault();
312   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
313     _impl_.bus_address_.Set("", GetArenaForAllocation());
314   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
315   if (!from._internal_bus_address().empty()) {
316     _this->_impl_.bus_address_.Set(from._internal_bus_address(),
317       _this->GetArenaForAllocation());
318   }
319   _impl_.product_.InitDefault();
320   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
321     _impl_.product_.Set("", GetArenaForAllocation());
322   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
323   if (!from._internal_product().empty()) {
324     _this->_impl_.product_.Set(from._internal_product(),
325       _this->GetArenaForAllocation());
326   }
327   _impl_.model_.InitDefault();
328   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
329     _impl_.model_.Set("", GetArenaForAllocation());
330   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
331   if (!from._internal_model().empty()) {
332     _this->_impl_.model_.Set(from._internal_model(),
333       _this->GetArenaForAllocation());
334   }
335   _impl_.device_.InitDefault();
336   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
337     _impl_.device_.Set("", GetArenaForAllocation());
338   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
339   if (!from._internal_device().empty()) {
340     _this->_impl_.device_.Set(from._internal_device(),
341       _this->GetArenaForAllocation());
342   }
343   ::memcpy(&_impl_.state_, &from._impl_.state_,
344     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.transport_id_) -
345     reinterpret_cast<char*>(&_impl_.state_)) + sizeof(_impl_.transport_id_));
346   // @@protoc_insertion_point(copy_constructor:adb.proto.Device)
347 }
348 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)349 inline void Device::SharedCtor(
350     ::_pb::Arena* arena, bool is_message_owned) {
351   (void)arena;
352   (void)is_message_owned;
353   new (&_impl_) Impl_{
354       decltype(_impl_.serial_){}
355     , decltype(_impl_.bus_address_){}
356     , decltype(_impl_.product_){}
357     , decltype(_impl_.model_){}
358     , decltype(_impl_.device_){}
359     , decltype(_impl_.state_){0}
360     , decltype(_impl_.connection_type_){0}
361     , decltype(_impl_.negotiated_speed_){::int64_t{0}}
362     , decltype(_impl_.max_speed_){::int64_t{0}}
363     , decltype(_impl_.transport_id_){::int64_t{0}}
364     , /*decltype(_impl_._cached_size_)*/{}
365   };
366   _impl_.serial_.InitDefault();
367   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
368     _impl_.serial_.Set("", GetArenaForAllocation());
369   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
370   _impl_.bus_address_.InitDefault();
371   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
372     _impl_.bus_address_.Set("", GetArenaForAllocation());
373   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
374   _impl_.product_.InitDefault();
375   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
376     _impl_.product_.Set("", GetArenaForAllocation());
377   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
378   _impl_.model_.InitDefault();
379   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
380     _impl_.model_.Set("", GetArenaForAllocation());
381   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
382   _impl_.device_.InitDefault();
383   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
384     _impl_.device_.Set("", GetArenaForAllocation());
385   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
386 }
387 
~Device()388 Device::~Device() {
389   // @@protoc_insertion_point(destructor:adb.proto.Device)
390   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
391   (void)arena;
392     return;
393   }
394   SharedDtor();
395 }
396 
SharedDtor()397 inline void Device::SharedDtor() {
398   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
399   _impl_.serial_.Destroy();
400   _impl_.bus_address_.Destroy();
401   _impl_.product_.Destroy();
402   _impl_.model_.Destroy();
403   _impl_.device_.Destroy();
404 }
405 
SetCachedSize(int size) const406 void Device::SetCachedSize(int size) const {
407   _impl_._cached_size_.Set(size);
408 }
409 
Clear()410 void Device::Clear() {
411 // @@protoc_insertion_point(message_clear_start:adb.proto.Device)
412   ::uint32_t cached_has_bits = 0;
413   // Prevent compiler warnings about cached_has_bits being unused
414   (void) cached_has_bits;
415 
416   _impl_.serial_.ClearToEmpty();
417   _impl_.bus_address_.ClearToEmpty();
418   _impl_.product_.ClearToEmpty();
419   _impl_.model_.ClearToEmpty();
420   _impl_.device_.ClearToEmpty();
421   ::memset(&_impl_.state_, 0, static_cast<size_t>(
422       reinterpret_cast<char*>(&_impl_.transport_id_) -
423       reinterpret_cast<char*>(&_impl_.state_)) + sizeof(_impl_.transport_id_));
424   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
425 }
426 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)427 const char* Device::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
428 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
429   while (!ctx->Done(&ptr)) {
430     ::uint32_t tag;
431     ptr = ::_pbi::ReadTag(ptr, &tag);
432     switch (tag >> 3) {
433       // string serial = 1;
434       case 1:
435         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
436           auto str = _internal_mutable_serial();
437           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
438           CHK_(ptr);
439           CHK_(::_pbi::VerifyUTF8(str, "adb.proto.Device.serial"));
440         } else {
441           goto handle_unusual;
442         }
443         continue;
444       // .adb.proto.ConnectionState state = 2;
445       case 2:
446         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
447           ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
448           CHK_(ptr);
449           _internal_set_state(static_cast<::adb::proto::ConnectionState>(val));
450         } else {
451           goto handle_unusual;
452         }
453         continue;
454       // string bus_address = 3;
455       case 3:
456         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
457           auto str = _internal_mutable_bus_address();
458           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
459           CHK_(ptr);
460           CHK_(::_pbi::VerifyUTF8(str, "adb.proto.Device.bus_address"));
461         } else {
462           goto handle_unusual;
463         }
464         continue;
465       // string product = 4;
466       case 4:
467         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
468           auto str = _internal_mutable_product();
469           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
470           CHK_(ptr);
471           CHK_(::_pbi::VerifyUTF8(str, "adb.proto.Device.product"));
472         } else {
473           goto handle_unusual;
474         }
475         continue;
476       // string model = 5;
477       case 5:
478         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) {
479           auto str = _internal_mutable_model();
480           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
481           CHK_(ptr);
482           CHK_(::_pbi::VerifyUTF8(str, "adb.proto.Device.model"));
483         } else {
484           goto handle_unusual;
485         }
486         continue;
487       // string device = 6;
488       case 6:
489         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) {
490           auto str = _internal_mutable_device();
491           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
492           CHK_(ptr);
493           CHK_(::_pbi::VerifyUTF8(str, "adb.proto.Device.device"));
494         } else {
495           goto handle_unusual;
496         }
497         continue;
498       // .adb.proto.ConnectionType connection_type = 7;
499       case 7:
500         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 56)) {
501           ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
502           CHK_(ptr);
503           _internal_set_connection_type(static_cast<::adb::proto::ConnectionType>(val));
504         } else {
505           goto handle_unusual;
506         }
507         continue;
508       // int64 negotiated_speed = 8;
509       case 8:
510         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 64)) {
511           _impl_.negotiated_speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
512           CHK_(ptr);
513         } else {
514           goto handle_unusual;
515         }
516         continue;
517       // int64 max_speed = 9;
518       case 9:
519         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 72)) {
520           _impl_.max_speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
521           CHK_(ptr);
522         } else {
523           goto handle_unusual;
524         }
525         continue;
526       // int64 transport_id = 10;
527       case 10:
528         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 80)) {
529           _impl_.transport_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
530           CHK_(ptr);
531         } else {
532           goto handle_unusual;
533         }
534         continue;
535       default:
536         goto handle_unusual;
537     }  // switch
538   handle_unusual:
539     if ((tag == 0) || ((tag & 7) == 4)) {
540       CHK_(ptr);
541       ctx->SetLastTag(tag);
542       goto message_done;
543     }
544     ptr = UnknownFieldParse(
545         tag,
546         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
547         ptr, ctx);
548     CHK_(ptr != nullptr);
549   }  // while
550 message_done:
551   return ptr;
552 failure:
553   ptr = nullptr;
554   goto message_done;
555 #undef CHK_
556 }
557 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const558 ::uint8_t* Device::_InternalSerialize(
559     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
560   // @@protoc_insertion_point(serialize_to_array_start:adb.proto.Device)
561   ::uint32_t cached_has_bits = 0;
562   (void) cached_has_bits;
563 
564   // string serial = 1;
565   if (!this->_internal_serial().empty()) {
566     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
567       this->_internal_serial().data(), static_cast<int>(this->_internal_serial().length()),
568       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
569       "adb.proto.Device.serial");
570     target = stream->WriteStringMaybeAliased(
571         1, this->_internal_serial(), target);
572   }
573 
574   // .adb.proto.ConnectionState state = 2;
575   if (this->_internal_state() != 0) {
576     target = stream->EnsureSpace(target);
577     target = ::_pbi::WireFormatLite::WriteEnumToArray(
578       2, this->_internal_state(), target);
579   }
580 
581   // string bus_address = 3;
582   if (!this->_internal_bus_address().empty()) {
583     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
584       this->_internal_bus_address().data(), static_cast<int>(this->_internal_bus_address().length()),
585       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
586       "adb.proto.Device.bus_address");
587     target = stream->WriteStringMaybeAliased(
588         3, this->_internal_bus_address(), target);
589   }
590 
591   // string product = 4;
592   if (!this->_internal_product().empty()) {
593     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
594       this->_internal_product().data(), static_cast<int>(this->_internal_product().length()),
595       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
596       "adb.proto.Device.product");
597     target = stream->WriteStringMaybeAliased(
598         4, this->_internal_product(), target);
599   }
600 
601   // string model = 5;
602   if (!this->_internal_model().empty()) {
603     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
604       this->_internal_model().data(), static_cast<int>(this->_internal_model().length()),
605       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
606       "adb.proto.Device.model");
607     target = stream->WriteStringMaybeAliased(
608         5, this->_internal_model(), target);
609   }
610 
611   // string device = 6;
612   if (!this->_internal_device().empty()) {
613     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
614       this->_internal_device().data(), static_cast<int>(this->_internal_device().length()),
615       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
616       "adb.proto.Device.device");
617     target = stream->WriteStringMaybeAliased(
618         6, this->_internal_device(), target);
619   }
620 
621   // .adb.proto.ConnectionType connection_type = 7;
622   if (this->_internal_connection_type() != 0) {
623     target = stream->EnsureSpace(target);
624     target = ::_pbi::WireFormatLite::WriteEnumToArray(
625       7, this->_internal_connection_type(), target);
626   }
627 
628   // int64 negotiated_speed = 8;
629   if (this->_internal_negotiated_speed() != 0) {
630     target = stream->EnsureSpace(target);
631     target = ::_pbi::WireFormatLite::WriteInt64ToArray(8, this->_internal_negotiated_speed(), target);
632   }
633 
634   // int64 max_speed = 9;
635   if (this->_internal_max_speed() != 0) {
636     target = stream->EnsureSpace(target);
637     target = ::_pbi::WireFormatLite::WriteInt64ToArray(9, this->_internal_max_speed(), target);
638   }
639 
640   // int64 transport_id = 10;
641   if (this->_internal_transport_id() != 0) {
642     target = stream->EnsureSpace(target);
643     target = ::_pbi::WireFormatLite::WriteInt64ToArray(10, this->_internal_transport_id(), target);
644   }
645 
646   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
647     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
648         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
649   }
650   // @@protoc_insertion_point(serialize_to_array_end:adb.proto.Device)
651   return target;
652 }
653 
ByteSizeLong() const654 size_t Device::ByteSizeLong() const {
655 // @@protoc_insertion_point(message_byte_size_start:adb.proto.Device)
656   size_t total_size = 0;
657 
658   ::uint32_t cached_has_bits = 0;
659   // Prevent compiler warnings about cached_has_bits being unused
660   (void) cached_has_bits;
661 
662   // string serial = 1;
663   if (!this->_internal_serial().empty()) {
664     total_size += 1 +
665       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
666         this->_internal_serial());
667   }
668 
669   // string bus_address = 3;
670   if (!this->_internal_bus_address().empty()) {
671     total_size += 1 +
672       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
673         this->_internal_bus_address());
674   }
675 
676   // string product = 4;
677   if (!this->_internal_product().empty()) {
678     total_size += 1 +
679       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
680         this->_internal_product());
681   }
682 
683   // string model = 5;
684   if (!this->_internal_model().empty()) {
685     total_size += 1 +
686       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
687         this->_internal_model());
688   }
689 
690   // string device = 6;
691   if (!this->_internal_device().empty()) {
692     total_size += 1 +
693       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
694         this->_internal_device());
695   }
696 
697   // .adb.proto.ConnectionState state = 2;
698   if (this->_internal_state() != 0) {
699     total_size += 1 +
700       ::_pbi::WireFormatLite::EnumSize(this->_internal_state());
701   }
702 
703   // .adb.proto.ConnectionType connection_type = 7;
704   if (this->_internal_connection_type() != 0) {
705     total_size += 1 +
706       ::_pbi::WireFormatLite::EnumSize(this->_internal_connection_type());
707   }
708 
709   // int64 negotiated_speed = 8;
710   if (this->_internal_negotiated_speed() != 0) {
711     total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_negotiated_speed());
712   }
713 
714   // int64 max_speed = 9;
715   if (this->_internal_max_speed() != 0) {
716     total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_max_speed());
717   }
718 
719   // int64 transport_id = 10;
720   if (this->_internal_transport_id() != 0) {
721     total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_transport_id());
722   }
723 
724   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
725 }
726 
727 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Device::_class_data_ = {
728     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
729     Device::MergeImpl
730 };
GetClassData() const731 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Device::GetClassData() const { return &_class_data_; }
732 
733 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)734 void Device::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
735   auto* const _this = static_cast<Device*>(&to_msg);
736   auto& from = static_cast<const Device&>(from_msg);
737   // @@protoc_insertion_point(class_specific_merge_from_start:adb.proto.Device)
738   GOOGLE_DCHECK_NE(&from, _this);
739   ::uint32_t cached_has_bits = 0;
740   (void) cached_has_bits;
741 
742   if (!from._internal_serial().empty()) {
743     _this->_internal_set_serial(from._internal_serial());
744   }
745   if (!from._internal_bus_address().empty()) {
746     _this->_internal_set_bus_address(from._internal_bus_address());
747   }
748   if (!from._internal_product().empty()) {
749     _this->_internal_set_product(from._internal_product());
750   }
751   if (!from._internal_model().empty()) {
752     _this->_internal_set_model(from._internal_model());
753   }
754   if (!from._internal_device().empty()) {
755     _this->_internal_set_device(from._internal_device());
756   }
757   if (from._internal_state() != 0) {
758     _this->_internal_set_state(from._internal_state());
759   }
760   if (from._internal_connection_type() != 0) {
761     _this->_internal_set_connection_type(from._internal_connection_type());
762   }
763   if (from._internal_negotiated_speed() != 0) {
764     _this->_internal_set_negotiated_speed(from._internal_negotiated_speed());
765   }
766   if (from._internal_max_speed() != 0) {
767     _this->_internal_set_max_speed(from._internal_max_speed());
768   }
769   if (from._internal_transport_id() != 0) {
770     _this->_internal_set_transport_id(from._internal_transport_id());
771   }
772   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
773 }
774 
CopyFrom(const Device & from)775 void Device::CopyFrom(const Device& from) {
776 // @@protoc_insertion_point(class_specific_copy_from_start:adb.proto.Device)
777   if (&from == this) return;
778   Clear();
779   MergeFrom(from);
780 }
781 
IsInitialized() const782 bool Device::IsInitialized() const {
783   return true;
784 }
785 
InternalSwap(Device * other)786 void Device::InternalSwap(Device* other) {
787   using std::swap;
788   auto* lhs_arena = GetArenaForAllocation();
789   auto* rhs_arena = other->GetArenaForAllocation();
790   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
791   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
792       &_impl_.serial_, lhs_arena,
793       &other->_impl_.serial_, rhs_arena
794   );
795   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
796       &_impl_.bus_address_, lhs_arena,
797       &other->_impl_.bus_address_, rhs_arena
798   );
799   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
800       &_impl_.product_, lhs_arena,
801       &other->_impl_.product_, rhs_arena
802   );
803   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
804       &_impl_.model_, lhs_arena,
805       &other->_impl_.model_, rhs_arena
806   );
807   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
808       &_impl_.device_, lhs_arena,
809       &other->_impl_.device_, rhs_arena
810   );
811   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
812       PROTOBUF_FIELD_OFFSET(Device, _impl_.transport_id_)
813       + sizeof(Device::_impl_.transport_id_)  // NOLINT
814       - PROTOBUF_FIELD_OFFSET(Device, _impl_.state_)>(
815           reinterpret_cast<char*>(&_impl_.state_),
816           reinterpret_cast<char*>(&other->_impl_.state_));
817 }
818 
GetMetadata() const819 ::PROTOBUF_NAMESPACE_ID::Metadata Device::GetMetadata() const {
820   return ::_pbi::AssignDescriptors(
821       &descriptor_table_packages_2fmodules_2fadb_2fproto_2fadb_5fhost_2eproto_getter, &descriptor_table_packages_2fmodules_2fadb_2fproto_2fadb_5fhost_2eproto_once,
822       file_level_metadata_packages_2fmodules_2fadb_2fproto_2fadb_5fhost_2eproto[0]);
823 }
824 
825 // ===================================================================
826 
827 class Devices::_Internal {
828  public:
829 };
830 
Devices(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)831 Devices::Devices(::PROTOBUF_NAMESPACE_ID::Arena* arena,
832                          bool is_message_owned)
833   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
834   SharedCtor(arena, is_message_owned);
835   // @@protoc_insertion_point(arena_constructor:adb.proto.Devices)
836 }
Devices(const Devices & from)837 Devices::Devices(const Devices& from)
838   : ::PROTOBUF_NAMESPACE_ID::Message() {
839   Devices* const _this = this; (void)_this;
840   new (&_impl_) Impl_{
841       decltype(_impl_.device_){from._impl_.device_}
842     , /*decltype(_impl_._cached_size_)*/{}};
843 
844   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
845   // @@protoc_insertion_point(copy_constructor:adb.proto.Devices)
846 }
847 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)848 inline void Devices::SharedCtor(
849     ::_pb::Arena* arena, bool is_message_owned) {
850   (void)arena;
851   (void)is_message_owned;
852   new (&_impl_) Impl_{
853       decltype(_impl_.device_){arena}
854     , /*decltype(_impl_._cached_size_)*/{}
855   };
856 }
857 
~Devices()858 Devices::~Devices() {
859   // @@protoc_insertion_point(destructor:adb.proto.Devices)
860   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
861   (void)arena;
862     return;
863   }
864   SharedDtor();
865 }
866 
SharedDtor()867 inline void Devices::SharedDtor() {
868   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
869   _impl_.device_.~RepeatedPtrField();
870 }
871 
SetCachedSize(int size) const872 void Devices::SetCachedSize(int size) const {
873   _impl_._cached_size_.Set(size);
874 }
875 
Clear()876 void Devices::Clear() {
877 // @@protoc_insertion_point(message_clear_start:adb.proto.Devices)
878   ::uint32_t cached_has_bits = 0;
879   // Prevent compiler warnings about cached_has_bits being unused
880   (void) cached_has_bits;
881 
882   _impl_.device_.Clear();
883   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
884 }
885 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)886 const char* Devices::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
887 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
888   while (!ctx->Done(&ptr)) {
889     ::uint32_t tag;
890     ptr = ::_pbi::ReadTag(ptr, &tag);
891     switch (tag >> 3) {
892       // repeated .adb.proto.Device device = 1;
893       case 1:
894         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
895           ptr -= 1;
896           do {
897             ptr += 1;
898             ptr = ctx->ParseMessage(_internal_add_device(), ptr);
899             CHK_(ptr);
900             if (!ctx->DataAvailable(ptr)) break;
901           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
902         } else {
903           goto handle_unusual;
904         }
905         continue;
906       default:
907         goto handle_unusual;
908     }  // switch
909   handle_unusual:
910     if ((tag == 0) || ((tag & 7) == 4)) {
911       CHK_(ptr);
912       ctx->SetLastTag(tag);
913       goto message_done;
914     }
915     ptr = UnknownFieldParse(
916         tag,
917         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
918         ptr, ctx);
919     CHK_(ptr != nullptr);
920   }  // while
921 message_done:
922   return ptr;
923 failure:
924   ptr = nullptr;
925   goto message_done;
926 #undef CHK_
927 }
928 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const929 ::uint8_t* Devices::_InternalSerialize(
930     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
931   // @@protoc_insertion_point(serialize_to_array_start:adb.proto.Devices)
932   ::uint32_t cached_has_bits = 0;
933   (void) cached_has_bits;
934 
935   // repeated .adb.proto.Device device = 1;
936   for (unsigned i = 0,
937       n = static_cast<unsigned>(this->_internal_device_size()); i < n; i++) {
938     const auto& repfield = this->_internal_device(i);
939     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
940         InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
941   }
942 
943   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
944     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
945         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
946   }
947   // @@protoc_insertion_point(serialize_to_array_end:adb.proto.Devices)
948   return target;
949 }
950 
ByteSizeLong() const951 size_t Devices::ByteSizeLong() const {
952 // @@protoc_insertion_point(message_byte_size_start:adb.proto.Devices)
953   size_t total_size = 0;
954 
955   ::uint32_t cached_has_bits = 0;
956   // Prevent compiler warnings about cached_has_bits being unused
957   (void) cached_has_bits;
958 
959   // repeated .adb.proto.Device device = 1;
960   total_size += 1UL * this->_internal_device_size();
961   for (const auto& msg : this->_impl_.device_) {
962     total_size +=
963       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
964   }
965 
966   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
967 }
968 
969 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Devices::_class_data_ = {
970     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
971     Devices::MergeImpl
972 };
GetClassData() const973 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Devices::GetClassData() const { return &_class_data_; }
974 
975 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)976 void Devices::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
977   auto* const _this = static_cast<Devices*>(&to_msg);
978   auto& from = static_cast<const Devices&>(from_msg);
979   // @@protoc_insertion_point(class_specific_merge_from_start:adb.proto.Devices)
980   GOOGLE_DCHECK_NE(&from, _this);
981   ::uint32_t cached_has_bits = 0;
982   (void) cached_has_bits;
983 
984   _this->_impl_.device_.MergeFrom(from._impl_.device_);
985   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
986 }
987 
CopyFrom(const Devices & from)988 void Devices::CopyFrom(const Devices& from) {
989 // @@protoc_insertion_point(class_specific_copy_from_start:adb.proto.Devices)
990   if (&from == this) return;
991   Clear();
992   MergeFrom(from);
993 }
994 
IsInitialized() const995 bool Devices::IsInitialized() const {
996   return true;
997 }
998 
InternalSwap(Devices * other)999 void Devices::InternalSwap(Devices* other) {
1000   using std::swap;
1001   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1002   _impl_.device_.InternalSwap(&other->_impl_.device_);
1003 }
1004 
GetMetadata() const1005 ::PROTOBUF_NAMESPACE_ID::Metadata Devices::GetMetadata() const {
1006   return ::_pbi::AssignDescriptors(
1007       &descriptor_table_packages_2fmodules_2fadb_2fproto_2fadb_5fhost_2eproto_getter, &descriptor_table_packages_2fmodules_2fadb_2fproto_2fadb_5fhost_2eproto_once,
1008       file_level_metadata_packages_2fmodules_2fadb_2fproto_2fadb_5fhost_2eproto[1]);
1009 }
1010 
1011 // ===================================================================
1012 
1013 class AdbServerStatus::_Internal {
1014  public:
1015 };
1016 
AdbServerStatus(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)1017 AdbServerStatus::AdbServerStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1018                          bool is_message_owned)
1019   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
1020   SharedCtor(arena, is_message_owned);
1021   // @@protoc_insertion_point(arena_constructor:adb.proto.AdbServerStatus)
1022 }
AdbServerStatus(const AdbServerStatus & from)1023 AdbServerStatus::AdbServerStatus(const AdbServerStatus& from)
1024   : ::PROTOBUF_NAMESPACE_ID::Message() {
1025   AdbServerStatus* const _this = this; (void)_this;
1026   new (&_impl_) Impl_{
1027       decltype(_impl_.version_){}
1028     , decltype(_impl_.build_){}
1029     , decltype(_impl_.executable_absolute_path_){}
1030     , decltype(_impl_.log_absolute_path_){}
1031     , decltype(_impl_.os_){}
1032     , decltype(_impl_.usb_backend_){}
1033     , decltype(_impl_.mdns_backend_){}
1034     , decltype(_impl_.usb_backend_forced_){}
1035     , decltype(_impl_.mdns_backend_forced_){}
1036     , /*decltype(_impl_._cached_size_)*/{}};
1037 
1038   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1039   _impl_.version_.InitDefault();
1040   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1041     _impl_.version_.Set("", GetArenaForAllocation());
1042   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1043   if (!from._internal_version().empty()) {
1044     _this->_impl_.version_.Set(from._internal_version(),
1045       _this->GetArenaForAllocation());
1046   }
1047   _impl_.build_.InitDefault();
1048   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1049     _impl_.build_.Set("", GetArenaForAllocation());
1050   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1051   if (!from._internal_build().empty()) {
1052     _this->_impl_.build_.Set(from._internal_build(),
1053       _this->GetArenaForAllocation());
1054   }
1055   _impl_.executable_absolute_path_.InitDefault();
1056   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1057     _impl_.executable_absolute_path_.Set("", GetArenaForAllocation());
1058   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1059   if (!from._internal_executable_absolute_path().empty()) {
1060     _this->_impl_.executable_absolute_path_.Set(from._internal_executable_absolute_path(),
1061       _this->GetArenaForAllocation());
1062   }
1063   _impl_.log_absolute_path_.InitDefault();
1064   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1065     _impl_.log_absolute_path_.Set("", GetArenaForAllocation());
1066   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1067   if (!from._internal_log_absolute_path().empty()) {
1068     _this->_impl_.log_absolute_path_.Set(from._internal_log_absolute_path(),
1069       _this->GetArenaForAllocation());
1070   }
1071   _impl_.os_.InitDefault();
1072   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1073     _impl_.os_.Set("", GetArenaForAllocation());
1074   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1075   if (!from._internal_os().empty()) {
1076     _this->_impl_.os_.Set(from._internal_os(),
1077       _this->GetArenaForAllocation());
1078   }
1079   ::memcpy(&_impl_.usb_backend_, &from._impl_.usb_backend_,
1080     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.mdns_backend_forced_) -
1081     reinterpret_cast<char*>(&_impl_.usb_backend_)) + sizeof(_impl_.mdns_backend_forced_));
1082   // @@protoc_insertion_point(copy_constructor:adb.proto.AdbServerStatus)
1083 }
1084 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)1085 inline void AdbServerStatus::SharedCtor(
1086     ::_pb::Arena* arena, bool is_message_owned) {
1087   (void)arena;
1088   (void)is_message_owned;
1089   new (&_impl_) Impl_{
1090       decltype(_impl_.version_){}
1091     , decltype(_impl_.build_){}
1092     , decltype(_impl_.executable_absolute_path_){}
1093     , decltype(_impl_.log_absolute_path_){}
1094     , decltype(_impl_.os_){}
1095     , decltype(_impl_.usb_backend_){0}
1096     , decltype(_impl_.mdns_backend_){0}
1097     , decltype(_impl_.usb_backend_forced_){false}
1098     , decltype(_impl_.mdns_backend_forced_){false}
1099     , /*decltype(_impl_._cached_size_)*/{}
1100   };
1101   _impl_.version_.InitDefault();
1102   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1103     _impl_.version_.Set("", GetArenaForAllocation());
1104   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1105   _impl_.build_.InitDefault();
1106   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1107     _impl_.build_.Set("", GetArenaForAllocation());
1108   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1109   _impl_.executable_absolute_path_.InitDefault();
1110   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1111     _impl_.executable_absolute_path_.Set("", GetArenaForAllocation());
1112   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1113   _impl_.log_absolute_path_.InitDefault();
1114   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1115     _impl_.log_absolute_path_.Set("", GetArenaForAllocation());
1116   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1117   _impl_.os_.InitDefault();
1118   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1119     _impl_.os_.Set("", GetArenaForAllocation());
1120   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1121 }
1122 
~AdbServerStatus()1123 AdbServerStatus::~AdbServerStatus() {
1124   // @@protoc_insertion_point(destructor:adb.proto.AdbServerStatus)
1125   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
1126   (void)arena;
1127     return;
1128   }
1129   SharedDtor();
1130 }
1131 
SharedDtor()1132 inline void AdbServerStatus::SharedDtor() {
1133   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
1134   _impl_.version_.Destroy();
1135   _impl_.build_.Destroy();
1136   _impl_.executable_absolute_path_.Destroy();
1137   _impl_.log_absolute_path_.Destroy();
1138   _impl_.os_.Destroy();
1139 }
1140 
SetCachedSize(int size) const1141 void AdbServerStatus::SetCachedSize(int size) const {
1142   _impl_._cached_size_.Set(size);
1143 }
1144 
Clear()1145 void AdbServerStatus::Clear() {
1146 // @@protoc_insertion_point(message_clear_start:adb.proto.AdbServerStatus)
1147   ::uint32_t cached_has_bits = 0;
1148   // Prevent compiler warnings about cached_has_bits being unused
1149   (void) cached_has_bits;
1150 
1151   _impl_.version_.ClearToEmpty();
1152   _impl_.build_.ClearToEmpty();
1153   _impl_.executable_absolute_path_.ClearToEmpty();
1154   _impl_.log_absolute_path_.ClearToEmpty();
1155   _impl_.os_.ClearToEmpty();
1156   ::memset(&_impl_.usb_backend_, 0, static_cast<size_t>(
1157       reinterpret_cast<char*>(&_impl_.mdns_backend_forced_) -
1158       reinterpret_cast<char*>(&_impl_.usb_backend_)) + sizeof(_impl_.mdns_backend_forced_));
1159   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1160 }
1161 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)1162 const char* AdbServerStatus::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
1163 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1164   while (!ctx->Done(&ptr)) {
1165     ::uint32_t tag;
1166     ptr = ::_pbi::ReadTag(ptr, &tag);
1167     switch (tag >> 3) {
1168       // .adb.proto.AdbServerStatus.UsbBackend usb_backend = 1;
1169       case 1:
1170         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
1171           ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1172           CHK_(ptr);
1173           _internal_set_usb_backend(static_cast<::adb::proto::AdbServerStatus_UsbBackend>(val));
1174         } else {
1175           goto handle_unusual;
1176         }
1177         continue;
1178       // bool usb_backend_forced = 2;
1179       case 2:
1180         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
1181           _impl_.usb_backend_forced_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1182           CHK_(ptr);
1183         } else {
1184           goto handle_unusual;
1185         }
1186         continue;
1187       // .adb.proto.AdbServerStatus.MdnsBackend mdns_backend = 3;
1188       case 3:
1189         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
1190           ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1191           CHK_(ptr);
1192           _internal_set_mdns_backend(static_cast<::adb::proto::AdbServerStatus_MdnsBackend>(val));
1193         } else {
1194           goto handle_unusual;
1195         }
1196         continue;
1197       // bool mdns_backend_forced = 4;
1198       case 4:
1199         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
1200           _impl_.mdns_backend_forced_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1201           CHK_(ptr);
1202         } else {
1203           goto handle_unusual;
1204         }
1205         continue;
1206       // string version = 5;
1207       case 5:
1208         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) {
1209           auto str = _internal_mutable_version();
1210           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
1211           CHK_(ptr);
1212           CHK_(::_pbi::VerifyUTF8(str, "adb.proto.AdbServerStatus.version"));
1213         } else {
1214           goto handle_unusual;
1215         }
1216         continue;
1217       // string build = 6;
1218       case 6:
1219         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) {
1220           auto str = _internal_mutable_build();
1221           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
1222           CHK_(ptr);
1223           CHK_(::_pbi::VerifyUTF8(str, "adb.proto.AdbServerStatus.build"));
1224         } else {
1225           goto handle_unusual;
1226         }
1227         continue;
1228       // string executable_absolute_path = 7;
1229       case 7:
1230         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) {
1231           auto str = _internal_mutable_executable_absolute_path();
1232           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
1233           CHK_(ptr);
1234           CHK_(::_pbi::VerifyUTF8(str, "adb.proto.AdbServerStatus.executable_absolute_path"));
1235         } else {
1236           goto handle_unusual;
1237         }
1238         continue;
1239       // string log_absolute_path = 8;
1240       case 8:
1241         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 66)) {
1242           auto str = _internal_mutable_log_absolute_path();
1243           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
1244           CHK_(ptr);
1245           CHK_(::_pbi::VerifyUTF8(str, "adb.proto.AdbServerStatus.log_absolute_path"));
1246         } else {
1247           goto handle_unusual;
1248         }
1249         continue;
1250       // string os = 9;
1251       case 9:
1252         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 74)) {
1253           auto str = _internal_mutable_os();
1254           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
1255           CHK_(ptr);
1256           CHK_(::_pbi::VerifyUTF8(str, "adb.proto.AdbServerStatus.os"));
1257         } else {
1258           goto handle_unusual;
1259         }
1260         continue;
1261       default:
1262         goto handle_unusual;
1263     }  // switch
1264   handle_unusual:
1265     if ((tag == 0) || ((tag & 7) == 4)) {
1266       CHK_(ptr);
1267       ctx->SetLastTag(tag);
1268       goto message_done;
1269     }
1270     ptr = UnknownFieldParse(
1271         tag,
1272         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
1273         ptr, ctx);
1274     CHK_(ptr != nullptr);
1275   }  // while
1276 message_done:
1277   return ptr;
1278 failure:
1279   ptr = nullptr;
1280   goto message_done;
1281 #undef CHK_
1282 }
1283 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const1284 ::uint8_t* AdbServerStatus::_InternalSerialize(
1285     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1286   // @@protoc_insertion_point(serialize_to_array_start:adb.proto.AdbServerStatus)
1287   ::uint32_t cached_has_bits = 0;
1288   (void) cached_has_bits;
1289 
1290   // .adb.proto.AdbServerStatus.UsbBackend usb_backend = 1;
1291   if (this->_internal_usb_backend() != 0) {
1292     target = stream->EnsureSpace(target);
1293     target = ::_pbi::WireFormatLite::WriteEnumToArray(
1294       1, this->_internal_usb_backend(), target);
1295   }
1296 
1297   // bool usb_backend_forced = 2;
1298   if (this->_internal_usb_backend_forced() != 0) {
1299     target = stream->EnsureSpace(target);
1300     target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_usb_backend_forced(), target);
1301   }
1302 
1303   // .adb.proto.AdbServerStatus.MdnsBackend mdns_backend = 3;
1304   if (this->_internal_mdns_backend() != 0) {
1305     target = stream->EnsureSpace(target);
1306     target = ::_pbi::WireFormatLite::WriteEnumToArray(
1307       3, this->_internal_mdns_backend(), target);
1308   }
1309 
1310   // bool mdns_backend_forced = 4;
1311   if (this->_internal_mdns_backend_forced() != 0) {
1312     target = stream->EnsureSpace(target);
1313     target = ::_pbi::WireFormatLite::WriteBoolToArray(4, this->_internal_mdns_backend_forced(), target);
1314   }
1315 
1316   // string version = 5;
1317   if (!this->_internal_version().empty()) {
1318     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1319       this->_internal_version().data(), static_cast<int>(this->_internal_version().length()),
1320       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1321       "adb.proto.AdbServerStatus.version");
1322     target = stream->WriteStringMaybeAliased(
1323         5, this->_internal_version(), target);
1324   }
1325 
1326   // string build = 6;
1327   if (!this->_internal_build().empty()) {
1328     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1329       this->_internal_build().data(), static_cast<int>(this->_internal_build().length()),
1330       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1331       "adb.proto.AdbServerStatus.build");
1332     target = stream->WriteStringMaybeAliased(
1333         6, this->_internal_build(), target);
1334   }
1335 
1336   // string executable_absolute_path = 7;
1337   if (!this->_internal_executable_absolute_path().empty()) {
1338     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1339       this->_internal_executable_absolute_path().data(), static_cast<int>(this->_internal_executable_absolute_path().length()),
1340       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1341       "adb.proto.AdbServerStatus.executable_absolute_path");
1342     target = stream->WriteStringMaybeAliased(
1343         7, this->_internal_executable_absolute_path(), target);
1344   }
1345 
1346   // string log_absolute_path = 8;
1347   if (!this->_internal_log_absolute_path().empty()) {
1348     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1349       this->_internal_log_absolute_path().data(), static_cast<int>(this->_internal_log_absolute_path().length()),
1350       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1351       "adb.proto.AdbServerStatus.log_absolute_path");
1352     target = stream->WriteStringMaybeAliased(
1353         8, this->_internal_log_absolute_path(), target);
1354   }
1355 
1356   // string os = 9;
1357   if (!this->_internal_os().empty()) {
1358     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1359       this->_internal_os().data(), static_cast<int>(this->_internal_os().length()),
1360       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1361       "adb.proto.AdbServerStatus.os");
1362     target = stream->WriteStringMaybeAliased(
1363         9, this->_internal_os(), target);
1364   }
1365 
1366   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1367     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1368         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
1369   }
1370   // @@protoc_insertion_point(serialize_to_array_end:adb.proto.AdbServerStatus)
1371   return target;
1372 }
1373 
ByteSizeLong() const1374 size_t AdbServerStatus::ByteSizeLong() const {
1375 // @@protoc_insertion_point(message_byte_size_start:adb.proto.AdbServerStatus)
1376   size_t total_size = 0;
1377 
1378   ::uint32_t cached_has_bits = 0;
1379   // Prevent compiler warnings about cached_has_bits being unused
1380   (void) cached_has_bits;
1381 
1382   // string version = 5;
1383   if (!this->_internal_version().empty()) {
1384     total_size += 1 +
1385       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1386         this->_internal_version());
1387   }
1388 
1389   // string build = 6;
1390   if (!this->_internal_build().empty()) {
1391     total_size += 1 +
1392       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1393         this->_internal_build());
1394   }
1395 
1396   // string executable_absolute_path = 7;
1397   if (!this->_internal_executable_absolute_path().empty()) {
1398     total_size += 1 +
1399       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1400         this->_internal_executable_absolute_path());
1401   }
1402 
1403   // string log_absolute_path = 8;
1404   if (!this->_internal_log_absolute_path().empty()) {
1405     total_size += 1 +
1406       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1407         this->_internal_log_absolute_path());
1408   }
1409 
1410   // string os = 9;
1411   if (!this->_internal_os().empty()) {
1412     total_size += 1 +
1413       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1414         this->_internal_os());
1415   }
1416 
1417   // .adb.proto.AdbServerStatus.UsbBackend usb_backend = 1;
1418   if (this->_internal_usb_backend() != 0) {
1419     total_size += 1 +
1420       ::_pbi::WireFormatLite::EnumSize(this->_internal_usb_backend());
1421   }
1422 
1423   // .adb.proto.AdbServerStatus.MdnsBackend mdns_backend = 3;
1424   if (this->_internal_mdns_backend() != 0) {
1425     total_size += 1 +
1426       ::_pbi::WireFormatLite::EnumSize(this->_internal_mdns_backend());
1427   }
1428 
1429   // bool usb_backend_forced = 2;
1430   if (this->_internal_usb_backend_forced() != 0) {
1431     total_size += 1 + 1;
1432   }
1433 
1434   // bool mdns_backend_forced = 4;
1435   if (this->_internal_mdns_backend_forced() != 0) {
1436     total_size += 1 + 1;
1437   }
1438 
1439   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
1440 }
1441 
1442 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AdbServerStatus::_class_data_ = {
1443     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
1444     AdbServerStatus::MergeImpl
1445 };
GetClassData() const1446 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AdbServerStatus::GetClassData() const { return &_class_data_; }
1447 
1448 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)1449 void AdbServerStatus::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
1450   auto* const _this = static_cast<AdbServerStatus*>(&to_msg);
1451   auto& from = static_cast<const AdbServerStatus&>(from_msg);
1452   // @@protoc_insertion_point(class_specific_merge_from_start:adb.proto.AdbServerStatus)
1453   GOOGLE_DCHECK_NE(&from, _this);
1454   ::uint32_t cached_has_bits = 0;
1455   (void) cached_has_bits;
1456 
1457   if (!from._internal_version().empty()) {
1458     _this->_internal_set_version(from._internal_version());
1459   }
1460   if (!from._internal_build().empty()) {
1461     _this->_internal_set_build(from._internal_build());
1462   }
1463   if (!from._internal_executable_absolute_path().empty()) {
1464     _this->_internal_set_executable_absolute_path(from._internal_executable_absolute_path());
1465   }
1466   if (!from._internal_log_absolute_path().empty()) {
1467     _this->_internal_set_log_absolute_path(from._internal_log_absolute_path());
1468   }
1469   if (!from._internal_os().empty()) {
1470     _this->_internal_set_os(from._internal_os());
1471   }
1472   if (from._internal_usb_backend() != 0) {
1473     _this->_internal_set_usb_backend(from._internal_usb_backend());
1474   }
1475   if (from._internal_mdns_backend() != 0) {
1476     _this->_internal_set_mdns_backend(from._internal_mdns_backend());
1477   }
1478   if (from._internal_usb_backend_forced() != 0) {
1479     _this->_internal_set_usb_backend_forced(from._internal_usb_backend_forced());
1480   }
1481   if (from._internal_mdns_backend_forced() != 0) {
1482     _this->_internal_set_mdns_backend_forced(from._internal_mdns_backend_forced());
1483   }
1484   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1485 }
1486 
CopyFrom(const AdbServerStatus & from)1487 void AdbServerStatus::CopyFrom(const AdbServerStatus& from) {
1488 // @@protoc_insertion_point(class_specific_copy_from_start:adb.proto.AdbServerStatus)
1489   if (&from == this) return;
1490   Clear();
1491   MergeFrom(from);
1492 }
1493 
IsInitialized() const1494 bool AdbServerStatus::IsInitialized() const {
1495   return true;
1496 }
1497 
InternalSwap(AdbServerStatus * other)1498 void AdbServerStatus::InternalSwap(AdbServerStatus* other) {
1499   using std::swap;
1500   auto* lhs_arena = GetArenaForAllocation();
1501   auto* rhs_arena = other->GetArenaForAllocation();
1502   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1503   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
1504       &_impl_.version_, lhs_arena,
1505       &other->_impl_.version_, rhs_arena
1506   );
1507   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
1508       &_impl_.build_, lhs_arena,
1509       &other->_impl_.build_, rhs_arena
1510   );
1511   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
1512       &_impl_.executable_absolute_path_, lhs_arena,
1513       &other->_impl_.executable_absolute_path_, rhs_arena
1514   );
1515   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
1516       &_impl_.log_absolute_path_, lhs_arena,
1517       &other->_impl_.log_absolute_path_, rhs_arena
1518   );
1519   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
1520       &_impl_.os_, lhs_arena,
1521       &other->_impl_.os_, rhs_arena
1522   );
1523   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
1524       PROTOBUF_FIELD_OFFSET(AdbServerStatus, _impl_.mdns_backend_forced_)
1525       + sizeof(AdbServerStatus::_impl_.mdns_backend_forced_)  // NOLINT
1526       - PROTOBUF_FIELD_OFFSET(AdbServerStatus, _impl_.usb_backend_)>(
1527           reinterpret_cast<char*>(&_impl_.usb_backend_),
1528           reinterpret_cast<char*>(&other->_impl_.usb_backend_));
1529 }
1530 
GetMetadata() const1531 ::PROTOBUF_NAMESPACE_ID::Metadata AdbServerStatus::GetMetadata() const {
1532   return ::_pbi::AssignDescriptors(
1533       &descriptor_table_packages_2fmodules_2fadb_2fproto_2fadb_5fhost_2eproto_getter, &descriptor_table_packages_2fmodules_2fadb_2fproto_2fadb_5fhost_2eproto_once,
1534       file_level_metadata_packages_2fmodules_2fadb_2fproto_2fadb_5fhost_2eproto[2]);
1535 }
1536 
1537 // @@protoc_insertion_point(namespace_scope)
1538 }  // namespace proto
1539 }  // namespace adb
1540 PROTOBUF_NAMESPACE_OPEN
1541 template<> PROTOBUF_NOINLINE ::adb::proto::Device*
CreateMaybeMessage(Arena * arena)1542 Arena::CreateMaybeMessage< ::adb::proto::Device >(Arena* arena) {
1543   return Arena::CreateMessageInternal< ::adb::proto::Device >(arena);
1544 }
1545 template<> PROTOBUF_NOINLINE ::adb::proto::Devices*
CreateMaybeMessage(Arena * arena)1546 Arena::CreateMaybeMessage< ::adb::proto::Devices >(Arena* arena) {
1547   return Arena::CreateMessageInternal< ::adb::proto::Devices >(arena);
1548 }
1549 template<> PROTOBUF_NOINLINE ::adb::proto::AdbServerStatus*
CreateMaybeMessage(Arena * arena)1550 Arena::CreateMaybeMessage< ::adb::proto::AdbServerStatus >(Arena* arena) {
1551   return Arena::CreateMessageInternal< ::adb::proto::AdbServerStatus >(arena);
1552 }
1553 PROTOBUF_NAMESPACE_CLOSE
1554 
1555 // @@protoc_insertion_point(global_scope)
1556 #include <google/protobuf/port_undef.inc>
1557