blob: be75597b0002e8b94255b8959e523c470bbb9295 [file] [log] [blame]
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: dmi/hw_management_service.proto
3
4#include "dmi/hw_management_service.pb.h"
5
6#include <algorithm>
7
8#include <google/protobuf/stubs/common.h>
9#include <google/protobuf/io/coded_stream.h>
10#include <google/protobuf/extension_set.h>
11#include <google/protobuf/wire_format_lite_inl.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
19extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Uuid_dmi_2fhw_2eproto;
20extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_Hardware_dmi_2fhw_2eproto;
21extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_ModifiableComponent_dmi_2fhw_2eproto;
22extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<9> scc_info_Component_dmi_2fhw_2eproto;
23extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_5fmanagement_5fservice_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_EntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto;
24extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_5fmanagement_5fservice_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_ManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto;
25namespace dmi {
26class PhysicalInventoryRequestDefaultTypeInternal {
27 public:
28 ::google::protobuf::internal::ExplicitlyConstructed<PhysicalInventoryRequest> _instance;
29} _PhysicalInventoryRequest_default_instance_;
30class PhysicalInventoryResponseDefaultTypeInternal {
31 public:
32 ::google::protobuf::internal::ExplicitlyConstructed<PhysicalInventoryResponse> _instance;
33} _PhysicalInventoryResponse_default_instance_;
34class HWComponentInfoGetRequestDefaultTypeInternal {
35 public:
36 ::google::protobuf::internal::ExplicitlyConstructed<HWComponentInfoGetRequest> _instance;
37} _HWComponentInfoGetRequest_default_instance_;
38class HWComponentInfoGetResponseDefaultTypeInternal {
39 public:
40 ::google::protobuf::internal::ExplicitlyConstructed<HWComponentInfoGetResponse> _instance;
41} _HWComponentInfoGetResponse_default_instance_;
42class HWComponentInfoSetRequestDefaultTypeInternal {
43 public:
44 ::google::protobuf::internal::ExplicitlyConstructed<HWComponentInfoSetRequest> _instance;
45} _HWComponentInfoSetRequest_default_instance_;
46class HWComponentInfoSetResponseDefaultTypeInternal {
47 public:
48 ::google::protobuf::internal::ExplicitlyConstructed<HWComponentInfoSetResponse> _instance;
49} _HWComponentInfoSetResponse_default_instance_;
50class StartManagingDeviceResponseDefaultTypeInternal {
51 public:
52 ::google::protobuf::internal::ExplicitlyConstructed<StartManagingDeviceResponse> _instance;
53} _StartManagingDeviceResponse_default_instance_;
54class StopManagingDeviceRequestDefaultTypeInternal {
55 public:
56 ::google::protobuf::internal::ExplicitlyConstructed<StopManagingDeviceRequest> _instance;
57} _StopManagingDeviceRequest_default_instance_;
58class StopManagingDeviceResponseDefaultTypeInternal {
59 public:
60 ::google::protobuf::internal::ExplicitlyConstructed<StopManagingDeviceResponse> _instance;
61} _StopManagingDeviceResponse_default_instance_;
62class ManagedDeviceInfoDefaultTypeInternal {
63 public:
64 ::google::protobuf::internal::ExplicitlyConstructed<ManagedDeviceInfo> _instance;
65} _ManagedDeviceInfo_default_instance_;
66class ManagedDevicesResponseDefaultTypeInternal {
67 public:
68 ::google::protobuf::internal::ExplicitlyConstructed<ManagedDevicesResponse> _instance;
69} _ManagedDevicesResponse_default_instance_;
70class SetLoggingEndpointRequestDefaultTypeInternal {
71 public:
72 ::google::protobuf::internal::ExplicitlyConstructed<SetLoggingEndpointRequest> _instance;
73} _SetLoggingEndpointRequest_default_instance_;
74class SetRemoteEndpointResponseDefaultTypeInternal {
75 public:
76 ::google::protobuf::internal::ExplicitlyConstructed<SetRemoteEndpointResponse> _instance;
77} _SetRemoteEndpointResponse_default_instance_;
78class GetLoggingEndpointResponseDefaultTypeInternal {
79 public:
80 ::google::protobuf::internal::ExplicitlyConstructed<GetLoggingEndpointResponse> _instance;
81} _GetLoggingEndpointResponse_default_instance_;
82class SetMsgBusEndpointRequestDefaultTypeInternal {
83 public:
84 ::google::protobuf::internal::ExplicitlyConstructed<SetMsgBusEndpointRequest> _instance;
85} _SetMsgBusEndpointRequest_default_instance_;
86class GetMsgBusEndpointResponseDefaultTypeInternal {
87 public:
88 ::google::protobuf::internal::ExplicitlyConstructed<GetMsgBusEndpointResponse> _instance;
89} _GetMsgBusEndpointResponse_default_instance_;
90class EntitiesLogLevelDefaultTypeInternal {
91 public:
92 ::google::protobuf::internal::ExplicitlyConstructed<EntitiesLogLevel> _instance;
93} _EntitiesLogLevel_default_instance_;
94class SetLogLevelRequestDefaultTypeInternal {
95 public:
96 ::google::protobuf::internal::ExplicitlyConstructed<SetLogLevelRequest> _instance;
97} _SetLogLevelRequest_default_instance_;
98class SetLogLevelResponseDefaultTypeInternal {
99 public:
100 ::google::protobuf::internal::ExplicitlyConstructed<SetLogLevelResponse> _instance;
101} _SetLogLevelResponse_default_instance_;
102class GetLogLevelRequestDefaultTypeInternal {
103 public:
104 ::google::protobuf::internal::ExplicitlyConstructed<GetLogLevelRequest> _instance;
105} _GetLogLevelRequest_default_instance_;
106class GetLogLevelResponseDefaultTypeInternal {
107 public:
108 ::google::protobuf::internal::ExplicitlyConstructed<GetLogLevelResponse> _instance;
109} _GetLogLevelResponse_default_instance_;
110class GetLoggableEntitiesRequestDefaultTypeInternal {
111 public:
112 ::google::protobuf::internal::ExplicitlyConstructed<GetLoggableEntitiesRequest> _instance;
113} _GetLoggableEntitiesRequest_default_instance_;
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +0530114class HeartbeatDefaultTypeInternal {
115 public:
116 ::google::protobuf::internal::ExplicitlyConstructed<Heartbeat> _instance;
117} _Heartbeat_default_instance_;
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530118class RebootDeviceRequestDefaultTypeInternal {
119 public:
120 ::google::protobuf::internal::ExplicitlyConstructed<RebootDeviceRequest> _instance;
121} _RebootDeviceRequest_default_instance_;
122class RebootDeviceResponseDefaultTypeInternal {
123 public:
124 ::google::protobuf::internal::ExplicitlyConstructed<RebootDeviceResponse> _instance;
125} _RebootDeviceResponse_default_instance_;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530126} // namespace dmi
127static void InitDefaultsPhysicalInventoryRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() {
128 GOOGLE_PROTOBUF_VERIFY_VERSION;
129
130 {
131 void* ptr = &::dmi::_PhysicalInventoryRequest_default_instance_;
132 new (ptr) ::dmi::PhysicalInventoryRequest();
133 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
134 }
135 ::dmi::PhysicalInventoryRequest::InitAsDefaultInstance();
136}
137
138::google::protobuf::internal::SCCInfo<1> scc_info_PhysicalInventoryRequest_dmi_2fhw_5fmanagement_5fservice_2eproto =
139 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsPhysicalInventoryRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, {
140 &scc_info_Uuid_dmi_2fhw_2eproto.base,}};
141
142static void InitDefaultsPhysicalInventoryResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() {
143 GOOGLE_PROTOBUF_VERIFY_VERSION;
144
145 {
146 void* ptr = &::dmi::_PhysicalInventoryResponse_default_instance_;
147 new (ptr) ::dmi::PhysicalInventoryResponse();
148 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
149 }
150 ::dmi::PhysicalInventoryResponse::InitAsDefaultInstance();
151}
152
153::google::protobuf::internal::SCCInfo<1> scc_info_PhysicalInventoryResponse_dmi_2fhw_5fmanagement_5fservice_2eproto =
154 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsPhysicalInventoryResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {
155 &scc_info_Hardware_dmi_2fhw_2eproto.base,}};
156
157static void InitDefaultsHWComponentInfoGetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() {
158 GOOGLE_PROTOBUF_VERIFY_VERSION;
159
160 {
161 void* ptr = &::dmi::_HWComponentInfoGetRequest_default_instance_;
162 new (ptr) ::dmi::HWComponentInfoGetRequest();
163 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
164 }
165 ::dmi::HWComponentInfoGetRequest::InitAsDefaultInstance();
166}
167
168::google::protobuf::internal::SCCInfo<1> scc_info_HWComponentInfoGetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto =
169 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsHWComponentInfoGetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, {
170 &scc_info_Uuid_dmi_2fhw_2eproto.base,}};
171
172static void InitDefaultsHWComponentInfoGetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() {
173 GOOGLE_PROTOBUF_VERIFY_VERSION;
174
175 {
176 void* ptr = &::dmi::_HWComponentInfoGetResponse_default_instance_;
177 new (ptr) ::dmi::HWComponentInfoGetResponse();
178 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
179 }
180 ::dmi::HWComponentInfoGetResponse::InitAsDefaultInstance();
181}
182
183::google::protobuf::internal::SCCInfo<1> scc_info_HWComponentInfoGetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto =
184 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsHWComponentInfoGetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {
185 &scc_info_Component_dmi_2fhw_2eproto.base,}};
186
187static void InitDefaultsHWComponentInfoSetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() {
188 GOOGLE_PROTOBUF_VERIFY_VERSION;
189
190 {
191 void* ptr = &::dmi::_HWComponentInfoSetRequest_default_instance_;
192 new (ptr) ::dmi::HWComponentInfoSetRequest();
193 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
194 }
195 ::dmi::HWComponentInfoSetRequest::InitAsDefaultInstance();
196}
197
198::google::protobuf::internal::SCCInfo<2> scc_info_HWComponentInfoSetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto =
199 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsHWComponentInfoSetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, {
200 &scc_info_Uuid_dmi_2fhw_2eproto.base,
201 &scc_info_ModifiableComponent_dmi_2fhw_2eproto.base,}};
202
203static void InitDefaultsHWComponentInfoSetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() {
204 GOOGLE_PROTOBUF_VERIFY_VERSION;
205
206 {
207 void* ptr = &::dmi::_HWComponentInfoSetResponse_default_instance_;
208 new (ptr) ::dmi::HWComponentInfoSetResponse();
209 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
210 }
211 ::dmi::HWComponentInfoSetResponse::InitAsDefaultInstance();
212}
213
214::google::protobuf::internal::SCCInfo<0> scc_info_HWComponentInfoSetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto =
215 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsHWComponentInfoSetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}};
216
217static void InitDefaultsStartManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() {
218 GOOGLE_PROTOBUF_VERIFY_VERSION;
219
220 {
221 void* ptr = &::dmi::_StartManagingDeviceResponse_default_instance_;
222 new (ptr) ::dmi::StartManagingDeviceResponse();
223 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
224 }
225 ::dmi::StartManagingDeviceResponse::InitAsDefaultInstance();
226}
227
228::google::protobuf::internal::SCCInfo<1> scc_info_StartManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto =
229 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsStartManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {
230 &scc_info_Uuid_dmi_2fhw_2eproto.base,}};
231
232static void InitDefaultsStopManagingDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() {
233 GOOGLE_PROTOBUF_VERIFY_VERSION;
234
235 {
236 void* ptr = &::dmi::_StopManagingDeviceRequest_default_instance_;
237 new (ptr) ::dmi::StopManagingDeviceRequest();
238 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
239 }
240 ::dmi::StopManagingDeviceRequest::InitAsDefaultInstance();
241}
242
243::google::protobuf::internal::SCCInfo<0> scc_info_StopManagingDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto =
244 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStopManagingDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}};
245
246static void InitDefaultsStopManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() {
247 GOOGLE_PROTOBUF_VERIFY_VERSION;
248
249 {
250 void* ptr = &::dmi::_StopManagingDeviceResponse_default_instance_;
251 new (ptr) ::dmi::StopManagingDeviceResponse();
252 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
253 }
254 ::dmi::StopManagingDeviceResponse::InitAsDefaultInstance();
255}
256
257::google::protobuf::internal::SCCInfo<0> scc_info_StopManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto =
258 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStopManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}};
259
260static void InitDefaultsManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto() {
261 GOOGLE_PROTOBUF_VERIFY_VERSION;
262
263 {
264 void* ptr = &::dmi::_ManagedDeviceInfo_default_instance_;
265 new (ptr) ::dmi::ManagedDeviceInfo();
266 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
267 }
268 ::dmi::ManagedDeviceInfo::InitAsDefaultInstance();
269}
270
271::google::protobuf::internal::SCCInfo<2> scc_info_ManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto =
272 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto}, {
273 &scc_info_ModifiableComponent_dmi_2fhw_2eproto.base,
274 &scc_info_Uuid_dmi_2fhw_2eproto.base,}};
275
276static void InitDefaultsManagedDevicesResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() {
277 GOOGLE_PROTOBUF_VERIFY_VERSION;
278
279 {
280 void* ptr = &::dmi::_ManagedDevicesResponse_default_instance_;
281 new (ptr) ::dmi::ManagedDevicesResponse();
282 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
283 }
284 ::dmi::ManagedDevicesResponse::InitAsDefaultInstance();
285}
286
287::google::protobuf::internal::SCCInfo<1> scc_info_ManagedDevicesResponse_dmi_2fhw_5fmanagement_5fservice_2eproto =
288 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsManagedDevicesResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {
289 &scc_info_ManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto.base,}};
290
291static void InitDefaultsSetLoggingEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() {
292 GOOGLE_PROTOBUF_VERIFY_VERSION;
293
294 {
295 void* ptr = &::dmi::_SetLoggingEndpointRequest_default_instance_;
296 new (ptr) ::dmi::SetLoggingEndpointRequest();
297 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
298 }
299 ::dmi::SetLoggingEndpointRequest::InitAsDefaultInstance();
300}
301
302::google::protobuf::internal::SCCInfo<1> scc_info_SetLoggingEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto =
303 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsSetLoggingEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, {
304 &scc_info_Uuid_dmi_2fhw_2eproto.base,}};
305
306static void InitDefaultsSetRemoteEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() {
307 GOOGLE_PROTOBUF_VERIFY_VERSION;
308
309 {
310 void* ptr = &::dmi::_SetRemoteEndpointResponse_default_instance_;
311 new (ptr) ::dmi::SetRemoteEndpointResponse();
312 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
313 }
314 ::dmi::SetRemoteEndpointResponse::InitAsDefaultInstance();
315}
316
317::google::protobuf::internal::SCCInfo<0> scc_info_SetRemoteEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto =
318 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSetRemoteEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}};
319
320static void InitDefaultsGetLoggingEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() {
321 GOOGLE_PROTOBUF_VERIFY_VERSION;
322
323 {
324 void* ptr = &::dmi::_GetLoggingEndpointResponse_default_instance_;
325 new (ptr) ::dmi::GetLoggingEndpointResponse();
326 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
327 }
328 ::dmi::GetLoggingEndpointResponse::InitAsDefaultInstance();
329}
330
331::google::protobuf::internal::SCCInfo<0> scc_info_GetLoggingEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto =
332 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetLoggingEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}};
333
334static void InitDefaultsSetMsgBusEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() {
335 GOOGLE_PROTOBUF_VERIFY_VERSION;
336
337 {
338 void* ptr = &::dmi::_SetMsgBusEndpointRequest_default_instance_;
339 new (ptr) ::dmi::SetMsgBusEndpointRequest();
340 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
341 }
342 ::dmi::SetMsgBusEndpointRequest::InitAsDefaultInstance();
343}
344
345::google::protobuf::internal::SCCInfo<0> scc_info_SetMsgBusEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto =
346 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSetMsgBusEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}};
347
348static void InitDefaultsGetMsgBusEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() {
349 GOOGLE_PROTOBUF_VERIFY_VERSION;
350
351 {
352 void* ptr = &::dmi::_GetMsgBusEndpointResponse_default_instance_;
353 new (ptr) ::dmi::GetMsgBusEndpointResponse();
354 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
355 }
356 ::dmi::GetMsgBusEndpointResponse::InitAsDefaultInstance();
357}
358
359::google::protobuf::internal::SCCInfo<0> scc_info_GetMsgBusEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto =
360 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetMsgBusEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}};
361
362static void InitDefaultsEntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto() {
363 GOOGLE_PROTOBUF_VERIFY_VERSION;
364
365 {
366 void* ptr = &::dmi::_EntitiesLogLevel_default_instance_;
367 new (ptr) ::dmi::EntitiesLogLevel();
368 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
369 }
370 ::dmi::EntitiesLogLevel::InitAsDefaultInstance();
371}
372
373::google::protobuf::internal::SCCInfo<0> scc_info_EntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto =
374 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}};
375
376static void InitDefaultsSetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() {
377 GOOGLE_PROTOBUF_VERIFY_VERSION;
378
379 {
380 void* ptr = &::dmi::_SetLogLevelRequest_default_instance_;
381 new (ptr) ::dmi::SetLogLevelRequest();
382 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
383 }
384 ::dmi::SetLogLevelRequest::InitAsDefaultInstance();
385}
386
387::google::protobuf::internal::SCCInfo<2> scc_info_SetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto =
388 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsSetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, {
389 &scc_info_Uuid_dmi_2fhw_2eproto.base,
390 &scc_info_EntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto.base,}};
391
392static void InitDefaultsSetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() {
393 GOOGLE_PROTOBUF_VERIFY_VERSION;
394
395 {
396 void* ptr = &::dmi::_SetLogLevelResponse_default_instance_;
397 new (ptr) ::dmi::SetLogLevelResponse();
398 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
399 }
400 ::dmi::SetLogLevelResponse::InitAsDefaultInstance();
401}
402
403::google::protobuf::internal::SCCInfo<1> scc_info_SetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto =
404 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsSetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {
405 &scc_info_Uuid_dmi_2fhw_2eproto.base,}};
406
407static void InitDefaultsGetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() {
408 GOOGLE_PROTOBUF_VERIFY_VERSION;
409
410 {
411 void* ptr = &::dmi::_GetLogLevelRequest_default_instance_;
412 new (ptr) ::dmi::GetLogLevelRequest();
413 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
414 }
415 ::dmi::GetLogLevelRequest::InitAsDefaultInstance();
416}
417
418::google::protobuf::internal::SCCInfo<1> scc_info_GetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto =
419 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, {
420 &scc_info_Uuid_dmi_2fhw_2eproto.base,}};
421
422static void InitDefaultsGetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() {
423 GOOGLE_PROTOBUF_VERIFY_VERSION;
424
425 {
426 void* ptr = &::dmi::_GetLogLevelResponse_default_instance_;
427 new (ptr) ::dmi::GetLogLevelResponse();
428 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
429 }
430 ::dmi::GetLogLevelResponse::InitAsDefaultInstance();
431}
432
433::google::protobuf::internal::SCCInfo<2> scc_info_GetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto =
434 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsGetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {
435 &scc_info_Uuid_dmi_2fhw_2eproto.base,
436 &scc_info_EntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto.base,}};
437
438static void InitDefaultsGetLoggableEntitiesRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() {
439 GOOGLE_PROTOBUF_VERIFY_VERSION;
440
441 {
442 void* ptr = &::dmi::_GetLoggableEntitiesRequest_default_instance_;
443 new (ptr) ::dmi::GetLoggableEntitiesRequest();
444 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
445 }
446 ::dmi::GetLoggableEntitiesRequest::InitAsDefaultInstance();
447}
448
449::google::protobuf::internal::SCCInfo<1> scc_info_GetLoggableEntitiesRequest_dmi_2fhw_5fmanagement_5fservice_2eproto =
450 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetLoggableEntitiesRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, {
451 &scc_info_Uuid_dmi_2fhw_2eproto.base,}};
452
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +0530453static void InitDefaultsHeartbeat_dmi_2fhw_5fmanagement_5fservice_2eproto() {
454 GOOGLE_PROTOBUF_VERIFY_VERSION;
455
456 {
457 void* ptr = &::dmi::_Heartbeat_default_instance_;
458 new (ptr) ::dmi::Heartbeat();
459 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
460 }
461 ::dmi::Heartbeat::InitAsDefaultInstance();
462}
463
464::google::protobuf::internal::SCCInfo<0> scc_info_Heartbeat_dmi_2fhw_5fmanagement_5fservice_2eproto =
465 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsHeartbeat_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}};
466
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530467static void InitDefaultsRebootDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() {
468 GOOGLE_PROTOBUF_VERIFY_VERSION;
469
470 {
471 void* ptr = &::dmi::_RebootDeviceRequest_default_instance_;
472 new (ptr) ::dmi::RebootDeviceRequest();
473 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
474 }
475 ::dmi::RebootDeviceRequest::InitAsDefaultInstance();
476}
477
478::google::protobuf::internal::SCCInfo<1> scc_info_RebootDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto =
479 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsRebootDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, {
480 &scc_info_Uuid_dmi_2fhw_2eproto.base,}};
481
482static void InitDefaultsRebootDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() {
483 GOOGLE_PROTOBUF_VERIFY_VERSION;
484
485 {
486 void* ptr = &::dmi::_RebootDeviceResponse_default_instance_;
487 new (ptr) ::dmi::RebootDeviceResponse();
488 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
489 }
490 ::dmi::RebootDeviceResponse::InitAsDefaultInstance();
491}
492
493::google::protobuf::internal::SCCInfo<0> scc_info_RebootDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto =
494 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRebootDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}};
495
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530496void InitDefaults_dmi_2fhw_5fmanagement_5fservice_2eproto() {
497 ::google::protobuf::internal::InitSCC(&scc_info_PhysicalInventoryRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
498 ::google::protobuf::internal::InitSCC(&scc_info_PhysicalInventoryResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
499 ::google::protobuf::internal::InitSCC(&scc_info_HWComponentInfoGetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
500 ::google::protobuf::internal::InitSCC(&scc_info_HWComponentInfoGetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
501 ::google::protobuf::internal::InitSCC(&scc_info_HWComponentInfoSetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
502 ::google::protobuf::internal::InitSCC(&scc_info_HWComponentInfoSetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
503 ::google::protobuf::internal::InitSCC(&scc_info_StartManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
504 ::google::protobuf::internal::InitSCC(&scc_info_StopManagingDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
505 ::google::protobuf::internal::InitSCC(&scc_info_StopManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
506 ::google::protobuf::internal::InitSCC(&scc_info_ManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
507 ::google::protobuf::internal::InitSCC(&scc_info_ManagedDevicesResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
508 ::google::protobuf::internal::InitSCC(&scc_info_SetLoggingEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
509 ::google::protobuf::internal::InitSCC(&scc_info_SetRemoteEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
510 ::google::protobuf::internal::InitSCC(&scc_info_GetLoggingEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
511 ::google::protobuf::internal::InitSCC(&scc_info_SetMsgBusEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
512 ::google::protobuf::internal::InitSCC(&scc_info_GetMsgBusEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
513 ::google::protobuf::internal::InitSCC(&scc_info_EntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
514 ::google::protobuf::internal::InitSCC(&scc_info_SetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
515 ::google::protobuf::internal::InitSCC(&scc_info_SetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
516 ::google::protobuf::internal::InitSCC(&scc_info_GetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
517 ::google::protobuf::internal::InitSCC(&scc_info_GetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
518 ::google::protobuf::internal::InitSCC(&scc_info_GetLoggableEntitiesRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +0530519 ::google::protobuf::internal::InitSCC(&scc_info_Heartbeat_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530520 ::google::protobuf::internal::InitSCC(&scc_info_RebootDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
521 ::google::protobuf::internal::InitSCC(&scc_info_RebootDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530522}
523
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530524::google::protobuf::Metadata file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[25];
525const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[12];
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530526constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto = nullptr;
527
528const ::google::protobuf::uint32 TableStruct_dmi_2fhw_5fmanagement_5fservice_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
529 ~0u, // no _has_bits_
530 PROTOBUF_FIELD_OFFSET(::dmi::PhysicalInventoryRequest, _internal_metadata_),
531 ~0u, // no _extensions_
532 ~0u, // no _oneof_case_
533 ~0u, // no _weak_field_map_
534 PROTOBUF_FIELD_OFFSET(::dmi::PhysicalInventoryRequest, device_uuid_),
535 ~0u, // no _has_bits_
536 PROTOBUF_FIELD_OFFSET(::dmi::PhysicalInventoryResponse, _internal_metadata_),
537 ~0u, // no _extensions_
538 ~0u, // no _oneof_case_
539 ~0u, // no _weak_field_map_
540 PROTOBUF_FIELD_OFFSET(::dmi::PhysicalInventoryResponse, status_),
541 PROTOBUF_FIELD_OFFSET(::dmi::PhysicalInventoryResponse, reason_),
542 PROTOBUF_FIELD_OFFSET(::dmi::PhysicalInventoryResponse, inventory_),
543 PROTOBUF_FIELD_OFFSET(::dmi::PhysicalInventoryResponse, reason_detail_),
544 ~0u, // no _has_bits_
545 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetRequest, _internal_metadata_),
546 ~0u, // no _extensions_
547 ~0u, // no _oneof_case_
548 ~0u, // no _weak_field_map_
549 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetRequest, device_uuid_),
550 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetRequest, component_uuid_),
551 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetRequest, component_name_),
552 ~0u, // no _has_bits_
553 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetResponse, _internal_metadata_),
554 ~0u, // no _extensions_
555 ~0u, // no _oneof_case_
556 ~0u, // no _weak_field_map_
557 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetResponse, status_),
558 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetResponse, reason_),
559 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetResponse, component_),
560 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetResponse, reason_detail_),
561 ~0u, // no _has_bits_
562 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetRequest, _internal_metadata_),
563 ~0u, // no _extensions_
564 ~0u, // no _oneof_case_
565 ~0u, // no _weak_field_map_
566 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetRequest, device_uuid_),
567 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetRequest, component_uuid_),
568 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetRequest, component_name_),
569 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetRequest, changes_),
570 ~0u, // no _has_bits_
571 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetResponse, _internal_metadata_),
572 ~0u, // no _extensions_
573 ~0u, // no _oneof_case_
574 ~0u, // no _weak_field_map_
575 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetResponse, status_),
576 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetResponse, reason_),
577 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetResponse, reason_detail_),
578 ~0u, // no _has_bits_
579 PROTOBUF_FIELD_OFFSET(::dmi::StartManagingDeviceResponse, _internal_metadata_),
580 ~0u, // no _extensions_
581 ~0u, // no _oneof_case_
582 ~0u, // no _weak_field_map_
583 PROTOBUF_FIELD_OFFSET(::dmi::StartManagingDeviceResponse, status_),
584 PROTOBUF_FIELD_OFFSET(::dmi::StartManagingDeviceResponse, reason_),
585 PROTOBUF_FIELD_OFFSET(::dmi::StartManagingDeviceResponse, device_uuid_),
586 PROTOBUF_FIELD_OFFSET(::dmi::StartManagingDeviceResponse, reason_detail_),
587 ~0u, // no _has_bits_
588 PROTOBUF_FIELD_OFFSET(::dmi::StopManagingDeviceRequest, _internal_metadata_),
589 ~0u, // no _extensions_
590 ~0u, // no _oneof_case_
591 ~0u, // no _weak_field_map_
592 PROTOBUF_FIELD_OFFSET(::dmi::StopManagingDeviceRequest, name_),
593 ~0u, // no _has_bits_
594 PROTOBUF_FIELD_OFFSET(::dmi::StopManagingDeviceResponse, _internal_metadata_),
595 ~0u, // no _extensions_
596 ~0u, // no _oneof_case_
597 ~0u, // no _weak_field_map_
598 PROTOBUF_FIELD_OFFSET(::dmi::StopManagingDeviceResponse, status_),
599 PROTOBUF_FIELD_OFFSET(::dmi::StopManagingDeviceResponse, reason_),
600 PROTOBUF_FIELD_OFFSET(::dmi::StopManagingDeviceResponse, reason_detail_),
601 ~0u, // no _has_bits_
602 PROTOBUF_FIELD_OFFSET(::dmi::ManagedDeviceInfo, _internal_metadata_),
603 ~0u, // no _extensions_
604 ~0u, // no _oneof_case_
605 ~0u, // no _weak_field_map_
606 PROTOBUF_FIELD_OFFSET(::dmi::ManagedDeviceInfo, info_),
607 PROTOBUF_FIELD_OFFSET(::dmi::ManagedDeviceInfo, device_uuid_),
608 ~0u, // no _has_bits_
609 PROTOBUF_FIELD_OFFSET(::dmi::ManagedDevicesResponse, _internal_metadata_),
610 ~0u, // no _extensions_
611 ~0u, // no _oneof_case_
612 ~0u, // no _weak_field_map_
613 PROTOBUF_FIELD_OFFSET(::dmi::ManagedDevicesResponse, status_),
614 PROTOBUF_FIELD_OFFSET(::dmi::ManagedDevicesResponse, reason_),
615 PROTOBUF_FIELD_OFFSET(::dmi::ManagedDevicesResponse, devices_),
616 ~0u, // no _has_bits_
617 PROTOBUF_FIELD_OFFSET(::dmi::SetLoggingEndpointRequest, _internal_metadata_),
618 ~0u, // no _extensions_
619 ~0u, // no _oneof_case_
620 ~0u, // no _weak_field_map_
621 PROTOBUF_FIELD_OFFSET(::dmi::SetLoggingEndpointRequest, device_uuid_),
622 PROTOBUF_FIELD_OFFSET(::dmi::SetLoggingEndpointRequest, logging_endpoint_),
623 PROTOBUF_FIELD_OFFSET(::dmi::SetLoggingEndpointRequest, logging_protocol_),
624 ~0u, // no _has_bits_
625 PROTOBUF_FIELD_OFFSET(::dmi::SetRemoteEndpointResponse, _internal_metadata_),
626 ~0u, // no _extensions_
627 ~0u, // no _oneof_case_
628 ~0u, // no _weak_field_map_
629 PROTOBUF_FIELD_OFFSET(::dmi::SetRemoteEndpointResponse, status_),
630 PROTOBUF_FIELD_OFFSET(::dmi::SetRemoteEndpointResponse, reason_),
631 PROTOBUF_FIELD_OFFSET(::dmi::SetRemoteEndpointResponse, reason_detail_),
632 ~0u, // no _has_bits_
633 PROTOBUF_FIELD_OFFSET(::dmi::GetLoggingEndpointResponse, _internal_metadata_),
634 ~0u, // no _extensions_
635 ~0u, // no _oneof_case_
636 ~0u, // no _weak_field_map_
637 PROTOBUF_FIELD_OFFSET(::dmi::GetLoggingEndpointResponse, status_),
638 PROTOBUF_FIELD_OFFSET(::dmi::GetLoggingEndpointResponse, reason_),
639 PROTOBUF_FIELD_OFFSET(::dmi::GetLoggingEndpointResponse, logging_endpoint_),
640 PROTOBUF_FIELD_OFFSET(::dmi::GetLoggingEndpointResponse, logging_protocol_),
641 PROTOBUF_FIELD_OFFSET(::dmi::GetLoggingEndpointResponse, reason_detail_),
642 ~0u, // no _has_bits_
643 PROTOBUF_FIELD_OFFSET(::dmi::SetMsgBusEndpointRequest, _internal_metadata_),
644 ~0u, // no _extensions_
645 ~0u, // no _oneof_case_
646 ~0u, // no _weak_field_map_
647 PROTOBUF_FIELD_OFFSET(::dmi::SetMsgBusEndpointRequest, msgbus_endpoint_),
648 ~0u, // no _has_bits_
649 PROTOBUF_FIELD_OFFSET(::dmi::GetMsgBusEndpointResponse, _internal_metadata_),
650 ~0u, // no _extensions_
651 ~0u, // no _oneof_case_
652 ~0u, // no _weak_field_map_
653 PROTOBUF_FIELD_OFFSET(::dmi::GetMsgBusEndpointResponse, status_),
654 PROTOBUF_FIELD_OFFSET(::dmi::GetMsgBusEndpointResponse, reason_),
655 PROTOBUF_FIELD_OFFSET(::dmi::GetMsgBusEndpointResponse, msgbus_endpoint_),
656 PROTOBUF_FIELD_OFFSET(::dmi::GetMsgBusEndpointResponse, reason_detail_),
657 ~0u, // no _has_bits_
658 PROTOBUF_FIELD_OFFSET(::dmi::EntitiesLogLevel, _internal_metadata_),
659 ~0u, // no _extensions_
660 ~0u, // no _oneof_case_
661 ~0u, // no _weak_field_map_
662 PROTOBUF_FIELD_OFFSET(::dmi::EntitiesLogLevel, loglevel_),
663 PROTOBUF_FIELD_OFFSET(::dmi::EntitiesLogLevel, entities_),
664 ~0u, // no _has_bits_
665 PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelRequest, _internal_metadata_),
666 ~0u, // no _extensions_
667 ~0u, // no _oneof_case_
668 ~0u, // no _weak_field_map_
669 PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelRequest, device_uuid_),
670 PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelRequest, loglevels_),
671 ~0u, // no _has_bits_
672 PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelResponse, _internal_metadata_),
673 ~0u, // no _extensions_
674 ~0u, // no _oneof_case_
675 ~0u, // no _weak_field_map_
676 PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelResponse, device_uuid_),
677 PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelResponse, status_),
678 PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelResponse, reason_),
679 PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelResponse, reason_detail_),
680 ~0u, // no _has_bits_
681 PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelRequest, _internal_metadata_),
682 ~0u, // no _extensions_
683 ~0u, // no _oneof_case_
684 ~0u, // no _weak_field_map_
685 PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelRequest, device_uuid_),
686 PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelRequest, entities_),
687 ~0u, // no _has_bits_
688 PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelResponse, _internal_metadata_),
689 ~0u, // no _extensions_
690 ~0u, // no _oneof_case_
691 ~0u, // no _weak_field_map_
692 PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelResponse, device_uuid_),
693 PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelResponse, loglevels_),
694 PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelResponse, status_),
695 PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelResponse, reason_),
696 PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelResponse, reason_detail_),
697 ~0u, // no _has_bits_
698 PROTOBUF_FIELD_OFFSET(::dmi::GetLoggableEntitiesRequest, _internal_metadata_),
699 ~0u, // no _extensions_
700 ~0u, // no _oneof_case_
701 ~0u, // no _weak_field_map_
702 PROTOBUF_FIELD_OFFSET(::dmi::GetLoggableEntitiesRequest, device_uuid_),
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +0530703 ~0u, // no _has_bits_
704 PROTOBUF_FIELD_OFFSET(::dmi::Heartbeat, _internal_metadata_),
705 ~0u, // no _extensions_
706 ~0u, // no _oneof_case_
707 ~0u, // no _weak_field_map_
708 PROTOBUF_FIELD_OFFSET(::dmi::Heartbeat, heartbeat_signature_),
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530709 ~0u, // no _has_bits_
710 PROTOBUF_FIELD_OFFSET(::dmi::RebootDeviceRequest, _internal_metadata_),
711 ~0u, // no _extensions_
712 ~0u, // no _oneof_case_
713 ~0u, // no _weak_field_map_
714 PROTOBUF_FIELD_OFFSET(::dmi::RebootDeviceRequest, device_uuid_),
715 ~0u, // no _has_bits_
716 PROTOBUF_FIELD_OFFSET(::dmi::RebootDeviceResponse, _internal_metadata_),
717 ~0u, // no _extensions_
718 ~0u, // no _oneof_case_
719 ~0u, // no _weak_field_map_
720 PROTOBUF_FIELD_OFFSET(::dmi::RebootDeviceResponse, status_),
721 PROTOBUF_FIELD_OFFSET(::dmi::RebootDeviceResponse, reason_),
722 PROTOBUF_FIELD_OFFSET(::dmi::RebootDeviceResponse, reason_detail_),
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530723};
724static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
725 { 0, -1, sizeof(::dmi::PhysicalInventoryRequest)},
726 { 6, -1, sizeof(::dmi::PhysicalInventoryResponse)},
727 { 15, -1, sizeof(::dmi::HWComponentInfoGetRequest)},
728 { 23, -1, sizeof(::dmi::HWComponentInfoGetResponse)},
729 { 32, -1, sizeof(::dmi::HWComponentInfoSetRequest)},
730 { 41, -1, sizeof(::dmi::HWComponentInfoSetResponse)},
731 { 49, -1, sizeof(::dmi::StartManagingDeviceResponse)},
732 { 58, -1, sizeof(::dmi::StopManagingDeviceRequest)},
733 { 64, -1, sizeof(::dmi::StopManagingDeviceResponse)},
734 { 72, -1, sizeof(::dmi::ManagedDeviceInfo)},
735 { 79, -1, sizeof(::dmi::ManagedDevicesResponse)},
736 { 87, -1, sizeof(::dmi::SetLoggingEndpointRequest)},
737 { 95, -1, sizeof(::dmi::SetRemoteEndpointResponse)},
738 { 103, -1, sizeof(::dmi::GetLoggingEndpointResponse)},
739 { 113, -1, sizeof(::dmi::SetMsgBusEndpointRequest)},
740 { 119, -1, sizeof(::dmi::GetMsgBusEndpointResponse)},
741 { 128, -1, sizeof(::dmi::EntitiesLogLevel)},
742 { 135, -1, sizeof(::dmi::SetLogLevelRequest)},
743 { 142, -1, sizeof(::dmi::SetLogLevelResponse)},
744 { 151, -1, sizeof(::dmi::GetLogLevelRequest)},
745 { 158, -1, sizeof(::dmi::GetLogLevelResponse)},
746 { 168, -1, sizeof(::dmi::GetLoggableEntitiesRequest)},
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +0530747 { 174, -1, sizeof(::dmi::Heartbeat)},
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530748 { 180, -1, sizeof(::dmi::RebootDeviceRequest)},
749 { 186, -1, sizeof(::dmi::RebootDeviceResponse)},
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530750};
751
752static ::google::protobuf::Message const * const file_default_instances[] = {
753 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_PhysicalInventoryRequest_default_instance_),
754 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_PhysicalInventoryResponse_default_instance_),
755 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_HWComponentInfoGetRequest_default_instance_),
756 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_HWComponentInfoGetResponse_default_instance_),
757 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_HWComponentInfoSetRequest_default_instance_),
758 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_HWComponentInfoSetResponse_default_instance_),
759 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_StartManagingDeviceResponse_default_instance_),
760 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_StopManagingDeviceRequest_default_instance_),
761 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_StopManagingDeviceResponse_default_instance_),
762 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_ManagedDeviceInfo_default_instance_),
763 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_ManagedDevicesResponse_default_instance_),
764 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_SetLoggingEndpointRequest_default_instance_),
765 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_SetRemoteEndpointResponse_default_instance_),
766 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_GetLoggingEndpointResponse_default_instance_),
767 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_SetMsgBusEndpointRequest_default_instance_),
768 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_GetMsgBusEndpointResponse_default_instance_),
769 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_EntitiesLogLevel_default_instance_),
770 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_SetLogLevelRequest_default_instance_),
771 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_SetLogLevelResponse_default_instance_),
772 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_GetLogLevelRequest_default_instance_),
773 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_GetLogLevelResponse_default_instance_),
774 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_GetLoggableEntitiesRequest_default_instance_),
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +0530775 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_Heartbeat_default_instance_),
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530776 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_RebootDeviceRequest_default_instance_),
777 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_RebootDeviceResponse_default_instance_),
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530778};
779
780::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto = {
781 {}, AddDescriptors_dmi_2fhw_5fmanagement_5fservice_2eproto, "dmi/hw_management_service.proto", schemas,
782 file_default_instances, TableStruct_dmi_2fhw_5fmanagement_5fservice_2eproto::offsets,
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530783 file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto, 25, file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto, file_level_service_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto,
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530784};
785
786const char descriptor_table_protodef_dmi_2fhw_5fmanagement_5fservice_2eproto[] =
787 "\n\037dmi/hw_management_service.proto\022\003dmi\032\021"
788 "dmi/commons.proto\032\014dmi/hw.proto\032\033google/"
789 "protobuf/empty.proto\":\n\030PhysicalInventor"
790 "yRequest\022\036\n\013device_uuid\030\001 \001(\0132\t.dmi.Uuid"
791 "\"\210\002\n\031PhysicalInventoryResponse\022\033\n\006status"
792 "\030\001 \001(\0162\013.dmi.Status\0225\n\006reason\030\002 \001(\0162%.dm"
793 "i.PhysicalInventoryResponse.Reason\022 \n\tin"
794 "ventory\030\003 \001(\0132\r.dmi.Hardware\022\025\n\rreason_d"
795 "etail\030\004 \001(\t\"^\n\006Reason\022\024\n\020UNDEFINED_REASO"
796 "N\020\000\022\022\n\016UNKNOWN_DEVICE\020\001\022\022\n\016INTERNAL_ERRO"
797 "R\020\002\022\026\n\022DEVICE_UNREACHABLE\020\003\"v\n\031HWCompone"
798 "ntInfoGetRequest\022\036\n\013device_uuid\030\001 \001(\0132\t."
799 "dmi.Uuid\022!\n\016component_uuid\030\002 \001(\0132\t.dmi.U"
800 "uid\022\026\n\016component_name\030\003 \001(\t\"\242\002\n\032HWCompon"
801 "entInfoGetResponse\022\033\n\006status\030\001 \001(\0162\013.dmi"
802 ".Status\0226\n\006reason\030\002 \001(\0162&.dmi.HWComponen"
803 "tInfoGetResponse.Reason\022!\n\tcomponent\030\003 \001"
804 "(\0132\016.dmi.Component\022\025\n\rreason_detail\030\004 \001("
805 "\t\"u\n\006Reason\022\024\n\020UNDEFINED_REASON\020\000\022\022\n\016UNK"
806 "NOWN_DEVICE\020\001\022\025\n\021UNKNOWN_COMPONENT\020\002\022\022\n\016"
807 "INTERNAL_ERROR\020\003\022\026\n\022DEVICE_UNREACHABLE\020\004"
808 "\"\241\001\n\031HWComponentInfoSetRequest\022\036\n\013device"
809 "_uuid\030\001 \001(\0132\t.dmi.Uuid\022!\n\016component_uuid"
810 "\030\002 \001(\0132\t.dmi.Uuid\022\026\n\016component_name\030\003 \001("
811 "\t\022)\n\007changes\030\004 \001(\0132\030.dmi.ModifiableCompo"
812 "nent\"\224\002\n\032HWComponentInfoSetResponse\022\033\n\006s"
813 "tatus\030\001 \001(\0162\013.dmi.Status\0226\n\006reason\030\002 \001(\016"
814 "2&.dmi.HWComponentInfoSetResponse.Reason"
815 "\022\025\n\rreason_detail\030\003 \001(\t\"\211\001\n\006Reason\022\024\n\020UN"
816 "DEFINED_REASON\020\000\022\022\n\016UNKNOWN_DEVICE\020\001\022\025\n\021"
817 "UNKNOWN_COMPONENT\020\002\022\022\n\016INVALID_PARAMS\020\003\022"
818 "\022\n\016INTERNAL_ERROR\020\004\022\026\n\022DEVICE_UNREACHABL"
amit.ghosh6bdb0f72021-06-02 14:42:29 +0200819 "E\020\005\"\347\002\n\033StartManagingDeviceResponse\022\033\n\006s"
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530820 "tatus\030\001 \001(\0162\013.dmi.Status\0227\n\006reason\030\002 \001(\016"
821 "2\'.dmi.StartManagingDeviceResponse.Reaso"
822 "n\022\036\n\013device_uuid\030\003 \001(\0132\t.dmi.Uuid\022\025\n\rrea"
amit.ghosh6bdb0f72021-06-02 14:42:29 +0200823 "son_detail\030\004 \001(\t\"\272\001\n\006Reason\022\024\n\020UNDEFINED"
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530824 "_REASON\020\000\022\032\n\026DEVICE_ALREADY_MANAGED\020\001\022!\n"
825 "\035OPERATION_ALREADY_IN_PROGRESS\020\002\022\022\n\016INVA"
amit.ghosh6bdb0f72021-06-02 14:42:29 +0200826 "LID_PARAMS\020\003\022\022\n\016INTERNAL_ERROR\020\004\022\032\n\026AUTH"
827 "ENTICATION_FAILURE\020\005\022\027\n\023INCOMPATIBLE_DEV"
828 "ICE\020\006\")\n\031StopManagingDeviceRequest\022\014\n\004na"
829 "me\030\001 \001(\t\"\274\001\n\032StopManagingDeviceResponse\022"
830 "\033\n\006status\030\001 \001(\0162\013.dmi.Status\0226\n\006reason\030\002"
831 " \001(\0162&.dmi.StopManagingDeviceResponse.Re"
832 "ason\022\025\n\rreason_detail\030\003 \001(\t\"2\n\006Reason\022\024\n"
833 "\020UNDEFINED_REASON\020\000\022\022\n\016UNKNOWN_DEVICE\020\001\""
834 "[\n\021ManagedDeviceInfo\022&\n\004info\030\001 \001(\0132\030.dmi"
835 ".ModifiableComponent\022\036\n\013device_uuid\030\002 \001("
836 "\0132\t.dmi.Uuid\"\306\001\n\026ManagedDevicesResponse\022"
837 "\033\n\006status\030\001 \001(\0162\013.dmi.Status\0222\n\006reason\030\002"
838 " \001(\0162\".dmi.ManagedDevicesResponse.Reason"
839 "\022\'\n\007devices\030\003 \003(\0132\026.dmi.ManagedDeviceInf"
840 "o\"2\n\006Reason\022\024\n\020UNDEFINED_REASON\020\000\022\022\n\016INT"
841 "ERNAL_ERROR\020\001\"o\n\031SetLoggingEndpointReque"
842 "st\022\036\n\013device_uuid\030\001 \001(\0132\t.dmi.Uuid\022\030\n\020lo"
843 "gging_endpoint\030\002 \001(\t\022\030\n\020logging_protocol"
844 "\030\003 \001(\t\"\303\002\n\031SetRemoteEndpointResponse\022\033\n\006"
845 "status\030\001 \001(\0162\013.dmi.Status\0225\n\006reason\030\002 \001("
846 "\0162%.dmi.SetRemoteEndpointResponse.Reason"
847 "\022\025\n\rreason_detail\030\003 \001(\t\"\272\001\n\006Reason\022\024\n\020UN"
848 "DEFINED_REASON\020\000\022\022\n\016UNKNOWN_DEVICE\020\001\022\022\n\016"
849 "INTERNAL_ERROR\020\002\022\032\n\026LOGGING_ENDPOINT_ERR"
850 "OR\020\003\022#\n\037LOGGING_ENDPOINT_PROTOCOL_ERROR\020"
851 "\004\022\031\n\025MSGBUS_ENDPOINT_ERROR\020\005\022\026\n\022DEVICE_U"
852 "NREACHABLE\020\006\"\234\002\n\032GetLoggingEndpointRespo"
853 "nse\022\033\n\006status\030\001 \001(\0162\013.dmi.Status\0226\n\006reas"
854 "on\030\002 \001(\0162&.dmi.GetLoggingEndpointRespons"
855 "e.Reason\022\030\n\020logging_endpoint\030\003 \001(\t\022\030\n\020lo"
856 "gging_protocol\030\004 \001(\t\022\025\n\rreason_detail\030\005 "
857 "\001(\t\"^\n\006Reason\022\024\n\020UNDEFINED_REASON\020\000\022\022\n\016U"
858 "NKNOWN_DEVICE\020\001\022\022\n\016INTERNAL_ERROR\020\002\022\026\n\022D"
859 "EVICE_UNREACHABLE\020\003\"3\n\030SetMsgBusEndpoint"
860 "Request\022\027\n\017msgbus_endpoint\030\001 \001(\t\"\353\001\n\031Get"
861 "MsgBusEndpointResponse\022\033\n\006status\030\001 \001(\0162\013"
862 ".dmi.Status\0225\n\006reason\030\002 \001(\0162%.dmi.GetMsg"
863 "BusEndpointResponse.Reason\022\027\n\017msgbus_end"
864 "point\030\003 \001(\t\022\025\n\rreason_detail\030\004 \001(\t\"J\n\006Re"
865 "ason\022\024\n\020UNDEFINED_REASON\020\000\022\022\n\016INTERNAL_E"
866 "RROR\020\001\022\026\n\022DEVICE_UNREACHABLE\020\002\"E\n\020Entiti"
867 "esLogLevel\022\037\n\010logLevel\030\001 \001(\0162\r.dmi.LogLe"
868 "vel\022\020\n\010entities\030\002 \003(\t\"^\n\022SetLogLevelRequ"
869 "est\022\036\n\013device_uuid\030\001 \001(\0132\t.dmi.Uuid\022(\n\tl"
870 "oglevels\030\002 \003(\0132\025.dmi.EntitiesLogLevel\"\222\002"
871 "\n\023SetLogLevelResponse\022\036\n\013device_uuid\030\001 \001"
872 "(\0132\t.dmi.Uuid\022\033\n\006status\030\002 \001(\0162\013.dmi.Stat"
873 "us\022/\n\006reason\030\003 \001(\0162\037.dmi.SetLogLevelResp"
874 "onse.Reason\022\025\n\rreason_detail\030\004 \001(\t\"v\n\006Re"
875 "ason\022\024\n\020UNDEFINED_REASON\020\000\022\022\n\016UNKNOWN_DE"
876 "VICE\020\001\022\022\n\016INTERNAL_ERROR\020\002\022\026\n\022UNKNOWN_LO"
877 "G_ENTITY\020\003\022\026\n\022DEVICE_UNREACHABLE\020\004\"F\n\022Ge"
878 "tLogLevelRequest\022\036\n\013device_uuid\030\001 \001(\0132\t."
879 "dmi.Uuid\022\020\n\010entities\030\002 \003(\t\"\274\002\n\023GetLogLev"
880 "elResponse\022\036\n\013device_uuid\030\001 \001(\0132\t.dmi.Uu"
881 "id\022(\n\tlogLevels\030\002 \003(\0132\025.dmi.EntitiesLogL"
882 "evel\022\033\n\006status\030\003 \001(\0162\013.dmi.Status\022/\n\006rea"
883 "son\030\004 \001(\0162\037.dmi.GetLogLevelResponse.Reas"
884 "on\022\025\n\rreason_detail\030\005 \001(\t\"v\n\006Reason\022\024\n\020U"
885 "NDEFINED_REASON\020\000\022\022\n\016UNKNOWN_DEVICE\020\001\022\022\n"
886 "\016INTERNAL_ERROR\020\002\022\026\n\022UNKNOWN_LOG_ENTITY\020"
887 "\003\022\026\n\022DEVICE_UNREACHABLE\020\004\"<\n\032GetLoggable"
888 "EntitiesRequest\022\036\n\013device_uuid\030\001 \001(\0132\t.d"
889 "mi.Uuid\"(\n\tHeartbeat\022\033\n\023heartbeat_signat"
890 "ure\030\001 \001(\007\"5\n\023RebootDeviceRequest\022\036\n\013devi"
891 "ce_uuid\030\001 \001(\0132\t.dmi.Uuid\"\334\001\n\024RebootDevic"
892 "eResponse\022\033\n\006status\030\003 \001(\0162\013.dmi.Status\0220"
893 "\n\006reason\030\004 \001(\0162 .dmi.RebootDeviceRespons"
894 "e.Reason\022\025\n\rreason_detail\030\005 \001(\t\"^\n\006Reaso"
895 "n\022\024\n\020UNDEFINED_REASON\020\000\022\022\n\016UNKNOWN_DEVIC"
896 "E\020\001\022\022\n\016INTERNAL_ERROR\020\002\022\026\n\022DEVICE_UNREAC"
897 "HABLE\020\0032\256\t\n\031NativeHWManagementService\022S\n"
898 "\023StartManagingDevice\022\030.dmi.ModifiableCom"
899 "ponent\032 .dmi.StartManagingDeviceResponse"
900 "0\001\022U\n\022StopManagingDevice\022\036.dmi.StopManag"
901 "ingDeviceRequest\032\037.dmi.StopManagingDevic"
902 "eResponse\022H\n\021GetManagedDevices\022\026.google."
903 "protobuf.Empty\032\033.dmi.ManagedDevicesRespo"
904 "nse\022W\n\024GetPhysicalInventory\022\035.dmi.Physic"
905 "alInventoryRequest\032\036.dmi.PhysicalInvento"
906 "ryResponse0\001\022W\n\022GetHWComponentInfo\022\036.dmi"
907 ".HWComponentInfoGetRequest\032\037.dmi.HWCompo"
908 "nentInfoGetResponse0\001\022U\n\022SetHWComponentI"
909 "nfo\022\036.dmi.HWComponentInfoSetRequest\032\037.dm"
910 "i.HWComponentInfoSetResponse\022T\n\022SetLoggi"
911 "ngEndpoint\022\036.dmi.SetLoggingEndpointReque"
912 "st\032\036.dmi.SetRemoteEndpointResponse\022F\n\022Ge"
913 "tLoggingEndpoint\022\017.dmi.HardwareID\032\037.dmi."
914 "GetLoggingEndpointResponse\022R\n\021SetMsgBusE"
915 "ndpoint\022\035.dmi.SetMsgBusEndpointRequest\032\036"
916 ".dmi.SetRemoteEndpointResponse\022K\n\021GetMsg"
917 "BusEndpoint\022\026.google.protobuf.Empty\032\036.dm"
918 "i.GetMsgBusEndpointResponse\022P\n\023GetLoggab"
919 "leEntities\022\037.dmi.GetLoggableEntitiesRequ"
920 "est\032\030.dmi.GetLogLevelResponse\022@\n\013SetLogL"
921 "evel\022\027.dmi.SetLogLevelRequest\032\030.dmi.SetL"
922 "ogLevelResponse\022@\n\013GetLogLevel\022\027.dmi.Get"
923 "LogLevelRequest\032\030.dmi.GetLogLevelRespons"
924 "e\0228\n\016HeartbeatCheck\022\026.google.protobuf.Em"
925 "pty\032\016.dmi.Heartbeat\022C\n\014RebootDevice\022\030.dm"
926 "i.RebootDeviceRequest\032\031.dmi.RebootDevice"
927 "ResponseB;Z9github.com/opencord/device-m"
928 "anagement-interface/v3/go/dmib\006proto3"
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530929 ;
930::google::protobuf::internal::DescriptorTable descriptor_table_dmi_2fhw_5fmanagement_5fservice_2eproto = {
931 false, InitDefaults_dmi_2fhw_5fmanagement_5fservice_2eproto,
932 descriptor_table_protodef_dmi_2fhw_5fmanagement_5fservice_2eproto,
amit.ghosh6bdb0f72021-06-02 14:42:29 +0200933 "dmi/hw_management_service.proto", &assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto, 5677,
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530934};
935
936void AddDescriptors_dmi_2fhw_5fmanagement_5fservice_2eproto() {
937 static constexpr ::google::protobuf::internal::InitFunc deps[3] =
938 {
939 ::AddDescriptors_dmi_2fcommons_2eproto,
940 ::AddDescriptors_dmi_2fhw_2eproto,
941 ::AddDescriptors_google_2fprotobuf_2fempty_2eproto,
942 };
943 ::google::protobuf::internal::AddDescriptors(&descriptor_table_dmi_2fhw_5fmanagement_5fservice_2eproto, deps, 3);
944}
945
946// Force running AddDescriptors() at dynamic initialization time.
947static bool dynamic_init_dummy_dmi_2fhw_5fmanagement_5fservice_2eproto = []() { AddDescriptors_dmi_2fhw_5fmanagement_5fservice_2eproto(); return true; }();
948namespace dmi {
949const ::google::protobuf::EnumDescriptor* PhysicalInventoryResponse_Reason_descriptor() {
950 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
951 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[0];
952}
953bool PhysicalInventoryResponse_Reason_IsValid(int value) {
954 switch (value) {
955 case 0:
956 case 1:
957 case 2:
958 case 3:
959 return true;
960 default:
961 return false;
962 }
963}
964
965#if !defined(_MSC_VER) || _MSC_VER >= 1900
966const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::UNDEFINED_REASON;
967const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::UNKNOWN_DEVICE;
968const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::INTERNAL_ERROR;
969const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::DEVICE_UNREACHABLE;
970const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::Reason_MIN;
971const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::Reason_MAX;
972const int PhysicalInventoryResponse::Reason_ARRAYSIZE;
973#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
974const ::google::protobuf::EnumDescriptor* HWComponentInfoGetResponse_Reason_descriptor() {
975 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
976 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[1];
977}
978bool HWComponentInfoGetResponse_Reason_IsValid(int value) {
979 switch (value) {
980 case 0:
981 case 1:
982 case 2:
983 case 3:
984 case 4:
985 return true;
986 default:
987 return false;
988 }
989}
990
991#if !defined(_MSC_VER) || _MSC_VER >= 1900
992const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::UNDEFINED_REASON;
993const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::UNKNOWN_DEVICE;
994const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::UNKNOWN_COMPONENT;
995const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::INTERNAL_ERROR;
996const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::DEVICE_UNREACHABLE;
997const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::Reason_MIN;
998const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::Reason_MAX;
999const int HWComponentInfoGetResponse::Reason_ARRAYSIZE;
1000#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1001const ::google::protobuf::EnumDescriptor* HWComponentInfoSetResponse_Reason_descriptor() {
1002 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1003 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[2];
1004}
1005bool HWComponentInfoSetResponse_Reason_IsValid(int value) {
1006 switch (value) {
1007 case 0:
1008 case 1:
1009 case 2:
1010 case 3:
1011 case 4:
1012 case 5:
1013 return true;
1014 default:
1015 return false;
1016 }
1017}
1018
1019#if !defined(_MSC_VER) || _MSC_VER >= 1900
1020const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::UNDEFINED_REASON;
1021const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::UNKNOWN_DEVICE;
1022const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::UNKNOWN_COMPONENT;
1023const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::INVALID_PARAMS;
1024const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::INTERNAL_ERROR;
1025const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::DEVICE_UNREACHABLE;
1026const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::Reason_MIN;
1027const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::Reason_MAX;
1028const int HWComponentInfoSetResponse::Reason_ARRAYSIZE;
1029#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1030const ::google::protobuf::EnumDescriptor* StartManagingDeviceResponse_Reason_descriptor() {
1031 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1032 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[3];
1033}
1034bool StartManagingDeviceResponse_Reason_IsValid(int value) {
1035 switch (value) {
1036 case 0:
1037 case 1:
1038 case 2:
1039 case 3:
1040 case 4:
amit.ghosh6bdb0f72021-06-02 14:42:29 +02001041 case 5:
1042 case 6:
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301043 return true;
1044 default:
1045 return false;
1046 }
1047}
1048
1049#if !defined(_MSC_VER) || _MSC_VER >= 1900
1050const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::UNDEFINED_REASON;
1051const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::DEVICE_ALREADY_MANAGED;
1052const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::OPERATION_ALREADY_IN_PROGRESS;
1053const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::INVALID_PARAMS;
1054const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::INTERNAL_ERROR;
amit.ghosh6bdb0f72021-06-02 14:42:29 +02001055const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::AUTHENTICATION_FAILURE;
1056const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::INCOMPATIBLE_DEVICE;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301057const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::Reason_MIN;
1058const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::Reason_MAX;
1059const int StartManagingDeviceResponse::Reason_ARRAYSIZE;
1060#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1061const ::google::protobuf::EnumDescriptor* StopManagingDeviceResponse_Reason_descriptor() {
1062 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1063 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[4];
1064}
1065bool StopManagingDeviceResponse_Reason_IsValid(int value) {
1066 switch (value) {
1067 case 0:
1068 case 1:
1069 return true;
1070 default:
1071 return false;
1072 }
1073}
1074
1075#if !defined(_MSC_VER) || _MSC_VER >= 1900
1076const StopManagingDeviceResponse_Reason StopManagingDeviceResponse::UNDEFINED_REASON;
1077const StopManagingDeviceResponse_Reason StopManagingDeviceResponse::UNKNOWN_DEVICE;
1078const StopManagingDeviceResponse_Reason StopManagingDeviceResponse::Reason_MIN;
1079const StopManagingDeviceResponse_Reason StopManagingDeviceResponse::Reason_MAX;
1080const int StopManagingDeviceResponse::Reason_ARRAYSIZE;
1081#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1082const ::google::protobuf::EnumDescriptor* ManagedDevicesResponse_Reason_descriptor() {
1083 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1084 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[5];
1085}
1086bool ManagedDevicesResponse_Reason_IsValid(int value) {
1087 switch (value) {
1088 case 0:
1089 case 1:
1090 return true;
1091 default:
1092 return false;
1093 }
1094}
1095
1096#if !defined(_MSC_VER) || _MSC_VER >= 1900
1097const ManagedDevicesResponse_Reason ManagedDevicesResponse::UNDEFINED_REASON;
1098const ManagedDevicesResponse_Reason ManagedDevicesResponse::INTERNAL_ERROR;
1099const ManagedDevicesResponse_Reason ManagedDevicesResponse::Reason_MIN;
1100const ManagedDevicesResponse_Reason ManagedDevicesResponse::Reason_MAX;
1101const int ManagedDevicesResponse::Reason_ARRAYSIZE;
1102#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1103const ::google::protobuf::EnumDescriptor* SetRemoteEndpointResponse_Reason_descriptor() {
1104 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1105 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[6];
1106}
1107bool SetRemoteEndpointResponse_Reason_IsValid(int value) {
1108 switch (value) {
1109 case 0:
1110 case 1:
1111 case 2:
1112 case 3:
1113 case 4:
1114 case 5:
1115 case 6:
1116 return true;
1117 default:
1118 return false;
1119 }
1120}
1121
1122#if !defined(_MSC_VER) || _MSC_VER >= 1900
1123const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::UNDEFINED_REASON;
1124const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::UNKNOWN_DEVICE;
1125const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::INTERNAL_ERROR;
1126const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::LOGGING_ENDPOINT_ERROR;
1127const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::LOGGING_ENDPOINT_PROTOCOL_ERROR;
1128const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::MSGBUS_ENDPOINT_ERROR;
1129const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::DEVICE_UNREACHABLE;
1130const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::Reason_MIN;
1131const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::Reason_MAX;
1132const int SetRemoteEndpointResponse::Reason_ARRAYSIZE;
1133#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1134const ::google::protobuf::EnumDescriptor* GetLoggingEndpointResponse_Reason_descriptor() {
1135 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1136 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[7];
1137}
1138bool GetLoggingEndpointResponse_Reason_IsValid(int value) {
1139 switch (value) {
1140 case 0:
1141 case 1:
1142 case 2:
1143 case 3:
1144 return true;
1145 default:
1146 return false;
1147 }
1148}
1149
1150#if !defined(_MSC_VER) || _MSC_VER >= 1900
1151const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::UNDEFINED_REASON;
1152const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::UNKNOWN_DEVICE;
1153const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::INTERNAL_ERROR;
1154const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::DEVICE_UNREACHABLE;
1155const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::Reason_MIN;
1156const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::Reason_MAX;
1157const int GetLoggingEndpointResponse::Reason_ARRAYSIZE;
1158#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1159const ::google::protobuf::EnumDescriptor* GetMsgBusEndpointResponse_Reason_descriptor() {
1160 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1161 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[8];
1162}
1163bool GetMsgBusEndpointResponse_Reason_IsValid(int value) {
1164 switch (value) {
1165 case 0:
1166 case 1:
1167 case 2:
1168 return true;
1169 default:
1170 return false;
1171 }
1172}
1173
1174#if !defined(_MSC_VER) || _MSC_VER >= 1900
1175const GetMsgBusEndpointResponse_Reason GetMsgBusEndpointResponse::UNDEFINED_REASON;
1176const GetMsgBusEndpointResponse_Reason GetMsgBusEndpointResponse::INTERNAL_ERROR;
1177const GetMsgBusEndpointResponse_Reason GetMsgBusEndpointResponse::DEVICE_UNREACHABLE;
1178const GetMsgBusEndpointResponse_Reason GetMsgBusEndpointResponse::Reason_MIN;
1179const GetMsgBusEndpointResponse_Reason GetMsgBusEndpointResponse::Reason_MAX;
1180const int GetMsgBusEndpointResponse::Reason_ARRAYSIZE;
1181#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1182const ::google::protobuf::EnumDescriptor* SetLogLevelResponse_Reason_descriptor() {
1183 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1184 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[9];
1185}
1186bool SetLogLevelResponse_Reason_IsValid(int value) {
1187 switch (value) {
1188 case 0:
1189 case 1:
1190 case 2:
1191 case 3:
1192 case 4:
1193 return true;
1194 default:
1195 return false;
1196 }
1197}
1198
1199#if !defined(_MSC_VER) || _MSC_VER >= 1900
1200const SetLogLevelResponse_Reason SetLogLevelResponse::UNDEFINED_REASON;
1201const SetLogLevelResponse_Reason SetLogLevelResponse::UNKNOWN_DEVICE;
1202const SetLogLevelResponse_Reason SetLogLevelResponse::INTERNAL_ERROR;
1203const SetLogLevelResponse_Reason SetLogLevelResponse::UNKNOWN_LOG_ENTITY;
1204const SetLogLevelResponse_Reason SetLogLevelResponse::DEVICE_UNREACHABLE;
1205const SetLogLevelResponse_Reason SetLogLevelResponse::Reason_MIN;
1206const SetLogLevelResponse_Reason SetLogLevelResponse::Reason_MAX;
1207const int SetLogLevelResponse::Reason_ARRAYSIZE;
1208#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1209const ::google::protobuf::EnumDescriptor* GetLogLevelResponse_Reason_descriptor() {
1210 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1211 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[10];
1212}
1213bool GetLogLevelResponse_Reason_IsValid(int value) {
1214 switch (value) {
1215 case 0:
1216 case 1:
1217 case 2:
1218 case 3:
1219 case 4:
1220 return true;
1221 default:
1222 return false;
1223 }
1224}
1225
1226#if !defined(_MSC_VER) || _MSC_VER >= 1900
1227const GetLogLevelResponse_Reason GetLogLevelResponse::UNDEFINED_REASON;
1228const GetLogLevelResponse_Reason GetLogLevelResponse::UNKNOWN_DEVICE;
1229const GetLogLevelResponse_Reason GetLogLevelResponse::INTERNAL_ERROR;
1230const GetLogLevelResponse_Reason GetLogLevelResponse::UNKNOWN_LOG_ENTITY;
1231const GetLogLevelResponse_Reason GetLogLevelResponse::DEVICE_UNREACHABLE;
1232const GetLogLevelResponse_Reason GetLogLevelResponse::Reason_MIN;
1233const GetLogLevelResponse_Reason GetLogLevelResponse::Reason_MAX;
1234const int GetLogLevelResponse::Reason_ARRAYSIZE;
1235#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +05301236const ::google::protobuf::EnumDescriptor* RebootDeviceResponse_Reason_descriptor() {
1237 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1238 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[11];
1239}
1240bool RebootDeviceResponse_Reason_IsValid(int value) {
1241 switch (value) {
1242 case 0:
1243 case 1:
1244 case 2:
1245 case 3:
1246 return true;
1247 default:
1248 return false;
1249 }
1250}
1251
1252#if !defined(_MSC_VER) || _MSC_VER >= 1900
1253const RebootDeviceResponse_Reason RebootDeviceResponse::UNDEFINED_REASON;
1254const RebootDeviceResponse_Reason RebootDeviceResponse::UNKNOWN_DEVICE;
1255const RebootDeviceResponse_Reason RebootDeviceResponse::INTERNAL_ERROR;
1256const RebootDeviceResponse_Reason RebootDeviceResponse::DEVICE_UNREACHABLE;
1257const RebootDeviceResponse_Reason RebootDeviceResponse::Reason_MIN;
1258const RebootDeviceResponse_Reason RebootDeviceResponse::Reason_MAX;
1259const int RebootDeviceResponse::Reason_ARRAYSIZE;
1260#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301261
1262// ===================================================================
1263
1264void PhysicalInventoryRequest::InitAsDefaultInstance() {
1265 ::dmi::_PhysicalInventoryRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
1266 ::dmi::Uuid::internal_default_instance());
1267}
1268class PhysicalInventoryRequest::HasBitSetters {
1269 public:
1270 static const ::dmi::Uuid& device_uuid(const PhysicalInventoryRequest* msg);
1271};
1272
1273const ::dmi::Uuid&
1274PhysicalInventoryRequest::HasBitSetters::device_uuid(const PhysicalInventoryRequest* msg) {
1275 return *msg->device_uuid_;
1276}
1277void PhysicalInventoryRequest::clear_device_uuid() {
1278 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
1279 delete device_uuid_;
1280 }
1281 device_uuid_ = nullptr;
1282}
1283#if !defined(_MSC_VER) || _MSC_VER >= 1900
1284const int PhysicalInventoryRequest::kDeviceUuidFieldNumber;
1285#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1286
1287PhysicalInventoryRequest::PhysicalInventoryRequest()
1288 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
1289 SharedCtor();
1290 // @@protoc_insertion_point(constructor:dmi.PhysicalInventoryRequest)
1291}
1292PhysicalInventoryRequest::PhysicalInventoryRequest(const PhysicalInventoryRequest& from)
1293 : ::google::protobuf::Message(),
1294 _internal_metadata_(nullptr) {
1295 _internal_metadata_.MergeFrom(from._internal_metadata_);
1296 if (from.has_device_uuid()) {
1297 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
1298 } else {
1299 device_uuid_ = nullptr;
1300 }
1301 // @@protoc_insertion_point(copy_constructor:dmi.PhysicalInventoryRequest)
1302}
1303
1304void PhysicalInventoryRequest::SharedCtor() {
1305 ::google::protobuf::internal::InitSCC(
1306 &scc_info_PhysicalInventoryRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
1307 device_uuid_ = nullptr;
1308}
1309
1310PhysicalInventoryRequest::~PhysicalInventoryRequest() {
1311 // @@protoc_insertion_point(destructor:dmi.PhysicalInventoryRequest)
1312 SharedDtor();
1313}
1314
1315void PhysicalInventoryRequest::SharedDtor() {
1316 if (this != internal_default_instance()) delete device_uuid_;
1317}
1318
1319void PhysicalInventoryRequest::SetCachedSize(int size) const {
1320 _cached_size_.Set(size);
1321}
1322const PhysicalInventoryRequest& PhysicalInventoryRequest::default_instance() {
1323 ::google::protobuf::internal::InitSCC(&::scc_info_PhysicalInventoryRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
1324 return *internal_default_instance();
1325}
1326
1327
1328void PhysicalInventoryRequest::Clear() {
1329// @@protoc_insertion_point(message_clear_start:dmi.PhysicalInventoryRequest)
1330 ::google::protobuf::uint32 cached_has_bits = 0;
1331 // Prevent compiler warnings about cached_has_bits being unused
1332 (void) cached_has_bits;
1333
1334 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
1335 delete device_uuid_;
1336 }
1337 device_uuid_ = nullptr;
1338 _internal_metadata_.Clear();
1339}
1340
1341#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1342const char* PhysicalInventoryRequest::_InternalParse(const char* begin, const char* end, void* object,
1343 ::google::protobuf::internal::ParseContext* ctx) {
1344 auto msg = static_cast<PhysicalInventoryRequest*>(object);
1345 ::google::protobuf::int32 size; (void)size;
1346 int depth; (void)depth;
1347 ::google::protobuf::uint32 tag;
1348 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
1349 auto ptr = begin;
1350 while (ptr < end) {
1351 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
1352 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1353 switch (tag >> 3) {
1354 // .dmi.Uuid device_uuid = 1;
1355 case 1: {
1356 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
1357 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
1358 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1359 parser_till_end = ::dmi::Uuid::_InternalParse;
1360 object = msg->mutable_device_uuid();
1361 if (size > end - ptr) goto len_delim_till_end;
1362 ptr += size;
1363 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
1364 {parser_till_end, object}, ptr - size, ptr));
1365 break;
1366 }
1367 default: {
1368 handle_unusual:
1369 if ((tag & 7) == 4 || tag == 0) {
1370 ctx->EndGroup(tag);
1371 return ptr;
1372 }
1373 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
1374 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
1375 ptr = res.first;
1376 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
1377 if (res.second) return ptr;
1378 }
1379 } // switch
1380 } // while
1381 return ptr;
1382len_delim_till_end:
1383 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
1384 {parser_till_end, object}, size);
1385}
1386#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1387bool PhysicalInventoryRequest::MergePartialFromCodedStream(
1388 ::google::protobuf::io::CodedInputStream* input) {
1389#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
1390 ::google::protobuf::uint32 tag;
1391 // @@protoc_insertion_point(parse_start:dmi.PhysicalInventoryRequest)
1392 for (;;) {
1393 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1394 tag = p.first;
1395 if (!p.second) goto handle_unusual;
1396 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1397 // .dmi.Uuid device_uuid = 1;
1398 case 1: {
1399 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
1400 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1401 input, mutable_device_uuid()));
1402 } else {
1403 goto handle_unusual;
1404 }
1405 break;
1406 }
1407
1408 default: {
1409 handle_unusual:
1410 if (tag == 0) {
1411 goto success;
1412 }
1413 DO_(::google::protobuf::internal::WireFormat::SkipField(
1414 input, tag, _internal_metadata_.mutable_unknown_fields()));
1415 break;
1416 }
1417 }
1418 }
1419success:
1420 // @@protoc_insertion_point(parse_success:dmi.PhysicalInventoryRequest)
1421 return true;
1422failure:
1423 // @@protoc_insertion_point(parse_failure:dmi.PhysicalInventoryRequest)
1424 return false;
1425#undef DO_
1426}
1427#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1428
1429void PhysicalInventoryRequest::SerializeWithCachedSizes(
1430 ::google::protobuf::io::CodedOutputStream* output) const {
1431 // @@protoc_insertion_point(serialize_start:dmi.PhysicalInventoryRequest)
1432 ::google::protobuf::uint32 cached_has_bits = 0;
1433 (void) cached_has_bits;
1434
1435 // .dmi.Uuid device_uuid = 1;
1436 if (this->has_device_uuid()) {
1437 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1438 1, HasBitSetters::device_uuid(this), output);
1439 }
1440
1441 if (_internal_metadata_.have_unknown_fields()) {
1442 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1443 _internal_metadata_.unknown_fields(), output);
1444 }
1445 // @@protoc_insertion_point(serialize_end:dmi.PhysicalInventoryRequest)
1446}
1447
1448::google::protobuf::uint8* PhysicalInventoryRequest::InternalSerializeWithCachedSizesToArray(
1449 ::google::protobuf::uint8* target) const {
1450 // @@protoc_insertion_point(serialize_to_array_start:dmi.PhysicalInventoryRequest)
1451 ::google::protobuf::uint32 cached_has_bits = 0;
1452 (void) cached_has_bits;
1453
1454 // .dmi.Uuid device_uuid = 1;
1455 if (this->has_device_uuid()) {
1456 target = ::google::protobuf::internal::WireFormatLite::
1457 InternalWriteMessageToArray(
1458 1, HasBitSetters::device_uuid(this), target);
1459 }
1460
1461 if (_internal_metadata_.have_unknown_fields()) {
1462 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1463 _internal_metadata_.unknown_fields(), target);
1464 }
1465 // @@protoc_insertion_point(serialize_to_array_end:dmi.PhysicalInventoryRequest)
1466 return target;
1467}
1468
1469size_t PhysicalInventoryRequest::ByteSizeLong() const {
1470// @@protoc_insertion_point(message_byte_size_start:dmi.PhysicalInventoryRequest)
1471 size_t total_size = 0;
1472
1473 if (_internal_metadata_.have_unknown_fields()) {
1474 total_size +=
1475 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1476 _internal_metadata_.unknown_fields());
1477 }
1478 ::google::protobuf::uint32 cached_has_bits = 0;
1479 // Prevent compiler warnings about cached_has_bits being unused
1480 (void) cached_has_bits;
1481
1482 // .dmi.Uuid device_uuid = 1;
1483 if (this->has_device_uuid()) {
1484 total_size += 1 +
1485 ::google::protobuf::internal::WireFormatLite::MessageSize(
1486 *device_uuid_);
1487 }
1488
1489 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1490 SetCachedSize(cached_size);
1491 return total_size;
1492}
1493
1494void PhysicalInventoryRequest::MergeFrom(const ::google::protobuf::Message& from) {
1495// @@protoc_insertion_point(generalized_merge_from_start:dmi.PhysicalInventoryRequest)
1496 GOOGLE_DCHECK_NE(&from, this);
1497 const PhysicalInventoryRequest* source =
1498 ::google::protobuf::DynamicCastToGenerated<PhysicalInventoryRequest>(
1499 &from);
1500 if (source == nullptr) {
1501 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.PhysicalInventoryRequest)
1502 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1503 } else {
1504 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.PhysicalInventoryRequest)
1505 MergeFrom(*source);
1506 }
1507}
1508
1509void PhysicalInventoryRequest::MergeFrom(const PhysicalInventoryRequest& from) {
1510// @@protoc_insertion_point(class_specific_merge_from_start:dmi.PhysicalInventoryRequest)
1511 GOOGLE_DCHECK_NE(&from, this);
1512 _internal_metadata_.MergeFrom(from._internal_metadata_);
1513 ::google::protobuf::uint32 cached_has_bits = 0;
1514 (void) cached_has_bits;
1515
1516 if (from.has_device_uuid()) {
1517 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
1518 }
1519}
1520
1521void PhysicalInventoryRequest::CopyFrom(const ::google::protobuf::Message& from) {
1522// @@protoc_insertion_point(generalized_copy_from_start:dmi.PhysicalInventoryRequest)
1523 if (&from == this) return;
1524 Clear();
1525 MergeFrom(from);
1526}
1527
1528void PhysicalInventoryRequest::CopyFrom(const PhysicalInventoryRequest& from) {
1529// @@protoc_insertion_point(class_specific_copy_from_start:dmi.PhysicalInventoryRequest)
1530 if (&from == this) return;
1531 Clear();
1532 MergeFrom(from);
1533}
1534
1535bool PhysicalInventoryRequest::IsInitialized() const {
1536 return true;
1537}
1538
1539void PhysicalInventoryRequest::Swap(PhysicalInventoryRequest* other) {
1540 if (other == this) return;
1541 InternalSwap(other);
1542}
1543void PhysicalInventoryRequest::InternalSwap(PhysicalInventoryRequest* other) {
1544 using std::swap;
1545 _internal_metadata_.Swap(&other->_internal_metadata_);
1546 swap(device_uuid_, other->device_uuid_);
1547}
1548
1549::google::protobuf::Metadata PhysicalInventoryRequest::GetMetadata() const {
1550 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1551 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
1552}
1553
1554
1555// ===================================================================
1556
1557void PhysicalInventoryResponse::InitAsDefaultInstance() {
1558 ::dmi::_PhysicalInventoryResponse_default_instance_._instance.get_mutable()->inventory_ = const_cast< ::dmi::Hardware*>(
1559 ::dmi::Hardware::internal_default_instance());
1560}
1561class PhysicalInventoryResponse::HasBitSetters {
1562 public:
1563 static const ::dmi::Hardware& inventory(const PhysicalInventoryResponse* msg);
1564};
1565
1566const ::dmi::Hardware&
1567PhysicalInventoryResponse::HasBitSetters::inventory(const PhysicalInventoryResponse* msg) {
1568 return *msg->inventory_;
1569}
1570void PhysicalInventoryResponse::clear_inventory() {
1571 if (GetArenaNoVirtual() == nullptr && inventory_ != nullptr) {
1572 delete inventory_;
1573 }
1574 inventory_ = nullptr;
1575}
1576#if !defined(_MSC_VER) || _MSC_VER >= 1900
1577const int PhysicalInventoryResponse::kStatusFieldNumber;
1578const int PhysicalInventoryResponse::kReasonFieldNumber;
1579const int PhysicalInventoryResponse::kInventoryFieldNumber;
1580const int PhysicalInventoryResponse::kReasonDetailFieldNumber;
1581#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1582
1583PhysicalInventoryResponse::PhysicalInventoryResponse()
1584 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
1585 SharedCtor();
1586 // @@protoc_insertion_point(constructor:dmi.PhysicalInventoryResponse)
1587}
1588PhysicalInventoryResponse::PhysicalInventoryResponse(const PhysicalInventoryResponse& from)
1589 : ::google::protobuf::Message(),
1590 _internal_metadata_(nullptr) {
1591 _internal_metadata_.MergeFrom(from._internal_metadata_);
1592 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1593 if (from.reason_detail().size() > 0) {
1594 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
1595 }
1596 if (from.has_inventory()) {
1597 inventory_ = new ::dmi::Hardware(*from.inventory_);
1598 } else {
1599 inventory_ = nullptr;
1600 }
1601 ::memcpy(&status_, &from.status_,
1602 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
1603 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
1604 // @@protoc_insertion_point(copy_constructor:dmi.PhysicalInventoryResponse)
1605}
1606
1607void PhysicalInventoryResponse::SharedCtor() {
1608 ::google::protobuf::internal::InitSCC(
1609 &scc_info_PhysicalInventoryResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
1610 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1611 ::memset(&inventory_, 0, static_cast<size_t>(
1612 reinterpret_cast<char*>(&reason_) -
1613 reinterpret_cast<char*>(&inventory_)) + sizeof(reason_));
1614}
1615
1616PhysicalInventoryResponse::~PhysicalInventoryResponse() {
1617 // @@protoc_insertion_point(destructor:dmi.PhysicalInventoryResponse)
1618 SharedDtor();
1619}
1620
1621void PhysicalInventoryResponse::SharedDtor() {
1622 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1623 if (this != internal_default_instance()) delete inventory_;
1624}
1625
1626void PhysicalInventoryResponse::SetCachedSize(int size) const {
1627 _cached_size_.Set(size);
1628}
1629const PhysicalInventoryResponse& PhysicalInventoryResponse::default_instance() {
1630 ::google::protobuf::internal::InitSCC(&::scc_info_PhysicalInventoryResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
1631 return *internal_default_instance();
1632}
1633
1634
1635void PhysicalInventoryResponse::Clear() {
1636// @@protoc_insertion_point(message_clear_start:dmi.PhysicalInventoryResponse)
1637 ::google::protobuf::uint32 cached_has_bits = 0;
1638 // Prevent compiler warnings about cached_has_bits being unused
1639 (void) cached_has_bits;
1640
1641 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1642 if (GetArenaNoVirtual() == nullptr && inventory_ != nullptr) {
1643 delete inventory_;
1644 }
1645 inventory_ = nullptr;
1646 ::memset(&status_, 0, static_cast<size_t>(
1647 reinterpret_cast<char*>(&reason_) -
1648 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
1649 _internal_metadata_.Clear();
1650}
1651
1652#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1653const char* PhysicalInventoryResponse::_InternalParse(const char* begin, const char* end, void* object,
1654 ::google::protobuf::internal::ParseContext* ctx) {
1655 auto msg = static_cast<PhysicalInventoryResponse*>(object);
1656 ::google::protobuf::int32 size; (void)size;
1657 int depth; (void)depth;
1658 ::google::protobuf::uint32 tag;
1659 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
1660 auto ptr = begin;
1661 while (ptr < end) {
1662 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
1663 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1664 switch (tag >> 3) {
1665 // .dmi.Status status = 1;
1666 case 1: {
1667 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
1668 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
1669 msg->set_status(static_cast<::dmi::Status>(val));
1670 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1671 break;
1672 }
1673 // .dmi.PhysicalInventoryResponse.Reason reason = 2;
1674 case 2: {
1675 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
1676 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
1677 msg->set_reason(static_cast<::dmi::PhysicalInventoryResponse_Reason>(val));
1678 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1679 break;
1680 }
1681 // .dmi.Hardware inventory = 3;
1682 case 3: {
1683 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
1684 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
1685 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1686 parser_till_end = ::dmi::Hardware::_InternalParse;
1687 object = msg->mutable_inventory();
1688 if (size > end - ptr) goto len_delim_till_end;
1689 ptr += size;
1690 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
1691 {parser_till_end, object}, ptr - size, ptr));
1692 break;
1693 }
1694 // string reason_detail = 4;
1695 case 4: {
1696 if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual;
1697 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
1698 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1699 ctx->extra_parse_data().SetFieldName("dmi.PhysicalInventoryResponse.reason_detail");
1700 object = msg->mutable_reason_detail();
1701 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
1702 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
1703 goto string_till_end;
1704 }
1705 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
1706 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
1707 ptr += size;
1708 break;
1709 }
1710 default: {
1711 handle_unusual:
1712 if ((tag & 7) == 4 || tag == 0) {
1713 ctx->EndGroup(tag);
1714 return ptr;
1715 }
1716 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
1717 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
1718 ptr = res.first;
1719 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
1720 if (res.second) return ptr;
1721 }
1722 } // switch
1723 } // while
1724 return ptr;
1725string_till_end:
1726 static_cast<::std::string*>(object)->clear();
1727 static_cast<::std::string*>(object)->reserve(size);
1728 goto len_delim_till_end;
1729len_delim_till_end:
1730 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
1731 {parser_till_end, object}, size);
1732}
1733#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1734bool PhysicalInventoryResponse::MergePartialFromCodedStream(
1735 ::google::protobuf::io::CodedInputStream* input) {
1736#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
1737 ::google::protobuf::uint32 tag;
1738 // @@protoc_insertion_point(parse_start:dmi.PhysicalInventoryResponse)
1739 for (;;) {
1740 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1741 tag = p.first;
1742 if (!p.second) goto handle_unusual;
1743 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1744 // .dmi.Status status = 1;
1745 case 1: {
1746 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
1747 int value = 0;
1748 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1749 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1750 input, &value)));
1751 set_status(static_cast< ::dmi::Status >(value));
1752 } else {
1753 goto handle_unusual;
1754 }
1755 break;
1756 }
1757
1758 // .dmi.PhysicalInventoryResponse.Reason reason = 2;
1759 case 2: {
1760 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
1761 int value = 0;
1762 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1763 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1764 input, &value)));
1765 set_reason(static_cast< ::dmi::PhysicalInventoryResponse_Reason >(value));
1766 } else {
1767 goto handle_unusual;
1768 }
1769 break;
1770 }
1771
1772 // .dmi.Hardware inventory = 3;
1773 case 3: {
1774 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
1775 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1776 input, mutable_inventory()));
1777 } else {
1778 goto handle_unusual;
1779 }
1780 break;
1781 }
1782
1783 // string reason_detail = 4;
1784 case 4: {
1785 if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
1786 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1787 input, this->mutable_reason_detail()));
1788 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1789 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
1790 ::google::protobuf::internal::WireFormatLite::PARSE,
1791 "dmi.PhysicalInventoryResponse.reason_detail"));
1792 } else {
1793 goto handle_unusual;
1794 }
1795 break;
1796 }
1797
1798 default: {
1799 handle_unusual:
1800 if (tag == 0) {
1801 goto success;
1802 }
1803 DO_(::google::protobuf::internal::WireFormat::SkipField(
1804 input, tag, _internal_metadata_.mutable_unknown_fields()));
1805 break;
1806 }
1807 }
1808 }
1809success:
1810 // @@protoc_insertion_point(parse_success:dmi.PhysicalInventoryResponse)
1811 return true;
1812failure:
1813 // @@protoc_insertion_point(parse_failure:dmi.PhysicalInventoryResponse)
1814 return false;
1815#undef DO_
1816}
1817#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1818
1819void PhysicalInventoryResponse::SerializeWithCachedSizes(
1820 ::google::protobuf::io::CodedOutputStream* output) const {
1821 // @@protoc_insertion_point(serialize_start:dmi.PhysicalInventoryResponse)
1822 ::google::protobuf::uint32 cached_has_bits = 0;
1823 (void) cached_has_bits;
1824
1825 // .dmi.Status status = 1;
1826 if (this->status() != 0) {
1827 ::google::protobuf::internal::WireFormatLite::WriteEnum(
1828 1, this->status(), output);
1829 }
1830
1831 // .dmi.PhysicalInventoryResponse.Reason reason = 2;
1832 if (this->reason() != 0) {
1833 ::google::protobuf::internal::WireFormatLite::WriteEnum(
1834 2, this->reason(), output);
1835 }
1836
1837 // .dmi.Hardware inventory = 3;
1838 if (this->has_inventory()) {
1839 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1840 3, HasBitSetters::inventory(this), output);
1841 }
1842
1843 // string reason_detail = 4;
1844 if (this->reason_detail().size() > 0) {
1845 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1846 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
1847 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1848 "dmi.PhysicalInventoryResponse.reason_detail");
1849 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1850 4, this->reason_detail(), output);
1851 }
1852
1853 if (_internal_metadata_.have_unknown_fields()) {
1854 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1855 _internal_metadata_.unknown_fields(), output);
1856 }
1857 // @@protoc_insertion_point(serialize_end:dmi.PhysicalInventoryResponse)
1858}
1859
1860::google::protobuf::uint8* PhysicalInventoryResponse::InternalSerializeWithCachedSizesToArray(
1861 ::google::protobuf::uint8* target) const {
1862 // @@protoc_insertion_point(serialize_to_array_start:dmi.PhysicalInventoryResponse)
1863 ::google::protobuf::uint32 cached_has_bits = 0;
1864 (void) cached_has_bits;
1865
1866 // .dmi.Status status = 1;
1867 if (this->status() != 0) {
1868 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1869 1, this->status(), target);
1870 }
1871
1872 // .dmi.PhysicalInventoryResponse.Reason reason = 2;
1873 if (this->reason() != 0) {
1874 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1875 2, this->reason(), target);
1876 }
1877
1878 // .dmi.Hardware inventory = 3;
1879 if (this->has_inventory()) {
1880 target = ::google::protobuf::internal::WireFormatLite::
1881 InternalWriteMessageToArray(
1882 3, HasBitSetters::inventory(this), target);
1883 }
1884
1885 // string reason_detail = 4;
1886 if (this->reason_detail().size() > 0) {
1887 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1888 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
1889 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1890 "dmi.PhysicalInventoryResponse.reason_detail");
1891 target =
1892 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1893 4, this->reason_detail(), target);
1894 }
1895
1896 if (_internal_metadata_.have_unknown_fields()) {
1897 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1898 _internal_metadata_.unknown_fields(), target);
1899 }
1900 // @@protoc_insertion_point(serialize_to_array_end:dmi.PhysicalInventoryResponse)
1901 return target;
1902}
1903
1904size_t PhysicalInventoryResponse::ByteSizeLong() const {
1905// @@protoc_insertion_point(message_byte_size_start:dmi.PhysicalInventoryResponse)
1906 size_t total_size = 0;
1907
1908 if (_internal_metadata_.have_unknown_fields()) {
1909 total_size +=
1910 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1911 _internal_metadata_.unknown_fields());
1912 }
1913 ::google::protobuf::uint32 cached_has_bits = 0;
1914 // Prevent compiler warnings about cached_has_bits being unused
1915 (void) cached_has_bits;
1916
1917 // string reason_detail = 4;
1918 if (this->reason_detail().size() > 0) {
1919 total_size += 1 +
1920 ::google::protobuf::internal::WireFormatLite::StringSize(
1921 this->reason_detail());
1922 }
1923
1924 // .dmi.Hardware inventory = 3;
1925 if (this->has_inventory()) {
1926 total_size += 1 +
1927 ::google::protobuf::internal::WireFormatLite::MessageSize(
1928 *inventory_);
1929 }
1930
1931 // .dmi.Status status = 1;
1932 if (this->status() != 0) {
1933 total_size += 1 +
1934 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
1935 }
1936
1937 // .dmi.PhysicalInventoryResponse.Reason reason = 2;
1938 if (this->reason() != 0) {
1939 total_size += 1 +
1940 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
1941 }
1942
1943 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1944 SetCachedSize(cached_size);
1945 return total_size;
1946}
1947
1948void PhysicalInventoryResponse::MergeFrom(const ::google::protobuf::Message& from) {
1949// @@protoc_insertion_point(generalized_merge_from_start:dmi.PhysicalInventoryResponse)
1950 GOOGLE_DCHECK_NE(&from, this);
1951 const PhysicalInventoryResponse* source =
1952 ::google::protobuf::DynamicCastToGenerated<PhysicalInventoryResponse>(
1953 &from);
1954 if (source == nullptr) {
1955 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.PhysicalInventoryResponse)
1956 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1957 } else {
1958 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.PhysicalInventoryResponse)
1959 MergeFrom(*source);
1960 }
1961}
1962
1963void PhysicalInventoryResponse::MergeFrom(const PhysicalInventoryResponse& from) {
1964// @@protoc_insertion_point(class_specific_merge_from_start:dmi.PhysicalInventoryResponse)
1965 GOOGLE_DCHECK_NE(&from, this);
1966 _internal_metadata_.MergeFrom(from._internal_metadata_);
1967 ::google::protobuf::uint32 cached_has_bits = 0;
1968 (void) cached_has_bits;
1969
1970 if (from.reason_detail().size() > 0) {
1971
1972 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
1973 }
1974 if (from.has_inventory()) {
1975 mutable_inventory()->::dmi::Hardware::MergeFrom(from.inventory());
1976 }
1977 if (from.status() != 0) {
1978 set_status(from.status());
1979 }
1980 if (from.reason() != 0) {
1981 set_reason(from.reason());
1982 }
1983}
1984
1985void PhysicalInventoryResponse::CopyFrom(const ::google::protobuf::Message& from) {
1986// @@protoc_insertion_point(generalized_copy_from_start:dmi.PhysicalInventoryResponse)
1987 if (&from == this) return;
1988 Clear();
1989 MergeFrom(from);
1990}
1991
1992void PhysicalInventoryResponse::CopyFrom(const PhysicalInventoryResponse& from) {
1993// @@protoc_insertion_point(class_specific_copy_from_start:dmi.PhysicalInventoryResponse)
1994 if (&from == this) return;
1995 Clear();
1996 MergeFrom(from);
1997}
1998
1999bool PhysicalInventoryResponse::IsInitialized() const {
2000 return true;
2001}
2002
2003void PhysicalInventoryResponse::Swap(PhysicalInventoryResponse* other) {
2004 if (other == this) return;
2005 InternalSwap(other);
2006}
2007void PhysicalInventoryResponse::InternalSwap(PhysicalInventoryResponse* other) {
2008 using std::swap;
2009 _internal_metadata_.Swap(&other->_internal_metadata_);
2010 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2011 GetArenaNoVirtual());
2012 swap(inventory_, other->inventory_);
2013 swap(status_, other->status_);
2014 swap(reason_, other->reason_);
2015}
2016
2017::google::protobuf::Metadata PhysicalInventoryResponse::GetMetadata() const {
2018 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
2019 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
2020}
2021
2022
2023// ===================================================================
2024
2025void HWComponentInfoGetRequest::InitAsDefaultInstance() {
2026 ::dmi::_HWComponentInfoGetRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
2027 ::dmi::Uuid::internal_default_instance());
2028 ::dmi::_HWComponentInfoGetRequest_default_instance_._instance.get_mutable()->component_uuid_ = const_cast< ::dmi::Uuid*>(
2029 ::dmi::Uuid::internal_default_instance());
2030}
2031class HWComponentInfoGetRequest::HasBitSetters {
2032 public:
2033 static const ::dmi::Uuid& device_uuid(const HWComponentInfoGetRequest* msg);
2034 static const ::dmi::Uuid& component_uuid(const HWComponentInfoGetRequest* msg);
2035};
2036
2037const ::dmi::Uuid&
2038HWComponentInfoGetRequest::HasBitSetters::device_uuid(const HWComponentInfoGetRequest* msg) {
2039 return *msg->device_uuid_;
2040}
2041const ::dmi::Uuid&
2042HWComponentInfoGetRequest::HasBitSetters::component_uuid(const HWComponentInfoGetRequest* msg) {
2043 return *msg->component_uuid_;
2044}
2045void HWComponentInfoGetRequest::clear_device_uuid() {
2046 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
2047 delete device_uuid_;
2048 }
2049 device_uuid_ = nullptr;
2050}
2051void HWComponentInfoGetRequest::clear_component_uuid() {
2052 if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) {
2053 delete component_uuid_;
2054 }
2055 component_uuid_ = nullptr;
2056}
2057#if !defined(_MSC_VER) || _MSC_VER >= 1900
2058const int HWComponentInfoGetRequest::kDeviceUuidFieldNumber;
2059const int HWComponentInfoGetRequest::kComponentUuidFieldNumber;
2060const int HWComponentInfoGetRequest::kComponentNameFieldNumber;
2061#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
2062
2063HWComponentInfoGetRequest::HWComponentInfoGetRequest()
2064 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
2065 SharedCtor();
2066 // @@protoc_insertion_point(constructor:dmi.HWComponentInfoGetRequest)
2067}
2068HWComponentInfoGetRequest::HWComponentInfoGetRequest(const HWComponentInfoGetRequest& from)
2069 : ::google::protobuf::Message(),
2070 _internal_metadata_(nullptr) {
2071 _internal_metadata_.MergeFrom(from._internal_metadata_);
2072 component_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2073 if (from.component_name().size() > 0) {
2074 component_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.component_name_);
2075 }
2076 if (from.has_device_uuid()) {
2077 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
2078 } else {
2079 device_uuid_ = nullptr;
2080 }
2081 if (from.has_component_uuid()) {
2082 component_uuid_ = new ::dmi::Uuid(*from.component_uuid_);
2083 } else {
2084 component_uuid_ = nullptr;
2085 }
2086 // @@protoc_insertion_point(copy_constructor:dmi.HWComponentInfoGetRequest)
2087}
2088
2089void HWComponentInfoGetRequest::SharedCtor() {
2090 ::google::protobuf::internal::InitSCC(
2091 &scc_info_HWComponentInfoGetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
2092 component_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2093 ::memset(&device_uuid_, 0, static_cast<size_t>(
2094 reinterpret_cast<char*>(&component_uuid_) -
2095 reinterpret_cast<char*>(&device_uuid_)) + sizeof(component_uuid_));
2096}
2097
2098HWComponentInfoGetRequest::~HWComponentInfoGetRequest() {
2099 // @@protoc_insertion_point(destructor:dmi.HWComponentInfoGetRequest)
2100 SharedDtor();
2101}
2102
2103void HWComponentInfoGetRequest::SharedDtor() {
2104 component_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2105 if (this != internal_default_instance()) delete device_uuid_;
2106 if (this != internal_default_instance()) delete component_uuid_;
2107}
2108
2109void HWComponentInfoGetRequest::SetCachedSize(int size) const {
2110 _cached_size_.Set(size);
2111}
2112const HWComponentInfoGetRequest& HWComponentInfoGetRequest::default_instance() {
2113 ::google::protobuf::internal::InitSCC(&::scc_info_HWComponentInfoGetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
2114 return *internal_default_instance();
2115}
2116
2117
2118void HWComponentInfoGetRequest::Clear() {
2119// @@protoc_insertion_point(message_clear_start:dmi.HWComponentInfoGetRequest)
2120 ::google::protobuf::uint32 cached_has_bits = 0;
2121 // Prevent compiler warnings about cached_has_bits being unused
2122 (void) cached_has_bits;
2123
2124 component_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2125 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
2126 delete device_uuid_;
2127 }
2128 device_uuid_ = nullptr;
2129 if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) {
2130 delete component_uuid_;
2131 }
2132 component_uuid_ = nullptr;
2133 _internal_metadata_.Clear();
2134}
2135
2136#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2137const char* HWComponentInfoGetRequest::_InternalParse(const char* begin, const char* end, void* object,
2138 ::google::protobuf::internal::ParseContext* ctx) {
2139 auto msg = static_cast<HWComponentInfoGetRequest*>(object);
2140 ::google::protobuf::int32 size; (void)size;
2141 int depth; (void)depth;
2142 ::google::protobuf::uint32 tag;
2143 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
2144 auto ptr = begin;
2145 while (ptr < end) {
2146 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
2147 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2148 switch (tag >> 3) {
2149 // .dmi.Uuid device_uuid = 1;
2150 case 1: {
2151 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
2152 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
2153 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2154 parser_till_end = ::dmi::Uuid::_InternalParse;
2155 object = msg->mutable_device_uuid();
2156 if (size > end - ptr) goto len_delim_till_end;
2157 ptr += size;
2158 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
2159 {parser_till_end, object}, ptr - size, ptr));
2160 break;
2161 }
2162 // .dmi.Uuid component_uuid = 2;
2163 case 2: {
2164 if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
2165 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
2166 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2167 parser_till_end = ::dmi::Uuid::_InternalParse;
2168 object = msg->mutable_component_uuid();
2169 if (size > end - ptr) goto len_delim_till_end;
2170 ptr += size;
2171 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
2172 {parser_till_end, object}, ptr - size, ptr));
2173 break;
2174 }
2175 // string component_name = 3;
2176 case 3: {
2177 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
2178 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
2179 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2180 ctx->extra_parse_data().SetFieldName("dmi.HWComponentInfoGetRequest.component_name");
2181 object = msg->mutable_component_name();
2182 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
2183 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
2184 goto string_till_end;
2185 }
2186 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
2187 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
2188 ptr += size;
2189 break;
2190 }
2191 default: {
2192 handle_unusual:
2193 if ((tag & 7) == 4 || tag == 0) {
2194 ctx->EndGroup(tag);
2195 return ptr;
2196 }
2197 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
2198 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
2199 ptr = res.first;
2200 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
2201 if (res.second) return ptr;
2202 }
2203 } // switch
2204 } // while
2205 return ptr;
2206string_till_end:
2207 static_cast<::std::string*>(object)->clear();
2208 static_cast<::std::string*>(object)->reserve(size);
2209 goto len_delim_till_end;
2210len_delim_till_end:
2211 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
2212 {parser_till_end, object}, size);
2213}
2214#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2215bool HWComponentInfoGetRequest::MergePartialFromCodedStream(
2216 ::google::protobuf::io::CodedInputStream* input) {
2217#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
2218 ::google::protobuf::uint32 tag;
2219 // @@protoc_insertion_point(parse_start:dmi.HWComponentInfoGetRequest)
2220 for (;;) {
2221 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2222 tag = p.first;
2223 if (!p.second) goto handle_unusual;
2224 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2225 // .dmi.Uuid device_uuid = 1;
2226 case 1: {
2227 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
2228 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
2229 input, mutable_device_uuid()));
2230 } else {
2231 goto handle_unusual;
2232 }
2233 break;
2234 }
2235
2236 // .dmi.Uuid component_uuid = 2;
2237 case 2: {
2238 if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
2239 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
2240 input, mutable_component_uuid()));
2241 } else {
2242 goto handle_unusual;
2243 }
2244 break;
2245 }
2246
2247 // string component_name = 3;
2248 case 3: {
2249 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
2250 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2251 input, this->mutable_component_name()));
2252 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2253 this->component_name().data(), static_cast<int>(this->component_name().length()),
2254 ::google::protobuf::internal::WireFormatLite::PARSE,
2255 "dmi.HWComponentInfoGetRequest.component_name"));
2256 } else {
2257 goto handle_unusual;
2258 }
2259 break;
2260 }
2261
2262 default: {
2263 handle_unusual:
2264 if (tag == 0) {
2265 goto success;
2266 }
2267 DO_(::google::protobuf::internal::WireFormat::SkipField(
2268 input, tag, _internal_metadata_.mutable_unknown_fields()));
2269 break;
2270 }
2271 }
2272 }
2273success:
2274 // @@protoc_insertion_point(parse_success:dmi.HWComponentInfoGetRequest)
2275 return true;
2276failure:
2277 // @@protoc_insertion_point(parse_failure:dmi.HWComponentInfoGetRequest)
2278 return false;
2279#undef DO_
2280}
2281#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2282
2283void HWComponentInfoGetRequest::SerializeWithCachedSizes(
2284 ::google::protobuf::io::CodedOutputStream* output) const {
2285 // @@protoc_insertion_point(serialize_start:dmi.HWComponentInfoGetRequest)
2286 ::google::protobuf::uint32 cached_has_bits = 0;
2287 (void) cached_has_bits;
2288
2289 // .dmi.Uuid device_uuid = 1;
2290 if (this->has_device_uuid()) {
2291 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2292 1, HasBitSetters::device_uuid(this), output);
2293 }
2294
2295 // .dmi.Uuid component_uuid = 2;
2296 if (this->has_component_uuid()) {
2297 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2298 2, HasBitSetters::component_uuid(this), output);
2299 }
2300
2301 // string component_name = 3;
2302 if (this->component_name().size() > 0) {
2303 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2304 this->component_name().data(), static_cast<int>(this->component_name().length()),
2305 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
2306 "dmi.HWComponentInfoGetRequest.component_name");
2307 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2308 3, this->component_name(), output);
2309 }
2310
2311 if (_internal_metadata_.have_unknown_fields()) {
2312 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2313 _internal_metadata_.unknown_fields(), output);
2314 }
2315 // @@protoc_insertion_point(serialize_end:dmi.HWComponentInfoGetRequest)
2316}
2317
2318::google::protobuf::uint8* HWComponentInfoGetRequest::InternalSerializeWithCachedSizesToArray(
2319 ::google::protobuf::uint8* target) const {
2320 // @@protoc_insertion_point(serialize_to_array_start:dmi.HWComponentInfoGetRequest)
2321 ::google::protobuf::uint32 cached_has_bits = 0;
2322 (void) cached_has_bits;
2323
2324 // .dmi.Uuid device_uuid = 1;
2325 if (this->has_device_uuid()) {
2326 target = ::google::protobuf::internal::WireFormatLite::
2327 InternalWriteMessageToArray(
2328 1, HasBitSetters::device_uuid(this), target);
2329 }
2330
2331 // .dmi.Uuid component_uuid = 2;
2332 if (this->has_component_uuid()) {
2333 target = ::google::protobuf::internal::WireFormatLite::
2334 InternalWriteMessageToArray(
2335 2, HasBitSetters::component_uuid(this), target);
2336 }
2337
2338 // string component_name = 3;
2339 if (this->component_name().size() > 0) {
2340 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2341 this->component_name().data(), static_cast<int>(this->component_name().length()),
2342 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
2343 "dmi.HWComponentInfoGetRequest.component_name");
2344 target =
2345 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2346 3, this->component_name(), target);
2347 }
2348
2349 if (_internal_metadata_.have_unknown_fields()) {
2350 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2351 _internal_metadata_.unknown_fields(), target);
2352 }
2353 // @@protoc_insertion_point(serialize_to_array_end:dmi.HWComponentInfoGetRequest)
2354 return target;
2355}
2356
2357size_t HWComponentInfoGetRequest::ByteSizeLong() const {
2358// @@protoc_insertion_point(message_byte_size_start:dmi.HWComponentInfoGetRequest)
2359 size_t total_size = 0;
2360
2361 if (_internal_metadata_.have_unknown_fields()) {
2362 total_size +=
2363 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2364 _internal_metadata_.unknown_fields());
2365 }
2366 ::google::protobuf::uint32 cached_has_bits = 0;
2367 // Prevent compiler warnings about cached_has_bits being unused
2368 (void) cached_has_bits;
2369
2370 // string component_name = 3;
2371 if (this->component_name().size() > 0) {
2372 total_size += 1 +
2373 ::google::protobuf::internal::WireFormatLite::StringSize(
2374 this->component_name());
2375 }
2376
2377 // .dmi.Uuid device_uuid = 1;
2378 if (this->has_device_uuid()) {
2379 total_size += 1 +
2380 ::google::protobuf::internal::WireFormatLite::MessageSize(
2381 *device_uuid_);
2382 }
2383
2384 // .dmi.Uuid component_uuid = 2;
2385 if (this->has_component_uuid()) {
2386 total_size += 1 +
2387 ::google::protobuf::internal::WireFormatLite::MessageSize(
2388 *component_uuid_);
2389 }
2390
2391 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2392 SetCachedSize(cached_size);
2393 return total_size;
2394}
2395
2396void HWComponentInfoGetRequest::MergeFrom(const ::google::protobuf::Message& from) {
2397// @@protoc_insertion_point(generalized_merge_from_start:dmi.HWComponentInfoGetRequest)
2398 GOOGLE_DCHECK_NE(&from, this);
2399 const HWComponentInfoGetRequest* source =
2400 ::google::protobuf::DynamicCastToGenerated<HWComponentInfoGetRequest>(
2401 &from);
2402 if (source == nullptr) {
2403 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.HWComponentInfoGetRequest)
2404 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2405 } else {
2406 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.HWComponentInfoGetRequest)
2407 MergeFrom(*source);
2408 }
2409}
2410
2411void HWComponentInfoGetRequest::MergeFrom(const HWComponentInfoGetRequest& from) {
2412// @@protoc_insertion_point(class_specific_merge_from_start:dmi.HWComponentInfoGetRequest)
2413 GOOGLE_DCHECK_NE(&from, this);
2414 _internal_metadata_.MergeFrom(from._internal_metadata_);
2415 ::google::protobuf::uint32 cached_has_bits = 0;
2416 (void) cached_has_bits;
2417
2418 if (from.component_name().size() > 0) {
2419
2420 component_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.component_name_);
2421 }
2422 if (from.has_device_uuid()) {
2423 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
2424 }
2425 if (from.has_component_uuid()) {
2426 mutable_component_uuid()->::dmi::Uuid::MergeFrom(from.component_uuid());
2427 }
2428}
2429
2430void HWComponentInfoGetRequest::CopyFrom(const ::google::protobuf::Message& from) {
2431// @@protoc_insertion_point(generalized_copy_from_start:dmi.HWComponentInfoGetRequest)
2432 if (&from == this) return;
2433 Clear();
2434 MergeFrom(from);
2435}
2436
2437void HWComponentInfoGetRequest::CopyFrom(const HWComponentInfoGetRequest& from) {
2438// @@protoc_insertion_point(class_specific_copy_from_start:dmi.HWComponentInfoGetRequest)
2439 if (&from == this) return;
2440 Clear();
2441 MergeFrom(from);
2442}
2443
2444bool HWComponentInfoGetRequest::IsInitialized() const {
2445 return true;
2446}
2447
2448void HWComponentInfoGetRequest::Swap(HWComponentInfoGetRequest* other) {
2449 if (other == this) return;
2450 InternalSwap(other);
2451}
2452void HWComponentInfoGetRequest::InternalSwap(HWComponentInfoGetRequest* other) {
2453 using std::swap;
2454 _internal_metadata_.Swap(&other->_internal_metadata_);
2455 component_name_.Swap(&other->component_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2456 GetArenaNoVirtual());
2457 swap(device_uuid_, other->device_uuid_);
2458 swap(component_uuid_, other->component_uuid_);
2459}
2460
2461::google::protobuf::Metadata HWComponentInfoGetRequest::GetMetadata() const {
2462 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
2463 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
2464}
2465
2466
2467// ===================================================================
2468
2469void HWComponentInfoGetResponse::InitAsDefaultInstance() {
2470 ::dmi::_HWComponentInfoGetResponse_default_instance_._instance.get_mutable()->component_ = const_cast< ::dmi::Component*>(
2471 ::dmi::Component::internal_default_instance());
2472}
2473class HWComponentInfoGetResponse::HasBitSetters {
2474 public:
2475 static const ::dmi::Component& component(const HWComponentInfoGetResponse* msg);
2476};
2477
2478const ::dmi::Component&
2479HWComponentInfoGetResponse::HasBitSetters::component(const HWComponentInfoGetResponse* msg) {
2480 return *msg->component_;
2481}
2482void HWComponentInfoGetResponse::clear_component() {
2483 if (GetArenaNoVirtual() == nullptr && component_ != nullptr) {
2484 delete component_;
2485 }
2486 component_ = nullptr;
2487}
2488#if !defined(_MSC_VER) || _MSC_VER >= 1900
2489const int HWComponentInfoGetResponse::kStatusFieldNumber;
2490const int HWComponentInfoGetResponse::kReasonFieldNumber;
2491const int HWComponentInfoGetResponse::kComponentFieldNumber;
2492const int HWComponentInfoGetResponse::kReasonDetailFieldNumber;
2493#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
2494
2495HWComponentInfoGetResponse::HWComponentInfoGetResponse()
2496 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
2497 SharedCtor();
2498 // @@protoc_insertion_point(constructor:dmi.HWComponentInfoGetResponse)
2499}
2500HWComponentInfoGetResponse::HWComponentInfoGetResponse(const HWComponentInfoGetResponse& from)
2501 : ::google::protobuf::Message(),
2502 _internal_metadata_(nullptr) {
2503 _internal_metadata_.MergeFrom(from._internal_metadata_);
2504 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2505 if (from.reason_detail().size() > 0) {
2506 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
2507 }
2508 if (from.has_component()) {
2509 component_ = new ::dmi::Component(*from.component_);
2510 } else {
2511 component_ = nullptr;
2512 }
2513 ::memcpy(&status_, &from.status_,
2514 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
2515 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
2516 // @@protoc_insertion_point(copy_constructor:dmi.HWComponentInfoGetResponse)
2517}
2518
2519void HWComponentInfoGetResponse::SharedCtor() {
2520 ::google::protobuf::internal::InitSCC(
2521 &scc_info_HWComponentInfoGetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
2522 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2523 ::memset(&component_, 0, static_cast<size_t>(
2524 reinterpret_cast<char*>(&reason_) -
2525 reinterpret_cast<char*>(&component_)) + sizeof(reason_));
2526}
2527
2528HWComponentInfoGetResponse::~HWComponentInfoGetResponse() {
2529 // @@protoc_insertion_point(destructor:dmi.HWComponentInfoGetResponse)
2530 SharedDtor();
2531}
2532
2533void HWComponentInfoGetResponse::SharedDtor() {
2534 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2535 if (this != internal_default_instance()) delete component_;
2536}
2537
2538void HWComponentInfoGetResponse::SetCachedSize(int size) const {
2539 _cached_size_.Set(size);
2540}
2541const HWComponentInfoGetResponse& HWComponentInfoGetResponse::default_instance() {
2542 ::google::protobuf::internal::InitSCC(&::scc_info_HWComponentInfoGetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
2543 return *internal_default_instance();
2544}
2545
2546
2547void HWComponentInfoGetResponse::Clear() {
2548// @@protoc_insertion_point(message_clear_start:dmi.HWComponentInfoGetResponse)
2549 ::google::protobuf::uint32 cached_has_bits = 0;
2550 // Prevent compiler warnings about cached_has_bits being unused
2551 (void) cached_has_bits;
2552
2553 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2554 if (GetArenaNoVirtual() == nullptr && component_ != nullptr) {
2555 delete component_;
2556 }
2557 component_ = nullptr;
2558 ::memset(&status_, 0, static_cast<size_t>(
2559 reinterpret_cast<char*>(&reason_) -
2560 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
2561 _internal_metadata_.Clear();
2562}
2563
2564#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2565const char* HWComponentInfoGetResponse::_InternalParse(const char* begin, const char* end, void* object,
2566 ::google::protobuf::internal::ParseContext* ctx) {
2567 auto msg = static_cast<HWComponentInfoGetResponse*>(object);
2568 ::google::protobuf::int32 size; (void)size;
2569 int depth; (void)depth;
2570 ::google::protobuf::uint32 tag;
2571 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
2572 auto ptr = begin;
2573 while (ptr < end) {
2574 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
2575 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2576 switch (tag >> 3) {
2577 // .dmi.Status status = 1;
2578 case 1: {
2579 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
2580 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
2581 msg->set_status(static_cast<::dmi::Status>(val));
2582 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2583 break;
2584 }
2585 // .dmi.HWComponentInfoGetResponse.Reason reason = 2;
2586 case 2: {
2587 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
2588 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
2589 msg->set_reason(static_cast<::dmi::HWComponentInfoGetResponse_Reason>(val));
2590 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2591 break;
2592 }
2593 // .dmi.Component component = 3;
2594 case 3: {
2595 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
2596 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
2597 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2598 parser_till_end = ::dmi::Component::_InternalParse;
2599 object = msg->mutable_component();
2600 if (size > end - ptr) goto len_delim_till_end;
2601 ptr += size;
2602 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
2603 {parser_till_end, object}, ptr - size, ptr));
2604 break;
2605 }
2606 // string reason_detail = 4;
2607 case 4: {
2608 if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual;
2609 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
2610 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2611 ctx->extra_parse_data().SetFieldName("dmi.HWComponentInfoGetResponse.reason_detail");
2612 object = msg->mutable_reason_detail();
2613 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
2614 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
2615 goto string_till_end;
2616 }
2617 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
2618 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
2619 ptr += size;
2620 break;
2621 }
2622 default: {
2623 handle_unusual:
2624 if ((tag & 7) == 4 || tag == 0) {
2625 ctx->EndGroup(tag);
2626 return ptr;
2627 }
2628 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
2629 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
2630 ptr = res.first;
2631 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
2632 if (res.second) return ptr;
2633 }
2634 } // switch
2635 } // while
2636 return ptr;
2637string_till_end:
2638 static_cast<::std::string*>(object)->clear();
2639 static_cast<::std::string*>(object)->reserve(size);
2640 goto len_delim_till_end;
2641len_delim_till_end:
2642 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
2643 {parser_till_end, object}, size);
2644}
2645#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2646bool HWComponentInfoGetResponse::MergePartialFromCodedStream(
2647 ::google::protobuf::io::CodedInputStream* input) {
2648#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
2649 ::google::protobuf::uint32 tag;
2650 // @@protoc_insertion_point(parse_start:dmi.HWComponentInfoGetResponse)
2651 for (;;) {
2652 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2653 tag = p.first;
2654 if (!p.second) goto handle_unusual;
2655 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2656 // .dmi.Status status = 1;
2657 case 1: {
2658 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
2659 int value = 0;
2660 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2661 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
2662 input, &value)));
2663 set_status(static_cast< ::dmi::Status >(value));
2664 } else {
2665 goto handle_unusual;
2666 }
2667 break;
2668 }
2669
2670 // .dmi.HWComponentInfoGetResponse.Reason reason = 2;
2671 case 2: {
2672 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
2673 int value = 0;
2674 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2675 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
2676 input, &value)));
2677 set_reason(static_cast< ::dmi::HWComponentInfoGetResponse_Reason >(value));
2678 } else {
2679 goto handle_unusual;
2680 }
2681 break;
2682 }
2683
2684 // .dmi.Component component = 3;
2685 case 3: {
2686 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
2687 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
2688 input, mutable_component()));
2689 } else {
2690 goto handle_unusual;
2691 }
2692 break;
2693 }
2694
2695 // string reason_detail = 4;
2696 case 4: {
2697 if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
2698 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2699 input, this->mutable_reason_detail()));
2700 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2701 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
2702 ::google::protobuf::internal::WireFormatLite::PARSE,
2703 "dmi.HWComponentInfoGetResponse.reason_detail"));
2704 } else {
2705 goto handle_unusual;
2706 }
2707 break;
2708 }
2709
2710 default: {
2711 handle_unusual:
2712 if (tag == 0) {
2713 goto success;
2714 }
2715 DO_(::google::protobuf::internal::WireFormat::SkipField(
2716 input, tag, _internal_metadata_.mutable_unknown_fields()));
2717 break;
2718 }
2719 }
2720 }
2721success:
2722 // @@protoc_insertion_point(parse_success:dmi.HWComponentInfoGetResponse)
2723 return true;
2724failure:
2725 // @@protoc_insertion_point(parse_failure:dmi.HWComponentInfoGetResponse)
2726 return false;
2727#undef DO_
2728}
2729#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2730
2731void HWComponentInfoGetResponse::SerializeWithCachedSizes(
2732 ::google::protobuf::io::CodedOutputStream* output) const {
2733 // @@protoc_insertion_point(serialize_start:dmi.HWComponentInfoGetResponse)
2734 ::google::protobuf::uint32 cached_has_bits = 0;
2735 (void) cached_has_bits;
2736
2737 // .dmi.Status status = 1;
2738 if (this->status() != 0) {
2739 ::google::protobuf::internal::WireFormatLite::WriteEnum(
2740 1, this->status(), output);
2741 }
2742
2743 // .dmi.HWComponentInfoGetResponse.Reason reason = 2;
2744 if (this->reason() != 0) {
2745 ::google::protobuf::internal::WireFormatLite::WriteEnum(
2746 2, this->reason(), output);
2747 }
2748
2749 // .dmi.Component component = 3;
2750 if (this->has_component()) {
2751 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2752 3, HasBitSetters::component(this), output);
2753 }
2754
2755 // string reason_detail = 4;
2756 if (this->reason_detail().size() > 0) {
2757 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2758 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
2759 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
2760 "dmi.HWComponentInfoGetResponse.reason_detail");
2761 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2762 4, this->reason_detail(), output);
2763 }
2764
2765 if (_internal_metadata_.have_unknown_fields()) {
2766 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2767 _internal_metadata_.unknown_fields(), output);
2768 }
2769 // @@protoc_insertion_point(serialize_end:dmi.HWComponentInfoGetResponse)
2770}
2771
2772::google::protobuf::uint8* HWComponentInfoGetResponse::InternalSerializeWithCachedSizesToArray(
2773 ::google::protobuf::uint8* target) const {
2774 // @@protoc_insertion_point(serialize_to_array_start:dmi.HWComponentInfoGetResponse)
2775 ::google::protobuf::uint32 cached_has_bits = 0;
2776 (void) cached_has_bits;
2777
2778 // .dmi.Status status = 1;
2779 if (this->status() != 0) {
2780 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2781 1, this->status(), target);
2782 }
2783
2784 // .dmi.HWComponentInfoGetResponse.Reason reason = 2;
2785 if (this->reason() != 0) {
2786 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2787 2, this->reason(), target);
2788 }
2789
2790 // .dmi.Component component = 3;
2791 if (this->has_component()) {
2792 target = ::google::protobuf::internal::WireFormatLite::
2793 InternalWriteMessageToArray(
2794 3, HasBitSetters::component(this), target);
2795 }
2796
2797 // string reason_detail = 4;
2798 if (this->reason_detail().size() > 0) {
2799 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2800 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
2801 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
2802 "dmi.HWComponentInfoGetResponse.reason_detail");
2803 target =
2804 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2805 4, this->reason_detail(), target);
2806 }
2807
2808 if (_internal_metadata_.have_unknown_fields()) {
2809 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2810 _internal_metadata_.unknown_fields(), target);
2811 }
2812 // @@protoc_insertion_point(serialize_to_array_end:dmi.HWComponentInfoGetResponse)
2813 return target;
2814}
2815
2816size_t HWComponentInfoGetResponse::ByteSizeLong() const {
2817// @@protoc_insertion_point(message_byte_size_start:dmi.HWComponentInfoGetResponse)
2818 size_t total_size = 0;
2819
2820 if (_internal_metadata_.have_unknown_fields()) {
2821 total_size +=
2822 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2823 _internal_metadata_.unknown_fields());
2824 }
2825 ::google::protobuf::uint32 cached_has_bits = 0;
2826 // Prevent compiler warnings about cached_has_bits being unused
2827 (void) cached_has_bits;
2828
2829 // string reason_detail = 4;
2830 if (this->reason_detail().size() > 0) {
2831 total_size += 1 +
2832 ::google::protobuf::internal::WireFormatLite::StringSize(
2833 this->reason_detail());
2834 }
2835
2836 // .dmi.Component component = 3;
2837 if (this->has_component()) {
2838 total_size += 1 +
2839 ::google::protobuf::internal::WireFormatLite::MessageSize(
2840 *component_);
2841 }
2842
2843 // .dmi.Status status = 1;
2844 if (this->status() != 0) {
2845 total_size += 1 +
2846 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
2847 }
2848
2849 // .dmi.HWComponentInfoGetResponse.Reason reason = 2;
2850 if (this->reason() != 0) {
2851 total_size += 1 +
2852 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
2853 }
2854
2855 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2856 SetCachedSize(cached_size);
2857 return total_size;
2858}
2859
2860void HWComponentInfoGetResponse::MergeFrom(const ::google::protobuf::Message& from) {
2861// @@protoc_insertion_point(generalized_merge_from_start:dmi.HWComponentInfoGetResponse)
2862 GOOGLE_DCHECK_NE(&from, this);
2863 const HWComponentInfoGetResponse* source =
2864 ::google::protobuf::DynamicCastToGenerated<HWComponentInfoGetResponse>(
2865 &from);
2866 if (source == nullptr) {
2867 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.HWComponentInfoGetResponse)
2868 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2869 } else {
2870 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.HWComponentInfoGetResponse)
2871 MergeFrom(*source);
2872 }
2873}
2874
2875void HWComponentInfoGetResponse::MergeFrom(const HWComponentInfoGetResponse& from) {
2876// @@protoc_insertion_point(class_specific_merge_from_start:dmi.HWComponentInfoGetResponse)
2877 GOOGLE_DCHECK_NE(&from, this);
2878 _internal_metadata_.MergeFrom(from._internal_metadata_);
2879 ::google::protobuf::uint32 cached_has_bits = 0;
2880 (void) cached_has_bits;
2881
2882 if (from.reason_detail().size() > 0) {
2883
2884 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
2885 }
2886 if (from.has_component()) {
2887 mutable_component()->::dmi::Component::MergeFrom(from.component());
2888 }
2889 if (from.status() != 0) {
2890 set_status(from.status());
2891 }
2892 if (from.reason() != 0) {
2893 set_reason(from.reason());
2894 }
2895}
2896
2897void HWComponentInfoGetResponse::CopyFrom(const ::google::protobuf::Message& from) {
2898// @@protoc_insertion_point(generalized_copy_from_start:dmi.HWComponentInfoGetResponse)
2899 if (&from == this) return;
2900 Clear();
2901 MergeFrom(from);
2902}
2903
2904void HWComponentInfoGetResponse::CopyFrom(const HWComponentInfoGetResponse& from) {
2905// @@protoc_insertion_point(class_specific_copy_from_start:dmi.HWComponentInfoGetResponse)
2906 if (&from == this) return;
2907 Clear();
2908 MergeFrom(from);
2909}
2910
2911bool HWComponentInfoGetResponse::IsInitialized() const {
2912 return true;
2913}
2914
2915void HWComponentInfoGetResponse::Swap(HWComponentInfoGetResponse* other) {
2916 if (other == this) return;
2917 InternalSwap(other);
2918}
2919void HWComponentInfoGetResponse::InternalSwap(HWComponentInfoGetResponse* other) {
2920 using std::swap;
2921 _internal_metadata_.Swap(&other->_internal_metadata_);
2922 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2923 GetArenaNoVirtual());
2924 swap(component_, other->component_);
2925 swap(status_, other->status_);
2926 swap(reason_, other->reason_);
2927}
2928
2929::google::protobuf::Metadata HWComponentInfoGetResponse::GetMetadata() const {
2930 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
2931 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
2932}
2933
2934
2935// ===================================================================
2936
2937void HWComponentInfoSetRequest::InitAsDefaultInstance() {
2938 ::dmi::_HWComponentInfoSetRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
2939 ::dmi::Uuid::internal_default_instance());
2940 ::dmi::_HWComponentInfoSetRequest_default_instance_._instance.get_mutable()->component_uuid_ = const_cast< ::dmi::Uuid*>(
2941 ::dmi::Uuid::internal_default_instance());
2942 ::dmi::_HWComponentInfoSetRequest_default_instance_._instance.get_mutable()->changes_ = const_cast< ::dmi::ModifiableComponent*>(
2943 ::dmi::ModifiableComponent::internal_default_instance());
2944}
2945class HWComponentInfoSetRequest::HasBitSetters {
2946 public:
2947 static const ::dmi::Uuid& device_uuid(const HWComponentInfoSetRequest* msg);
2948 static const ::dmi::Uuid& component_uuid(const HWComponentInfoSetRequest* msg);
2949 static const ::dmi::ModifiableComponent& changes(const HWComponentInfoSetRequest* msg);
2950};
2951
2952const ::dmi::Uuid&
2953HWComponentInfoSetRequest::HasBitSetters::device_uuid(const HWComponentInfoSetRequest* msg) {
2954 return *msg->device_uuid_;
2955}
2956const ::dmi::Uuid&
2957HWComponentInfoSetRequest::HasBitSetters::component_uuid(const HWComponentInfoSetRequest* msg) {
2958 return *msg->component_uuid_;
2959}
2960const ::dmi::ModifiableComponent&
2961HWComponentInfoSetRequest::HasBitSetters::changes(const HWComponentInfoSetRequest* msg) {
2962 return *msg->changes_;
2963}
2964void HWComponentInfoSetRequest::clear_device_uuid() {
2965 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
2966 delete device_uuid_;
2967 }
2968 device_uuid_ = nullptr;
2969}
2970void HWComponentInfoSetRequest::clear_component_uuid() {
2971 if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) {
2972 delete component_uuid_;
2973 }
2974 component_uuid_ = nullptr;
2975}
2976void HWComponentInfoSetRequest::clear_changes() {
2977 if (GetArenaNoVirtual() == nullptr && changes_ != nullptr) {
2978 delete changes_;
2979 }
2980 changes_ = nullptr;
2981}
2982#if !defined(_MSC_VER) || _MSC_VER >= 1900
2983const int HWComponentInfoSetRequest::kDeviceUuidFieldNumber;
2984const int HWComponentInfoSetRequest::kComponentUuidFieldNumber;
2985const int HWComponentInfoSetRequest::kComponentNameFieldNumber;
2986const int HWComponentInfoSetRequest::kChangesFieldNumber;
2987#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
2988
2989HWComponentInfoSetRequest::HWComponentInfoSetRequest()
2990 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
2991 SharedCtor();
2992 // @@protoc_insertion_point(constructor:dmi.HWComponentInfoSetRequest)
2993}
2994HWComponentInfoSetRequest::HWComponentInfoSetRequest(const HWComponentInfoSetRequest& from)
2995 : ::google::protobuf::Message(),
2996 _internal_metadata_(nullptr) {
2997 _internal_metadata_.MergeFrom(from._internal_metadata_);
2998 component_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2999 if (from.component_name().size() > 0) {
3000 component_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.component_name_);
3001 }
3002 if (from.has_device_uuid()) {
3003 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
3004 } else {
3005 device_uuid_ = nullptr;
3006 }
3007 if (from.has_component_uuid()) {
3008 component_uuid_ = new ::dmi::Uuid(*from.component_uuid_);
3009 } else {
3010 component_uuid_ = nullptr;
3011 }
3012 if (from.has_changes()) {
3013 changes_ = new ::dmi::ModifiableComponent(*from.changes_);
3014 } else {
3015 changes_ = nullptr;
3016 }
3017 // @@protoc_insertion_point(copy_constructor:dmi.HWComponentInfoSetRequest)
3018}
3019
3020void HWComponentInfoSetRequest::SharedCtor() {
3021 ::google::protobuf::internal::InitSCC(
3022 &scc_info_HWComponentInfoSetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
3023 component_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3024 ::memset(&device_uuid_, 0, static_cast<size_t>(
3025 reinterpret_cast<char*>(&changes_) -
3026 reinterpret_cast<char*>(&device_uuid_)) + sizeof(changes_));
3027}
3028
3029HWComponentInfoSetRequest::~HWComponentInfoSetRequest() {
3030 // @@protoc_insertion_point(destructor:dmi.HWComponentInfoSetRequest)
3031 SharedDtor();
3032}
3033
3034void HWComponentInfoSetRequest::SharedDtor() {
3035 component_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3036 if (this != internal_default_instance()) delete device_uuid_;
3037 if (this != internal_default_instance()) delete component_uuid_;
3038 if (this != internal_default_instance()) delete changes_;
3039}
3040
3041void HWComponentInfoSetRequest::SetCachedSize(int size) const {
3042 _cached_size_.Set(size);
3043}
3044const HWComponentInfoSetRequest& HWComponentInfoSetRequest::default_instance() {
3045 ::google::protobuf::internal::InitSCC(&::scc_info_HWComponentInfoSetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
3046 return *internal_default_instance();
3047}
3048
3049
3050void HWComponentInfoSetRequest::Clear() {
3051// @@protoc_insertion_point(message_clear_start:dmi.HWComponentInfoSetRequest)
3052 ::google::protobuf::uint32 cached_has_bits = 0;
3053 // Prevent compiler warnings about cached_has_bits being unused
3054 (void) cached_has_bits;
3055
3056 component_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3057 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
3058 delete device_uuid_;
3059 }
3060 device_uuid_ = nullptr;
3061 if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) {
3062 delete component_uuid_;
3063 }
3064 component_uuid_ = nullptr;
3065 if (GetArenaNoVirtual() == nullptr && changes_ != nullptr) {
3066 delete changes_;
3067 }
3068 changes_ = nullptr;
3069 _internal_metadata_.Clear();
3070}
3071
3072#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3073const char* HWComponentInfoSetRequest::_InternalParse(const char* begin, const char* end, void* object,
3074 ::google::protobuf::internal::ParseContext* ctx) {
3075 auto msg = static_cast<HWComponentInfoSetRequest*>(object);
3076 ::google::protobuf::int32 size; (void)size;
3077 int depth; (void)depth;
3078 ::google::protobuf::uint32 tag;
3079 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
3080 auto ptr = begin;
3081 while (ptr < end) {
3082 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
3083 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3084 switch (tag >> 3) {
3085 // .dmi.Uuid device_uuid = 1;
3086 case 1: {
3087 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
3088 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
3089 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3090 parser_till_end = ::dmi::Uuid::_InternalParse;
3091 object = msg->mutable_device_uuid();
3092 if (size > end - ptr) goto len_delim_till_end;
3093 ptr += size;
3094 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
3095 {parser_till_end, object}, ptr - size, ptr));
3096 break;
3097 }
3098 // .dmi.Uuid component_uuid = 2;
3099 case 2: {
3100 if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
3101 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
3102 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3103 parser_till_end = ::dmi::Uuid::_InternalParse;
3104 object = msg->mutable_component_uuid();
3105 if (size > end - ptr) goto len_delim_till_end;
3106 ptr += size;
3107 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
3108 {parser_till_end, object}, ptr - size, ptr));
3109 break;
3110 }
3111 // string component_name = 3;
3112 case 3: {
3113 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
3114 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
3115 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3116 ctx->extra_parse_data().SetFieldName("dmi.HWComponentInfoSetRequest.component_name");
3117 object = msg->mutable_component_name();
3118 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
3119 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
3120 goto string_till_end;
3121 }
3122 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
3123 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
3124 ptr += size;
3125 break;
3126 }
3127 // .dmi.ModifiableComponent changes = 4;
3128 case 4: {
3129 if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual;
3130 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
3131 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3132 parser_till_end = ::dmi::ModifiableComponent::_InternalParse;
3133 object = msg->mutable_changes();
3134 if (size > end - ptr) goto len_delim_till_end;
3135 ptr += size;
3136 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
3137 {parser_till_end, object}, ptr - size, ptr));
3138 break;
3139 }
3140 default: {
3141 handle_unusual:
3142 if ((tag & 7) == 4 || tag == 0) {
3143 ctx->EndGroup(tag);
3144 return ptr;
3145 }
3146 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
3147 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
3148 ptr = res.first;
3149 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
3150 if (res.second) return ptr;
3151 }
3152 } // switch
3153 } // while
3154 return ptr;
3155string_till_end:
3156 static_cast<::std::string*>(object)->clear();
3157 static_cast<::std::string*>(object)->reserve(size);
3158 goto len_delim_till_end;
3159len_delim_till_end:
3160 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
3161 {parser_till_end, object}, size);
3162}
3163#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3164bool HWComponentInfoSetRequest::MergePartialFromCodedStream(
3165 ::google::protobuf::io::CodedInputStream* input) {
3166#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
3167 ::google::protobuf::uint32 tag;
3168 // @@protoc_insertion_point(parse_start:dmi.HWComponentInfoSetRequest)
3169 for (;;) {
3170 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3171 tag = p.first;
3172 if (!p.second) goto handle_unusual;
3173 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3174 // .dmi.Uuid device_uuid = 1;
3175 case 1: {
3176 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
3177 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3178 input, mutable_device_uuid()));
3179 } else {
3180 goto handle_unusual;
3181 }
3182 break;
3183 }
3184
3185 // .dmi.Uuid component_uuid = 2;
3186 case 2: {
3187 if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
3188 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3189 input, mutable_component_uuid()));
3190 } else {
3191 goto handle_unusual;
3192 }
3193 break;
3194 }
3195
3196 // string component_name = 3;
3197 case 3: {
3198 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
3199 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3200 input, this->mutable_component_name()));
3201 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3202 this->component_name().data(), static_cast<int>(this->component_name().length()),
3203 ::google::protobuf::internal::WireFormatLite::PARSE,
3204 "dmi.HWComponentInfoSetRequest.component_name"));
3205 } else {
3206 goto handle_unusual;
3207 }
3208 break;
3209 }
3210
3211 // .dmi.ModifiableComponent changes = 4;
3212 case 4: {
3213 if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
3214 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3215 input, mutable_changes()));
3216 } else {
3217 goto handle_unusual;
3218 }
3219 break;
3220 }
3221
3222 default: {
3223 handle_unusual:
3224 if (tag == 0) {
3225 goto success;
3226 }
3227 DO_(::google::protobuf::internal::WireFormat::SkipField(
3228 input, tag, _internal_metadata_.mutable_unknown_fields()));
3229 break;
3230 }
3231 }
3232 }
3233success:
3234 // @@protoc_insertion_point(parse_success:dmi.HWComponentInfoSetRequest)
3235 return true;
3236failure:
3237 // @@protoc_insertion_point(parse_failure:dmi.HWComponentInfoSetRequest)
3238 return false;
3239#undef DO_
3240}
3241#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3242
3243void HWComponentInfoSetRequest::SerializeWithCachedSizes(
3244 ::google::protobuf::io::CodedOutputStream* output) const {
3245 // @@protoc_insertion_point(serialize_start:dmi.HWComponentInfoSetRequest)
3246 ::google::protobuf::uint32 cached_has_bits = 0;
3247 (void) cached_has_bits;
3248
3249 // .dmi.Uuid device_uuid = 1;
3250 if (this->has_device_uuid()) {
3251 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3252 1, HasBitSetters::device_uuid(this), output);
3253 }
3254
3255 // .dmi.Uuid component_uuid = 2;
3256 if (this->has_component_uuid()) {
3257 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3258 2, HasBitSetters::component_uuid(this), output);
3259 }
3260
3261 // string component_name = 3;
3262 if (this->component_name().size() > 0) {
3263 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3264 this->component_name().data(), static_cast<int>(this->component_name().length()),
3265 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
3266 "dmi.HWComponentInfoSetRequest.component_name");
3267 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3268 3, this->component_name(), output);
3269 }
3270
3271 // .dmi.ModifiableComponent changes = 4;
3272 if (this->has_changes()) {
3273 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3274 4, HasBitSetters::changes(this), output);
3275 }
3276
3277 if (_internal_metadata_.have_unknown_fields()) {
3278 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3279 _internal_metadata_.unknown_fields(), output);
3280 }
3281 // @@protoc_insertion_point(serialize_end:dmi.HWComponentInfoSetRequest)
3282}
3283
3284::google::protobuf::uint8* HWComponentInfoSetRequest::InternalSerializeWithCachedSizesToArray(
3285 ::google::protobuf::uint8* target) const {
3286 // @@protoc_insertion_point(serialize_to_array_start:dmi.HWComponentInfoSetRequest)
3287 ::google::protobuf::uint32 cached_has_bits = 0;
3288 (void) cached_has_bits;
3289
3290 // .dmi.Uuid device_uuid = 1;
3291 if (this->has_device_uuid()) {
3292 target = ::google::protobuf::internal::WireFormatLite::
3293 InternalWriteMessageToArray(
3294 1, HasBitSetters::device_uuid(this), target);
3295 }
3296
3297 // .dmi.Uuid component_uuid = 2;
3298 if (this->has_component_uuid()) {
3299 target = ::google::protobuf::internal::WireFormatLite::
3300 InternalWriteMessageToArray(
3301 2, HasBitSetters::component_uuid(this), target);
3302 }
3303
3304 // string component_name = 3;
3305 if (this->component_name().size() > 0) {
3306 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3307 this->component_name().data(), static_cast<int>(this->component_name().length()),
3308 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
3309 "dmi.HWComponentInfoSetRequest.component_name");
3310 target =
3311 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3312 3, this->component_name(), target);
3313 }
3314
3315 // .dmi.ModifiableComponent changes = 4;
3316 if (this->has_changes()) {
3317 target = ::google::protobuf::internal::WireFormatLite::
3318 InternalWriteMessageToArray(
3319 4, HasBitSetters::changes(this), target);
3320 }
3321
3322 if (_internal_metadata_.have_unknown_fields()) {
3323 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3324 _internal_metadata_.unknown_fields(), target);
3325 }
3326 // @@protoc_insertion_point(serialize_to_array_end:dmi.HWComponentInfoSetRequest)
3327 return target;
3328}
3329
3330size_t HWComponentInfoSetRequest::ByteSizeLong() const {
3331// @@protoc_insertion_point(message_byte_size_start:dmi.HWComponentInfoSetRequest)
3332 size_t total_size = 0;
3333
3334 if (_internal_metadata_.have_unknown_fields()) {
3335 total_size +=
3336 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3337 _internal_metadata_.unknown_fields());
3338 }
3339 ::google::protobuf::uint32 cached_has_bits = 0;
3340 // Prevent compiler warnings about cached_has_bits being unused
3341 (void) cached_has_bits;
3342
3343 // string component_name = 3;
3344 if (this->component_name().size() > 0) {
3345 total_size += 1 +
3346 ::google::protobuf::internal::WireFormatLite::StringSize(
3347 this->component_name());
3348 }
3349
3350 // .dmi.Uuid device_uuid = 1;
3351 if (this->has_device_uuid()) {
3352 total_size += 1 +
3353 ::google::protobuf::internal::WireFormatLite::MessageSize(
3354 *device_uuid_);
3355 }
3356
3357 // .dmi.Uuid component_uuid = 2;
3358 if (this->has_component_uuid()) {
3359 total_size += 1 +
3360 ::google::protobuf::internal::WireFormatLite::MessageSize(
3361 *component_uuid_);
3362 }
3363
3364 // .dmi.ModifiableComponent changes = 4;
3365 if (this->has_changes()) {
3366 total_size += 1 +
3367 ::google::protobuf::internal::WireFormatLite::MessageSize(
3368 *changes_);
3369 }
3370
3371 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3372 SetCachedSize(cached_size);
3373 return total_size;
3374}
3375
3376void HWComponentInfoSetRequest::MergeFrom(const ::google::protobuf::Message& from) {
3377// @@protoc_insertion_point(generalized_merge_from_start:dmi.HWComponentInfoSetRequest)
3378 GOOGLE_DCHECK_NE(&from, this);
3379 const HWComponentInfoSetRequest* source =
3380 ::google::protobuf::DynamicCastToGenerated<HWComponentInfoSetRequest>(
3381 &from);
3382 if (source == nullptr) {
3383 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.HWComponentInfoSetRequest)
3384 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3385 } else {
3386 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.HWComponentInfoSetRequest)
3387 MergeFrom(*source);
3388 }
3389}
3390
3391void HWComponentInfoSetRequest::MergeFrom(const HWComponentInfoSetRequest& from) {
3392// @@protoc_insertion_point(class_specific_merge_from_start:dmi.HWComponentInfoSetRequest)
3393 GOOGLE_DCHECK_NE(&from, this);
3394 _internal_metadata_.MergeFrom(from._internal_metadata_);
3395 ::google::protobuf::uint32 cached_has_bits = 0;
3396 (void) cached_has_bits;
3397
3398 if (from.component_name().size() > 0) {
3399
3400 component_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.component_name_);
3401 }
3402 if (from.has_device_uuid()) {
3403 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
3404 }
3405 if (from.has_component_uuid()) {
3406 mutable_component_uuid()->::dmi::Uuid::MergeFrom(from.component_uuid());
3407 }
3408 if (from.has_changes()) {
3409 mutable_changes()->::dmi::ModifiableComponent::MergeFrom(from.changes());
3410 }
3411}
3412
3413void HWComponentInfoSetRequest::CopyFrom(const ::google::protobuf::Message& from) {
3414// @@protoc_insertion_point(generalized_copy_from_start:dmi.HWComponentInfoSetRequest)
3415 if (&from == this) return;
3416 Clear();
3417 MergeFrom(from);
3418}
3419
3420void HWComponentInfoSetRequest::CopyFrom(const HWComponentInfoSetRequest& from) {
3421// @@protoc_insertion_point(class_specific_copy_from_start:dmi.HWComponentInfoSetRequest)
3422 if (&from == this) return;
3423 Clear();
3424 MergeFrom(from);
3425}
3426
3427bool HWComponentInfoSetRequest::IsInitialized() const {
3428 return true;
3429}
3430
3431void HWComponentInfoSetRequest::Swap(HWComponentInfoSetRequest* other) {
3432 if (other == this) return;
3433 InternalSwap(other);
3434}
3435void HWComponentInfoSetRequest::InternalSwap(HWComponentInfoSetRequest* other) {
3436 using std::swap;
3437 _internal_metadata_.Swap(&other->_internal_metadata_);
3438 component_name_.Swap(&other->component_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3439 GetArenaNoVirtual());
3440 swap(device_uuid_, other->device_uuid_);
3441 swap(component_uuid_, other->component_uuid_);
3442 swap(changes_, other->changes_);
3443}
3444
3445::google::protobuf::Metadata HWComponentInfoSetRequest::GetMetadata() const {
3446 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
3447 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
3448}
3449
3450
3451// ===================================================================
3452
3453void HWComponentInfoSetResponse::InitAsDefaultInstance() {
3454}
3455class HWComponentInfoSetResponse::HasBitSetters {
3456 public:
3457};
3458
3459#if !defined(_MSC_VER) || _MSC_VER >= 1900
3460const int HWComponentInfoSetResponse::kStatusFieldNumber;
3461const int HWComponentInfoSetResponse::kReasonFieldNumber;
3462const int HWComponentInfoSetResponse::kReasonDetailFieldNumber;
3463#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
3464
3465HWComponentInfoSetResponse::HWComponentInfoSetResponse()
3466 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
3467 SharedCtor();
3468 // @@protoc_insertion_point(constructor:dmi.HWComponentInfoSetResponse)
3469}
3470HWComponentInfoSetResponse::HWComponentInfoSetResponse(const HWComponentInfoSetResponse& from)
3471 : ::google::protobuf::Message(),
3472 _internal_metadata_(nullptr) {
3473 _internal_metadata_.MergeFrom(from._internal_metadata_);
3474 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3475 if (from.reason_detail().size() > 0) {
3476 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
3477 }
3478 ::memcpy(&status_, &from.status_,
3479 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
3480 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
3481 // @@protoc_insertion_point(copy_constructor:dmi.HWComponentInfoSetResponse)
3482}
3483
3484void HWComponentInfoSetResponse::SharedCtor() {
3485 ::google::protobuf::internal::InitSCC(
3486 &scc_info_HWComponentInfoSetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
3487 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3488 ::memset(&status_, 0, static_cast<size_t>(
3489 reinterpret_cast<char*>(&reason_) -
3490 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
3491}
3492
3493HWComponentInfoSetResponse::~HWComponentInfoSetResponse() {
3494 // @@protoc_insertion_point(destructor:dmi.HWComponentInfoSetResponse)
3495 SharedDtor();
3496}
3497
3498void HWComponentInfoSetResponse::SharedDtor() {
3499 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3500}
3501
3502void HWComponentInfoSetResponse::SetCachedSize(int size) const {
3503 _cached_size_.Set(size);
3504}
3505const HWComponentInfoSetResponse& HWComponentInfoSetResponse::default_instance() {
3506 ::google::protobuf::internal::InitSCC(&::scc_info_HWComponentInfoSetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
3507 return *internal_default_instance();
3508}
3509
3510
3511void HWComponentInfoSetResponse::Clear() {
3512// @@protoc_insertion_point(message_clear_start:dmi.HWComponentInfoSetResponse)
3513 ::google::protobuf::uint32 cached_has_bits = 0;
3514 // Prevent compiler warnings about cached_has_bits being unused
3515 (void) cached_has_bits;
3516
3517 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3518 ::memset(&status_, 0, static_cast<size_t>(
3519 reinterpret_cast<char*>(&reason_) -
3520 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
3521 _internal_metadata_.Clear();
3522}
3523
3524#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3525const char* HWComponentInfoSetResponse::_InternalParse(const char* begin, const char* end, void* object,
3526 ::google::protobuf::internal::ParseContext* ctx) {
3527 auto msg = static_cast<HWComponentInfoSetResponse*>(object);
3528 ::google::protobuf::int32 size; (void)size;
3529 int depth; (void)depth;
3530 ::google::protobuf::uint32 tag;
3531 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
3532 auto ptr = begin;
3533 while (ptr < end) {
3534 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
3535 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3536 switch (tag >> 3) {
3537 // .dmi.Status status = 1;
3538 case 1: {
3539 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
3540 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
3541 msg->set_status(static_cast<::dmi::Status>(val));
3542 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3543 break;
3544 }
3545 // .dmi.HWComponentInfoSetResponse.Reason reason = 2;
3546 case 2: {
3547 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
3548 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
3549 msg->set_reason(static_cast<::dmi::HWComponentInfoSetResponse_Reason>(val));
3550 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3551 break;
3552 }
3553 // string reason_detail = 3;
3554 case 3: {
3555 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
3556 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
3557 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3558 ctx->extra_parse_data().SetFieldName("dmi.HWComponentInfoSetResponse.reason_detail");
3559 object = msg->mutable_reason_detail();
3560 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
3561 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
3562 goto string_till_end;
3563 }
3564 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
3565 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
3566 ptr += size;
3567 break;
3568 }
3569 default: {
3570 handle_unusual:
3571 if ((tag & 7) == 4 || tag == 0) {
3572 ctx->EndGroup(tag);
3573 return ptr;
3574 }
3575 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
3576 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
3577 ptr = res.first;
3578 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
3579 if (res.second) return ptr;
3580 }
3581 } // switch
3582 } // while
3583 return ptr;
3584string_till_end:
3585 static_cast<::std::string*>(object)->clear();
3586 static_cast<::std::string*>(object)->reserve(size);
3587 goto len_delim_till_end;
3588len_delim_till_end:
3589 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
3590 {parser_till_end, object}, size);
3591}
3592#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3593bool HWComponentInfoSetResponse::MergePartialFromCodedStream(
3594 ::google::protobuf::io::CodedInputStream* input) {
3595#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
3596 ::google::protobuf::uint32 tag;
3597 // @@protoc_insertion_point(parse_start:dmi.HWComponentInfoSetResponse)
3598 for (;;) {
3599 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3600 tag = p.first;
3601 if (!p.second) goto handle_unusual;
3602 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3603 // .dmi.Status status = 1;
3604 case 1: {
3605 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
3606 int value = 0;
3607 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3608 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
3609 input, &value)));
3610 set_status(static_cast< ::dmi::Status >(value));
3611 } else {
3612 goto handle_unusual;
3613 }
3614 break;
3615 }
3616
3617 // .dmi.HWComponentInfoSetResponse.Reason reason = 2;
3618 case 2: {
3619 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
3620 int value = 0;
3621 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3622 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
3623 input, &value)));
3624 set_reason(static_cast< ::dmi::HWComponentInfoSetResponse_Reason >(value));
3625 } else {
3626 goto handle_unusual;
3627 }
3628 break;
3629 }
3630
3631 // string reason_detail = 3;
3632 case 3: {
3633 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
3634 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3635 input, this->mutable_reason_detail()));
3636 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3637 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
3638 ::google::protobuf::internal::WireFormatLite::PARSE,
3639 "dmi.HWComponentInfoSetResponse.reason_detail"));
3640 } else {
3641 goto handle_unusual;
3642 }
3643 break;
3644 }
3645
3646 default: {
3647 handle_unusual:
3648 if (tag == 0) {
3649 goto success;
3650 }
3651 DO_(::google::protobuf::internal::WireFormat::SkipField(
3652 input, tag, _internal_metadata_.mutable_unknown_fields()));
3653 break;
3654 }
3655 }
3656 }
3657success:
3658 // @@protoc_insertion_point(parse_success:dmi.HWComponentInfoSetResponse)
3659 return true;
3660failure:
3661 // @@protoc_insertion_point(parse_failure:dmi.HWComponentInfoSetResponse)
3662 return false;
3663#undef DO_
3664}
3665#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3666
3667void HWComponentInfoSetResponse::SerializeWithCachedSizes(
3668 ::google::protobuf::io::CodedOutputStream* output) const {
3669 // @@protoc_insertion_point(serialize_start:dmi.HWComponentInfoSetResponse)
3670 ::google::protobuf::uint32 cached_has_bits = 0;
3671 (void) cached_has_bits;
3672
3673 // .dmi.Status status = 1;
3674 if (this->status() != 0) {
3675 ::google::protobuf::internal::WireFormatLite::WriteEnum(
3676 1, this->status(), output);
3677 }
3678
3679 // .dmi.HWComponentInfoSetResponse.Reason reason = 2;
3680 if (this->reason() != 0) {
3681 ::google::protobuf::internal::WireFormatLite::WriteEnum(
3682 2, this->reason(), output);
3683 }
3684
3685 // string reason_detail = 3;
3686 if (this->reason_detail().size() > 0) {
3687 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3688 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
3689 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
3690 "dmi.HWComponentInfoSetResponse.reason_detail");
3691 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3692 3, this->reason_detail(), output);
3693 }
3694
3695 if (_internal_metadata_.have_unknown_fields()) {
3696 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3697 _internal_metadata_.unknown_fields(), output);
3698 }
3699 // @@protoc_insertion_point(serialize_end:dmi.HWComponentInfoSetResponse)
3700}
3701
3702::google::protobuf::uint8* HWComponentInfoSetResponse::InternalSerializeWithCachedSizesToArray(
3703 ::google::protobuf::uint8* target) const {
3704 // @@protoc_insertion_point(serialize_to_array_start:dmi.HWComponentInfoSetResponse)
3705 ::google::protobuf::uint32 cached_has_bits = 0;
3706 (void) cached_has_bits;
3707
3708 // .dmi.Status status = 1;
3709 if (this->status() != 0) {
3710 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
3711 1, this->status(), target);
3712 }
3713
3714 // .dmi.HWComponentInfoSetResponse.Reason reason = 2;
3715 if (this->reason() != 0) {
3716 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
3717 2, this->reason(), target);
3718 }
3719
3720 // string reason_detail = 3;
3721 if (this->reason_detail().size() > 0) {
3722 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3723 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
3724 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
3725 "dmi.HWComponentInfoSetResponse.reason_detail");
3726 target =
3727 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3728 3, this->reason_detail(), target);
3729 }
3730
3731 if (_internal_metadata_.have_unknown_fields()) {
3732 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3733 _internal_metadata_.unknown_fields(), target);
3734 }
3735 // @@protoc_insertion_point(serialize_to_array_end:dmi.HWComponentInfoSetResponse)
3736 return target;
3737}
3738
3739size_t HWComponentInfoSetResponse::ByteSizeLong() const {
3740// @@protoc_insertion_point(message_byte_size_start:dmi.HWComponentInfoSetResponse)
3741 size_t total_size = 0;
3742
3743 if (_internal_metadata_.have_unknown_fields()) {
3744 total_size +=
3745 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3746 _internal_metadata_.unknown_fields());
3747 }
3748 ::google::protobuf::uint32 cached_has_bits = 0;
3749 // Prevent compiler warnings about cached_has_bits being unused
3750 (void) cached_has_bits;
3751
3752 // string reason_detail = 3;
3753 if (this->reason_detail().size() > 0) {
3754 total_size += 1 +
3755 ::google::protobuf::internal::WireFormatLite::StringSize(
3756 this->reason_detail());
3757 }
3758
3759 // .dmi.Status status = 1;
3760 if (this->status() != 0) {
3761 total_size += 1 +
3762 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
3763 }
3764
3765 // .dmi.HWComponentInfoSetResponse.Reason reason = 2;
3766 if (this->reason() != 0) {
3767 total_size += 1 +
3768 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
3769 }
3770
3771 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3772 SetCachedSize(cached_size);
3773 return total_size;
3774}
3775
3776void HWComponentInfoSetResponse::MergeFrom(const ::google::protobuf::Message& from) {
3777// @@protoc_insertion_point(generalized_merge_from_start:dmi.HWComponentInfoSetResponse)
3778 GOOGLE_DCHECK_NE(&from, this);
3779 const HWComponentInfoSetResponse* source =
3780 ::google::protobuf::DynamicCastToGenerated<HWComponentInfoSetResponse>(
3781 &from);
3782 if (source == nullptr) {
3783 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.HWComponentInfoSetResponse)
3784 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3785 } else {
3786 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.HWComponentInfoSetResponse)
3787 MergeFrom(*source);
3788 }
3789}
3790
3791void HWComponentInfoSetResponse::MergeFrom(const HWComponentInfoSetResponse& from) {
3792// @@protoc_insertion_point(class_specific_merge_from_start:dmi.HWComponentInfoSetResponse)
3793 GOOGLE_DCHECK_NE(&from, this);
3794 _internal_metadata_.MergeFrom(from._internal_metadata_);
3795 ::google::protobuf::uint32 cached_has_bits = 0;
3796 (void) cached_has_bits;
3797
3798 if (from.reason_detail().size() > 0) {
3799
3800 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
3801 }
3802 if (from.status() != 0) {
3803 set_status(from.status());
3804 }
3805 if (from.reason() != 0) {
3806 set_reason(from.reason());
3807 }
3808}
3809
3810void HWComponentInfoSetResponse::CopyFrom(const ::google::protobuf::Message& from) {
3811// @@protoc_insertion_point(generalized_copy_from_start:dmi.HWComponentInfoSetResponse)
3812 if (&from == this) return;
3813 Clear();
3814 MergeFrom(from);
3815}
3816
3817void HWComponentInfoSetResponse::CopyFrom(const HWComponentInfoSetResponse& from) {
3818// @@protoc_insertion_point(class_specific_copy_from_start:dmi.HWComponentInfoSetResponse)
3819 if (&from == this) return;
3820 Clear();
3821 MergeFrom(from);
3822}
3823
3824bool HWComponentInfoSetResponse::IsInitialized() const {
3825 return true;
3826}
3827
3828void HWComponentInfoSetResponse::Swap(HWComponentInfoSetResponse* other) {
3829 if (other == this) return;
3830 InternalSwap(other);
3831}
3832void HWComponentInfoSetResponse::InternalSwap(HWComponentInfoSetResponse* other) {
3833 using std::swap;
3834 _internal_metadata_.Swap(&other->_internal_metadata_);
3835 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3836 GetArenaNoVirtual());
3837 swap(status_, other->status_);
3838 swap(reason_, other->reason_);
3839}
3840
3841::google::protobuf::Metadata HWComponentInfoSetResponse::GetMetadata() const {
3842 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
3843 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
3844}
3845
3846
3847// ===================================================================
3848
3849void StartManagingDeviceResponse::InitAsDefaultInstance() {
3850 ::dmi::_StartManagingDeviceResponse_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
3851 ::dmi::Uuid::internal_default_instance());
3852}
3853class StartManagingDeviceResponse::HasBitSetters {
3854 public:
3855 static const ::dmi::Uuid& device_uuid(const StartManagingDeviceResponse* msg);
3856};
3857
3858const ::dmi::Uuid&
3859StartManagingDeviceResponse::HasBitSetters::device_uuid(const StartManagingDeviceResponse* msg) {
3860 return *msg->device_uuid_;
3861}
3862void StartManagingDeviceResponse::clear_device_uuid() {
3863 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
3864 delete device_uuid_;
3865 }
3866 device_uuid_ = nullptr;
3867}
3868#if !defined(_MSC_VER) || _MSC_VER >= 1900
3869const int StartManagingDeviceResponse::kStatusFieldNumber;
3870const int StartManagingDeviceResponse::kReasonFieldNumber;
3871const int StartManagingDeviceResponse::kDeviceUuidFieldNumber;
3872const int StartManagingDeviceResponse::kReasonDetailFieldNumber;
3873#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
3874
3875StartManagingDeviceResponse::StartManagingDeviceResponse()
3876 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
3877 SharedCtor();
3878 // @@protoc_insertion_point(constructor:dmi.StartManagingDeviceResponse)
3879}
3880StartManagingDeviceResponse::StartManagingDeviceResponse(const StartManagingDeviceResponse& from)
3881 : ::google::protobuf::Message(),
3882 _internal_metadata_(nullptr) {
3883 _internal_metadata_.MergeFrom(from._internal_metadata_);
3884 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3885 if (from.reason_detail().size() > 0) {
3886 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
3887 }
3888 if (from.has_device_uuid()) {
3889 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
3890 } else {
3891 device_uuid_ = nullptr;
3892 }
3893 ::memcpy(&status_, &from.status_,
3894 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
3895 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
3896 // @@protoc_insertion_point(copy_constructor:dmi.StartManagingDeviceResponse)
3897}
3898
3899void StartManagingDeviceResponse::SharedCtor() {
3900 ::google::protobuf::internal::InitSCC(
3901 &scc_info_StartManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
3902 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3903 ::memset(&device_uuid_, 0, static_cast<size_t>(
3904 reinterpret_cast<char*>(&reason_) -
3905 reinterpret_cast<char*>(&device_uuid_)) + sizeof(reason_));
3906}
3907
3908StartManagingDeviceResponse::~StartManagingDeviceResponse() {
3909 // @@protoc_insertion_point(destructor:dmi.StartManagingDeviceResponse)
3910 SharedDtor();
3911}
3912
3913void StartManagingDeviceResponse::SharedDtor() {
3914 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3915 if (this != internal_default_instance()) delete device_uuid_;
3916}
3917
3918void StartManagingDeviceResponse::SetCachedSize(int size) const {
3919 _cached_size_.Set(size);
3920}
3921const StartManagingDeviceResponse& StartManagingDeviceResponse::default_instance() {
3922 ::google::protobuf::internal::InitSCC(&::scc_info_StartManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
3923 return *internal_default_instance();
3924}
3925
3926
3927void StartManagingDeviceResponse::Clear() {
3928// @@protoc_insertion_point(message_clear_start:dmi.StartManagingDeviceResponse)
3929 ::google::protobuf::uint32 cached_has_bits = 0;
3930 // Prevent compiler warnings about cached_has_bits being unused
3931 (void) cached_has_bits;
3932
3933 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3934 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
3935 delete device_uuid_;
3936 }
3937 device_uuid_ = nullptr;
3938 ::memset(&status_, 0, static_cast<size_t>(
3939 reinterpret_cast<char*>(&reason_) -
3940 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
3941 _internal_metadata_.Clear();
3942}
3943
3944#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3945const char* StartManagingDeviceResponse::_InternalParse(const char* begin, const char* end, void* object,
3946 ::google::protobuf::internal::ParseContext* ctx) {
3947 auto msg = static_cast<StartManagingDeviceResponse*>(object);
3948 ::google::protobuf::int32 size; (void)size;
3949 int depth; (void)depth;
3950 ::google::protobuf::uint32 tag;
3951 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
3952 auto ptr = begin;
3953 while (ptr < end) {
3954 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
3955 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3956 switch (tag >> 3) {
3957 // .dmi.Status status = 1;
3958 case 1: {
3959 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
3960 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
3961 msg->set_status(static_cast<::dmi::Status>(val));
3962 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3963 break;
3964 }
3965 // .dmi.StartManagingDeviceResponse.Reason reason = 2;
3966 case 2: {
3967 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
3968 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
3969 msg->set_reason(static_cast<::dmi::StartManagingDeviceResponse_Reason>(val));
3970 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3971 break;
3972 }
3973 // .dmi.Uuid device_uuid = 3;
3974 case 3: {
3975 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
3976 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
3977 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3978 parser_till_end = ::dmi::Uuid::_InternalParse;
3979 object = msg->mutable_device_uuid();
3980 if (size > end - ptr) goto len_delim_till_end;
3981 ptr += size;
3982 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
3983 {parser_till_end, object}, ptr - size, ptr));
3984 break;
3985 }
3986 // string reason_detail = 4;
3987 case 4: {
3988 if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual;
3989 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
3990 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3991 ctx->extra_parse_data().SetFieldName("dmi.StartManagingDeviceResponse.reason_detail");
3992 object = msg->mutable_reason_detail();
3993 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
3994 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
3995 goto string_till_end;
3996 }
3997 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
3998 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
3999 ptr += size;
4000 break;
4001 }
4002 default: {
4003 handle_unusual:
4004 if ((tag & 7) == 4 || tag == 0) {
4005 ctx->EndGroup(tag);
4006 return ptr;
4007 }
4008 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
4009 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
4010 ptr = res.first;
4011 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
4012 if (res.second) return ptr;
4013 }
4014 } // switch
4015 } // while
4016 return ptr;
4017string_till_end:
4018 static_cast<::std::string*>(object)->clear();
4019 static_cast<::std::string*>(object)->reserve(size);
4020 goto len_delim_till_end;
4021len_delim_till_end:
4022 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
4023 {parser_till_end, object}, size);
4024}
4025#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4026bool StartManagingDeviceResponse::MergePartialFromCodedStream(
4027 ::google::protobuf::io::CodedInputStream* input) {
4028#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
4029 ::google::protobuf::uint32 tag;
4030 // @@protoc_insertion_point(parse_start:dmi.StartManagingDeviceResponse)
4031 for (;;) {
4032 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4033 tag = p.first;
4034 if (!p.second) goto handle_unusual;
4035 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4036 // .dmi.Status status = 1;
4037 case 1: {
4038 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
4039 int value = 0;
4040 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4041 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
4042 input, &value)));
4043 set_status(static_cast< ::dmi::Status >(value));
4044 } else {
4045 goto handle_unusual;
4046 }
4047 break;
4048 }
4049
4050 // .dmi.StartManagingDeviceResponse.Reason reason = 2;
4051 case 2: {
4052 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
4053 int value = 0;
4054 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4055 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
4056 input, &value)));
4057 set_reason(static_cast< ::dmi::StartManagingDeviceResponse_Reason >(value));
4058 } else {
4059 goto handle_unusual;
4060 }
4061 break;
4062 }
4063
4064 // .dmi.Uuid device_uuid = 3;
4065 case 3: {
4066 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
4067 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
4068 input, mutable_device_uuid()));
4069 } else {
4070 goto handle_unusual;
4071 }
4072 break;
4073 }
4074
4075 // string reason_detail = 4;
4076 case 4: {
4077 if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
4078 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4079 input, this->mutable_reason_detail()));
4080 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
4081 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
4082 ::google::protobuf::internal::WireFormatLite::PARSE,
4083 "dmi.StartManagingDeviceResponse.reason_detail"));
4084 } else {
4085 goto handle_unusual;
4086 }
4087 break;
4088 }
4089
4090 default: {
4091 handle_unusual:
4092 if (tag == 0) {
4093 goto success;
4094 }
4095 DO_(::google::protobuf::internal::WireFormat::SkipField(
4096 input, tag, _internal_metadata_.mutable_unknown_fields()));
4097 break;
4098 }
4099 }
4100 }
4101success:
4102 // @@protoc_insertion_point(parse_success:dmi.StartManagingDeviceResponse)
4103 return true;
4104failure:
4105 // @@protoc_insertion_point(parse_failure:dmi.StartManagingDeviceResponse)
4106 return false;
4107#undef DO_
4108}
4109#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4110
4111void StartManagingDeviceResponse::SerializeWithCachedSizes(
4112 ::google::protobuf::io::CodedOutputStream* output) const {
4113 // @@protoc_insertion_point(serialize_start:dmi.StartManagingDeviceResponse)
4114 ::google::protobuf::uint32 cached_has_bits = 0;
4115 (void) cached_has_bits;
4116
4117 // .dmi.Status status = 1;
4118 if (this->status() != 0) {
4119 ::google::protobuf::internal::WireFormatLite::WriteEnum(
4120 1, this->status(), output);
4121 }
4122
4123 // .dmi.StartManagingDeviceResponse.Reason reason = 2;
4124 if (this->reason() != 0) {
4125 ::google::protobuf::internal::WireFormatLite::WriteEnum(
4126 2, this->reason(), output);
4127 }
4128
4129 // .dmi.Uuid device_uuid = 3;
4130 if (this->has_device_uuid()) {
4131 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4132 3, HasBitSetters::device_uuid(this), output);
4133 }
4134
4135 // string reason_detail = 4;
4136 if (this->reason_detail().size() > 0) {
4137 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
4138 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
4139 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
4140 "dmi.StartManagingDeviceResponse.reason_detail");
4141 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4142 4, this->reason_detail(), output);
4143 }
4144
4145 if (_internal_metadata_.have_unknown_fields()) {
4146 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4147 _internal_metadata_.unknown_fields(), output);
4148 }
4149 // @@protoc_insertion_point(serialize_end:dmi.StartManagingDeviceResponse)
4150}
4151
4152::google::protobuf::uint8* StartManagingDeviceResponse::InternalSerializeWithCachedSizesToArray(
4153 ::google::protobuf::uint8* target) const {
4154 // @@protoc_insertion_point(serialize_to_array_start:dmi.StartManagingDeviceResponse)
4155 ::google::protobuf::uint32 cached_has_bits = 0;
4156 (void) cached_has_bits;
4157
4158 // .dmi.Status status = 1;
4159 if (this->status() != 0) {
4160 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4161 1, this->status(), target);
4162 }
4163
4164 // .dmi.StartManagingDeviceResponse.Reason reason = 2;
4165 if (this->reason() != 0) {
4166 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4167 2, this->reason(), target);
4168 }
4169
4170 // .dmi.Uuid device_uuid = 3;
4171 if (this->has_device_uuid()) {
4172 target = ::google::protobuf::internal::WireFormatLite::
4173 InternalWriteMessageToArray(
4174 3, HasBitSetters::device_uuid(this), target);
4175 }
4176
4177 // string reason_detail = 4;
4178 if (this->reason_detail().size() > 0) {
4179 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
4180 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
4181 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
4182 "dmi.StartManagingDeviceResponse.reason_detail");
4183 target =
4184 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4185 4, this->reason_detail(), target);
4186 }
4187
4188 if (_internal_metadata_.have_unknown_fields()) {
4189 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4190 _internal_metadata_.unknown_fields(), target);
4191 }
4192 // @@protoc_insertion_point(serialize_to_array_end:dmi.StartManagingDeviceResponse)
4193 return target;
4194}
4195
4196size_t StartManagingDeviceResponse::ByteSizeLong() const {
4197// @@protoc_insertion_point(message_byte_size_start:dmi.StartManagingDeviceResponse)
4198 size_t total_size = 0;
4199
4200 if (_internal_metadata_.have_unknown_fields()) {
4201 total_size +=
4202 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4203 _internal_metadata_.unknown_fields());
4204 }
4205 ::google::protobuf::uint32 cached_has_bits = 0;
4206 // Prevent compiler warnings about cached_has_bits being unused
4207 (void) cached_has_bits;
4208
4209 // string reason_detail = 4;
4210 if (this->reason_detail().size() > 0) {
4211 total_size += 1 +
4212 ::google::protobuf::internal::WireFormatLite::StringSize(
4213 this->reason_detail());
4214 }
4215
4216 // .dmi.Uuid device_uuid = 3;
4217 if (this->has_device_uuid()) {
4218 total_size += 1 +
4219 ::google::protobuf::internal::WireFormatLite::MessageSize(
4220 *device_uuid_);
4221 }
4222
4223 // .dmi.Status status = 1;
4224 if (this->status() != 0) {
4225 total_size += 1 +
4226 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
4227 }
4228
4229 // .dmi.StartManagingDeviceResponse.Reason reason = 2;
4230 if (this->reason() != 0) {
4231 total_size += 1 +
4232 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
4233 }
4234
4235 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4236 SetCachedSize(cached_size);
4237 return total_size;
4238}
4239
4240void StartManagingDeviceResponse::MergeFrom(const ::google::protobuf::Message& from) {
4241// @@protoc_insertion_point(generalized_merge_from_start:dmi.StartManagingDeviceResponse)
4242 GOOGLE_DCHECK_NE(&from, this);
4243 const StartManagingDeviceResponse* source =
4244 ::google::protobuf::DynamicCastToGenerated<StartManagingDeviceResponse>(
4245 &from);
4246 if (source == nullptr) {
4247 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.StartManagingDeviceResponse)
4248 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4249 } else {
4250 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.StartManagingDeviceResponse)
4251 MergeFrom(*source);
4252 }
4253}
4254
4255void StartManagingDeviceResponse::MergeFrom(const StartManagingDeviceResponse& from) {
4256// @@protoc_insertion_point(class_specific_merge_from_start:dmi.StartManagingDeviceResponse)
4257 GOOGLE_DCHECK_NE(&from, this);
4258 _internal_metadata_.MergeFrom(from._internal_metadata_);
4259 ::google::protobuf::uint32 cached_has_bits = 0;
4260 (void) cached_has_bits;
4261
4262 if (from.reason_detail().size() > 0) {
4263
4264 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
4265 }
4266 if (from.has_device_uuid()) {
4267 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
4268 }
4269 if (from.status() != 0) {
4270 set_status(from.status());
4271 }
4272 if (from.reason() != 0) {
4273 set_reason(from.reason());
4274 }
4275}
4276
4277void StartManagingDeviceResponse::CopyFrom(const ::google::protobuf::Message& from) {
4278// @@protoc_insertion_point(generalized_copy_from_start:dmi.StartManagingDeviceResponse)
4279 if (&from == this) return;
4280 Clear();
4281 MergeFrom(from);
4282}
4283
4284void StartManagingDeviceResponse::CopyFrom(const StartManagingDeviceResponse& from) {
4285// @@protoc_insertion_point(class_specific_copy_from_start:dmi.StartManagingDeviceResponse)
4286 if (&from == this) return;
4287 Clear();
4288 MergeFrom(from);
4289}
4290
4291bool StartManagingDeviceResponse::IsInitialized() const {
4292 return true;
4293}
4294
4295void StartManagingDeviceResponse::Swap(StartManagingDeviceResponse* other) {
4296 if (other == this) return;
4297 InternalSwap(other);
4298}
4299void StartManagingDeviceResponse::InternalSwap(StartManagingDeviceResponse* other) {
4300 using std::swap;
4301 _internal_metadata_.Swap(&other->_internal_metadata_);
4302 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4303 GetArenaNoVirtual());
4304 swap(device_uuid_, other->device_uuid_);
4305 swap(status_, other->status_);
4306 swap(reason_, other->reason_);
4307}
4308
4309::google::protobuf::Metadata StartManagingDeviceResponse::GetMetadata() const {
4310 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
4311 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
4312}
4313
4314
4315// ===================================================================
4316
4317void StopManagingDeviceRequest::InitAsDefaultInstance() {
4318}
4319class StopManagingDeviceRequest::HasBitSetters {
4320 public:
4321};
4322
4323#if !defined(_MSC_VER) || _MSC_VER >= 1900
4324const int StopManagingDeviceRequest::kNameFieldNumber;
4325#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
4326
4327StopManagingDeviceRequest::StopManagingDeviceRequest()
4328 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
4329 SharedCtor();
4330 // @@protoc_insertion_point(constructor:dmi.StopManagingDeviceRequest)
4331}
4332StopManagingDeviceRequest::StopManagingDeviceRequest(const StopManagingDeviceRequest& from)
4333 : ::google::protobuf::Message(),
4334 _internal_metadata_(nullptr) {
4335 _internal_metadata_.MergeFrom(from._internal_metadata_);
4336 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4337 if (from.name().size() > 0) {
4338 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
4339 }
4340 // @@protoc_insertion_point(copy_constructor:dmi.StopManagingDeviceRequest)
4341}
4342
4343void StopManagingDeviceRequest::SharedCtor() {
4344 ::google::protobuf::internal::InitSCC(
4345 &scc_info_StopManagingDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
4346 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4347}
4348
4349StopManagingDeviceRequest::~StopManagingDeviceRequest() {
4350 // @@protoc_insertion_point(destructor:dmi.StopManagingDeviceRequest)
4351 SharedDtor();
4352}
4353
4354void StopManagingDeviceRequest::SharedDtor() {
4355 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4356}
4357
4358void StopManagingDeviceRequest::SetCachedSize(int size) const {
4359 _cached_size_.Set(size);
4360}
4361const StopManagingDeviceRequest& StopManagingDeviceRequest::default_instance() {
4362 ::google::protobuf::internal::InitSCC(&::scc_info_StopManagingDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
4363 return *internal_default_instance();
4364}
4365
4366
4367void StopManagingDeviceRequest::Clear() {
4368// @@protoc_insertion_point(message_clear_start:dmi.StopManagingDeviceRequest)
4369 ::google::protobuf::uint32 cached_has_bits = 0;
4370 // Prevent compiler warnings about cached_has_bits being unused
4371 (void) cached_has_bits;
4372
4373 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4374 _internal_metadata_.Clear();
4375}
4376
4377#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4378const char* StopManagingDeviceRequest::_InternalParse(const char* begin, const char* end, void* object,
4379 ::google::protobuf::internal::ParseContext* ctx) {
4380 auto msg = static_cast<StopManagingDeviceRequest*>(object);
4381 ::google::protobuf::int32 size; (void)size;
4382 int depth; (void)depth;
4383 ::google::protobuf::uint32 tag;
4384 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
4385 auto ptr = begin;
4386 while (ptr < end) {
4387 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
4388 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4389 switch (tag >> 3) {
4390 // string name = 1;
4391 case 1: {
4392 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
4393 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
4394 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4395 ctx->extra_parse_data().SetFieldName("dmi.StopManagingDeviceRequest.name");
4396 object = msg->mutable_name();
4397 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
4398 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
4399 goto string_till_end;
4400 }
4401 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
4402 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
4403 ptr += size;
4404 break;
4405 }
4406 default: {
4407 handle_unusual:
4408 if ((tag & 7) == 4 || tag == 0) {
4409 ctx->EndGroup(tag);
4410 return ptr;
4411 }
4412 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
4413 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
4414 ptr = res.first;
4415 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
4416 if (res.second) return ptr;
4417 }
4418 } // switch
4419 } // while
4420 return ptr;
4421string_till_end:
4422 static_cast<::std::string*>(object)->clear();
4423 static_cast<::std::string*>(object)->reserve(size);
4424 goto len_delim_till_end;
4425len_delim_till_end:
4426 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
4427 {parser_till_end, object}, size);
4428}
4429#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4430bool StopManagingDeviceRequest::MergePartialFromCodedStream(
4431 ::google::protobuf::io::CodedInputStream* input) {
4432#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
4433 ::google::protobuf::uint32 tag;
4434 // @@protoc_insertion_point(parse_start:dmi.StopManagingDeviceRequest)
4435 for (;;) {
4436 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4437 tag = p.first;
4438 if (!p.second) goto handle_unusual;
4439 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4440 // string name = 1;
4441 case 1: {
4442 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
4443 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4444 input, this->mutable_name()));
4445 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
4446 this->name().data(), static_cast<int>(this->name().length()),
4447 ::google::protobuf::internal::WireFormatLite::PARSE,
4448 "dmi.StopManagingDeviceRequest.name"));
4449 } else {
4450 goto handle_unusual;
4451 }
4452 break;
4453 }
4454
4455 default: {
4456 handle_unusual:
4457 if (tag == 0) {
4458 goto success;
4459 }
4460 DO_(::google::protobuf::internal::WireFormat::SkipField(
4461 input, tag, _internal_metadata_.mutable_unknown_fields()));
4462 break;
4463 }
4464 }
4465 }
4466success:
4467 // @@protoc_insertion_point(parse_success:dmi.StopManagingDeviceRequest)
4468 return true;
4469failure:
4470 // @@protoc_insertion_point(parse_failure:dmi.StopManagingDeviceRequest)
4471 return false;
4472#undef DO_
4473}
4474#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4475
4476void StopManagingDeviceRequest::SerializeWithCachedSizes(
4477 ::google::protobuf::io::CodedOutputStream* output) const {
4478 // @@protoc_insertion_point(serialize_start:dmi.StopManagingDeviceRequest)
4479 ::google::protobuf::uint32 cached_has_bits = 0;
4480 (void) cached_has_bits;
4481
4482 // string name = 1;
4483 if (this->name().size() > 0) {
4484 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
4485 this->name().data(), static_cast<int>(this->name().length()),
4486 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
4487 "dmi.StopManagingDeviceRequest.name");
4488 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4489 1, this->name(), output);
4490 }
4491
4492 if (_internal_metadata_.have_unknown_fields()) {
4493 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4494 _internal_metadata_.unknown_fields(), output);
4495 }
4496 // @@protoc_insertion_point(serialize_end:dmi.StopManagingDeviceRequest)
4497}
4498
4499::google::protobuf::uint8* StopManagingDeviceRequest::InternalSerializeWithCachedSizesToArray(
4500 ::google::protobuf::uint8* target) const {
4501 // @@protoc_insertion_point(serialize_to_array_start:dmi.StopManagingDeviceRequest)
4502 ::google::protobuf::uint32 cached_has_bits = 0;
4503 (void) cached_has_bits;
4504
4505 // string name = 1;
4506 if (this->name().size() > 0) {
4507 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
4508 this->name().data(), static_cast<int>(this->name().length()),
4509 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
4510 "dmi.StopManagingDeviceRequest.name");
4511 target =
4512 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4513 1, this->name(), target);
4514 }
4515
4516 if (_internal_metadata_.have_unknown_fields()) {
4517 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4518 _internal_metadata_.unknown_fields(), target);
4519 }
4520 // @@protoc_insertion_point(serialize_to_array_end:dmi.StopManagingDeviceRequest)
4521 return target;
4522}
4523
4524size_t StopManagingDeviceRequest::ByteSizeLong() const {
4525// @@protoc_insertion_point(message_byte_size_start:dmi.StopManagingDeviceRequest)
4526 size_t total_size = 0;
4527
4528 if (_internal_metadata_.have_unknown_fields()) {
4529 total_size +=
4530 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4531 _internal_metadata_.unknown_fields());
4532 }
4533 ::google::protobuf::uint32 cached_has_bits = 0;
4534 // Prevent compiler warnings about cached_has_bits being unused
4535 (void) cached_has_bits;
4536
4537 // string name = 1;
4538 if (this->name().size() > 0) {
4539 total_size += 1 +
4540 ::google::protobuf::internal::WireFormatLite::StringSize(
4541 this->name());
4542 }
4543
4544 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4545 SetCachedSize(cached_size);
4546 return total_size;
4547}
4548
4549void StopManagingDeviceRequest::MergeFrom(const ::google::protobuf::Message& from) {
4550// @@protoc_insertion_point(generalized_merge_from_start:dmi.StopManagingDeviceRequest)
4551 GOOGLE_DCHECK_NE(&from, this);
4552 const StopManagingDeviceRequest* source =
4553 ::google::protobuf::DynamicCastToGenerated<StopManagingDeviceRequest>(
4554 &from);
4555 if (source == nullptr) {
4556 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.StopManagingDeviceRequest)
4557 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4558 } else {
4559 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.StopManagingDeviceRequest)
4560 MergeFrom(*source);
4561 }
4562}
4563
4564void StopManagingDeviceRequest::MergeFrom(const StopManagingDeviceRequest& from) {
4565// @@protoc_insertion_point(class_specific_merge_from_start:dmi.StopManagingDeviceRequest)
4566 GOOGLE_DCHECK_NE(&from, this);
4567 _internal_metadata_.MergeFrom(from._internal_metadata_);
4568 ::google::protobuf::uint32 cached_has_bits = 0;
4569 (void) cached_has_bits;
4570
4571 if (from.name().size() > 0) {
4572
4573 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
4574 }
4575}
4576
4577void StopManagingDeviceRequest::CopyFrom(const ::google::protobuf::Message& from) {
4578// @@protoc_insertion_point(generalized_copy_from_start:dmi.StopManagingDeviceRequest)
4579 if (&from == this) return;
4580 Clear();
4581 MergeFrom(from);
4582}
4583
4584void StopManagingDeviceRequest::CopyFrom(const StopManagingDeviceRequest& from) {
4585// @@protoc_insertion_point(class_specific_copy_from_start:dmi.StopManagingDeviceRequest)
4586 if (&from == this) return;
4587 Clear();
4588 MergeFrom(from);
4589}
4590
4591bool StopManagingDeviceRequest::IsInitialized() const {
4592 return true;
4593}
4594
4595void StopManagingDeviceRequest::Swap(StopManagingDeviceRequest* other) {
4596 if (other == this) return;
4597 InternalSwap(other);
4598}
4599void StopManagingDeviceRequest::InternalSwap(StopManagingDeviceRequest* other) {
4600 using std::swap;
4601 _internal_metadata_.Swap(&other->_internal_metadata_);
4602 name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4603 GetArenaNoVirtual());
4604}
4605
4606::google::protobuf::Metadata StopManagingDeviceRequest::GetMetadata() const {
4607 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
4608 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
4609}
4610
4611
4612// ===================================================================
4613
4614void StopManagingDeviceResponse::InitAsDefaultInstance() {
4615}
4616class StopManagingDeviceResponse::HasBitSetters {
4617 public:
4618};
4619
4620#if !defined(_MSC_VER) || _MSC_VER >= 1900
4621const int StopManagingDeviceResponse::kStatusFieldNumber;
4622const int StopManagingDeviceResponse::kReasonFieldNumber;
4623const int StopManagingDeviceResponse::kReasonDetailFieldNumber;
4624#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
4625
4626StopManagingDeviceResponse::StopManagingDeviceResponse()
4627 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
4628 SharedCtor();
4629 // @@protoc_insertion_point(constructor:dmi.StopManagingDeviceResponse)
4630}
4631StopManagingDeviceResponse::StopManagingDeviceResponse(const StopManagingDeviceResponse& from)
4632 : ::google::protobuf::Message(),
4633 _internal_metadata_(nullptr) {
4634 _internal_metadata_.MergeFrom(from._internal_metadata_);
4635 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4636 if (from.reason_detail().size() > 0) {
4637 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
4638 }
4639 ::memcpy(&status_, &from.status_,
4640 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
4641 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
4642 // @@protoc_insertion_point(copy_constructor:dmi.StopManagingDeviceResponse)
4643}
4644
4645void StopManagingDeviceResponse::SharedCtor() {
4646 ::google::protobuf::internal::InitSCC(
4647 &scc_info_StopManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
4648 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4649 ::memset(&status_, 0, static_cast<size_t>(
4650 reinterpret_cast<char*>(&reason_) -
4651 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
4652}
4653
4654StopManagingDeviceResponse::~StopManagingDeviceResponse() {
4655 // @@protoc_insertion_point(destructor:dmi.StopManagingDeviceResponse)
4656 SharedDtor();
4657}
4658
4659void StopManagingDeviceResponse::SharedDtor() {
4660 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4661}
4662
4663void StopManagingDeviceResponse::SetCachedSize(int size) const {
4664 _cached_size_.Set(size);
4665}
4666const StopManagingDeviceResponse& StopManagingDeviceResponse::default_instance() {
4667 ::google::protobuf::internal::InitSCC(&::scc_info_StopManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
4668 return *internal_default_instance();
4669}
4670
4671
4672void StopManagingDeviceResponse::Clear() {
4673// @@protoc_insertion_point(message_clear_start:dmi.StopManagingDeviceResponse)
4674 ::google::protobuf::uint32 cached_has_bits = 0;
4675 // Prevent compiler warnings about cached_has_bits being unused
4676 (void) cached_has_bits;
4677
4678 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4679 ::memset(&status_, 0, static_cast<size_t>(
4680 reinterpret_cast<char*>(&reason_) -
4681 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
4682 _internal_metadata_.Clear();
4683}
4684
4685#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4686const char* StopManagingDeviceResponse::_InternalParse(const char* begin, const char* end, void* object,
4687 ::google::protobuf::internal::ParseContext* ctx) {
4688 auto msg = static_cast<StopManagingDeviceResponse*>(object);
4689 ::google::protobuf::int32 size; (void)size;
4690 int depth; (void)depth;
4691 ::google::protobuf::uint32 tag;
4692 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
4693 auto ptr = begin;
4694 while (ptr < end) {
4695 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
4696 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4697 switch (tag >> 3) {
4698 // .dmi.Status status = 1;
4699 case 1: {
4700 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
4701 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
4702 msg->set_status(static_cast<::dmi::Status>(val));
4703 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4704 break;
4705 }
4706 // .dmi.StopManagingDeviceResponse.Reason reason = 2;
4707 case 2: {
4708 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
4709 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
4710 msg->set_reason(static_cast<::dmi::StopManagingDeviceResponse_Reason>(val));
4711 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4712 break;
4713 }
4714 // string reason_detail = 3;
4715 case 3: {
4716 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
4717 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
4718 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4719 ctx->extra_parse_data().SetFieldName("dmi.StopManagingDeviceResponse.reason_detail");
4720 object = msg->mutable_reason_detail();
4721 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
4722 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
4723 goto string_till_end;
4724 }
4725 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
4726 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
4727 ptr += size;
4728 break;
4729 }
4730 default: {
4731 handle_unusual:
4732 if ((tag & 7) == 4 || tag == 0) {
4733 ctx->EndGroup(tag);
4734 return ptr;
4735 }
4736 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
4737 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
4738 ptr = res.first;
4739 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
4740 if (res.second) return ptr;
4741 }
4742 } // switch
4743 } // while
4744 return ptr;
4745string_till_end:
4746 static_cast<::std::string*>(object)->clear();
4747 static_cast<::std::string*>(object)->reserve(size);
4748 goto len_delim_till_end;
4749len_delim_till_end:
4750 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
4751 {parser_till_end, object}, size);
4752}
4753#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4754bool StopManagingDeviceResponse::MergePartialFromCodedStream(
4755 ::google::protobuf::io::CodedInputStream* input) {
4756#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
4757 ::google::protobuf::uint32 tag;
4758 // @@protoc_insertion_point(parse_start:dmi.StopManagingDeviceResponse)
4759 for (;;) {
4760 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4761 tag = p.first;
4762 if (!p.second) goto handle_unusual;
4763 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4764 // .dmi.Status status = 1;
4765 case 1: {
4766 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
4767 int value = 0;
4768 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4769 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
4770 input, &value)));
4771 set_status(static_cast< ::dmi::Status >(value));
4772 } else {
4773 goto handle_unusual;
4774 }
4775 break;
4776 }
4777
4778 // .dmi.StopManagingDeviceResponse.Reason reason = 2;
4779 case 2: {
4780 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
4781 int value = 0;
4782 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4783 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
4784 input, &value)));
4785 set_reason(static_cast< ::dmi::StopManagingDeviceResponse_Reason >(value));
4786 } else {
4787 goto handle_unusual;
4788 }
4789 break;
4790 }
4791
4792 // string reason_detail = 3;
4793 case 3: {
4794 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
4795 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4796 input, this->mutable_reason_detail()));
4797 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
4798 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
4799 ::google::protobuf::internal::WireFormatLite::PARSE,
4800 "dmi.StopManagingDeviceResponse.reason_detail"));
4801 } else {
4802 goto handle_unusual;
4803 }
4804 break;
4805 }
4806
4807 default: {
4808 handle_unusual:
4809 if (tag == 0) {
4810 goto success;
4811 }
4812 DO_(::google::protobuf::internal::WireFormat::SkipField(
4813 input, tag, _internal_metadata_.mutable_unknown_fields()));
4814 break;
4815 }
4816 }
4817 }
4818success:
4819 // @@protoc_insertion_point(parse_success:dmi.StopManagingDeviceResponse)
4820 return true;
4821failure:
4822 // @@protoc_insertion_point(parse_failure:dmi.StopManagingDeviceResponse)
4823 return false;
4824#undef DO_
4825}
4826#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4827
4828void StopManagingDeviceResponse::SerializeWithCachedSizes(
4829 ::google::protobuf::io::CodedOutputStream* output) const {
4830 // @@protoc_insertion_point(serialize_start:dmi.StopManagingDeviceResponse)
4831 ::google::protobuf::uint32 cached_has_bits = 0;
4832 (void) cached_has_bits;
4833
4834 // .dmi.Status status = 1;
4835 if (this->status() != 0) {
4836 ::google::protobuf::internal::WireFormatLite::WriteEnum(
4837 1, this->status(), output);
4838 }
4839
4840 // .dmi.StopManagingDeviceResponse.Reason reason = 2;
4841 if (this->reason() != 0) {
4842 ::google::protobuf::internal::WireFormatLite::WriteEnum(
4843 2, this->reason(), output);
4844 }
4845
4846 // string reason_detail = 3;
4847 if (this->reason_detail().size() > 0) {
4848 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
4849 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
4850 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
4851 "dmi.StopManagingDeviceResponse.reason_detail");
4852 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4853 3, this->reason_detail(), output);
4854 }
4855
4856 if (_internal_metadata_.have_unknown_fields()) {
4857 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4858 _internal_metadata_.unknown_fields(), output);
4859 }
4860 // @@protoc_insertion_point(serialize_end:dmi.StopManagingDeviceResponse)
4861}
4862
4863::google::protobuf::uint8* StopManagingDeviceResponse::InternalSerializeWithCachedSizesToArray(
4864 ::google::protobuf::uint8* target) const {
4865 // @@protoc_insertion_point(serialize_to_array_start:dmi.StopManagingDeviceResponse)
4866 ::google::protobuf::uint32 cached_has_bits = 0;
4867 (void) cached_has_bits;
4868
4869 // .dmi.Status status = 1;
4870 if (this->status() != 0) {
4871 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4872 1, this->status(), target);
4873 }
4874
4875 // .dmi.StopManagingDeviceResponse.Reason reason = 2;
4876 if (this->reason() != 0) {
4877 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4878 2, this->reason(), target);
4879 }
4880
4881 // string reason_detail = 3;
4882 if (this->reason_detail().size() > 0) {
4883 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
4884 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
4885 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
4886 "dmi.StopManagingDeviceResponse.reason_detail");
4887 target =
4888 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4889 3, this->reason_detail(), target);
4890 }
4891
4892 if (_internal_metadata_.have_unknown_fields()) {
4893 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4894 _internal_metadata_.unknown_fields(), target);
4895 }
4896 // @@protoc_insertion_point(serialize_to_array_end:dmi.StopManagingDeviceResponse)
4897 return target;
4898}
4899
4900size_t StopManagingDeviceResponse::ByteSizeLong() const {
4901// @@protoc_insertion_point(message_byte_size_start:dmi.StopManagingDeviceResponse)
4902 size_t total_size = 0;
4903
4904 if (_internal_metadata_.have_unknown_fields()) {
4905 total_size +=
4906 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4907 _internal_metadata_.unknown_fields());
4908 }
4909 ::google::protobuf::uint32 cached_has_bits = 0;
4910 // Prevent compiler warnings about cached_has_bits being unused
4911 (void) cached_has_bits;
4912
4913 // string reason_detail = 3;
4914 if (this->reason_detail().size() > 0) {
4915 total_size += 1 +
4916 ::google::protobuf::internal::WireFormatLite::StringSize(
4917 this->reason_detail());
4918 }
4919
4920 // .dmi.Status status = 1;
4921 if (this->status() != 0) {
4922 total_size += 1 +
4923 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
4924 }
4925
4926 // .dmi.StopManagingDeviceResponse.Reason reason = 2;
4927 if (this->reason() != 0) {
4928 total_size += 1 +
4929 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
4930 }
4931
4932 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4933 SetCachedSize(cached_size);
4934 return total_size;
4935}
4936
4937void StopManagingDeviceResponse::MergeFrom(const ::google::protobuf::Message& from) {
4938// @@protoc_insertion_point(generalized_merge_from_start:dmi.StopManagingDeviceResponse)
4939 GOOGLE_DCHECK_NE(&from, this);
4940 const StopManagingDeviceResponse* source =
4941 ::google::protobuf::DynamicCastToGenerated<StopManagingDeviceResponse>(
4942 &from);
4943 if (source == nullptr) {
4944 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.StopManagingDeviceResponse)
4945 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4946 } else {
4947 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.StopManagingDeviceResponse)
4948 MergeFrom(*source);
4949 }
4950}
4951
4952void StopManagingDeviceResponse::MergeFrom(const StopManagingDeviceResponse& from) {
4953// @@protoc_insertion_point(class_specific_merge_from_start:dmi.StopManagingDeviceResponse)
4954 GOOGLE_DCHECK_NE(&from, this);
4955 _internal_metadata_.MergeFrom(from._internal_metadata_);
4956 ::google::protobuf::uint32 cached_has_bits = 0;
4957 (void) cached_has_bits;
4958
4959 if (from.reason_detail().size() > 0) {
4960
4961 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
4962 }
4963 if (from.status() != 0) {
4964 set_status(from.status());
4965 }
4966 if (from.reason() != 0) {
4967 set_reason(from.reason());
4968 }
4969}
4970
4971void StopManagingDeviceResponse::CopyFrom(const ::google::protobuf::Message& from) {
4972// @@protoc_insertion_point(generalized_copy_from_start:dmi.StopManagingDeviceResponse)
4973 if (&from == this) return;
4974 Clear();
4975 MergeFrom(from);
4976}
4977
4978void StopManagingDeviceResponse::CopyFrom(const StopManagingDeviceResponse& from) {
4979// @@protoc_insertion_point(class_specific_copy_from_start:dmi.StopManagingDeviceResponse)
4980 if (&from == this) return;
4981 Clear();
4982 MergeFrom(from);
4983}
4984
4985bool StopManagingDeviceResponse::IsInitialized() const {
4986 return true;
4987}
4988
4989void StopManagingDeviceResponse::Swap(StopManagingDeviceResponse* other) {
4990 if (other == this) return;
4991 InternalSwap(other);
4992}
4993void StopManagingDeviceResponse::InternalSwap(StopManagingDeviceResponse* other) {
4994 using std::swap;
4995 _internal_metadata_.Swap(&other->_internal_metadata_);
4996 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4997 GetArenaNoVirtual());
4998 swap(status_, other->status_);
4999 swap(reason_, other->reason_);
5000}
5001
5002::google::protobuf::Metadata StopManagingDeviceResponse::GetMetadata() const {
5003 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
5004 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
5005}
5006
5007
5008// ===================================================================
5009
5010void ManagedDeviceInfo::InitAsDefaultInstance() {
5011 ::dmi::_ManagedDeviceInfo_default_instance_._instance.get_mutable()->info_ = const_cast< ::dmi::ModifiableComponent*>(
5012 ::dmi::ModifiableComponent::internal_default_instance());
5013 ::dmi::_ManagedDeviceInfo_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
5014 ::dmi::Uuid::internal_default_instance());
5015}
5016class ManagedDeviceInfo::HasBitSetters {
5017 public:
5018 static const ::dmi::ModifiableComponent& info(const ManagedDeviceInfo* msg);
5019 static const ::dmi::Uuid& device_uuid(const ManagedDeviceInfo* msg);
5020};
5021
5022const ::dmi::ModifiableComponent&
5023ManagedDeviceInfo::HasBitSetters::info(const ManagedDeviceInfo* msg) {
5024 return *msg->info_;
5025}
5026const ::dmi::Uuid&
5027ManagedDeviceInfo::HasBitSetters::device_uuid(const ManagedDeviceInfo* msg) {
5028 return *msg->device_uuid_;
5029}
5030void ManagedDeviceInfo::clear_info() {
5031 if (GetArenaNoVirtual() == nullptr && info_ != nullptr) {
5032 delete info_;
5033 }
5034 info_ = nullptr;
5035}
5036void ManagedDeviceInfo::clear_device_uuid() {
5037 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
5038 delete device_uuid_;
5039 }
5040 device_uuid_ = nullptr;
5041}
5042#if !defined(_MSC_VER) || _MSC_VER >= 1900
5043const int ManagedDeviceInfo::kInfoFieldNumber;
5044const int ManagedDeviceInfo::kDeviceUuidFieldNumber;
5045#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
5046
5047ManagedDeviceInfo::ManagedDeviceInfo()
5048 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
5049 SharedCtor();
5050 // @@protoc_insertion_point(constructor:dmi.ManagedDeviceInfo)
5051}
5052ManagedDeviceInfo::ManagedDeviceInfo(const ManagedDeviceInfo& from)
5053 : ::google::protobuf::Message(),
5054 _internal_metadata_(nullptr) {
5055 _internal_metadata_.MergeFrom(from._internal_metadata_);
5056 if (from.has_info()) {
5057 info_ = new ::dmi::ModifiableComponent(*from.info_);
5058 } else {
5059 info_ = nullptr;
5060 }
5061 if (from.has_device_uuid()) {
5062 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
5063 } else {
5064 device_uuid_ = nullptr;
5065 }
5066 // @@protoc_insertion_point(copy_constructor:dmi.ManagedDeviceInfo)
5067}
5068
5069void ManagedDeviceInfo::SharedCtor() {
5070 ::google::protobuf::internal::InitSCC(
5071 &scc_info_ManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
5072 ::memset(&info_, 0, static_cast<size_t>(
5073 reinterpret_cast<char*>(&device_uuid_) -
5074 reinterpret_cast<char*>(&info_)) + sizeof(device_uuid_));
5075}
5076
5077ManagedDeviceInfo::~ManagedDeviceInfo() {
5078 // @@protoc_insertion_point(destructor:dmi.ManagedDeviceInfo)
5079 SharedDtor();
5080}
5081
5082void ManagedDeviceInfo::SharedDtor() {
5083 if (this != internal_default_instance()) delete info_;
5084 if (this != internal_default_instance()) delete device_uuid_;
5085}
5086
5087void ManagedDeviceInfo::SetCachedSize(int size) const {
5088 _cached_size_.Set(size);
5089}
5090const ManagedDeviceInfo& ManagedDeviceInfo::default_instance() {
5091 ::google::protobuf::internal::InitSCC(&::scc_info_ManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
5092 return *internal_default_instance();
5093}
5094
5095
5096void ManagedDeviceInfo::Clear() {
5097// @@protoc_insertion_point(message_clear_start:dmi.ManagedDeviceInfo)
5098 ::google::protobuf::uint32 cached_has_bits = 0;
5099 // Prevent compiler warnings about cached_has_bits being unused
5100 (void) cached_has_bits;
5101
5102 if (GetArenaNoVirtual() == nullptr && info_ != nullptr) {
5103 delete info_;
5104 }
5105 info_ = nullptr;
5106 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
5107 delete device_uuid_;
5108 }
5109 device_uuid_ = nullptr;
5110 _internal_metadata_.Clear();
5111}
5112
5113#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5114const char* ManagedDeviceInfo::_InternalParse(const char* begin, const char* end, void* object,
5115 ::google::protobuf::internal::ParseContext* ctx) {
5116 auto msg = static_cast<ManagedDeviceInfo*>(object);
5117 ::google::protobuf::int32 size; (void)size;
5118 int depth; (void)depth;
5119 ::google::protobuf::uint32 tag;
5120 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
5121 auto ptr = begin;
5122 while (ptr < end) {
5123 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
5124 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5125 switch (tag >> 3) {
5126 // .dmi.ModifiableComponent info = 1;
5127 case 1: {
5128 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
5129 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
5130 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5131 parser_till_end = ::dmi::ModifiableComponent::_InternalParse;
5132 object = msg->mutable_info();
5133 if (size > end - ptr) goto len_delim_till_end;
5134 ptr += size;
5135 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
5136 {parser_till_end, object}, ptr - size, ptr));
5137 break;
5138 }
5139 // .dmi.Uuid device_uuid = 2;
5140 case 2: {
5141 if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
5142 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
5143 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5144 parser_till_end = ::dmi::Uuid::_InternalParse;
5145 object = msg->mutable_device_uuid();
5146 if (size > end - ptr) goto len_delim_till_end;
5147 ptr += size;
5148 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
5149 {parser_till_end, object}, ptr - size, ptr));
5150 break;
5151 }
5152 default: {
5153 handle_unusual:
5154 if ((tag & 7) == 4 || tag == 0) {
5155 ctx->EndGroup(tag);
5156 return ptr;
5157 }
5158 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
5159 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
5160 ptr = res.first;
5161 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
5162 if (res.second) return ptr;
5163 }
5164 } // switch
5165 } // while
5166 return ptr;
5167len_delim_till_end:
5168 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
5169 {parser_till_end, object}, size);
5170}
5171#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5172bool ManagedDeviceInfo::MergePartialFromCodedStream(
5173 ::google::protobuf::io::CodedInputStream* input) {
5174#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
5175 ::google::protobuf::uint32 tag;
5176 // @@protoc_insertion_point(parse_start:dmi.ManagedDeviceInfo)
5177 for (;;) {
5178 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5179 tag = p.first;
5180 if (!p.second) goto handle_unusual;
5181 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5182 // .dmi.ModifiableComponent info = 1;
5183 case 1: {
5184 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
5185 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5186 input, mutable_info()));
5187 } else {
5188 goto handle_unusual;
5189 }
5190 break;
5191 }
5192
5193 // .dmi.Uuid device_uuid = 2;
5194 case 2: {
5195 if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
5196 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5197 input, mutable_device_uuid()));
5198 } else {
5199 goto handle_unusual;
5200 }
5201 break;
5202 }
5203
5204 default: {
5205 handle_unusual:
5206 if (tag == 0) {
5207 goto success;
5208 }
5209 DO_(::google::protobuf::internal::WireFormat::SkipField(
5210 input, tag, _internal_metadata_.mutable_unknown_fields()));
5211 break;
5212 }
5213 }
5214 }
5215success:
5216 // @@protoc_insertion_point(parse_success:dmi.ManagedDeviceInfo)
5217 return true;
5218failure:
5219 // @@protoc_insertion_point(parse_failure:dmi.ManagedDeviceInfo)
5220 return false;
5221#undef DO_
5222}
5223#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5224
5225void ManagedDeviceInfo::SerializeWithCachedSizes(
5226 ::google::protobuf::io::CodedOutputStream* output) const {
5227 // @@protoc_insertion_point(serialize_start:dmi.ManagedDeviceInfo)
5228 ::google::protobuf::uint32 cached_has_bits = 0;
5229 (void) cached_has_bits;
5230
5231 // .dmi.ModifiableComponent info = 1;
5232 if (this->has_info()) {
5233 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5234 1, HasBitSetters::info(this), output);
5235 }
5236
5237 // .dmi.Uuid device_uuid = 2;
5238 if (this->has_device_uuid()) {
5239 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5240 2, HasBitSetters::device_uuid(this), output);
5241 }
5242
5243 if (_internal_metadata_.have_unknown_fields()) {
5244 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5245 _internal_metadata_.unknown_fields(), output);
5246 }
5247 // @@protoc_insertion_point(serialize_end:dmi.ManagedDeviceInfo)
5248}
5249
5250::google::protobuf::uint8* ManagedDeviceInfo::InternalSerializeWithCachedSizesToArray(
5251 ::google::protobuf::uint8* target) const {
5252 // @@protoc_insertion_point(serialize_to_array_start:dmi.ManagedDeviceInfo)
5253 ::google::protobuf::uint32 cached_has_bits = 0;
5254 (void) cached_has_bits;
5255
5256 // .dmi.ModifiableComponent info = 1;
5257 if (this->has_info()) {
5258 target = ::google::protobuf::internal::WireFormatLite::
5259 InternalWriteMessageToArray(
5260 1, HasBitSetters::info(this), target);
5261 }
5262
5263 // .dmi.Uuid device_uuid = 2;
5264 if (this->has_device_uuid()) {
5265 target = ::google::protobuf::internal::WireFormatLite::
5266 InternalWriteMessageToArray(
5267 2, HasBitSetters::device_uuid(this), target);
5268 }
5269
5270 if (_internal_metadata_.have_unknown_fields()) {
5271 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5272 _internal_metadata_.unknown_fields(), target);
5273 }
5274 // @@protoc_insertion_point(serialize_to_array_end:dmi.ManagedDeviceInfo)
5275 return target;
5276}
5277
5278size_t ManagedDeviceInfo::ByteSizeLong() const {
5279// @@protoc_insertion_point(message_byte_size_start:dmi.ManagedDeviceInfo)
5280 size_t total_size = 0;
5281
5282 if (_internal_metadata_.have_unknown_fields()) {
5283 total_size +=
5284 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5285 _internal_metadata_.unknown_fields());
5286 }
5287 ::google::protobuf::uint32 cached_has_bits = 0;
5288 // Prevent compiler warnings about cached_has_bits being unused
5289 (void) cached_has_bits;
5290
5291 // .dmi.ModifiableComponent info = 1;
5292 if (this->has_info()) {
5293 total_size += 1 +
5294 ::google::protobuf::internal::WireFormatLite::MessageSize(
5295 *info_);
5296 }
5297
5298 // .dmi.Uuid device_uuid = 2;
5299 if (this->has_device_uuid()) {
5300 total_size += 1 +
5301 ::google::protobuf::internal::WireFormatLite::MessageSize(
5302 *device_uuid_);
5303 }
5304
5305 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5306 SetCachedSize(cached_size);
5307 return total_size;
5308}
5309
5310void ManagedDeviceInfo::MergeFrom(const ::google::protobuf::Message& from) {
5311// @@protoc_insertion_point(generalized_merge_from_start:dmi.ManagedDeviceInfo)
5312 GOOGLE_DCHECK_NE(&from, this);
5313 const ManagedDeviceInfo* source =
5314 ::google::protobuf::DynamicCastToGenerated<ManagedDeviceInfo>(
5315 &from);
5316 if (source == nullptr) {
5317 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ManagedDeviceInfo)
5318 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5319 } else {
5320 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ManagedDeviceInfo)
5321 MergeFrom(*source);
5322 }
5323}
5324
5325void ManagedDeviceInfo::MergeFrom(const ManagedDeviceInfo& from) {
5326// @@protoc_insertion_point(class_specific_merge_from_start:dmi.ManagedDeviceInfo)
5327 GOOGLE_DCHECK_NE(&from, this);
5328 _internal_metadata_.MergeFrom(from._internal_metadata_);
5329 ::google::protobuf::uint32 cached_has_bits = 0;
5330 (void) cached_has_bits;
5331
5332 if (from.has_info()) {
5333 mutable_info()->::dmi::ModifiableComponent::MergeFrom(from.info());
5334 }
5335 if (from.has_device_uuid()) {
5336 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
5337 }
5338}
5339
5340void ManagedDeviceInfo::CopyFrom(const ::google::protobuf::Message& from) {
5341// @@protoc_insertion_point(generalized_copy_from_start:dmi.ManagedDeviceInfo)
5342 if (&from == this) return;
5343 Clear();
5344 MergeFrom(from);
5345}
5346
5347void ManagedDeviceInfo::CopyFrom(const ManagedDeviceInfo& from) {
5348// @@protoc_insertion_point(class_specific_copy_from_start:dmi.ManagedDeviceInfo)
5349 if (&from == this) return;
5350 Clear();
5351 MergeFrom(from);
5352}
5353
5354bool ManagedDeviceInfo::IsInitialized() const {
5355 return true;
5356}
5357
5358void ManagedDeviceInfo::Swap(ManagedDeviceInfo* other) {
5359 if (other == this) return;
5360 InternalSwap(other);
5361}
5362void ManagedDeviceInfo::InternalSwap(ManagedDeviceInfo* other) {
5363 using std::swap;
5364 _internal_metadata_.Swap(&other->_internal_metadata_);
5365 swap(info_, other->info_);
5366 swap(device_uuid_, other->device_uuid_);
5367}
5368
5369::google::protobuf::Metadata ManagedDeviceInfo::GetMetadata() const {
5370 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
5371 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
5372}
5373
5374
5375// ===================================================================
5376
5377void ManagedDevicesResponse::InitAsDefaultInstance() {
5378}
5379class ManagedDevicesResponse::HasBitSetters {
5380 public:
5381};
5382
5383#if !defined(_MSC_VER) || _MSC_VER >= 1900
5384const int ManagedDevicesResponse::kStatusFieldNumber;
5385const int ManagedDevicesResponse::kReasonFieldNumber;
5386const int ManagedDevicesResponse::kDevicesFieldNumber;
5387#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
5388
5389ManagedDevicesResponse::ManagedDevicesResponse()
5390 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
5391 SharedCtor();
5392 // @@protoc_insertion_point(constructor:dmi.ManagedDevicesResponse)
5393}
5394ManagedDevicesResponse::ManagedDevicesResponse(const ManagedDevicesResponse& from)
5395 : ::google::protobuf::Message(),
5396 _internal_metadata_(nullptr),
5397 devices_(from.devices_) {
5398 _internal_metadata_.MergeFrom(from._internal_metadata_);
5399 ::memcpy(&status_, &from.status_,
5400 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
5401 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
5402 // @@protoc_insertion_point(copy_constructor:dmi.ManagedDevicesResponse)
5403}
5404
5405void ManagedDevicesResponse::SharedCtor() {
5406 ::google::protobuf::internal::InitSCC(
5407 &scc_info_ManagedDevicesResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
5408 ::memset(&status_, 0, static_cast<size_t>(
5409 reinterpret_cast<char*>(&reason_) -
5410 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
5411}
5412
5413ManagedDevicesResponse::~ManagedDevicesResponse() {
5414 // @@protoc_insertion_point(destructor:dmi.ManagedDevicesResponse)
5415 SharedDtor();
5416}
5417
5418void ManagedDevicesResponse::SharedDtor() {
5419}
5420
5421void ManagedDevicesResponse::SetCachedSize(int size) const {
5422 _cached_size_.Set(size);
5423}
5424const ManagedDevicesResponse& ManagedDevicesResponse::default_instance() {
5425 ::google::protobuf::internal::InitSCC(&::scc_info_ManagedDevicesResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
5426 return *internal_default_instance();
5427}
5428
5429
5430void ManagedDevicesResponse::Clear() {
5431// @@protoc_insertion_point(message_clear_start:dmi.ManagedDevicesResponse)
5432 ::google::protobuf::uint32 cached_has_bits = 0;
5433 // Prevent compiler warnings about cached_has_bits being unused
5434 (void) cached_has_bits;
5435
5436 devices_.Clear();
5437 ::memset(&status_, 0, static_cast<size_t>(
5438 reinterpret_cast<char*>(&reason_) -
5439 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
5440 _internal_metadata_.Clear();
5441}
5442
5443#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5444const char* ManagedDevicesResponse::_InternalParse(const char* begin, const char* end, void* object,
5445 ::google::protobuf::internal::ParseContext* ctx) {
5446 auto msg = static_cast<ManagedDevicesResponse*>(object);
5447 ::google::protobuf::int32 size; (void)size;
5448 int depth; (void)depth;
5449 ::google::protobuf::uint32 tag;
5450 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
5451 auto ptr = begin;
5452 while (ptr < end) {
5453 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
5454 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5455 switch (tag >> 3) {
5456 // .dmi.Status status = 1;
5457 case 1: {
5458 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
5459 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
5460 msg->set_status(static_cast<::dmi::Status>(val));
5461 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5462 break;
5463 }
5464 // .dmi.ManagedDevicesResponse.Reason reason = 2;
5465 case 2: {
5466 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
5467 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
5468 msg->set_reason(static_cast<::dmi::ManagedDevicesResponse_Reason>(val));
5469 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5470 break;
5471 }
5472 // repeated .dmi.ManagedDeviceInfo devices = 3;
5473 case 3: {
5474 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
5475 do {
5476 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
5477 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5478 parser_till_end = ::dmi::ManagedDeviceInfo::_InternalParse;
5479 object = msg->add_devices();
5480 if (size > end - ptr) goto len_delim_till_end;
5481 ptr += size;
5482 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
5483 {parser_till_end, object}, ptr - size, ptr));
5484 if (ptr >= end) break;
5485 } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 26 && (ptr += 1));
5486 break;
5487 }
5488 default: {
5489 handle_unusual:
5490 if ((tag & 7) == 4 || tag == 0) {
5491 ctx->EndGroup(tag);
5492 return ptr;
5493 }
5494 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
5495 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
5496 ptr = res.first;
5497 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
5498 if (res.second) return ptr;
5499 }
5500 } // switch
5501 } // while
5502 return ptr;
5503len_delim_till_end:
5504 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
5505 {parser_till_end, object}, size);
5506}
5507#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5508bool ManagedDevicesResponse::MergePartialFromCodedStream(
5509 ::google::protobuf::io::CodedInputStream* input) {
5510#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
5511 ::google::protobuf::uint32 tag;
5512 // @@protoc_insertion_point(parse_start:dmi.ManagedDevicesResponse)
5513 for (;;) {
5514 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5515 tag = p.first;
5516 if (!p.second) goto handle_unusual;
5517 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5518 // .dmi.Status status = 1;
5519 case 1: {
5520 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
5521 int value = 0;
5522 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5523 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
5524 input, &value)));
5525 set_status(static_cast< ::dmi::Status >(value));
5526 } else {
5527 goto handle_unusual;
5528 }
5529 break;
5530 }
5531
5532 // .dmi.ManagedDevicesResponse.Reason reason = 2;
5533 case 2: {
5534 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
5535 int value = 0;
5536 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5537 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
5538 input, &value)));
5539 set_reason(static_cast< ::dmi::ManagedDevicesResponse_Reason >(value));
5540 } else {
5541 goto handle_unusual;
5542 }
5543 break;
5544 }
5545
5546 // repeated .dmi.ManagedDeviceInfo devices = 3;
5547 case 3: {
5548 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
5549 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5550 input, add_devices()));
5551 } else {
5552 goto handle_unusual;
5553 }
5554 break;
5555 }
5556
5557 default: {
5558 handle_unusual:
5559 if (tag == 0) {
5560 goto success;
5561 }
5562 DO_(::google::protobuf::internal::WireFormat::SkipField(
5563 input, tag, _internal_metadata_.mutable_unknown_fields()));
5564 break;
5565 }
5566 }
5567 }
5568success:
5569 // @@protoc_insertion_point(parse_success:dmi.ManagedDevicesResponse)
5570 return true;
5571failure:
5572 // @@protoc_insertion_point(parse_failure:dmi.ManagedDevicesResponse)
5573 return false;
5574#undef DO_
5575}
5576#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5577
5578void ManagedDevicesResponse::SerializeWithCachedSizes(
5579 ::google::protobuf::io::CodedOutputStream* output) const {
5580 // @@protoc_insertion_point(serialize_start:dmi.ManagedDevicesResponse)
5581 ::google::protobuf::uint32 cached_has_bits = 0;
5582 (void) cached_has_bits;
5583
5584 // .dmi.Status status = 1;
5585 if (this->status() != 0) {
5586 ::google::protobuf::internal::WireFormatLite::WriteEnum(
5587 1, this->status(), output);
5588 }
5589
5590 // .dmi.ManagedDevicesResponse.Reason reason = 2;
5591 if (this->reason() != 0) {
5592 ::google::protobuf::internal::WireFormatLite::WriteEnum(
5593 2, this->reason(), output);
5594 }
5595
5596 // repeated .dmi.ManagedDeviceInfo devices = 3;
5597 for (unsigned int i = 0,
5598 n = static_cast<unsigned int>(this->devices_size()); i < n; i++) {
5599 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5600 3,
5601 this->devices(static_cast<int>(i)),
5602 output);
5603 }
5604
5605 if (_internal_metadata_.have_unknown_fields()) {
5606 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5607 _internal_metadata_.unknown_fields(), output);
5608 }
5609 // @@protoc_insertion_point(serialize_end:dmi.ManagedDevicesResponse)
5610}
5611
5612::google::protobuf::uint8* ManagedDevicesResponse::InternalSerializeWithCachedSizesToArray(
5613 ::google::protobuf::uint8* target) const {
5614 // @@protoc_insertion_point(serialize_to_array_start:dmi.ManagedDevicesResponse)
5615 ::google::protobuf::uint32 cached_has_bits = 0;
5616 (void) cached_has_bits;
5617
5618 // .dmi.Status status = 1;
5619 if (this->status() != 0) {
5620 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
5621 1, this->status(), target);
5622 }
5623
5624 // .dmi.ManagedDevicesResponse.Reason reason = 2;
5625 if (this->reason() != 0) {
5626 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
5627 2, this->reason(), target);
5628 }
5629
5630 // repeated .dmi.ManagedDeviceInfo devices = 3;
5631 for (unsigned int i = 0,
5632 n = static_cast<unsigned int>(this->devices_size()); i < n; i++) {
5633 target = ::google::protobuf::internal::WireFormatLite::
5634 InternalWriteMessageToArray(
5635 3, this->devices(static_cast<int>(i)), target);
5636 }
5637
5638 if (_internal_metadata_.have_unknown_fields()) {
5639 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5640 _internal_metadata_.unknown_fields(), target);
5641 }
5642 // @@protoc_insertion_point(serialize_to_array_end:dmi.ManagedDevicesResponse)
5643 return target;
5644}
5645
5646size_t ManagedDevicesResponse::ByteSizeLong() const {
5647// @@protoc_insertion_point(message_byte_size_start:dmi.ManagedDevicesResponse)
5648 size_t total_size = 0;
5649
5650 if (_internal_metadata_.have_unknown_fields()) {
5651 total_size +=
5652 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5653 _internal_metadata_.unknown_fields());
5654 }
5655 ::google::protobuf::uint32 cached_has_bits = 0;
5656 // Prevent compiler warnings about cached_has_bits being unused
5657 (void) cached_has_bits;
5658
5659 // repeated .dmi.ManagedDeviceInfo devices = 3;
5660 {
5661 unsigned int count = static_cast<unsigned int>(this->devices_size());
5662 total_size += 1UL * count;
5663 for (unsigned int i = 0; i < count; i++) {
5664 total_size +=
5665 ::google::protobuf::internal::WireFormatLite::MessageSize(
5666 this->devices(static_cast<int>(i)));
5667 }
5668 }
5669
5670 // .dmi.Status status = 1;
5671 if (this->status() != 0) {
5672 total_size += 1 +
5673 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
5674 }
5675
5676 // .dmi.ManagedDevicesResponse.Reason reason = 2;
5677 if (this->reason() != 0) {
5678 total_size += 1 +
5679 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
5680 }
5681
5682 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5683 SetCachedSize(cached_size);
5684 return total_size;
5685}
5686
5687void ManagedDevicesResponse::MergeFrom(const ::google::protobuf::Message& from) {
5688// @@protoc_insertion_point(generalized_merge_from_start:dmi.ManagedDevicesResponse)
5689 GOOGLE_DCHECK_NE(&from, this);
5690 const ManagedDevicesResponse* source =
5691 ::google::protobuf::DynamicCastToGenerated<ManagedDevicesResponse>(
5692 &from);
5693 if (source == nullptr) {
5694 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ManagedDevicesResponse)
5695 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5696 } else {
5697 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ManagedDevicesResponse)
5698 MergeFrom(*source);
5699 }
5700}
5701
5702void ManagedDevicesResponse::MergeFrom(const ManagedDevicesResponse& from) {
5703// @@protoc_insertion_point(class_specific_merge_from_start:dmi.ManagedDevicesResponse)
5704 GOOGLE_DCHECK_NE(&from, this);
5705 _internal_metadata_.MergeFrom(from._internal_metadata_);
5706 ::google::protobuf::uint32 cached_has_bits = 0;
5707 (void) cached_has_bits;
5708
5709 devices_.MergeFrom(from.devices_);
5710 if (from.status() != 0) {
5711 set_status(from.status());
5712 }
5713 if (from.reason() != 0) {
5714 set_reason(from.reason());
5715 }
5716}
5717
5718void ManagedDevicesResponse::CopyFrom(const ::google::protobuf::Message& from) {
5719// @@protoc_insertion_point(generalized_copy_from_start:dmi.ManagedDevicesResponse)
5720 if (&from == this) return;
5721 Clear();
5722 MergeFrom(from);
5723}
5724
5725void ManagedDevicesResponse::CopyFrom(const ManagedDevicesResponse& from) {
5726// @@protoc_insertion_point(class_specific_copy_from_start:dmi.ManagedDevicesResponse)
5727 if (&from == this) return;
5728 Clear();
5729 MergeFrom(from);
5730}
5731
5732bool ManagedDevicesResponse::IsInitialized() const {
5733 return true;
5734}
5735
5736void ManagedDevicesResponse::Swap(ManagedDevicesResponse* other) {
5737 if (other == this) return;
5738 InternalSwap(other);
5739}
5740void ManagedDevicesResponse::InternalSwap(ManagedDevicesResponse* other) {
5741 using std::swap;
5742 _internal_metadata_.Swap(&other->_internal_metadata_);
5743 CastToBase(&devices_)->InternalSwap(CastToBase(&other->devices_));
5744 swap(status_, other->status_);
5745 swap(reason_, other->reason_);
5746}
5747
5748::google::protobuf::Metadata ManagedDevicesResponse::GetMetadata() const {
5749 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
5750 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
5751}
5752
5753
5754// ===================================================================
5755
5756void SetLoggingEndpointRequest::InitAsDefaultInstance() {
5757 ::dmi::_SetLoggingEndpointRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
5758 ::dmi::Uuid::internal_default_instance());
5759}
5760class SetLoggingEndpointRequest::HasBitSetters {
5761 public:
5762 static const ::dmi::Uuid& device_uuid(const SetLoggingEndpointRequest* msg);
5763};
5764
5765const ::dmi::Uuid&
5766SetLoggingEndpointRequest::HasBitSetters::device_uuid(const SetLoggingEndpointRequest* msg) {
5767 return *msg->device_uuid_;
5768}
5769void SetLoggingEndpointRequest::clear_device_uuid() {
5770 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
5771 delete device_uuid_;
5772 }
5773 device_uuid_ = nullptr;
5774}
5775#if !defined(_MSC_VER) || _MSC_VER >= 1900
5776const int SetLoggingEndpointRequest::kDeviceUuidFieldNumber;
5777const int SetLoggingEndpointRequest::kLoggingEndpointFieldNumber;
5778const int SetLoggingEndpointRequest::kLoggingProtocolFieldNumber;
5779#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
5780
5781SetLoggingEndpointRequest::SetLoggingEndpointRequest()
5782 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
5783 SharedCtor();
5784 // @@protoc_insertion_point(constructor:dmi.SetLoggingEndpointRequest)
5785}
5786SetLoggingEndpointRequest::SetLoggingEndpointRequest(const SetLoggingEndpointRequest& from)
5787 : ::google::protobuf::Message(),
5788 _internal_metadata_(nullptr) {
5789 _internal_metadata_.MergeFrom(from._internal_metadata_);
5790 logging_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5791 if (from.logging_endpoint().size() > 0) {
5792 logging_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_endpoint_);
5793 }
5794 logging_protocol_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5795 if (from.logging_protocol().size() > 0) {
5796 logging_protocol_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_protocol_);
5797 }
5798 if (from.has_device_uuid()) {
5799 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
5800 } else {
5801 device_uuid_ = nullptr;
5802 }
5803 // @@protoc_insertion_point(copy_constructor:dmi.SetLoggingEndpointRequest)
5804}
5805
5806void SetLoggingEndpointRequest::SharedCtor() {
5807 ::google::protobuf::internal::InitSCC(
5808 &scc_info_SetLoggingEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
5809 logging_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5810 logging_protocol_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5811 device_uuid_ = nullptr;
5812}
5813
5814SetLoggingEndpointRequest::~SetLoggingEndpointRequest() {
5815 // @@protoc_insertion_point(destructor:dmi.SetLoggingEndpointRequest)
5816 SharedDtor();
5817}
5818
5819void SetLoggingEndpointRequest::SharedDtor() {
5820 logging_endpoint_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5821 logging_protocol_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5822 if (this != internal_default_instance()) delete device_uuid_;
5823}
5824
5825void SetLoggingEndpointRequest::SetCachedSize(int size) const {
5826 _cached_size_.Set(size);
5827}
5828const SetLoggingEndpointRequest& SetLoggingEndpointRequest::default_instance() {
5829 ::google::protobuf::internal::InitSCC(&::scc_info_SetLoggingEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
5830 return *internal_default_instance();
5831}
5832
5833
5834void SetLoggingEndpointRequest::Clear() {
5835// @@protoc_insertion_point(message_clear_start:dmi.SetLoggingEndpointRequest)
5836 ::google::protobuf::uint32 cached_has_bits = 0;
5837 // Prevent compiler warnings about cached_has_bits being unused
5838 (void) cached_has_bits;
5839
5840 logging_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5841 logging_protocol_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5842 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
5843 delete device_uuid_;
5844 }
5845 device_uuid_ = nullptr;
5846 _internal_metadata_.Clear();
5847}
5848
5849#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5850const char* SetLoggingEndpointRequest::_InternalParse(const char* begin, const char* end, void* object,
5851 ::google::protobuf::internal::ParseContext* ctx) {
5852 auto msg = static_cast<SetLoggingEndpointRequest*>(object);
5853 ::google::protobuf::int32 size; (void)size;
5854 int depth; (void)depth;
5855 ::google::protobuf::uint32 tag;
5856 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
5857 auto ptr = begin;
5858 while (ptr < end) {
5859 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
5860 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5861 switch (tag >> 3) {
5862 // .dmi.Uuid device_uuid = 1;
5863 case 1: {
5864 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
5865 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
5866 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5867 parser_till_end = ::dmi::Uuid::_InternalParse;
5868 object = msg->mutable_device_uuid();
5869 if (size > end - ptr) goto len_delim_till_end;
5870 ptr += size;
5871 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
5872 {parser_till_end, object}, ptr - size, ptr));
5873 break;
5874 }
5875 // string logging_endpoint = 2;
5876 case 2: {
5877 if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
5878 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
5879 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5880 ctx->extra_parse_data().SetFieldName("dmi.SetLoggingEndpointRequest.logging_endpoint");
5881 object = msg->mutable_logging_endpoint();
5882 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
5883 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
5884 goto string_till_end;
5885 }
5886 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
5887 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
5888 ptr += size;
5889 break;
5890 }
5891 // string logging_protocol = 3;
5892 case 3: {
5893 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
5894 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
5895 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5896 ctx->extra_parse_data().SetFieldName("dmi.SetLoggingEndpointRequest.logging_protocol");
5897 object = msg->mutable_logging_protocol();
5898 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
5899 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
5900 goto string_till_end;
5901 }
5902 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
5903 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
5904 ptr += size;
5905 break;
5906 }
5907 default: {
5908 handle_unusual:
5909 if ((tag & 7) == 4 || tag == 0) {
5910 ctx->EndGroup(tag);
5911 return ptr;
5912 }
5913 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
5914 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
5915 ptr = res.first;
5916 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
5917 if (res.second) return ptr;
5918 }
5919 } // switch
5920 } // while
5921 return ptr;
5922string_till_end:
5923 static_cast<::std::string*>(object)->clear();
5924 static_cast<::std::string*>(object)->reserve(size);
5925 goto len_delim_till_end;
5926len_delim_till_end:
5927 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
5928 {parser_till_end, object}, size);
5929}
5930#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5931bool SetLoggingEndpointRequest::MergePartialFromCodedStream(
5932 ::google::protobuf::io::CodedInputStream* input) {
5933#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
5934 ::google::protobuf::uint32 tag;
5935 // @@protoc_insertion_point(parse_start:dmi.SetLoggingEndpointRequest)
5936 for (;;) {
5937 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5938 tag = p.first;
5939 if (!p.second) goto handle_unusual;
5940 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5941 // .dmi.Uuid device_uuid = 1;
5942 case 1: {
5943 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
5944 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5945 input, mutable_device_uuid()));
5946 } else {
5947 goto handle_unusual;
5948 }
5949 break;
5950 }
5951
5952 // string logging_endpoint = 2;
5953 case 2: {
5954 if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
5955 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5956 input, this->mutable_logging_endpoint()));
5957 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
5958 this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()),
5959 ::google::protobuf::internal::WireFormatLite::PARSE,
5960 "dmi.SetLoggingEndpointRequest.logging_endpoint"));
5961 } else {
5962 goto handle_unusual;
5963 }
5964 break;
5965 }
5966
5967 // string logging_protocol = 3;
5968 case 3: {
5969 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
5970 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5971 input, this->mutable_logging_protocol()));
5972 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
5973 this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()),
5974 ::google::protobuf::internal::WireFormatLite::PARSE,
5975 "dmi.SetLoggingEndpointRequest.logging_protocol"));
5976 } else {
5977 goto handle_unusual;
5978 }
5979 break;
5980 }
5981
5982 default: {
5983 handle_unusual:
5984 if (tag == 0) {
5985 goto success;
5986 }
5987 DO_(::google::protobuf::internal::WireFormat::SkipField(
5988 input, tag, _internal_metadata_.mutable_unknown_fields()));
5989 break;
5990 }
5991 }
5992 }
5993success:
5994 // @@protoc_insertion_point(parse_success:dmi.SetLoggingEndpointRequest)
5995 return true;
5996failure:
5997 // @@protoc_insertion_point(parse_failure:dmi.SetLoggingEndpointRequest)
5998 return false;
5999#undef DO_
6000}
6001#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6002
6003void SetLoggingEndpointRequest::SerializeWithCachedSizes(
6004 ::google::protobuf::io::CodedOutputStream* output) const {
6005 // @@protoc_insertion_point(serialize_start:dmi.SetLoggingEndpointRequest)
6006 ::google::protobuf::uint32 cached_has_bits = 0;
6007 (void) cached_has_bits;
6008
6009 // .dmi.Uuid device_uuid = 1;
6010 if (this->has_device_uuid()) {
6011 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6012 1, HasBitSetters::device_uuid(this), output);
6013 }
6014
6015 // string logging_endpoint = 2;
6016 if (this->logging_endpoint().size() > 0) {
6017 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6018 this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()),
6019 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6020 "dmi.SetLoggingEndpointRequest.logging_endpoint");
6021 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6022 2, this->logging_endpoint(), output);
6023 }
6024
6025 // string logging_protocol = 3;
6026 if (this->logging_protocol().size() > 0) {
6027 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6028 this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()),
6029 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6030 "dmi.SetLoggingEndpointRequest.logging_protocol");
6031 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6032 3, this->logging_protocol(), output);
6033 }
6034
6035 if (_internal_metadata_.have_unknown_fields()) {
6036 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6037 _internal_metadata_.unknown_fields(), output);
6038 }
6039 // @@protoc_insertion_point(serialize_end:dmi.SetLoggingEndpointRequest)
6040}
6041
6042::google::protobuf::uint8* SetLoggingEndpointRequest::InternalSerializeWithCachedSizesToArray(
6043 ::google::protobuf::uint8* target) const {
6044 // @@protoc_insertion_point(serialize_to_array_start:dmi.SetLoggingEndpointRequest)
6045 ::google::protobuf::uint32 cached_has_bits = 0;
6046 (void) cached_has_bits;
6047
6048 // .dmi.Uuid device_uuid = 1;
6049 if (this->has_device_uuid()) {
6050 target = ::google::protobuf::internal::WireFormatLite::
6051 InternalWriteMessageToArray(
6052 1, HasBitSetters::device_uuid(this), target);
6053 }
6054
6055 // string logging_endpoint = 2;
6056 if (this->logging_endpoint().size() > 0) {
6057 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6058 this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()),
6059 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6060 "dmi.SetLoggingEndpointRequest.logging_endpoint");
6061 target =
6062 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6063 2, this->logging_endpoint(), target);
6064 }
6065
6066 // string logging_protocol = 3;
6067 if (this->logging_protocol().size() > 0) {
6068 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6069 this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()),
6070 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6071 "dmi.SetLoggingEndpointRequest.logging_protocol");
6072 target =
6073 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6074 3, this->logging_protocol(), target);
6075 }
6076
6077 if (_internal_metadata_.have_unknown_fields()) {
6078 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6079 _internal_metadata_.unknown_fields(), target);
6080 }
6081 // @@protoc_insertion_point(serialize_to_array_end:dmi.SetLoggingEndpointRequest)
6082 return target;
6083}
6084
6085size_t SetLoggingEndpointRequest::ByteSizeLong() const {
6086// @@protoc_insertion_point(message_byte_size_start:dmi.SetLoggingEndpointRequest)
6087 size_t total_size = 0;
6088
6089 if (_internal_metadata_.have_unknown_fields()) {
6090 total_size +=
6091 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6092 _internal_metadata_.unknown_fields());
6093 }
6094 ::google::protobuf::uint32 cached_has_bits = 0;
6095 // Prevent compiler warnings about cached_has_bits being unused
6096 (void) cached_has_bits;
6097
6098 // string logging_endpoint = 2;
6099 if (this->logging_endpoint().size() > 0) {
6100 total_size += 1 +
6101 ::google::protobuf::internal::WireFormatLite::StringSize(
6102 this->logging_endpoint());
6103 }
6104
6105 // string logging_protocol = 3;
6106 if (this->logging_protocol().size() > 0) {
6107 total_size += 1 +
6108 ::google::protobuf::internal::WireFormatLite::StringSize(
6109 this->logging_protocol());
6110 }
6111
6112 // .dmi.Uuid device_uuid = 1;
6113 if (this->has_device_uuid()) {
6114 total_size += 1 +
6115 ::google::protobuf::internal::WireFormatLite::MessageSize(
6116 *device_uuid_);
6117 }
6118
6119 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
6120 SetCachedSize(cached_size);
6121 return total_size;
6122}
6123
6124void SetLoggingEndpointRequest::MergeFrom(const ::google::protobuf::Message& from) {
6125// @@protoc_insertion_point(generalized_merge_from_start:dmi.SetLoggingEndpointRequest)
6126 GOOGLE_DCHECK_NE(&from, this);
6127 const SetLoggingEndpointRequest* source =
6128 ::google::protobuf::DynamicCastToGenerated<SetLoggingEndpointRequest>(
6129 &from);
6130 if (source == nullptr) {
6131 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.SetLoggingEndpointRequest)
6132 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6133 } else {
6134 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.SetLoggingEndpointRequest)
6135 MergeFrom(*source);
6136 }
6137}
6138
6139void SetLoggingEndpointRequest::MergeFrom(const SetLoggingEndpointRequest& from) {
6140// @@protoc_insertion_point(class_specific_merge_from_start:dmi.SetLoggingEndpointRequest)
6141 GOOGLE_DCHECK_NE(&from, this);
6142 _internal_metadata_.MergeFrom(from._internal_metadata_);
6143 ::google::protobuf::uint32 cached_has_bits = 0;
6144 (void) cached_has_bits;
6145
6146 if (from.logging_endpoint().size() > 0) {
6147
6148 logging_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_endpoint_);
6149 }
6150 if (from.logging_protocol().size() > 0) {
6151
6152 logging_protocol_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_protocol_);
6153 }
6154 if (from.has_device_uuid()) {
6155 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
6156 }
6157}
6158
6159void SetLoggingEndpointRequest::CopyFrom(const ::google::protobuf::Message& from) {
6160// @@protoc_insertion_point(generalized_copy_from_start:dmi.SetLoggingEndpointRequest)
6161 if (&from == this) return;
6162 Clear();
6163 MergeFrom(from);
6164}
6165
6166void SetLoggingEndpointRequest::CopyFrom(const SetLoggingEndpointRequest& from) {
6167// @@protoc_insertion_point(class_specific_copy_from_start:dmi.SetLoggingEndpointRequest)
6168 if (&from == this) return;
6169 Clear();
6170 MergeFrom(from);
6171}
6172
6173bool SetLoggingEndpointRequest::IsInitialized() const {
6174 return true;
6175}
6176
6177void SetLoggingEndpointRequest::Swap(SetLoggingEndpointRequest* other) {
6178 if (other == this) return;
6179 InternalSwap(other);
6180}
6181void SetLoggingEndpointRequest::InternalSwap(SetLoggingEndpointRequest* other) {
6182 using std::swap;
6183 _internal_metadata_.Swap(&other->_internal_metadata_);
6184 logging_endpoint_.Swap(&other->logging_endpoint_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6185 GetArenaNoVirtual());
6186 logging_protocol_.Swap(&other->logging_protocol_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6187 GetArenaNoVirtual());
6188 swap(device_uuid_, other->device_uuid_);
6189}
6190
6191::google::protobuf::Metadata SetLoggingEndpointRequest::GetMetadata() const {
6192 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
6193 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
6194}
6195
6196
6197// ===================================================================
6198
6199void SetRemoteEndpointResponse::InitAsDefaultInstance() {
6200}
6201class SetRemoteEndpointResponse::HasBitSetters {
6202 public:
6203};
6204
6205#if !defined(_MSC_VER) || _MSC_VER >= 1900
6206const int SetRemoteEndpointResponse::kStatusFieldNumber;
6207const int SetRemoteEndpointResponse::kReasonFieldNumber;
6208const int SetRemoteEndpointResponse::kReasonDetailFieldNumber;
6209#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
6210
6211SetRemoteEndpointResponse::SetRemoteEndpointResponse()
6212 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
6213 SharedCtor();
6214 // @@protoc_insertion_point(constructor:dmi.SetRemoteEndpointResponse)
6215}
6216SetRemoteEndpointResponse::SetRemoteEndpointResponse(const SetRemoteEndpointResponse& from)
6217 : ::google::protobuf::Message(),
6218 _internal_metadata_(nullptr) {
6219 _internal_metadata_.MergeFrom(from._internal_metadata_);
6220 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6221 if (from.reason_detail().size() > 0) {
6222 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
6223 }
6224 ::memcpy(&status_, &from.status_,
6225 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
6226 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
6227 // @@protoc_insertion_point(copy_constructor:dmi.SetRemoteEndpointResponse)
6228}
6229
6230void SetRemoteEndpointResponse::SharedCtor() {
6231 ::google::protobuf::internal::InitSCC(
6232 &scc_info_SetRemoteEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
6233 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6234 ::memset(&status_, 0, static_cast<size_t>(
6235 reinterpret_cast<char*>(&reason_) -
6236 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
6237}
6238
6239SetRemoteEndpointResponse::~SetRemoteEndpointResponse() {
6240 // @@protoc_insertion_point(destructor:dmi.SetRemoteEndpointResponse)
6241 SharedDtor();
6242}
6243
6244void SetRemoteEndpointResponse::SharedDtor() {
6245 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6246}
6247
6248void SetRemoteEndpointResponse::SetCachedSize(int size) const {
6249 _cached_size_.Set(size);
6250}
6251const SetRemoteEndpointResponse& SetRemoteEndpointResponse::default_instance() {
6252 ::google::protobuf::internal::InitSCC(&::scc_info_SetRemoteEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
6253 return *internal_default_instance();
6254}
6255
6256
6257void SetRemoteEndpointResponse::Clear() {
6258// @@protoc_insertion_point(message_clear_start:dmi.SetRemoteEndpointResponse)
6259 ::google::protobuf::uint32 cached_has_bits = 0;
6260 // Prevent compiler warnings about cached_has_bits being unused
6261 (void) cached_has_bits;
6262
6263 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6264 ::memset(&status_, 0, static_cast<size_t>(
6265 reinterpret_cast<char*>(&reason_) -
6266 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
6267 _internal_metadata_.Clear();
6268}
6269
6270#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6271const char* SetRemoteEndpointResponse::_InternalParse(const char* begin, const char* end, void* object,
6272 ::google::protobuf::internal::ParseContext* ctx) {
6273 auto msg = static_cast<SetRemoteEndpointResponse*>(object);
6274 ::google::protobuf::int32 size; (void)size;
6275 int depth; (void)depth;
6276 ::google::protobuf::uint32 tag;
6277 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
6278 auto ptr = begin;
6279 while (ptr < end) {
6280 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
6281 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6282 switch (tag >> 3) {
6283 // .dmi.Status status = 1;
6284 case 1: {
6285 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
6286 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
6287 msg->set_status(static_cast<::dmi::Status>(val));
6288 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6289 break;
6290 }
6291 // .dmi.SetRemoteEndpointResponse.Reason reason = 2;
6292 case 2: {
6293 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
6294 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
6295 msg->set_reason(static_cast<::dmi::SetRemoteEndpointResponse_Reason>(val));
6296 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6297 break;
6298 }
6299 // string reason_detail = 3;
6300 case 3: {
6301 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
6302 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
6303 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6304 ctx->extra_parse_data().SetFieldName("dmi.SetRemoteEndpointResponse.reason_detail");
6305 object = msg->mutable_reason_detail();
6306 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
6307 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
6308 goto string_till_end;
6309 }
6310 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
6311 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
6312 ptr += size;
6313 break;
6314 }
6315 default: {
6316 handle_unusual:
6317 if ((tag & 7) == 4 || tag == 0) {
6318 ctx->EndGroup(tag);
6319 return ptr;
6320 }
6321 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
6322 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
6323 ptr = res.first;
6324 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
6325 if (res.second) return ptr;
6326 }
6327 } // switch
6328 } // while
6329 return ptr;
6330string_till_end:
6331 static_cast<::std::string*>(object)->clear();
6332 static_cast<::std::string*>(object)->reserve(size);
6333 goto len_delim_till_end;
6334len_delim_till_end:
6335 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
6336 {parser_till_end, object}, size);
6337}
6338#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6339bool SetRemoteEndpointResponse::MergePartialFromCodedStream(
6340 ::google::protobuf::io::CodedInputStream* input) {
6341#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
6342 ::google::protobuf::uint32 tag;
6343 // @@protoc_insertion_point(parse_start:dmi.SetRemoteEndpointResponse)
6344 for (;;) {
6345 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6346 tag = p.first;
6347 if (!p.second) goto handle_unusual;
6348 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6349 // .dmi.Status status = 1;
6350 case 1: {
6351 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
6352 int value = 0;
6353 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6354 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
6355 input, &value)));
6356 set_status(static_cast< ::dmi::Status >(value));
6357 } else {
6358 goto handle_unusual;
6359 }
6360 break;
6361 }
6362
6363 // .dmi.SetRemoteEndpointResponse.Reason reason = 2;
6364 case 2: {
6365 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
6366 int value = 0;
6367 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6368 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
6369 input, &value)));
6370 set_reason(static_cast< ::dmi::SetRemoteEndpointResponse_Reason >(value));
6371 } else {
6372 goto handle_unusual;
6373 }
6374 break;
6375 }
6376
6377 // string reason_detail = 3;
6378 case 3: {
6379 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
6380 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6381 input, this->mutable_reason_detail()));
6382 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6383 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
6384 ::google::protobuf::internal::WireFormatLite::PARSE,
6385 "dmi.SetRemoteEndpointResponse.reason_detail"));
6386 } else {
6387 goto handle_unusual;
6388 }
6389 break;
6390 }
6391
6392 default: {
6393 handle_unusual:
6394 if (tag == 0) {
6395 goto success;
6396 }
6397 DO_(::google::protobuf::internal::WireFormat::SkipField(
6398 input, tag, _internal_metadata_.mutable_unknown_fields()));
6399 break;
6400 }
6401 }
6402 }
6403success:
6404 // @@protoc_insertion_point(parse_success:dmi.SetRemoteEndpointResponse)
6405 return true;
6406failure:
6407 // @@protoc_insertion_point(parse_failure:dmi.SetRemoteEndpointResponse)
6408 return false;
6409#undef DO_
6410}
6411#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6412
6413void SetRemoteEndpointResponse::SerializeWithCachedSizes(
6414 ::google::protobuf::io::CodedOutputStream* output) const {
6415 // @@protoc_insertion_point(serialize_start:dmi.SetRemoteEndpointResponse)
6416 ::google::protobuf::uint32 cached_has_bits = 0;
6417 (void) cached_has_bits;
6418
6419 // .dmi.Status status = 1;
6420 if (this->status() != 0) {
6421 ::google::protobuf::internal::WireFormatLite::WriteEnum(
6422 1, this->status(), output);
6423 }
6424
6425 // .dmi.SetRemoteEndpointResponse.Reason reason = 2;
6426 if (this->reason() != 0) {
6427 ::google::protobuf::internal::WireFormatLite::WriteEnum(
6428 2, this->reason(), output);
6429 }
6430
6431 // string reason_detail = 3;
6432 if (this->reason_detail().size() > 0) {
6433 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6434 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
6435 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6436 "dmi.SetRemoteEndpointResponse.reason_detail");
6437 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6438 3, this->reason_detail(), output);
6439 }
6440
6441 if (_internal_metadata_.have_unknown_fields()) {
6442 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6443 _internal_metadata_.unknown_fields(), output);
6444 }
6445 // @@protoc_insertion_point(serialize_end:dmi.SetRemoteEndpointResponse)
6446}
6447
6448::google::protobuf::uint8* SetRemoteEndpointResponse::InternalSerializeWithCachedSizesToArray(
6449 ::google::protobuf::uint8* target) const {
6450 // @@protoc_insertion_point(serialize_to_array_start:dmi.SetRemoteEndpointResponse)
6451 ::google::protobuf::uint32 cached_has_bits = 0;
6452 (void) cached_has_bits;
6453
6454 // .dmi.Status status = 1;
6455 if (this->status() != 0) {
6456 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
6457 1, this->status(), target);
6458 }
6459
6460 // .dmi.SetRemoteEndpointResponse.Reason reason = 2;
6461 if (this->reason() != 0) {
6462 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
6463 2, this->reason(), target);
6464 }
6465
6466 // string reason_detail = 3;
6467 if (this->reason_detail().size() > 0) {
6468 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6469 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
6470 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6471 "dmi.SetRemoteEndpointResponse.reason_detail");
6472 target =
6473 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6474 3, this->reason_detail(), target);
6475 }
6476
6477 if (_internal_metadata_.have_unknown_fields()) {
6478 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6479 _internal_metadata_.unknown_fields(), target);
6480 }
6481 // @@protoc_insertion_point(serialize_to_array_end:dmi.SetRemoteEndpointResponse)
6482 return target;
6483}
6484
6485size_t SetRemoteEndpointResponse::ByteSizeLong() const {
6486// @@protoc_insertion_point(message_byte_size_start:dmi.SetRemoteEndpointResponse)
6487 size_t total_size = 0;
6488
6489 if (_internal_metadata_.have_unknown_fields()) {
6490 total_size +=
6491 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6492 _internal_metadata_.unknown_fields());
6493 }
6494 ::google::protobuf::uint32 cached_has_bits = 0;
6495 // Prevent compiler warnings about cached_has_bits being unused
6496 (void) cached_has_bits;
6497
6498 // string reason_detail = 3;
6499 if (this->reason_detail().size() > 0) {
6500 total_size += 1 +
6501 ::google::protobuf::internal::WireFormatLite::StringSize(
6502 this->reason_detail());
6503 }
6504
6505 // .dmi.Status status = 1;
6506 if (this->status() != 0) {
6507 total_size += 1 +
6508 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
6509 }
6510
6511 // .dmi.SetRemoteEndpointResponse.Reason reason = 2;
6512 if (this->reason() != 0) {
6513 total_size += 1 +
6514 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
6515 }
6516
6517 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
6518 SetCachedSize(cached_size);
6519 return total_size;
6520}
6521
6522void SetRemoteEndpointResponse::MergeFrom(const ::google::protobuf::Message& from) {
6523// @@protoc_insertion_point(generalized_merge_from_start:dmi.SetRemoteEndpointResponse)
6524 GOOGLE_DCHECK_NE(&from, this);
6525 const SetRemoteEndpointResponse* source =
6526 ::google::protobuf::DynamicCastToGenerated<SetRemoteEndpointResponse>(
6527 &from);
6528 if (source == nullptr) {
6529 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.SetRemoteEndpointResponse)
6530 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6531 } else {
6532 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.SetRemoteEndpointResponse)
6533 MergeFrom(*source);
6534 }
6535}
6536
6537void SetRemoteEndpointResponse::MergeFrom(const SetRemoteEndpointResponse& from) {
6538// @@protoc_insertion_point(class_specific_merge_from_start:dmi.SetRemoteEndpointResponse)
6539 GOOGLE_DCHECK_NE(&from, this);
6540 _internal_metadata_.MergeFrom(from._internal_metadata_);
6541 ::google::protobuf::uint32 cached_has_bits = 0;
6542 (void) cached_has_bits;
6543
6544 if (from.reason_detail().size() > 0) {
6545
6546 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
6547 }
6548 if (from.status() != 0) {
6549 set_status(from.status());
6550 }
6551 if (from.reason() != 0) {
6552 set_reason(from.reason());
6553 }
6554}
6555
6556void SetRemoteEndpointResponse::CopyFrom(const ::google::protobuf::Message& from) {
6557// @@protoc_insertion_point(generalized_copy_from_start:dmi.SetRemoteEndpointResponse)
6558 if (&from == this) return;
6559 Clear();
6560 MergeFrom(from);
6561}
6562
6563void SetRemoteEndpointResponse::CopyFrom(const SetRemoteEndpointResponse& from) {
6564// @@protoc_insertion_point(class_specific_copy_from_start:dmi.SetRemoteEndpointResponse)
6565 if (&from == this) return;
6566 Clear();
6567 MergeFrom(from);
6568}
6569
6570bool SetRemoteEndpointResponse::IsInitialized() const {
6571 return true;
6572}
6573
6574void SetRemoteEndpointResponse::Swap(SetRemoteEndpointResponse* other) {
6575 if (other == this) return;
6576 InternalSwap(other);
6577}
6578void SetRemoteEndpointResponse::InternalSwap(SetRemoteEndpointResponse* other) {
6579 using std::swap;
6580 _internal_metadata_.Swap(&other->_internal_metadata_);
6581 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6582 GetArenaNoVirtual());
6583 swap(status_, other->status_);
6584 swap(reason_, other->reason_);
6585}
6586
6587::google::protobuf::Metadata SetRemoteEndpointResponse::GetMetadata() const {
6588 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
6589 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
6590}
6591
6592
6593// ===================================================================
6594
6595void GetLoggingEndpointResponse::InitAsDefaultInstance() {
6596}
6597class GetLoggingEndpointResponse::HasBitSetters {
6598 public:
6599};
6600
6601#if !defined(_MSC_VER) || _MSC_VER >= 1900
6602const int GetLoggingEndpointResponse::kStatusFieldNumber;
6603const int GetLoggingEndpointResponse::kReasonFieldNumber;
6604const int GetLoggingEndpointResponse::kLoggingEndpointFieldNumber;
6605const int GetLoggingEndpointResponse::kLoggingProtocolFieldNumber;
6606const int GetLoggingEndpointResponse::kReasonDetailFieldNumber;
6607#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
6608
6609GetLoggingEndpointResponse::GetLoggingEndpointResponse()
6610 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
6611 SharedCtor();
6612 // @@protoc_insertion_point(constructor:dmi.GetLoggingEndpointResponse)
6613}
6614GetLoggingEndpointResponse::GetLoggingEndpointResponse(const GetLoggingEndpointResponse& from)
6615 : ::google::protobuf::Message(),
6616 _internal_metadata_(nullptr) {
6617 _internal_metadata_.MergeFrom(from._internal_metadata_);
6618 logging_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6619 if (from.logging_endpoint().size() > 0) {
6620 logging_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_endpoint_);
6621 }
6622 logging_protocol_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6623 if (from.logging_protocol().size() > 0) {
6624 logging_protocol_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_protocol_);
6625 }
6626 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6627 if (from.reason_detail().size() > 0) {
6628 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
6629 }
6630 ::memcpy(&status_, &from.status_,
6631 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
6632 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
6633 // @@protoc_insertion_point(copy_constructor:dmi.GetLoggingEndpointResponse)
6634}
6635
6636void GetLoggingEndpointResponse::SharedCtor() {
6637 ::google::protobuf::internal::InitSCC(
6638 &scc_info_GetLoggingEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
6639 logging_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6640 logging_protocol_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6641 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6642 ::memset(&status_, 0, static_cast<size_t>(
6643 reinterpret_cast<char*>(&reason_) -
6644 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
6645}
6646
6647GetLoggingEndpointResponse::~GetLoggingEndpointResponse() {
6648 // @@protoc_insertion_point(destructor:dmi.GetLoggingEndpointResponse)
6649 SharedDtor();
6650}
6651
6652void GetLoggingEndpointResponse::SharedDtor() {
6653 logging_endpoint_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6654 logging_protocol_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6655 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6656}
6657
6658void GetLoggingEndpointResponse::SetCachedSize(int size) const {
6659 _cached_size_.Set(size);
6660}
6661const GetLoggingEndpointResponse& GetLoggingEndpointResponse::default_instance() {
6662 ::google::protobuf::internal::InitSCC(&::scc_info_GetLoggingEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
6663 return *internal_default_instance();
6664}
6665
6666
6667void GetLoggingEndpointResponse::Clear() {
6668// @@protoc_insertion_point(message_clear_start:dmi.GetLoggingEndpointResponse)
6669 ::google::protobuf::uint32 cached_has_bits = 0;
6670 // Prevent compiler warnings about cached_has_bits being unused
6671 (void) cached_has_bits;
6672
6673 logging_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6674 logging_protocol_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6675 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6676 ::memset(&status_, 0, static_cast<size_t>(
6677 reinterpret_cast<char*>(&reason_) -
6678 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
6679 _internal_metadata_.Clear();
6680}
6681
6682#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6683const char* GetLoggingEndpointResponse::_InternalParse(const char* begin, const char* end, void* object,
6684 ::google::protobuf::internal::ParseContext* ctx) {
6685 auto msg = static_cast<GetLoggingEndpointResponse*>(object);
6686 ::google::protobuf::int32 size; (void)size;
6687 int depth; (void)depth;
6688 ::google::protobuf::uint32 tag;
6689 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
6690 auto ptr = begin;
6691 while (ptr < end) {
6692 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
6693 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6694 switch (tag >> 3) {
6695 // .dmi.Status status = 1;
6696 case 1: {
6697 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
6698 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
6699 msg->set_status(static_cast<::dmi::Status>(val));
6700 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6701 break;
6702 }
6703 // .dmi.GetLoggingEndpointResponse.Reason reason = 2;
6704 case 2: {
6705 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
6706 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
6707 msg->set_reason(static_cast<::dmi::GetLoggingEndpointResponse_Reason>(val));
6708 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6709 break;
6710 }
6711 // string logging_endpoint = 3;
6712 case 3: {
6713 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
6714 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
6715 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6716 ctx->extra_parse_data().SetFieldName("dmi.GetLoggingEndpointResponse.logging_endpoint");
6717 object = msg->mutable_logging_endpoint();
6718 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
6719 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
6720 goto string_till_end;
6721 }
6722 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
6723 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
6724 ptr += size;
6725 break;
6726 }
6727 // string logging_protocol = 4;
6728 case 4: {
6729 if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual;
6730 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
6731 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6732 ctx->extra_parse_data().SetFieldName("dmi.GetLoggingEndpointResponse.logging_protocol");
6733 object = msg->mutable_logging_protocol();
6734 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
6735 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
6736 goto string_till_end;
6737 }
6738 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
6739 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
6740 ptr += size;
6741 break;
6742 }
6743 // string reason_detail = 5;
6744 case 5: {
6745 if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual;
6746 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
6747 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6748 ctx->extra_parse_data().SetFieldName("dmi.GetLoggingEndpointResponse.reason_detail");
6749 object = msg->mutable_reason_detail();
6750 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
6751 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
6752 goto string_till_end;
6753 }
6754 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
6755 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
6756 ptr += size;
6757 break;
6758 }
6759 default: {
6760 handle_unusual:
6761 if ((tag & 7) == 4 || tag == 0) {
6762 ctx->EndGroup(tag);
6763 return ptr;
6764 }
6765 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
6766 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
6767 ptr = res.first;
6768 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
6769 if (res.second) return ptr;
6770 }
6771 } // switch
6772 } // while
6773 return ptr;
6774string_till_end:
6775 static_cast<::std::string*>(object)->clear();
6776 static_cast<::std::string*>(object)->reserve(size);
6777 goto len_delim_till_end;
6778len_delim_till_end:
6779 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
6780 {parser_till_end, object}, size);
6781}
6782#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6783bool GetLoggingEndpointResponse::MergePartialFromCodedStream(
6784 ::google::protobuf::io::CodedInputStream* input) {
6785#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
6786 ::google::protobuf::uint32 tag;
6787 // @@protoc_insertion_point(parse_start:dmi.GetLoggingEndpointResponse)
6788 for (;;) {
6789 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6790 tag = p.first;
6791 if (!p.second) goto handle_unusual;
6792 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6793 // .dmi.Status status = 1;
6794 case 1: {
6795 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
6796 int value = 0;
6797 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6798 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
6799 input, &value)));
6800 set_status(static_cast< ::dmi::Status >(value));
6801 } else {
6802 goto handle_unusual;
6803 }
6804 break;
6805 }
6806
6807 // .dmi.GetLoggingEndpointResponse.Reason reason = 2;
6808 case 2: {
6809 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
6810 int value = 0;
6811 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6812 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
6813 input, &value)));
6814 set_reason(static_cast< ::dmi::GetLoggingEndpointResponse_Reason >(value));
6815 } else {
6816 goto handle_unusual;
6817 }
6818 break;
6819 }
6820
6821 // string logging_endpoint = 3;
6822 case 3: {
6823 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
6824 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6825 input, this->mutable_logging_endpoint()));
6826 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6827 this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()),
6828 ::google::protobuf::internal::WireFormatLite::PARSE,
6829 "dmi.GetLoggingEndpointResponse.logging_endpoint"));
6830 } else {
6831 goto handle_unusual;
6832 }
6833 break;
6834 }
6835
6836 // string logging_protocol = 4;
6837 case 4: {
6838 if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
6839 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6840 input, this->mutable_logging_protocol()));
6841 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6842 this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()),
6843 ::google::protobuf::internal::WireFormatLite::PARSE,
6844 "dmi.GetLoggingEndpointResponse.logging_protocol"));
6845 } else {
6846 goto handle_unusual;
6847 }
6848 break;
6849 }
6850
6851 // string reason_detail = 5;
6852 case 5: {
6853 if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) {
6854 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6855 input, this->mutable_reason_detail()));
6856 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6857 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
6858 ::google::protobuf::internal::WireFormatLite::PARSE,
6859 "dmi.GetLoggingEndpointResponse.reason_detail"));
6860 } else {
6861 goto handle_unusual;
6862 }
6863 break;
6864 }
6865
6866 default: {
6867 handle_unusual:
6868 if (tag == 0) {
6869 goto success;
6870 }
6871 DO_(::google::protobuf::internal::WireFormat::SkipField(
6872 input, tag, _internal_metadata_.mutable_unknown_fields()));
6873 break;
6874 }
6875 }
6876 }
6877success:
6878 // @@protoc_insertion_point(parse_success:dmi.GetLoggingEndpointResponse)
6879 return true;
6880failure:
6881 // @@protoc_insertion_point(parse_failure:dmi.GetLoggingEndpointResponse)
6882 return false;
6883#undef DO_
6884}
6885#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6886
6887void GetLoggingEndpointResponse::SerializeWithCachedSizes(
6888 ::google::protobuf::io::CodedOutputStream* output) const {
6889 // @@protoc_insertion_point(serialize_start:dmi.GetLoggingEndpointResponse)
6890 ::google::protobuf::uint32 cached_has_bits = 0;
6891 (void) cached_has_bits;
6892
6893 // .dmi.Status status = 1;
6894 if (this->status() != 0) {
6895 ::google::protobuf::internal::WireFormatLite::WriteEnum(
6896 1, this->status(), output);
6897 }
6898
6899 // .dmi.GetLoggingEndpointResponse.Reason reason = 2;
6900 if (this->reason() != 0) {
6901 ::google::protobuf::internal::WireFormatLite::WriteEnum(
6902 2, this->reason(), output);
6903 }
6904
6905 // string logging_endpoint = 3;
6906 if (this->logging_endpoint().size() > 0) {
6907 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6908 this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()),
6909 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6910 "dmi.GetLoggingEndpointResponse.logging_endpoint");
6911 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6912 3, this->logging_endpoint(), output);
6913 }
6914
6915 // string logging_protocol = 4;
6916 if (this->logging_protocol().size() > 0) {
6917 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6918 this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()),
6919 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6920 "dmi.GetLoggingEndpointResponse.logging_protocol");
6921 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6922 4, this->logging_protocol(), output);
6923 }
6924
6925 // string reason_detail = 5;
6926 if (this->reason_detail().size() > 0) {
6927 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6928 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
6929 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6930 "dmi.GetLoggingEndpointResponse.reason_detail");
6931 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6932 5, this->reason_detail(), output);
6933 }
6934
6935 if (_internal_metadata_.have_unknown_fields()) {
6936 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6937 _internal_metadata_.unknown_fields(), output);
6938 }
6939 // @@protoc_insertion_point(serialize_end:dmi.GetLoggingEndpointResponse)
6940}
6941
6942::google::protobuf::uint8* GetLoggingEndpointResponse::InternalSerializeWithCachedSizesToArray(
6943 ::google::protobuf::uint8* target) const {
6944 // @@protoc_insertion_point(serialize_to_array_start:dmi.GetLoggingEndpointResponse)
6945 ::google::protobuf::uint32 cached_has_bits = 0;
6946 (void) cached_has_bits;
6947
6948 // .dmi.Status status = 1;
6949 if (this->status() != 0) {
6950 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
6951 1, this->status(), target);
6952 }
6953
6954 // .dmi.GetLoggingEndpointResponse.Reason reason = 2;
6955 if (this->reason() != 0) {
6956 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
6957 2, this->reason(), target);
6958 }
6959
6960 // string logging_endpoint = 3;
6961 if (this->logging_endpoint().size() > 0) {
6962 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6963 this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()),
6964 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6965 "dmi.GetLoggingEndpointResponse.logging_endpoint");
6966 target =
6967 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6968 3, this->logging_endpoint(), target);
6969 }
6970
6971 // string logging_protocol = 4;
6972 if (this->logging_protocol().size() > 0) {
6973 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6974 this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()),
6975 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6976 "dmi.GetLoggingEndpointResponse.logging_protocol");
6977 target =
6978 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6979 4, this->logging_protocol(), target);
6980 }
6981
6982 // string reason_detail = 5;
6983 if (this->reason_detail().size() > 0) {
6984 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6985 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
6986 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6987 "dmi.GetLoggingEndpointResponse.reason_detail");
6988 target =
6989 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6990 5, this->reason_detail(), target);
6991 }
6992
6993 if (_internal_metadata_.have_unknown_fields()) {
6994 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6995 _internal_metadata_.unknown_fields(), target);
6996 }
6997 // @@protoc_insertion_point(serialize_to_array_end:dmi.GetLoggingEndpointResponse)
6998 return target;
6999}
7000
7001size_t GetLoggingEndpointResponse::ByteSizeLong() const {
7002// @@protoc_insertion_point(message_byte_size_start:dmi.GetLoggingEndpointResponse)
7003 size_t total_size = 0;
7004
7005 if (_internal_metadata_.have_unknown_fields()) {
7006 total_size +=
7007 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7008 _internal_metadata_.unknown_fields());
7009 }
7010 ::google::protobuf::uint32 cached_has_bits = 0;
7011 // Prevent compiler warnings about cached_has_bits being unused
7012 (void) cached_has_bits;
7013
7014 // string logging_endpoint = 3;
7015 if (this->logging_endpoint().size() > 0) {
7016 total_size += 1 +
7017 ::google::protobuf::internal::WireFormatLite::StringSize(
7018 this->logging_endpoint());
7019 }
7020
7021 // string logging_protocol = 4;
7022 if (this->logging_protocol().size() > 0) {
7023 total_size += 1 +
7024 ::google::protobuf::internal::WireFormatLite::StringSize(
7025 this->logging_protocol());
7026 }
7027
7028 // string reason_detail = 5;
7029 if (this->reason_detail().size() > 0) {
7030 total_size += 1 +
7031 ::google::protobuf::internal::WireFormatLite::StringSize(
7032 this->reason_detail());
7033 }
7034
7035 // .dmi.Status status = 1;
7036 if (this->status() != 0) {
7037 total_size += 1 +
7038 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
7039 }
7040
7041 // .dmi.GetLoggingEndpointResponse.Reason reason = 2;
7042 if (this->reason() != 0) {
7043 total_size += 1 +
7044 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
7045 }
7046
7047 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
7048 SetCachedSize(cached_size);
7049 return total_size;
7050}
7051
7052void GetLoggingEndpointResponse::MergeFrom(const ::google::protobuf::Message& from) {
7053// @@protoc_insertion_point(generalized_merge_from_start:dmi.GetLoggingEndpointResponse)
7054 GOOGLE_DCHECK_NE(&from, this);
7055 const GetLoggingEndpointResponse* source =
7056 ::google::protobuf::DynamicCastToGenerated<GetLoggingEndpointResponse>(
7057 &from);
7058 if (source == nullptr) {
7059 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.GetLoggingEndpointResponse)
7060 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7061 } else {
7062 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.GetLoggingEndpointResponse)
7063 MergeFrom(*source);
7064 }
7065}
7066
7067void GetLoggingEndpointResponse::MergeFrom(const GetLoggingEndpointResponse& from) {
7068// @@protoc_insertion_point(class_specific_merge_from_start:dmi.GetLoggingEndpointResponse)
7069 GOOGLE_DCHECK_NE(&from, this);
7070 _internal_metadata_.MergeFrom(from._internal_metadata_);
7071 ::google::protobuf::uint32 cached_has_bits = 0;
7072 (void) cached_has_bits;
7073
7074 if (from.logging_endpoint().size() > 0) {
7075
7076 logging_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_endpoint_);
7077 }
7078 if (from.logging_protocol().size() > 0) {
7079
7080 logging_protocol_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_protocol_);
7081 }
7082 if (from.reason_detail().size() > 0) {
7083
7084 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
7085 }
7086 if (from.status() != 0) {
7087 set_status(from.status());
7088 }
7089 if (from.reason() != 0) {
7090 set_reason(from.reason());
7091 }
7092}
7093
7094void GetLoggingEndpointResponse::CopyFrom(const ::google::protobuf::Message& from) {
7095// @@protoc_insertion_point(generalized_copy_from_start:dmi.GetLoggingEndpointResponse)
7096 if (&from == this) return;
7097 Clear();
7098 MergeFrom(from);
7099}
7100
7101void GetLoggingEndpointResponse::CopyFrom(const GetLoggingEndpointResponse& from) {
7102// @@protoc_insertion_point(class_specific_copy_from_start:dmi.GetLoggingEndpointResponse)
7103 if (&from == this) return;
7104 Clear();
7105 MergeFrom(from);
7106}
7107
7108bool GetLoggingEndpointResponse::IsInitialized() const {
7109 return true;
7110}
7111
7112void GetLoggingEndpointResponse::Swap(GetLoggingEndpointResponse* other) {
7113 if (other == this) return;
7114 InternalSwap(other);
7115}
7116void GetLoggingEndpointResponse::InternalSwap(GetLoggingEndpointResponse* other) {
7117 using std::swap;
7118 _internal_metadata_.Swap(&other->_internal_metadata_);
7119 logging_endpoint_.Swap(&other->logging_endpoint_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
7120 GetArenaNoVirtual());
7121 logging_protocol_.Swap(&other->logging_protocol_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
7122 GetArenaNoVirtual());
7123 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
7124 GetArenaNoVirtual());
7125 swap(status_, other->status_);
7126 swap(reason_, other->reason_);
7127}
7128
7129::google::protobuf::Metadata GetLoggingEndpointResponse::GetMetadata() const {
7130 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
7131 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
7132}
7133
7134
7135// ===================================================================
7136
7137void SetMsgBusEndpointRequest::InitAsDefaultInstance() {
7138}
7139class SetMsgBusEndpointRequest::HasBitSetters {
7140 public:
7141};
7142
7143#if !defined(_MSC_VER) || _MSC_VER >= 1900
7144const int SetMsgBusEndpointRequest::kMsgbusEndpointFieldNumber;
7145#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
7146
7147SetMsgBusEndpointRequest::SetMsgBusEndpointRequest()
7148 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
7149 SharedCtor();
7150 // @@protoc_insertion_point(constructor:dmi.SetMsgBusEndpointRequest)
7151}
7152SetMsgBusEndpointRequest::SetMsgBusEndpointRequest(const SetMsgBusEndpointRequest& from)
7153 : ::google::protobuf::Message(),
7154 _internal_metadata_(nullptr) {
7155 _internal_metadata_.MergeFrom(from._internal_metadata_);
7156 msgbus_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7157 if (from.msgbus_endpoint().size() > 0) {
7158 msgbus_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.msgbus_endpoint_);
7159 }
7160 // @@protoc_insertion_point(copy_constructor:dmi.SetMsgBusEndpointRequest)
7161}
7162
7163void SetMsgBusEndpointRequest::SharedCtor() {
7164 ::google::protobuf::internal::InitSCC(
7165 &scc_info_SetMsgBusEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
7166 msgbus_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7167}
7168
7169SetMsgBusEndpointRequest::~SetMsgBusEndpointRequest() {
7170 // @@protoc_insertion_point(destructor:dmi.SetMsgBusEndpointRequest)
7171 SharedDtor();
7172}
7173
7174void SetMsgBusEndpointRequest::SharedDtor() {
7175 msgbus_endpoint_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7176}
7177
7178void SetMsgBusEndpointRequest::SetCachedSize(int size) const {
7179 _cached_size_.Set(size);
7180}
7181const SetMsgBusEndpointRequest& SetMsgBusEndpointRequest::default_instance() {
7182 ::google::protobuf::internal::InitSCC(&::scc_info_SetMsgBusEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
7183 return *internal_default_instance();
7184}
7185
7186
7187void SetMsgBusEndpointRequest::Clear() {
7188// @@protoc_insertion_point(message_clear_start:dmi.SetMsgBusEndpointRequest)
7189 ::google::protobuf::uint32 cached_has_bits = 0;
7190 // Prevent compiler warnings about cached_has_bits being unused
7191 (void) cached_has_bits;
7192
7193 msgbus_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7194 _internal_metadata_.Clear();
7195}
7196
7197#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7198const char* SetMsgBusEndpointRequest::_InternalParse(const char* begin, const char* end, void* object,
7199 ::google::protobuf::internal::ParseContext* ctx) {
7200 auto msg = static_cast<SetMsgBusEndpointRequest*>(object);
7201 ::google::protobuf::int32 size; (void)size;
7202 int depth; (void)depth;
7203 ::google::protobuf::uint32 tag;
7204 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
7205 auto ptr = begin;
7206 while (ptr < end) {
7207 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
7208 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7209 switch (tag >> 3) {
7210 // string msgbus_endpoint = 1;
7211 case 1: {
7212 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
7213 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
7214 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7215 ctx->extra_parse_data().SetFieldName("dmi.SetMsgBusEndpointRequest.msgbus_endpoint");
7216 object = msg->mutable_msgbus_endpoint();
7217 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
7218 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
7219 goto string_till_end;
7220 }
7221 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
7222 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
7223 ptr += size;
7224 break;
7225 }
7226 default: {
7227 handle_unusual:
7228 if ((tag & 7) == 4 || tag == 0) {
7229 ctx->EndGroup(tag);
7230 return ptr;
7231 }
7232 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
7233 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
7234 ptr = res.first;
7235 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
7236 if (res.second) return ptr;
7237 }
7238 } // switch
7239 } // while
7240 return ptr;
7241string_till_end:
7242 static_cast<::std::string*>(object)->clear();
7243 static_cast<::std::string*>(object)->reserve(size);
7244 goto len_delim_till_end;
7245len_delim_till_end:
7246 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
7247 {parser_till_end, object}, size);
7248}
7249#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7250bool SetMsgBusEndpointRequest::MergePartialFromCodedStream(
7251 ::google::protobuf::io::CodedInputStream* input) {
7252#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
7253 ::google::protobuf::uint32 tag;
7254 // @@protoc_insertion_point(parse_start:dmi.SetMsgBusEndpointRequest)
7255 for (;;) {
7256 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
7257 tag = p.first;
7258 if (!p.second) goto handle_unusual;
7259 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7260 // string msgbus_endpoint = 1;
7261 case 1: {
7262 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
7263 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7264 input, this->mutable_msgbus_endpoint()));
7265 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7266 this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()),
7267 ::google::protobuf::internal::WireFormatLite::PARSE,
7268 "dmi.SetMsgBusEndpointRequest.msgbus_endpoint"));
7269 } else {
7270 goto handle_unusual;
7271 }
7272 break;
7273 }
7274
7275 default: {
7276 handle_unusual:
7277 if (tag == 0) {
7278 goto success;
7279 }
7280 DO_(::google::protobuf::internal::WireFormat::SkipField(
7281 input, tag, _internal_metadata_.mutable_unknown_fields()));
7282 break;
7283 }
7284 }
7285 }
7286success:
7287 // @@protoc_insertion_point(parse_success:dmi.SetMsgBusEndpointRequest)
7288 return true;
7289failure:
7290 // @@protoc_insertion_point(parse_failure:dmi.SetMsgBusEndpointRequest)
7291 return false;
7292#undef DO_
7293}
7294#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7295
7296void SetMsgBusEndpointRequest::SerializeWithCachedSizes(
7297 ::google::protobuf::io::CodedOutputStream* output) const {
7298 // @@protoc_insertion_point(serialize_start:dmi.SetMsgBusEndpointRequest)
7299 ::google::protobuf::uint32 cached_has_bits = 0;
7300 (void) cached_has_bits;
7301
7302 // string msgbus_endpoint = 1;
7303 if (this->msgbus_endpoint().size() > 0) {
7304 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7305 this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()),
7306 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7307 "dmi.SetMsgBusEndpointRequest.msgbus_endpoint");
7308 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7309 1, this->msgbus_endpoint(), output);
7310 }
7311
7312 if (_internal_metadata_.have_unknown_fields()) {
7313 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
7314 _internal_metadata_.unknown_fields(), output);
7315 }
7316 // @@protoc_insertion_point(serialize_end:dmi.SetMsgBusEndpointRequest)
7317}
7318
7319::google::protobuf::uint8* SetMsgBusEndpointRequest::InternalSerializeWithCachedSizesToArray(
7320 ::google::protobuf::uint8* target) const {
7321 // @@protoc_insertion_point(serialize_to_array_start:dmi.SetMsgBusEndpointRequest)
7322 ::google::protobuf::uint32 cached_has_bits = 0;
7323 (void) cached_has_bits;
7324
7325 // string msgbus_endpoint = 1;
7326 if (this->msgbus_endpoint().size() > 0) {
7327 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7328 this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()),
7329 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7330 "dmi.SetMsgBusEndpointRequest.msgbus_endpoint");
7331 target =
7332 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7333 1, this->msgbus_endpoint(), target);
7334 }
7335
7336 if (_internal_metadata_.have_unknown_fields()) {
7337 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
7338 _internal_metadata_.unknown_fields(), target);
7339 }
7340 // @@protoc_insertion_point(serialize_to_array_end:dmi.SetMsgBusEndpointRequest)
7341 return target;
7342}
7343
7344size_t SetMsgBusEndpointRequest::ByteSizeLong() const {
7345// @@protoc_insertion_point(message_byte_size_start:dmi.SetMsgBusEndpointRequest)
7346 size_t total_size = 0;
7347
7348 if (_internal_metadata_.have_unknown_fields()) {
7349 total_size +=
7350 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7351 _internal_metadata_.unknown_fields());
7352 }
7353 ::google::protobuf::uint32 cached_has_bits = 0;
7354 // Prevent compiler warnings about cached_has_bits being unused
7355 (void) cached_has_bits;
7356
7357 // string msgbus_endpoint = 1;
7358 if (this->msgbus_endpoint().size() > 0) {
7359 total_size += 1 +
7360 ::google::protobuf::internal::WireFormatLite::StringSize(
7361 this->msgbus_endpoint());
7362 }
7363
7364 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
7365 SetCachedSize(cached_size);
7366 return total_size;
7367}
7368
7369void SetMsgBusEndpointRequest::MergeFrom(const ::google::protobuf::Message& from) {
7370// @@protoc_insertion_point(generalized_merge_from_start:dmi.SetMsgBusEndpointRequest)
7371 GOOGLE_DCHECK_NE(&from, this);
7372 const SetMsgBusEndpointRequest* source =
7373 ::google::protobuf::DynamicCastToGenerated<SetMsgBusEndpointRequest>(
7374 &from);
7375 if (source == nullptr) {
7376 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.SetMsgBusEndpointRequest)
7377 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7378 } else {
7379 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.SetMsgBusEndpointRequest)
7380 MergeFrom(*source);
7381 }
7382}
7383
7384void SetMsgBusEndpointRequest::MergeFrom(const SetMsgBusEndpointRequest& from) {
7385// @@protoc_insertion_point(class_specific_merge_from_start:dmi.SetMsgBusEndpointRequest)
7386 GOOGLE_DCHECK_NE(&from, this);
7387 _internal_metadata_.MergeFrom(from._internal_metadata_);
7388 ::google::protobuf::uint32 cached_has_bits = 0;
7389 (void) cached_has_bits;
7390
7391 if (from.msgbus_endpoint().size() > 0) {
7392
7393 msgbus_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.msgbus_endpoint_);
7394 }
7395}
7396
7397void SetMsgBusEndpointRequest::CopyFrom(const ::google::protobuf::Message& from) {
7398// @@protoc_insertion_point(generalized_copy_from_start:dmi.SetMsgBusEndpointRequest)
7399 if (&from == this) return;
7400 Clear();
7401 MergeFrom(from);
7402}
7403
7404void SetMsgBusEndpointRequest::CopyFrom(const SetMsgBusEndpointRequest& from) {
7405// @@protoc_insertion_point(class_specific_copy_from_start:dmi.SetMsgBusEndpointRequest)
7406 if (&from == this) return;
7407 Clear();
7408 MergeFrom(from);
7409}
7410
7411bool SetMsgBusEndpointRequest::IsInitialized() const {
7412 return true;
7413}
7414
7415void SetMsgBusEndpointRequest::Swap(SetMsgBusEndpointRequest* other) {
7416 if (other == this) return;
7417 InternalSwap(other);
7418}
7419void SetMsgBusEndpointRequest::InternalSwap(SetMsgBusEndpointRequest* other) {
7420 using std::swap;
7421 _internal_metadata_.Swap(&other->_internal_metadata_);
7422 msgbus_endpoint_.Swap(&other->msgbus_endpoint_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
7423 GetArenaNoVirtual());
7424}
7425
7426::google::protobuf::Metadata SetMsgBusEndpointRequest::GetMetadata() const {
7427 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
7428 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
7429}
7430
7431
7432// ===================================================================
7433
7434void GetMsgBusEndpointResponse::InitAsDefaultInstance() {
7435}
7436class GetMsgBusEndpointResponse::HasBitSetters {
7437 public:
7438};
7439
7440#if !defined(_MSC_VER) || _MSC_VER >= 1900
7441const int GetMsgBusEndpointResponse::kStatusFieldNumber;
7442const int GetMsgBusEndpointResponse::kReasonFieldNumber;
7443const int GetMsgBusEndpointResponse::kMsgbusEndpointFieldNumber;
7444const int GetMsgBusEndpointResponse::kReasonDetailFieldNumber;
7445#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
7446
7447GetMsgBusEndpointResponse::GetMsgBusEndpointResponse()
7448 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
7449 SharedCtor();
7450 // @@protoc_insertion_point(constructor:dmi.GetMsgBusEndpointResponse)
7451}
7452GetMsgBusEndpointResponse::GetMsgBusEndpointResponse(const GetMsgBusEndpointResponse& from)
7453 : ::google::protobuf::Message(),
7454 _internal_metadata_(nullptr) {
7455 _internal_metadata_.MergeFrom(from._internal_metadata_);
7456 msgbus_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7457 if (from.msgbus_endpoint().size() > 0) {
7458 msgbus_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.msgbus_endpoint_);
7459 }
7460 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7461 if (from.reason_detail().size() > 0) {
7462 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
7463 }
7464 ::memcpy(&status_, &from.status_,
7465 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
7466 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
7467 // @@protoc_insertion_point(copy_constructor:dmi.GetMsgBusEndpointResponse)
7468}
7469
7470void GetMsgBusEndpointResponse::SharedCtor() {
7471 ::google::protobuf::internal::InitSCC(
7472 &scc_info_GetMsgBusEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
7473 msgbus_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7474 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7475 ::memset(&status_, 0, static_cast<size_t>(
7476 reinterpret_cast<char*>(&reason_) -
7477 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
7478}
7479
7480GetMsgBusEndpointResponse::~GetMsgBusEndpointResponse() {
7481 // @@protoc_insertion_point(destructor:dmi.GetMsgBusEndpointResponse)
7482 SharedDtor();
7483}
7484
7485void GetMsgBusEndpointResponse::SharedDtor() {
7486 msgbus_endpoint_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7487 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7488}
7489
7490void GetMsgBusEndpointResponse::SetCachedSize(int size) const {
7491 _cached_size_.Set(size);
7492}
7493const GetMsgBusEndpointResponse& GetMsgBusEndpointResponse::default_instance() {
7494 ::google::protobuf::internal::InitSCC(&::scc_info_GetMsgBusEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
7495 return *internal_default_instance();
7496}
7497
7498
7499void GetMsgBusEndpointResponse::Clear() {
7500// @@protoc_insertion_point(message_clear_start:dmi.GetMsgBusEndpointResponse)
7501 ::google::protobuf::uint32 cached_has_bits = 0;
7502 // Prevent compiler warnings about cached_has_bits being unused
7503 (void) cached_has_bits;
7504
7505 msgbus_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7506 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7507 ::memset(&status_, 0, static_cast<size_t>(
7508 reinterpret_cast<char*>(&reason_) -
7509 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
7510 _internal_metadata_.Clear();
7511}
7512
7513#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7514const char* GetMsgBusEndpointResponse::_InternalParse(const char* begin, const char* end, void* object,
7515 ::google::protobuf::internal::ParseContext* ctx) {
7516 auto msg = static_cast<GetMsgBusEndpointResponse*>(object);
7517 ::google::protobuf::int32 size; (void)size;
7518 int depth; (void)depth;
7519 ::google::protobuf::uint32 tag;
7520 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
7521 auto ptr = begin;
7522 while (ptr < end) {
7523 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
7524 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7525 switch (tag >> 3) {
7526 // .dmi.Status status = 1;
7527 case 1: {
7528 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
7529 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
7530 msg->set_status(static_cast<::dmi::Status>(val));
7531 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7532 break;
7533 }
7534 // .dmi.GetMsgBusEndpointResponse.Reason reason = 2;
7535 case 2: {
7536 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
7537 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
7538 msg->set_reason(static_cast<::dmi::GetMsgBusEndpointResponse_Reason>(val));
7539 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7540 break;
7541 }
7542 // string msgbus_endpoint = 3;
7543 case 3: {
7544 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
7545 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
7546 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7547 ctx->extra_parse_data().SetFieldName("dmi.GetMsgBusEndpointResponse.msgbus_endpoint");
7548 object = msg->mutable_msgbus_endpoint();
7549 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
7550 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
7551 goto string_till_end;
7552 }
7553 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
7554 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
7555 ptr += size;
7556 break;
7557 }
7558 // string reason_detail = 4;
7559 case 4: {
7560 if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual;
7561 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
7562 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7563 ctx->extra_parse_data().SetFieldName("dmi.GetMsgBusEndpointResponse.reason_detail");
7564 object = msg->mutable_reason_detail();
7565 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
7566 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
7567 goto string_till_end;
7568 }
7569 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
7570 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
7571 ptr += size;
7572 break;
7573 }
7574 default: {
7575 handle_unusual:
7576 if ((tag & 7) == 4 || tag == 0) {
7577 ctx->EndGroup(tag);
7578 return ptr;
7579 }
7580 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
7581 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
7582 ptr = res.first;
7583 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
7584 if (res.second) return ptr;
7585 }
7586 } // switch
7587 } // while
7588 return ptr;
7589string_till_end:
7590 static_cast<::std::string*>(object)->clear();
7591 static_cast<::std::string*>(object)->reserve(size);
7592 goto len_delim_till_end;
7593len_delim_till_end:
7594 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
7595 {parser_till_end, object}, size);
7596}
7597#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7598bool GetMsgBusEndpointResponse::MergePartialFromCodedStream(
7599 ::google::protobuf::io::CodedInputStream* input) {
7600#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
7601 ::google::protobuf::uint32 tag;
7602 // @@protoc_insertion_point(parse_start:dmi.GetMsgBusEndpointResponse)
7603 for (;;) {
7604 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
7605 tag = p.first;
7606 if (!p.second) goto handle_unusual;
7607 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7608 // .dmi.Status status = 1;
7609 case 1: {
7610 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
7611 int value = 0;
7612 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7613 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
7614 input, &value)));
7615 set_status(static_cast< ::dmi::Status >(value));
7616 } else {
7617 goto handle_unusual;
7618 }
7619 break;
7620 }
7621
7622 // .dmi.GetMsgBusEndpointResponse.Reason reason = 2;
7623 case 2: {
7624 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
7625 int value = 0;
7626 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7627 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
7628 input, &value)));
7629 set_reason(static_cast< ::dmi::GetMsgBusEndpointResponse_Reason >(value));
7630 } else {
7631 goto handle_unusual;
7632 }
7633 break;
7634 }
7635
7636 // string msgbus_endpoint = 3;
7637 case 3: {
7638 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
7639 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7640 input, this->mutable_msgbus_endpoint()));
7641 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7642 this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()),
7643 ::google::protobuf::internal::WireFormatLite::PARSE,
7644 "dmi.GetMsgBusEndpointResponse.msgbus_endpoint"));
7645 } else {
7646 goto handle_unusual;
7647 }
7648 break;
7649 }
7650
7651 // string reason_detail = 4;
7652 case 4: {
7653 if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
7654 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7655 input, this->mutable_reason_detail()));
7656 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7657 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
7658 ::google::protobuf::internal::WireFormatLite::PARSE,
7659 "dmi.GetMsgBusEndpointResponse.reason_detail"));
7660 } else {
7661 goto handle_unusual;
7662 }
7663 break;
7664 }
7665
7666 default: {
7667 handle_unusual:
7668 if (tag == 0) {
7669 goto success;
7670 }
7671 DO_(::google::protobuf::internal::WireFormat::SkipField(
7672 input, tag, _internal_metadata_.mutable_unknown_fields()));
7673 break;
7674 }
7675 }
7676 }
7677success:
7678 // @@protoc_insertion_point(parse_success:dmi.GetMsgBusEndpointResponse)
7679 return true;
7680failure:
7681 // @@protoc_insertion_point(parse_failure:dmi.GetMsgBusEndpointResponse)
7682 return false;
7683#undef DO_
7684}
7685#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7686
7687void GetMsgBusEndpointResponse::SerializeWithCachedSizes(
7688 ::google::protobuf::io::CodedOutputStream* output) const {
7689 // @@protoc_insertion_point(serialize_start:dmi.GetMsgBusEndpointResponse)
7690 ::google::protobuf::uint32 cached_has_bits = 0;
7691 (void) cached_has_bits;
7692
7693 // .dmi.Status status = 1;
7694 if (this->status() != 0) {
7695 ::google::protobuf::internal::WireFormatLite::WriteEnum(
7696 1, this->status(), output);
7697 }
7698
7699 // .dmi.GetMsgBusEndpointResponse.Reason reason = 2;
7700 if (this->reason() != 0) {
7701 ::google::protobuf::internal::WireFormatLite::WriteEnum(
7702 2, this->reason(), output);
7703 }
7704
7705 // string msgbus_endpoint = 3;
7706 if (this->msgbus_endpoint().size() > 0) {
7707 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7708 this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()),
7709 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7710 "dmi.GetMsgBusEndpointResponse.msgbus_endpoint");
7711 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7712 3, this->msgbus_endpoint(), output);
7713 }
7714
7715 // string reason_detail = 4;
7716 if (this->reason_detail().size() > 0) {
7717 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7718 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
7719 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7720 "dmi.GetMsgBusEndpointResponse.reason_detail");
7721 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7722 4, this->reason_detail(), output);
7723 }
7724
7725 if (_internal_metadata_.have_unknown_fields()) {
7726 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
7727 _internal_metadata_.unknown_fields(), output);
7728 }
7729 // @@protoc_insertion_point(serialize_end:dmi.GetMsgBusEndpointResponse)
7730}
7731
7732::google::protobuf::uint8* GetMsgBusEndpointResponse::InternalSerializeWithCachedSizesToArray(
7733 ::google::protobuf::uint8* target) const {
7734 // @@protoc_insertion_point(serialize_to_array_start:dmi.GetMsgBusEndpointResponse)
7735 ::google::protobuf::uint32 cached_has_bits = 0;
7736 (void) cached_has_bits;
7737
7738 // .dmi.Status status = 1;
7739 if (this->status() != 0) {
7740 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
7741 1, this->status(), target);
7742 }
7743
7744 // .dmi.GetMsgBusEndpointResponse.Reason reason = 2;
7745 if (this->reason() != 0) {
7746 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
7747 2, this->reason(), target);
7748 }
7749
7750 // string msgbus_endpoint = 3;
7751 if (this->msgbus_endpoint().size() > 0) {
7752 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7753 this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()),
7754 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7755 "dmi.GetMsgBusEndpointResponse.msgbus_endpoint");
7756 target =
7757 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7758 3, this->msgbus_endpoint(), target);
7759 }
7760
7761 // string reason_detail = 4;
7762 if (this->reason_detail().size() > 0) {
7763 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7764 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
7765 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7766 "dmi.GetMsgBusEndpointResponse.reason_detail");
7767 target =
7768 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7769 4, this->reason_detail(), target);
7770 }
7771
7772 if (_internal_metadata_.have_unknown_fields()) {
7773 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
7774 _internal_metadata_.unknown_fields(), target);
7775 }
7776 // @@protoc_insertion_point(serialize_to_array_end:dmi.GetMsgBusEndpointResponse)
7777 return target;
7778}
7779
7780size_t GetMsgBusEndpointResponse::ByteSizeLong() const {
7781// @@protoc_insertion_point(message_byte_size_start:dmi.GetMsgBusEndpointResponse)
7782 size_t total_size = 0;
7783
7784 if (_internal_metadata_.have_unknown_fields()) {
7785 total_size +=
7786 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7787 _internal_metadata_.unknown_fields());
7788 }
7789 ::google::protobuf::uint32 cached_has_bits = 0;
7790 // Prevent compiler warnings about cached_has_bits being unused
7791 (void) cached_has_bits;
7792
7793 // string msgbus_endpoint = 3;
7794 if (this->msgbus_endpoint().size() > 0) {
7795 total_size += 1 +
7796 ::google::protobuf::internal::WireFormatLite::StringSize(
7797 this->msgbus_endpoint());
7798 }
7799
7800 // string reason_detail = 4;
7801 if (this->reason_detail().size() > 0) {
7802 total_size += 1 +
7803 ::google::protobuf::internal::WireFormatLite::StringSize(
7804 this->reason_detail());
7805 }
7806
7807 // .dmi.Status status = 1;
7808 if (this->status() != 0) {
7809 total_size += 1 +
7810 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
7811 }
7812
7813 // .dmi.GetMsgBusEndpointResponse.Reason reason = 2;
7814 if (this->reason() != 0) {
7815 total_size += 1 +
7816 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
7817 }
7818
7819 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
7820 SetCachedSize(cached_size);
7821 return total_size;
7822}
7823
7824void GetMsgBusEndpointResponse::MergeFrom(const ::google::protobuf::Message& from) {
7825// @@protoc_insertion_point(generalized_merge_from_start:dmi.GetMsgBusEndpointResponse)
7826 GOOGLE_DCHECK_NE(&from, this);
7827 const GetMsgBusEndpointResponse* source =
7828 ::google::protobuf::DynamicCastToGenerated<GetMsgBusEndpointResponse>(
7829 &from);
7830 if (source == nullptr) {
7831 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.GetMsgBusEndpointResponse)
7832 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7833 } else {
7834 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.GetMsgBusEndpointResponse)
7835 MergeFrom(*source);
7836 }
7837}
7838
7839void GetMsgBusEndpointResponse::MergeFrom(const GetMsgBusEndpointResponse& from) {
7840// @@protoc_insertion_point(class_specific_merge_from_start:dmi.GetMsgBusEndpointResponse)
7841 GOOGLE_DCHECK_NE(&from, this);
7842 _internal_metadata_.MergeFrom(from._internal_metadata_);
7843 ::google::protobuf::uint32 cached_has_bits = 0;
7844 (void) cached_has_bits;
7845
7846 if (from.msgbus_endpoint().size() > 0) {
7847
7848 msgbus_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.msgbus_endpoint_);
7849 }
7850 if (from.reason_detail().size() > 0) {
7851
7852 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
7853 }
7854 if (from.status() != 0) {
7855 set_status(from.status());
7856 }
7857 if (from.reason() != 0) {
7858 set_reason(from.reason());
7859 }
7860}
7861
7862void GetMsgBusEndpointResponse::CopyFrom(const ::google::protobuf::Message& from) {
7863// @@protoc_insertion_point(generalized_copy_from_start:dmi.GetMsgBusEndpointResponse)
7864 if (&from == this) return;
7865 Clear();
7866 MergeFrom(from);
7867}
7868
7869void GetMsgBusEndpointResponse::CopyFrom(const GetMsgBusEndpointResponse& from) {
7870// @@protoc_insertion_point(class_specific_copy_from_start:dmi.GetMsgBusEndpointResponse)
7871 if (&from == this) return;
7872 Clear();
7873 MergeFrom(from);
7874}
7875
7876bool GetMsgBusEndpointResponse::IsInitialized() const {
7877 return true;
7878}
7879
7880void GetMsgBusEndpointResponse::Swap(GetMsgBusEndpointResponse* other) {
7881 if (other == this) return;
7882 InternalSwap(other);
7883}
7884void GetMsgBusEndpointResponse::InternalSwap(GetMsgBusEndpointResponse* other) {
7885 using std::swap;
7886 _internal_metadata_.Swap(&other->_internal_metadata_);
7887 msgbus_endpoint_.Swap(&other->msgbus_endpoint_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
7888 GetArenaNoVirtual());
7889 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
7890 GetArenaNoVirtual());
7891 swap(status_, other->status_);
7892 swap(reason_, other->reason_);
7893}
7894
7895::google::protobuf::Metadata GetMsgBusEndpointResponse::GetMetadata() const {
7896 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
7897 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
7898}
7899
7900
7901// ===================================================================
7902
7903void EntitiesLogLevel::InitAsDefaultInstance() {
7904}
7905class EntitiesLogLevel::HasBitSetters {
7906 public:
7907};
7908
7909#if !defined(_MSC_VER) || _MSC_VER >= 1900
7910const int EntitiesLogLevel::kLogLevelFieldNumber;
7911const int EntitiesLogLevel::kEntitiesFieldNumber;
7912#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
7913
7914EntitiesLogLevel::EntitiesLogLevel()
7915 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
7916 SharedCtor();
7917 // @@protoc_insertion_point(constructor:dmi.EntitiesLogLevel)
7918}
7919EntitiesLogLevel::EntitiesLogLevel(const EntitiesLogLevel& from)
7920 : ::google::protobuf::Message(),
7921 _internal_metadata_(nullptr),
7922 entities_(from.entities_) {
7923 _internal_metadata_.MergeFrom(from._internal_metadata_);
7924 loglevel_ = from.loglevel_;
7925 // @@protoc_insertion_point(copy_constructor:dmi.EntitiesLogLevel)
7926}
7927
7928void EntitiesLogLevel::SharedCtor() {
7929 ::google::protobuf::internal::InitSCC(
7930 &scc_info_EntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
7931 loglevel_ = 0;
7932}
7933
7934EntitiesLogLevel::~EntitiesLogLevel() {
7935 // @@protoc_insertion_point(destructor:dmi.EntitiesLogLevel)
7936 SharedDtor();
7937}
7938
7939void EntitiesLogLevel::SharedDtor() {
7940}
7941
7942void EntitiesLogLevel::SetCachedSize(int size) const {
7943 _cached_size_.Set(size);
7944}
7945const EntitiesLogLevel& EntitiesLogLevel::default_instance() {
7946 ::google::protobuf::internal::InitSCC(&::scc_info_EntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
7947 return *internal_default_instance();
7948}
7949
7950
7951void EntitiesLogLevel::Clear() {
7952// @@protoc_insertion_point(message_clear_start:dmi.EntitiesLogLevel)
7953 ::google::protobuf::uint32 cached_has_bits = 0;
7954 // Prevent compiler warnings about cached_has_bits being unused
7955 (void) cached_has_bits;
7956
7957 entities_.Clear();
7958 loglevel_ = 0;
7959 _internal_metadata_.Clear();
7960}
7961
7962#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7963const char* EntitiesLogLevel::_InternalParse(const char* begin, const char* end, void* object,
7964 ::google::protobuf::internal::ParseContext* ctx) {
7965 auto msg = static_cast<EntitiesLogLevel*>(object);
7966 ::google::protobuf::int32 size; (void)size;
7967 int depth; (void)depth;
7968 ::google::protobuf::uint32 tag;
7969 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
7970 auto ptr = begin;
7971 while (ptr < end) {
7972 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
7973 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7974 switch (tag >> 3) {
7975 // .dmi.LogLevel logLevel = 1;
7976 case 1: {
7977 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
7978 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
7979 msg->set_loglevel(static_cast<::dmi::LogLevel>(val));
7980 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7981 break;
7982 }
7983 // repeated string entities = 2;
7984 case 2: {
7985 if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
7986 do {
7987 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
7988 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7989 ctx->extra_parse_data().SetFieldName("dmi.EntitiesLogLevel.entities");
7990 object = msg->add_entities();
7991 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
7992 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
7993 goto string_till_end;
7994 }
7995 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
7996 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
7997 ptr += size;
7998 if (ptr >= end) break;
7999 } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1));
8000 break;
8001 }
8002 default: {
8003 handle_unusual:
8004 if ((tag & 7) == 4 || tag == 0) {
8005 ctx->EndGroup(tag);
8006 return ptr;
8007 }
8008 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
8009 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
8010 ptr = res.first;
8011 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
8012 if (res.second) return ptr;
8013 }
8014 } // switch
8015 } // while
8016 return ptr;
8017string_till_end:
8018 static_cast<::std::string*>(object)->clear();
8019 static_cast<::std::string*>(object)->reserve(size);
8020 goto len_delim_till_end;
8021len_delim_till_end:
8022 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
8023 {parser_till_end, object}, size);
8024}
8025#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8026bool EntitiesLogLevel::MergePartialFromCodedStream(
8027 ::google::protobuf::io::CodedInputStream* input) {
8028#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
8029 ::google::protobuf::uint32 tag;
8030 // @@protoc_insertion_point(parse_start:dmi.EntitiesLogLevel)
8031 for (;;) {
8032 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
8033 tag = p.first;
8034 if (!p.second) goto handle_unusual;
8035 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
8036 // .dmi.LogLevel logLevel = 1;
8037 case 1: {
8038 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
8039 int value = 0;
8040 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8041 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
8042 input, &value)));
8043 set_loglevel(static_cast< ::dmi::LogLevel >(value));
8044 } else {
8045 goto handle_unusual;
8046 }
8047 break;
8048 }
8049
8050 // repeated string entities = 2;
8051 case 2: {
8052 if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
8053 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8054 input, this->add_entities()));
8055 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
8056 this->entities(this->entities_size() - 1).data(),
8057 static_cast<int>(this->entities(this->entities_size() - 1).length()),
8058 ::google::protobuf::internal::WireFormatLite::PARSE,
8059 "dmi.EntitiesLogLevel.entities"));
8060 } else {
8061 goto handle_unusual;
8062 }
8063 break;
8064 }
8065
8066 default: {
8067 handle_unusual:
8068 if (tag == 0) {
8069 goto success;
8070 }
8071 DO_(::google::protobuf::internal::WireFormat::SkipField(
8072 input, tag, _internal_metadata_.mutable_unknown_fields()));
8073 break;
8074 }
8075 }
8076 }
8077success:
8078 // @@protoc_insertion_point(parse_success:dmi.EntitiesLogLevel)
8079 return true;
8080failure:
8081 // @@protoc_insertion_point(parse_failure:dmi.EntitiesLogLevel)
8082 return false;
8083#undef DO_
8084}
8085#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8086
8087void EntitiesLogLevel::SerializeWithCachedSizes(
8088 ::google::protobuf::io::CodedOutputStream* output) const {
8089 // @@protoc_insertion_point(serialize_start:dmi.EntitiesLogLevel)
8090 ::google::protobuf::uint32 cached_has_bits = 0;
8091 (void) cached_has_bits;
8092
8093 // .dmi.LogLevel logLevel = 1;
8094 if (this->loglevel() != 0) {
8095 ::google::protobuf::internal::WireFormatLite::WriteEnum(
8096 1, this->loglevel(), output);
8097 }
8098
8099 // repeated string entities = 2;
8100 for (int i = 0, n = this->entities_size(); i < n; i++) {
8101 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
8102 this->entities(i).data(), static_cast<int>(this->entities(i).length()),
8103 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
8104 "dmi.EntitiesLogLevel.entities");
8105 ::google::protobuf::internal::WireFormatLite::WriteString(
8106 2, this->entities(i), output);
8107 }
8108
8109 if (_internal_metadata_.have_unknown_fields()) {
8110 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
8111 _internal_metadata_.unknown_fields(), output);
8112 }
8113 // @@protoc_insertion_point(serialize_end:dmi.EntitiesLogLevel)
8114}
8115
8116::google::protobuf::uint8* EntitiesLogLevel::InternalSerializeWithCachedSizesToArray(
8117 ::google::protobuf::uint8* target) const {
8118 // @@protoc_insertion_point(serialize_to_array_start:dmi.EntitiesLogLevel)
8119 ::google::protobuf::uint32 cached_has_bits = 0;
8120 (void) cached_has_bits;
8121
8122 // .dmi.LogLevel logLevel = 1;
8123 if (this->loglevel() != 0) {
8124 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
8125 1, this->loglevel(), target);
8126 }
8127
8128 // repeated string entities = 2;
8129 for (int i = 0, n = this->entities_size(); i < n; i++) {
8130 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
8131 this->entities(i).data(), static_cast<int>(this->entities(i).length()),
8132 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
8133 "dmi.EntitiesLogLevel.entities");
8134 target = ::google::protobuf::internal::WireFormatLite::
8135 WriteStringToArray(2, this->entities(i), target);
8136 }
8137
8138 if (_internal_metadata_.have_unknown_fields()) {
8139 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
8140 _internal_metadata_.unknown_fields(), target);
8141 }
8142 // @@protoc_insertion_point(serialize_to_array_end:dmi.EntitiesLogLevel)
8143 return target;
8144}
8145
8146size_t EntitiesLogLevel::ByteSizeLong() const {
8147// @@protoc_insertion_point(message_byte_size_start:dmi.EntitiesLogLevel)
8148 size_t total_size = 0;
8149
8150 if (_internal_metadata_.have_unknown_fields()) {
8151 total_size +=
8152 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
8153 _internal_metadata_.unknown_fields());
8154 }
8155 ::google::protobuf::uint32 cached_has_bits = 0;
8156 // Prevent compiler warnings about cached_has_bits being unused
8157 (void) cached_has_bits;
8158
8159 // repeated string entities = 2;
8160 total_size += 1 *
8161 ::google::protobuf::internal::FromIntSize(this->entities_size());
8162 for (int i = 0, n = this->entities_size(); i < n; i++) {
8163 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
8164 this->entities(i));
8165 }
8166
8167 // .dmi.LogLevel logLevel = 1;
8168 if (this->loglevel() != 0) {
8169 total_size += 1 +
8170 ::google::protobuf::internal::WireFormatLite::EnumSize(this->loglevel());
8171 }
8172
8173 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
8174 SetCachedSize(cached_size);
8175 return total_size;
8176}
8177
8178void EntitiesLogLevel::MergeFrom(const ::google::protobuf::Message& from) {
8179// @@protoc_insertion_point(generalized_merge_from_start:dmi.EntitiesLogLevel)
8180 GOOGLE_DCHECK_NE(&from, this);
8181 const EntitiesLogLevel* source =
8182 ::google::protobuf::DynamicCastToGenerated<EntitiesLogLevel>(
8183 &from);
8184 if (source == nullptr) {
8185 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.EntitiesLogLevel)
8186 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
8187 } else {
8188 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.EntitiesLogLevel)
8189 MergeFrom(*source);
8190 }
8191}
8192
8193void EntitiesLogLevel::MergeFrom(const EntitiesLogLevel& from) {
8194// @@protoc_insertion_point(class_specific_merge_from_start:dmi.EntitiesLogLevel)
8195 GOOGLE_DCHECK_NE(&from, this);
8196 _internal_metadata_.MergeFrom(from._internal_metadata_);
8197 ::google::protobuf::uint32 cached_has_bits = 0;
8198 (void) cached_has_bits;
8199
8200 entities_.MergeFrom(from.entities_);
8201 if (from.loglevel() != 0) {
8202 set_loglevel(from.loglevel());
8203 }
8204}
8205
8206void EntitiesLogLevel::CopyFrom(const ::google::protobuf::Message& from) {
8207// @@protoc_insertion_point(generalized_copy_from_start:dmi.EntitiesLogLevel)
8208 if (&from == this) return;
8209 Clear();
8210 MergeFrom(from);
8211}
8212
8213void EntitiesLogLevel::CopyFrom(const EntitiesLogLevel& from) {
8214// @@protoc_insertion_point(class_specific_copy_from_start:dmi.EntitiesLogLevel)
8215 if (&from == this) return;
8216 Clear();
8217 MergeFrom(from);
8218}
8219
8220bool EntitiesLogLevel::IsInitialized() const {
8221 return true;
8222}
8223
8224void EntitiesLogLevel::Swap(EntitiesLogLevel* other) {
8225 if (other == this) return;
8226 InternalSwap(other);
8227}
8228void EntitiesLogLevel::InternalSwap(EntitiesLogLevel* other) {
8229 using std::swap;
8230 _internal_metadata_.Swap(&other->_internal_metadata_);
8231 entities_.InternalSwap(CastToBase(&other->entities_));
8232 swap(loglevel_, other->loglevel_);
8233}
8234
8235::google::protobuf::Metadata EntitiesLogLevel::GetMetadata() const {
8236 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
8237 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
8238}
8239
8240
8241// ===================================================================
8242
8243void SetLogLevelRequest::InitAsDefaultInstance() {
8244 ::dmi::_SetLogLevelRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
8245 ::dmi::Uuid::internal_default_instance());
8246}
8247class SetLogLevelRequest::HasBitSetters {
8248 public:
8249 static const ::dmi::Uuid& device_uuid(const SetLogLevelRequest* msg);
8250};
8251
8252const ::dmi::Uuid&
8253SetLogLevelRequest::HasBitSetters::device_uuid(const SetLogLevelRequest* msg) {
8254 return *msg->device_uuid_;
8255}
8256void SetLogLevelRequest::clear_device_uuid() {
8257 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
8258 delete device_uuid_;
8259 }
8260 device_uuid_ = nullptr;
8261}
8262#if !defined(_MSC_VER) || _MSC_VER >= 1900
8263const int SetLogLevelRequest::kDeviceUuidFieldNumber;
8264const int SetLogLevelRequest::kLoglevelsFieldNumber;
8265#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
8266
8267SetLogLevelRequest::SetLogLevelRequest()
8268 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
8269 SharedCtor();
8270 // @@protoc_insertion_point(constructor:dmi.SetLogLevelRequest)
8271}
8272SetLogLevelRequest::SetLogLevelRequest(const SetLogLevelRequest& from)
8273 : ::google::protobuf::Message(),
8274 _internal_metadata_(nullptr),
8275 loglevels_(from.loglevels_) {
8276 _internal_metadata_.MergeFrom(from._internal_metadata_);
8277 if (from.has_device_uuid()) {
8278 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
8279 } else {
8280 device_uuid_ = nullptr;
8281 }
8282 // @@protoc_insertion_point(copy_constructor:dmi.SetLogLevelRequest)
8283}
8284
8285void SetLogLevelRequest::SharedCtor() {
8286 ::google::protobuf::internal::InitSCC(
8287 &scc_info_SetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
8288 device_uuid_ = nullptr;
8289}
8290
8291SetLogLevelRequest::~SetLogLevelRequest() {
8292 // @@protoc_insertion_point(destructor:dmi.SetLogLevelRequest)
8293 SharedDtor();
8294}
8295
8296void SetLogLevelRequest::SharedDtor() {
8297 if (this != internal_default_instance()) delete device_uuid_;
8298}
8299
8300void SetLogLevelRequest::SetCachedSize(int size) const {
8301 _cached_size_.Set(size);
8302}
8303const SetLogLevelRequest& SetLogLevelRequest::default_instance() {
8304 ::google::protobuf::internal::InitSCC(&::scc_info_SetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
8305 return *internal_default_instance();
8306}
8307
8308
8309void SetLogLevelRequest::Clear() {
8310// @@protoc_insertion_point(message_clear_start:dmi.SetLogLevelRequest)
8311 ::google::protobuf::uint32 cached_has_bits = 0;
8312 // Prevent compiler warnings about cached_has_bits being unused
8313 (void) cached_has_bits;
8314
8315 loglevels_.Clear();
8316 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
8317 delete device_uuid_;
8318 }
8319 device_uuid_ = nullptr;
8320 _internal_metadata_.Clear();
8321}
8322
8323#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8324const char* SetLogLevelRequest::_InternalParse(const char* begin, const char* end, void* object,
8325 ::google::protobuf::internal::ParseContext* ctx) {
8326 auto msg = static_cast<SetLogLevelRequest*>(object);
8327 ::google::protobuf::int32 size; (void)size;
8328 int depth; (void)depth;
8329 ::google::protobuf::uint32 tag;
8330 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
8331 auto ptr = begin;
8332 while (ptr < end) {
8333 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
8334 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
8335 switch (tag >> 3) {
8336 // .dmi.Uuid device_uuid = 1;
8337 case 1: {
8338 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
8339 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
8340 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
8341 parser_till_end = ::dmi::Uuid::_InternalParse;
8342 object = msg->mutable_device_uuid();
8343 if (size > end - ptr) goto len_delim_till_end;
8344 ptr += size;
8345 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
8346 {parser_till_end, object}, ptr - size, ptr));
8347 break;
8348 }
8349 // repeated .dmi.EntitiesLogLevel loglevels = 2;
8350 case 2: {
8351 if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
8352 do {
8353 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
8354 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
8355 parser_till_end = ::dmi::EntitiesLogLevel::_InternalParse;
8356 object = msg->add_loglevels();
8357 if (size > end - ptr) goto len_delim_till_end;
8358 ptr += size;
8359 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
8360 {parser_till_end, object}, ptr - size, ptr));
8361 if (ptr >= end) break;
8362 } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1));
8363 break;
8364 }
8365 default: {
8366 handle_unusual:
8367 if ((tag & 7) == 4 || tag == 0) {
8368 ctx->EndGroup(tag);
8369 return ptr;
8370 }
8371 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
8372 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
8373 ptr = res.first;
8374 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
8375 if (res.second) return ptr;
8376 }
8377 } // switch
8378 } // while
8379 return ptr;
8380len_delim_till_end:
8381 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
8382 {parser_till_end, object}, size);
8383}
8384#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8385bool SetLogLevelRequest::MergePartialFromCodedStream(
8386 ::google::protobuf::io::CodedInputStream* input) {
8387#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
8388 ::google::protobuf::uint32 tag;
8389 // @@protoc_insertion_point(parse_start:dmi.SetLogLevelRequest)
8390 for (;;) {
8391 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
8392 tag = p.first;
8393 if (!p.second) goto handle_unusual;
8394 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
8395 // .dmi.Uuid device_uuid = 1;
8396 case 1: {
8397 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
8398 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
8399 input, mutable_device_uuid()));
8400 } else {
8401 goto handle_unusual;
8402 }
8403 break;
8404 }
8405
8406 // repeated .dmi.EntitiesLogLevel loglevels = 2;
8407 case 2: {
8408 if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
8409 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
8410 input, add_loglevels()));
8411 } else {
8412 goto handle_unusual;
8413 }
8414 break;
8415 }
8416
8417 default: {
8418 handle_unusual:
8419 if (tag == 0) {
8420 goto success;
8421 }
8422 DO_(::google::protobuf::internal::WireFormat::SkipField(
8423 input, tag, _internal_metadata_.mutable_unknown_fields()));
8424 break;
8425 }
8426 }
8427 }
8428success:
8429 // @@protoc_insertion_point(parse_success:dmi.SetLogLevelRequest)
8430 return true;
8431failure:
8432 // @@protoc_insertion_point(parse_failure:dmi.SetLogLevelRequest)
8433 return false;
8434#undef DO_
8435}
8436#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8437
8438void SetLogLevelRequest::SerializeWithCachedSizes(
8439 ::google::protobuf::io::CodedOutputStream* output) const {
8440 // @@protoc_insertion_point(serialize_start:dmi.SetLogLevelRequest)
8441 ::google::protobuf::uint32 cached_has_bits = 0;
8442 (void) cached_has_bits;
8443
8444 // .dmi.Uuid device_uuid = 1;
8445 if (this->has_device_uuid()) {
8446 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
8447 1, HasBitSetters::device_uuid(this), output);
8448 }
8449
8450 // repeated .dmi.EntitiesLogLevel loglevels = 2;
8451 for (unsigned int i = 0,
8452 n = static_cast<unsigned int>(this->loglevels_size()); i < n; i++) {
8453 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
8454 2,
8455 this->loglevels(static_cast<int>(i)),
8456 output);
8457 }
8458
8459 if (_internal_metadata_.have_unknown_fields()) {
8460 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
8461 _internal_metadata_.unknown_fields(), output);
8462 }
8463 // @@protoc_insertion_point(serialize_end:dmi.SetLogLevelRequest)
8464}
8465
8466::google::protobuf::uint8* SetLogLevelRequest::InternalSerializeWithCachedSizesToArray(
8467 ::google::protobuf::uint8* target) const {
8468 // @@protoc_insertion_point(serialize_to_array_start:dmi.SetLogLevelRequest)
8469 ::google::protobuf::uint32 cached_has_bits = 0;
8470 (void) cached_has_bits;
8471
8472 // .dmi.Uuid device_uuid = 1;
8473 if (this->has_device_uuid()) {
8474 target = ::google::protobuf::internal::WireFormatLite::
8475 InternalWriteMessageToArray(
8476 1, HasBitSetters::device_uuid(this), target);
8477 }
8478
8479 // repeated .dmi.EntitiesLogLevel loglevels = 2;
8480 for (unsigned int i = 0,
8481 n = static_cast<unsigned int>(this->loglevels_size()); i < n; i++) {
8482 target = ::google::protobuf::internal::WireFormatLite::
8483 InternalWriteMessageToArray(
8484 2, this->loglevels(static_cast<int>(i)), target);
8485 }
8486
8487 if (_internal_metadata_.have_unknown_fields()) {
8488 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
8489 _internal_metadata_.unknown_fields(), target);
8490 }
8491 // @@protoc_insertion_point(serialize_to_array_end:dmi.SetLogLevelRequest)
8492 return target;
8493}
8494
8495size_t SetLogLevelRequest::ByteSizeLong() const {
8496// @@protoc_insertion_point(message_byte_size_start:dmi.SetLogLevelRequest)
8497 size_t total_size = 0;
8498
8499 if (_internal_metadata_.have_unknown_fields()) {
8500 total_size +=
8501 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
8502 _internal_metadata_.unknown_fields());
8503 }
8504 ::google::protobuf::uint32 cached_has_bits = 0;
8505 // Prevent compiler warnings about cached_has_bits being unused
8506 (void) cached_has_bits;
8507
8508 // repeated .dmi.EntitiesLogLevel loglevels = 2;
8509 {
8510 unsigned int count = static_cast<unsigned int>(this->loglevels_size());
8511 total_size += 1UL * count;
8512 for (unsigned int i = 0; i < count; i++) {
8513 total_size +=
8514 ::google::protobuf::internal::WireFormatLite::MessageSize(
8515 this->loglevels(static_cast<int>(i)));
8516 }
8517 }
8518
8519 // .dmi.Uuid device_uuid = 1;
8520 if (this->has_device_uuid()) {
8521 total_size += 1 +
8522 ::google::protobuf::internal::WireFormatLite::MessageSize(
8523 *device_uuid_);
8524 }
8525
8526 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
8527 SetCachedSize(cached_size);
8528 return total_size;
8529}
8530
8531void SetLogLevelRequest::MergeFrom(const ::google::protobuf::Message& from) {
8532// @@protoc_insertion_point(generalized_merge_from_start:dmi.SetLogLevelRequest)
8533 GOOGLE_DCHECK_NE(&from, this);
8534 const SetLogLevelRequest* source =
8535 ::google::protobuf::DynamicCastToGenerated<SetLogLevelRequest>(
8536 &from);
8537 if (source == nullptr) {
8538 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.SetLogLevelRequest)
8539 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
8540 } else {
8541 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.SetLogLevelRequest)
8542 MergeFrom(*source);
8543 }
8544}
8545
8546void SetLogLevelRequest::MergeFrom(const SetLogLevelRequest& from) {
8547// @@protoc_insertion_point(class_specific_merge_from_start:dmi.SetLogLevelRequest)
8548 GOOGLE_DCHECK_NE(&from, this);
8549 _internal_metadata_.MergeFrom(from._internal_metadata_);
8550 ::google::protobuf::uint32 cached_has_bits = 0;
8551 (void) cached_has_bits;
8552
8553 loglevels_.MergeFrom(from.loglevels_);
8554 if (from.has_device_uuid()) {
8555 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
8556 }
8557}
8558
8559void SetLogLevelRequest::CopyFrom(const ::google::protobuf::Message& from) {
8560// @@protoc_insertion_point(generalized_copy_from_start:dmi.SetLogLevelRequest)
8561 if (&from == this) return;
8562 Clear();
8563 MergeFrom(from);
8564}
8565
8566void SetLogLevelRequest::CopyFrom(const SetLogLevelRequest& from) {
8567// @@protoc_insertion_point(class_specific_copy_from_start:dmi.SetLogLevelRequest)
8568 if (&from == this) return;
8569 Clear();
8570 MergeFrom(from);
8571}
8572
8573bool SetLogLevelRequest::IsInitialized() const {
8574 return true;
8575}
8576
8577void SetLogLevelRequest::Swap(SetLogLevelRequest* other) {
8578 if (other == this) return;
8579 InternalSwap(other);
8580}
8581void SetLogLevelRequest::InternalSwap(SetLogLevelRequest* other) {
8582 using std::swap;
8583 _internal_metadata_.Swap(&other->_internal_metadata_);
8584 CastToBase(&loglevels_)->InternalSwap(CastToBase(&other->loglevels_));
8585 swap(device_uuid_, other->device_uuid_);
8586}
8587
8588::google::protobuf::Metadata SetLogLevelRequest::GetMetadata() const {
8589 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
8590 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
8591}
8592
8593
8594// ===================================================================
8595
8596void SetLogLevelResponse::InitAsDefaultInstance() {
8597 ::dmi::_SetLogLevelResponse_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
8598 ::dmi::Uuid::internal_default_instance());
8599}
8600class SetLogLevelResponse::HasBitSetters {
8601 public:
8602 static const ::dmi::Uuid& device_uuid(const SetLogLevelResponse* msg);
8603};
8604
8605const ::dmi::Uuid&
8606SetLogLevelResponse::HasBitSetters::device_uuid(const SetLogLevelResponse* msg) {
8607 return *msg->device_uuid_;
8608}
8609void SetLogLevelResponse::clear_device_uuid() {
8610 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
8611 delete device_uuid_;
8612 }
8613 device_uuid_ = nullptr;
8614}
8615#if !defined(_MSC_VER) || _MSC_VER >= 1900
8616const int SetLogLevelResponse::kDeviceUuidFieldNumber;
8617const int SetLogLevelResponse::kStatusFieldNumber;
8618const int SetLogLevelResponse::kReasonFieldNumber;
8619const int SetLogLevelResponse::kReasonDetailFieldNumber;
8620#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
8621
8622SetLogLevelResponse::SetLogLevelResponse()
8623 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
8624 SharedCtor();
8625 // @@protoc_insertion_point(constructor:dmi.SetLogLevelResponse)
8626}
8627SetLogLevelResponse::SetLogLevelResponse(const SetLogLevelResponse& from)
8628 : ::google::protobuf::Message(),
8629 _internal_metadata_(nullptr) {
8630 _internal_metadata_.MergeFrom(from._internal_metadata_);
8631 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8632 if (from.reason_detail().size() > 0) {
8633 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
8634 }
8635 if (from.has_device_uuid()) {
8636 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
8637 } else {
8638 device_uuid_ = nullptr;
8639 }
8640 ::memcpy(&status_, &from.status_,
8641 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
8642 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
8643 // @@protoc_insertion_point(copy_constructor:dmi.SetLogLevelResponse)
8644}
8645
8646void SetLogLevelResponse::SharedCtor() {
8647 ::google::protobuf::internal::InitSCC(
8648 &scc_info_SetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
8649 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8650 ::memset(&device_uuid_, 0, static_cast<size_t>(
8651 reinterpret_cast<char*>(&reason_) -
8652 reinterpret_cast<char*>(&device_uuid_)) + sizeof(reason_));
8653}
8654
8655SetLogLevelResponse::~SetLogLevelResponse() {
8656 // @@protoc_insertion_point(destructor:dmi.SetLogLevelResponse)
8657 SharedDtor();
8658}
8659
8660void SetLogLevelResponse::SharedDtor() {
8661 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8662 if (this != internal_default_instance()) delete device_uuid_;
8663}
8664
8665void SetLogLevelResponse::SetCachedSize(int size) const {
8666 _cached_size_.Set(size);
8667}
8668const SetLogLevelResponse& SetLogLevelResponse::default_instance() {
8669 ::google::protobuf::internal::InitSCC(&::scc_info_SetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
8670 return *internal_default_instance();
8671}
8672
8673
8674void SetLogLevelResponse::Clear() {
8675// @@protoc_insertion_point(message_clear_start:dmi.SetLogLevelResponse)
8676 ::google::protobuf::uint32 cached_has_bits = 0;
8677 // Prevent compiler warnings about cached_has_bits being unused
8678 (void) cached_has_bits;
8679
8680 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8681 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
8682 delete device_uuid_;
8683 }
8684 device_uuid_ = nullptr;
8685 ::memset(&status_, 0, static_cast<size_t>(
8686 reinterpret_cast<char*>(&reason_) -
8687 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
8688 _internal_metadata_.Clear();
8689}
8690
8691#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8692const char* SetLogLevelResponse::_InternalParse(const char* begin, const char* end, void* object,
8693 ::google::protobuf::internal::ParseContext* ctx) {
8694 auto msg = static_cast<SetLogLevelResponse*>(object);
8695 ::google::protobuf::int32 size; (void)size;
8696 int depth; (void)depth;
8697 ::google::protobuf::uint32 tag;
8698 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
8699 auto ptr = begin;
8700 while (ptr < end) {
8701 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
8702 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
8703 switch (tag >> 3) {
8704 // .dmi.Uuid device_uuid = 1;
8705 case 1: {
8706 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
8707 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
8708 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
8709 parser_till_end = ::dmi::Uuid::_InternalParse;
8710 object = msg->mutable_device_uuid();
8711 if (size > end - ptr) goto len_delim_till_end;
8712 ptr += size;
8713 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
8714 {parser_till_end, object}, ptr - size, ptr));
8715 break;
8716 }
8717 // .dmi.Status status = 2;
8718 case 2: {
8719 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
8720 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
8721 msg->set_status(static_cast<::dmi::Status>(val));
8722 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
8723 break;
8724 }
8725 // .dmi.SetLogLevelResponse.Reason reason = 3;
8726 case 3: {
8727 if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual;
8728 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
8729 msg->set_reason(static_cast<::dmi::SetLogLevelResponse_Reason>(val));
8730 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
8731 break;
8732 }
8733 // string reason_detail = 4;
8734 case 4: {
8735 if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual;
8736 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
8737 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
8738 ctx->extra_parse_data().SetFieldName("dmi.SetLogLevelResponse.reason_detail");
8739 object = msg->mutable_reason_detail();
8740 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
8741 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
8742 goto string_till_end;
8743 }
8744 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
8745 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
8746 ptr += size;
8747 break;
8748 }
8749 default: {
8750 handle_unusual:
8751 if ((tag & 7) == 4 || tag == 0) {
8752 ctx->EndGroup(tag);
8753 return ptr;
8754 }
8755 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
8756 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
8757 ptr = res.first;
8758 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
8759 if (res.second) return ptr;
8760 }
8761 } // switch
8762 } // while
8763 return ptr;
8764string_till_end:
8765 static_cast<::std::string*>(object)->clear();
8766 static_cast<::std::string*>(object)->reserve(size);
8767 goto len_delim_till_end;
8768len_delim_till_end:
8769 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
8770 {parser_till_end, object}, size);
8771}
8772#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8773bool SetLogLevelResponse::MergePartialFromCodedStream(
8774 ::google::protobuf::io::CodedInputStream* input) {
8775#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
8776 ::google::protobuf::uint32 tag;
8777 // @@protoc_insertion_point(parse_start:dmi.SetLogLevelResponse)
8778 for (;;) {
8779 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
8780 tag = p.first;
8781 if (!p.second) goto handle_unusual;
8782 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
8783 // .dmi.Uuid device_uuid = 1;
8784 case 1: {
8785 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
8786 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
8787 input, mutable_device_uuid()));
8788 } else {
8789 goto handle_unusual;
8790 }
8791 break;
8792 }
8793
8794 // .dmi.Status status = 2;
8795 case 2: {
8796 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
8797 int value = 0;
8798 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8799 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
8800 input, &value)));
8801 set_status(static_cast< ::dmi::Status >(value));
8802 } else {
8803 goto handle_unusual;
8804 }
8805 break;
8806 }
8807
8808 // .dmi.SetLogLevelResponse.Reason reason = 3;
8809 case 3: {
8810 if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) {
8811 int value = 0;
8812 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8813 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
8814 input, &value)));
8815 set_reason(static_cast< ::dmi::SetLogLevelResponse_Reason >(value));
8816 } else {
8817 goto handle_unusual;
8818 }
8819 break;
8820 }
8821
8822 // string reason_detail = 4;
8823 case 4: {
8824 if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
8825 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8826 input, this->mutable_reason_detail()));
8827 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
8828 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
8829 ::google::protobuf::internal::WireFormatLite::PARSE,
8830 "dmi.SetLogLevelResponse.reason_detail"));
8831 } else {
8832 goto handle_unusual;
8833 }
8834 break;
8835 }
8836
8837 default: {
8838 handle_unusual:
8839 if (tag == 0) {
8840 goto success;
8841 }
8842 DO_(::google::protobuf::internal::WireFormat::SkipField(
8843 input, tag, _internal_metadata_.mutable_unknown_fields()));
8844 break;
8845 }
8846 }
8847 }
8848success:
8849 // @@protoc_insertion_point(parse_success:dmi.SetLogLevelResponse)
8850 return true;
8851failure:
8852 // @@protoc_insertion_point(parse_failure:dmi.SetLogLevelResponse)
8853 return false;
8854#undef DO_
8855}
8856#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8857
8858void SetLogLevelResponse::SerializeWithCachedSizes(
8859 ::google::protobuf::io::CodedOutputStream* output) const {
8860 // @@protoc_insertion_point(serialize_start:dmi.SetLogLevelResponse)
8861 ::google::protobuf::uint32 cached_has_bits = 0;
8862 (void) cached_has_bits;
8863
8864 // .dmi.Uuid device_uuid = 1;
8865 if (this->has_device_uuid()) {
8866 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
8867 1, HasBitSetters::device_uuid(this), output);
8868 }
8869
8870 // .dmi.Status status = 2;
8871 if (this->status() != 0) {
8872 ::google::protobuf::internal::WireFormatLite::WriteEnum(
8873 2, this->status(), output);
8874 }
8875
8876 // .dmi.SetLogLevelResponse.Reason reason = 3;
8877 if (this->reason() != 0) {
8878 ::google::protobuf::internal::WireFormatLite::WriteEnum(
8879 3, this->reason(), output);
8880 }
8881
8882 // string reason_detail = 4;
8883 if (this->reason_detail().size() > 0) {
8884 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
8885 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
8886 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
8887 "dmi.SetLogLevelResponse.reason_detail");
8888 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
8889 4, this->reason_detail(), output);
8890 }
8891
8892 if (_internal_metadata_.have_unknown_fields()) {
8893 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
8894 _internal_metadata_.unknown_fields(), output);
8895 }
8896 // @@protoc_insertion_point(serialize_end:dmi.SetLogLevelResponse)
8897}
8898
8899::google::protobuf::uint8* SetLogLevelResponse::InternalSerializeWithCachedSizesToArray(
8900 ::google::protobuf::uint8* target) const {
8901 // @@protoc_insertion_point(serialize_to_array_start:dmi.SetLogLevelResponse)
8902 ::google::protobuf::uint32 cached_has_bits = 0;
8903 (void) cached_has_bits;
8904
8905 // .dmi.Uuid device_uuid = 1;
8906 if (this->has_device_uuid()) {
8907 target = ::google::protobuf::internal::WireFormatLite::
8908 InternalWriteMessageToArray(
8909 1, HasBitSetters::device_uuid(this), target);
8910 }
8911
8912 // .dmi.Status status = 2;
8913 if (this->status() != 0) {
8914 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
8915 2, this->status(), target);
8916 }
8917
8918 // .dmi.SetLogLevelResponse.Reason reason = 3;
8919 if (this->reason() != 0) {
8920 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
8921 3, this->reason(), target);
8922 }
8923
8924 // string reason_detail = 4;
8925 if (this->reason_detail().size() > 0) {
8926 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
8927 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
8928 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
8929 "dmi.SetLogLevelResponse.reason_detail");
8930 target =
8931 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
8932 4, this->reason_detail(), target);
8933 }
8934
8935 if (_internal_metadata_.have_unknown_fields()) {
8936 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
8937 _internal_metadata_.unknown_fields(), target);
8938 }
8939 // @@protoc_insertion_point(serialize_to_array_end:dmi.SetLogLevelResponse)
8940 return target;
8941}
8942
8943size_t SetLogLevelResponse::ByteSizeLong() const {
8944// @@protoc_insertion_point(message_byte_size_start:dmi.SetLogLevelResponse)
8945 size_t total_size = 0;
8946
8947 if (_internal_metadata_.have_unknown_fields()) {
8948 total_size +=
8949 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
8950 _internal_metadata_.unknown_fields());
8951 }
8952 ::google::protobuf::uint32 cached_has_bits = 0;
8953 // Prevent compiler warnings about cached_has_bits being unused
8954 (void) cached_has_bits;
8955
8956 // string reason_detail = 4;
8957 if (this->reason_detail().size() > 0) {
8958 total_size += 1 +
8959 ::google::protobuf::internal::WireFormatLite::StringSize(
8960 this->reason_detail());
8961 }
8962
8963 // .dmi.Uuid device_uuid = 1;
8964 if (this->has_device_uuid()) {
8965 total_size += 1 +
8966 ::google::protobuf::internal::WireFormatLite::MessageSize(
8967 *device_uuid_);
8968 }
8969
8970 // .dmi.Status status = 2;
8971 if (this->status() != 0) {
8972 total_size += 1 +
8973 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
8974 }
8975
8976 // .dmi.SetLogLevelResponse.Reason reason = 3;
8977 if (this->reason() != 0) {
8978 total_size += 1 +
8979 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
8980 }
8981
8982 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
8983 SetCachedSize(cached_size);
8984 return total_size;
8985}
8986
8987void SetLogLevelResponse::MergeFrom(const ::google::protobuf::Message& from) {
8988// @@protoc_insertion_point(generalized_merge_from_start:dmi.SetLogLevelResponse)
8989 GOOGLE_DCHECK_NE(&from, this);
8990 const SetLogLevelResponse* source =
8991 ::google::protobuf::DynamicCastToGenerated<SetLogLevelResponse>(
8992 &from);
8993 if (source == nullptr) {
8994 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.SetLogLevelResponse)
8995 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
8996 } else {
8997 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.SetLogLevelResponse)
8998 MergeFrom(*source);
8999 }
9000}
9001
9002void SetLogLevelResponse::MergeFrom(const SetLogLevelResponse& from) {
9003// @@protoc_insertion_point(class_specific_merge_from_start:dmi.SetLogLevelResponse)
9004 GOOGLE_DCHECK_NE(&from, this);
9005 _internal_metadata_.MergeFrom(from._internal_metadata_);
9006 ::google::protobuf::uint32 cached_has_bits = 0;
9007 (void) cached_has_bits;
9008
9009 if (from.reason_detail().size() > 0) {
9010
9011 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
9012 }
9013 if (from.has_device_uuid()) {
9014 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
9015 }
9016 if (from.status() != 0) {
9017 set_status(from.status());
9018 }
9019 if (from.reason() != 0) {
9020 set_reason(from.reason());
9021 }
9022}
9023
9024void SetLogLevelResponse::CopyFrom(const ::google::protobuf::Message& from) {
9025// @@protoc_insertion_point(generalized_copy_from_start:dmi.SetLogLevelResponse)
9026 if (&from == this) return;
9027 Clear();
9028 MergeFrom(from);
9029}
9030
9031void SetLogLevelResponse::CopyFrom(const SetLogLevelResponse& from) {
9032// @@protoc_insertion_point(class_specific_copy_from_start:dmi.SetLogLevelResponse)
9033 if (&from == this) return;
9034 Clear();
9035 MergeFrom(from);
9036}
9037
9038bool SetLogLevelResponse::IsInitialized() const {
9039 return true;
9040}
9041
9042void SetLogLevelResponse::Swap(SetLogLevelResponse* other) {
9043 if (other == this) return;
9044 InternalSwap(other);
9045}
9046void SetLogLevelResponse::InternalSwap(SetLogLevelResponse* other) {
9047 using std::swap;
9048 _internal_metadata_.Swap(&other->_internal_metadata_);
9049 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
9050 GetArenaNoVirtual());
9051 swap(device_uuid_, other->device_uuid_);
9052 swap(status_, other->status_);
9053 swap(reason_, other->reason_);
9054}
9055
9056::google::protobuf::Metadata SetLogLevelResponse::GetMetadata() const {
9057 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
9058 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
9059}
9060
9061
9062// ===================================================================
9063
9064void GetLogLevelRequest::InitAsDefaultInstance() {
9065 ::dmi::_GetLogLevelRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
9066 ::dmi::Uuid::internal_default_instance());
9067}
9068class GetLogLevelRequest::HasBitSetters {
9069 public:
9070 static const ::dmi::Uuid& device_uuid(const GetLogLevelRequest* msg);
9071};
9072
9073const ::dmi::Uuid&
9074GetLogLevelRequest::HasBitSetters::device_uuid(const GetLogLevelRequest* msg) {
9075 return *msg->device_uuid_;
9076}
9077void GetLogLevelRequest::clear_device_uuid() {
9078 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
9079 delete device_uuid_;
9080 }
9081 device_uuid_ = nullptr;
9082}
9083#if !defined(_MSC_VER) || _MSC_VER >= 1900
9084const int GetLogLevelRequest::kDeviceUuidFieldNumber;
9085const int GetLogLevelRequest::kEntitiesFieldNumber;
9086#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
9087
9088GetLogLevelRequest::GetLogLevelRequest()
9089 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
9090 SharedCtor();
9091 // @@protoc_insertion_point(constructor:dmi.GetLogLevelRequest)
9092}
9093GetLogLevelRequest::GetLogLevelRequest(const GetLogLevelRequest& from)
9094 : ::google::protobuf::Message(),
9095 _internal_metadata_(nullptr),
9096 entities_(from.entities_) {
9097 _internal_metadata_.MergeFrom(from._internal_metadata_);
9098 if (from.has_device_uuid()) {
9099 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
9100 } else {
9101 device_uuid_ = nullptr;
9102 }
9103 // @@protoc_insertion_point(copy_constructor:dmi.GetLogLevelRequest)
9104}
9105
9106void GetLogLevelRequest::SharedCtor() {
9107 ::google::protobuf::internal::InitSCC(
9108 &scc_info_GetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
9109 device_uuid_ = nullptr;
9110}
9111
9112GetLogLevelRequest::~GetLogLevelRequest() {
9113 // @@protoc_insertion_point(destructor:dmi.GetLogLevelRequest)
9114 SharedDtor();
9115}
9116
9117void GetLogLevelRequest::SharedDtor() {
9118 if (this != internal_default_instance()) delete device_uuid_;
9119}
9120
9121void GetLogLevelRequest::SetCachedSize(int size) const {
9122 _cached_size_.Set(size);
9123}
9124const GetLogLevelRequest& GetLogLevelRequest::default_instance() {
9125 ::google::protobuf::internal::InitSCC(&::scc_info_GetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
9126 return *internal_default_instance();
9127}
9128
9129
9130void GetLogLevelRequest::Clear() {
9131// @@protoc_insertion_point(message_clear_start:dmi.GetLogLevelRequest)
9132 ::google::protobuf::uint32 cached_has_bits = 0;
9133 // Prevent compiler warnings about cached_has_bits being unused
9134 (void) cached_has_bits;
9135
9136 entities_.Clear();
9137 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
9138 delete device_uuid_;
9139 }
9140 device_uuid_ = nullptr;
9141 _internal_metadata_.Clear();
9142}
9143
9144#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
9145const char* GetLogLevelRequest::_InternalParse(const char* begin, const char* end, void* object,
9146 ::google::protobuf::internal::ParseContext* ctx) {
9147 auto msg = static_cast<GetLogLevelRequest*>(object);
9148 ::google::protobuf::int32 size; (void)size;
9149 int depth; (void)depth;
9150 ::google::protobuf::uint32 tag;
9151 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
9152 auto ptr = begin;
9153 while (ptr < end) {
9154 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
9155 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
9156 switch (tag >> 3) {
9157 // .dmi.Uuid device_uuid = 1;
9158 case 1: {
9159 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
9160 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
9161 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
9162 parser_till_end = ::dmi::Uuid::_InternalParse;
9163 object = msg->mutable_device_uuid();
9164 if (size > end - ptr) goto len_delim_till_end;
9165 ptr += size;
9166 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
9167 {parser_till_end, object}, ptr - size, ptr));
9168 break;
9169 }
9170 // repeated string entities = 2;
9171 case 2: {
9172 if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
9173 do {
9174 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
9175 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
9176 ctx->extra_parse_data().SetFieldName("dmi.GetLogLevelRequest.entities");
9177 object = msg->add_entities();
9178 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
9179 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
9180 goto string_till_end;
9181 }
9182 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
9183 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
9184 ptr += size;
9185 if (ptr >= end) break;
9186 } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1));
9187 break;
9188 }
9189 default: {
9190 handle_unusual:
9191 if ((tag & 7) == 4 || tag == 0) {
9192 ctx->EndGroup(tag);
9193 return ptr;
9194 }
9195 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
9196 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
9197 ptr = res.first;
9198 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
9199 if (res.second) return ptr;
9200 }
9201 } // switch
9202 } // while
9203 return ptr;
9204string_till_end:
9205 static_cast<::std::string*>(object)->clear();
9206 static_cast<::std::string*>(object)->reserve(size);
9207 goto len_delim_till_end;
9208len_delim_till_end:
9209 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
9210 {parser_till_end, object}, size);
9211}
9212#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
9213bool GetLogLevelRequest::MergePartialFromCodedStream(
9214 ::google::protobuf::io::CodedInputStream* input) {
9215#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
9216 ::google::protobuf::uint32 tag;
9217 // @@protoc_insertion_point(parse_start:dmi.GetLogLevelRequest)
9218 for (;;) {
9219 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
9220 tag = p.first;
9221 if (!p.second) goto handle_unusual;
9222 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
9223 // .dmi.Uuid device_uuid = 1;
9224 case 1: {
9225 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
9226 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
9227 input, mutable_device_uuid()));
9228 } else {
9229 goto handle_unusual;
9230 }
9231 break;
9232 }
9233
9234 // repeated string entities = 2;
9235 case 2: {
9236 if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
9237 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
9238 input, this->add_entities()));
9239 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
9240 this->entities(this->entities_size() - 1).data(),
9241 static_cast<int>(this->entities(this->entities_size() - 1).length()),
9242 ::google::protobuf::internal::WireFormatLite::PARSE,
9243 "dmi.GetLogLevelRequest.entities"));
9244 } else {
9245 goto handle_unusual;
9246 }
9247 break;
9248 }
9249
9250 default: {
9251 handle_unusual:
9252 if (tag == 0) {
9253 goto success;
9254 }
9255 DO_(::google::protobuf::internal::WireFormat::SkipField(
9256 input, tag, _internal_metadata_.mutable_unknown_fields()));
9257 break;
9258 }
9259 }
9260 }
9261success:
9262 // @@protoc_insertion_point(parse_success:dmi.GetLogLevelRequest)
9263 return true;
9264failure:
9265 // @@protoc_insertion_point(parse_failure:dmi.GetLogLevelRequest)
9266 return false;
9267#undef DO_
9268}
9269#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
9270
9271void GetLogLevelRequest::SerializeWithCachedSizes(
9272 ::google::protobuf::io::CodedOutputStream* output) const {
9273 // @@protoc_insertion_point(serialize_start:dmi.GetLogLevelRequest)
9274 ::google::protobuf::uint32 cached_has_bits = 0;
9275 (void) cached_has_bits;
9276
9277 // .dmi.Uuid device_uuid = 1;
9278 if (this->has_device_uuid()) {
9279 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9280 1, HasBitSetters::device_uuid(this), output);
9281 }
9282
9283 // repeated string entities = 2;
9284 for (int i = 0, n = this->entities_size(); i < n; i++) {
9285 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
9286 this->entities(i).data(), static_cast<int>(this->entities(i).length()),
9287 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
9288 "dmi.GetLogLevelRequest.entities");
9289 ::google::protobuf::internal::WireFormatLite::WriteString(
9290 2, this->entities(i), output);
9291 }
9292
9293 if (_internal_metadata_.have_unknown_fields()) {
9294 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
9295 _internal_metadata_.unknown_fields(), output);
9296 }
9297 // @@protoc_insertion_point(serialize_end:dmi.GetLogLevelRequest)
9298}
9299
9300::google::protobuf::uint8* GetLogLevelRequest::InternalSerializeWithCachedSizesToArray(
9301 ::google::protobuf::uint8* target) const {
9302 // @@protoc_insertion_point(serialize_to_array_start:dmi.GetLogLevelRequest)
9303 ::google::protobuf::uint32 cached_has_bits = 0;
9304 (void) cached_has_bits;
9305
9306 // .dmi.Uuid device_uuid = 1;
9307 if (this->has_device_uuid()) {
9308 target = ::google::protobuf::internal::WireFormatLite::
9309 InternalWriteMessageToArray(
9310 1, HasBitSetters::device_uuid(this), target);
9311 }
9312
9313 // repeated string entities = 2;
9314 for (int i = 0, n = this->entities_size(); i < n; i++) {
9315 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
9316 this->entities(i).data(), static_cast<int>(this->entities(i).length()),
9317 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
9318 "dmi.GetLogLevelRequest.entities");
9319 target = ::google::protobuf::internal::WireFormatLite::
9320 WriteStringToArray(2, this->entities(i), target);
9321 }
9322
9323 if (_internal_metadata_.have_unknown_fields()) {
9324 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
9325 _internal_metadata_.unknown_fields(), target);
9326 }
9327 // @@protoc_insertion_point(serialize_to_array_end:dmi.GetLogLevelRequest)
9328 return target;
9329}
9330
9331size_t GetLogLevelRequest::ByteSizeLong() const {
9332// @@protoc_insertion_point(message_byte_size_start:dmi.GetLogLevelRequest)
9333 size_t total_size = 0;
9334
9335 if (_internal_metadata_.have_unknown_fields()) {
9336 total_size +=
9337 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
9338 _internal_metadata_.unknown_fields());
9339 }
9340 ::google::protobuf::uint32 cached_has_bits = 0;
9341 // Prevent compiler warnings about cached_has_bits being unused
9342 (void) cached_has_bits;
9343
9344 // repeated string entities = 2;
9345 total_size += 1 *
9346 ::google::protobuf::internal::FromIntSize(this->entities_size());
9347 for (int i = 0, n = this->entities_size(); i < n; i++) {
9348 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
9349 this->entities(i));
9350 }
9351
9352 // .dmi.Uuid device_uuid = 1;
9353 if (this->has_device_uuid()) {
9354 total_size += 1 +
9355 ::google::protobuf::internal::WireFormatLite::MessageSize(
9356 *device_uuid_);
9357 }
9358
9359 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
9360 SetCachedSize(cached_size);
9361 return total_size;
9362}
9363
9364void GetLogLevelRequest::MergeFrom(const ::google::protobuf::Message& from) {
9365// @@protoc_insertion_point(generalized_merge_from_start:dmi.GetLogLevelRequest)
9366 GOOGLE_DCHECK_NE(&from, this);
9367 const GetLogLevelRequest* source =
9368 ::google::protobuf::DynamicCastToGenerated<GetLogLevelRequest>(
9369 &from);
9370 if (source == nullptr) {
9371 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.GetLogLevelRequest)
9372 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
9373 } else {
9374 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.GetLogLevelRequest)
9375 MergeFrom(*source);
9376 }
9377}
9378
9379void GetLogLevelRequest::MergeFrom(const GetLogLevelRequest& from) {
9380// @@protoc_insertion_point(class_specific_merge_from_start:dmi.GetLogLevelRequest)
9381 GOOGLE_DCHECK_NE(&from, this);
9382 _internal_metadata_.MergeFrom(from._internal_metadata_);
9383 ::google::protobuf::uint32 cached_has_bits = 0;
9384 (void) cached_has_bits;
9385
9386 entities_.MergeFrom(from.entities_);
9387 if (from.has_device_uuid()) {
9388 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
9389 }
9390}
9391
9392void GetLogLevelRequest::CopyFrom(const ::google::protobuf::Message& from) {
9393// @@protoc_insertion_point(generalized_copy_from_start:dmi.GetLogLevelRequest)
9394 if (&from == this) return;
9395 Clear();
9396 MergeFrom(from);
9397}
9398
9399void GetLogLevelRequest::CopyFrom(const GetLogLevelRequest& from) {
9400// @@protoc_insertion_point(class_specific_copy_from_start:dmi.GetLogLevelRequest)
9401 if (&from == this) return;
9402 Clear();
9403 MergeFrom(from);
9404}
9405
9406bool GetLogLevelRequest::IsInitialized() const {
9407 return true;
9408}
9409
9410void GetLogLevelRequest::Swap(GetLogLevelRequest* other) {
9411 if (other == this) return;
9412 InternalSwap(other);
9413}
9414void GetLogLevelRequest::InternalSwap(GetLogLevelRequest* other) {
9415 using std::swap;
9416 _internal_metadata_.Swap(&other->_internal_metadata_);
9417 entities_.InternalSwap(CastToBase(&other->entities_));
9418 swap(device_uuid_, other->device_uuid_);
9419}
9420
9421::google::protobuf::Metadata GetLogLevelRequest::GetMetadata() const {
9422 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
9423 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
9424}
9425
9426
9427// ===================================================================
9428
9429void GetLogLevelResponse::InitAsDefaultInstance() {
9430 ::dmi::_GetLogLevelResponse_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
9431 ::dmi::Uuid::internal_default_instance());
9432}
9433class GetLogLevelResponse::HasBitSetters {
9434 public:
9435 static const ::dmi::Uuid& device_uuid(const GetLogLevelResponse* msg);
9436};
9437
9438const ::dmi::Uuid&
9439GetLogLevelResponse::HasBitSetters::device_uuid(const GetLogLevelResponse* msg) {
9440 return *msg->device_uuid_;
9441}
9442void GetLogLevelResponse::clear_device_uuid() {
9443 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
9444 delete device_uuid_;
9445 }
9446 device_uuid_ = nullptr;
9447}
9448#if !defined(_MSC_VER) || _MSC_VER >= 1900
9449const int GetLogLevelResponse::kDeviceUuidFieldNumber;
9450const int GetLogLevelResponse::kLogLevelsFieldNumber;
9451const int GetLogLevelResponse::kStatusFieldNumber;
9452const int GetLogLevelResponse::kReasonFieldNumber;
9453const int GetLogLevelResponse::kReasonDetailFieldNumber;
9454#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
9455
9456GetLogLevelResponse::GetLogLevelResponse()
9457 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
9458 SharedCtor();
9459 // @@protoc_insertion_point(constructor:dmi.GetLogLevelResponse)
9460}
9461GetLogLevelResponse::GetLogLevelResponse(const GetLogLevelResponse& from)
9462 : ::google::protobuf::Message(),
9463 _internal_metadata_(nullptr),
9464 loglevels_(from.loglevels_) {
9465 _internal_metadata_.MergeFrom(from._internal_metadata_);
9466 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9467 if (from.reason_detail().size() > 0) {
9468 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
9469 }
9470 if (from.has_device_uuid()) {
9471 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
9472 } else {
9473 device_uuid_ = nullptr;
9474 }
9475 ::memcpy(&status_, &from.status_,
9476 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
9477 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
9478 // @@protoc_insertion_point(copy_constructor:dmi.GetLogLevelResponse)
9479}
9480
9481void GetLogLevelResponse::SharedCtor() {
9482 ::google::protobuf::internal::InitSCC(
9483 &scc_info_GetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
9484 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9485 ::memset(&device_uuid_, 0, static_cast<size_t>(
9486 reinterpret_cast<char*>(&reason_) -
9487 reinterpret_cast<char*>(&device_uuid_)) + sizeof(reason_));
9488}
9489
9490GetLogLevelResponse::~GetLogLevelResponse() {
9491 // @@protoc_insertion_point(destructor:dmi.GetLogLevelResponse)
9492 SharedDtor();
9493}
9494
9495void GetLogLevelResponse::SharedDtor() {
9496 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9497 if (this != internal_default_instance()) delete device_uuid_;
9498}
9499
9500void GetLogLevelResponse::SetCachedSize(int size) const {
9501 _cached_size_.Set(size);
9502}
9503const GetLogLevelResponse& GetLogLevelResponse::default_instance() {
9504 ::google::protobuf::internal::InitSCC(&::scc_info_GetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
9505 return *internal_default_instance();
9506}
9507
9508
9509void GetLogLevelResponse::Clear() {
9510// @@protoc_insertion_point(message_clear_start:dmi.GetLogLevelResponse)
9511 ::google::protobuf::uint32 cached_has_bits = 0;
9512 // Prevent compiler warnings about cached_has_bits being unused
9513 (void) cached_has_bits;
9514
9515 loglevels_.Clear();
9516 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9517 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
9518 delete device_uuid_;
9519 }
9520 device_uuid_ = nullptr;
9521 ::memset(&status_, 0, static_cast<size_t>(
9522 reinterpret_cast<char*>(&reason_) -
9523 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
9524 _internal_metadata_.Clear();
9525}
9526
9527#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
9528const char* GetLogLevelResponse::_InternalParse(const char* begin, const char* end, void* object,
9529 ::google::protobuf::internal::ParseContext* ctx) {
9530 auto msg = static_cast<GetLogLevelResponse*>(object);
9531 ::google::protobuf::int32 size; (void)size;
9532 int depth; (void)depth;
9533 ::google::protobuf::uint32 tag;
9534 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
9535 auto ptr = begin;
9536 while (ptr < end) {
9537 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
9538 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
9539 switch (tag >> 3) {
9540 // .dmi.Uuid device_uuid = 1;
9541 case 1: {
9542 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
9543 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
9544 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
9545 parser_till_end = ::dmi::Uuid::_InternalParse;
9546 object = msg->mutable_device_uuid();
9547 if (size > end - ptr) goto len_delim_till_end;
9548 ptr += size;
9549 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
9550 {parser_till_end, object}, ptr - size, ptr));
9551 break;
9552 }
9553 // repeated .dmi.EntitiesLogLevel logLevels = 2;
9554 case 2: {
9555 if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
9556 do {
9557 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
9558 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
9559 parser_till_end = ::dmi::EntitiesLogLevel::_InternalParse;
9560 object = msg->add_loglevels();
9561 if (size > end - ptr) goto len_delim_till_end;
9562 ptr += size;
9563 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
9564 {parser_till_end, object}, ptr - size, ptr));
9565 if (ptr >= end) break;
9566 } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1));
9567 break;
9568 }
9569 // .dmi.Status status = 3;
9570 case 3: {
9571 if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual;
9572 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
9573 msg->set_status(static_cast<::dmi::Status>(val));
9574 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
9575 break;
9576 }
9577 // .dmi.GetLogLevelResponse.Reason reason = 4;
9578 case 4: {
9579 if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual;
9580 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
9581 msg->set_reason(static_cast<::dmi::GetLogLevelResponse_Reason>(val));
9582 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
9583 break;
9584 }
9585 // string reason_detail = 5;
9586 case 5: {
9587 if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual;
9588 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
9589 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
9590 ctx->extra_parse_data().SetFieldName("dmi.GetLogLevelResponse.reason_detail");
9591 object = msg->mutable_reason_detail();
9592 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
9593 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
9594 goto string_till_end;
9595 }
9596 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
9597 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
9598 ptr += size;
9599 break;
9600 }
9601 default: {
9602 handle_unusual:
9603 if ((tag & 7) == 4 || tag == 0) {
9604 ctx->EndGroup(tag);
9605 return ptr;
9606 }
9607 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
9608 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
9609 ptr = res.first;
9610 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
9611 if (res.second) return ptr;
9612 }
9613 } // switch
9614 } // while
9615 return ptr;
9616string_till_end:
9617 static_cast<::std::string*>(object)->clear();
9618 static_cast<::std::string*>(object)->reserve(size);
9619 goto len_delim_till_end;
9620len_delim_till_end:
9621 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
9622 {parser_till_end, object}, size);
9623}
9624#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
9625bool GetLogLevelResponse::MergePartialFromCodedStream(
9626 ::google::protobuf::io::CodedInputStream* input) {
9627#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
9628 ::google::protobuf::uint32 tag;
9629 // @@protoc_insertion_point(parse_start:dmi.GetLogLevelResponse)
9630 for (;;) {
9631 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
9632 tag = p.first;
9633 if (!p.second) goto handle_unusual;
9634 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
9635 // .dmi.Uuid device_uuid = 1;
9636 case 1: {
9637 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
9638 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
9639 input, mutable_device_uuid()));
9640 } else {
9641 goto handle_unusual;
9642 }
9643 break;
9644 }
9645
9646 // repeated .dmi.EntitiesLogLevel logLevels = 2;
9647 case 2: {
9648 if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
9649 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
9650 input, add_loglevels()));
9651 } else {
9652 goto handle_unusual;
9653 }
9654 break;
9655 }
9656
9657 // .dmi.Status status = 3;
9658 case 3: {
9659 if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) {
9660 int value = 0;
9661 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9662 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
9663 input, &value)));
9664 set_status(static_cast< ::dmi::Status >(value));
9665 } else {
9666 goto handle_unusual;
9667 }
9668 break;
9669 }
9670
9671 // .dmi.GetLogLevelResponse.Reason reason = 4;
9672 case 4: {
9673 if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) {
9674 int value = 0;
9675 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9676 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
9677 input, &value)));
9678 set_reason(static_cast< ::dmi::GetLogLevelResponse_Reason >(value));
9679 } else {
9680 goto handle_unusual;
9681 }
9682 break;
9683 }
9684
9685 // string reason_detail = 5;
9686 case 5: {
9687 if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) {
9688 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
9689 input, this->mutable_reason_detail()));
9690 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
9691 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
9692 ::google::protobuf::internal::WireFormatLite::PARSE,
9693 "dmi.GetLogLevelResponse.reason_detail"));
9694 } else {
9695 goto handle_unusual;
9696 }
9697 break;
9698 }
9699
9700 default: {
9701 handle_unusual:
9702 if (tag == 0) {
9703 goto success;
9704 }
9705 DO_(::google::protobuf::internal::WireFormat::SkipField(
9706 input, tag, _internal_metadata_.mutable_unknown_fields()));
9707 break;
9708 }
9709 }
9710 }
9711success:
9712 // @@protoc_insertion_point(parse_success:dmi.GetLogLevelResponse)
9713 return true;
9714failure:
9715 // @@protoc_insertion_point(parse_failure:dmi.GetLogLevelResponse)
9716 return false;
9717#undef DO_
9718}
9719#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
9720
9721void GetLogLevelResponse::SerializeWithCachedSizes(
9722 ::google::protobuf::io::CodedOutputStream* output) const {
9723 // @@protoc_insertion_point(serialize_start:dmi.GetLogLevelResponse)
9724 ::google::protobuf::uint32 cached_has_bits = 0;
9725 (void) cached_has_bits;
9726
9727 // .dmi.Uuid device_uuid = 1;
9728 if (this->has_device_uuid()) {
9729 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9730 1, HasBitSetters::device_uuid(this), output);
9731 }
9732
9733 // repeated .dmi.EntitiesLogLevel logLevels = 2;
9734 for (unsigned int i = 0,
9735 n = static_cast<unsigned int>(this->loglevels_size()); i < n; i++) {
9736 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9737 2,
9738 this->loglevels(static_cast<int>(i)),
9739 output);
9740 }
9741
9742 // .dmi.Status status = 3;
9743 if (this->status() != 0) {
9744 ::google::protobuf::internal::WireFormatLite::WriteEnum(
9745 3, this->status(), output);
9746 }
9747
9748 // .dmi.GetLogLevelResponse.Reason reason = 4;
9749 if (this->reason() != 0) {
9750 ::google::protobuf::internal::WireFormatLite::WriteEnum(
9751 4, this->reason(), output);
9752 }
9753
9754 // string reason_detail = 5;
9755 if (this->reason_detail().size() > 0) {
9756 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
9757 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
9758 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
9759 "dmi.GetLogLevelResponse.reason_detail");
9760 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
9761 5, this->reason_detail(), output);
9762 }
9763
9764 if (_internal_metadata_.have_unknown_fields()) {
9765 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
9766 _internal_metadata_.unknown_fields(), output);
9767 }
9768 // @@protoc_insertion_point(serialize_end:dmi.GetLogLevelResponse)
9769}
9770
9771::google::protobuf::uint8* GetLogLevelResponse::InternalSerializeWithCachedSizesToArray(
9772 ::google::protobuf::uint8* target) const {
9773 // @@protoc_insertion_point(serialize_to_array_start:dmi.GetLogLevelResponse)
9774 ::google::protobuf::uint32 cached_has_bits = 0;
9775 (void) cached_has_bits;
9776
9777 // .dmi.Uuid device_uuid = 1;
9778 if (this->has_device_uuid()) {
9779 target = ::google::protobuf::internal::WireFormatLite::
9780 InternalWriteMessageToArray(
9781 1, HasBitSetters::device_uuid(this), target);
9782 }
9783
9784 // repeated .dmi.EntitiesLogLevel logLevels = 2;
9785 for (unsigned int i = 0,
9786 n = static_cast<unsigned int>(this->loglevels_size()); i < n; i++) {
9787 target = ::google::protobuf::internal::WireFormatLite::
9788 InternalWriteMessageToArray(
9789 2, this->loglevels(static_cast<int>(i)), target);
9790 }
9791
9792 // .dmi.Status status = 3;
9793 if (this->status() != 0) {
9794 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
9795 3, this->status(), target);
9796 }
9797
9798 // .dmi.GetLogLevelResponse.Reason reason = 4;
9799 if (this->reason() != 0) {
9800 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
9801 4, this->reason(), target);
9802 }
9803
9804 // string reason_detail = 5;
9805 if (this->reason_detail().size() > 0) {
9806 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
9807 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
9808 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
9809 "dmi.GetLogLevelResponse.reason_detail");
9810 target =
9811 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
9812 5, this->reason_detail(), target);
9813 }
9814
9815 if (_internal_metadata_.have_unknown_fields()) {
9816 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
9817 _internal_metadata_.unknown_fields(), target);
9818 }
9819 // @@protoc_insertion_point(serialize_to_array_end:dmi.GetLogLevelResponse)
9820 return target;
9821}
9822
9823size_t GetLogLevelResponse::ByteSizeLong() const {
9824// @@protoc_insertion_point(message_byte_size_start:dmi.GetLogLevelResponse)
9825 size_t total_size = 0;
9826
9827 if (_internal_metadata_.have_unknown_fields()) {
9828 total_size +=
9829 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
9830 _internal_metadata_.unknown_fields());
9831 }
9832 ::google::protobuf::uint32 cached_has_bits = 0;
9833 // Prevent compiler warnings about cached_has_bits being unused
9834 (void) cached_has_bits;
9835
9836 // repeated .dmi.EntitiesLogLevel logLevels = 2;
9837 {
9838 unsigned int count = static_cast<unsigned int>(this->loglevels_size());
9839 total_size += 1UL * count;
9840 for (unsigned int i = 0; i < count; i++) {
9841 total_size +=
9842 ::google::protobuf::internal::WireFormatLite::MessageSize(
9843 this->loglevels(static_cast<int>(i)));
9844 }
9845 }
9846
9847 // string reason_detail = 5;
9848 if (this->reason_detail().size() > 0) {
9849 total_size += 1 +
9850 ::google::protobuf::internal::WireFormatLite::StringSize(
9851 this->reason_detail());
9852 }
9853
9854 // .dmi.Uuid device_uuid = 1;
9855 if (this->has_device_uuid()) {
9856 total_size += 1 +
9857 ::google::protobuf::internal::WireFormatLite::MessageSize(
9858 *device_uuid_);
9859 }
9860
9861 // .dmi.Status status = 3;
9862 if (this->status() != 0) {
9863 total_size += 1 +
9864 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
9865 }
9866
9867 // .dmi.GetLogLevelResponse.Reason reason = 4;
9868 if (this->reason() != 0) {
9869 total_size += 1 +
9870 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
9871 }
9872
9873 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
9874 SetCachedSize(cached_size);
9875 return total_size;
9876}
9877
9878void GetLogLevelResponse::MergeFrom(const ::google::protobuf::Message& from) {
9879// @@protoc_insertion_point(generalized_merge_from_start:dmi.GetLogLevelResponse)
9880 GOOGLE_DCHECK_NE(&from, this);
9881 const GetLogLevelResponse* source =
9882 ::google::protobuf::DynamicCastToGenerated<GetLogLevelResponse>(
9883 &from);
9884 if (source == nullptr) {
9885 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.GetLogLevelResponse)
9886 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
9887 } else {
9888 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.GetLogLevelResponse)
9889 MergeFrom(*source);
9890 }
9891}
9892
9893void GetLogLevelResponse::MergeFrom(const GetLogLevelResponse& from) {
9894// @@protoc_insertion_point(class_specific_merge_from_start:dmi.GetLogLevelResponse)
9895 GOOGLE_DCHECK_NE(&from, this);
9896 _internal_metadata_.MergeFrom(from._internal_metadata_);
9897 ::google::protobuf::uint32 cached_has_bits = 0;
9898 (void) cached_has_bits;
9899
9900 loglevels_.MergeFrom(from.loglevels_);
9901 if (from.reason_detail().size() > 0) {
9902
9903 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
9904 }
9905 if (from.has_device_uuid()) {
9906 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
9907 }
9908 if (from.status() != 0) {
9909 set_status(from.status());
9910 }
9911 if (from.reason() != 0) {
9912 set_reason(from.reason());
9913 }
9914}
9915
9916void GetLogLevelResponse::CopyFrom(const ::google::protobuf::Message& from) {
9917// @@protoc_insertion_point(generalized_copy_from_start:dmi.GetLogLevelResponse)
9918 if (&from == this) return;
9919 Clear();
9920 MergeFrom(from);
9921}
9922
9923void GetLogLevelResponse::CopyFrom(const GetLogLevelResponse& from) {
9924// @@protoc_insertion_point(class_specific_copy_from_start:dmi.GetLogLevelResponse)
9925 if (&from == this) return;
9926 Clear();
9927 MergeFrom(from);
9928}
9929
9930bool GetLogLevelResponse::IsInitialized() const {
9931 return true;
9932}
9933
9934void GetLogLevelResponse::Swap(GetLogLevelResponse* other) {
9935 if (other == this) return;
9936 InternalSwap(other);
9937}
9938void GetLogLevelResponse::InternalSwap(GetLogLevelResponse* other) {
9939 using std::swap;
9940 _internal_metadata_.Swap(&other->_internal_metadata_);
9941 CastToBase(&loglevels_)->InternalSwap(CastToBase(&other->loglevels_));
9942 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
9943 GetArenaNoVirtual());
9944 swap(device_uuid_, other->device_uuid_);
9945 swap(status_, other->status_);
9946 swap(reason_, other->reason_);
9947}
9948
9949::google::protobuf::Metadata GetLogLevelResponse::GetMetadata() const {
9950 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
9951 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
9952}
9953
9954
9955// ===================================================================
9956
9957void GetLoggableEntitiesRequest::InitAsDefaultInstance() {
9958 ::dmi::_GetLoggableEntitiesRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
9959 ::dmi::Uuid::internal_default_instance());
9960}
9961class GetLoggableEntitiesRequest::HasBitSetters {
9962 public:
9963 static const ::dmi::Uuid& device_uuid(const GetLoggableEntitiesRequest* msg);
9964};
9965
9966const ::dmi::Uuid&
9967GetLoggableEntitiesRequest::HasBitSetters::device_uuid(const GetLoggableEntitiesRequest* msg) {
9968 return *msg->device_uuid_;
9969}
9970void GetLoggableEntitiesRequest::clear_device_uuid() {
9971 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
9972 delete device_uuid_;
9973 }
9974 device_uuid_ = nullptr;
9975}
9976#if !defined(_MSC_VER) || _MSC_VER >= 1900
9977const int GetLoggableEntitiesRequest::kDeviceUuidFieldNumber;
9978#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
9979
9980GetLoggableEntitiesRequest::GetLoggableEntitiesRequest()
9981 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
9982 SharedCtor();
9983 // @@protoc_insertion_point(constructor:dmi.GetLoggableEntitiesRequest)
9984}
9985GetLoggableEntitiesRequest::GetLoggableEntitiesRequest(const GetLoggableEntitiesRequest& from)
9986 : ::google::protobuf::Message(),
9987 _internal_metadata_(nullptr) {
9988 _internal_metadata_.MergeFrom(from._internal_metadata_);
9989 if (from.has_device_uuid()) {
9990 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
9991 } else {
9992 device_uuid_ = nullptr;
9993 }
9994 // @@protoc_insertion_point(copy_constructor:dmi.GetLoggableEntitiesRequest)
9995}
9996
9997void GetLoggableEntitiesRequest::SharedCtor() {
9998 ::google::protobuf::internal::InitSCC(
9999 &scc_info_GetLoggableEntitiesRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
10000 device_uuid_ = nullptr;
10001}
10002
10003GetLoggableEntitiesRequest::~GetLoggableEntitiesRequest() {
10004 // @@protoc_insertion_point(destructor:dmi.GetLoggableEntitiesRequest)
10005 SharedDtor();
10006}
10007
10008void GetLoggableEntitiesRequest::SharedDtor() {
10009 if (this != internal_default_instance()) delete device_uuid_;
10010}
10011
10012void GetLoggableEntitiesRequest::SetCachedSize(int size) const {
10013 _cached_size_.Set(size);
10014}
10015const GetLoggableEntitiesRequest& GetLoggableEntitiesRequest::default_instance() {
10016 ::google::protobuf::internal::InitSCC(&::scc_info_GetLoggableEntitiesRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
10017 return *internal_default_instance();
10018}
10019
10020
10021void GetLoggableEntitiesRequest::Clear() {
10022// @@protoc_insertion_point(message_clear_start:dmi.GetLoggableEntitiesRequest)
10023 ::google::protobuf::uint32 cached_has_bits = 0;
10024 // Prevent compiler warnings about cached_has_bits being unused
10025 (void) cached_has_bits;
10026
10027 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
10028 delete device_uuid_;
10029 }
10030 device_uuid_ = nullptr;
10031 _internal_metadata_.Clear();
10032}
10033
10034#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10035const char* GetLoggableEntitiesRequest::_InternalParse(const char* begin, const char* end, void* object,
10036 ::google::protobuf::internal::ParseContext* ctx) {
10037 auto msg = static_cast<GetLoggableEntitiesRequest*>(object);
10038 ::google::protobuf::int32 size; (void)size;
10039 int depth; (void)depth;
10040 ::google::protobuf::uint32 tag;
10041 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
10042 auto ptr = begin;
10043 while (ptr < end) {
10044 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
10045 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
10046 switch (tag >> 3) {
10047 // .dmi.Uuid device_uuid = 1;
10048 case 1: {
10049 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
10050 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
10051 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
10052 parser_till_end = ::dmi::Uuid::_InternalParse;
10053 object = msg->mutable_device_uuid();
10054 if (size > end - ptr) goto len_delim_till_end;
10055 ptr += size;
10056 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
10057 {parser_till_end, object}, ptr - size, ptr));
10058 break;
10059 }
10060 default: {
10061 handle_unusual:
10062 if ((tag & 7) == 4 || tag == 0) {
10063 ctx->EndGroup(tag);
10064 return ptr;
10065 }
10066 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
10067 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
10068 ptr = res.first;
10069 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
10070 if (res.second) return ptr;
10071 }
10072 } // switch
10073 } // while
10074 return ptr;
10075len_delim_till_end:
10076 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
10077 {parser_till_end, object}, size);
10078}
10079#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10080bool GetLoggableEntitiesRequest::MergePartialFromCodedStream(
10081 ::google::protobuf::io::CodedInputStream* input) {
10082#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
10083 ::google::protobuf::uint32 tag;
10084 // @@protoc_insertion_point(parse_start:dmi.GetLoggableEntitiesRequest)
10085 for (;;) {
10086 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
10087 tag = p.first;
10088 if (!p.second) goto handle_unusual;
10089 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
10090 // .dmi.Uuid device_uuid = 1;
10091 case 1: {
10092 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
10093 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
10094 input, mutable_device_uuid()));
10095 } else {
10096 goto handle_unusual;
10097 }
10098 break;
10099 }
10100
10101 default: {
10102 handle_unusual:
10103 if (tag == 0) {
10104 goto success;
10105 }
10106 DO_(::google::protobuf::internal::WireFormat::SkipField(
10107 input, tag, _internal_metadata_.mutable_unknown_fields()));
10108 break;
10109 }
10110 }
10111 }
10112success:
10113 // @@protoc_insertion_point(parse_success:dmi.GetLoggableEntitiesRequest)
10114 return true;
10115failure:
10116 // @@protoc_insertion_point(parse_failure:dmi.GetLoggableEntitiesRequest)
10117 return false;
10118#undef DO_
10119}
10120#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10121
10122void GetLoggableEntitiesRequest::SerializeWithCachedSizes(
10123 ::google::protobuf::io::CodedOutputStream* output) const {
10124 // @@protoc_insertion_point(serialize_start:dmi.GetLoggableEntitiesRequest)
10125 ::google::protobuf::uint32 cached_has_bits = 0;
10126 (void) cached_has_bits;
10127
10128 // .dmi.Uuid device_uuid = 1;
10129 if (this->has_device_uuid()) {
10130 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10131 1, HasBitSetters::device_uuid(this), output);
10132 }
10133
10134 if (_internal_metadata_.have_unknown_fields()) {
10135 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
10136 _internal_metadata_.unknown_fields(), output);
10137 }
10138 // @@protoc_insertion_point(serialize_end:dmi.GetLoggableEntitiesRequest)
10139}
10140
10141::google::protobuf::uint8* GetLoggableEntitiesRequest::InternalSerializeWithCachedSizesToArray(
10142 ::google::protobuf::uint8* target) const {
10143 // @@protoc_insertion_point(serialize_to_array_start:dmi.GetLoggableEntitiesRequest)
10144 ::google::protobuf::uint32 cached_has_bits = 0;
10145 (void) cached_has_bits;
10146
10147 // .dmi.Uuid device_uuid = 1;
10148 if (this->has_device_uuid()) {
10149 target = ::google::protobuf::internal::WireFormatLite::
10150 InternalWriteMessageToArray(
10151 1, HasBitSetters::device_uuid(this), target);
10152 }
10153
10154 if (_internal_metadata_.have_unknown_fields()) {
10155 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
10156 _internal_metadata_.unknown_fields(), target);
10157 }
10158 // @@protoc_insertion_point(serialize_to_array_end:dmi.GetLoggableEntitiesRequest)
10159 return target;
10160}
10161
10162size_t GetLoggableEntitiesRequest::ByteSizeLong() const {
10163// @@protoc_insertion_point(message_byte_size_start:dmi.GetLoggableEntitiesRequest)
10164 size_t total_size = 0;
10165
10166 if (_internal_metadata_.have_unknown_fields()) {
10167 total_size +=
10168 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
10169 _internal_metadata_.unknown_fields());
10170 }
10171 ::google::protobuf::uint32 cached_has_bits = 0;
10172 // Prevent compiler warnings about cached_has_bits being unused
10173 (void) cached_has_bits;
10174
10175 // .dmi.Uuid device_uuid = 1;
10176 if (this->has_device_uuid()) {
10177 total_size += 1 +
10178 ::google::protobuf::internal::WireFormatLite::MessageSize(
10179 *device_uuid_);
10180 }
10181
10182 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
10183 SetCachedSize(cached_size);
10184 return total_size;
10185}
10186
10187void GetLoggableEntitiesRequest::MergeFrom(const ::google::protobuf::Message& from) {
10188// @@protoc_insertion_point(generalized_merge_from_start:dmi.GetLoggableEntitiesRequest)
10189 GOOGLE_DCHECK_NE(&from, this);
10190 const GetLoggableEntitiesRequest* source =
10191 ::google::protobuf::DynamicCastToGenerated<GetLoggableEntitiesRequest>(
10192 &from);
10193 if (source == nullptr) {
10194 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.GetLoggableEntitiesRequest)
10195 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
10196 } else {
10197 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.GetLoggableEntitiesRequest)
10198 MergeFrom(*source);
10199 }
10200}
10201
10202void GetLoggableEntitiesRequest::MergeFrom(const GetLoggableEntitiesRequest& from) {
10203// @@protoc_insertion_point(class_specific_merge_from_start:dmi.GetLoggableEntitiesRequest)
10204 GOOGLE_DCHECK_NE(&from, this);
10205 _internal_metadata_.MergeFrom(from._internal_metadata_);
10206 ::google::protobuf::uint32 cached_has_bits = 0;
10207 (void) cached_has_bits;
10208
10209 if (from.has_device_uuid()) {
10210 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
10211 }
10212}
10213
10214void GetLoggableEntitiesRequest::CopyFrom(const ::google::protobuf::Message& from) {
10215// @@protoc_insertion_point(generalized_copy_from_start:dmi.GetLoggableEntitiesRequest)
10216 if (&from == this) return;
10217 Clear();
10218 MergeFrom(from);
10219}
10220
10221void GetLoggableEntitiesRequest::CopyFrom(const GetLoggableEntitiesRequest& from) {
10222// @@protoc_insertion_point(class_specific_copy_from_start:dmi.GetLoggableEntitiesRequest)
10223 if (&from == this) return;
10224 Clear();
10225 MergeFrom(from);
10226}
10227
10228bool GetLoggableEntitiesRequest::IsInitialized() const {
10229 return true;
10230}
10231
10232void GetLoggableEntitiesRequest::Swap(GetLoggableEntitiesRequest* other) {
10233 if (other == this) return;
10234 InternalSwap(other);
10235}
10236void GetLoggableEntitiesRequest::InternalSwap(GetLoggableEntitiesRequest* other) {
10237 using std::swap;
10238 _internal_metadata_.Swap(&other->_internal_metadata_);
10239 swap(device_uuid_, other->device_uuid_);
10240}
10241
10242::google::protobuf::Metadata GetLoggableEntitiesRequest::GetMetadata() const {
10243 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
10244 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
10245}
10246
10247
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +053010248// ===================================================================
10249
10250void Heartbeat::InitAsDefaultInstance() {
10251}
10252class Heartbeat::HasBitSetters {
10253 public:
10254};
10255
10256#if !defined(_MSC_VER) || _MSC_VER >= 1900
10257const int Heartbeat::kHeartbeatSignatureFieldNumber;
10258#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
10259
10260Heartbeat::Heartbeat()
10261 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
10262 SharedCtor();
10263 // @@protoc_insertion_point(constructor:dmi.Heartbeat)
10264}
10265Heartbeat::Heartbeat(const Heartbeat& from)
10266 : ::google::protobuf::Message(),
10267 _internal_metadata_(nullptr) {
10268 _internal_metadata_.MergeFrom(from._internal_metadata_);
10269 heartbeat_signature_ = from.heartbeat_signature_;
10270 // @@protoc_insertion_point(copy_constructor:dmi.Heartbeat)
10271}
10272
10273void Heartbeat::SharedCtor() {
10274 heartbeat_signature_ = 0u;
10275}
10276
10277Heartbeat::~Heartbeat() {
10278 // @@protoc_insertion_point(destructor:dmi.Heartbeat)
10279 SharedDtor();
10280}
10281
10282void Heartbeat::SharedDtor() {
10283}
10284
10285void Heartbeat::SetCachedSize(int size) const {
10286 _cached_size_.Set(size);
10287}
10288const Heartbeat& Heartbeat::default_instance() {
10289 ::google::protobuf::internal::InitSCC(&::scc_info_Heartbeat_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
10290 return *internal_default_instance();
10291}
10292
10293
10294void Heartbeat::Clear() {
10295// @@protoc_insertion_point(message_clear_start:dmi.Heartbeat)
10296 ::google::protobuf::uint32 cached_has_bits = 0;
10297 // Prevent compiler warnings about cached_has_bits being unused
10298 (void) cached_has_bits;
10299
10300 heartbeat_signature_ = 0u;
10301 _internal_metadata_.Clear();
10302}
10303
10304#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10305const char* Heartbeat::_InternalParse(const char* begin, const char* end, void* object,
10306 ::google::protobuf::internal::ParseContext* ctx) {
10307 auto msg = static_cast<Heartbeat*>(object);
10308 ::google::protobuf::int32 size; (void)size;
10309 int depth; (void)depth;
10310 ::google::protobuf::uint32 tag;
10311 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
10312 auto ptr = begin;
10313 while (ptr < end) {
10314 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
10315 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
10316 switch (tag >> 3) {
10317 // fixed32 heartbeat_signature = 1;
10318 case 1: {
10319 if (static_cast<::google::protobuf::uint8>(tag) != 13) goto handle_unusual;
10320 msg->set_heartbeat_signature(::google::protobuf::io::UnalignedLoad<::google::protobuf::uint32>(ptr));
10321 ptr += sizeof(::google::protobuf::uint32);
10322 break;
10323 }
10324 default: {
10325 handle_unusual:
10326 if ((tag & 7) == 4 || tag == 0) {
10327 ctx->EndGroup(tag);
10328 return ptr;
10329 }
10330 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
10331 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
10332 ptr = res.first;
10333 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
10334 if (res.second) return ptr;
10335 }
10336 } // switch
10337 } // while
10338 return ptr;
10339}
10340#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10341bool Heartbeat::MergePartialFromCodedStream(
10342 ::google::protobuf::io::CodedInputStream* input) {
10343#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
10344 ::google::protobuf::uint32 tag;
10345 // @@protoc_insertion_point(parse_start:dmi.Heartbeat)
10346 for (;;) {
10347 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
10348 tag = p.first;
10349 if (!p.second) goto handle_unusual;
10350 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
10351 // fixed32 heartbeat_signature = 1;
10352 case 1: {
10353 if (static_cast< ::google::protobuf::uint8>(tag) == (13 & 0xFF)) {
10354
10355 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10356 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>(
10357 input, &heartbeat_signature_)));
10358 } else {
10359 goto handle_unusual;
10360 }
10361 break;
10362 }
10363
10364 default: {
10365 handle_unusual:
10366 if (tag == 0) {
10367 goto success;
10368 }
10369 DO_(::google::protobuf::internal::WireFormat::SkipField(
10370 input, tag, _internal_metadata_.mutable_unknown_fields()));
10371 break;
10372 }
10373 }
10374 }
10375success:
10376 // @@protoc_insertion_point(parse_success:dmi.Heartbeat)
10377 return true;
10378failure:
10379 // @@protoc_insertion_point(parse_failure:dmi.Heartbeat)
10380 return false;
10381#undef DO_
10382}
10383#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10384
10385void Heartbeat::SerializeWithCachedSizes(
10386 ::google::protobuf::io::CodedOutputStream* output) const {
10387 // @@protoc_insertion_point(serialize_start:dmi.Heartbeat)
10388 ::google::protobuf::uint32 cached_has_bits = 0;
10389 (void) cached_has_bits;
10390
10391 // fixed32 heartbeat_signature = 1;
10392 if (this->heartbeat_signature() != 0) {
10393 ::google::protobuf::internal::WireFormatLite::WriteFixed32(1, this->heartbeat_signature(), output);
10394 }
10395
10396 if (_internal_metadata_.have_unknown_fields()) {
10397 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
10398 _internal_metadata_.unknown_fields(), output);
10399 }
10400 // @@protoc_insertion_point(serialize_end:dmi.Heartbeat)
10401}
10402
10403::google::protobuf::uint8* Heartbeat::InternalSerializeWithCachedSizesToArray(
10404 ::google::protobuf::uint8* target) const {
10405 // @@protoc_insertion_point(serialize_to_array_start:dmi.Heartbeat)
10406 ::google::protobuf::uint32 cached_has_bits = 0;
10407 (void) cached_has_bits;
10408
10409 // fixed32 heartbeat_signature = 1;
10410 if (this->heartbeat_signature() != 0) {
10411 target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(1, this->heartbeat_signature(), target);
10412 }
10413
10414 if (_internal_metadata_.have_unknown_fields()) {
10415 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
10416 _internal_metadata_.unknown_fields(), target);
10417 }
10418 // @@protoc_insertion_point(serialize_to_array_end:dmi.Heartbeat)
10419 return target;
10420}
10421
10422size_t Heartbeat::ByteSizeLong() const {
10423// @@protoc_insertion_point(message_byte_size_start:dmi.Heartbeat)
10424 size_t total_size = 0;
10425
10426 if (_internal_metadata_.have_unknown_fields()) {
10427 total_size +=
10428 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
10429 _internal_metadata_.unknown_fields());
10430 }
10431 ::google::protobuf::uint32 cached_has_bits = 0;
10432 // Prevent compiler warnings about cached_has_bits being unused
10433 (void) cached_has_bits;
10434
10435 // fixed32 heartbeat_signature = 1;
10436 if (this->heartbeat_signature() != 0) {
10437 total_size += 1 + 4;
10438 }
10439
10440 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
10441 SetCachedSize(cached_size);
10442 return total_size;
10443}
10444
10445void Heartbeat::MergeFrom(const ::google::protobuf::Message& from) {
10446// @@protoc_insertion_point(generalized_merge_from_start:dmi.Heartbeat)
10447 GOOGLE_DCHECK_NE(&from, this);
10448 const Heartbeat* source =
10449 ::google::protobuf::DynamicCastToGenerated<Heartbeat>(
10450 &from);
10451 if (source == nullptr) {
10452 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.Heartbeat)
10453 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
10454 } else {
10455 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.Heartbeat)
10456 MergeFrom(*source);
10457 }
10458}
10459
10460void Heartbeat::MergeFrom(const Heartbeat& from) {
10461// @@protoc_insertion_point(class_specific_merge_from_start:dmi.Heartbeat)
10462 GOOGLE_DCHECK_NE(&from, this);
10463 _internal_metadata_.MergeFrom(from._internal_metadata_);
10464 ::google::protobuf::uint32 cached_has_bits = 0;
10465 (void) cached_has_bits;
10466
10467 if (from.heartbeat_signature() != 0) {
10468 set_heartbeat_signature(from.heartbeat_signature());
10469 }
10470}
10471
10472void Heartbeat::CopyFrom(const ::google::protobuf::Message& from) {
10473// @@protoc_insertion_point(generalized_copy_from_start:dmi.Heartbeat)
10474 if (&from == this) return;
10475 Clear();
10476 MergeFrom(from);
10477}
10478
10479void Heartbeat::CopyFrom(const Heartbeat& from) {
10480// @@protoc_insertion_point(class_specific_copy_from_start:dmi.Heartbeat)
10481 if (&from == this) return;
10482 Clear();
10483 MergeFrom(from);
10484}
10485
10486bool Heartbeat::IsInitialized() const {
10487 return true;
10488}
10489
10490void Heartbeat::Swap(Heartbeat* other) {
10491 if (other == this) return;
10492 InternalSwap(other);
10493}
10494void Heartbeat::InternalSwap(Heartbeat* other) {
10495 using std::swap;
10496 _internal_metadata_.Swap(&other->_internal_metadata_);
10497 swap(heartbeat_signature_, other->heartbeat_signature_);
10498}
10499
10500::google::protobuf::Metadata Heartbeat::GetMetadata() const {
10501 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
10502 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
10503}
10504
10505
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +053010506// ===================================================================
10507
10508void RebootDeviceRequest::InitAsDefaultInstance() {
10509 ::dmi::_RebootDeviceRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
10510 ::dmi::Uuid::internal_default_instance());
10511}
10512class RebootDeviceRequest::HasBitSetters {
10513 public:
10514 static const ::dmi::Uuid& device_uuid(const RebootDeviceRequest* msg);
10515};
10516
10517const ::dmi::Uuid&
10518RebootDeviceRequest::HasBitSetters::device_uuid(const RebootDeviceRequest* msg) {
10519 return *msg->device_uuid_;
10520}
10521void RebootDeviceRequest::clear_device_uuid() {
10522 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
10523 delete device_uuid_;
10524 }
10525 device_uuid_ = nullptr;
10526}
10527#if !defined(_MSC_VER) || _MSC_VER >= 1900
10528const int RebootDeviceRequest::kDeviceUuidFieldNumber;
10529#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
10530
10531RebootDeviceRequest::RebootDeviceRequest()
10532 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
10533 SharedCtor();
10534 // @@protoc_insertion_point(constructor:dmi.RebootDeviceRequest)
10535}
10536RebootDeviceRequest::RebootDeviceRequest(const RebootDeviceRequest& from)
10537 : ::google::protobuf::Message(),
10538 _internal_metadata_(nullptr) {
10539 _internal_metadata_.MergeFrom(from._internal_metadata_);
10540 if (from.has_device_uuid()) {
10541 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
10542 } else {
10543 device_uuid_ = nullptr;
10544 }
10545 // @@protoc_insertion_point(copy_constructor:dmi.RebootDeviceRequest)
10546}
10547
10548void RebootDeviceRequest::SharedCtor() {
10549 ::google::protobuf::internal::InitSCC(
10550 &scc_info_RebootDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
10551 device_uuid_ = nullptr;
10552}
10553
10554RebootDeviceRequest::~RebootDeviceRequest() {
10555 // @@protoc_insertion_point(destructor:dmi.RebootDeviceRequest)
10556 SharedDtor();
10557}
10558
10559void RebootDeviceRequest::SharedDtor() {
10560 if (this != internal_default_instance()) delete device_uuid_;
10561}
10562
10563void RebootDeviceRequest::SetCachedSize(int size) const {
10564 _cached_size_.Set(size);
10565}
10566const RebootDeviceRequest& RebootDeviceRequest::default_instance() {
10567 ::google::protobuf::internal::InitSCC(&::scc_info_RebootDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
10568 return *internal_default_instance();
10569}
10570
10571
10572void RebootDeviceRequest::Clear() {
10573// @@protoc_insertion_point(message_clear_start:dmi.RebootDeviceRequest)
10574 ::google::protobuf::uint32 cached_has_bits = 0;
10575 // Prevent compiler warnings about cached_has_bits being unused
10576 (void) cached_has_bits;
10577
10578 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
10579 delete device_uuid_;
10580 }
10581 device_uuid_ = nullptr;
10582 _internal_metadata_.Clear();
10583}
10584
10585#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10586const char* RebootDeviceRequest::_InternalParse(const char* begin, const char* end, void* object,
10587 ::google::protobuf::internal::ParseContext* ctx) {
10588 auto msg = static_cast<RebootDeviceRequest*>(object);
10589 ::google::protobuf::int32 size; (void)size;
10590 int depth; (void)depth;
10591 ::google::protobuf::uint32 tag;
10592 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
10593 auto ptr = begin;
10594 while (ptr < end) {
10595 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
10596 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
10597 switch (tag >> 3) {
10598 // .dmi.Uuid device_uuid = 1;
10599 case 1: {
10600 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
10601 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
10602 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
10603 parser_till_end = ::dmi::Uuid::_InternalParse;
10604 object = msg->mutable_device_uuid();
10605 if (size > end - ptr) goto len_delim_till_end;
10606 ptr += size;
10607 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
10608 {parser_till_end, object}, ptr - size, ptr));
10609 break;
10610 }
10611 default: {
10612 handle_unusual:
10613 if ((tag & 7) == 4 || tag == 0) {
10614 ctx->EndGroup(tag);
10615 return ptr;
10616 }
10617 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
10618 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
10619 ptr = res.first;
10620 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
10621 if (res.second) return ptr;
10622 }
10623 } // switch
10624 } // while
10625 return ptr;
10626len_delim_till_end:
10627 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
10628 {parser_till_end, object}, size);
10629}
10630#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10631bool RebootDeviceRequest::MergePartialFromCodedStream(
10632 ::google::protobuf::io::CodedInputStream* input) {
10633#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
10634 ::google::protobuf::uint32 tag;
10635 // @@protoc_insertion_point(parse_start:dmi.RebootDeviceRequest)
10636 for (;;) {
10637 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
10638 tag = p.first;
10639 if (!p.second) goto handle_unusual;
10640 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
10641 // .dmi.Uuid device_uuid = 1;
10642 case 1: {
10643 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
10644 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
10645 input, mutable_device_uuid()));
10646 } else {
10647 goto handle_unusual;
10648 }
10649 break;
10650 }
10651
10652 default: {
10653 handle_unusual:
10654 if (tag == 0) {
10655 goto success;
10656 }
10657 DO_(::google::protobuf::internal::WireFormat::SkipField(
10658 input, tag, _internal_metadata_.mutable_unknown_fields()));
10659 break;
10660 }
10661 }
10662 }
10663success:
10664 // @@protoc_insertion_point(parse_success:dmi.RebootDeviceRequest)
10665 return true;
10666failure:
10667 // @@protoc_insertion_point(parse_failure:dmi.RebootDeviceRequest)
10668 return false;
10669#undef DO_
10670}
10671#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10672
10673void RebootDeviceRequest::SerializeWithCachedSizes(
10674 ::google::protobuf::io::CodedOutputStream* output) const {
10675 // @@protoc_insertion_point(serialize_start:dmi.RebootDeviceRequest)
10676 ::google::protobuf::uint32 cached_has_bits = 0;
10677 (void) cached_has_bits;
10678
10679 // .dmi.Uuid device_uuid = 1;
10680 if (this->has_device_uuid()) {
10681 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10682 1, HasBitSetters::device_uuid(this), output);
10683 }
10684
10685 if (_internal_metadata_.have_unknown_fields()) {
10686 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
10687 _internal_metadata_.unknown_fields(), output);
10688 }
10689 // @@protoc_insertion_point(serialize_end:dmi.RebootDeviceRequest)
10690}
10691
10692::google::protobuf::uint8* RebootDeviceRequest::InternalSerializeWithCachedSizesToArray(
10693 ::google::protobuf::uint8* target) const {
10694 // @@protoc_insertion_point(serialize_to_array_start:dmi.RebootDeviceRequest)
10695 ::google::protobuf::uint32 cached_has_bits = 0;
10696 (void) cached_has_bits;
10697
10698 // .dmi.Uuid device_uuid = 1;
10699 if (this->has_device_uuid()) {
10700 target = ::google::protobuf::internal::WireFormatLite::
10701 InternalWriteMessageToArray(
10702 1, HasBitSetters::device_uuid(this), target);
10703 }
10704
10705 if (_internal_metadata_.have_unknown_fields()) {
10706 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
10707 _internal_metadata_.unknown_fields(), target);
10708 }
10709 // @@protoc_insertion_point(serialize_to_array_end:dmi.RebootDeviceRequest)
10710 return target;
10711}
10712
10713size_t RebootDeviceRequest::ByteSizeLong() const {
10714// @@protoc_insertion_point(message_byte_size_start:dmi.RebootDeviceRequest)
10715 size_t total_size = 0;
10716
10717 if (_internal_metadata_.have_unknown_fields()) {
10718 total_size +=
10719 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
10720 _internal_metadata_.unknown_fields());
10721 }
10722 ::google::protobuf::uint32 cached_has_bits = 0;
10723 // Prevent compiler warnings about cached_has_bits being unused
10724 (void) cached_has_bits;
10725
10726 // .dmi.Uuid device_uuid = 1;
10727 if (this->has_device_uuid()) {
10728 total_size += 1 +
10729 ::google::protobuf::internal::WireFormatLite::MessageSize(
10730 *device_uuid_);
10731 }
10732
10733 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
10734 SetCachedSize(cached_size);
10735 return total_size;
10736}
10737
10738void RebootDeviceRequest::MergeFrom(const ::google::protobuf::Message& from) {
10739// @@protoc_insertion_point(generalized_merge_from_start:dmi.RebootDeviceRequest)
10740 GOOGLE_DCHECK_NE(&from, this);
10741 const RebootDeviceRequest* source =
10742 ::google::protobuf::DynamicCastToGenerated<RebootDeviceRequest>(
10743 &from);
10744 if (source == nullptr) {
10745 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.RebootDeviceRequest)
10746 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
10747 } else {
10748 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.RebootDeviceRequest)
10749 MergeFrom(*source);
10750 }
10751}
10752
10753void RebootDeviceRequest::MergeFrom(const RebootDeviceRequest& from) {
10754// @@protoc_insertion_point(class_specific_merge_from_start:dmi.RebootDeviceRequest)
10755 GOOGLE_DCHECK_NE(&from, this);
10756 _internal_metadata_.MergeFrom(from._internal_metadata_);
10757 ::google::protobuf::uint32 cached_has_bits = 0;
10758 (void) cached_has_bits;
10759
10760 if (from.has_device_uuid()) {
10761 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
10762 }
10763}
10764
10765void RebootDeviceRequest::CopyFrom(const ::google::protobuf::Message& from) {
10766// @@protoc_insertion_point(generalized_copy_from_start:dmi.RebootDeviceRequest)
10767 if (&from == this) return;
10768 Clear();
10769 MergeFrom(from);
10770}
10771
10772void RebootDeviceRequest::CopyFrom(const RebootDeviceRequest& from) {
10773// @@protoc_insertion_point(class_specific_copy_from_start:dmi.RebootDeviceRequest)
10774 if (&from == this) return;
10775 Clear();
10776 MergeFrom(from);
10777}
10778
10779bool RebootDeviceRequest::IsInitialized() const {
10780 return true;
10781}
10782
10783void RebootDeviceRequest::Swap(RebootDeviceRequest* other) {
10784 if (other == this) return;
10785 InternalSwap(other);
10786}
10787void RebootDeviceRequest::InternalSwap(RebootDeviceRequest* other) {
10788 using std::swap;
10789 _internal_metadata_.Swap(&other->_internal_metadata_);
10790 swap(device_uuid_, other->device_uuid_);
10791}
10792
10793::google::protobuf::Metadata RebootDeviceRequest::GetMetadata() const {
10794 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
10795 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
10796}
10797
10798
10799// ===================================================================
10800
10801void RebootDeviceResponse::InitAsDefaultInstance() {
10802}
10803class RebootDeviceResponse::HasBitSetters {
10804 public:
10805};
10806
10807#if !defined(_MSC_VER) || _MSC_VER >= 1900
10808const int RebootDeviceResponse::kStatusFieldNumber;
10809const int RebootDeviceResponse::kReasonFieldNumber;
10810const int RebootDeviceResponse::kReasonDetailFieldNumber;
10811#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
10812
10813RebootDeviceResponse::RebootDeviceResponse()
10814 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
10815 SharedCtor();
10816 // @@protoc_insertion_point(constructor:dmi.RebootDeviceResponse)
10817}
10818RebootDeviceResponse::RebootDeviceResponse(const RebootDeviceResponse& from)
10819 : ::google::protobuf::Message(),
10820 _internal_metadata_(nullptr) {
10821 _internal_metadata_.MergeFrom(from._internal_metadata_);
10822 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10823 if (from.reason_detail().size() > 0) {
10824 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
10825 }
10826 ::memcpy(&status_, &from.status_,
10827 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
10828 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
10829 // @@protoc_insertion_point(copy_constructor:dmi.RebootDeviceResponse)
10830}
10831
10832void RebootDeviceResponse::SharedCtor() {
10833 ::google::protobuf::internal::InitSCC(
10834 &scc_info_RebootDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
10835 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10836 ::memset(&status_, 0, static_cast<size_t>(
10837 reinterpret_cast<char*>(&reason_) -
10838 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
10839}
10840
10841RebootDeviceResponse::~RebootDeviceResponse() {
10842 // @@protoc_insertion_point(destructor:dmi.RebootDeviceResponse)
10843 SharedDtor();
10844}
10845
10846void RebootDeviceResponse::SharedDtor() {
10847 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10848}
10849
10850void RebootDeviceResponse::SetCachedSize(int size) const {
10851 _cached_size_.Set(size);
10852}
10853const RebootDeviceResponse& RebootDeviceResponse::default_instance() {
10854 ::google::protobuf::internal::InitSCC(&::scc_info_RebootDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
10855 return *internal_default_instance();
10856}
10857
10858
10859void RebootDeviceResponse::Clear() {
10860// @@protoc_insertion_point(message_clear_start:dmi.RebootDeviceResponse)
10861 ::google::protobuf::uint32 cached_has_bits = 0;
10862 // Prevent compiler warnings about cached_has_bits being unused
10863 (void) cached_has_bits;
10864
10865 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10866 ::memset(&status_, 0, static_cast<size_t>(
10867 reinterpret_cast<char*>(&reason_) -
10868 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
10869 _internal_metadata_.Clear();
10870}
10871
10872#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10873const char* RebootDeviceResponse::_InternalParse(const char* begin, const char* end, void* object,
10874 ::google::protobuf::internal::ParseContext* ctx) {
10875 auto msg = static_cast<RebootDeviceResponse*>(object);
10876 ::google::protobuf::int32 size; (void)size;
10877 int depth; (void)depth;
10878 ::google::protobuf::uint32 tag;
10879 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
10880 auto ptr = begin;
10881 while (ptr < end) {
10882 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
10883 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
10884 switch (tag >> 3) {
10885 // .dmi.Status status = 3;
10886 case 3: {
10887 if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual;
10888 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
10889 msg->set_status(static_cast<::dmi::Status>(val));
10890 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
10891 break;
10892 }
10893 // .dmi.RebootDeviceResponse.Reason reason = 4;
10894 case 4: {
10895 if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual;
10896 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
10897 msg->set_reason(static_cast<::dmi::RebootDeviceResponse_Reason>(val));
10898 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
10899 break;
10900 }
10901 // string reason_detail = 5;
10902 case 5: {
10903 if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual;
10904 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
10905 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
10906 ctx->extra_parse_data().SetFieldName("dmi.RebootDeviceResponse.reason_detail");
10907 object = msg->mutable_reason_detail();
10908 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
10909 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
10910 goto string_till_end;
10911 }
10912 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
10913 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
10914 ptr += size;
10915 break;
10916 }
10917 default: {
10918 handle_unusual:
10919 if ((tag & 7) == 4 || tag == 0) {
10920 ctx->EndGroup(tag);
10921 return ptr;
10922 }
10923 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
10924 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
10925 ptr = res.first;
10926 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
10927 if (res.second) return ptr;
10928 }
10929 } // switch
10930 } // while
10931 return ptr;
10932string_till_end:
10933 static_cast<::std::string*>(object)->clear();
10934 static_cast<::std::string*>(object)->reserve(size);
10935 goto len_delim_till_end;
10936len_delim_till_end:
10937 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
10938 {parser_till_end, object}, size);
10939}
10940#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10941bool RebootDeviceResponse::MergePartialFromCodedStream(
10942 ::google::protobuf::io::CodedInputStream* input) {
10943#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
10944 ::google::protobuf::uint32 tag;
10945 // @@protoc_insertion_point(parse_start:dmi.RebootDeviceResponse)
10946 for (;;) {
10947 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
10948 tag = p.first;
10949 if (!p.second) goto handle_unusual;
10950 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
10951 // .dmi.Status status = 3;
10952 case 3: {
10953 if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) {
10954 int value = 0;
10955 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10956 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
10957 input, &value)));
10958 set_status(static_cast< ::dmi::Status >(value));
10959 } else {
10960 goto handle_unusual;
10961 }
10962 break;
10963 }
10964
10965 // .dmi.RebootDeviceResponse.Reason reason = 4;
10966 case 4: {
10967 if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) {
10968 int value = 0;
10969 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10970 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
10971 input, &value)));
10972 set_reason(static_cast< ::dmi::RebootDeviceResponse_Reason >(value));
10973 } else {
10974 goto handle_unusual;
10975 }
10976 break;
10977 }
10978
10979 // string reason_detail = 5;
10980 case 5: {
10981 if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) {
10982 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
10983 input, this->mutable_reason_detail()));
10984 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
10985 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
10986 ::google::protobuf::internal::WireFormatLite::PARSE,
10987 "dmi.RebootDeviceResponse.reason_detail"));
10988 } else {
10989 goto handle_unusual;
10990 }
10991 break;
10992 }
10993
10994 default: {
10995 handle_unusual:
10996 if (tag == 0) {
10997 goto success;
10998 }
10999 DO_(::google::protobuf::internal::WireFormat::SkipField(
11000 input, tag, _internal_metadata_.mutable_unknown_fields()));
11001 break;
11002 }
11003 }
11004 }
11005success:
11006 // @@protoc_insertion_point(parse_success:dmi.RebootDeviceResponse)
11007 return true;
11008failure:
11009 // @@protoc_insertion_point(parse_failure:dmi.RebootDeviceResponse)
11010 return false;
11011#undef DO_
11012}
11013#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
11014
11015void RebootDeviceResponse::SerializeWithCachedSizes(
11016 ::google::protobuf::io::CodedOutputStream* output) const {
11017 // @@protoc_insertion_point(serialize_start:dmi.RebootDeviceResponse)
11018 ::google::protobuf::uint32 cached_has_bits = 0;
11019 (void) cached_has_bits;
11020
11021 // .dmi.Status status = 3;
11022 if (this->status() != 0) {
11023 ::google::protobuf::internal::WireFormatLite::WriteEnum(
11024 3, this->status(), output);
11025 }
11026
11027 // .dmi.RebootDeviceResponse.Reason reason = 4;
11028 if (this->reason() != 0) {
11029 ::google::protobuf::internal::WireFormatLite::WriteEnum(
11030 4, this->reason(), output);
11031 }
11032
11033 // string reason_detail = 5;
11034 if (this->reason_detail().size() > 0) {
11035 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
11036 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
11037 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
11038 "dmi.RebootDeviceResponse.reason_detail");
11039 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
11040 5, this->reason_detail(), output);
11041 }
11042
11043 if (_internal_metadata_.have_unknown_fields()) {
11044 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
11045 _internal_metadata_.unknown_fields(), output);
11046 }
11047 // @@protoc_insertion_point(serialize_end:dmi.RebootDeviceResponse)
11048}
11049
11050::google::protobuf::uint8* RebootDeviceResponse::InternalSerializeWithCachedSizesToArray(
11051 ::google::protobuf::uint8* target) const {
11052 // @@protoc_insertion_point(serialize_to_array_start:dmi.RebootDeviceResponse)
11053 ::google::protobuf::uint32 cached_has_bits = 0;
11054 (void) cached_has_bits;
11055
11056 // .dmi.Status status = 3;
11057 if (this->status() != 0) {
11058 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
11059 3, this->status(), target);
11060 }
11061
11062 // .dmi.RebootDeviceResponse.Reason reason = 4;
11063 if (this->reason() != 0) {
11064 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
11065 4, this->reason(), target);
11066 }
11067
11068 // string reason_detail = 5;
11069 if (this->reason_detail().size() > 0) {
11070 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
11071 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
11072 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
11073 "dmi.RebootDeviceResponse.reason_detail");
11074 target =
11075 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
11076 5, this->reason_detail(), target);
11077 }
11078
11079 if (_internal_metadata_.have_unknown_fields()) {
11080 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
11081 _internal_metadata_.unknown_fields(), target);
11082 }
11083 // @@protoc_insertion_point(serialize_to_array_end:dmi.RebootDeviceResponse)
11084 return target;
11085}
11086
11087size_t RebootDeviceResponse::ByteSizeLong() const {
11088// @@protoc_insertion_point(message_byte_size_start:dmi.RebootDeviceResponse)
11089 size_t total_size = 0;
11090
11091 if (_internal_metadata_.have_unknown_fields()) {
11092 total_size +=
11093 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
11094 _internal_metadata_.unknown_fields());
11095 }
11096 ::google::protobuf::uint32 cached_has_bits = 0;
11097 // Prevent compiler warnings about cached_has_bits being unused
11098 (void) cached_has_bits;
11099
11100 // string reason_detail = 5;
11101 if (this->reason_detail().size() > 0) {
11102 total_size += 1 +
11103 ::google::protobuf::internal::WireFormatLite::StringSize(
11104 this->reason_detail());
11105 }
11106
11107 // .dmi.Status status = 3;
11108 if (this->status() != 0) {
11109 total_size += 1 +
11110 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
11111 }
11112
11113 // .dmi.RebootDeviceResponse.Reason reason = 4;
11114 if (this->reason() != 0) {
11115 total_size += 1 +
11116 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
11117 }
11118
11119 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
11120 SetCachedSize(cached_size);
11121 return total_size;
11122}
11123
11124void RebootDeviceResponse::MergeFrom(const ::google::protobuf::Message& from) {
11125// @@protoc_insertion_point(generalized_merge_from_start:dmi.RebootDeviceResponse)
11126 GOOGLE_DCHECK_NE(&from, this);
11127 const RebootDeviceResponse* source =
11128 ::google::protobuf::DynamicCastToGenerated<RebootDeviceResponse>(
11129 &from);
11130 if (source == nullptr) {
11131 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.RebootDeviceResponse)
11132 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
11133 } else {
11134 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.RebootDeviceResponse)
11135 MergeFrom(*source);
11136 }
11137}
11138
11139void RebootDeviceResponse::MergeFrom(const RebootDeviceResponse& from) {
11140// @@protoc_insertion_point(class_specific_merge_from_start:dmi.RebootDeviceResponse)
11141 GOOGLE_DCHECK_NE(&from, this);
11142 _internal_metadata_.MergeFrom(from._internal_metadata_);
11143 ::google::protobuf::uint32 cached_has_bits = 0;
11144 (void) cached_has_bits;
11145
11146 if (from.reason_detail().size() > 0) {
11147
11148 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
11149 }
11150 if (from.status() != 0) {
11151 set_status(from.status());
11152 }
11153 if (from.reason() != 0) {
11154 set_reason(from.reason());
11155 }
11156}
11157
11158void RebootDeviceResponse::CopyFrom(const ::google::protobuf::Message& from) {
11159// @@protoc_insertion_point(generalized_copy_from_start:dmi.RebootDeviceResponse)
11160 if (&from == this) return;
11161 Clear();
11162 MergeFrom(from);
11163}
11164
11165void RebootDeviceResponse::CopyFrom(const RebootDeviceResponse& from) {
11166// @@protoc_insertion_point(class_specific_copy_from_start:dmi.RebootDeviceResponse)
11167 if (&from == this) return;
11168 Clear();
11169 MergeFrom(from);
11170}
11171
11172bool RebootDeviceResponse::IsInitialized() const {
11173 return true;
11174}
11175
11176void RebootDeviceResponse::Swap(RebootDeviceResponse* other) {
11177 if (other == this) return;
11178 InternalSwap(other);
11179}
11180void RebootDeviceResponse::InternalSwap(RebootDeviceResponse* other) {
11181 using std::swap;
11182 _internal_metadata_.Swap(&other->_internal_metadata_);
11183 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
11184 GetArenaNoVirtual());
11185 swap(status_, other->status_);
11186 swap(reason_, other->reason_);
11187}
11188
11189::google::protobuf::Metadata RebootDeviceResponse::GetMetadata() const {
11190 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
11191 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
11192}
11193
11194
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +053011195// @@protoc_insertion_point(namespace_scope)
11196} // namespace dmi
11197namespace google {
11198namespace protobuf {
11199template<> PROTOBUF_NOINLINE ::dmi::PhysicalInventoryRequest* Arena::CreateMaybeMessage< ::dmi::PhysicalInventoryRequest >(Arena* arena) {
11200 return Arena::CreateInternal< ::dmi::PhysicalInventoryRequest >(arena);
11201}
11202template<> PROTOBUF_NOINLINE ::dmi::PhysicalInventoryResponse* Arena::CreateMaybeMessage< ::dmi::PhysicalInventoryResponse >(Arena* arena) {
11203 return Arena::CreateInternal< ::dmi::PhysicalInventoryResponse >(arena);
11204}
11205template<> PROTOBUF_NOINLINE ::dmi::HWComponentInfoGetRequest* Arena::CreateMaybeMessage< ::dmi::HWComponentInfoGetRequest >(Arena* arena) {
11206 return Arena::CreateInternal< ::dmi::HWComponentInfoGetRequest >(arena);
11207}
11208template<> PROTOBUF_NOINLINE ::dmi::HWComponentInfoGetResponse* Arena::CreateMaybeMessage< ::dmi::HWComponentInfoGetResponse >(Arena* arena) {
11209 return Arena::CreateInternal< ::dmi::HWComponentInfoGetResponse >(arena);
11210}
11211template<> PROTOBUF_NOINLINE ::dmi::HWComponentInfoSetRequest* Arena::CreateMaybeMessage< ::dmi::HWComponentInfoSetRequest >(Arena* arena) {
11212 return Arena::CreateInternal< ::dmi::HWComponentInfoSetRequest >(arena);
11213}
11214template<> PROTOBUF_NOINLINE ::dmi::HWComponentInfoSetResponse* Arena::CreateMaybeMessage< ::dmi::HWComponentInfoSetResponse >(Arena* arena) {
11215 return Arena::CreateInternal< ::dmi::HWComponentInfoSetResponse >(arena);
11216}
11217template<> PROTOBUF_NOINLINE ::dmi::StartManagingDeviceResponse* Arena::CreateMaybeMessage< ::dmi::StartManagingDeviceResponse >(Arena* arena) {
11218 return Arena::CreateInternal< ::dmi::StartManagingDeviceResponse >(arena);
11219}
11220template<> PROTOBUF_NOINLINE ::dmi::StopManagingDeviceRequest* Arena::CreateMaybeMessage< ::dmi::StopManagingDeviceRequest >(Arena* arena) {
11221 return Arena::CreateInternal< ::dmi::StopManagingDeviceRequest >(arena);
11222}
11223template<> PROTOBUF_NOINLINE ::dmi::StopManagingDeviceResponse* Arena::CreateMaybeMessage< ::dmi::StopManagingDeviceResponse >(Arena* arena) {
11224 return Arena::CreateInternal< ::dmi::StopManagingDeviceResponse >(arena);
11225}
11226template<> PROTOBUF_NOINLINE ::dmi::ManagedDeviceInfo* Arena::CreateMaybeMessage< ::dmi::ManagedDeviceInfo >(Arena* arena) {
11227 return Arena::CreateInternal< ::dmi::ManagedDeviceInfo >(arena);
11228}
11229template<> PROTOBUF_NOINLINE ::dmi::ManagedDevicesResponse* Arena::CreateMaybeMessage< ::dmi::ManagedDevicesResponse >(Arena* arena) {
11230 return Arena::CreateInternal< ::dmi::ManagedDevicesResponse >(arena);
11231}
11232template<> PROTOBUF_NOINLINE ::dmi::SetLoggingEndpointRequest* Arena::CreateMaybeMessage< ::dmi::SetLoggingEndpointRequest >(Arena* arena) {
11233 return Arena::CreateInternal< ::dmi::SetLoggingEndpointRequest >(arena);
11234}
11235template<> PROTOBUF_NOINLINE ::dmi::SetRemoteEndpointResponse* Arena::CreateMaybeMessage< ::dmi::SetRemoteEndpointResponse >(Arena* arena) {
11236 return Arena::CreateInternal< ::dmi::SetRemoteEndpointResponse >(arena);
11237}
11238template<> PROTOBUF_NOINLINE ::dmi::GetLoggingEndpointResponse* Arena::CreateMaybeMessage< ::dmi::GetLoggingEndpointResponse >(Arena* arena) {
11239 return Arena::CreateInternal< ::dmi::GetLoggingEndpointResponse >(arena);
11240}
11241template<> PROTOBUF_NOINLINE ::dmi::SetMsgBusEndpointRequest* Arena::CreateMaybeMessage< ::dmi::SetMsgBusEndpointRequest >(Arena* arena) {
11242 return Arena::CreateInternal< ::dmi::SetMsgBusEndpointRequest >(arena);
11243}
11244template<> PROTOBUF_NOINLINE ::dmi::GetMsgBusEndpointResponse* Arena::CreateMaybeMessage< ::dmi::GetMsgBusEndpointResponse >(Arena* arena) {
11245 return Arena::CreateInternal< ::dmi::GetMsgBusEndpointResponse >(arena);
11246}
11247template<> PROTOBUF_NOINLINE ::dmi::EntitiesLogLevel* Arena::CreateMaybeMessage< ::dmi::EntitiesLogLevel >(Arena* arena) {
11248 return Arena::CreateInternal< ::dmi::EntitiesLogLevel >(arena);
11249}
11250template<> PROTOBUF_NOINLINE ::dmi::SetLogLevelRequest* Arena::CreateMaybeMessage< ::dmi::SetLogLevelRequest >(Arena* arena) {
11251 return Arena::CreateInternal< ::dmi::SetLogLevelRequest >(arena);
11252}
11253template<> PROTOBUF_NOINLINE ::dmi::SetLogLevelResponse* Arena::CreateMaybeMessage< ::dmi::SetLogLevelResponse >(Arena* arena) {
11254 return Arena::CreateInternal< ::dmi::SetLogLevelResponse >(arena);
11255}
11256template<> PROTOBUF_NOINLINE ::dmi::GetLogLevelRequest* Arena::CreateMaybeMessage< ::dmi::GetLogLevelRequest >(Arena* arena) {
11257 return Arena::CreateInternal< ::dmi::GetLogLevelRequest >(arena);
11258}
11259template<> PROTOBUF_NOINLINE ::dmi::GetLogLevelResponse* Arena::CreateMaybeMessage< ::dmi::GetLogLevelResponse >(Arena* arena) {
11260 return Arena::CreateInternal< ::dmi::GetLogLevelResponse >(arena);
11261}
11262template<> PROTOBUF_NOINLINE ::dmi::GetLoggableEntitiesRequest* Arena::CreateMaybeMessage< ::dmi::GetLoggableEntitiesRequest >(Arena* arena) {
11263 return Arena::CreateInternal< ::dmi::GetLoggableEntitiesRequest >(arena);
11264}
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +053011265template<> PROTOBUF_NOINLINE ::dmi::Heartbeat* Arena::CreateMaybeMessage< ::dmi::Heartbeat >(Arena* arena) {
11266 return Arena::CreateInternal< ::dmi::Heartbeat >(arena);
11267}
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +053011268template<> PROTOBUF_NOINLINE ::dmi::RebootDeviceRequest* Arena::CreateMaybeMessage< ::dmi::RebootDeviceRequest >(Arena* arena) {
11269 return Arena::CreateInternal< ::dmi::RebootDeviceRequest >(arena);
11270}
11271template<> PROTOBUF_NOINLINE ::dmi::RebootDeviceResponse* Arena::CreateMaybeMessage< ::dmi::RebootDeviceResponse >(Arena* arena) {
11272 return Arena::CreateInternal< ::dmi::RebootDeviceResponse >(arena);
11273}
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +053011274} // namespace protobuf
11275} // namespace google
11276
11277// @@protoc_insertion_point(global_scope)
11278#include <google/protobuf/port_undef.inc>