blob: 850ac0efa3acbe0f47c4b371207fbe3056bf6a0f [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;
Girish Gowdra997432d2022-03-10 15:59:33 -080021extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<4> scc_info_ModifiableComponent_dmi_2fhw_2eproto;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +053022extern 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_;
amit.ghosh93183512024-05-28 22:37:27 +0200114class SetDmLogLevelRequestDefaultTypeInternal {
115 public:
116 ::google::protobuf::internal::ExplicitlyConstructed<SetDmLogLevelRequest> _instance;
117} _SetDmLogLevelRequest_default_instance_;
118class SetDmLogLevelResponseDefaultTypeInternal {
119 public:
120 ::google::protobuf::internal::ExplicitlyConstructed<SetDmLogLevelResponse> _instance;
121} _SetDmLogLevelResponse_default_instance_;
122class GetDmLogLevelRequestDefaultTypeInternal {
123 public:
124 ::google::protobuf::internal::ExplicitlyConstructed<GetDmLogLevelRequest> _instance;
125} _GetDmLogLevelRequest_default_instance_;
126class GetDmLogLevelResponseDefaultTypeInternal {
127 public:
128 ::google::protobuf::internal::ExplicitlyConstructed<GetDmLogLevelResponse> _instance;
129} _GetDmLogLevelResponse_default_instance_;
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +0530130class HeartbeatDefaultTypeInternal {
131 public:
132 ::google::protobuf::internal::ExplicitlyConstructed<Heartbeat> _instance;
133} _Heartbeat_default_instance_;
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530134class RebootDeviceRequestDefaultTypeInternal {
135 public:
136 ::google::protobuf::internal::ExplicitlyConstructed<RebootDeviceRequest> _instance;
137} _RebootDeviceRequest_default_instance_;
138class RebootDeviceResponseDefaultTypeInternal {
139 public:
140 ::google::protobuf::internal::ExplicitlyConstructed<RebootDeviceResponse> _instance;
141} _RebootDeviceResponse_default_instance_;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530142} // namespace dmi
143static void InitDefaultsPhysicalInventoryRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() {
144 GOOGLE_PROTOBUF_VERIFY_VERSION;
145
146 {
147 void* ptr = &::dmi::_PhysicalInventoryRequest_default_instance_;
148 new (ptr) ::dmi::PhysicalInventoryRequest();
149 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
150 }
151 ::dmi::PhysicalInventoryRequest::InitAsDefaultInstance();
152}
153
154::google::protobuf::internal::SCCInfo<1> scc_info_PhysicalInventoryRequest_dmi_2fhw_5fmanagement_5fservice_2eproto =
155 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsPhysicalInventoryRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, {
156 &scc_info_Uuid_dmi_2fhw_2eproto.base,}};
157
158static void InitDefaultsPhysicalInventoryResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() {
159 GOOGLE_PROTOBUF_VERIFY_VERSION;
160
161 {
162 void* ptr = &::dmi::_PhysicalInventoryResponse_default_instance_;
163 new (ptr) ::dmi::PhysicalInventoryResponse();
164 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
165 }
166 ::dmi::PhysicalInventoryResponse::InitAsDefaultInstance();
167}
168
169::google::protobuf::internal::SCCInfo<1> scc_info_PhysicalInventoryResponse_dmi_2fhw_5fmanagement_5fservice_2eproto =
170 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsPhysicalInventoryResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {
171 &scc_info_Hardware_dmi_2fhw_2eproto.base,}};
172
173static void InitDefaultsHWComponentInfoGetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() {
174 GOOGLE_PROTOBUF_VERIFY_VERSION;
175
176 {
177 void* ptr = &::dmi::_HWComponentInfoGetRequest_default_instance_;
178 new (ptr) ::dmi::HWComponentInfoGetRequest();
179 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
180 }
181 ::dmi::HWComponentInfoGetRequest::InitAsDefaultInstance();
182}
183
184::google::protobuf::internal::SCCInfo<1> scc_info_HWComponentInfoGetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto =
185 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsHWComponentInfoGetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, {
186 &scc_info_Uuid_dmi_2fhw_2eproto.base,}};
187
188static void InitDefaultsHWComponentInfoGetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() {
189 GOOGLE_PROTOBUF_VERIFY_VERSION;
190
191 {
192 void* ptr = &::dmi::_HWComponentInfoGetResponse_default_instance_;
193 new (ptr) ::dmi::HWComponentInfoGetResponse();
194 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
195 }
196 ::dmi::HWComponentInfoGetResponse::InitAsDefaultInstance();
197}
198
199::google::protobuf::internal::SCCInfo<1> scc_info_HWComponentInfoGetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto =
200 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsHWComponentInfoGetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {
201 &scc_info_Component_dmi_2fhw_2eproto.base,}};
202
203static void InitDefaultsHWComponentInfoSetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() {
204 GOOGLE_PROTOBUF_VERIFY_VERSION;
205
206 {
207 void* ptr = &::dmi::_HWComponentInfoSetRequest_default_instance_;
208 new (ptr) ::dmi::HWComponentInfoSetRequest();
209 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
210 }
211 ::dmi::HWComponentInfoSetRequest::InitAsDefaultInstance();
212}
213
214::google::protobuf::internal::SCCInfo<2> scc_info_HWComponentInfoSetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto =
215 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsHWComponentInfoSetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, {
216 &scc_info_Uuid_dmi_2fhw_2eproto.base,
217 &scc_info_ModifiableComponent_dmi_2fhw_2eproto.base,}};
218
219static void InitDefaultsHWComponentInfoSetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() {
220 GOOGLE_PROTOBUF_VERIFY_VERSION;
221
222 {
223 void* ptr = &::dmi::_HWComponentInfoSetResponse_default_instance_;
224 new (ptr) ::dmi::HWComponentInfoSetResponse();
225 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
226 }
227 ::dmi::HWComponentInfoSetResponse::InitAsDefaultInstance();
228}
229
230::google::protobuf::internal::SCCInfo<0> scc_info_HWComponentInfoSetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto =
231 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsHWComponentInfoSetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}};
232
233static void InitDefaultsStartManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() {
234 GOOGLE_PROTOBUF_VERIFY_VERSION;
235
236 {
237 void* ptr = &::dmi::_StartManagingDeviceResponse_default_instance_;
238 new (ptr) ::dmi::StartManagingDeviceResponse();
239 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
240 }
241 ::dmi::StartManagingDeviceResponse::InitAsDefaultInstance();
242}
243
244::google::protobuf::internal::SCCInfo<1> scc_info_StartManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto =
245 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsStartManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {
246 &scc_info_Uuid_dmi_2fhw_2eproto.base,}};
247
248static void InitDefaultsStopManagingDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() {
249 GOOGLE_PROTOBUF_VERIFY_VERSION;
250
251 {
252 void* ptr = &::dmi::_StopManagingDeviceRequest_default_instance_;
253 new (ptr) ::dmi::StopManagingDeviceRequest();
254 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
255 }
256 ::dmi::StopManagingDeviceRequest::InitAsDefaultInstance();
257}
258
259::google::protobuf::internal::SCCInfo<0> scc_info_StopManagingDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto =
260 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStopManagingDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}};
261
262static void InitDefaultsStopManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() {
263 GOOGLE_PROTOBUF_VERIFY_VERSION;
264
265 {
266 void* ptr = &::dmi::_StopManagingDeviceResponse_default_instance_;
267 new (ptr) ::dmi::StopManagingDeviceResponse();
268 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
269 }
270 ::dmi::StopManagingDeviceResponse::InitAsDefaultInstance();
271}
272
273::google::protobuf::internal::SCCInfo<0> scc_info_StopManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto =
274 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStopManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}};
275
276static void InitDefaultsManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto() {
277 GOOGLE_PROTOBUF_VERIFY_VERSION;
278
279 {
280 void* ptr = &::dmi::_ManagedDeviceInfo_default_instance_;
281 new (ptr) ::dmi::ManagedDeviceInfo();
282 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
283 }
284 ::dmi::ManagedDeviceInfo::InitAsDefaultInstance();
285}
286
287::google::protobuf::internal::SCCInfo<2> scc_info_ManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto =
288 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto}, {
289 &scc_info_ModifiableComponent_dmi_2fhw_2eproto.base,
290 &scc_info_Uuid_dmi_2fhw_2eproto.base,}};
291
292static void InitDefaultsManagedDevicesResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() {
293 GOOGLE_PROTOBUF_VERIFY_VERSION;
294
295 {
296 void* ptr = &::dmi::_ManagedDevicesResponse_default_instance_;
297 new (ptr) ::dmi::ManagedDevicesResponse();
298 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
299 }
300 ::dmi::ManagedDevicesResponse::InitAsDefaultInstance();
301}
302
303::google::protobuf::internal::SCCInfo<1> scc_info_ManagedDevicesResponse_dmi_2fhw_5fmanagement_5fservice_2eproto =
304 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsManagedDevicesResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {
305 &scc_info_ManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto.base,}};
306
307static void InitDefaultsSetLoggingEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() {
308 GOOGLE_PROTOBUF_VERIFY_VERSION;
309
310 {
311 void* ptr = &::dmi::_SetLoggingEndpointRequest_default_instance_;
312 new (ptr) ::dmi::SetLoggingEndpointRequest();
313 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
314 }
315 ::dmi::SetLoggingEndpointRequest::InitAsDefaultInstance();
316}
317
318::google::protobuf::internal::SCCInfo<1> scc_info_SetLoggingEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto =
319 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsSetLoggingEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, {
320 &scc_info_Uuid_dmi_2fhw_2eproto.base,}};
321
322static void InitDefaultsSetRemoteEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() {
323 GOOGLE_PROTOBUF_VERIFY_VERSION;
324
325 {
326 void* ptr = &::dmi::_SetRemoteEndpointResponse_default_instance_;
327 new (ptr) ::dmi::SetRemoteEndpointResponse();
328 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
329 }
330 ::dmi::SetRemoteEndpointResponse::InitAsDefaultInstance();
331}
332
333::google::protobuf::internal::SCCInfo<0> scc_info_SetRemoteEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto =
334 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSetRemoteEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}};
335
336static void InitDefaultsGetLoggingEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() {
337 GOOGLE_PROTOBUF_VERIFY_VERSION;
338
339 {
340 void* ptr = &::dmi::_GetLoggingEndpointResponse_default_instance_;
341 new (ptr) ::dmi::GetLoggingEndpointResponse();
342 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
343 }
344 ::dmi::GetLoggingEndpointResponse::InitAsDefaultInstance();
345}
346
347::google::protobuf::internal::SCCInfo<0> scc_info_GetLoggingEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto =
348 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetLoggingEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}};
349
350static void InitDefaultsSetMsgBusEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() {
351 GOOGLE_PROTOBUF_VERIFY_VERSION;
352
353 {
354 void* ptr = &::dmi::_SetMsgBusEndpointRequest_default_instance_;
355 new (ptr) ::dmi::SetMsgBusEndpointRequest();
356 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
357 }
358 ::dmi::SetMsgBusEndpointRequest::InitAsDefaultInstance();
359}
360
361::google::protobuf::internal::SCCInfo<0> scc_info_SetMsgBusEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto =
362 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSetMsgBusEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}};
363
364static void InitDefaultsGetMsgBusEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() {
365 GOOGLE_PROTOBUF_VERIFY_VERSION;
366
367 {
368 void* ptr = &::dmi::_GetMsgBusEndpointResponse_default_instance_;
369 new (ptr) ::dmi::GetMsgBusEndpointResponse();
370 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
371 }
372 ::dmi::GetMsgBusEndpointResponse::InitAsDefaultInstance();
373}
374
375::google::protobuf::internal::SCCInfo<0> scc_info_GetMsgBusEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto =
376 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetMsgBusEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}};
377
378static void InitDefaultsEntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto() {
379 GOOGLE_PROTOBUF_VERIFY_VERSION;
380
381 {
382 void* ptr = &::dmi::_EntitiesLogLevel_default_instance_;
383 new (ptr) ::dmi::EntitiesLogLevel();
384 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
385 }
386 ::dmi::EntitiesLogLevel::InitAsDefaultInstance();
387}
388
389::google::protobuf::internal::SCCInfo<0> scc_info_EntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto =
390 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}};
391
392static void InitDefaultsSetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() {
393 GOOGLE_PROTOBUF_VERIFY_VERSION;
394
395 {
396 void* ptr = &::dmi::_SetLogLevelRequest_default_instance_;
397 new (ptr) ::dmi::SetLogLevelRequest();
398 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
399 }
400 ::dmi::SetLogLevelRequest::InitAsDefaultInstance();
401}
402
403::google::protobuf::internal::SCCInfo<2> scc_info_SetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto =
404 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsSetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, {
405 &scc_info_Uuid_dmi_2fhw_2eproto.base,
406 &scc_info_EntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto.base,}};
407
408static void InitDefaultsSetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() {
409 GOOGLE_PROTOBUF_VERIFY_VERSION;
410
411 {
412 void* ptr = &::dmi::_SetLogLevelResponse_default_instance_;
413 new (ptr) ::dmi::SetLogLevelResponse();
414 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
415 }
416 ::dmi::SetLogLevelResponse::InitAsDefaultInstance();
417}
418
419::google::protobuf::internal::SCCInfo<1> scc_info_SetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto =
420 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsSetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {
421 &scc_info_Uuid_dmi_2fhw_2eproto.base,}};
422
423static void InitDefaultsGetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() {
424 GOOGLE_PROTOBUF_VERIFY_VERSION;
425
426 {
427 void* ptr = &::dmi::_GetLogLevelRequest_default_instance_;
428 new (ptr) ::dmi::GetLogLevelRequest();
429 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
430 }
431 ::dmi::GetLogLevelRequest::InitAsDefaultInstance();
432}
433
434::google::protobuf::internal::SCCInfo<1> scc_info_GetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto =
435 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, {
436 &scc_info_Uuid_dmi_2fhw_2eproto.base,}};
437
438static void InitDefaultsGetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() {
439 GOOGLE_PROTOBUF_VERIFY_VERSION;
440
441 {
442 void* ptr = &::dmi::_GetLogLevelResponse_default_instance_;
443 new (ptr) ::dmi::GetLogLevelResponse();
444 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
445 }
446 ::dmi::GetLogLevelResponse::InitAsDefaultInstance();
447}
448
449::google::protobuf::internal::SCCInfo<2> scc_info_GetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto =
450 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsGetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {
451 &scc_info_Uuid_dmi_2fhw_2eproto.base,
452 &scc_info_EntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto.base,}};
453
454static void InitDefaultsGetLoggableEntitiesRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() {
455 GOOGLE_PROTOBUF_VERIFY_VERSION;
456
457 {
458 void* ptr = &::dmi::_GetLoggableEntitiesRequest_default_instance_;
459 new (ptr) ::dmi::GetLoggableEntitiesRequest();
460 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
461 }
462 ::dmi::GetLoggableEntitiesRequest::InitAsDefaultInstance();
463}
464
465::google::protobuf::internal::SCCInfo<1> scc_info_GetLoggableEntitiesRequest_dmi_2fhw_5fmanagement_5fservice_2eproto =
466 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetLoggableEntitiesRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, {
467 &scc_info_Uuid_dmi_2fhw_2eproto.base,}};
468
amit.ghosh93183512024-05-28 22:37:27 +0200469static void InitDefaultsSetDmLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() {
470 GOOGLE_PROTOBUF_VERIFY_VERSION;
471
472 {
473 void* ptr = &::dmi::_SetDmLogLevelRequest_default_instance_;
474 new (ptr) ::dmi::SetDmLogLevelRequest();
475 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
476 }
477 ::dmi::SetDmLogLevelRequest::InitAsDefaultInstance();
478}
479
480::google::protobuf::internal::SCCInfo<0> scc_info_SetDmLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto =
481 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSetDmLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}};
482
483static void InitDefaultsSetDmLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() {
484 GOOGLE_PROTOBUF_VERIFY_VERSION;
485
486 {
487 void* ptr = &::dmi::_SetDmLogLevelResponse_default_instance_;
488 new (ptr) ::dmi::SetDmLogLevelResponse();
489 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
490 }
491 ::dmi::SetDmLogLevelResponse::InitAsDefaultInstance();
492}
493
494::google::protobuf::internal::SCCInfo<0> scc_info_SetDmLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto =
495 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSetDmLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}};
496
497static void InitDefaultsGetDmLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() {
498 GOOGLE_PROTOBUF_VERIFY_VERSION;
499
500 {
501 void* ptr = &::dmi::_GetDmLogLevelRequest_default_instance_;
502 new (ptr) ::dmi::GetDmLogLevelRequest();
503 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
504 }
505 ::dmi::GetDmLogLevelRequest::InitAsDefaultInstance();
506}
507
508::google::protobuf::internal::SCCInfo<0> scc_info_GetDmLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto =
509 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetDmLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}};
510
511static void InitDefaultsGetDmLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() {
512 GOOGLE_PROTOBUF_VERIFY_VERSION;
513
514 {
515 void* ptr = &::dmi::_GetDmLogLevelResponse_default_instance_;
516 new (ptr) ::dmi::GetDmLogLevelResponse();
517 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
518 }
519 ::dmi::GetDmLogLevelResponse::InitAsDefaultInstance();
520}
521
522::google::protobuf::internal::SCCInfo<0> scc_info_GetDmLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto =
523 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetDmLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}};
524
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +0530525static void InitDefaultsHeartbeat_dmi_2fhw_5fmanagement_5fservice_2eproto() {
526 GOOGLE_PROTOBUF_VERIFY_VERSION;
527
528 {
529 void* ptr = &::dmi::_Heartbeat_default_instance_;
530 new (ptr) ::dmi::Heartbeat();
531 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
532 }
533 ::dmi::Heartbeat::InitAsDefaultInstance();
534}
535
536::google::protobuf::internal::SCCInfo<0> scc_info_Heartbeat_dmi_2fhw_5fmanagement_5fservice_2eproto =
537 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsHeartbeat_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}};
538
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530539static void InitDefaultsRebootDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() {
540 GOOGLE_PROTOBUF_VERIFY_VERSION;
541
542 {
543 void* ptr = &::dmi::_RebootDeviceRequest_default_instance_;
544 new (ptr) ::dmi::RebootDeviceRequest();
545 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
546 }
547 ::dmi::RebootDeviceRequest::InitAsDefaultInstance();
548}
549
550::google::protobuf::internal::SCCInfo<1> scc_info_RebootDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto =
551 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsRebootDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, {
552 &scc_info_Uuid_dmi_2fhw_2eproto.base,}};
553
554static void InitDefaultsRebootDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() {
555 GOOGLE_PROTOBUF_VERIFY_VERSION;
556
557 {
558 void* ptr = &::dmi::_RebootDeviceResponse_default_instance_;
559 new (ptr) ::dmi::RebootDeviceResponse();
560 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
561 }
562 ::dmi::RebootDeviceResponse::InitAsDefaultInstance();
563}
564
565::google::protobuf::internal::SCCInfo<0> scc_info_RebootDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto =
566 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRebootDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}};
567
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530568void InitDefaults_dmi_2fhw_5fmanagement_5fservice_2eproto() {
569 ::google::protobuf::internal::InitSCC(&scc_info_PhysicalInventoryRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
570 ::google::protobuf::internal::InitSCC(&scc_info_PhysicalInventoryResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
571 ::google::protobuf::internal::InitSCC(&scc_info_HWComponentInfoGetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
572 ::google::protobuf::internal::InitSCC(&scc_info_HWComponentInfoGetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
573 ::google::protobuf::internal::InitSCC(&scc_info_HWComponentInfoSetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
574 ::google::protobuf::internal::InitSCC(&scc_info_HWComponentInfoSetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
575 ::google::protobuf::internal::InitSCC(&scc_info_StartManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
576 ::google::protobuf::internal::InitSCC(&scc_info_StopManagingDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
577 ::google::protobuf::internal::InitSCC(&scc_info_StopManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
578 ::google::protobuf::internal::InitSCC(&scc_info_ManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
579 ::google::protobuf::internal::InitSCC(&scc_info_ManagedDevicesResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
580 ::google::protobuf::internal::InitSCC(&scc_info_SetLoggingEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
581 ::google::protobuf::internal::InitSCC(&scc_info_SetRemoteEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
582 ::google::protobuf::internal::InitSCC(&scc_info_GetLoggingEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
583 ::google::protobuf::internal::InitSCC(&scc_info_SetMsgBusEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
584 ::google::protobuf::internal::InitSCC(&scc_info_GetMsgBusEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
585 ::google::protobuf::internal::InitSCC(&scc_info_EntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
586 ::google::protobuf::internal::InitSCC(&scc_info_SetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
587 ::google::protobuf::internal::InitSCC(&scc_info_SetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
588 ::google::protobuf::internal::InitSCC(&scc_info_GetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
589 ::google::protobuf::internal::InitSCC(&scc_info_GetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
590 ::google::protobuf::internal::InitSCC(&scc_info_GetLoggableEntitiesRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
amit.ghosh93183512024-05-28 22:37:27 +0200591 ::google::protobuf::internal::InitSCC(&scc_info_SetDmLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
592 ::google::protobuf::internal::InitSCC(&scc_info_SetDmLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
593 ::google::protobuf::internal::InitSCC(&scc_info_GetDmLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
594 ::google::protobuf::internal::InitSCC(&scc_info_GetDmLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +0530595 ::google::protobuf::internal::InitSCC(&scc_info_Heartbeat_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530596 ::google::protobuf::internal::InitSCC(&scc_info_RebootDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
597 ::google::protobuf::internal::InitSCC(&scc_info_RebootDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530598}
599
amit.ghosh93183512024-05-28 22:37:27 +0200600::google::protobuf::Metadata file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[29];
601const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[14];
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530602constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto = nullptr;
603
604const ::google::protobuf::uint32 TableStruct_dmi_2fhw_5fmanagement_5fservice_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
605 ~0u, // no _has_bits_
606 PROTOBUF_FIELD_OFFSET(::dmi::PhysicalInventoryRequest, _internal_metadata_),
607 ~0u, // no _extensions_
608 ~0u, // no _oneof_case_
609 ~0u, // no _weak_field_map_
610 PROTOBUF_FIELD_OFFSET(::dmi::PhysicalInventoryRequest, device_uuid_),
611 ~0u, // no _has_bits_
612 PROTOBUF_FIELD_OFFSET(::dmi::PhysicalInventoryResponse, _internal_metadata_),
613 ~0u, // no _extensions_
614 ~0u, // no _oneof_case_
615 ~0u, // no _weak_field_map_
616 PROTOBUF_FIELD_OFFSET(::dmi::PhysicalInventoryResponse, status_),
617 PROTOBUF_FIELD_OFFSET(::dmi::PhysicalInventoryResponse, reason_),
618 PROTOBUF_FIELD_OFFSET(::dmi::PhysicalInventoryResponse, inventory_),
619 PROTOBUF_FIELD_OFFSET(::dmi::PhysicalInventoryResponse, reason_detail_),
620 ~0u, // no _has_bits_
621 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetRequest, _internal_metadata_),
622 ~0u, // no _extensions_
623 ~0u, // no _oneof_case_
624 ~0u, // no _weak_field_map_
625 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetRequest, device_uuid_),
626 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetRequest, component_uuid_),
627 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetRequest, component_name_),
628 ~0u, // no _has_bits_
629 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetResponse, _internal_metadata_),
630 ~0u, // no _extensions_
631 ~0u, // no _oneof_case_
632 ~0u, // no _weak_field_map_
633 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetResponse, status_),
634 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetResponse, reason_),
635 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetResponse, component_),
636 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetResponse, reason_detail_),
637 ~0u, // no _has_bits_
638 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetRequest, _internal_metadata_),
639 ~0u, // no _extensions_
640 ~0u, // no _oneof_case_
641 ~0u, // no _weak_field_map_
642 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetRequest, device_uuid_),
643 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetRequest, component_uuid_),
644 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetRequest, component_name_),
645 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetRequest, changes_),
646 ~0u, // no _has_bits_
647 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetResponse, _internal_metadata_),
648 ~0u, // no _extensions_
649 ~0u, // no _oneof_case_
650 ~0u, // no _weak_field_map_
651 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetResponse, status_),
652 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetResponse, reason_),
653 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetResponse, reason_detail_),
654 ~0u, // no _has_bits_
655 PROTOBUF_FIELD_OFFSET(::dmi::StartManagingDeviceResponse, _internal_metadata_),
656 ~0u, // no _extensions_
657 ~0u, // no _oneof_case_
658 ~0u, // no _weak_field_map_
659 PROTOBUF_FIELD_OFFSET(::dmi::StartManagingDeviceResponse, status_),
660 PROTOBUF_FIELD_OFFSET(::dmi::StartManagingDeviceResponse, reason_),
661 PROTOBUF_FIELD_OFFSET(::dmi::StartManagingDeviceResponse, device_uuid_),
662 PROTOBUF_FIELD_OFFSET(::dmi::StartManagingDeviceResponse, reason_detail_),
663 ~0u, // no _has_bits_
664 PROTOBUF_FIELD_OFFSET(::dmi::StopManagingDeviceRequest, _internal_metadata_),
665 ~0u, // no _extensions_
666 ~0u, // no _oneof_case_
667 ~0u, // no _weak_field_map_
668 PROTOBUF_FIELD_OFFSET(::dmi::StopManagingDeviceRequest, name_),
669 ~0u, // no _has_bits_
670 PROTOBUF_FIELD_OFFSET(::dmi::StopManagingDeviceResponse, _internal_metadata_),
671 ~0u, // no _extensions_
672 ~0u, // no _oneof_case_
673 ~0u, // no _weak_field_map_
674 PROTOBUF_FIELD_OFFSET(::dmi::StopManagingDeviceResponse, status_),
675 PROTOBUF_FIELD_OFFSET(::dmi::StopManagingDeviceResponse, reason_),
676 PROTOBUF_FIELD_OFFSET(::dmi::StopManagingDeviceResponse, reason_detail_),
677 ~0u, // no _has_bits_
678 PROTOBUF_FIELD_OFFSET(::dmi::ManagedDeviceInfo, _internal_metadata_),
679 ~0u, // no _extensions_
680 ~0u, // no _oneof_case_
681 ~0u, // no _weak_field_map_
682 PROTOBUF_FIELD_OFFSET(::dmi::ManagedDeviceInfo, info_),
683 PROTOBUF_FIELD_OFFSET(::dmi::ManagedDeviceInfo, device_uuid_),
684 ~0u, // no _has_bits_
685 PROTOBUF_FIELD_OFFSET(::dmi::ManagedDevicesResponse, _internal_metadata_),
686 ~0u, // no _extensions_
687 ~0u, // no _oneof_case_
688 ~0u, // no _weak_field_map_
689 PROTOBUF_FIELD_OFFSET(::dmi::ManagedDevicesResponse, status_),
690 PROTOBUF_FIELD_OFFSET(::dmi::ManagedDevicesResponse, reason_),
691 PROTOBUF_FIELD_OFFSET(::dmi::ManagedDevicesResponse, devices_),
692 ~0u, // no _has_bits_
693 PROTOBUF_FIELD_OFFSET(::dmi::SetLoggingEndpointRequest, _internal_metadata_),
694 ~0u, // no _extensions_
695 ~0u, // no _oneof_case_
696 ~0u, // no _weak_field_map_
697 PROTOBUF_FIELD_OFFSET(::dmi::SetLoggingEndpointRequest, device_uuid_),
698 PROTOBUF_FIELD_OFFSET(::dmi::SetLoggingEndpointRequest, logging_endpoint_),
699 PROTOBUF_FIELD_OFFSET(::dmi::SetLoggingEndpointRequest, logging_protocol_),
700 ~0u, // no _has_bits_
701 PROTOBUF_FIELD_OFFSET(::dmi::SetRemoteEndpointResponse, _internal_metadata_),
702 ~0u, // no _extensions_
703 ~0u, // no _oneof_case_
704 ~0u, // no _weak_field_map_
705 PROTOBUF_FIELD_OFFSET(::dmi::SetRemoteEndpointResponse, status_),
706 PROTOBUF_FIELD_OFFSET(::dmi::SetRemoteEndpointResponse, reason_),
707 PROTOBUF_FIELD_OFFSET(::dmi::SetRemoteEndpointResponse, reason_detail_),
708 ~0u, // no _has_bits_
709 PROTOBUF_FIELD_OFFSET(::dmi::GetLoggingEndpointResponse, _internal_metadata_),
710 ~0u, // no _extensions_
711 ~0u, // no _oneof_case_
712 ~0u, // no _weak_field_map_
713 PROTOBUF_FIELD_OFFSET(::dmi::GetLoggingEndpointResponse, status_),
714 PROTOBUF_FIELD_OFFSET(::dmi::GetLoggingEndpointResponse, reason_),
715 PROTOBUF_FIELD_OFFSET(::dmi::GetLoggingEndpointResponse, logging_endpoint_),
716 PROTOBUF_FIELD_OFFSET(::dmi::GetLoggingEndpointResponse, logging_protocol_),
717 PROTOBUF_FIELD_OFFSET(::dmi::GetLoggingEndpointResponse, reason_detail_),
718 ~0u, // no _has_bits_
719 PROTOBUF_FIELD_OFFSET(::dmi::SetMsgBusEndpointRequest, _internal_metadata_),
720 ~0u, // no _extensions_
721 ~0u, // no _oneof_case_
722 ~0u, // no _weak_field_map_
723 PROTOBUF_FIELD_OFFSET(::dmi::SetMsgBusEndpointRequest, msgbus_endpoint_),
724 ~0u, // no _has_bits_
725 PROTOBUF_FIELD_OFFSET(::dmi::GetMsgBusEndpointResponse, _internal_metadata_),
726 ~0u, // no _extensions_
727 ~0u, // no _oneof_case_
728 ~0u, // no _weak_field_map_
729 PROTOBUF_FIELD_OFFSET(::dmi::GetMsgBusEndpointResponse, status_),
730 PROTOBUF_FIELD_OFFSET(::dmi::GetMsgBusEndpointResponse, reason_),
731 PROTOBUF_FIELD_OFFSET(::dmi::GetMsgBusEndpointResponse, msgbus_endpoint_),
732 PROTOBUF_FIELD_OFFSET(::dmi::GetMsgBusEndpointResponse, reason_detail_),
733 ~0u, // no _has_bits_
734 PROTOBUF_FIELD_OFFSET(::dmi::EntitiesLogLevel, _internal_metadata_),
735 ~0u, // no _extensions_
736 ~0u, // no _oneof_case_
737 ~0u, // no _weak_field_map_
738 PROTOBUF_FIELD_OFFSET(::dmi::EntitiesLogLevel, loglevel_),
739 PROTOBUF_FIELD_OFFSET(::dmi::EntitiesLogLevel, entities_),
740 ~0u, // no _has_bits_
741 PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelRequest, _internal_metadata_),
742 ~0u, // no _extensions_
743 ~0u, // no _oneof_case_
744 ~0u, // no _weak_field_map_
745 PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelRequest, device_uuid_),
746 PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelRequest, loglevels_),
747 ~0u, // no _has_bits_
748 PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelResponse, _internal_metadata_),
749 ~0u, // no _extensions_
750 ~0u, // no _oneof_case_
751 ~0u, // no _weak_field_map_
752 PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelResponse, device_uuid_),
753 PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelResponse, status_),
754 PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelResponse, reason_),
755 PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelResponse, reason_detail_),
756 ~0u, // no _has_bits_
757 PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelRequest, _internal_metadata_),
758 ~0u, // no _extensions_
759 ~0u, // no _oneof_case_
760 ~0u, // no _weak_field_map_
761 PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelRequest, device_uuid_),
762 PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelRequest, entities_),
763 ~0u, // no _has_bits_
764 PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelResponse, _internal_metadata_),
765 ~0u, // no _extensions_
766 ~0u, // no _oneof_case_
767 ~0u, // no _weak_field_map_
768 PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelResponse, device_uuid_),
769 PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelResponse, loglevels_),
770 PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelResponse, status_),
771 PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelResponse, reason_),
772 PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelResponse, reason_detail_),
773 ~0u, // no _has_bits_
774 PROTOBUF_FIELD_OFFSET(::dmi::GetLoggableEntitiesRequest, _internal_metadata_),
775 ~0u, // no _extensions_
776 ~0u, // no _oneof_case_
777 ~0u, // no _weak_field_map_
778 PROTOBUF_FIELD_OFFSET(::dmi::GetLoggableEntitiesRequest, device_uuid_),
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +0530779 ~0u, // no _has_bits_
amit.ghosh93183512024-05-28 22:37:27 +0200780 PROTOBUF_FIELD_OFFSET(::dmi::SetDmLogLevelRequest, _internal_metadata_),
781 ~0u, // no _extensions_
782 ~0u, // no _oneof_case_
783 ~0u, // no _weak_field_map_
784 PROTOBUF_FIELD_OFFSET(::dmi::SetDmLogLevelRequest, level_),
785 ~0u, // no _has_bits_
786 PROTOBUF_FIELD_OFFSET(::dmi::SetDmLogLevelResponse, _internal_metadata_),
787 ~0u, // no _extensions_
788 ~0u, // no _oneof_case_
789 ~0u, // no _weak_field_map_
790 PROTOBUF_FIELD_OFFSET(::dmi::SetDmLogLevelResponse, status_),
791 PROTOBUF_FIELD_OFFSET(::dmi::SetDmLogLevelResponse, reason_),
792 PROTOBUF_FIELD_OFFSET(::dmi::SetDmLogLevelResponse, reason_detail_),
793 ~0u, // no _has_bits_
794 PROTOBUF_FIELD_OFFSET(::dmi::GetDmLogLevelRequest, _internal_metadata_),
795 ~0u, // no _extensions_
796 ~0u, // no _oneof_case_
797 ~0u, // no _weak_field_map_
798 ~0u, // no _has_bits_
799 PROTOBUF_FIELD_OFFSET(::dmi::GetDmLogLevelResponse, _internal_metadata_),
800 ~0u, // no _extensions_
801 ~0u, // no _oneof_case_
802 ~0u, // no _weak_field_map_
803 PROTOBUF_FIELD_OFFSET(::dmi::GetDmLogLevelResponse, level_),
804 PROTOBUF_FIELD_OFFSET(::dmi::GetDmLogLevelResponse, status_),
805 PROTOBUF_FIELD_OFFSET(::dmi::GetDmLogLevelResponse, reason_),
806 PROTOBUF_FIELD_OFFSET(::dmi::GetDmLogLevelResponse, reason_detail_),
807 ~0u, // no _has_bits_
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +0530808 PROTOBUF_FIELD_OFFSET(::dmi::Heartbeat, _internal_metadata_),
809 ~0u, // no _extensions_
810 ~0u, // no _oneof_case_
811 ~0u, // no _weak_field_map_
812 PROTOBUF_FIELD_OFFSET(::dmi::Heartbeat, heartbeat_signature_),
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530813 ~0u, // no _has_bits_
814 PROTOBUF_FIELD_OFFSET(::dmi::RebootDeviceRequest, _internal_metadata_),
815 ~0u, // no _extensions_
816 ~0u, // no _oneof_case_
817 ~0u, // no _weak_field_map_
818 PROTOBUF_FIELD_OFFSET(::dmi::RebootDeviceRequest, device_uuid_),
819 ~0u, // no _has_bits_
820 PROTOBUF_FIELD_OFFSET(::dmi::RebootDeviceResponse, _internal_metadata_),
821 ~0u, // no _extensions_
822 ~0u, // no _oneof_case_
823 ~0u, // no _weak_field_map_
824 PROTOBUF_FIELD_OFFSET(::dmi::RebootDeviceResponse, status_),
825 PROTOBUF_FIELD_OFFSET(::dmi::RebootDeviceResponse, reason_),
826 PROTOBUF_FIELD_OFFSET(::dmi::RebootDeviceResponse, reason_detail_),
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530827};
828static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
829 { 0, -1, sizeof(::dmi::PhysicalInventoryRequest)},
830 { 6, -1, sizeof(::dmi::PhysicalInventoryResponse)},
831 { 15, -1, sizeof(::dmi::HWComponentInfoGetRequest)},
832 { 23, -1, sizeof(::dmi::HWComponentInfoGetResponse)},
833 { 32, -1, sizeof(::dmi::HWComponentInfoSetRequest)},
834 { 41, -1, sizeof(::dmi::HWComponentInfoSetResponse)},
835 { 49, -1, sizeof(::dmi::StartManagingDeviceResponse)},
836 { 58, -1, sizeof(::dmi::StopManagingDeviceRequest)},
837 { 64, -1, sizeof(::dmi::StopManagingDeviceResponse)},
838 { 72, -1, sizeof(::dmi::ManagedDeviceInfo)},
839 { 79, -1, sizeof(::dmi::ManagedDevicesResponse)},
840 { 87, -1, sizeof(::dmi::SetLoggingEndpointRequest)},
841 { 95, -1, sizeof(::dmi::SetRemoteEndpointResponse)},
842 { 103, -1, sizeof(::dmi::GetLoggingEndpointResponse)},
843 { 113, -1, sizeof(::dmi::SetMsgBusEndpointRequest)},
844 { 119, -1, sizeof(::dmi::GetMsgBusEndpointResponse)},
845 { 128, -1, sizeof(::dmi::EntitiesLogLevel)},
846 { 135, -1, sizeof(::dmi::SetLogLevelRequest)},
847 { 142, -1, sizeof(::dmi::SetLogLevelResponse)},
848 { 151, -1, sizeof(::dmi::GetLogLevelRequest)},
849 { 158, -1, sizeof(::dmi::GetLogLevelResponse)},
850 { 168, -1, sizeof(::dmi::GetLoggableEntitiesRequest)},
amit.ghosh93183512024-05-28 22:37:27 +0200851 { 174, -1, sizeof(::dmi::SetDmLogLevelRequest)},
852 { 180, -1, sizeof(::dmi::SetDmLogLevelResponse)},
853 { 188, -1, sizeof(::dmi::GetDmLogLevelRequest)},
854 { 193, -1, sizeof(::dmi::GetDmLogLevelResponse)},
855 { 202, -1, sizeof(::dmi::Heartbeat)},
856 { 208, -1, sizeof(::dmi::RebootDeviceRequest)},
857 { 214, -1, sizeof(::dmi::RebootDeviceResponse)},
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530858};
859
860static ::google::protobuf::Message const * const file_default_instances[] = {
861 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_PhysicalInventoryRequest_default_instance_),
862 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_PhysicalInventoryResponse_default_instance_),
863 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_HWComponentInfoGetRequest_default_instance_),
864 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_HWComponentInfoGetResponse_default_instance_),
865 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_HWComponentInfoSetRequest_default_instance_),
866 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_HWComponentInfoSetResponse_default_instance_),
867 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_StartManagingDeviceResponse_default_instance_),
868 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_StopManagingDeviceRequest_default_instance_),
869 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_StopManagingDeviceResponse_default_instance_),
870 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_ManagedDeviceInfo_default_instance_),
871 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_ManagedDevicesResponse_default_instance_),
872 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_SetLoggingEndpointRequest_default_instance_),
873 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_SetRemoteEndpointResponse_default_instance_),
874 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_GetLoggingEndpointResponse_default_instance_),
875 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_SetMsgBusEndpointRequest_default_instance_),
876 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_GetMsgBusEndpointResponse_default_instance_),
877 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_EntitiesLogLevel_default_instance_),
878 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_SetLogLevelRequest_default_instance_),
879 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_SetLogLevelResponse_default_instance_),
880 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_GetLogLevelRequest_default_instance_),
881 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_GetLogLevelResponse_default_instance_),
882 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_GetLoggableEntitiesRequest_default_instance_),
amit.ghosh93183512024-05-28 22:37:27 +0200883 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_SetDmLogLevelRequest_default_instance_),
884 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_SetDmLogLevelResponse_default_instance_),
885 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_GetDmLogLevelRequest_default_instance_),
886 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_GetDmLogLevelResponse_default_instance_),
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +0530887 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_Heartbeat_default_instance_),
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530888 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_RebootDeviceRequest_default_instance_),
889 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_RebootDeviceResponse_default_instance_),
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530890};
891
892::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto = {
893 {}, AddDescriptors_dmi_2fhw_5fmanagement_5fservice_2eproto, "dmi/hw_management_service.proto", schemas,
894 file_default_instances, TableStruct_dmi_2fhw_5fmanagement_5fservice_2eproto::offsets,
amit.ghosh93183512024-05-28 22:37:27 +0200895 file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto, 29, 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 +0530896};
897
898const char descriptor_table_protodef_dmi_2fhw_5fmanagement_5fservice_2eproto[] =
899 "\n\037dmi/hw_management_service.proto\022\003dmi\032\021"
900 "dmi/commons.proto\032\014dmi/hw.proto\032\033google/"
901 "protobuf/empty.proto\":\n\030PhysicalInventor"
902 "yRequest\022\036\n\013device_uuid\030\001 \001(\0132\t.dmi.Uuid"
903 "\"\210\002\n\031PhysicalInventoryResponse\022\033\n\006status"
904 "\030\001 \001(\0162\013.dmi.Status\0225\n\006reason\030\002 \001(\0162%.dm"
905 "i.PhysicalInventoryResponse.Reason\022 \n\tin"
906 "ventory\030\003 \001(\0132\r.dmi.Hardware\022\025\n\rreason_d"
907 "etail\030\004 \001(\t\"^\n\006Reason\022\024\n\020UNDEFINED_REASO"
908 "N\020\000\022\022\n\016UNKNOWN_DEVICE\020\001\022\022\n\016INTERNAL_ERRO"
909 "R\020\002\022\026\n\022DEVICE_UNREACHABLE\020\003\"v\n\031HWCompone"
910 "ntInfoGetRequest\022\036\n\013device_uuid\030\001 \001(\0132\t."
911 "dmi.Uuid\022!\n\016component_uuid\030\002 \001(\0132\t.dmi.U"
912 "uid\022\026\n\016component_name\030\003 \001(\t\"\242\002\n\032HWCompon"
913 "entInfoGetResponse\022\033\n\006status\030\001 \001(\0162\013.dmi"
914 ".Status\0226\n\006reason\030\002 \001(\0162&.dmi.HWComponen"
915 "tInfoGetResponse.Reason\022!\n\tcomponent\030\003 \001"
916 "(\0132\016.dmi.Component\022\025\n\rreason_detail\030\004 \001("
917 "\t\"u\n\006Reason\022\024\n\020UNDEFINED_REASON\020\000\022\022\n\016UNK"
918 "NOWN_DEVICE\020\001\022\025\n\021UNKNOWN_COMPONENT\020\002\022\022\n\016"
919 "INTERNAL_ERROR\020\003\022\026\n\022DEVICE_UNREACHABLE\020\004"
920 "\"\241\001\n\031HWComponentInfoSetRequest\022\036\n\013device"
921 "_uuid\030\001 \001(\0132\t.dmi.Uuid\022!\n\016component_uuid"
922 "\030\002 \001(\0132\t.dmi.Uuid\022\026\n\016component_name\030\003 \001("
923 "\t\022)\n\007changes\030\004 \001(\0132\030.dmi.ModifiableCompo"
Girish Gowdra997432d2022-03-10 15:59:33 -0800924 "nent\"\251\002\n\032HWComponentInfoSetResponse\022\033\n\006s"
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530925 "tatus\030\001 \001(\0162\013.dmi.Status\0226\n\006reason\030\002 \001(\016"
926 "2&.dmi.HWComponentInfoSetResponse.Reason"
Girish Gowdra997432d2022-03-10 15:59:33 -0800927 "\022\025\n\rreason_detail\030\003 \001(\t\"\236\001\n\006Reason\022\024\n\020UN"
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530928 "DEFINED_REASON\020\000\022\022\n\016UNKNOWN_DEVICE\020\001\022\025\n\021"
929 "UNKNOWN_COMPONENT\020\002\022\022\n\016INVALID_PARAMS\020\003\022"
930 "\022\n\016INTERNAL_ERROR\020\004\022\026\n\022DEVICE_UNREACHABL"
Girish Gowdra997432d2022-03-10 15:59:33 -0800931 "E\020\005\022\023\n\017SET_UNSUPPORTED\020\006\"\347\002\n\033StartManagi"
932 "ngDeviceResponse\022\033\n\006status\030\001 \001(\0162\013.dmi.S"
933 "tatus\0227\n\006reason\030\002 \001(\0162\'.dmi.StartManagin"
934 "gDeviceResponse.Reason\022\036\n\013device_uuid\030\003 "
935 "\001(\0132\t.dmi.Uuid\022\025\n\rreason_detail\030\004 \001(\t\"\272\001"
936 "\n\006Reason\022\024\n\020UNDEFINED_REASON\020\000\022\032\n\026DEVICE"
937 "_ALREADY_MANAGED\020\001\022!\n\035OPERATION_ALREADY_"
938 "IN_PROGRESS\020\002\022\022\n\016INVALID_PARAMS\020\003\022\022\n\016INT"
939 "ERNAL_ERROR\020\004\022\032\n\026AUTHENTICATION_FAILURE\020"
940 "\005\022\027\n\023INCOMPATIBLE_DEVICE\020\006\")\n\031StopManagi"
amit.ghoshdd12d882022-07-01 12:32:36 +0200941 "ngDeviceRequest\022\014\n\004name\030\001 \001(\t\"\324\001\n\032StopMa"
Girish Gowdra997432d2022-03-10 15:59:33 -0800942 "nagingDeviceResponse\022\033\n\006status\030\001 \001(\0162\013.d"
943 "mi.Status\0226\n\006reason\030\002 \001(\0162&.dmi.StopMana"
944 "gingDeviceResponse.Reason\022\025\n\rreason_deta"
amit.ghoshdd12d882022-07-01 12:32:36 +0200945 "il\030\003 \001(\t\"J\n\006Reason\022\024\n\020UNDEFINED_REASON\020\000"
946 "\022\022\n\016UNKNOWN_DEVICE\020\001\022\026\n\022DEVICE_UNREACHAB"
947 "LE\020\002\"[\n\021ManagedDeviceInfo\022&\n\004info\030\001 \001(\0132"
948 "\030.dmi.ModifiableComponent\022\036\n\013device_uuid"
949 "\030\002 \001(\0132\t.dmi.Uuid\"\306\001\n\026ManagedDevicesResp"
950 "onse\022\033\n\006status\030\001 \001(\0162\013.dmi.Status\0222\n\006rea"
951 "son\030\002 \001(\0162\".dmi.ManagedDevicesResponse.R"
952 "eason\022\'\n\007devices\030\003 \003(\0132\026.dmi.ManagedDevi"
953 "ceInfo\"2\n\006Reason\022\024\n\020UNDEFINED_REASON\020\000\022\022"
954 "\n\016INTERNAL_ERROR\020\001\"o\n\031SetLoggingEndpoint"
955 "Request\022\036\n\013device_uuid\030\001 \001(\0132\t.dmi.Uuid\022"
956 "\030\n\020logging_endpoint\030\002 \001(\t\022\030\n\020logging_pro"
957 "tocol\030\003 \001(\t\"\303\002\n\031SetRemoteEndpointRespons"
958 "e\022\033\n\006status\030\001 \001(\0162\013.dmi.Status\0225\n\006reason"
959 "\030\002 \001(\0162%.dmi.SetRemoteEndpointResponse.R"
960 "eason\022\025\n\rreason_detail\030\003 \001(\t\"\272\001\n\006Reason\022"
961 "\024\n\020UNDEFINED_REASON\020\000\022\022\n\016UNKNOWN_DEVICE\020"
962 "\001\022\022\n\016INTERNAL_ERROR\020\002\022\032\n\026LOGGING_ENDPOIN"
963 "T_ERROR\020\003\022#\n\037LOGGING_ENDPOINT_PROTOCOL_E"
964 "RROR\020\004\022\031\n\025MSGBUS_ENDPOINT_ERROR\020\005\022\026\n\022DEV"
965 "ICE_UNREACHABLE\020\006\"\234\002\n\032GetLoggingEndpoint"
966 "Response\022\033\n\006status\030\001 \001(\0162\013.dmi.Status\0226\n"
967 "\006reason\030\002 \001(\0162&.dmi.GetLoggingEndpointRe"
968 "sponse.Reason\022\030\n\020logging_endpoint\030\003 \001(\t\022"
969 "\030\n\020logging_protocol\030\004 \001(\t\022\025\n\rreason_deta"
970 "il\030\005 \001(\t\"^\n\006Reason\022\024\n\020UNDEFINED_REASON\020\000"
971 "\022\022\n\016UNKNOWN_DEVICE\020\001\022\022\n\016INTERNAL_ERROR\020\002"
972 "\022\026\n\022DEVICE_UNREACHABLE\020\003\"3\n\030SetMsgBusEnd"
973 "pointRequest\022\027\n\017msgbus_endpoint\030\001 \001(\t\"\353\001"
974 "\n\031GetMsgBusEndpointResponse\022\033\n\006status\030\001 "
975 "\001(\0162\013.dmi.Status\0225\n\006reason\030\002 \001(\0162%.dmi.G"
976 "etMsgBusEndpointResponse.Reason\022\027\n\017msgbu"
977 "s_endpoint\030\003 \001(\t\022\025\n\rreason_detail\030\004 \001(\t\""
978 "J\n\006Reason\022\024\n\020UNDEFINED_REASON\020\000\022\022\n\016INTER"
979 "NAL_ERROR\020\001\022\026\n\022DEVICE_UNREACHABLE\020\002\"E\n\020E"
980 "ntitiesLogLevel\022\037\n\010logLevel\030\001 \001(\0162\r.dmi."
981 "LogLevel\022\020\n\010entities\030\002 \003(\t\"^\n\022SetLogLeve"
982 "lRequest\022\036\n\013device_uuid\030\001 \001(\0132\t.dmi.Uuid"
983 "\022(\n\tloglevels\030\002 \003(\0132\025.dmi.EntitiesLogLev"
984 "el\"\222\002\n\023SetLogLevelResponse\022\036\n\013device_uui"
985 "d\030\001 \001(\0132\t.dmi.Uuid\022\033\n\006status\030\002 \001(\0162\013.dmi"
986 ".Status\022/\n\006reason\030\003 \001(\0162\037.dmi.SetLogLeve"
987 "lResponse.Reason\022\025\n\rreason_detail\030\004 \001(\t\""
988 "v\n\006Reason\022\024\n\020UNDEFINED_REASON\020\000\022\022\n\016UNKNO"
989 "WN_DEVICE\020\001\022\022\n\016INTERNAL_ERROR\020\002\022\026\n\022UNKNO"
990 "WN_LOG_ENTITY\020\003\022\026\n\022DEVICE_UNREACHABLE\020\004\""
991 "F\n\022GetLogLevelRequest\022\036\n\013device_uuid\030\001 \001"
992 "(\0132\t.dmi.Uuid\022\020\n\010entities\030\002 \003(\t\"\274\002\n\023GetL"
993 "ogLevelResponse\022\036\n\013device_uuid\030\001 \001(\0132\t.d"
994 "mi.Uuid\022(\n\tlogLevels\030\002 \003(\0132\025.dmi.Entitie"
995 "sLogLevel\022\033\n\006status\030\003 \001(\0162\013.dmi.Status\022/"
996 "\n\006reason\030\004 \001(\0162\037.dmi.GetLogLevelResponse"
997 ".Reason\022\025\n\rreason_detail\030\005 \001(\t\"v\n\006Reason"
998 "\022\024\n\020UNDEFINED_REASON\020\000\022\022\n\016UNKNOWN_DEVICE"
999 "\020\001\022\022\n\016INTERNAL_ERROR\020\002\022\026\n\022UNKNOWN_LOG_EN"
1000 "TITY\020\003\022\026\n\022DEVICE_UNREACHABLE\020\004\"<\n\032GetLog"
1001 "gableEntitiesRequest\022\036\n\013device_uuid\030\001 \001("
amit.ghosh93183512024-05-28 22:37:27 +02001002 "\0132\t.dmi.Uuid\"4\n\024SetDmLogLevelRequest\022\034\n\005"
1003 "level\030\001 \001(\0162\r.dmi.LogLevel\"\311\001\n\025SetDmLogL"
1004 "evelResponse\022\033\n\006status\030\001 \001(\0162\013.dmi.Statu"
1005 "s\0221\n\006reason\030\002 \001(\0162!.dmi.SetDmLogLevelRes"
1006 "ponse.Reason\022\025\n\rreason_detail\030\003 \001(\t\"I\n\006R"
1007 "eason\022\024\n\020UNDEFINED_REASON\020\000\022\022\n\016INTERNAL_"
1008 "ERROR\020\001\022\025\n\021UNKNOWN_LOG_LEVEL\020\002\"\026\n\024GetDmL"
1009 "ogLevelRequest\"\320\001\n\025GetDmLogLevelResponse"
1010 "\022\034\n\005level\030\001 \001(\0162\r.dmi.LogLevel\022\033\n\006status"
1011 "\030\002 \001(\0162\013.dmi.Status\0221\n\006reason\030\003 \001(\0162!.dm"
1012 "i.GetDmLogLevelResponse.Reason\022\025\n\rreason"
1013 "_detail\030\004 \001(\t\"2\n\006Reason\022\024\n\020UNDEFINED_REA"
1014 "SON\020\000\022\022\n\016INTERNAL_ERROR\020\001\"(\n\tHeartbeat\022\033"
1015 "\n\023heartbeat_signature\030\001 \001(\007\"5\n\023RebootDev"
1016 "iceRequest\022\036\n\013device_uuid\030\001 \001(\0132\t.dmi.Uu"
1017 "id\"\367\001\n\024RebootDeviceResponse\022\033\n\006status\030\003 "
1018 "\001(\0162\013.dmi.Status\0220\n\006reason\030\004 \001(\0162 .dmi.R"
1019 "ebootDeviceResponse.Reason\022\025\n\rreason_det"
1020 "ail\030\005 \001(\t\"y\n\006Reason\022\024\n\020UNDEFINED_REASON\020"
1021 "\000\022\022\n\016UNKNOWN_DEVICE\020\001\022\022\n\016INTERNAL_ERROR\020"
1022 "\002\022\026\n\022DEVICE_UNREACHABLE\020\003\022\031\n\025DEVICE_IN_W"
1023 "RONG_STATE\020\0042\276\n\n\031NativeHWManagementServi"
1024 "ce\022S\n\023StartManagingDevice\022\030.dmi.Modifiab"
1025 "leComponent\032 .dmi.StartManagingDeviceRes"
1026 "ponse0\001\022U\n\022StopManagingDevice\022\036.dmi.Stop"
1027 "ManagingDeviceRequest\032\037.dmi.StopManaging"
1028 "DeviceResponse\022H\n\021GetManagedDevices\022\026.go"
1029 "ogle.protobuf.Empty\032\033.dmi.ManagedDevices"
1030 "Response\022W\n\024GetPhysicalInventory\022\035.dmi.P"
1031 "hysicalInventoryRequest\032\036.dmi.PhysicalIn"
1032 "ventoryResponse0\001\022W\n\022GetHWComponentInfo\022"
1033 "\036.dmi.HWComponentInfoGetRequest\032\037.dmi.HW"
1034 "ComponentInfoGetResponse0\001\022U\n\022SetHWCompo"
1035 "nentInfo\022\036.dmi.HWComponentInfoSetRequest"
1036 "\032\037.dmi.HWComponentInfoSetResponse\022T\n\022Set"
1037 "LoggingEndpoint\022\036.dmi.SetLoggingEndpoint"
1038 "Request\032\036.dmi.SetRemoteEndpointResponse\022"
1039 "F\n\022GetLoggingEndpoint\022\017.dmi.HardwareID\032\037"
1040 ".dmi.GetLoggingEndpointResponse\022R\n\021SetMs"
1041 "gBusEndpoint\022\035.dmi.SetMsgBusEndpointRequ"
1042 "est\032\036.dmi.SetRemoteEndpointResponse\022K\n\021G"
1043 "etMsgBusEndpoint\022\026.google.protobuf.Empty"
1044 "\032\036.dmi.GetMsgBusEndpointResponse\022P\n\023GetL"
1045 "oggableEntities\022\037.dmi.GetLoggableEntitie"
1046 "sRequest\032\030.dmi.GetLogLevelResponse\022@\n\013Se"
1047 "tLogLevel\022\027.dmi.SetLogLevelRequest\032\030.dmi"
1048 ".SetLogLevelResponse\022@\n\013GetLogLevel\022\027.dm"
1049 "i.GetLogLevelRequest\032\030.dmi.GetLogLevelRe"
1050 "sponse\0228\n\016HeartbeatCheck\022\026.google.protob"
1051 "uf.Empty\032\016.dmi.Heartbeat\022C\n\014RebootDevice"
1052 "\022\030.dmi.RebootDeviceRequest\032\031.dmi.RebootD"
1053 "eviceResponse\022F\n\rSetDmLogLevel\022\031.dmi.Set"
1054 "DmLogLevelRequest\032\032.dmi.SetDmLogLevelRes"
1055 "ponse\022F\n\rGetDmLogLevel\022\031.dmi.GetDmLogLev"
1056 "elRequest\032\032.dmi.GetDmLogLevelResponseB;Z"
1057 "9github.com/opencord/device-management-i"
1058 "nterface/v3/go/dmib\006proto3"
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301059 ;
1060::google::protobuf::internal::DescriptorTable descriptor_table_dmi_2fhw_5fmanagement_5fservice_2eproto = {
1061 false, InitDefaults_dmi_2fhw_5fmanagement_5fservice_2eproto,
1062 descriptor_table_protodef_dmi_2fhw_5fmanagement_5fservice_2eproto,
amit.ghosh93183512024-05-28 22:37:27 +02001063 "dmi/hw_management_service.proto", &assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto, 6386,
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301064};
1065
1066void AddDescriptors_dmi_2fhw_5fmanagement_5fservice_2eproto() {
1067 static constexpr ::google::protobuf::internal::InitFunc deps[3] =
1068 {
1069 ::AddDescriptors_dmi_2fcommons_2eproto,
1070 ::AddDescriptors_dmi_2fhw_2eproto,
1071 ::AddDescriptors_google_2fprotobuf_2fempty_2eproto,
1072 };
1073 ::google::protobuf::internal::AddDescriptors(&descriptor_table_dmi_2fhw_5fmanagement_5fservice_2eproto, deps, 3);
1074}
1075
1076// Force running AddDescriptors() at dynamic initialization time.
1077static bool dynamic_init_dummy_dmi_2fhw_5fmanagement_5fservice_2eproto = []() { AddDescriptors_dmi_2fhw_5fmanagement_5fservice_2eproto(); return true; }();
1078namespace dmi {
1079const ::google::protobuf::EnumDescriptor* PhysicalInventoryResponse_Reason_descriptor() {
1080 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1081 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[0];
1082}
1083bool PhysicalInventoryResponse_Reason_IsValid(int value) {
1084 switch (value) {
1085 case 0:
1086 case 1:
1087 case 2:
1088 case 3:
1089 return true;
1090 default:
1091 return false;
1092 }
1093}
1094
1095#if !defined(_MSC_VER) || _MSC_VER >= 1900
1096const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::UNDEFINED_REASON;
1097const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::UNKNOWN_DEVICE;
1098const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::INTERNAL_ERROR;
1099const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::DEVICE_UNREACHABLE;
1100const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::Reason_MIN;
1101const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::Reason_MAX;
1102const int PhysicalInventoryResponse::Reason_ARRAYSIZE;
1103#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1104const ::google::protobuf::EnumDescriptor* HWComponentInfoGetResponse_Reason_descriptor() {
1105 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1106 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[1];
1107}
1108bool HWComponentInfoGetResponse_Reason_IsValid(int value) {
1109 switch (value) {
1110 case 0:
1111 case 1:
1112 case 2:
1113 case 3:
1114 case 4:
1115 return true;
1116 default:
1117 return false;
1118 }
1119}
1120
1121#if !defined(_MSC_VER) || _MSC_VER >= 1900
1122const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::UNDEFINED_REASON;
1123const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::UNKNOWN_DEVICE;
1124const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::UNKNOWN_COMPONENT;
1125const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::INTERNAL_ERROR;
1126const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::DEVICE_UNREACHABLE;
1127const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::Reason_MIN;
1128const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::Reason_MAX;
1129const int HWComponentInfoGetResponse::Reason_ARRAYSIZE;
1130#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1131const ::google::protobuf::EnumDescriptor* HWComponentInfoSetResponse_Reason_descriptor() {
1132 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1133 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[2];
1134}
1135bool HWComponentInfoSetResponse_Reason_IsValid(int value) {
1136 switch (value) {
1137 case 0:
1138 case 1:
1139 case 2:
1140 case 3:
1141 case 4:
1142 case 5:
Girish Gowdra997432d2022-03-10 15:59:33 -08001143 case 6:
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301144 return true;
1145 default:
1146 return false;
1147 }
1148}
1149
1150#if !defined(_MSC_VER) || _MSC_VER >= 1900
1151const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::UNDEFINED_REASON;
1152const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::UNKNOWN_DEVICE;
1153const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::UNKNOWN_COMPONENT;
1154const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::INVALID_PARAMS;
1155const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::INTERNAL_ERROR;
1156const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::DEVICE_UNREACHABLE;
Girish Gowdra997432d2022-03-10 15:59:33 -08001157const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::SET_UNSUPPORTED;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301158const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::Reason_MIN;
1159const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::Reason_MAX;
1160const int HWComponentInfoSetResponse::Reason_ARRAYSIZE;
1161#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1162const ::google::protobuf::EnumDescriptor* StartManagingDeviceResponse_Reason_descriptor() {
1163 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1164 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[3];
1165}
1166bool StartManagingDeviceResponse_Reason_IsValid(int value) {
1167 switch (value) {
1168 case 0:
1169 case 1:
1170 case 2:
1171 case 3:
1172 case 4:
amit.ghosh6bdb0f72021-06-02 14:42:29 +02001173 case 5:
1174 case 6:
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301175 return true;
1176 default:
1177 return false;
1178 }
1179}
1180
1181#if !defined(_MSC_VER) || _MSC_VER >= 1900
1182const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::UNDEFINED_REASON;
1183const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::DEVICE_ALREADY_MANAGED;
1184const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::OPERATION_ALREADY_IN_PROGRESS;
1185const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::INVALID_PARAMS;
1186const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::INTERNAL_ERROR;
amit.ghosh6bdb0f72021-06-02 14:42:29 +02001187const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::AUTHENTICATION_FAILURE;
1188const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::INCOMPATIBLE_DEVICE;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301189const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::Reason_MIN;
1190const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::Reason_MAX;
1191const int StartManagingDeviceResponse::Reason_ARRAYSIZE;
1192#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1193const ::google::protobuf::EnumDescriptor* StopManagingDeviceResponse_Reason_descriptor() {
1194 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1195 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[4];
1196}
1197bool StopManagingDeviceResponse_Reason_IsValid(int value) {
1198 switch (value) {
1199 case 0:
1200 case 1:
amit.ghoshdd12d882022-07-01 12:32:36 +02001201 case 2:
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301202 return true;
1203 default:
1204 return false;
1205 }
1206}
1207
1208#if !defined(_MSC_VER) || _MSC_VER >= 1900
1209const StopManagingDeviceResponse_Reason StopManagingDeviceResponse::UNDEFINED_REASON;
1210const StopManagingDeviceResponse_Reason StopManagingDeviceResponse::UNKNOWN_DEVICE;
amit.ghoshdd12d882022-07-01 12:32:36 +02001211const StopManagingDeviceResponse_Reason StopManagingDeviceResponse::DEVICE_UNREACHABLE;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301212const StopManagingDeviceResponse_Reason StopManagingDeviceResponse::Reason_MIN;
1213const StopManagingDeviceResponse_Reason StopManagingDeviceResponse::Reason_MAX;
1214const int StopManagingDeviceResponse::Reason_ARRAYSIZE;
1215#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1216const ::google::protobuf::EnumDescriptor* ManagedDevicesResponse_Reason_descriptor() {
1217 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1218 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[5];
1219}
1220bool ManagedDevicesResponse_Reason_IsValid(int value) {
1221 switch (value) {
1222 case 0:
1223 case 1:
1224 return true;
1225 default:
1226 return false;
1227 }
1228}
1229
1230#if !defined(_MSC_VER) || _MSC_VER >= 1900
1231const ManagedDevicesResponse_Reason ManagedDevicesResponse::UNDEFINED_REASON;
1232const ManagedDevicesResponse_Reason ManagedDevicesResponse::INTERNAL_ERROR;
1233const ManagedDevicesResponse_Reason ManagedDevicesResponse::Reason_MIN;
1234const ManagedDevicesResponse_Reason ManagedDevicesResponse::Reason_MAX;
1235const int ManagedDevicesResponse::Reason_ARRAYSIZE;
1236#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1237const ::google::protobuf::EnumDescriptor* SetRemoteEndpointResponse_Reason_descriptor() {
1238 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1239 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[6];
1240}
1241bool SetRemoteEndpointResponse_Reason_IsValid(int value) {
1242 switch (value) {
1243 case 0:
1244 case 1:
1245 case 2:
1246 case 3:
1247 case 4:
1248 case 5:
1249 case 6:
1250 return true;
1251 default:
1252 return false;
1253 }
1254}
1255
1256#if !defined(_MSC_VER) || _MSC_VER >= 1900
1257const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::UNDEFINED_REASON;
1258const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::UNKNOWN_DEVICE;
1259const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::INTERNAL_ERROR;
1260const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::LOGGING_ENDPOINT_ERROR;
1261const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::LOGGING_ENDPOINT_PROTOCOL_ERROR;
1262const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::MSGBUS_ENDPOINT_ERROR;
1263const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::DEVICE_UNREACHABLE;
1264const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::Reason_MIN;
1265const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::Reason_MAX;
1266const int SetRemoteEndpointResponse::Reason_ARRAYSIZE;
1267#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1268const ::google::protobuf::EnumDescriptor* GetLoggingEndpointResponse_Reason_descriptor() {
1269 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1270 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[7];
1271}
1272bool GetLoggingEndpointResponse_Reason_IsValid(int value) {
1273 switch (value) {
1274 case 0:
1275 case 1:
1276 case 2:
1277 case 3:
1278 return true;
1279 default:
1280 return false;
1281 }
1282}
1283
1284#if !defined(_MSC_VER) || _MSC_VER >= 1900
1285const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::UNDEFINED_REASON;
1286const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::UNKNOWN_DEVICE;
1287const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::INTERNAL_ERROR;
1288const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::DEVICE_UNREACHABLE;
1289const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::Reason_MIN;
1290const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::Reason_MAX;
1291const int GetLoggingEndpointResponse::Reason_ARRAYSIZE;
1292#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1293const ::google::protobuf::EnumDescriptor* GetMsgBusEndpointResponse_Reason_descriptor() {
1294 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1295 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[8];
1296}
1297bool GetMsgBusEndpointResponse_Reason_IsValid(int value) {
1298 switch (value) {
1299 case 0:
1300 case 1:
1301 case 2:
1302 return true;
1303 default:
1304 return false;
1305 }
1306}
1307
1308#if !defined(_MSC_VER) || _MSC_VER >= 1900
1309const GetMsgBusEndpointResponse_Reason GetMsgBusEndpointResponse::UNDEFINED_REASON;
1310const GetMsgBusEndpointResponse_Reason GetMsgBusEndpointResponse::INTERNAL_ERROR;
1311const GetMsgBusEndpointResponse_Reason GetMsgBusEndpointResponse::DEVICE_UNREACHABLE;
1312const GetMsgBusEndpointResponse_Reason GetMsgBusEndpointResponse::Reason_MIN;
1313const GetMsgBusEndpointResponse_Reason GetMsgBusEndpointResponse::Reason_MAX;
1314const int GetMsgBusEndpointResponse::Reason_ARRAYSIZE;
1315#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1316const ::google::protobuf::EnumDescriptor* SetLogLevelResponse_Reason_descriptor() {
1317 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1318 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[9];
1319}
1320bool SetLogLevelResponse_Reason_IsValid(int value) {
1321 switch (value) {
1322 case 0:
1323 case 1:
1324 case 2:
1325 case 3:
1326 case 4:
1327 return true;
1328 default:
1329 return false;
1330 }
1331}
1332
1333#if !defined(_MSC_VER) || _MSC_VER >= 1900
1334const SetLogLevelResponse_Reason SetLogLevelResponse::UNDEFINED_REASON;
1335const SetLogLevelResponse_Reason SetLogLevelResponse::UNKNOWN_DEVICE;
1336const SetLogLevelResponse_Reason SetLogLevelResponse::INTERNAL_ERROR;
1337const SetLogLevelResponse_Reason SetLogLevelResponse::UNKNOWN_LOG_ENTITY;
1338const SetLogLevelResponse_Reason SetLogLevelResponse::DEVICE_UNREACHABLE;
1339const SetLogLevelResponse_Reason SetLogLevelResponse::Reason_MIN;
1340const SetLogLevelResponse_Reason SetLogLevelResponse::Reason_MAX;
1341const int SetLogLevelResponse::Reason_ARRAYSIZE;
1342#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1343const ::google::protobuf::EnumDescriptor* GetLogLevelResponse_Reason_descriptor() {
1344 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1345 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[10];
1346}
1347bool GetLogLevelResponse_Reason_IsValid(int value) {
1348 switch (value) {
1349 case 0:
1350 case 1:
1351 case 2:
1352 case 3:
1353 case 4:
1354 return true;
1355 default:
1356 return false;
1357 }
1358}
1359
1360#if !defined(_MSC_VER) || _MSC_VER >= 1900
1361const GetLogLevelResponse_Reason GetLogLevelResponse::UNDEFINED_REASON;
1362const GetLogLevelResponse_Reason GetLogLevelResponse::UNKNOWN_DEVICE;
1363const GetLogLevelResponse_Reason GetLogLevelResponse::INTERNAL_ERROR;
1364const GetLogLevelResponse_Reason GetLogLevelResponse::UNKNOWN_LOG_ENTITY;
1365const GetLogLevelResponse_Reason GetLogLevelResponse::DEVICE_UNREACHABLE;
1366const GetLogLevelResponse_Reason GetLogLevelResponse::Reason_MIN;
1367const GetLogLevelResponse_Reason GetLogLevelResponse::Reason_MAX;
1368const int GetLogLevelResponse::Reason_ARRAYSIZE;
1369#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
amit.ghosh93183512024-05-28 22:37:27 +02001370const ::google::protobuf::EnumDescriptor* SetDmLogLevelResponse_Reason_descriptor() {
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +05301371 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1372 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[11];
1373}
amit.ghosh93183512024-05-28 22:37:27 +02001374bool SetDmLogLevelResponse_Reason_IsValid(int value) {
1375 switch (value) {
1376 case 0:
1377 case 1:
1378 case 2:
1379 return true;
1380 default:
1381 return false;
1382 }
1383}
1384
1385#if !defined(_MSC_VER) || _MSC_VER >= 1900
1386const SetDmLogLevelResponse_Reason SetDmLogLevelResponse::UNDEFINED_REASON;
1387const SetDmLogLevelResponse_Reason SetDmLogLevelResponse::INTERNAL_ERROR;
1388const SetDmLogLevelResponse_Reason SetDmLogLevelResponse::UNKNOWN_LOG_LEVEL;
1389const SetDmLogLevelResponse_Reason SetDmLogLevelResponse::Reason_MIN;
1390const SetDmLogLevelResponse_Reason SetDmLogLevelResponse::Reason_MAX;
1391const int SetDmLogLevelResponse::Reason_ARRAYSIZE;
1392#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1393const ::google::protobuf::EnumDescriptor* GetDmLogLevelResponse_Reason_descriptor() {
1394 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1395 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[12];
1396}
1397bool GetDmLogLevelResponse_Reason_IsValid(int value) {
1398 switch (value) {
1399 case 0:
1400 case 1:
1401 return true;
1402 default:
1403 return false;
1404 }
1405}
1406
1407#if !defined(_MSC_VER) || _MSC_VER >= 1900
1408const GetDmLogLevelResponse_Reason GetDmLogLevelResponse::UNDEFINED_REASON;
1409const GetDmLogLevelResponse_Reason GetDmLogLevelResponse::INTERNAL_ERROR;
1410const GetDmLogLevelResponse_Reason GetDmLogLevelResponse::Reason_MIN;
1411const GetDmLogLevelResponse_Reason GetDmLogLevelResponse::Reason_MAX;
1412const int GetDmLogLevelResponse::Reason_ARRAYSIZE;
1413#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1414const ::google::protobuf::EnumDescriptor* RebootDeviceResponse_Reason_descriptor() {
1415 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1416 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[13];
1417}
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +05301418bool RebootDeviceResponse_Reason_IsValid(int value) {
1419 switch (value) {
1420 case 0:
1421 case 1:
1422 case 2:
1423 case 3:
amit.ghosh840cb602022-04-08 16:10:50 +02001424 case 4:
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +05301425 return true;
1426 default:
1427 return false;
1428 }
1429}
1430
1431#if !defined(_MSC_VER) || _MSC_VER >= 1900
1432const RebootDeviceResponse_Reason RebootDeviceResponse::UNDEFINED_REASON;
1433const RebootDeviceResponse_Reason RebootDeviceResponse::UNKNOWN_DEVICE;
1434const RebootDeviceResponse_Reason RebootDeviceResponse::INTERNAL_ERROR;
1435const RebootDeviceResponse_Reason RebootDeviceResponse::DEVICE_UNREACHABLE;
amit.ghosh840cb602022-04-08 16:10:50 +02001436const RebootDeviceResponse_Reason RebootDeviceResponse::DEVICE_IN_WRONG_STATE;
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +05301437const RebootDeviceResponse_Reason RebootDeviceResponse::Reason_MIN;
1438const RebootDeviceResponse_Reason RebootDeviceResponse::Reason_MAX;
1439const int RebootDeviceResponse::Reason_ARRAYSIZE;
1440#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301441
1442// ===================================================================
1443
1444void PhysicalInventoryRequest::InitAsDefaultInstance() {
1445 ::dmi::_PhysicalInventoryRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
1446 ::dmi::Uuid::internal_default_instance());
1447}
1448class PhysicalInventoryRequest::HasBitSetters {
1449 public:
1450 static const ::dmi::Uuid& device_uuid(const PhysicalInventoryRequest* msg);
1451};
1452
1453const ::dmi::Uuid&
1454PhysicalInventoryRequest::HasBitSetters::device_uuid(const PhysicalInventoryRequest* msg) {
1455 return *msg->device_uuid_;
1456}
1457void PhysicalInventoryRequest::clear_device_uuid() {
1458 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
1459 delete device_uuid_;
1460 }
1461 device_uuid_ = nullptr;
1462}
1463#if !defined(_MSC_VER) || _MSC_VER >= 1900
1464const int PhysicalInventoryRequest::kDeviceUuidFieldNumber;
1465#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1466
1467PhysicalInventoryRequest::PhysicalInventoryRequest()
1468 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
1469 SharedCtor();
1470 // @@protoc_insertion_point(constructor:dmi.PhysicalInventoryRequest)
1471}
1472PhysicalInventoryRequest::PhysicalInventoryRequest(const PhysicalInventoryRequest& from)
1473 : ::google::protobuf::Message(),
1474 _internal_metadata_(nullptr) {
1475 _internal_metadata_.MergeFrom(from._internal_metadata_);
1476 if (from.has_device_uuid()) {
1477 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
1478 } else {
1479 device_uuid_ = nullptr;
1480 }
1481 // @@protoc_insertion_point(copy_constructor:dmi.PhysicalInventoryRequest)
1482}
1483
1484void PhysicalInventoryRequest::SharedCtor() {
1485 ::google::protobuf::internal::InitSCC(
1486 &scc_info_PhysicalInventoryRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
1487 device_uuid_ = nullptr;
1488}
1489
1490PhysicalInventoryRequest::~PhysicalInventoryRequest() {
1491 // @@protoc_insertion_point(destructor:dmi.PhysicalInventoryRequest)
1492 SharedDtor();
1493}
1494
1495void PhysicalInventoryRequest::SharedDtor() {
1496 if (this != internal_default_instance()) delete device_uuid_;
1497}
1498
1499void PhysicalInventoryRequest::SetCachedSize(int size) const {
1500 _cached_size_.Set(size);
1501}
1502const PhysicalInventoryRequest& PhysicalInventoryRequest::default_instance() {
1503 ::google::protobuf::internal::InitSCC(&::scc_info_PhysicalInventoryRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
1504 return *internal_default_instance();
1505}
1506
1507
1508void PhysicalInventoryRequest::Clear() {
1509// @@protoc_insertion_point(message_clear_start:dmi.PhysicalInventoryRequest)
1510 ::google::protobuf::uint32 cached_has_bits = 0;
1511 // Prevent compiler warnings about cached_has_bits being unused
1512 (void) cached_has_bits;
1513
1514 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
1515 delete device_uuid_;
1516 }
1517 device_uuid_ = nullptr;
1518 _internal_metadata_.Clear();
1519}
1520
1521#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1522const char* PhysicalInventoryRequest::_InternalParse(const char* begin, const char* end, void* object,
1523 ::google::protobuf::internal::ParseContext* ctx) {
1524 auto msg = static_cast<PhysicalInventoryRequest*>(object);
1525 ::google::protobuf::int32 size; (void)size;
1526 int depth; (void)depth;
1527 ::google::protobuf::uint32 tag;
1528 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
1529 auto ptr = begin;
1530 while (ptr < end) {
1531 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
1532 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1533 switch (tag >> 3) {
1534 // .dmi.Uuid device_uuid = 1;
1535 case 1: {
1536 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
1537 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
1538 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1539 parser_till_end = ::dmi::Uuid::_InternalParse;
1540 object = msg->mutable_device_uuid();
1541 if (size > end - ptr) goto len_delim_till_end;
1542 ptr += size;
1543 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
1544 {parser_till_end, object}, ptr - size, ptr));
1545 break;
1546 }
1547 default: {
1548 handle_unusual:
1549 if ((tag & 7) == 4 || tag == 0) {
1550 ctx->EndGroup(tag);
1551 return ptr;
1552 }
1553 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
1554 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
1555 ptr = res.first;
1556 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
1557 if (res.second) return ptr;
1558 }
1559 } // switch
1560 } // while
1561 return ptr;
1562len_delim_till_end:
1563 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
1564 {parser_till_end, object}, size);
1565}
1566#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1567bool PhysicalInventoryRequest::MergePartialFromCodedStream(
1568 ::google::protobuf::io::CodedInputStream* input) {
1569#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
1570 ::google::protobuf::uint32 tag;
1571 // @@protoc_insertion_point(parse_start:dmi.PhysicalInventoryRequest)
1572 for (;;) {
1573 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1574 tag = p.first;
1575 if (!p.second) goto handle_unusual;
1576 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1577 // .dmi.Uuid device_uuid = 1;
1578 case 1: {
1579 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
1580 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1581 input, mutable_device_uuid()));
1582 } else {
1583 goto handle_unusual;
1584 }
1585 break;
1586 }
1587
1588 default: {
1589 handle_unusual:
1590 if (tag == 0) {
1591 goto success;
1592 }
1593 DO_(::google::protobuf::internal::WireFormat::SkipField(
1594 input, tag, _internal_metadata_.mutable_unknown_fields()));
1595 break;
1596 }
1597 }
1598 }
1599success:
1600 // @@protoc_insertion_point(parse_success:dmi.PhysicalInventoryRequest)
1601 return true;
1602failure:
1603 // @@protoc_insertion_point(parse_failure:dmi.PhysicalInventoryRequest)
1604 return false;
1605#undef DO_
1606}
1607#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1608
1609void PhysicalInventoryRequest::SerializeWithCachedSizes(
1610 ::google::protobuf::io::CodedOutputStream* output) const {
1611 // @@protoc_insertion_point(serialize_start:dmi.PhysicalInventoryRequest)
1612 ::google::protobuf::uint32 cached_has_bits = 0;
1613 (void) cached_has_bits;
1614
1615 // .dmi.Uuid device_uuid = 1;
1616 if (this->has_device_uuid()) {
1617 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1618 1, HasBitSetters::device_uuid(this), output);
1619 }
1620
1621 if (_internal_metadata_.have_unknown_fields()) {
1622 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1623 _internal_metadata_.unknown_fields(), output);
1624 }
1625 // @@protoc_insertion_point(serialize_end:dmi.PhysicalInventoryRequest)
1626}
1627
1628::google::protobuf::uint8* PhysicalInventoryRequest::InternalSerializeWithCachedSizesToArray(
1629 ::google::protobuf::uint8* target) const {
1630 // @@protoc_insertion_point(serialize_to_array_start:dmi.PhysicalInventoryRequest)
1631 ::google::protobuf::uint32 cached_has_bits = 0;
1632 (void) cached_has_bits;
1633
1634 // .dmi.Uuid device_uuid = 1;
1635 if (this->has_device_uuid()) {
1636 target = ::google::protobuf::internal::WireFormatLite::
1637 InternalWriteMessageToArray(
1638 1, HasBitSetters::device_uuid(this), target);
1639 }
1640
1641 if (_internal_metadata_.have_unknown_fields()) {
1642 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1643 _internal_metadata_.unknown_fields(), target);
1644 }
1645 // @@protoc_insertion_point(serialize_to_array_end:dmi.PhysicalInventoryRequest)
1646 return target;
1647}
1648
1649size_t PhysicalInventoryRequest::ByteSizeLong() const {
1650// @@protoc_insertion_point(message_byte_size_start:dmi.PhysicalInventoryRequest)
1651 size_t total_size = 0;
1652
1653 if (_internal_metadata_.have_unknown_fields()) {
1654 total_size +=
1655 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1656 _internal_metadata_.unknown_fields());
1657 }
1658 ::google::protobuf::uint32 cached_has_bits = 0;
1659 // Prevent compiler warnings about cached_has_bits being unused
1660 (void) cached_has_bits;
1661
1662 // .dmi.Uuid device_uuid = 1;
1663 if (this->has_device_uuid()) {
1664 total_size += 1 +
1665 ::google::protobuf::internal::WireFormatLite::MessageSize(
1666 *device_uuid_);
1667 }
1668
1669 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1670 SetCachedSize(cached_size);
1671 return total_size;
1672}
1673
1674void PhysicalInventoryRequest::MergeFrom(const ::google::protobuf::Message& from) {
1675// @@protoc_insertion_point(generalized_merge_from_start:dmi.PhysicalInventoryRequest)
1676 GOOGLE_DCHECK_NE(&from, this);
1677 const PhysicalInventoryRequest* source =
1678 ::google::protobuf::DynamicCastToGenerated<PhysicalInventoryRequest>(
1679 &from);
1680 if (source == nullptr) {
1681 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.PhysicalInventoryRequest)
1682 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1683 } else {
1684 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.PhysicalInventoryRequest)
1685 MergeFrom(*source);
1686 }
1687}
1688
1689void PhysicalInventoryRequest::MergeFrom(const PhysicalInventoryRequest& from) {
1690// @@protoc_insertion_point(class_specific_merge_from_start:dmi.PhysicalInventoryRequest)
1691 GOOGLE_DCHECK_NE(&from, this);
1692 _internal_metadata_.MergeFrom(from._internal_metadata_);
1693 ::google::protobuf::uint32 cached_has_bits = 0;
1694 (void) cached_has_bits;
1695
1696 if (from.has_device_uuid()) {
1697 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
1698 }
1699}
1700
1701void PhysicalInventoryRequest::CopyFrom(const ::google::protobuf::Message& from) {
1702// @@protoc_insertion_point(generalized_copy_from_start:dmi.PhysicalInventoryRequest)
1703 if (&from == this) return;
1704 Clear();
1705 MergeFrom(from);
1706}
1707
1708void PhysicalInventoryRequest::CopyFrom(const PhysicalInventoryRequest& from) {
1709// @@protoc_insertion_point(class_specific_copy_from_start:dmi.PhysicalInventoryRequest)
1710 if (&from == this) return;
1711 Clear();
1712 MergeFrom(from);
1713}
1714
1715bool PhysicalInventoryRequest::IsInitialized() const {
1716 return true;
1717}
1718
1719void PhysicalInventoryRequest::Swap(PhysicalInventoryRequest* other) {
1720 if (other == this) return;
1721 InternalSwap(other);
1722}
1723void PhysicalInventoryRequest::InternalSwap(PhysicalInventoryRequest* other) {
1724 using std::swap;
1725 _internal_metadata_.Swap(&other->_internal_metadata_);
1726 swap(device_uuid_, other->device_uuid_);
1727}
1728
1729::google::protobuf::Metadata PhysicalInventoryRequest::GetMetadata() const {
1730 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1731 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
1732}
1733
1734
1735// ===================================================================
1736
1737void PhysicalInventoryResponse::InitAsDefaultInstance() {
1738 ::dmi::_PhysicalInventoryResponse_default_instance_._instance.get_mutable()->inventory_ = const_cast< ::dmi::Hardware*>(
1739 ::dmi::Hardware::internal_default_instance());
1740}
1741class PhysicalInventoryResponse::HasBitSetters {
1742 public:
1743 static const ::dmi::Hardware& inventory(const PhysicalInventoryResponse* msg);
1744};
1745
1746const ::dmi::Hardware&
1747PhysicalInventoryResponse::HasBitSetters::inventory(const PhysicalInventoryResponse* msg) {
1748 return *msg->inventory_;
1749}
1750void PhysicalInventoryResponse::clear_inventory() {
1751 if (GetArenaNoVirtual() == nullptr && inventory_ != nullptr) {
1752 delete inventory_;
1753 }
1754 inventory_ = nullptr;
1755}
1756#if !defined(_MSC_VER) || _MSC_VER >= 1900
1757const int PhysicalInventoryResponse::kStatusFieldNumber;
1758const int PhysicalInventoryResponse::kReasonFieldNumber;
1759const int PhysicalInventoryResponse::kInventoryFieldNumber;
1760const int PhysicalInventoryResponse::kReasonDetailFieldNumber;
1761#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1762
1763PhysicalInventoryResponse::PhysicalInventoryResponse()
1764 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
1765 SharedCtor();
1766 // @@protoc_insertion_point(constructor:dmi.PhysicalInventoryResponse)
1767}
1768PhysicalInventoryResponse::PhysicalInventoryResponse(const PhysicalInventoryResponse& from)
1769 : ::google::protobuf::Message(),
1770 _internal_metadata_(nullptr) {
1771 _internal_metadata_.MergeFrom(from._internal_metadata_);
1772 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1773 if (from.reason_detail().size() > 0) {
1774 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
1775 }
1776 if (from.has_inventory()) {
1777 inventory_ = new ::dmi::Hardware(*from.inventory_);
1778 } else {
1779 inventory_ = nullptr;
1780 }
1781 ::memcpy(&status_, &from.status_,
1782 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
1783 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
1784 // @@protoc_insertion_point(copy_constructor:dmi.PhysicalInventoryResponse)
1785}
1786
1787void PhysicalInventoryResponse::SharedCtor() {
1788 ::google::protobuf::internal::InitSCC(
1789 &scc_info_PhysicalInventoryResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
1790 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1791 ::memset(&inventory_, 0, static_cast<size_t>(
1792 reinterpret_cast<char*>(&reason_) -
1793 reinterpret_cast<char*>(&inventory_)) + sizeof(reason_));
1794}
1795
1796PhysicalInventoryResponse::~PhysicalInventoryResponse() {
1797 // @@protoc_insertion_point(destructor:dmi.PhysicalInventoryResponse)
1798 SharedDtor();
1799}
1800
1801void PhysicalInventoryResponse::SharedDtor() {
1802 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1803 if (this != internal_default_instance()) delete inventory_;
1804}
1805
1806void PhysicalInventoryResponse::SetCachedSize(int size) const {
1807 _cached_size_.Set(size);
1808}
1809const PhysicalInventoryResponse& PhysicalInventoryResponse::default_instance() {
1810 ::google::protobuf::internal::InitSCC(&::scc_info_PhysicalInventoryResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
1811 return *internal_default_instance();
1812}
1813
1814
1815void PhysicalInventoryResponse::Clear() {
1816// @@protoc_insertion_point(message_clear_start:dmi.PhysicalInventoryResponse)
1817 ::google::protobuf::uint32 cached_has_bits = 0;
1818 // Prevent compiler warnings about cached_has_bits being unused
1819 (void) cached_has_bits;
1820
1821 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1822 if (GetArenaNoVirtual() == nullptr && inventory_ != nullptr) {
1823 delete inventory_;
1824 }
1825 inventory_ = nullptr;
1826 ::memset(&status_, 0, static_cast<size_t>(
1827 reinterpret_cast<char*>(&reason_) -
1828 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
1829 _internal_metadata_.Clear();
1830}
1831
1832#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1833const char* PhysicalInventoryResponse::_InternalParse(const char* begin, const char* end, void* object,
1834 ::google::protobuf::internal::ParseContext* ctx) {
1835 auto msg = static_cast<PhysicalInventoryResponse*>(object);
1836 ::google::protobuf::int32 size; (void)size;
1837 int depth; (void)depth;
1838 ::google::protobuf::uint32 tag;
1839 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
1840 auto ptr = begin;
1841 while (ptr < end) {
1842 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
1843 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1844 switch (tag >> 3) {
1845 // .dmi.Status status = 1;
1846 case 1: {
1847 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
1848 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
1849 msg->set_status(static_cast<::dmi::Status>(val));
1850 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1851 break;
1852 }
1853 // .dmi.PhysicalInventoryResponse.Reason reason = 2;
1854 case 2: {
1855 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
1856 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
1857 msg->set_reason(static_cast<::dmi::PhysicalInventoryResponse_Reason>(val));
1858 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1859 break;
1860 }
1861 // .dmi.Hardware inventory = 3;
1862 case 3: {
1863 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
1864 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
1865 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1866 parser_till_end = ::dmi::Hardware::_InternalParse;
1867 object = msg->mutable_inventory();
1868 if (size > end - ptr) goto len_delim_till_end;
1869 ptr += size;
1870 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
1871 {parser_till_end, object}, ptr - size, ptr));
1872 break;
1873 }
1874 // string reason_detail = 4;
1875 case 4: {
1876 if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual;
1877 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
1878 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1879 ctx->extra_parse_data().SetFieldName("dmi.PhysicalInventoryResponse.reason_detail");
1880 object = msg->mutable_reason_detail();
1881 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
1882 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
1883 goto string_till_end;
1884 }
1885 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
1886 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
1887 ptr += size;
1888 break;
1889 }
1890 default: {
1891 handle_unusual:
1892 if ((tag & 7) == 4 || tag == 0) {
1893 ctx->EndGroup(tag);
1894 return ptr;
1895 }
1896 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
1897 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
1898 ptr = res.first;
1899 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
1900 if (res.second) return ptr;
1901 }
1902 } // switch
1903 } // while
1904 return ptr;
1905string_till_end:
1906 static_cast<::std::string*>(object)->clear();
1907 static_cast<::std::string*>(object)->reserve(size);
1908 goto len_delim_till_end;
1909len_delim_till_end:
1910 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
1911 {parser_till_end, object}, size);
1912}
1913#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1914bool PhysicalInventoryResponse::MergePartialFromCodedStream(
1915 ::google::protobuf::io::CodedInputStream* input) {
1916#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
1917 ::google::protobuf::uint32 tag;
1918 // @@protoc_insertion_point(parse_start:dmi.PhysicalInventoryResponse)
1919 for (;;) {
1920 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1921 tag = p.first;
1922 if (!p.second) goto handle_unusual;
1923 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1924 // .dmi.Status status = 1;
1925 case 1: {
1926 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
1927 int value = 0;
1928 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1929 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1930 input, &value)));
1931 set_status(static_cast< ::dmi::Status >(value));
1932 } else {
1933 goto handle_unusual;
1934 }
1935 break;
1936 }
1937
1938 // .dmi.PhysicalInventoryResponse.Reason reason = 2;
1939 case 2: {
1940 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
1941 int value = 0;
1942 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1943 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1944 input, &value)));
1945 set_reason(static_cast< ::dmi::PhysicalInventoryResponse_Reason >(value));
1946 } else {
1947 goto handle_unusual;
1948 }
1949 break;
1950 }
1951
1952 // .dmi.Hardware inventory = 3;
1953 case 3: {
1954 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
1955 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1956 input, mutable_inventory()));
1957 } else {
1958 goto handle_unusual;
1959 }
1960 break;
1961 }
1962
1963 // string reason_detail = 4;
1964 case 4: {
1965 if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
1966 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1967 input, this->mutable_reason_detail()));
1968 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1969 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
1970 ::google::protobuf::internal::WireFormatLite::PARSE,
1971 "dmi.PhysicalInventoryResponse.reason_detail"));
1972 } else {
1973 goto handle_unusual;
1974 }
1975 break;
1976 }
1977
1978 default: {
1979 handle_unusual:
1980 if (tag == 0) {
1981 goto success;
1982 }
1983 DO_(::google::protobuf::internal::WireFormat::SkipField(
1984 input, tag, _internal_metadata_.mutable_unknown_fields()));
1985 break;
1986 }
1987 }
1988 }
1989success:
1990 // @@protoc_insertion_point(parse_success:dmi.PhysicalInventoryResponse)
1991 return true;
1992failure:
1993 // @@protoc_insertion_point(parse_failure:dmi.PhysicalInventoryResponse)
1994 return false;
1995#undef DO_
1996}
1997#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1998
1999void PhysicalInventoryResponse::SerializeWithCachedSizes(
2000 ::google::protobuf::io::CodedOutputStream* output) const {
2001 // @@protoc_insertion_point(serialize_start:dmi.PhysicalInventoryResponse)
2002 ::google::protobuf::uint32 cached_has_bits = 0;
2003 (void) cached_has_bits;
2004
2005 // .dmi.Status status = 1;
2006 if (this->status() != 0) {
2007 ::google::protobuf::internal::WireFormatLite::WriteEnum(
2008 1, this->status(), output);
2009 }
2010
2011 // .dmi.PhysicalInventoryResponse.Reason reason = 2;
2012 if (this->reason() != 0) {
2013 ::google::protobuf::internal::WireFormatLite::WriteEnum(
2014 2, this->reason(), output);
2015 }
2016
2017 // .dmi.Hardware inventory = 3;
2018 if (this->has_inventory()) {
2019 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2020 3, HasBitSetters::inventory(this), output);
2021 }
2022
2023 // string reason_detail = 4;
2024 if (this->reason_detail().size() > 0) {
2025 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2026 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
2027 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
2028 "dmi.PhysicalInventoryResponse.reason_detail");
2029 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2030 4, this->reason_detail(), output);
2031 }
2032
2033 if (_internal_metadata_.have_unknown_fields()) {
2034 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2035 _internal_metadata_.unknown_fields(), output);
2036 }
2037 // @@protoc_insertion_point(serialize_end:dmi.PhysicalInventoryResponse)
2038}
2039
2040::google::protobuf::uint8* PhysicalInventoryResponse::InternalSerializeWithCachedSizesToArray(
2041 ::google::protobuf::uint8* target) const {
2042 // @@protoc_insertion_point(serialize_to_array_start:dmi.PhysicalInventoryResponse)
2043 ::google::protobuf::uint32 cached_has_bits = 0;
2044 (void) cached_has_bits;
2045
2046 // .dmi.Status status = 1;
2047 if (this->status() != 0) {
2048 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2049 1, this->status(), target);
2050 }
2051
2052 // .dmi.PhysicalInventoryResponse.Reason reason = 2;
2053 if (this->reason() != 0) {
2054 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2055 2, this->reason(), target);
2056 }
2057
2058 // .dmi.Hardware inventory = 3;
2059 if (this->has_inventory()) {
2060 target = ::google::protobuf::internal::WireFormatLite::
2061 InternalWriteMessageToArray(
2062 3, HasBitSetters::inventory(this), target);
2063 }
2064
2065 // string reason_detail = 4;
2066 if (this->reason_detail().size() > 0) {
2067 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2068 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
2069 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
2070 "dmi.PhysicalInventoryResponse.reason_detail");
2071 target =
2072 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2073 4, this->reason_detail(), target);
2074 }
2075
2076 if (_internal_metadata_.have_unknown_fields()) {
2077 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2078 _internal_metadata_.unknown_fields(), target);
2079 }
2080 // @@protoc_insertion_point(serialize_to_array_end:dmi.PhysicalInventoryResponse)
2081 return target;
2082}
2083
2084size_t PhysicalInventoryResponse::ByteSizeLong() const {
2085// @@protoc_insertion_point(message_byte_size_start:dmi.PhysicalInventoryResponse)
2086 size_t total_size = 0;
2087
2088 if (_internal_metadata_.have_unknown_fields()) {
2089 total_size +=
2090 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2091 _internal_metadata_.unknown_fields());
2092 }
2093 ::google::protobuf::uint32 cached_has_bits = 0;
2094 // Prevent compiler warnings about cached_has_bits being unused
2095 (void) cached_has_bits;
2096
2097 // string reason_detail = 4;
2098 if (this->reason_detail().size() > 0) {
2099 total_size += 1 +
2100 ::google::protobuf::internal::WireFormatLite::StringSize(
2101 this->reason_detail());
2102 }
2103
2104 // .dmi.Hardware inventory = 3;
2105 if (this->has_inventory()) {
2106 total_size += 1 +
2107 ::google::protobuf::internal::WireFormatLite::MessageSize(
2108 *inventory_);
2109 }
2110
2111 // .dmi.Status status = 1;
2112 if (this->status() != 0) {
2113 total_size += 1 +
2114 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
2115 }
2116
2117 // .dmi.PhysicalInventoryResponse.Reason reason = 2;
2118 if (this->reason() != 0) {
2119 total_size += 1 +
2120 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
2121 }
2122
2123 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2124 SetCachedSize(cached_size);
2125 return total_size;
2126}
2127
2128void PhysicalInventoryResponse::MergeFrom(const ::google::protobuf::Message& from) {
2129// @@protoc_insertion_point(generalized_merge_from_start:dmi.PhysicalInventoryResponse)
2130 GOOGLE_DCHECK_NE(&from, this);
2131 const PhysicalInventoryResponse* source =
2132 ::google::protobuf::DynamicCastToGenerated<PhysicalInventoryResponse>(
2133 &from);
2134 if (source == nullptr) {
2135 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.PhysicalInventoryResponse)
2136 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2137 } else {
2138 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.PhysicalInventoryResponse)
2139 MergeFrom(*source);
2140 }
2141}
2142
2143void PhysicalInventoryResponse::MergeFrom(const PhysicalInventoryResponse& from) {
2144// @@protoc_insertion_point(class_specific_merge_from_start:dmi.PhysicalInventoryResponse)
2145 GOOGLE_DCHECK_NE(&from, this);
2146 _internal_metadata_.MergeFrom(from._internal_metadata_);
2147 ::google::protobuf::uint32 cached_has_bits = 0;
2148 (void) cached_has_bits;
2149
2150 if (from.reason_detail().size() > 0) {
2151
2152 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
2153 }
2154 if (from.has_inventory()) {
2155 mutable_inventory()->::dmi::Hardware::MergeFrom(from.inventory());
2156 }
2157 if (from.status() != 0) {
2158 set_status(from.status());
2159 }
2160 if (from.reason() != 0) {
2161 set_reason(from.reason());
2162 }
2163}
2164
2165void PhysicalInventoryResponse::CopyFrom(const ::google::protobuf::Message& from) {
2166// @@protoc_insertion_point(generalized_copy_from_start:dmi.PhysicalInventoryResponse)
2167 if (&from == this) return;
2168 Clear();
2169 MergeFrom(from);
2170}
2171
2172void PhysicalInventoryResponse::CopyFrom(const PhysicalInventoryResponse& from) {
2173// @@protoc_insertion_point(class_specific_copy_from_start:dmi.PhysicalInventoryResponse)
2174 if (&from == this) return;
2175 Clear();
2176 MergeFrom(from);
2177}
2178
2179bool PhysicalInventoryResponse::IsInitialized() const {
2180 return true;
2181}
2182
2183void PhysicalInventoryResponse::Swap(PhysicalInventoryResponse* other) {
2184 if (other == this) return;
2185 InternalSwap(other);
2186}
2187void PhysicalInventoryResponse::InternalSwap(PhysicalInventoryResponse* other) {
2188 using std::swap;
2189 _internal_metadata_.Swap(&other->_internal_metadata_);
2190 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2191 GetArenaNoVirtual());
2192 swap(inventory_, other->inventory_);
2193 swap(status_, other->status_);
2194 swap(reason_, other->reason_);
2195}
2196
2197::google::protobuf::Metadata PhysicalInventoryResponse::GetMetadata() const {
2198 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
2199 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
2200}
2201
2202
2203// ===================================================================
2204
2205void HWComponentInfoGetRequest::InitAsDefaultInstance() {
2206 ::dmi::_HWComponentInfoGetRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
2207 ::dmi::Uuid::internal_default_instance());
2208 ::dmi::_HWComponentInfoGetRequest_default_instance_._instance.get_mutable()->component_uuid_ = const_cast< ::dmi::Uuid*>(
2209 ::dmi::Uuid::internal_default_instance());
2210}
2211class HWComponentInfoGetRequest::HasBitSetters {
2212 public:
2213 static const ::dmi::Uuid& device_uuid(const HWComponentInfoGetRequest* msg);
2214 static const ::dmi::Uuid& component_uuid(const HWComponentInfoGetRequest* msg);
2215};
2216
2217const ::dmi::Uuid&
2218HWComponentInfoGetRequest::HasBitSetters::device_uuid(const HWComponentInfoGetRequest* msg) {
2219 return *msg->device_uuid_;
2220}
2221const ::dmi::Uuid&
2222HWComponentInfoGetRequest::HasBitSetters::component_uuid(const HWComponentInfoGetRequest* msg) {
2223 return *msg->component_uuid_;
2224}
2225void HWComponentInfoGetRequest::clear_device_uuid() {
2226 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
2227 delete device_uuid_;
2228 }
2229 device_uuid_ = nullptr;
2230}
2231void HWComponentInfoGetRequest::clear_component_uuid() {
2232 if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) {
2233 delete component_uuid_;
2234 }
2235 component_uuid_ = nullptr;
2236}
2237#if !defined(_MSC_VER) || _MSC_VER >= 1900
2238const int HWComponentInfoGetRequest::kDeviceUuidFieldNumber;
2239const int HWComponentInfoGetRequest::kComponentUuidFieldNumber;
2240const int HWComponentInfoGetRequest::kComponentNameFieldNumber;
2241#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
2242
2243HWComponentInfoGetRequest::HWComponentInfoGetRequest()
2244 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
2245 SharedCtor();
2246 // @@protoc_insertion_point(constructor:dmi.HWComponentInfoGetRequest)
2247}
2248HWComponentInfoGetRequest::HWComponentInfoGetRequest(const HWComponentInfoGetRequest& from)
2249 : ::google::protobuf::Message(),
2250 _internal_metadata_(nullptr) {
2251 _internal_metadata_.MergeFrom(from._internal_metadata_);
2252 component_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2253 if (from.component_name().size() > 0) {
2254 component_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.component_name_);
2255 }
2256 if (from.has_device_uuid()) {
2257 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
2258 } else {
2259 device_uuid_ = nullptr;
2260 }
2261 if (from.has_component_uuid()) {
2262 component_uuid_ = new ::dmi::Uuid(*from.component_uuid_);
2263 } else {
2264 component_uuid_ = nullptr;
2265 }
2266 // @@protoc_insertion_point(copy_constructor:dmi.HWComponentInfoGetRequest)
2267}
2268
2269void HWComponentInfoGetRequest::SharedCtor() {
2270 ::google::protobuf::internal::InitSCC(
2271 &scc_info_HWComponentInfoGetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
2272 component_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2273 ::memset(&device_uuid_, 0, static_cast<size_t>(
2274 reinterpret_cast<char*>(&component_uuid_) -
2275 reinterpret_cast<char*>(&device_uuid_)) + sizeof(component_uuid_));
2276}
2277
2278HWComponentInfoGetRequest::~HWComponentInfoGetRequest() {
2279 // @@protoc_insertion_point(destructor:dmi.HWComponentInfoGetRequest)
2280 SharedDtor();
2281}
2282
2283void HWComponentInfoGetRequest::SharedDtor() {
2284 component_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2285 if (this != internal_default_instance()) delete device_uuid_;
2286 if (this != internal_default_instance()) delete component_uuid_;
2287}
2288
2289void HWComponentInfoGetRequest::SetCachedSize(int size) const {
2290 _cached_size_.Set(size);
2291}
2292const HWComponentInfoGetRequest& HWComponentInfoGetRequest::default_instance() {
2293 ::google::protobuf::internal::InitSCC(&::scc_info_HWComponentInfoGetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
2294 return *internal_default_instance();
2295}
2296
2297
2298void HWComponentInfoGetRequest::Clear() {
2299// @@protoc_insertion_point(message_clear_start:dmi.HWComponentInfoGetRequest)
2300 ::google::protobuf::uint32 cached_has_bits = 0;
2301 // Prevent compiler warnings about cached_has_bits being unused
2302 (void) cached_has_bits;
2303
2304 component_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2305 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
2306 delete device_uuid_;
2307 }
2308 device_uuid_ = nullptr;
2309 if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) {
2310 delete component_uuid_;
2311 }
2312 component_uuid_ = nullptr;
2313 _internal_metadata_.Clear();
2314}
2315
2316#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2317const char* HWComponentInfoGetRequest::_InternalParse(const char* begin, const char* end, void* object,
2318 ::google::protobuf::internal::ParseContext* ctx) {
2319 auto msg = static_cast<HWComponentInfoGetRequest*>(object);
2320 ::google::protobuf::int32 size; (void)size;
2321 int depth; (void)depth;
2322 ::google::protobuf::uint32 tag;
2323 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
2324 auto ptr = begin;
2325 while (ptr < end) {
2326 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
2327 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2328 switch (tag >> 3) {
2329 // .dmi.Uuid device_uuid = 1;
2330 case 1: {
2331 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
2332 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
2333 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2334 parser_till_end = ::dmi::Uuid::_InternalParse;
2335 object = msg->mutable_device_uuid();
2336 if (size > end - ptr) goto len_delim_till_end;
2337 ptr += size;
2338 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
2339 {parser_till_end, object}, ptr - size, ptr));
2340 break;
2341 }
2342 // .dmi.Uuid component_uuid = 2;
2343 case 2: {
2344 if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
2345 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
2346 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2347 parser_till_end = ::dmi::Uuid::_InternalParse;
2348 object = msg->mutable_component_uuid();
2349 if (size > end - ptr) goto len_delim_till_end;
2350 ptr += size;
2351 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
2352 {parser_till_end, object}, ptr - size, ptr));
2353 break;
2354 }
2355 // string component_name = 3;
2356 case 3: {
2357 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
2358 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
2359 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2360 ctx->extra_parse_data().SetFieldName("dmi.HWComponentInfoGetRequest.component_name");
2361 object = msg->mutable_component_name();
2362 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
2363 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
2364 goto string_till_end;
2365 }
2366 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
2367 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
2368 ptr += size;
2369 break;
2370 }
2371 default: {
2372 handle_unusual:
2373 if ((tag & 7) == 4 || tag == 0) {
2374 ctx->EndGroup(tag);
2375 return ptr;
2376 }
2377 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
2378 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
2379 ptr = res.first;
2380 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
2381 if (res.second) return ptr;
2382 }
2383 } // switch
2384 } // while
2385 return ptr;
2386string_till_end:
2387 static_cast<::std::string*>(object)->clear();
2388 static_cast<::std::string*>(object)->reserve(size);
2389 goto len_delim_till_end;
2390len_delim_till_end:
2391 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
2392 {parser_till_end, object}, size);
2393}
2394#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2395bool HWComponentInfoGetRequest::MergePartialFromCodedStream(
2396 ::google::protobuf::io::CodedInputStream* input) {
2397#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
2398 ::google::protobuf::uint32 tag;
2399 // @@protoc_insertion_point(parse_start:dmi.HWComponentInfoGetRequest)
2400 for (;;) {
2401 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2402 tag = p.first;
2403 if (!p.second) goto handle_unusual;
2404 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2405 // .dmi.Uuid device_uuid = 1;
2406 case 1: {
2407 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
2408 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
2409 input, mutable_device_uuid()));
2410 } else {
2411 goto handle_unusual;
2412 }
2413 break;
2414 }
2415
2416 // .dmi.Uuid component_uuid = 2;
2417 case 2: {
2418 if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
2419 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
2420 input, mutable_component_uuid()));
2421 } else {
2422 goto handle_unusual;
2423 }
2424 break;
2425 }
2426
2427 // string component_name = 3;
2428 case 3: {
2429 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
2430 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2431 input, this->mutable_component_name()));
2432 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2433 this->component_name().data(), static_cast<int>(this->component_name().length()),
2434 ::google::protobuf::internal::WireFormatLite::PARSE,
2435 "dmi.HWComponentInfoGetRequest.component_name"));
2436 } else {
2437 goto handle_unusual;
2438 }
2439 break;
2440 }
2441
2442 default: {
2443 handle_unusual:
2444 if (tag == 0) {
2445 goto success;
2446 }
2447 DO_(::google::protobuf::internal::WireFormat::SkipField(
2448 input, tag, _internal_metadata_.mutable_unknown_fields()));
2449 break;
2450 }
2451 }
2452 }
2453success:
2454 // @@protoc_insertion_point(parse_success:dmi.HWComponentInfoGetRequest)
2455 return true;
2456failure:
2457 // @@protoc_insertion_point(parse_failure:dmi.HWComponentInfoGetRequest)
2458 return false;
2459#undef DO_
2460}
2461#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2462
2463void HWComponentInfoGetRequest::SerializeWithCachedSizes(
2464 ::google::protobuf::io::CodedOutputStream* output) const {
2465 // @@protoc_insertion_point(serialize_start:dmi.HWComponentInfoGetRequest)
2466 ::google::protobuf::uint32 cached_has_bits = 0;
2467 (void) cached_has_bits;
2468
2469 // .dmi.Uuid device_uuid = 1;
2470 if (this->has_device_uuid()) {
2471 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2472 1, HasBitSetters::device_uuid(this), output);
2473 }
2474
2475 // .dmi.Uuid component_uuid = 2;
2476 if (this->has_component_uuid()) {
2477 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2478 2, HasBitSetters::component_uuid(this), output);
2479 }
2480
2481 // string component_name = 3;
2482 if (this->component_name().size() > 0) {
2483 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2484 this->component_name().data(), static_cast<int>(this->component_name().length()),
2485 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
2486 "dmi.HWComponentInfoGetRequest.component_name");
2487 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2488 3, this->component_name(), output);
2489 }
2490
2491 if (_internal_metadata_.have_unknown_fields()) {
2492 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2493 _internal_metadata_.unknown_fields(), output);
2494 }
2495 // @@protoc_insertion_point(serialize_end:dmi.HWComponentInfoGetRequest)
2496}
2497
2498::google::protobuf::uint8* HWComponentInfoGetRequest::InternalSerializeWithCachedSizesToArray(
2499 ::google::protobuf::uint8* target) const {
2500 // @@protoc_insertion_point(serialize_to_array_start:dmi.HWComponentInfoGetRequest)
2501 ::google::protobuf::uint32 cached_has_bits = 0;
2502 (void) cached_has_bits;
2503
2504 // .dmi.Uuid device_uuid = 1;
2505 if (this->has_device_uuid()) {
2506 target = ::google::protobuf::internal::WireFormatLite::
2507 InternalWriteMessageToArray(
2508 1, HasBitSetters::device_uuid(this), target);
2509 }
2510
2511 // .dmi.Uuid component_uuid = 2;
2512 if (this->has_component_uuid()) {
2513 target = ::google::protobuf::internal::WireFormatLite::
2514 InternalWriteMessageToArray(
2515 2, HasBitSetters::component_uuid(this), target);
2516 }
2517
2518 // string component_name = 3;
2519 if (this->component_name().size() > 0) {
2520 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2521 this->component_name().data(), static_cast<int>(this->component_name().length()),
2522 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
2523 "dmi.HWComponentInfoGetRequest.component_name");
2524 target =
2525 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2526 3, this->component_name(), target);
2527 }
2528
2529 if (_internal_metadata_.have_unknown_fields()) {
2530 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2531 _internal_metadata_.unknown_fields(), target);
2532 }
2533 // @@protoc_insertion_point(serialize_to_array_end:dmi.HWComponentInfoGetRequest)
2534 return target;
2535}
2536
2537size_t HWComponentInfoGetRequest::ByteSizeLong() const {
2538// @@protoc_insertion_point(message_byte_size_start:dmi.HWComponentInfoGetRequest)
2539 size_t total_size = 0;
2540
2541 if (_internal_metadata_.have_unknown_fields()) {
2542 total_size +=
2543 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2544 _internal_metadata_.unknown_fields());
2545 }
2546 ::google::protobuf::uint32 cached_has_bits = 0;
2547 // Prevent compiler warnings about cached_has_bits being unused
2548 (void) cached_has_bits;
2549
2550 // string component_name = 3;
2551 if (this->component_name().size() > 0) {
2552 total_size += 1 +
2553 ::google::protobuf::internal::WireFormatLite::StringSize(
2554 this->component_name());
2555 }
2556
2557 // .dmi.Uuid device_uuid = 1;
2558 if (this->has_device_uuid()) {
2559 total_size += 1 +
2560 ::google::protobuf::internal::WireFormatLite::MessageSize(
2561 *device_uuid_);
2562 }
2563
2564 // .dmi.Uuid component_uuid = 2;
2565 if (this->has_component_uuid()) {
2566 total_size += 1 +
2567 ::google::protobuf::internal::WireFormatLite::MessageSize(
2568 *component_uuid_);
2569 }
2570
2571 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2572 SetCachedSize(cached_size);
2573 return total_size;
2574}
2575
2576void HWComponentInfoGetRequest::MergeFrom(const ::google::protobuf::Message& from) {
2577// @@protoc_insertion_point(generalized_merge_from_start:dmi.HWComponentInfoGetRequest)
2578 GOOGLE_DCHECK_NE(&from, this);
2579 const HWComponentInfoGetRequest* source =
2580 ::google::protobuf::DynamicCastToGenerated<HWComponentInfoGetRequest>(
2581 &from);
2582 if (source == nullptr) {
2583 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.HWComponentInfoGetRequest)
2584 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2585 } else {
2586 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.HWComponentInfoGetRequest)
2587 MergeFrom(*source);
2588 }
2589}
2590
2591void HWComponentInfoGetRequest::MergeFrom(const HWComponentInfoGetRequest& from) {
2592// @@protoc_insertion_point(class_specific_merge_from_start:dmi.HWComponentInfoGetRequest)
2593 GOOGLE_DCHECK_NE(&from, this);
2594 _internal_metadata_.MergeFrom(from._internal_metadata_);
2595 ::google::protobuf::uint32 cached_has_bits = 0;
2596 (void) cached_has_bits;
2597
2598 if (from.component_name().size() > 0) {
2599
2600 component_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.component_name_);
2601 }
2602 if (from.has_device_uuid()) {
2603 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
2604 }
2605 if (from.has_component_uuid()) {
2606 mutable_component_uuid()->::dmi::Uuid::MergeFrom(from.component_uuid());
2607 }
2608}
2609
2610void HWComponentInfoGetRequest::CopyFrom(const ::google::protobuf::Message& from) {
2611// @@protoc_insertion_point(generalized_copy_from_start:dmi.HWComponentInfoGetRequest)
2612 if (&from == this) return;
2613 Clear();
2614 MergeFrom(from);
2615}
2616
2617void HWComponentInfoGetRequest::CopyFrom(const HWComponentInfoGetRequest& from) {
2618// @@protoc_insertion_point(class_specific_copy_from_start:dmi.HWComponentInfoGetRequest)
2619 if (&from == this) return;
2620 Clear();
2621 MergeFrom(from);
2622}
2623
2624bool HWComponentInfoGetRequest::IsInitialized() const {
2625 return true;
2626}
2627
2628void HWComponentInfoGetRequest::Swap(HWComponentInfoGetRequest* other) {
2629 if (other == this) return;
2630 InternalSwap(other);
2631}
2632void HWComponentInfoGetRequest::InternalSwap(HWComponentInfoGetRequest* other) {
2633 using std::swap;
2634 _internal_metadata_.Swap(&other->_internal_metadata_);
2635 component_name_.Swap(&other->component_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2636 GetArenaNoVirtual());
2637 swap(device_uuid_, other->device_uuid_);
2638 swap(component_uuid_, other->component_uuid_);
2639}
2640
2641::google::protobuf::Metadata HWComponentInfoGetRequest::GetMetadata() const {
2642 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
2643 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
2644}
2645
2646
2647// ===================================================================
2648
2649void HWComponentInfoGetResponse::InitAsDefaultInstance() {
2650 ::dmi::_HWComponentInfoGetResponse_default_instance_._instance.get_mutable()->component_ = const_cast< ::dmi::Component*>(
2651 ::dmi::Component::internal_default_instance());
2652}
2653class HWComponentInfoGetResponse::HasBitSetters {
2654 public:
2655 static const ::dmi::Component& component(const HWComponentInfoGetResponse* msg);
2656};
2657
2658const ::dmi::Component&
2659HWComponentInfoGetResponse::HasBitSetters::component(const HWComponentInfoGetResponse* msg) {
2660 return *msg->component_;
2661}
2662void HWComponentInfoGetResponse::clear_component() {
2663 if (GetArenaNoVirtual() == nullptr && component_ != nullptr) {
2664 delete component_;
2665 }
2666 component_ = nullptr;
2667}
2668#if !defined(_MSC_VER) || _MSC_VER >= 1900
2669const int HWComponentInfoGetResponse::kStatusFieldNumber;
2670const int HWComponentInfoGetResponse::kReasonFieldNumber;
2671const int HWComponentInfoGetResponse::kComponentFieldNumber;
2672const int HWComponentInfoGetResponse::kReasonDetailFieldNumber;
2673#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
2674
2675HWComponentInfoGetResponse::HWComponentInfoGetResponse()
2676 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
2677 SharedCtor();
2678 // @@protoc_insertion_point(constructor:dmi.HWComponentInfoGetResponse)
2679}
2680HWComponentInfoGetResponse::HWComponentInfoGetResponse(const HWComponentInfoGetResponse& from)
2681 : ::google::protobuf::Message(),
2682 _internal_metadata_(nullptr) {
2683 _internal_metadata_.MergeFrom(from._internal_metadata_);
2684 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2685 if (from.reason_detail().size() > 0) {
2686 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
2687 }
2688 if (from.has_component()) {
2689 component_ = new ::dmi::Component(*from.component_);
2690 } else {
2691 component_ = nullptr;
2692 }
2693 ::memcpy(&status_, &from.status_,
2694 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
2695 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
2696 // @@protoc_insertion_point(copy_constructor:dmi.HWComponentInfoGetResponse)
2697}
2698
2699void HWComponentInfoGetResponse::SharedCtor() {
2700 ::google::protobuf::internal::InitSCC(
2701 &scc_info_HWComponentInfoGetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
2702 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2703 ::memset(&component_, 0, static_cast<size_t>(
2704 reinterpret_cast<char*>(&reason_) -
2705 reinterpret_cast<char*>(&component_)) + sizeof(reason_));
2706}
2707
2708HWComponentInfoGetResponse::~HWComponentInfoGetResponse() {
2709 // @@protoc_insertion_point(destructor:dmi.HWComponentInfoGetResponse)
2710 SharedDtor();
2711}
2712
2713void HWComponentInfoGetResponse::SharedDtor() {
2714 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2715 if (this != internal_default_instance()) delete component_;
2716}
2717
2718void HWComponentInfoGetResponse::SetCachedSize(int size) const {
2719 _cached_size_.Set(size);
2720}
2721const HWComponentInfoGetResponse& HWComponentInfoGetResponse::default_instance() {
2722 ::google::protobuf::internal::InitSCC(&::scc_info_HWComponentInfoGetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
2723 return *internal_default_instance();
2724}
2725
2726
2727void HWComponentInfoGetResponse::Clear() {
2728// @@protoc_insertion_point(message_clear_start:dmi.HWComponentInfoGetResponse)
2729 ::google::protobuf::uint32 cached_has_bits = 0;
2730 // Prevent compiler warnings about cached_has_bits being unused
2731 (void) cached_has_bits;
2732
2733 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2734 if (GetArenaNoVirtual() == nullptr && component_ != nullptr) {
2735 delete component_;
2736 }
2737 component_ = nullptr;
2738 ::memset(&status_, 0, static_cast<size_t>(
2739 reinterpret_cast<char*>(&reason_) -
2740 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
2741 _internal_metadata_.Clear();
2742}
2743
2744#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2745const char* HWComponentInfoGetResponse::_InternalParse(const char* begin, const char* end, void* object,
2746 ::google::protobuf::internal::ParseContext* ctx) {
2747 auto msg = static_cast<HWComponentInfoGetResponse*>(object);
2748 ::google::protobuf::int32 size; (void)size;
2749 int depth; (void)depth;
2750 ::google::protobuf::uint32 tag;
2751 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
2752 auto ptr = begin;
2753 while (ptr < end) {
2754 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
2755 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2756 switch (tag >> 3) {
2757 // .dmi.Status status = 1;
2758 case 1: {
2759 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
2760 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
2761 msg->set_status(static_cast<::dmi::Status>(val));
2762 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2763 break;
2764 }
2765 // .dmi.HWComponentInfoGetResponse.Reason reason = 2;
2766 case 2: {
2767 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
2768 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
2769 msg->set_reason(static_cast<::dmi::HWComponentInfoGetResponse_Reason>(val));
2770 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2771 break;
2772 }
2773 // .dmi.Component component = 3;
2774 case 3: {
2775 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
2776 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
2777 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2778 parser_till_end = ::dmi::Component::_InternalParse;
2779 object = msg->mutable_component();
2780 if (size > end - ptr) goto len_delim_till_end;
2781 ptr += size;
2782 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
2783 {parser_till_end, object}, ptr - size, ptr));
2784 break;
2785 }
2786 // string reason_detail = 4;
2787 case 4: {
2788 if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual;
2789 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
2790 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2791 ctx->extra_parse_data().SetFieldName("dmi.HWComponentInfoGetResponse.reason_detail");
2792 object = msg->mutable_reason_detail();
2793 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
2794 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
2795 goto string_till_end;
2796 }
2797 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
2798 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
2799 ptr += size;
2800 break;
2801 }
2802 default: {
2803 handle_unusual:
2804 if ((tag & 7) == 4 || tag == 0) {
2805 ctx->EndGroup(tag);
2806 return ptr;
2807 }
2808 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
2809 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
2810 ptr = res.first;
2811 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
2812 if (res.second) return ptr;
2813 }
2814 } // switch
2815 } // while
2816 return ptr;
2817string_till_end:
2818 static_cast<::std::string*>(object)->clear();
2819 static_cast<::std::string*>(object)->reserve(size);
2820 goto len_delim_till_end;
2821len_delim_till_end:
2822 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
2823 {parser_till_end, object}, size);
2824}
2825#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2826bool HWComponentInfoGetResponse::MergePartialFromCodedStream(
2827 ::google::protobuf::io::CodedInputStream* input) {
2828#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
2829 ::google::protobuf::uint32 tag;
2830 // @@protoc_insertion_point(parse_start:dmi.HWComponentInfoGetResponse)
2831 for (;;) {
2832 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2833 tag = p.first;
2834 if (!p.second) goto handle_unusual;
2835 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2836 // .dmi.Status status = 1;
2837 case 1: {
2838 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
2839 int value = 0;
2840 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2841 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
2842 input, &value)));
2843 set_status(static_cast< ::dmi::Status >(value));
2844 } else {
2845 goto handle_unusual;
2846 }
2847 break;
2848 }
2849
2850 // .dmi.HWComponentInfoGetResponse.Reason reason = 2;
2851 case 2: {
2852 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
2853 int value = 0;
2854 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2855 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
2856 input, &value)));
2857 set_reason(static_cast< ::dmi::HWComponentInfoGetResponse_Reason >(value));
2858 } else {
2859 goto handle_unusual;
2860 }
2861 break;
2862 }
2863
2864 // .dmi.Component component = 3;
2865 case 3: {
2866 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
2867 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
2868 input, mutable_component()));
2869 } else {
2870 goto handle_unusual;
2871 }
2872 break;
2873 }
2874
2875 // string reason_detail = 4;
2876 case 4: {
2877 if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
2878 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2879 input, this->mutable_reason_detail()));
2880 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2881 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
2882 ::google::protobuf::internal::WireFormatLite::PARSE,
2883 "dmi.HWComponentInfoGetResponse.reason_detail"));
2884 } else {
2885 goto handle_unusual;
2886 }
2887 break;
2888 }
2889
2890 default: {
2891 handle_unusual:
2892 if (tag == 0) {
2893 goto success;
2894 }
2895 DO_(::google::protobuf::internal::WireFormat::SkipField(
2896 input, tag, _internal_metadata_.mutable_unknown_fields()));
2897 break;
2898 }
2899 }
2900 }
2901success:
2902 // @@protoc_insertion_point(parse_success:dmi.HWComponentInfoGetResponse)
2903 return true;
2904failure:
2905 // @@protoc_insertion_point(parse_failure:dmi.HWComponentInfoGetResponse)
2906 return false;
2907#undef DO_
2908}
2909#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2910
2911void HWComponentInfoGetResponse::SerializeWithCachedSizes(
2912 ::google::protobuf::io::CodedOutputStream* output) const {
2913 // @@protoc_insertion_point(serialize_start:dmi.HWComponentInfoGetResponse)
2914 ::google::protobuf::uint32 cached_has_bits = 0;
2915 (void) cached_has_bits;
2916
2917 // .dmi.Status status = 1;
2918 if (this->status() != 0) {
2919 ::google::protobuf::internal::WireFormatLite::WriteEnum(
2920 1, this->status(), output);
2921 }
2922
2923 // .dmi.HWComponentInfoGetResponse.Reason reason = 2;
2924 if (this->reason() != 0) {
2925 ::google::protobuf::internal::WireFormatLite::WriteEnum(
2926 2, this->reason(), output);
2927 }
2928
2929 // .dmi.Component component = 3;
2930 if (this->has_component()) {
2931 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2932 3, HasBitSetters::component(this), output);
2933 }
2934
2935 // string reason_detail = 4;
2936 if (this->reason_detail().size() > 0) {
2937 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2938 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
2939 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
2940 "dmi.HWComponentInfoGetResponse.reason_detail");
2941 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2942 4, this->reason_detail(), output);
2943 }
2944
2945 if (_internal_metadata_.have_unknown_fields()) {
2946 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2947 _internal_metadata_.unknown_fields(), output);
2948 }
2949 // @@protoc_insertion_point(serialize_end:dmi.HWComponentInfoGetResponse)
2950}
2951
2952::google::protobuf::uint8* HWComponentInfoGetResponse::InternalSerializeWithCachedSizesToArray(
2953 ::google::protobuf::uint8* target) const {
2954 // @@protoc_insertion_point(serialize_to_array_start:dmi.HWComponentInfoGetResponse)
2955 ::google::protobuf::uint32 cached_has_bits = 0;
2956 (void) cached_has_bits;
2957
2958 // .dmi.Status status = 1;
2959 if (this->status() != 0) {
2960 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2961 1, this->status(), target);
2962 }
2963
2964 // .dmi.HWComponentInfoGetResponse.Reason reason = 2;
2965 if (this->reason() != 0) {
2966 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2967 2, this->reason(), target);
2968 }
2969
2970 // .dmi.Component component = 3;
2971 if (this->has_component()) {
2972 target = ::google::protobuf::internal::WireFormatLite::
2973 InternalWriteMessageToArray(
2974 3, HasBitSetters::component(this), target);
2975 }
2976
2977 // string reason_detail = 4;
2978 if (this->reason_detail().size() > 0) {
2979 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2980 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
2981 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
2982 "dmi.HWComponentInfoGetResponse.reason_detail");
2983 target =
2984 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2985 4, this->reason_detail(), target);
2986 }
2987
2988 if (_internal_metadata_.have_unknown_fields()) {
2989 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2990 _internal_metadata_.unknown_fields(), target);
2991 }
2992 // @@protoc_insertion_point(serialize_to_array_end:dmi.HWComponentInfoGetResponse)
2993 return target;
2994}
2995
2996size_t HWComponentInfoGetResponse::ByteSizeLong() const {
2997// @@protoc_insertion_point(message_byte_size_start:dmi.HWComponentInfoGetResponse)
2998 size_t total_size = 0;
2999
3000 if (_internal_metadata_.have_unknown_fields()) {
3001 total_size +=
3002 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3003 _internal_metadata_.unknown_fields());
3004 }
3005 ::google::protobuf::uint32 cached_has_bits = 0;
3006 // Prevent compiler warnings about cached_has_bits being unused
3007 (void) cached_has_bits;
3008
3009 // string reason_detail = 4;
3010 if (this->reason_detail().size() > 0) {
3011 total_size += 1 +
3012 ::google::protobuf::internal::WireFormatLite::StringSize(
3013 this->reason_detail());
3014 }
3015
3016 // .dmi.Component component = 3;
3017 if (this->has_component()) {
3018 total_size += 1 +
3019 ::google::protobuf::internal::WireFormatLite::MessageSize(
3020 *component_);
3021 }
3022
3023 // .dmi.Status status = 1;
3024 if (this->status() != 0) {
3025 total_size += 1 +
3026 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
3027 }
3028
3029 // .dmi.HWComponentInfoGetResponse.Reason reason = 2;
3030 if (this->reason() != 0) {
3031 total_size += 1 +
3032 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
3033 }
3034
3035 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3036 SetCachedSize(cached_size);
3037 return total_size;
3038}
3039
3040void HWComponentInfoGetResponse::MergeFrom(const ::google::protobuf::Message& from) {
3041// @@protoc_insertion_point(generalized_merge_from_start:dmi.HWComponentInfoGetResponse)
3042 GOOGLE_DCHECK_NE(&from, this);
3043 const HWComponentInfoGetResponse* source =
3044 ::google::protobuf::DynamicCastToGenerated<HWComponentInfoGetResponse>(
3045 &from);
3046 if (source == nullptr) {
3047 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.HWComponentInfoGetResponse)
3048 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3049 } else {
3050 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.HWComponentInfoGetResponse)
3051 MergeFrom(*source);
3052 }
3053}
3054
3055void HWComponentInfoGetResponse::MergeFrom(const HWComponentInfoGetResponse& from) {
3056// @@protoc_insertion_point(class_specific_merge_from_start:dmi.HWComponentInfoGetResponse)
3057 GOOGLE_DCHECK_NE(&from, this);
3058 _internal_metadata_.MergeFrom(from._internal_metadata_);
3059 ::google::protobuf::uint32 cached_has_bits = 0;
3060 (void) cached_has_bits;
3061
3062 if (from.reason_detail().size() > 0) {
3063
3064 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
3065 }
3066 if (from.has_component()) {
3067 mutable_component()->::dmi::Component::MergeFrom(from.component());
3068 }
3069 if (from.status() != 0) {
3070 set_status(from.status());
3071 }
3072 if (from.reason() != 0) {
3073 set_reason(from.reason());
3074 }
3075}
3076
3077void HWComponentInfoGetResponse::CopyFrom(const ::google::protobuf::Message& from) {
3078// @@protoc_insertion_point(generalized_copy_from_start:dmi.HWComponentInfoGetResponse)
3079 if (&from == this) return;
3080 Clear();
3081 MergeFrom(from);
3082}
3083
3084void HWComponentInfoGetResponse::CopyFrom(const HWComponentInfoGetResponse& from) {
3085// @@protoc_insertion_point(class_specific_copy_from_start:dmi.HWComponentInfoGetResponse)
3086 if (&from == this) return;
3087 Clear();
3088 MergeFrom(from);
3089}
3090
3091bool HWComponentInfoGetResponse::IsInitialized() const {
3092 return true;
3093}
3094
3095void HWComponentInfoGetResponse::Swap(HWComponentInfoGetResponse* other) {
3096 if (other == this) return;
3097 InternalSwap(other);
3098}
3099void HWComponentInfoGetResponse::InternalSwap(HWComponentInfoGetResponse* other) {
3100 using std::swap;
3101 _internal_metadata_.Swap(&other->_internal_metadata_);
3102 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3103 GetArenaNoVirtual());
3104 swap(component_, other->component_);
3105 swap(status_, other->status_);
3106 swap(reason_, other->reason_);
3107}
3108
3109::google::protobuf::Metadata HWComponentInfoGetResponse::GetMetadata() const {
3110 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
3111 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
3112}
3113
3114
3115// ===================================================================
3116
3117void HWComponentInfoSetRequest::InitAsDefaultInstance() {
3118 ::dmi::_HWComponentInfoSetRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
3119 ::dmi::Uuid::internal_default_instance());
3120 ::dmi::_HWComponentInfoSetRequest_default_instance_._instance.get_mutable()->component_uuid_ = const_cast< ::dmi::Uuid*>(
3121 ::dmi::Uuid::internal_default_instance());
3122 ::dmi::_HWComponentInfoSetRequest_default_instance_._instance.get_mutable()->changes_ = const_cast< ::dmi::ModifiableComponent*>(
3123 ::dmi::ModifiableComponent::internal_default_instance());
3124}
3125class HWComponentInfoSetRequest::HasBitSetters {
3126 public:
3127 static const ::dmi::Uuid& device_uuid(const HWComponentInfoSetRequest* msg);
3128 static const ::dmi::Uuid& component_uuid(const HWComponentInfoSetRequest* msg);
3129 static const ::dmi::ModifiableComponent& changes(const HWComponentInfoSetRequest* msg);
3130};
3131
3132const ::dmi::Uuid&
3133HWComponentInfoSetRequest::HasBitSetters::device_uuid(const HWComponentInfoSetRequest* msg) {
3134 return *msg->device_uuid_;
3135}
3136const ::dmi::Uuid&
3137HWComponentInfoSetRequest::HasBitSetters::component_uuid(const HWComponentInfoSetRequest* msg) {
3138 return *msg->component_uuid_;
3139}
3140const ::dmi::ModifiableComponent&
3141HWComponentInfoSetRequest::HasBitSetters::changes(const HWComponentInfoSetRequest* msg) {
3142 return *msg->changes_;
3143}
3144void HWComponentInfoSetRequest::clear_device_uuid() {
3145 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
3146 delete device_uuid_;
3147 }
3148 device_uuid_ = nullptr;
3149}
3150void HWComponentInfoSetRequest::clear_component_uuid() {
3151 if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) {
3152 delete component_uuid_;
3153 }
3154 component_uuid_ = nullptr;
3155}
3156void HWComponentInfoSetRequest::clear_changes() {
3157 if (GetArenaNoVirtual() == nullptr && changes_ != nullptr) {
3158 delete changes_;
3159 }
3160 changes_ = nullptr;
3161}
3162#if !defined(_MSC_VER) || _MSC_VER >= 1900
3163const int HWComponentInfoSetRequest::kDeviceUuidFieldNumber;
3164const int HWComponentInfoSetRequest::kComponentUuidFieldNumber;
3165const int HWComponentInfoSetRequest::kComponentNameFieldNumber;
3166const int HWComponentInfoSetRequest::kChangesFieldNumber;
3167#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
3168
3169HWComponentInfoSetRequest::HWComponentInfoSetRequest()
3170 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
3171 SharedCtor();
3172 // @@protoc_insertion_point(constructor:dmi.HWComponentInfoSetRequest)
3173}
3174HWComponentInfoSetRequest::HWComponentInfoSetRequest(const HWComponentInfoSetRequest& from)
3175 : ::google::protobuf::Message(),
3176 _internal_metadata_(nullptr) {
3177 _internal_metadata_.MergeFrom(from._internal_metadata_);
3178 component_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3179 if (from.component_name().size() > 0) {
3180 component_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.component_name_);
3181 }
3182 if (from.has_device_uuid()) {
3183 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
3184 } else {
3185 device_uuid_ = nullptr;
3186 }
3187 if (from.has_component_uuid()) {
3188 component_uuid_ = new ::dmi::Uuid(*from.component_uuid_);
3189 } else {
3190 component_uuid_ = nullptr;
3191 }
3192 if (from.has_changes()) {
3193 changes_ = new ::dmi::ModifiableComponent(*from.changes_);
3194 } else {
3195 changes_ = nullptr;
3196 }
3197 // @@protoc_insertion_point(copy_constructor:dmi.HWComponentInfoSetRequest)
3198}
3199
3200void HWComponentInfoSetRequest::SharedCtor() {
3201 ::google::protobuf::internal::InitSCC(
3202 &scc_info_HWComponentInfoSetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
3203 component_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3204 ::memset(&device_uuid_, 0, static_cast<size_t>(
3205 reinterpret_cast<char*>(&changes_) -
3206 reinterpret_cast<char*>(&device_uuid_)) + sizeof(changes_));
3207}
3208
3209HWComponentInfoSetRequest::~HWComponentInfoSetRequest() {
3210 // @@protoc_insertion_point(destructor:dmi.HWComponentInfoSetRequest)
3211 SharedDtor();
3212}
3213
3214void HWComponentInfoSetRequest::SharedDtor() {
3215 component_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3216 if (this != internal_default_instance()) delete device_uuid_;
3217 if (this != internal_default_instance()) delete component_uuid_;
3218 if (this != internal_default_instance()) delete changes_;
3219}
3220
3221void HWComponentInfoSetRequest::SetCachedSize(int size) const {
3222 _cached_size_.Set(size);
3223}
3224const HWComponentInfoSetRequest& HWComponentInfoSetRequest::default_instance() {
3225 ::google::protobuf::internal::InitSCC(&::scc_info_HWComponentInfoSetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
3226 return *internal_default_instance();
3227}
3228
3229
3230void HWComponentInfoSetRequest::Clear() {
3231// @@protoc_insertion_point(message_clear_start:dmi.HWComponentInfoSetRequest)
3232 ::google::protobuf::uint32 cached_has_bits = 0;
3233 // Prevent compiler warnings about cached_has_bits being unused
3234 (void) cached_has_bits;
3235
3236 component_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3237 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
3238 delete device_uuid_;
3239 }
3240 device_uuid_ = nullptr;
3241 if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) {
3242 delete component_uuid_;
3243 }
3244 component_uuid_ = nullptr;
3245 if (GetArenaNoVirtual() == nullptr && changes_ != nullptr) {
3246 delete changes_;
3247 }
3248 changes_ = nullptr;
3249 _internal_metadata_.Clear();
3250}
3251
3252#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3253const char* HWComponentInfoSetRequest::_InternalParse(const char* begin, const char* end, void* object,
3254 ::google::protobuf::internal::ParseContext* ctx) {
3255 auto msg = static_cast<HWComponentInfoSetRequest*>(object);
3256 ::google::protobuf::int32 size; (void)size;
3257 int depth; (void)depth;
3258 ::google::protobuf::uint32 tag;
3259 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
3260 auto ptr = begin;
3261 while (ptr < end) {
3262 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
3263 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3264 switch (tag >> 3) {
3265 // .dmi.Uuid device_uuid = 1;
3266 case 1: {
3267 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
3268 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
3269 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3270 parser_till_end = ::dmi::Uuid::_InternalParse;
3271 object = msg->mutable_device_uuid();
3272 if (size > end - ptr) goto len_delim_till_end;
3273 ptr += size;
3274 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
3275 {parser_till_end, object}, ptr - size, ptr));
3276 break;
3277 }
3278 // .dmi.Uuid component_uuid = 2;
3279 case 2: {
3280 if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
3281 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
3282 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3283 parser_till_end = ::dmi::Uuid::_InternalParse;
3284 object = msg->mutable_component_uuid();
3285 if (size > end - ptr) goto len_delim_till_end;
3286 ptr += size;
3287 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
3288 {parser_till_end, object}, ptr - size, ptr));
3289 break;
3290 }
3291 // string component_name = 3;
3292 case 3: {
3293 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
3294 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
3295 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3296 ctx->extra_parse_data().SetFieldName("dmi.HWComponentInfoSetRequest.component_name");
3297 object = msg->mutable_component_name();
3298 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
3299 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
3300 goto string_till_end;
3301 }
3302 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
3303 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
3304 ptr += size;
3305 break;
3306 }
3307 // .dmi.ModifiableComponent changes = 4;
3308 case 4: {
3309 if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual;
3310 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
3311 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3312 parser_till_end = ::dmi::ModifiableComponent::_InternalParse;
3313 object = msg->mutable_changes();
3314 if (size > end - ptr) goto len_delim_till_end;
3315 ptr += size;
3316 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
3317 {parser_till_end, object}, ptr - size, ptr));
3318 break;
3319 }
3320 default: {
3321 handle_unusual:
3322 if ((tag & 7) == 4 || tag == 0) {
3323 ctx->EndGroup(tag);
3324 return ptr;
3325 }
3326 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
3327 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
3328 ptr = res.first;
3329 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
3330 if (res.second) return ptr;
3331 }
3332 } // switch
3333 } // while
3334 return ptr;
3335string_till_end:
3336 static_cast<::std::string*>(object)->clear();
3337 static_cast<::std::string*>(object)->reserve(size);
3338 goto len_delim_till_end;
3339len_delim_till_end:
3340 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
3341 {parser_till_end, object}, size);
3342}
3343#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3344bool HWComponentInfoSetRequest::MergePartialFromCodedStream(
3345 ::google::protobuf::io::CodedInputStream* input) {
3346#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
3347 ::google::protobuf::uint32 tag;
3348 // @@protoc_insertion_point(parse_start:dmi.HWComponentInfoSetRequest)
3349 for (;;) {
3350 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3351 tag = p.first;
3352 if (!p.second) goto handle_unusual;
3353 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3354 // .dmi.Uuid device_uuid = 1;
3355 case 1: {
3356 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
3357 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3358 input, mutable_device_uuid()));
3359 } else {
3360 goto handle_unusual;
3361 }
3362 break;
3363 }
3364
3365 // .dmi.Uuid component_uuid = 2;
3366 case 2: {
3367 if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
3368 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3369 input, mutable_component_uuid()));
3370 } else {
3371 goto handle_unusual;
3372 }
3373 break;
3374 }
3375
3376 // string component_name = 3;
3377 case 3: {
3378 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
3379 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3380 input, this->mutable_component_name()));
3381 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3382 this->component_name().data(), static_cast<int>(this->component_name().length()),
3383 ::google::protobuf::internal::WireFormatLite::PARSE,
3384 "dmi.HWComponentInfoSetRequest.component_name"));
3385 } else {
3386 goto handle_unusual;
3387 }
3388 break;
3389 }
3390
3391 // .dmi.ModifiableComponent changes = 4;
3392 case 4: {
3393 if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
3394 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3395 input, mutable_changes()));
3396 } else {
3397 goto handle_unusual;
3398 }
3399 break;
3400 }
3401
3402 default: {
3403 handle_unusual:
3404 if (tag == 0) {
3405 goto success;
3406 }
3407 DO_(::google::protobuf::internal::WireFormat::SkipField(
3408 input, tag, _internal_metadata_.mutable_unknown_fields()));
3409 break;
3410 }
3411 }
3412 }
3413success:
3414 // @@protoc_insertion_point(parse_success:dmi.HWComponentInfoSetRequest)
3415 return true;
3416failure:
3417 // @@protoc_insertion_point(parse_failure:dmi.HWComponentInfoSetRequest)
3418 return false;
3419#undef DO_
3420}
3421#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3422
3423void HWComponentInfoSetRequest::SerializeWithCachedSizes(
3424 ::google::protobuf::io::CodedOutputStream* output) const {
3425 // @@protoc_insertion_point(serialize_start:dmi.HWComponentInfoSetRequest)
3426 ::google::protobuf::uint32 cached_has_bits = 0;
3427 (void) cached_has_bits;
3428
3429 // .dmi.Uuid device_uuid = 1;
3430 if (this->has_device_uuid()) {
3431 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3432 1, HasBitSetters::device_uuid(this), output);
3433 }
3434
3435 // .dmi.Uuid component_uuid = 2;
3436 if (this->has_component_uuid()) {
3437 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3438 2, HasBitSetters::component_uuid(this), output);
3439 }
3440
3441 // string component_name = 3;
3442 if (this->component_name().size() > 0) {
3443 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3444 this->component_name().data(), static_cast<int>(this->component_name().length()),
3445 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
3446 "dmi.HWComponentInfoSetRequest.component_name");
3447 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3448 3, this->component_name(), output);
3449 }
3450
3451 // .dmi.ModifiableComponent changes = 4;
3452 if (this->has_changes()) {
3453 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3454 4, HasBitSetters::changes(this), output);
3455 }
3456
3457 if (_internal_metadata_.have_unknown_fields()) {
3458 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3459 _internal_metadata_.unknown_fields(), output);
3460 }
3461 // @@protoc_insertion_point(serialize_end:dmi.HWComponentInfoSetRequest)
3462}
3463
3464::google::protobuf::uint8* HWComponentInfoSetRequest::InternalSerializeWithCachedSizesToArray(
3465 ::google::protobuf::uint8* target) const {
3466 // @@protoc_insertion_point(serialize_to_array_start:dmi.HWComponentInfoSetRequest)
3467 ::google::protobuf::uint32 cached_has_bits = 0;
3468 (void) cached_has_bits;
3469
3470 // .dmi.Uuid device_uuid = 1;
3471 if (this->has_device_uuid()) {
3472 target = ::google::protobuf::internal::WireFormatLite::
3473 InternalWriteMessageToArray(
3474 1, HasBitSetters::device_uuid(this), target);
3475 }
3476
3477 // .dmi.Uuid component_uuid = 2;
3478 if (this->has_component_uuid()) {
3479 target = ::google::protobuf::internal::WireFormatLite::
3480 InternalWriteMessageToArray(
3481 2, HasBitSetters::component_uuid(this), target);
3482 }
3483
3484 // string component_name = 3;
3485 if (this->component_name().size() > 0) {
3486 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3487 this->component_name().data(), static_cast<int>(this->component_name().length()),
3488 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
3489 "dmi.HWComponentInfoSetRequest.component_name");
3490 target =
3491 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3492 3, this->component_name(), target);
3493 }
3494
3495 // .dmi.ModifiableComponent changes = 4;
3496 if (this->has_changes()) {
3497 target = ::google::protobuf::internal::WireFormatLite::
3498 InternalWriteMessageToArray(
3499 4, HasBitSetters::changes(this), target);
3500 }
3501
3502 if (_internal_metadata_.have_unknown_fields()) {
3503 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3504 _internal_metadata_.unknown_fields(), target);
3505 }
3506 // @@protoc_insertion_point(serialize_to_array_end:dmi.HWComponentInfoSetRequest)
3507 return target;
3508}
3509
3510size_t HWComponentInfoSetRequest::ByteSizeLong() const {
3511// @@protoc_insertion_point(message_byte_size_start:dmi.HWComponentInfoSetRequest)
3512 size_t total_size = 0;
3513
3514 if (_internal_metadata_.have_unknown_fields()) {
3515 total_size +=
3516 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3517 _internal_metadata_.unknown_fields());
3518 }
3519 ::google::protobuf::uint32 cached_has_bits = 0;
3520 // Prevent compiler warnings about cached_has_bits being unused
3521 (void) cached_has_bits;
3522
3523 // string component_name = 3;
3524 if (this->component_name().size() > 0) {
3525 total_size += 1 +
3526 ::google::protobuf::internal::WireFormatLite::StringSize(
3527 this->component_name());
3528 }
3529
3530 // .dmi.Uuid device_uuid = 1;
3531 if (this->has_device_uuid()) {
3532 total_size += 1 +
3533 ::google::protobuf::internal::WireFormatLite::MessageSize(
3534 *device_uuid_);
3535 }
3536
3537 // .dmi.Uuid component_uuid = 2;
3538 if (this->has_component_uuid()) {
3539 total_size += 1 +
3540 ::google::protobuf::internal::WireFormatLite::MessageSize(
3541 *component_uuid_);
3542 }
3543
3544 // .dmi.ModifiableComponent changes = 4;
3545 if (this->has_changes()) {
3546 total_size += 1 +
3547 ::google::protobuf::internal::WireFormatLite::MessageSize(
3548 *changes_);
3549 }
3550
3551 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3552 SetCachedSize(cached_size);
3553 return total_size;
3554}
3555
3556void HWComponentInfoSetRequest::MergeFrom(const ::google::protobuf::Message& from) {
3557// @@protoc_insertion_point(generalized_merge_from_start:dmi.HWComponentInfoSetRequest)
3558 GOOGLE_DCHECK_NE(&from, this);
3559 const HWComponentInfoSetRequest* source =
3560 ::google::protobuf::DynamicCastToGenerated<HWComponentInfoSetRequest>(
3561 &from);
3562 if (source == nullptr) {
3563 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.HWComponentInfoSetRequest)
3564 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3565 } else {
3566 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.HWComponentInfoSetRequest)
3567 MergeFrom(*source);
3568 }
3569}
3570
3571void HWComponentInfoSetRequest::MergeFrom(const HWComponentInfoSetRequest& from) {
3572// @@protoc_insertion_point(class_specific_merge_from_start:dmi.HWComponentInfoSetRequest)
3573 GOOGLE_DCHECK_NE(&from, this);
3574 _internal_metadata_.MergeFrom(from._internal_metadata_);
3575 ::google::protobuf::uint32 cached_has_bits = 0;
3576 (void) cached_has_bits;
3577
3578 if (from.component_name().size() > 0) {
3579
3580 component_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.component_name_);
3581 }
3582 if (from.has_device_uuid()) {
3583 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
3584 }
3585 if (from.has_component_uuid()) {
3586 mutable_component_uuid()->::dmi::Uuid::MergeFrom(from.component_uuid());
3587 }
3588 if (from.has_changes()) {
3589 mutable_changes()->::dmi::ModifiableComponent::MergeFrom(from.changes());
3590 }
3591}
3592
3593void HWComponentInfoSetRequest::CopyFrom(const ::google::protobuf::Message& from) {
3594// @@protoc_insertion_point(generalized_copy_from_start:dmi.HWComponentInfoSetRequest)
3595 if (&from == this) return;
3596 Clear();
3597 MergeFrom(from);
3598}
3599
3600void HWComponentInfoSetRequest::CopyFrom(const HWComponentInfoSetRequest& from) {
3601// @@protoc_insertion_point(class_specific_copy_from_start:dmi.HWComponentInfoSetRequest)
3602 if (&from == this) return;
3603 Clear();
3604 MergeFrom(from);
3605}
3606
3607bool HWComponentInfoSetRequest::IsInitialized() const {
3608 return true;
3609}
3610
3611void HWComponentInfoSetRequest::Swap(HWComponentInfoSetRequest* other) {
3612 if (other == this) return;
3613 InternalSwap(other);
3614}
3615void HWComponentInfoSetRequest::InternalSwap(HWComponentInfoSetRequest* other) {
3616 using std::swap;
3617 _internal_metadata_.Swap(&other->_internal_metadata_);
3618 component_name_.Swap(&other->component_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3619 GetArenaNoVirtual());
3620 swap(device_uuid_, other->device_uuid_);
3621 swap(component_uuid_, other->component_uuid_);
3622 swap(changes_, other->changes_);
3623}
3624
3625::google::protobuf::Metadata HWComponentInfoSetRequest::GetMetadata() const {
3626 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
3627 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
3628}
3629
3630
3631// ===================================================================
3632
3633void HWComponentInfoSetResponse::InitAsDefaultInstance() {
3634}
3635class HWComponentInfoSetResponse::HasBitSetters {
3636 public:
3637};
3638
3639#if !defined(_MSC_VER) || _MSC_VER >= 1900
3640const int HWComponentInfoSetResponse::kStatusFieldNumber;
3641const int HWComponentInfoSetResponse::kReasonFieldNumber;
3642const int HWComponentInfoSetResponse::kReasonDetailFieldNumber;
3643#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
3644
3645HWComponentInfoSetResponse::HWComponentInfoSetResponse()
3646 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
3647 SharedCtor();
3648 // @@protoc_insertion_point(constructor:dmi.HWComponentInfoSetResponse)
3649}
3650HWComponentInfoSetResponse::HWComponentInfoSetResponse(const HWComponentInfoSetResponse& from)
3651 : ::google::protobuf::Message(),
3652 _internal_metadata_(nullptr) {
3653 _internal_metadata_.MergeFrom(from._internal_metadata_);
3654 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3655 if (from.reason_detail().size() > 0) {
3656 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
3657 }
3658 ::memcpy(&status_, &from.status_,
3659 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
3660 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
3661 // @@protoc_insertion_point(copy_constructor:dmi.HWComponentInfoSetResponse)
3662}
3663
3664void HWComponentInfoSetResponse::SharedCtor() {
3665 ::google::protobuf::internal::InitSCC(
3666 &scc_info_HWComponentInfoSetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
3667 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3668 ::memset(&status_, 0, static_cast<size_t>(
3669 reinterpret_cast<char*>(&reason_) -
3670 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
3671}
3672
3673HWComponentInfoSetResponse::~HWComponentInfoSetResponse() {
3674 // @@protoc_insertion_point(destructor:dmi.HWComponentInfoSetResponse)
3675 SharedDtor();
3676}
3677
3678void HWComponentInfoSetResponse::SharedDtor() {
3679 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3680}
3681
3682void HWComponentInfoSetResponse::SetCachedSize(int size) const {
3683 _cached_size_.Set(size);
3684}
3685const HWComponentInfoSetResponse& HWComponentInfoSetResponse::default_instance() {
3686 ::google::protobuf::internal::InitSCC(&::scc_info_HWComponentInfoSetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
3687 return *internal_default_instance();
3688}
3689
3690
3691void HWComponentInfoSetResponse::Clear() {
3692// @@protoc_insertion_point(message_clear_start:dmi.HWComponentInfoSetResponse)
3693 ::google::protobuf::uint32 cached_has_bits = 0;
3694 // Prevent compiler warnings about cached_has_bits being unused
3695 (void) cached_has_bits;
3696
3697 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3698 ::memset(&status_, 0, static_cast<size_t>(
3699 reinterpret_cast<char*>(&reason_) -
3700 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
3701 _internal_metadata_.Clear();
3702}
3703
3704#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3705const char* HWComponentInfoSetResponse::_InternalParse(const char* begin, const char* end, void* object,
3706 ::google::protobuf::internal::ParseContext* ctx) {
3707 auto msg = static_cast<HWComponentInfoSetResponse*>(object);
3708 ::google::protobuf::int32 size; (void)size;
3709 int depth; (void)depth;
3710 ::google::protobuf::uint32 tag;
3711 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
3712 auto ptr = begin;
3713 while (ptr < end) {
3714 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
3715 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3716 switch (tag >> 3) {
3717 // .dmi.Status status = 1;
3718 case 1: {
3719 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
3720 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
3721 msg->set_status(static_cast<::dmi::Status>(val));
3722 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3723 break;
3724 }
3725 // .dmi.HWComponentInfoSetResponse.Reason reason = 2;
3726 case 2: {
3727 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
3728 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
3729 msg->set_reason(static_cast<::dmi::HWComponentInfoSetResponse_Reason>(val));
3730 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3731 break;
3732 }
3733 // string reason_detail = 3;
3734 case 3: {
3735 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
3736 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
3737 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3738 ctx->extra_parse_data().SetFieldName("dmi.HWComponentInfoSetResponse.reason_detail");
3739 object = msg->mutable_reason_detail();
3740 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
3741 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
3742 goto string_till_end;
3743 }
3744 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
3745 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
3746 ptr += size;
3747 break;
3748 }
3749 default: {
3750 handle_unusual:
3751 if ((tag & 7) == 4 || tag == 0) {
3752 ctx->EndGroup(tag);
3753 return ptr;
3754 }
3755 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
3756 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
3757 ptr = res.first;
3758 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
3759 if (res.second) return ptr;
3760 }
3761 } // switch
3762 } // while
3763 return ptr;
3764string_till_end:
3765 static_cast<::std::string*>(object)->clear();
3766 static_cast<::std::string*>(object)->reserve(size);
3767 goto len_delim_till_end;
3768len_delim_till_end:
3769 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
3770 {parser_till_end, object}, size);
3771}
3772#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3773bool HWComponentInfoSetResponse::MergePartialFromCodedStream(
3774 ::google::protobuf::io::CodedInputStream* input) {
3775#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
3776 ::google::protobuf::uint32 tag;
3777 // @@protoc_insertion_point(parse_start:dmi.HWComponentInfoSetResponse)
3778 for (;;) {
3779 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3780 tag = p.first;
3781 if (!p.second) goto handle_unusual;
3782 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3783 // .dmi.Status status = 1;
3784 case 1: {
3785 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
3786 int value = 0;
3787 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3788 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
3789 input, &value)));
3790 set_status(static_cast< ::dmi::Status >(value));
3791 } else {
3792 goto handle_unusual;
3793 }
3794 break;
3795 }
3796
3797 // .dmi.HWComponentInfoSetResponse.Reason reason = 2;
3798 case 2: {
3799 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
3800 int value = 0;
3801 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3802 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
3803 input, &value)));
3804 set_reason(static_cast< ::dmi::HWComponentInfoSetResponse_Reason >(value));
3805 } else {
3806 goto handle_unusual;
3807 }
3808 break;
3809 }
3810
3811 // string reason_detail = 3;
3812 case 3: {
3813 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
3814 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3815 input, this->mutable_reason_detail()));
3816 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3817 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
3818 ::google::protobuf::internal::WireFormatLite::PARSE,
3819 "dmi.HWComponentInfoSetResponse.reason_detail"));
3820 } else {
3821 goto handle_unusual;
3822 }
3823 break;
3824 }
3825
3826 default: {
3827 handle_unusual:
3828 if (tag == 0) {
3829 goto success;
3830 }
3831 DO_(::google::protobuf::internal::WireFormat::SkipField(
3832 input, tag, _internal_metadata_.mutable_unknown_fields()));
3833 break;
3834 }
3835 }
3836 }
3837success:
3838 // @@protoc_insertion_point(parse_success:dmi.HWComponentInfoSetResponse)
3839 return true;
3840failure:
3841 // @@protoc_insertion_point(parse_failure:dmi.HWComponentInfoSetResponse)
3842 return false;
3843#undef DO_
3844}
3845#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3846
3847void HWComponentInfoSetResponse::SerializeWithCachedSizes(
3848 ::google::protobuf::io::CodedOutputStream* output) const {
3849 // @@protoc_insertion_point(serialize_start:dmi.HWComponentInfoSetResponse)
3850 ::google::protobuf::uint32 cached_has_bits = 0;
3851 (void) cached_has_bits;
3852
3853 // .dmi.Status status = 1;
3854 if (this->status() != 0) {
3855 ::google::protobuf::internal::WireFormatLite::WriteEnum(
3856 1, this->status(), output);
3857 }
3858
3859 // .dmi.HWComponentInfoSetResponse.Reason reason = 2;
3860 if (this->reason() != 0) {
3861 ::google::protobuf::internal::WireFormatLite::WriteEnum(
3862 2, this->reason(), output);
3863 }
3864
3865 // string reason_detail = 3;
3866 if (this->reason_detail().size() > 0) {
3867 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3868 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
3869 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
3870 "dmi.HWComponentInfoSetResponse.reason_detail");
3871 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3872 3, this->reason_detail(), output);
3873 }
3874
3875 if (_internal_metadata_.have_unknown_fields()) {
3876 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3877 _internal_metadata_.unknown_fields(), output);
3878 }
3879 // @@protoc_insertion_point(serialize_end:dmi.HWComponentInfoSetResponse)
3880}
3881
3882::google::protobuf::uint8* HWComponentInfoSetResponse::InternalSerializeWithCachedSizesToArray(
3883 ::google::protobuf::uint8* target) const {
3884 // @@protoc_insertion_point(serialize_to_array_start:dmi.HWComponentInfoSetResponse)
3885 ::google::protobuf::uint32 cached_has_bits = 0;
3886 (void) cached_has_bits;
3887
3888 // .dmi.Status status = 1;
3889 if (this->status() != 0) {
3890 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
3891 1, this->status(), target);
3892 }
3893
3894 // .dmi.HWComponentInfoSetResponse.Reason reason = 2;
3895 if (this->reason() != 0) {
3896 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
3897 2, this->reason(), target);
3898 }
3899
3900 // string reason_detail = 3;
3901 if (this->reason_detail().size() > 0) {
3902 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3903 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
3904 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
3905 "dmi.HWComponentInfoSetResponse.reason_detail");
3906 target =
3907 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3908 3, this->reason_detail(), target);
3909 }
3910
3911 if (_internal_metadata_.have_unknown_fields()) {
3912 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3913 _internal_metadata_.unknown_fields(), target);
3914 }
3915 // @@protoc_insertion_point(serialize_to_array_end:dmi.HWComponentInfoSetResponse)
3916 return target;
3917}
3918
3919size_t HWComponentInfoSetResponse::ByteSizeLong() const {
3920// @@protoc_insertion_point(message_byte_size_start:dmi.HWComponentInfoSetResponse)
3921 size_t total_size = 0;
3922
3923 if (_internal_metadata_.have_unknown_fields()) {
3924 total_size +=
3925 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3926 _internal_metadata_.unknown_fields());
3927 }
3928 ::google::protobuf::uint32 cached_has_bits = 0;
3929 // Prevent compiler warnings about cached_has_bits being unused
3930 (void) cached_has_bits;
3931
3932 // string reason_detail = 3;
3933 if (this->reason_detail().size() > 0) {
3934 total_size += 1 +
3935 ::google::protobuf::internal::WireFormatLite::StringSize(
3936 this->reason_detail());
3937 }
3938
3939 // .dmi.Status status = 1;
3940 if (this->status() != 0) {
3941 total_size += 1 +
3942 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
3943 }
3944
3945 // .dmi.HWComponentInfoSetResponse.Reason reason = 2;
3946 if (this->reason() != 0) {
3947 total_size += 1 +
3948 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
3949 }
3950
3951 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3952 SetCachedSize(cached_size);
3953 return total_size;
3954}
3955
3956void HWComponentInfoSetResponse::MergeFrom(const ::google::protobuf::Message& from) {
3957// @@protoc_insertion_point(generalized_merge_from_start:dmi.HWComponentInfoSetResponse)
3958 GOOGLE_DCHECK_NE(&from, this);
3959 const HWComponentInfoSetResponse* source =
3960 ::google::protobuf::DynamicCastToGenerated<HWComponentInfoSetResponse>(
3961 &from);
3962 if (source == nullptr) {
3963 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.HWComponentInfoSetResponse)
3964 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3965 } else {
3966 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.HWComponentInfoSetResponse)
3967 MergeFrom(*source);
3968 }
3969}
3970
3971void HWComponentInfoSetResponse::MergeFrom(const HWComponentInfoSetResponse& from) {
3972// @@protoc_insertion_point(class_specific_merge_from_start:dmi.HWComponentInfoSetResponse)
3973 GOOGLE_DCHECK_NE(&from, this);
3974 _internal_metadata_.MergeFrom(from._internal_metadata_);
3975 ::google::protobuf::uint32 cached_has_bits = 0;
3976 (void) cached_has_bits;
3977
3978 if (from.reason_detail().size() > 0) {
3979
3980 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
3981 }
3982 if (from.status() != 0) {
3983 set_status(from.status());
3984 }
3985 if (from.reason() != 0) {
3986 set_reason(from.reason());
3987 }
3988}
3989
3990void HWComponentInfoSetResponse::CopyFrom(const ::google::protobuf::Message& from) {
3991// @@protoc_insertion_point(generalized_copy_from_start:dmi.HWComponentInfoSetResponse)
3992 if (&from == this) return;
3993 Clear();
3994 MergeFrom(from);
3995}
3996
3997void HWComponentInfoSetResponse::CopyFrom(const HWComponentInfoSetResponse& from) {
3998// @@protoc_insertion_point(class_specific_copy_from_start:dmi.HWComponentInfoSetResponse)
3999 if (&from == this) return;
4000 Clear();
4001 MergeFrom(from);
4002}
4003
4004bool HWComponentInfoSetResponse::IsInitialized() const {
4005 return true;
4006}
4007
4008void HWComponentInfoSetResponse::Swap(HWComponentInfoSetResponse* other) {
4009 if (other == this) return;
4010 InternalSwap(other);
4011}
4012void HWComponentInfoSetResponse::InternalSwap(HWComponentInfoSetResponse* other) {
4013 using std::swap;
4014 _internal_metadata_.Swap(&other->_internal_metadata_);
4015 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4016 GetArenaNoVirtual());
4017 swap(status_, other->status_);
4018 swap(reason_, other->reason_);
4019}
4020
4021::google::protobuf::Metadata HWComponentInfoSetResponse::GetMetadata() const {
4022 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
4023 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
4024}
4025
4026
4027// ===================================================================
4028
4029void StartManagingDeviceResponse::InitAsDefaultInstance() {
4030 ::dmi::_StartManagingDeviceResponse_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
4031 ::dmi::Uuid::internal_default_instance());
4032}
4033class StartManagingDeviceResponse::HasBitSetters {
4034 public:
4035 static const ::dmi::Uuid& device_uuid(const StartManagingDeviceResponse* msg);
4036};
4037
4038const ::dmi::Uuid&
4039StartManagingDeviceResponse::HasBitSetters::device_uuid(const StartManagingDeviceResponse* msg) {
4040 return *msg->device_uuid_;
4041}
4042void StartManagingDeviceResponse::clear_device_uuid() {
4043 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
4044 delete device_uuid_;
4045 }
4046 device_uuid_ = nullptr;
4047}
4048#if !defined(_MSC_VER) || _MSC_VER >= 1900
4049const int StartManagingDeviceResponse::kStatusFieldNumber;
4050const int StartManagingDeviceResponse::kReasonFieldNumber;
4051const int StartManagingDeviceResponse::kDeviceUuidFieldNumber;
4052const int StartManagingDeviceResponse::kReasonDetailFieldNumber;
4053#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
4054
4055StartManagingDeviceResponse::StartManagingDeviceResponse()
4056 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
4057 SharedCtor();
4058 // @@protoc_insertion_point(constructor:dmi.StartManagingDeviceResponse)
4059}
4060StartManagingDeviceResponse::StartManagingDeviceResponse(const StartManagingDeviceResponse& from)
4061 : ::google::protobuf::Message(),
4062 _internal_metadata_(nullptr) {
4063 _internal_metadata_.MergeFrom(from._internal_metadata_);
4064 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4065 if (from.reason_detail().size() > 0) {
4066 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
4067 }
4068 if (from.has_device_uuid()) {
4069 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
4070 } else {
4071 device_uuid_ = nullptr;
4072 }
4073 ::memcpy(&status_, &from.status_,
4074 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
4075 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
4076 // @@protoc_insertion_point(copy_constructor:dmi.StartManagingDeviceResponse)
4077}
4078
4079void StartManagingDeviceResponse::SharedCtor() {
4080 ::google::protobuf::internal::InitSCC(
4081 &scc_info_StartManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
4082 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4083 ::memset(&device_uuid_, 0, static_cast<size_t>(
4084 reinterpret_cast<char*>(&reason_) -
4085 reinterpret_cast<char*>(&device_uuid_)) + sizeof(reason_));
4086}
4087
4088StartManagingDeviceResponse::~StartManagingDeviceResponse() {
4089 // @@protoc_insertion_point(destructor:dmi.StartManagingDeviceResponse)
4090 SharedDtor();
4091}
4092
4093void StartManagingDeviceResponse::SharedDtor() {
4094 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4095 if (this != internal_default_instance()) delete device_uuid_;
4096}
4097
4098void StartManagingDeviceResponse::SetCachedSize(int size) const {
4099 _cached_size_.Set(size);
4100}
4101const StartManagingDeviceResponse& StartManagingDeviceResponse::default_instance() {
4102 ::google::protobuf::internal::InitSCC(&::scc_info_StartManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
4103 return *internal_default_instance();
4104}
4105
4106
4107void StartManagingDeviceResponse::Clear() {
4108// @@protoc_insertion_point(message_clear_start:dmi.StartManagingDeviceResponse)
4109 ::google::protobuf::uint32 cached_has_bits = 0;
4110 // Prevent compiler warnings about cached_has_bits being unused
4111 (void) cached_has_bits;
4112
4113 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4114 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
4115 delete device_uuid_;
4116 }
4117 device_uuid_ = nullptr;
4118 ::memset(&status_, 0, static_cast<size_t>(
4119 reinterpret_cast<char*>(&reason_) -
4120 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
4121 _internal_metadata_.Clear();
4122}
4123
4124#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4125const char* StartManagingDeviceResponse::_InternalParse(const char* begin, const char* end, void* object,
4126 ::google::protobuf::internal::ParseContext* ctx) {
4127 auto msg = static_cast<StartManagingDeviceResponse*>(object);
4128 ::google::protobuf::int32 size; (void)size;
4129 int depth; (void)depth;
4130 ::google::protobuf::uint32 tag;
4131 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
4132 auto ptr = begin;
4133 while (ptr < end) {
4134 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
4135 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4136 switch (tag >> 3) {
4137 // .dmi.Status status = 1;
4138 case 1: {
4139 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
4140 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
4141 msg->set_status(static_cast<::dmi::Status>(val));
4142 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4143 break;
4144 }
4145 // .dmi.StartManagingDeviceResponse.Reason reason = 2;
4146 case 2: {
4147 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
4148 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
4149 msg->set_reason(static_cast<::dmi::StartManagingDeviceResponse_Reason>(val));
4150 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4151 break;
4152 }
4153 // .dmi.Uuid device_uuid = 3;
4154 case 3: {
4155 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
4156 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
4157 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4158 parser_till_end = ::dmi::Uuid::_InternalParse;
4159 object = msg->mutable_device_uuid();
4160 if (size > end - ptr) goto len_delim_till_end;
4161 ptr += size;
4162 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
4163 {parser_till_end, object}, ptr - size, ptr));
4164 break;
4165 }
4166 // string reason_detail = 4;
4167 case 4: {
4168 if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual;
4169 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
4170 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4171 ctx->extra_parse_data().SetFieldName("dmi.StartManagingDeviceResponse.reason_detail");
4172 object = msg->mutable_reason_detail();
4173 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
4174 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
4175 goto string_till_end;
4176 }
4177 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
4178 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
4179 ptr += size;
4180 break;
4181 }
4182 default: {
4183 handle_unusual:
4184 if ((tag & 7) == 4 || tag == 0) {
4185 ctx->EndGroup(tag);
4186 return ptr;
4187 }
4188 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
4189 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
4190 ptr = res.first;
4191 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
4192 if (res.second) return ptr;
4193 }
4194 } // switch
4195 } // while
4196 return ptr;
4197string_till_end:
4198 static_cast<::std::string*>(object)->clear();
4199 static_cast<::std::string*>(object)->reserve(size);
4200 goto len_delim_till_end;
4201len_delim_till_end:
4202 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
4203 {parser_till_end, object}, size);
4204}
4205#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4206bool StartManagingDeviceResponse::MergePartialFromCodedStream(
4207 ::google::protobuf::io::CodedInputStream* input) {
4208#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
4209 ::google::protobuf::uint32 tag;
4210 // @@protoc_insertion_point(parse_start:dmi.StartManagingDeviceResponse)
4211 for (;;) {
4212 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4213 tag = p.first;
4214 if (!p.second) goto handle_unusual;
4215 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4216 // .dmi.Status status = 1;
4217 case 1: {
4218 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
4219 int value = 0;
4220 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4221 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
4222 input, &value)));
4223 set_status(static_cast< ::dmi::Status >(value));
4224 } else {
4225 goto handle_unusual;
4226 }
4227 break;
4228 }
4229
4230 // .dmi.StartManagingDeviceResponse.Reason reason = 2;
4231 case 2: {
4232 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
4233 int value = 0;
4234 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4235 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
4236 input, &value)));
4237 set_reason(static_cast< ::dmi::StartManagingDeviceResponse_Reason >(value));
4238 } else {
4239 goto handle_unusual;
4240 }
4241 break;
4242 }
4243
4244 // .dmi.Uuid device_uuid = 3;
4245 case 3: {
4246 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
4247 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
4248 input, mutable_device_uuid()));
4249 } else {
4250 goto handle_unusual;
4251 }
4252 break;
4253 }
4254
4255 // string reason_detail = 4;
4256 case 4: {
4257 if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
4258 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4259 input, this->mutable_reason_detail()));
4260 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
4261 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
4262 ::google::protobuf::internal::WireFormatLite::PARSE,
4263 "dmi.StartManagingDeviceResponse.reason_detail"));
4264 } else {
4265 goto handle_unusual;
4266 }
4267 break;
4268 }
4269
4270 default: {
4271 handle_unusual:
4272 if (tag == 0) {
4273 goto success;
4274 }
4275 DO_(::google::protobuf::internal::WireFormat::SkipField(
4276 input, tag, _internal_metadata_.mutable_unknown_fields()));
4277 break;
4278 }
4279 }
4280 }
4281success:
4282 // @@protoc_insertion_point(parse_success:dmi.StartManagingDeviceResponse)
4283 return true;
4284failure:
4285 // @@protoc_insertion_point(parse_failure:dmi.StartManagingDeviceResponse)
4286 return false;
4287#undef DO_
4288}
4289#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4290
4291void StartManagingDeviceResponse::SerializeWithCachedSizes(
4292 ::google::protobuf::io::CodedOutputStream* output) const {
4293 // @@protoc_insertion_point(serialize_start:dmi.StartManagingDeviceResponse)
4294 ::google::protobuf::uint32 cached_has_bits = 0;
4295 (void) cached_has_bits;
4296
4297 // .dmi.Status status = 1;
4298 if (this->status() != 0) {
4299 ::google::protobuf::internal::WireFormatLite::WriteEnum(
4300 1, this->status(), output);
4301 }
4302
4303 // .dmi.StartManagingDeviceResponse.Reason reason = 2;
4304 if (this->reason() != 0) {
4305 ::google::protobuf::internal::WireFormatLite::WriteEnum(
4306 2, this->reason(), output);
4307 }
4308
4309 // .dmi.Uuid device_uuid = 3;
4310 if (this->has_device_uuid()) {
4311 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4312 3, HasBitSetters::device_uuid(this), output);
4313 }
4314
4315 // string reason_detail = 4;
4316 if (this->reason_detail().size() > 0) {
4317 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
4318 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
4319 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
4320 "dmi.StartManagingDeviceResponse.reason_detail");
4321 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4322 4, this->reason_detail(), output);
4323 }
4324
4325 if (_internal_metadata_.have_unknown_fields()) {
4326 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4327 _internal_metadata_.unknown_fields(), output);
4328 }
4329 // @@protoc_insertion_point(serialize_end:dmi.StartManagingDeviceResponse)
4330}
4331
4332::google::protobuf::uint8* StartManagingDeviceResponse::InternalSerializeWithCachedSizesToArray(
4333 ::google::protobuf::uint8* target) const {
4334 // @@protoc_insertion_point(serialize_to_array_start:dmi.StartManagingDeviceResponse)
4335 ::google::protobuf::uint32 cached_has_bits = 0;
4336 (void) cached_has_bits;
4337
4338 // .dmi.Status status = 1;
4339 if (this->status() != 0) {
4340 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4341 1, this->status(), target);
4342 }
4343
4344 // .dmi.StartManagingDeviceResponse.Reason reason = 2;
4345 if (this->reason() != 0) {
4346 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4347 2, this->reason(), target);
4348 }
4349
4350 // .dmi.Uuid device_uuid = 3;
4351 if (this->has_device_uuid()) {
4352 target = ::google::protobuf::internal::WireFormatLite::
4353 InternalWriteMessageToArray(
4354 3, HasBitSetters::device_uuid(this), target);
4355 }
4356
4357 // string reason_detail = 4;
4358 if (this->reason_detail().size() > 0) {
4359 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
4360 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
4361 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
4362 "dmi.StartManagingDeviceResponse.reason_detail");
4363 target =
4364 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4365 4, this->reason_detail(), target);
4366 }
4367
4368 if (_internal_metadata_.have_unknown_fields()) {
4369 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4370 _internal_metadata_.unknown_fields(), target);
4371 }
4372 // @@protoc_insertion_point(serialize_to_array_end:dmi.StartManagingDeviceResponse)
4373 return target;
4374}
4375
4376size_t StartManagingDeviceResponse::ByteSizeLong() const {
4377// @@protoc_insertion_point(message_byte_size_start:dmi.StartManagingDeviceResponse)
4378 size_t total_size = 0;
4379
4380 if (_internal_metadata_.have_unknown_fields()) {
4381 total_size +=
4382 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4383 _internal_metadata_.unknown_fields());
4384 }
4385 ::google::protobuf::uint32 cached_has_bits = 0;
4386 // Prevent compiler warnings about cached_has_bits being unused
4387 (void) cached_has_bits;
4388
4389 // string reason_detail = 4;
4390 if (this->reason_detail().size() > 0) {
4391 total_size += 1 +
4392 ::google::protobuf::internal::WireFormatLite::StringSize(
4393 this->reason_detail());
4394 }
4395
4396 // .dmi.Uuid device_uuid = 3;
4397 if (this->has_device_uuid()) {
4398 total_size += 1 +
4399 ::google::protobuf::internal::WireFormatLite::MessageSize(
4400 *device_uuid_);
4401 }
4402
4403 // .dmi.Status status = 1;
4404 if (this->status() != 0) {
4405 total_size += 1 +
4406 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
4407 }
4408
4409 // .dmi.StartManagingDeviceResponse.Reason reason = 2;
4410 if (this->reason() != 0) {
4411 total_size += 1 +
4412 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
4413 }
4414
4415 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4416 SetCachedSize(cached_size);
4417 return total_size;
4418}
4419
4420void StartManagingDeviceResponse::MergeFrom(const ::google::protobuf::Message& from) {
4421// @@protoc_insertion_point(generalized_merge_from_start:dmi.StartManagingDeviceResponse)
4422 GOOGLE_DCHECK_NE(&from, this);
4423 const StartManagingDeviceResponse* source =
4424 ::google::protobuf::DynamicCastToGenerated<StartManagingDeviceResponse>(
4425 &from);
4426 if (source == nullptr) {
4427 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.StartManagingDeviceResponse)
4428 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4429 } else {
4430 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.StartManagingDeviceResponse)
4431 MergeFrom(*source);
4432 }
4433}
4434
4435void StartManagingDeviceResponse::MergeFrom(const StartManagingDeviceResponse& from) {
4436// @@protoc_insertion_point(class_specific_merge_from_start:dmi.StartManagingDeviceResponse)
4437 GOOGLE_DCHECK_NE(&from, this);
4438 _internal_metadata_.MergeFrom(from._internal_metadata_);
4439 ::google::protobuf::uint32 cached_has_bits = 0;
4440 (void) cached_has_bits;
4441
4442 if (from.reason_detail().size() > 0) {
4443
4444 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
4445 }
4446 if (from.has_device_uuid()) {
4447 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
4448 }
4449 if (from.status() != 0) {
4450 set_status(from.status());
4451 }
4452 if (from.reason() != 0) {
4453 set_reason(from.reason());
4454 }
4455}
4456
4457void StartManagingDeviceResponse::CopyFrom(const ::google::protobuf::Message& from) {
4458// @@protoc_insertion_point(generalized_copy_from_start:dmi.StartManagingDeviceResponse)
4459 if (&from == this) return;
4460 Clear();
4461 MergeFrom(from);
4462}
4463
4464void StartManagingDeviceResponse::CopyFrom(const StartManagingDeviceResponse& from) {
4465// @@protoc_insertion_point(class_specific_copy_from_start:dmi.StartManagingDeviceResponse)
4466 if (&from == this) return;
4467 Clear();
4468 MergeFrom(from);
4469}
4470
4471bool StartManagingDeviceResponse::IsInitialized() const {
4472 return true;
4473}
4474
4475void StartManagingDeviceResponse::Swap(StartManagingDeviceResponse* other) {
4476 if (other == this) return;
4477 InternalSwap(other);
4478}
4479void StartManagingDeviceResponse::InternalSwap(StartManagingDeviceResponse* other) {
4480 using std::swap;
4481 _internal_metadata_.Swap(&other->_internal_metadata_);
4482 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4483 GetArenaNoVirtual());
4484 swap(device_uuid_, other->device_uuid_);
4485 swap(status_, other->status_);
4486 swap(reason_, other->reason_);
4487}
4488
4489::google::protobuf::Metadata StartManagingDeviceResponse::GetMetadata() const {
4490 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
4491 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
4492}
4493
4494
4495// ===================================================================
4496
4497void StopManagingDeviceRequest::InitAsDefaultInstance() {
4498}
4499class StopManagingDeviceRequest::HasBitSetters {
4500 public:
4501};
4502
4503#if !defined(_MSC_VER) || _MSC_VER >= 1900
4504const int StopManagingDeviceRequest::kNameFieldNumber;
4505#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
4506
4507StopManagingDeviceRequest::StopManagingDeviceRequest()
4508 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
4509 SharedCtor();
4510 // @@protoc_insertion_point(constructor:dmi.StopManagingDeviceRequest)
4511}
4512StopManagingDeviceRequest::StopManagingDeviceRequest(const StopManagingDeviceRequest& from)
4513 : ::google::protobuf::Message(),
4514 _internal_metadata_(nullptr) {
4515 _internal_metadata_.MergeFrom(from._internal_metadata_);
4516 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4517 if (from.name().size() > 0) {
4518 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
4519 }
4520 // @@protoc_insertion_point(copy_constructor:dmi.StopManagingDeviceRequest)
4521}
4522
4523void StopManagingDeviceRequest::SharedCtor() {
4524 ::google::protobuf::internal::InitSCC(
4525 &scc_info_StopManagingDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
4526 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4527}
4528
4529StopManagingDeviceRequest::~StopManagingDeviceRequest() {
4530 // @@protoc_insertion_point(destructor:dmi.StopManagingDeviceRequest)
4531 SharedDtor();
4532}
4533
4534void StopManagingDeviceRequest::SharedDtor() {
4535 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4536}
4537
4538void StopManagingDeviceRequest::SetCachedSize(int size) const {
4539 _cached_size_.Set(size);
4540}
4541const StopManagingDeviceRequest& StopManagingDeviceRequest::default_instance() {
4542 ::google::protobuf::internal::InitSCC(&::scc_info_StopManagingDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
4543 return *internal_default_instance();
4544}
4545
4546
4547void StopManagingDeviceRequest::Clear() {
4548// @@protoc_insertion_point(message_clear_start:dmi.StopManagingDeviceRequest)
4549 ::google::protobuf::uint32 cached_has_bits = 0;
4550 // Prevent compiler warnings about cached_has_bits being unused
4551 (void) cached_has_bits;
4552
4553 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4554 _internal_metadata_.Clear();
4555}
4556
4557#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4558const char* StopManagingDeviceRequest::_InternalParse(const char* begin, const char* end, void* object,
4559 ::google::protobuf::internal::ParseContext* ctx) {
4560 auto msg = static_cast<StopManagingDeviceRequest*>(object);
4561 ::google::protobuf::int32 size; (void)size;
4562 int depth; (void)depth;
4563 ::google::protobuf::uint32 tag;
4564 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
4565 auto ptr = begin;
4566 while (ptr < end) {
4567 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
4568 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4569 switch (tag >> 3) {
4570 // string name = 1;
4571 case 1: {
4572 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
4573 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
4574 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4575 ctx->extra_parse_data().SetFieldName("dmi.StopManagingDeviceRequest.name");
4576 object = msg->mutable_name();
4577 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
4578 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
4579 goto string_till_end;
4580 }
4581 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
4582 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
4583 ptr += size;
4584 break;
4585 }
4586 default: {
4587 handle_unusual:
4588 if ((tag & 7) == 4 || tag == 0) {
4589 ctx->EndGroup(tag);
4590 return ptr;
4591 }
4592 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
4593 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
4594 ptr = res.first;
4595 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
4596 if (res.second) return ptr;
4597 }
4598 } // switch
4599 } // while
4600 return ptr;
4601string_till_end:
4602 static_cast<::std::string*>(object)->clear();
4603 static_cast<::std::string*>(object)->reserve(size);
4604 goto len_delim_till_end;
4605len_delim_till_end:
4606 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
4607 {parser_till_end, object}, size);
4608}
4609#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4610bool StopManagingDeviceRequest::MergePartialFromCodedStream(
4611 ::google::protobuf::io::CodedInputStream* input) {
4612#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
4613 ::google::protobuf::uint32 tag;
4614 // @@protoc_insertion_point(parse_start:dmi.StopManagingDeviceRequest)
4615 for (;;) {
4616 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4617 tag = p.first;
4618 if (!p.second) goto handle_unusual;
4619 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4620 // string name = 1;
4621 case 1: {
4622 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
4623 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4624 input, this->mutable_name()));
4625 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
4626 this->name().data(), static_cast<int>(this->name().length()),
4627 ::google::protobuf::internal::WireFormatLite::PARSE,
4628 "dmi.StopManagingDeviceRequest.name"));
4629 } else {
4630 goto handle_unusual;
4631 }
4632 break;
4633 }
4634
4635 default: {
4636 handle_unusual:
4637 if (tag == 0) {
4638 goto success;
4639 }
4640 DO_(::google::protobuf::internal::WireFormat::SkipField(
4641 input, tag, _internal_metadata_.mutable_unknown_fields()));
4642 break;
4643 }
4644 }
4645 }
4646success:
4647 // @@protoc_insertion_point(parse_success:dmi.StopManagingDeviceRequest)
4648 return true;
4649failure:
4650 // @@protoc_insertion_point(parse_failure:dmi.StopManagingDeviceRequest)
4651 return false;
4652#undef DO_
4653}
4654#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4655
4656void StopManagingDeviceRequest::SerializeWithCachedSizes(
4657 ::google::protobuf::io::CodedOutputStream* output) const {
4658 // @@protoc_insertion_point(serialize_start:dmi.StopManagingDeviceRequest)
4659 ::google::protobuf::uint32 cached_has_bits = 0;
4660 (void) cached_has_bits;
4661
4662 // string name = 1;
4663 if (this->name().size() > 0) {
4664 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
4665 this->name().data(), static_cast<int>(this->name().length()),
4666 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
4667 "dmi.StopManagingDeviceRequest.name");
4668 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4669 1, this->name(), output);
4670 }
4671
4672 if (_internal_metadata_.have_unknown_fields()) {
4673 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4674 _internal_metadata_.unknown_fields(), output);
4675 }
4676 // @@protoc_insertion_point(serialize_end:dmi.StopManagingDeviceRequest)
4677}
4678
4679::google::protobuf::uint8* StopManagingDeviceRequest::InternalSerializeWithCachedSizesToArray(
4680 ::google::protobuf::uint8* target) const {
4681 // @@protoc_insertion_point(serialize_to_array_start:dmi.StopManagingDeviceRequest)
4682 ::google::protobuf::uint32 cached_has_bits = 0;
4683 (void) cached_has_bits;
4684
4685 // string name = 1;
4686 if (this->name().size() > 0) {
4687 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
4688 this->name().data(), static_cast<int>(this->name().length()),
4689 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
4690 "dmi.StopManagingDeviceRequest.name");
4691 target =
4692 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4693 1, this->name(), target);
4694 }
4695
4696 if (_internal_metadata_.have_unknown_fields()) {
4697 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4698 _internal_metadata_.unknown_fields(), target);
4699 }
4700 // @@protoc_insertion_point(serialize_to_array_end:dmi.StopManagingDeviceRequest)
4701 return target;
4702}
4703
4704size_t StopManagingDeviceRequest::ByteSizeLong() const {
4705// @@protoc_insertion_point(message_byte_size_start:dmi.StopManagingDeviceRequest)
4706 size_t total_size = 0;
4707
4708 if (_internal_metadata_.have_unknown_fields()) {
4709 total_size +=
4710 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4711 _internal_metadata_.unknown_fields());
4712 }
4713 ::google::protobuf::uint32 cached_has_bits = 0;
4714 // Prevent compiler warnings about cached_has_bits being unused
4715 (void) cached_has_bits;
4716
4717 // string name = 1;
4718 if (this->name().size() > 0) {
4719 total_size += 1 +
4720 ::google::protobuf::internal::WireFormatLite::StringSize(
4721 this->name());
4722 }
4723
4724 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4725 SetCachedSize(cached_size);
4726 return total_size;
4727}
4728
4729void StopManagingDeviceRequest::MergeFrom(const ::google::protobuf::Message& from) {
4730// @@protoc_insertion_point(generalized_merge_from_start:dmi.StopManagingDeviceRequest)
4731 GOOGLE_DCHECK_NE(&from, this);
4732 const StopManagingDeviceRequest* source =
4733 ::google::protobuf::DynamicCastToGenerated<StopManagingDeviceRequest>(
4734 &from);
4735 if (source == nullptr) {
4736 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.StopManagingDeviceRequest)
4737 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4738 } else {
4739 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.StopManagingDeviceRequest)
4740 MergeFrom(*source);
4741 }
4742}
4743
4744void StopManagingDeviceRequest::MergeFrom(const StopManagingDeviceRequest& from) {
4745// @@protoc_insertion_point(class_specific_merge_from_start:dmi.StopManagingDeviceRequest)
4746 GOOGLE_DCHECK_NE(&from, this);
4747 _internal_metadata_.MergeFrom(from._internal_metadata_);
4748 ::google::protobuf::uint32 cached_has_bits = 0;
4749 (void) cached_has_bits;
4750
4751 if (from.name().size() > 0) {
4752
4753 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
4754 }
4755}
4756
4757void StopManagingDeviceRequest::CopyFrom(const ::google::protobuf::Message& from) {
4758// @@protoc_insertion_point(generalized_copy_from_start:dmi.StopManagingDeviceRequest)
4759 if (&from == this) return;
4760 Clear();
4761 MergeFrom(from);
4762}
4763
4764void StopManagingDeviceRequest::CopyFrom(const StopManagingDeviceRequest& from) {
4765// @@protoc_insertion_point(class_specific_copy_from_start:dmi.StopManagingDeviceRequest)
4766 if (&from == this) return;
4767 Clear();
4768 MergeFrom(from);
4769}
4770
4771bool StopManagingDeviceRequest::IsInitialized() const {
4772 return true;
4773}
4774
4775void StopManagingDeviceRequest::Swap(StopManagingDeviceRequest* other) {
4776 if (other == this) return;
4777 InternalSwap(other);
4778}
4779void StopManagingDeviceRequest::InternalSwap(StopManagingDeviceRequest* other) {
4780 using std::swap;
4781 _internal_metadata_.Swap(&other->_internal_metadata_);
4782 name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4783 GetArenaNoVirtual());
4784}
4785
4786::google::protobuf::Metadata StopManagingDeviceRequest::GetMetadata() const {
4787 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
4788 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
4789}
4790
4791
4792// ===================================================================
4793
4794void StopManagingDeviceResponse::InitAsDefaultInstance() {
4795}
4796class StopManagingDeviceResponse::HasBitSetters {
4797 public:
4798};
4799
4800#if !defined(_MSC_VER) || _MSC_VER >= 1900
4801const int StopManagingDeviceResponse::kStatusFieldNumber;
4802const int StopManagingDeviceResponse::kReasonFieldNumber;
4803const int StopManagingDeviceResponse::kReasonDetailFieldNumber;
4804#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
4805
4806StopManagingDeviceResponse::StopManagingDeviceResponse()
4807 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
4808 SharedCtor();
4809 // @@protoc_insertion_point(constructor:dmi.StopManagingDeviceResponse)
4810}
4811StopManagingDeviceResponse::StopManagingDeviceResponse(const StopManagingDeviceResponse& from)
4812 : ::google::protobuf::Message(),
4813 _internal_metadata_(nullptr) {
4814 _internal_metadata_.MergeFrom(from._internal_metadata_);
4815 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4816 if (from.reason_detail().size() > 0) {
4817 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
4818 }
4819 ::memcpy(&status_, &from.status_,
4820 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
4821 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
4822 // @@protoc_insertion_point(copy_constructor:dmi.StopManagingDeviceResponse)
4823}
4824
4825void StopManagingDeviceResponse::SharedCtor() {
4826 ::google::protobuf::internal::InitSCC(
4827 &scc_info_StopManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
4828 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4829 ::memset(&status_, 0, static_cast<size_t>(
4830 reinterpret_cast<char*>(&reason_) -
4831 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
4832}
4833
4834StopManagingDeviceResponse::~StopManagingDeviceResponse() {
4835 // @@protoc_insertion_point(destructor:dmi.StopManagingDeviceResponse)
4836 SharedDtor();
4837}
4838
4839void StopManagingDeviceResponse::SharedDtor() {
4840 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4841}
4842
4843void StopManagingDeviceResponse::SetCachedSize(int size) const {
4844 _cached_size_.Set(size);
4845}
4846const StopManagingDeviceResponse& StopManagingDeviceResponse::default_instance() {
4847 ::google::protobuf::internal::InitSCC(&::scc_info_StopManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
4848 return *internal_default_instance();
4849}
4850
4851
4852void StopManagingDeviceResponse::Clear() {
4853// @@protoc_insertion_point(message_clear_start:dmi.StopManagingDeviceResponse)
4854 ::google::protobuf::uint32 cached_has_bits = 0;
4855 // Prevent compiler warnings about cached_has_bits being unused
4856 (void) cached_has_bits;
4857
4858 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4859 ::memset(&status_, 0, static_cast<size_t>(
4860 reinterpret_cast<char*>(&reason_) -
4861 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
4862 _internal_metadata_.Clear();
4863}
4864
4865#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4866const char* StopManagingDeviceResponse::_InternalParse(const char* begin, const char* end, void* object,
4867 ::google::protobuf::internal::ParseContext* ctx) {
4868 auto msg = static_cast<StopManagingDeviceResponse*>(object);
4869 ::google::protobuf::int32 size; (void)size;
4870 int depth; (void)depth;
4871 ::google::protobuf::uint32 tag;
4872 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
4873 auto ptr = begin;
4874 while (ptr < end) {
4875 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
4876 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4877 switch (tag >> 3) {
4878 // .dmi.Status status = 1;
4879 case 1: {
4880 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
4881 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
4882 msg->set_status(static_cast<::dmi::Status>(val));
4883 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4884 break;
4885 }
4886 // .dmi.StopManagingDeviceResponse.Reason reason = 2;
4887 case 2: {
4888 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
4889 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
4890 msg->set_reason(static_cast<::dmi::StopManagingDeviceResponse_Reason>(val));
4891 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4892 break;
4893 }
4894 // string reason_detail = 3;
4895 case 3: {
4896 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
4897 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
4898 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4899 ctx->extra_parse_data().SetFieldName("dmi.StopManagingDeviceResponse.reason_detail");
4900 object = msg->mutable_reason_detail();
4901 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
4902 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
4903 goto string_till_end;
4904 }
4905 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
4906 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
4907 ptr += size;
4908 break;
4909 }
4910 default: {
4911 handle_unusual:
4912 if ((tag & 7) == 4 || tag == 0) {
4913 ctx->EndGroup(tag);
4914 return ptr;
4915 }
4916 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
4917 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
4918 ptr = res.first;
4919 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
4920 if (res.second) return ptr;
4921 }
4922 } // switch
4923 } // while
4924 return ptr;
4925string_till_end:
4926 static_cast<::std::string*>(object)->clear();
4927 static_cast<::std::string*>(object)->reserve(size);
4928 goto len_delim_till_end;
4929len_delim_till_end:
4930 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
4931 {parser_till_end, object}, size);
4932}
4933#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4934bool StopManagingDeviceResponse::MergePartialFromCodedStream(
4935 ::google::protobuf::io::CodedInputStream* input) {
4936#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
4937 ::google::protobuf::uint32 tag;
4938 // @@protoc_insertion_point(parse_start:dmi.StopManagingDeviceResponse)
4939 for (;;) {
4940 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4941 tag = p.first;
4942 if (!p.second) goto handle_unusual;
4943 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4944 // .dmi.Status status = 1;
4945 case 1: {
4946 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
4947 int value = 0;
4948 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4949 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
4950 input, &value)));
4951 set_status(static_cast< ::dmi::Status >(value));
4952 } else {
4953 goto handle_unusual;
4954 }
4955 break;
4956 }
4957
4958 // .dmi.StopManagingDeviceResponse.Reason reason = 2;
4959 case 2: {
4960 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
4961 int value = 0;
4962 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4963 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
4964 input, &value)));
4965 set_reason(static_cast< ::dmi::StopManagingDeviceResponse_Reason >(value));
4966 } else {
4967 goto handle_unusual;
4968 }
4969 break;
4970 }
4971
4972 // string reason_detail = 3;
4973 case 3: {
4974 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
4975 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4976 input, this->mutable_reason_detail()));
4977 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
4978 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
4979 ::google::protobuf::internal::WireFormatLite::PARSE,
4980 "dmi.StopManagingDeviceResponse.reason_detail"));
4981 } else {
4982 goto handle_unusual;
4983 }
4984 break;
4985 }
4986
4987 default: {
4988 handle_unusual:
4989 if (tag == 0) {
4990 goto success;
4991 }
4992 DO_(::google::protobuf::internal::WireFormat::SkipField(
4993 input, tag, _internal_metadata_.mutable_unknown_fields()));
4994 break;
4995 }
4996 }
4997 }
4998success:
4999 // @@protoc_insertion_point(parse_success:dmi.StopManagingDeviceResponse)
5000 return true;
5001failure:
5002 // @@protoc_insertion_point(parse_failure:dmi.StopManagingDeviceResponse)
5003 return false;
5004#undef DO_
5005}
5006#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5007
5008void StopManagingDeviceResponse::SerializeWithCachedSizes(
5009 ::google::protobuf::io::CodedOutputStream* output) const {
5010 // @@protoc_insertion_point(serialize_start:dmi.StopManagingDeviceResponse)
5011 ::google::protobuf::uint32 cached_has_bits = 0;
5012 (void) cached_has_bits;
5013
5014 // .dmi.Status status = 1;
5015 if (this->status() != 0) {
5016 ::google::protobuf::internal::WireFormatLite::WriteEnum(
5017 1, this->status(), output);
5018 }
5019
5020 // .dmi.StopManagingDeviceResponse.Reason reason = 2;
5021 if (this->reason() != 0) {
5022 ::google::protobuf::internal::WireFormatLite::WriteEnum(
5023 2, this->reason(), output);
5024 }
5025
5026 // string reason_detail = 3;
5027 if (this->reason_detail().size() > 0) {
5028 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
5029 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
5030 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
5031 "dmi.StopManagingDeviceResponse.reason_detail");
5032 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
5033 3, this->reason_detail(), output);
5034 }
5035
5036 if (_internal_metadata_.have_unknown_fields()) {
5037 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5038 _internal_metadata_.unknown_fields(), output);
5039 }
5040 // @@protoc_insertion_point(serialize_end:dmi.StopManagingDeviceResponse)
5041}
5042
5043::google::protobuf::uint8* StopManagingDeviceResponse::InternalSerializeWithCachedSizesToArray(
5044 ::google::protobuf::uint8* target) const {
5045 // @@protoc_insertion_point(serialize_to_array_start:dmi.StopManagingDeviceResponse)
5046 ::google::protobuf::uint32 cached_has_bits = 0;
5047 (void) cached_has_bits;
5048
5049 // .dmi.Status status = 1;
5050 if (this->status() != 0) {
5051 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
5052 1, this->status(), target);
5053 }
5054
5055 // .dmi.StopManagingDeviceResponse.Reason reason = 2;
5056 if (this->reason() != 0) {
5057 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
5058 2, this->reason(), target);
5059 }
5060
5061 // string reason_detail = 3;
5062 if (this->reason_detail().size() > 0) {
5063 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
5064 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
5065 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
5066 "dmi.StopManagingDeviceResponse.reason_detail");
5067 target =
5068 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
5069 3, this->reason_detail(), target);
5070 }
5071
5072 if (_internal_metadata_.have_unknown_fields()) {
5073 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5074 _internal_metadata_.unknown_fields(), target);
5075 }
5076 // @@protoc_insertion_point(serialize_to_array_end:dmi.StopManagingDeviceResponse)
5077 return target;
5078}
5079
5080size_t StopManagingDeviceResponse::ByteSizeLong() const {
5081// @@protoc_insertion_point(message_byte_size_start:dmi.StopManagingDeviceResponse)
5082 size_t total_size = 0;
5083
5084 if (_internal_metadata_.have_unknown_fields()) {
5085 total_size +=
5086 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5087 _internal_metadata_.unknown_fields());
5088 }
5089 ::google::protobuf::uint32 cached_has_bits = 0;
5090 // Prevent compiler warnings about cached_has_bits being unused
5091 (void) cached_has_bits;
5092
5093 // string reason_detail = 3;
5094 if (this->reason_detail().size() > 0) {
5095 total_size += 1 +
5096 ::google::protobuf::internal::WireFormatLite::StringSize(
5097 this->reason_detail());
5098 }
5099
5100 // .dmi.Status status = 1;
5101 if (this->status() != 0) {
5102 total_size += 1 +
5103 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
5104 }
5105
5106 // .dmi.StopManagingDeviceResponse.Reason reason = 2;
5107 if (this->reason() != 0) {
5108 total_size += 1 +
5109 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
5110 }
5111
5112 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5113 SetCachedSize(cached_size);
5114 return total_size;
5115}
5116
5117void StopManagingDeviceResponse::MergeFrom(const ::google::protobuf::Message& from) {
5118// @@protoc_insertion_point(generalized_merge_from_start:dmi.StopManagingDeviceResponse)
5119 GOOGLE_DCHECK_NE(&from, this);
5120 const StopManagingDeviceResponse* source =
5121 ::google::protobuf::DynamicCastToGenerated<StopManagingDeviceResponse>(
5122 &from);
5123 if (source == nullptr) {
5124 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.StopManagingDeviceResponse)
5125 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5126 } else {
5127 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.StopManagingDeviceResponse)
5128 MergeFrom(*source);
5129 }
5130}
5131
5132void StopManagingDeviceResponse::MergeFrom(const StopManagingDeviceResponse& from) {
5133// @@protoc_insertion_point(class_specific_merge_from_start:dmi.StopManagingDeviceResponse)
5134 GOOGLE_DCHECK_NE(&from, this);
5135 _internal_metadata_.MergeFrom(from._internal_metadata_);
5136 ::google::protobuf::uint32 cached_has_bits = 0;
5137 (void) cached_has_bits;
5138
5139 if (from.reason_detail().size() > 0) {
5140
5141 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
5142 }
5143 if (from.status() != 0) {
5144 set_status(from.status());
5145 }
5146 if (from.reason() != 0) {
5147 set_reason(from.reason());
5148 }
5149}
5150
5151void StopManagingDeviceResponse::CopyFrom(const ::google::protobuf::Message& from) {
5152// @@protoc_insertion_point(generalized_copy_from_start:dmi.StopManagingDeviceResponse)
5153 if (&from == this) return;
5154 Clear();
5155 MergeFrom(from);
5156}
5157
5158void StopManagingDeviceResponse::CopyFrom(const StopManagingDeviceResponse& from) {
5159// @@protoc_insertion_point(class_specific_copy_from_start:dmi.StopManagingDeviceResponse)
5160 if (&from == this) return;
5161 Clear();
5162 MergeFrom(from);
5163}
5164
5165bool StopManagingDeviceResponse::IsInitialized() const {
5166 return true;
5167}
5168
5169void StopManagingDeviceResponse::Swap(StopManagingDeviceResponse* other) {
5170 if (other == this) return;
5171 InternalSwap(other);
5172}
5173void StopManagingDeviceResponse::InternalSwap(StopManagingDeviceResponse* other) {
5174 using std::swap;
5175 _internal_metadata_.Swap(&other->_internal_metadata_);
5176 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
5177 GetArenaNoVirtual());
5178 swap(status_, other->status_);
5179 swap(reason_, other->reason_);
5180}
5181
5182::google::protobuf::Metadata StopManagingDeviceResponse::GetMetadata() const {
5183 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
5184 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
5185}
5186
5187
5188// ===================================================================
5189
5190void ManagedDeviceInfo::InitAsDefaultInstance() {
5191 ::dmi::_ManagedDeviceInfo_default_instance_._instance.get_mutable()->info_ = const_cast< ::dmi::ModifiableComponent*>(
5192 ::dmi::ModifiableComponent::internal_default_instance());
5193 ::dmi::_ManagedDeviceInfo_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
5194 ::dmi::Uuid::internal_default_instance());
5195}
5196class ManagedDeviceInfo::HasBitSetters {
5197 public:
5198 static const ::dmi::ModifiableComponent& info(const ManagedDeviceInfo* msg);
5199 static const ::dmi::Uuid& device_uuid(const ManagedDeviceInfo* msg);
5200};
5201
5202const ::dmi::ModifiableComponent&
5203ManagedDeviceInfo::HasBitSetters::info(const ManagedDeviceInfo* msg) {
5204 return *msg->info_;
5205}
5206const ::dmi::Uuid&
5207ManagedDeviceInfo::HasBitSetters::device_uuid(const ManagedDeviceInfo* msg) {
5208 return *msg->device_uuid_;
5209}
5210void ManagedDeviceInfo::clear_info() {
5211 if (GetArenaNoVirtual() == nullptr && info_ != nullptr) {
5212 delete info_;
5213 }
5214 info_ = nullptr;
5215}
5216void ManagedDeviceInfo::clear_device_uuid() {
5217 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
5218 delete device_uuid_;
5219 }
5220 device_uuid_ = nullptr;
5221}
5222#if !defined(_MSC_VER) || _MSC_VER >= 1900
5223const int ManagedDeviceInfo::kInfoFieldNumber;
5224const int ManagedDeviceInfo::kDeviceUuidFieldNumber;
5225#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
5226
5227ManagedDeviceInfo::ManagedDeviceInfo()
5228 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
5229 SharedCtor();
5230 // @@protoc_insertion_point(constructor:dmi.ManagedDeviceInfo)
5231}
5232ManagedDeviceInfo::ManagedDeviceInfo(const ManagedDeviceInfo& from)
5233 : ::google::protobuf::Message(),
5234 _internal_metadata_(nullptr) {
5235 _internal_metadata_.MergeFrom(from._internal_metadata_);
5236 if (from.has_info()) {
5237 info_ = new ::dmi::ModifiableComponent(*from.info_);
5238 } else {
5239 info_ = nullptr;
5240 }
5241 if (from.has_device_uuid()) {
5242 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
5243 } else {
5244 device_uuid_ = nullptr;
5245 }
5246 // @@protoc_insertion_point(copy_constructor:dmi.ManagedDeviceInfo)
5247}
5248
5249void ManagedDeviceInfo::SharedCtor() {
5250 ::google::protobuf::internal::InitSCC(
5251 &scc_info_ManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
5252 ::memset(&info_, 0, static_cast<size_t>(
5253 reinterpret_cast<char*>(&device_uuid_) -
5254 reinterpret_cast<char*>(&info_)) + sizeof(device_uuid_));
5255}
5256
5257ManagedDeviceInfo::~ManagedDeviceInfo() {
5258 // @@protoc_insertion_point(destructor:dmi.ManagedDeviceInfo)
5259 SharedDtor();
5260}
5261
5262void ManagedDeviceInfo::SharedDtor() {
5263 if (this != internal_default_instance()) delete info_;
5264 if (this != internal_default_instance()) delete device_uuid_;
5265}
5266
5267void ManagedDeviceInfo::SetCachedSize(int size) const {
5268 _cached_size_.Set(size);
5269}
5270const ManagedDeviceInfo& ManagedDeviceInfo::default_instance() {
5271 ::google::protobuf::internal::InitSCC(&::scc_info_ManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
5272 return *internal_default_instance();
5273}
5274
5275
5276void ManagedDeviceInfo::Clear() {
5277// @@protoc_insertion_point(message_clear_start:dmi.ManagedDeviceInfo)
5278 ::google::protobuf::uint32 cached_has_bits = 0;
5279 // Prevent compiler warnings about cached_has_bits being unused
5280 (void) cached_has_bits;
5281
5282 if (GetArenaNoVirtual() == nullptr && info_ != nullptr) {
5283 delete info_;
5284 }
5285 info_ = nullptr;
5286 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
5287 delete device_uuid_;
5288 }
5289 device_uuid_ = nullptr;
5290 _internal_metadata_.Clear();
5291}
5292
5293#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5294const char* ManagedDeviceInfo::_InternalParse(const char* begin, const char* end, void* object,
5295 ::google::protobuf::internal::ParseContext* ctx) {
5296 auto msg = static_cast<ManagedDeviceInfo*>(object);
5297 ::google::protobuf::int32 size; (void)size;
5298 int depth; (void)depth;
5299 ::google::protobuf::uint32 tag;
5300 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
5301 auto ptr = begin;
5302 while (ptr < end) {
5303 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
5304 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5305 switch (tag >> 3) {
5306 // .dmi.ModifiableComponent info = 1;
5307 case 1: {
5308 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
5309 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
5310 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5311 parser_till_end = ::dmi::ModifiableComponent::_InternalParse;
5312 object = msg->mutable_info();
5313 if (size > end - ptr) goto len_delim_till_end;
5314 ptr += size;
5315 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
5316 {parser_till_end, object}, ptr - size, ptr));
5317 break;
5318 }
5319 // .dmi.Uuid device_uuid = 2;
5320 case 2: {
5321 if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
5322 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
5323 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5324 parser_till_end = ::dmi::Uuid::_InternalParse;
5325 object = msg->mutable_device_uuid();
5326 if (size > end - ptr) goto len_delim_till_end;
5327 ptr += size;
5328 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
5329 {parser_till_end, object}, ptr - size, ptr));
5330 break;
5331 }
5332 default: {
5333 handle_unusual:
5334 if ((tag & 7) == 4 || tag == 0) {
5335 ctx->EndGroup(tag);
5336 return ptr;
5337 }
5338 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
5339 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
5340 ptr = res.first;
5341 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
5342 if (res.second) return ptr;
5343 }
5344 } // switch
5345 } // while
5346 return ptr;
5347len_delim_till_end:
5348 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
5349 {parser_till_end, object}, size);
5350}
5351#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5352bool ManagedDeviceInfo::MergePartialFromCodedStream(
5353 ::google::protobuf::io::CodedInputStream* input) {
5354#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
5355 ::google::protobuf::uint32 tag;
5356 // @@protoc_insertion_point(parse_start:dmi.ManagedDeviceInfo)
5357 for (;;) {
5358 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5359 tag = p.first;
5360 if (!p.second) goto handle_unusual;
5361 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5362 // .dmi.ModifiableComponent info = 1;
5363 case 1: {
5364 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
5365 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5366 input, mutable_info()));
5367 } else {
5368 goto handle_unusual;
5369 }
5370 break;
5371 }
5372
5373 // .dmi.Uuid device_uuid = 2;
5374 case 2: {
5375 if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
5376 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5377 input, mutable_device_uuid()));
5378 } else {
5379 goto handle_unusual;
5380 }
5381 break;
5382 }
5383
5384 default: {
5385 handle_unusual:
5386 if (tag == 0) {
5387 goto success;
5388 }
5389 DO_(::google::protobuf::internal::WireFormat::SkipField(
5390 input, tag, _internal_metadata_.mutable_unknown_fields()));
5391 break;
5392 }
5393 }
5394 }
5395success:
5396 // @@protoc_insertion_point(parse_success:dmi.ManagedDeviceInfo)
5397 return true;
5398failure:
5399 // @@protoc_insertion_point(parse_failure:dmi.ManagedDeviceInfo)
5400 return false;
5401#undef DO_
5402}
5403#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5404
5405void ManagedDeviceInfo::SerializeWithCachedSizes(
5406 ::google::protobuf::io::CodedOutputStream* output) const {
5407 // @@protoc_insertion_point(serialize_start:dmi.ManagedDeviceInfo)
5408 ::google::protobuf::uint32 cached_has_bits = 0;
5409 (void) cached_has_bits;
5410
5411 // .dmi.ModifiableComponent info = 1;
5412 if (this->has_info()) {
5413 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5414 1, HasBitSetters::info(this), output);
5415 }
5416
5417 // .dmi.Uuid device_uuid = 2;
5418 if (this->has_device_uuid()) {
5419 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5420 2, HasBitSetters::device_uuid(this), output);
5421 }
5422
5423 if (_internal_metadata_.have_unknown_fields()) {
5424 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5425 _internal_metadata_.unknown_fields(), output);
5426 }
5427 // @@protoc_insertion_point(serialize_end:dmi.ManagedDeviceInfo)
5428}
5429
5430::google::protobuf::uint8* ManagedDeviceInfo::InternalSerializeWithCachedSizesToArray(
5431 ::google::protobuf::uint8* target) const {
5432 // @@protoc_insertion_point(serialize_to_array_start:dmi.ManagedDeviceInfo)
5433 ::google::protobuf::uint32 cached_has_bits = 0;
5434 (void) cached_has_bits;
5435
5436 // .dmi.ModifiableComponent info = 1;
5437 if (this->has_info()) {
5438 target = ::google::protobuf::internal::WireFormatLite::
5439 InternalWriteMessageToArray(
5440 1, HasBitSetters::info(this), target);
5441 }
5442
5443 // .dmi.Uuid device_uuid = 2;
5444 if (this->has_device_uuid()) {
5445 target = ::google::protobuf::internal::WireFormatLite::
5446 InternalWriteMessageToArray(
5447 2, HasBitSetters::device_uuid(this), target);
5448 }
5449
5450 if (_internal_metadata_.have_unknown_fields()) {
5451 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5452 _internal_metadata_.unknown_fields(), target);
5453 }
5454 // @@protoc_insertion_point(serialize_to_array_end:dmi.ManagedDeviceInfo)
5455 return target;
5456}
5457
5458size_t ManagedDeviceInfo::ByteSizeLong() const {
5459// @@protoc_insertion_point(message_byte_size_start:dmi.ManagedDeviceInfo)
5460 size_t total_size = 0;
5461
5462 if (_internal_metadata_.have_unknown_fields()) {
5463 total_size +=
5464 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5465 _internal_metadata_.unknown_fields());
5466 }
5467 ::google::protobuf::uint32 cached_has_bits = 0;
5468 // Prevent compiler warnings about cached_has_bits being unused
5469 (void) cached_has_bits;
5470
5471 // .dmi.ModifiableComponent info = 1;
5472 if (this->has_info()) {
5473 total_size += 1 +
5474 ::google::protobuf::internal::WireFormatLite::MessageSize(
5475 *info_);
5476 }
5477
5478 // .dmi.Uuid device_uuid = 2;
5479 if (this->has_device_uuid()) {
5480 total_size += 1 +
5481 ::google::protobuf::internal::WireFormatLite::MessageSize(
5482 *device_uuid_);
5483 }
5484
5485 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5486 SetCachedSize(cached_size);
5487 return total_size;
5488}
5489
5490void ManagedDeviceInfo::MergeFrom(const ::google::protobuf::Message& from) {
5491// @@protoc_insertion_point(generalized_merge_from_start:dmi.ManagedDeviceInfo)
5492 GOOGLE_DCHECK_NE(&from, this);
5493 const ManagedDeviceInfo* source =
5494 ::google::protobuf::DynamicCastToGenerated<ManagedDeviceInfo>(
5495 &from);
5496 if (source == nullptr) {
5497 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ManagedDeviceInfo)
5498 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5499 } else {
5500 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ManagedDeviceInfo)
5501 MergeFrom(*source);
5502 }
5503}
5504
5505void ManagedDeviceInfo::MergeFrom(const ManagedDeviceInfo& from) {
5506// @@protoc_insertion_point(class_specific_merge_from_start:dmi.ManagedDeviceInfo)
5507 GOOGLE_DCHECK_NE(&from, this);
5508 _internal_metadata_.MergeFrom(from._internal_metadata_);
5509 ::google::protobuf::uint32 cached_has_bits = 0;
5510 (void) cached_has_bits;
5511
5512 if (from.has_info()) {
5513 mutable_info()->::dmi::ModifiableComponent::MergeFrom(from.info());
5514 }
5515 if (from.has_device_uuid()) {
5516 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
5517 }
5518}
5519
5520void ManagedDeviceInfo::CopyFrom(const ::google::protobuf::Message& from) {
5521// @@protoc_insertion_point(generalized_copy_from_start:dmi.ManagedDeviceInfo)
5522 if (&from == this) return;
5523 Clear();
5524 MergeFrom(from);
5525}
5526
5527void ManagedDeviceInfo::CopyFrom(const ManagedDeviceInfo& from) {
5528// @@protoc_insertion_point(class_specific_copy_from_start:dmi.ManagedDeviceInfo)
5529 if (&from == this) return;
5530 Clear();
5531 MergeFrom(from);
5532}
5533
5534bool ManagedDeviceInfo::IsInitialized() const {
5535 return true;
5536}
5537
5538void ManagedDeviceInfo::Swap(ManagedDeviceInfo* other) {
5539 if (other == this) return;
5540 InternalSwap(other);
5541}
5542void ManagedDeviceInfo::InternalSwap(ManagedDeviceInfo* other) {
5543 using std::swap;
5544 _internal_metadata_.Swap(&other->_internal_metadata_);
5545 swap(info_, other->info_);
5546 swap(device_uuid_, other->device_uuid_);
5547}
5548
5549::google::protobuf::Metadata ManagedDeviceInfo::GetMetadata() const {
5550 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
5551 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
5552}
5553
5554
5555// ===================================================================
5556
5557void ManagedDevicesResponse::InitAsDefaultInstance() {
5558}
5559class ManagedDevicesResponse::HasBitSetters {
5560 public:
5561};
5562
5563#if !defined(_MSC_VER) || _MSC_VER >= 1900
5564const int ManagedDevicesResponse::kStatusFieldNumber;
5565const int ManagedDevicesResponse::kReasonFieldNumber;
5566const int ManagedDevicesResponse::kDevicesFieldNumber;
5567#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
5568
5569ManagedDevicesResponse::ManagedDevicesResponse()
5570 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
5571 SharedCtor();
5572 // @@protoc_insertion_point(constructor:dmi.ManagedDevicesResponse)
5573}
5574ManagedDevicesResponse::ManagedDevicesResponse(const ManagedDevicesResponse& from)
5575 : ::google::protobuf::Message(),
5576 _internal_metadata_(nullptr),
5577 devices_(from.devices_) {
5578 _internal_metadata_.MergeFrom(from._internal_metadata_);
5579 ::memcpy(&status_, &from.status_,
5580 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
5581 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
5582 // @@protoc_insertion_point(copy_constructor:dmi.ManagedDevicesResponse)
5583}
5584
5585void ManagedDevicesResponse::SharedCtor() {
5586 ::google::protobuf::internal::InitSCC(
5587 &scc_info_ManagedDevicesResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
5588 ::memset(&status_, 0, static_cast<size_t>(
5589 reinterpret_cast<char*>(&reason_) -
5590 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
5591}
5592
5593ManagedDevicesResponse::~ManagedDevicesResponse() {
5594 // @@protoc_insertion_point(destructor:dmi.ManagedDevicesResponse)
5595 SharedDtor();
5596}
5597
5598void ManagedDevicesResponse::SharedDtor() {
5599}
5600
5601void ManagedDevicesResponse::SetCachedSize(int size) const {
5602 _cached_size_.Set(size);
5603}
5604const ManagedDevicesResponse& ManagedDevicesResponse::default_instance() {
5605 ::google::protobuf::internal::InitSCC(&::scc_info_ManagedDevicesResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
5606 return *internal_default_instance();
5607}
5608
5609
5610void ManagedDevicesResponse::Clear() {
5611// @@protoc_insertion_point(message_clear_start:dmi.ManagedDevicesResponse)
5612 ::google::protobuf::uint32 cached_has_bits = 0;
5613 // Prevent compiler warnings about cached_has_bits being unused
5614 (void) cached_has_bits;
5615
5616 devices_.Clear();
5617 ::memset(&status_, 0, static_cast<size_t>(
5618 reinterpret_cast<char*>(&reason_) -
5619 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
5620 _internal_metadata_.Clear();
5621}
5622
5623#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5624const char* ManagedDevicesResponse::_InternalParse(const char* begin, const char* end, void* object,
5625 ::google::protobuf::internal::ParseContext* ctx) {
5626 auto msg = static_cast<ManagedDevicesResponse*>(object);
5627 ::google::protobuf::int32 size; (void)size;
5628 int depth; (void)depth;
5629 ::google::protobuf::uint32 tag;
5630 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
5631 auto ptr = begin;
5632 while (ptr < end) {
5633 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
5634 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5635 switch (tag >> 3) {
5636 // .dmi.Status status = 1;
5637 case 1: {
5638 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
5639 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
5640 msg->set_status(static_cast<::dmi::Status>(val));
5641 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5642 break;
5643 }
5644 // .dmi.ManagedDevicesResponse.Reason reason = 2;
5645 case 2: {
5646 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
5647 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
5648 msg->set_reason(static_cast<::dmi::ManagedDevicesResponse_Reason>(val));
5649 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5650 break;
5651 }
5652 // repeated .dmi.ManagedDeviceInfo devices = 3;
5653 case 3: {
5654 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
5655 do {
5656 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
5657 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5658 parser_till_end = ::dmi::ManagedDeviceInfo::_InternalParse;
5659 object = msg->add_devices();
5660 if (size > end - ptr) goto len_delim_till_end;
5661 ptr += size;
5662 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
5663 {parser_till_end, object}, ptr - size, ptr));
5664 if (ptr >= end) break;
5665 } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 26 && (ptr += 1));
5666 break;
5667 }
5668 default: {
5669 handle_unusual:
5670 if ((tag & 7) == 4 || tag == 0) {
5671 ctx->EndGroup(tag);
5672 return ptr;
5673 }
5674 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
5675 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
5676 ptr = res.first;
5677 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
5678 if (res.second) return ptr;
5679 }
5680 } // switch
5681 } // while
5682 return ptr;
5683len_delim_till_end:
5684 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
5685 {parser_till_end, object}, size);
5686}
5687#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5688bool ManagedDevicesResponse::MergePartialFromCodedStream(
5689 ::google::protobuf::io::CodedInputStream* input) {
5690#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
5691 ::google::protobuf::uint32 tag;
5692 // @@protoc_insertion_point(parse_start:dmi.ManagedDevicesResponse)
5693 for (;;) {
5694 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5695 tag = p.first;
5696 if (!p.second) goto handle_unusual;
5697 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5698 // .dmi.Status status = 1;
5699 case 1: {
5700 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
5701 int value = 0;
5702 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5703 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
5704 input, &value)));
5705 set_status(static_cast< ::dmi::Status >(value));
5706 } else {
5707 goto handle_unusual;
5708 }
5709 break;
5710 }
5711
5712 // .dmi.ManagedDevicesResponse.Reason reason = 2;
5713 case 2: {
5714 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
5715 int value = 0;
5716 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5717 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
5718 input, &value)));
5719 set_reason(static_cast< ::dmi::ManagedDevicesResponse_Reason >(value));
5720 } else {
5721 goto handle_unusual;
5722 }
5723 break;
5724 }
5725
5726 // repeated .dmi.ManagedDeviceInfo devices = 3;
5727 case 3: {
5728 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
5729 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5730 input, add_devices()));
5731 } else {
5732 goto handle_unusual;
5733 }
5734 break;
5735 }
5736
5737 default: {
5738 handle_unusual:
5739 if (tag == 0) {
5740 goto success;
5741 }
5742 DO_(::google::protobuf::internal::WireFormat::SkipField(
5743 input, tag, _internal_metadata_.mutable_unknown_fields()));
5744 break;
5745 }
5746 }
5747 }
5748success:
5749 // @@protoc_insertion_point(parse_success:dmi.ManagedDevicesResponse)
5750 return true;
5751failure:
5752 // @@protoc_insertion_point(parse_failure:dmi.ManagedDevicesResponse)
5753 return false;
5754#undef DO_
5755}
5756#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5757
5758void ManagedDevicesResponse::SerializeWithCachedSizes(
5759 ::google::protobuf::io::CodedOutputStream* output) const {
5760 // @@protoc_insertion_point(serialize_start:dmi.ManagedDevicesResponse)
5761 ::google::protobuf::uint32 cached_has_bits = 0;
5762 (void) cached_has_bits;
5763
5764 // .dmi.Status status = 1;
5765 if (this->status() != 0) {
5766 ::google::protobuf::internal::WireFormatLite::WriteEnum(
5767 1, this->status(), output);
5768 }
5769
5770 // .dmi.ManagedDevicesResponse.Reason reason = 2;
5771 if (this->reason() != 0) {
5772 ::google::protobuf::internal::WireFormatLite::WriteEnum(
5773 2, this->reason(), output);
5774 }
5775
5776 // repeated .dmi.ManagedDeviceInfo devices = 3;
5777 for (unsigned int i = 0,
5778 n = static_cast<unsigned int>(this->devices_size()); i < n; i++) {
5779 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5780 3,
5781 this->devices(static_cast<int>(i)),
5782 output);
5783 }
5784
5785 if (_internal_metadata_.have_unknown_fields()) {
5786 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5787 _internal_metadata_.unknown_fields(), output);
5788 }
5789 // @@protoc_insertion_point(serialize_end:dmi.ManagedDevicesResponse)
5790}
5791
5792::google::protobuf::uint8* ManagedDevicesResponse::InternalSerializeWithCachedSizesToArray(
5793 ::google::protobuf::uint8* target) const {
5794 // @@protoc_insertion_point(serialize_to_array_start:dmi.ManagedDevicesResponse)
5795 ::google::protobuf::uint32 cached_has_bits = 0;
5796 (void) cached_has_bits;
5797
5798 // .dmi.Status status = 1;
5799 if (this->status() != 0) {
5800 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
5801 1, this->status(), target);
5802 }
5803
5804 // .dmi.ManagedDevicesResponse.Reason reason = 2;
5805 if (this->reason() != 0) {
5806 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
5807 2, this->reason(), target);
5808 }
5809
5810 // repeated .dmi.ManagedDeviceInfo devices = 3;
5811 for (unsigned int i = 0,
5812 n = static_cast<unsigned int>(this->devices_size()); i < n; i++) {
5813 target = ::google::protobuf::internal::WireFormatLite::
5814 InternalWriteMessageToArray(
5815 3, this->devices(static_cast<int>(i)), target);
5816 }
5817
5818 if (_internal_metadata_.have_unknown_fields()) {
5819 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5820 _internal_metadata_.unknown_fields(), target);
5821 }
5822 // @@protoc_insertion_point(serialize_to_array_end:dmi.ManagedDevicesResponse)
5823 return target;
5824}
5825
5826size_t ManagedDevicesResponse::ByteSizeLong() const {
5827// @@protoc_insertion_point(message_byte_size_start:dmi.ManagedDevicesResponse)
5828 size_t total_size = 0;
5829
5830 if (_internal_metadata_.have_unknown_fields()) {
5831 total_size +=
5832 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5833 _internal_metadata_.unknown_fields());
5834 }
5835 ::google::protobuf::uint32 cached_has_bits = 0;
5836 // Prevent compiler warnings about cached_has_bits being unused
5837 (void) cached_has_bits;
5838
5839 // repeated .dmi.ManagedDeviceInfo devices = 3;
5840 {
5841 unsigned int count = static_cast<unsigned int>(this->devices_size());
5842 total_size += 1UL * count;
5843 for (unsigned int i = 0; i < count; i++) {
5844 total_size +=
5845 ::google::protobuf::internal::WireFormatLite::MessageSize(
5846 this->devices(static_cast<int>(i)));
5847 }
5848 }
5849
5850 // .dmi.Status status = 1;
5851 if (this->status() != 0) {
5852 total_size += 1 +
5853 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
5854 }
5855
5856 // .dmi.ManagedDevicesResponse.Reason reason = 2;
5857 if (this->reason() != 0) {
5858 total_size += 1 +
5859 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
5860 }
5861
5862 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5863 SetCachedSize(cached_size);
5864 return total_size;
5865}
5866
5867void ManagedDevicesResponse::MergeFrom(const ::google::protobuf::Message& from) {
5868// @@protoc_insertion_point(generalized_merge_from_start:dmi.ManagedDevicesResponse)
5869 GOOGLE_DCHECK_NE(&from, this);
5870 const ManagedDevicesResponse* source =
5871 ::google::protobuf::DynamicCastToGenerated<ManagedDevicesResponse>(
5872 &from);
5873 if (source == nullptr) {
5874 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ManagedDevicesResponse)
5875 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5876 } else {
5877 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ManagedDevicesResponse)
5878 MergeFrom(*source);
5879 }
5880}
5881
5882void ManagedDevicesResponse::MergeFrom(const ManagedDevicesResponse& from) {
5883// @@protoc_insertion_point(class_specific_merge_from_start:dmi.ManagedDevicesResponse)
5884 GOOGLE_DCHECK_NE(&from, this);
5885 _internal_metadata_.MergeFrom(from._internal_metadata_);
5886 ::google::protobuf::uint32 cached_has_bits = 0;
5887 (void) cached_has_bits;
5888
5889 devices_.MergeFrom(from.devices_);
5890 if (from.status() != 0) {
5891 set_status(from.status());
5892 }
5893 if (from.reason() != 0) {
5894 set_reason(from.reason());
5895 }
5896}
5897
5898void ManagedDevicesResponse::CopyFrom(const ::google::protobuf::Message& from) {
5899// @@protoc_insertion_point(generalized_copy_from_start:dmi.ManagedDevicesResponse)
5900 if (&from == this) return;
5901 Clear();
5902 MergeFrom(from);
5903}
5904
5905void ManagedDevicesResponse::CopyFrom(const ManagedDevicesResponse& from) {
5906// @@protoc_insertion_point(class_specific_copy_from_start:dmi.ManagedDevicesResponse)
5907 if (&from == this) return;
5908 Clear();
5909 MergeFrom(from);
5910}
5911
5912bool ManagedDevicesResponse::IsInitialized() const {
5913 return true;
5914}
5915
5916void ManagedDevicesResponse::Swap(ManagedDevicesResponse* other) {
5917 if (other == this) return;
5918 InternalSwap(other);
5919}
5920void ManagedDevicesResponse::InternalSwap(ManagedDevicesResponse* other) {
5921 using std::swap;
5922 _internal_metadata_.Swap(&other->_internal_metadata_);
5923 CastToBase(&devices_)->InternalSwap(CastToBase(&other->devices_));
5924 swap(status_, other->status_);
5925 swap(reason_, other->reason_);
5926}
5927
5928::google::protobuf::Metadata ManagedDevicesResponse::GetMetadata() const {
5929 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
5930 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
5931}
5932
5933
5934// ===================================================================
5935
5936void SetLoggingEndpointRequest::InitAsDefaultInstance() {
5937 ::dmi::_SetLoggingEndpointRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
5938 ::dmi::Uuid::internal_default_instance());
5939}
5940class SetLoggingEndpointRequest::HasBitSetters {
5941 public:
5942 static const ::dmi::Uuid& device_uuid(const SetLoggingEndpointRequest* msg);
5943};
5944
5945const ::dmi::Uuid&
5946SetLoggingEndpointRequest::HasBitSetters::device_uuid(const SetLoggingEndpointRequest* msg) {
5947 return *msg->device_uuid_;
5948}
5949void SetLoggingEndpointRequest::clear_device_uuid() {
5950 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
5951 delete device_uuid_;
5952 }
5953 device_uuid_ = nullptr;
5954}
5955#if !defined(_MSC_VER) || _MSC_VER >= 1900
5956const int SetLoggingEndpointRequest::kDeviceUuidFieldNumber;
5957const int SetLoggingEndpointRequest::kLoggingEndpointFieldNumber;
5958const int SetLoggingEndpointRequest::kLoggingProtocolFieldNumber;
5959#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
5960
5961SetLoggingEndpointRequest::SetLoggingEndpointRequest()
5962 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
5963 SharedCtor();
5964 // @@protoc_insertion_point(constructor:dmi.SetLoggingEndpointRequest)
5965}
5966SetLoggingEndpointRequest::SetLoggingEndpointRequest(const SetLoggingEndpointRequest& from)
5967 : ::google::protobuf::Message(),
5968 _internal_metadata_(nullptr) {
5969 _internal_metadata_.MergeFrom(from._internal_metadata_);
5970 logging_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5971 if (from.logging_endpoint().size() > 0) {
5972 logging_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_endpoint_);
5973 }
5974 logging_protocol_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5975 if (from.logging_protocol().size() > 0) {
5976 logging_protocol_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_protocol_);
5977 }
5978 if (from.has_device_uuid()) {
5979 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
5980 } else {
5981 device_uuid_ = nullptr;
5982 }
5983 // @@protoc_insertion_point(copy_constructor:dmi.SetLoggingEndpointRequest)
5984}
5985
5986void SetLoggingEndpointRequest::SharedCtor() {
5987 ::google::protobuf::internal::InitSCC(
5988 &scc_info_SetLoggingEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
5989 logging_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5990 logging_protocol_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5991 device_uuid_ = nullptr;
5992}
5993
5994SetLoggingEndpointRequest::~SetLoggingEndpointRequest() {
5995 // @@protoc_insertion_point(destructor:dmi.SetLoggingEndpointRequest)
5996 SharedDtor();
5997}
5998
5999void SetLoggingEndpointRequest::SharedDtor() {
6000 logging_endpoint_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6001 logging_protocol_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6002 if (this != internal_default_instance()) delete device_uuid_;
6003}
6004
6005void SetLoggingEndpointRequest::SetCachedSize(int size) const {
6006 _cached_size_.Set(size);
6007}
6008const SetLoggingEndpointRequest& SetLoggingEndpointRequest::default_instance() {
6009 ::google::protobuf::internal::InitSCC(&::scc_info_SetLoggingEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
6010 return *internal_default_instance();
6011}
6012
6013
6014void SetLoggingEndpointRequest::Clear() {
6015// @@protoc_insertion_point(message_clear_start:dmi.SetLoggingEndpointRequest)
6016 ::google::protobuf::uint32 cached_has_bits = 0;
6017 // Prevent compiler warnings about cached_has_bits being unused
6018 (void) cached_has_bits;
6019
6020 logging_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6021 logging_protocol_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6022 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
6023 delete device_uuid_;
6024 }
6025 device_uuid_ = nullptr;
6026 _internal_metadata_.Clear();
6027}
6028
6029#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6030const char* SetLoggingEndpointRequest::_InternalParse(const char* begin, const char* end, void* object,
6031 ::google::protobuf::internal::ParseContext* ctx) {
6032 auto msg = static_cast<SetLoggingEndpointRequest*>(object);
6033 ::google::protobuf::int32 size; (void)size;
6034 int depth; (void)depth;
6035 ::google::protobuf::uint32 tag;
6036 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
6037 auto ptr = begin;
6038 while (ptr < end) {
6039 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
6040 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6041 switch (tag >> 3) {
6042 // .dmi.Uuid device_uuid = 1;
6043 case 1: {
6044 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
6045 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
6046 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6047 parser_till_end = ::dmi::Uuid::_InternalParse;
6048 object = msg->mutable_device_uuid();
6049 if (size > end - ptr) goto len_delim_till_end;
6050 ptr += size;
6051 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
6052 {parser_till_end, object}, ptr - size, ptr));
6053 break;
6054 }
6055 // string logging_endpoint = 2;
6056 case 2: {
6057 if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
6058 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
6059 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6060 ctx->extra_parse_data().SetFieldName("dmi.SetLoggingEndpointRequest.logging_endpoint");
6061 object = msg->mutable_logging_endpoint();
6062 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
6063 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
6064 goto string_till_end;
6065 }
6066 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
6067 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
6068 ptr += size;
6069 break;
6070 }
6071 // string logging_protocol = 3;
6072 case 3: {
6073 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
6074 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
6075 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6076 ctx->extra_parse_data().SetFieldName("dmi.SetLoggingEndpointRequest.logging_protocol");
6077 object = msg->mutable_logging_protocol();
6078 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
6079 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
6080 goto string_till_end;
6081 }
6082 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
6083 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
6084 ptr += size;
6085 break;
6086 }
6087 default: {
6088 handle_unusual:
6089 if ((tag & 7) == 4 || tag == 0) {
6090 ctx->EndGroup(tag);
6091 return ptr;
6092 }
6093 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
6094 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
6095 ptr = res.first;
6096 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
6097 if (res.second) return ptr;
6098 }
6099 } // switch
6100 } // while
6101 return ptr;
6102string_till_end:
6103 static_cast<::std::string*>(object)->clear();
6104 static_cast<::std::string*>(object)->reserve(size);
6105 goto len_delim_till_end;
6106len_delim_till_end:
6107 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
6108 {parser_till_end, object}, size);
6109}
6110#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6111bool SetLoggingEndpointRequest::MergePartialFromCodedStream(
6112 ::google::protobuf::io::CodedInputStream* input) {
6113#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
6114 ::google::protobuf::uint32 tag;
6115 // @@protoc_insertion_point(parse_start:dmi.SetLoggingEndpointRequest)
6116 for (;;) {
6117 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6118 tag = p.first;
6119 if (!p.second) goto handle_unusual;
6120 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6121 // .dmi.Uuid device_uuid = 1;
6122 case 1: {
6123 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
6124 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
6125 input, mutable_device_uuid()));
6126 } else {
6127 goto handle_unusual;
6128 }
6129 break;
6130 }
6131
6132 // string logging_endpoint = 2;
6133 case 2: {
6134 if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
6135 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6136 input, this->mutable_logging_endpoint()));
6137 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6138 this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()),
6139 ::google::protobuf::internal::WireFormatLite::PARSE,
6140 "dmi.SetLoggingEndpointRequest.logging_endpoint"));
6141 } else {
6142 goto handle_unusual;
6143 }
6144 break;
6145 }
6146
6147 // string logging_protocol = 3;
6148 case 3: {
6149 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
6150 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6151 input, this->mutable_logging_protocol()));
6152 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6153 this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()),
6154 ::google::protobuf::internal::WireFormatLite::PARSE,
6155 "dmi.SetLoggingEndpointRequest.logging_protocol"));
6156 } else {
6157 goto handle_unusual;
6158 }
6159 break;
6160 }
6161
6162 default: {
6163 handle_unusual:
6164 if (tag == 0) {
6165 goto success;
6166 }
6167 DO_(::google::protobuf::internal::WireFormat::SkipField(
6168 input, tag, _internal_metadata_.mutable_unknown_fields()));
6169 break;
6170 }
6171 }
6172 }
6173success:
6174 // @@protoc_insertion_point(parse_success:dmi.SetLoggingEndpointRequest)
6175 return true;
6176failure:
6177 // @@protoc_insertion_point(parse_failure:dmi.SetLoggingEndpointRequest)
6178 return false;
6179#undef DO_
6180}
6181#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6182
6183void SetLoggingEndpointRequest::SerializeWithCachedSizes(
6184 ::google::protobuf::io::CodedOutputStream* output) const {
6185 // @@protoc_insertion_point(serialize_start:dmi.SetLoggingEndpointRequest)
6186 ::google::protobuf::uint32 cached_has_bits = 0;
6187 (void) cached_has_bits;
6188
6189 // .dmi.Uuid device_uuid = 1;
6190 if (this->has_device_uuid()) {
6191 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6192 1, HasBitSetters::device_uuid(this), output);
6193 }
6194
6195 // string logging_endpoint = 2;
6196 if (this->logging_endpoint().size() > 0) {
6197 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6198 this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()),
6199 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6200 "dmi.SetLoggingEndpointRequest.logging_endpoint");
6201 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6202 2, this->logging_endpoint(), output);
6203 }
6204
6205 // string logging_protocol = 3;
6206 if (this->logging_protocol().size() > 0) {
6207 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6208 this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()),
6209 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6210 "dmi.SetLoggingEndpointRequest.logging_protocol");
6211 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6212 3, this->logging_protocol(), output);
6213 }
6214
6215 if (_internal_metadata_.have_unknown_fields()) {
6216 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6217 _internal_metadata_.unknown_fields(), output);
6218 }
6219 // @@protoc_insertion_point(serialize_end:dmi.SetLoggingEndpointRequest)
6220}
6221
6222::google::protobuf::uint8* SetLoggingEndpointRequest::InternalSerializeWithCachedSizesToArray(
6223 ::google::protobuf::uint8* target) const {
6224 // @@protoc_insertion_point(serialize_to_array_start:dmi.SetLoggingEndpointRequest)
6225 ::google::protobuf::uint32 cached_has_bits = 0;
6226 (void) cached_has_bits;
6227
6228 // .dmi.Uuid device_uuid = 1;
6229 if (this->has_device_uuid()) {
6230 target = ::google::protobuf::internal::WireFormatLite::
6231 InternalWriteMessageToArray(
6232 1, HasBitSetters::device_uuid(this), target);
6233 }
6234
6235 // string logging_endpoint = 2;
6236 if (this->logging_endpoint().size() > 0) {
6237 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6238 this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()),
6239 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6240 "dmi.SetLoggingEndpointRequest.logging_endpoint");
6241 target =
6242 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6243 2, this->logging_endpoint(), target);
6244 }
6245
6246 // string logging_protocol = 3;
6247 if (this->logging_protocol().size() > 0) {
6248 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6249 this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()),
6250 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6251 "dmi.SetLoggingEndpointRequest.logging_protocol");
6252 target =
6253 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6254 3, this->logging_protocol(), target);
6255 }
6256
6257 if (_internal_metadata_.have_unknown_fields()) {
6258 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6259 _internal_metadata_.unknown_fields(), target);
6260 }
6261 // @@protoc_insertion_point(serialize_to_array_end:dmi.SetLoggingEndpointRequest)
6262 return target;
6263}
6264
6265size_t SetLoggingEndpointRequest::ByteSizeLong() const {
6266// @@protoc_insertion_point(message_byte_size_start:dmi.SetLoggingEndpointRequest)
6267 size_t total_size = 0;
6268
6269 if (_internal_metadata_.have_unknown_fields()) {
6270 total_size +=
6271 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6272 _internal_metadata_.unknown_fields());
6273 }
6274 ::google::protobuf::uint32 cached_has_bits = 0;
6275 // Prevent compiler warnings about cached_has_bits being unused
6276 (void) cached_has_bits;
6277
6278 // string logging_endpoint = 2;
6279 if (this->logging_endpoint().size() > 0) {
6280 total_size += 1 +
6281 ::google::protobuf::internal::WireFormatLite::StringSize(
6282 this->logging_endpoint());
6283 }
6284
6285 // string logging_protocol = 3;
6286 if (this->logging_protocol().size() > 0) {
6287 total_size += 1 +
6288 ::google::protobuf::internal::WireFormatLite::StringSize(
6289 this->logging_protocol());
6290 }
6291
6292 // .dmi.Uuid device_uuid = 1;
6293 if (this->has_device_uuid()) {
6294 total_size += 1 +
6295 ::google::protobuf::internal::WireFormatLite::MessageSize(
6296 *device_uuid_);
6297 }
6298
6299 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
6300 SetCachedSize(cached_size);
6301 return total_size;
6302}
6303
6304void SetLoggingEndpointRequest::MergeFrom(const ::google::protobuf::Message& from) {
6305// @@protoc_insertion_point(generalized_merge_from_start:dmi.SetLoggingEndpointRequest)
6306 GOOGLE_DCHECK_NE(&from, this);
6307 const SetLoggingEndpointRequest* source =
6308 ::google::protobuf::DynamicCastToGenerated<SetLoggingEndpointRequest>(
6309 &from);
6310 if (source == nullptr) {
6311 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.SetLoggingEndpointRequest)
6312 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6313 } else {
6314 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.SetLoggingEndpointRequest)
6315 MergeFrom(*source);
6316 }
6317}
6318
6319void SetLoggingEndpointRequest::MergeFrom(const SetLoggingEndpointRequest& from) {
6320// @@protoc_insertion_point(class_specific_merge_from_start:dmi.SetLoggingEndpointRequest)
6321 GOOGLE_DCHECK_NE(&from, this);
6322 _internal_metadata_.MergeFrom(from._internal_metadata_);
6323 ::google::protobuf::uint32 cached_has_bits = 0;
6324 (void) cached_has_bits;
6325
6326 if (from.logging_endpoint().size() > 0) {
6327
6328 logging_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_endpoint_);
6329 }
6330 if (from.logging_protocol().size() > 0) {
6331
6332 logging_protocol_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_protocol_);
6333 }
6334 if (from.has_device_uuid()) {
6335 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
6336 }
6337}
6338
6339void SetLoggingEndpointRequest::CopyFrom(const ::google::protobuf::Message& from) {
6340// @@protoc_insertion_point(generalized_copy_from_start:dmi.SetLoggingEndpointRequest)
6341 if (&from == this) return;
6342 Clear();
6343 MergeFrom(from);
6344}
6345
6346void SetLoggingEndpointRequest::CopyFrom(const SetLoggingEndpointRequest& from) {
6347// @@protoc_insertion_point(class_specific_copy_from_start:dmi.SetLoggingEndpointRequest)
6348 if (&from == this) return;
6349 Clear();
6350 MergeFrom(from);
6351}
6352
6353bool SetLoggingEndpointRequest::IsInitialized() const {
6354 return true;
6355}
6356
6357void SetLoggingEndpointRequest::Swap(SetLoggingEndpointRequest* other) {
6358 if (other == this) return;
6359 InternalSwap(other);
6360}
6361void SetLoggingEndpointRequest::InternalSwap(SetLoggingEndpointRequest* other) {
6362 using std::swap;
6363 _internal_metadata_.Swap(&other->_internal_metadata_);
6364 logging_endpoint_.Swap(&other->logging_endpoint_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6365 GetArenaNoVirtual());
6366 logging_protocol_.Swap(&other->logging_protocol_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6367 GetArenaNoVirtual());
6368 swap(device_uuid_, other->device_uuid_);
6369}
6370
6371::google::protobuf::Metadata SetLoggingEndpointRequest::GetMetadata() const {
6372 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
6373 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
6374}
6375
6376
6377// ===================================================================
6378
6379void SetRemoteEndpointResponse::InitAsDefaultInstance() {
6380}
6381class SetRemoteEndpointResponse::HasBitSetters {
6382 public:
6383};
6384
6385#if !defined(_MSC_VER) || _MSC_VER >= 1900
6386const int SetRemoteEndpointResponse::kStatusFieldNumber;
6387const int SetRemoteEndpointResponse::kReasonFieldNumber;
6388const int SetRemoteEndpointResponse::kReasonDetailFieldNumber;
6389#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
6390
6391SetRemoteEndpointResponse::SetRemoteEndpointResponse()
6392 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
6393 SharedCtor();
6394 // @@protoc_insertion_point(constructor:dmi.SetRemoteEndpointResponse)
6395}
6396SetRemoteEndpointResponse::SetRemoteEndpointResponse(const SetRemoteEndpointResponse& from)
6397 : ::google::protobuf::Message(),
6398 _internal_metadata_(nullptr) {
6399 _internal_metadata_.MergeFrom(from._internal_metadata_);
6400 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6401 if (from.reason_detail().size() > 0) {
6402 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
6403 }
6404 ::memcpy(&status_, &from.status_,
6405 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
6406 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
6407 // @@protoc_insertion_point(copy_constructor:dmi.SetRemoteEndpointResponse)
6408}
6409
6410void SetRemoteEndpointResponse::SharedCtor() {
6411 ::google::protobuf::internal::InitSCC(
6412 &scc_info_SetRemoteEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
6413 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6414 ::memset(&status_, 0, static_cast<size_t>(
6415 reinterpret_cast<char*>(&reason_) -
6416 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
6417}
6418
6419SetRemoteEndpointResponse::~SetRemoteEndpointResponse() {
6420 // @@protoc_insertion_point(destructor:dmi.SetRemoteEndpointResponse)
6421 SharedDtor();
6422}
6423
6424void SetRemoteEndpointResponse::SharedDtor() {
6425 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6426}
6427
6428void SetRemoteEndpointResponse::SetCachedSize(int size) const {
6429 _cached_size_.Set(size);
6430}
6431const SetRemoteEndpointResponse& SetRemoteEndpointResponse::default_instance() {
6432 ::google::protobuf::internal::InitSCC(&::scc_info_SetRemoteEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
6433 return *internal_default_instance();
6434}
6435
6436
6437void SetRemoteEndpointResponse::Clear() {
6438// @@protoc_insertion_point(message_clear_start:dmi.SetRemoteEndpointResponse)
6439 ::google::protobuf::uint32 cached_has_bits = 0;
6440 // Prevent compiler warnings about cached_has_bits being unused
6441 (void) cached_has_bits;
6442
6443 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6444 ::memset(&status_, 0, static_cast<size_t>(
6445 reinterpret_cast<char*>(&reason_) -
6446 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
6447 _internal_metadata_.Clear();
6448}
6449
6450#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6451const char* SetRemoteEndpointResponse::_InternalParse(const char* begin, const char* end, void* object,
6452 ::google::protobuf::internal::ParseContext* ctx) {
6453 auto msg = static_cast<SetRemoteEndpointResponse*>(object);
6454 ::google::protobuf::int32 size; (void)size;
6455 int depth; (void)depth;
6456 ::google::protobuf::uint32 tag;
6457 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
6458 auto ptr = begin;
6459 while (ptr < end) {
6460 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
6461 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6462 switch (tag >> 3) {
6463 // .dmi.Status status = 1;
6464 case 1: {
6465 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
6466 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
6467 msg->set_status(static_cast<::dmi::Status>(val));
6468 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6469 break;
6470 }
6471 // .dmi.SetRemoteEndpointResponse.Reason reason = 2;
6472 case 2: {
6473 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
6474 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
6475 msg->set_reason(static_cast<::dmi::SetRemoteEndpointResponse_Reason>(val));
6476 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6477 break;
6478 }
6479 // string reason_detail = 3;
6480 case 3: {
6481 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
6482 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
6483 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6484 ctx->extra_parse_data().SetFieldName("dmi.SetRemoteEndpointResponse.reason_detail");
6485 object = msg->mutable_reason_detail();
6486 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
6487 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
6488 goto string_till_end;
6489 }
6490 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
6491 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
6492 ptr += size;
6493 break;
6494 }
6495 default: {
6496 handle_unusual:
6497 if ((tag & 7) == 4 || tag == 0) {
6498 ctx->EndGroup(tag);
6499 return ptr;
6500 }
6501 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
6502 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
6503 ptr = res.first;
6504 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
6505 if (res.second) return ptr;
6506 }
6507 } // switch
6508 } // while
6509 return ptr;
6510string_till_end:
6511 static_cast<::std::string*>(object)->clear();
6512 static_cast<::std::string*>(object)->reserve(size);
6513 goto len_delim_till_end;
6514len_delim_till_end:
6515 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
6516 {parser_till_end, object}, size);
6517}
6518#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6519bool SetRemoteEndpointResponse::MergePartialFromCodedStream(
6520 ::google::protobuf::io::CodedInputStream* input) {
6521#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
6522 ::google::protobuf::uint32 tag;
6523 // @@protoc_insertion_point(parse_start:dmi.SetRemoteEndpointResponse)
6524 for (;;) {
6525 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6526 tag = p.first;
6527 if (!p.second) goto handle_unusual;
6528 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6529 // .dmi.Status status = 1;
6530 case 1: {
6531 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
6532 int value = 0;
6533 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6534 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
6535 input, &value)));
6536 set_status(static_cast< ::dmi::Status >(value));
6537 } else {
6538 goto handle_unusual;
6539 }
6540 break;
6541 }
6542
6543 // .dmi.SetRemoteEndpointResponse.Reason reason = 2;
6544 case 2: {
6545 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
6546 int value = 0;
6547 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6548 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
6549 input, &value)));
6550 set_reason(static_cast< ::dmi::SetRemoteEndpointResponse_Reason >(value));
6551 } else {
6552 goto handle_unusual;
6553 }
6554 break;
6555 }
6556
6557 // string reason_detail = 3;
6558 case 3: {
6559 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
6560 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6561 input, this->mutable_reason_detail()));
6562 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6563 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
6564 ::google::protobuf::internal::WireFormatLite::PARSE,
6565 "dmi.SetRemoteEndpointResponse.reason_detail"));
6566 } else {
6567 goto handle_unusual;
6568 }
6569 break;
6570 }
6571
6572 default: {
6573 handle_unusual:
6574 if (tag == 0) {
6575 goto success;
6576 }
6577 DO_(::google::protobuf::internal::WireFormat::SkipField(
6578 input, tag, _internal_metadata_.mutable_unknown_fields()));
6579 break;
6580 }
6581 }
6582 }
6583success:
6584 // @@protoc_insertion_point(parse_success:dmi.SetRemoteEndpointResponse)
6585 return true;
6586failure:
6587 // @@protoc_insertion_point(parse_failure:dmi.SetRemoteEndpointResponse)
6588 return false;
6589#undef DO_
6590}
6591#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6592
6593void SetRemoteEndpointResponse::SerializeWithCachedSizes(
6594 ::google::protobuf::io::CodedOutputStream* output) const {
6595 // @@protoc_insertion_point(serialize_start:dmi.SetRemoteEndpointResponse)
6596 ::google::protobuf::uint32 cached_has_bits = 0;
6597 (void) cached_has_bits;
6598
6599 // .dmi.Status status = 1;
6600 if (this->status() != 0) {
6601 ::google::protobuf::internal::WireFormatLite::WriteEnum(
6602 1, this->status(), output);
6603 }
6604
6605 // .dmi.SetRemoteEndpointResponse.Reason reason = 2;
6606 if (this->reason() != 0) {
6607 ::google::protobuf::internal::WireFormatLite::WriteEnum(
6608 2, this->reason(), output);
6609 }
6610
6611 // string reason_detail = 3;
6612 if (this->reason_detail().size() > 0) {
6613 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6614 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
6615 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6616 "dmi.SetRemoteEndpointResponse.reason_detail");
6617 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6618 3, this->reason_detail(), output);
6619 }
6620
6621 if (_internal_metadata_.have_unknown_fields()) {
6622 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6623 _internal_metadata_.unknown_fields(), output);
6624 }
6625 // @@protoc_insertion_point(serialize_end:dmi.SetRemoteEndpointResponse)
6626}
6627
6628::google::protobuf::uint8* SetRemoteEndpointResponse::InternalSerializeWithCachedSizesToArray(
6629 ::google::protobuf::uint8* target) const {
6630 // @@protoc_insertion_point(serialize_to_array_start:dmi.SetRemoteEndpointResponse)
6631 ::google::protobuf::uint32 cached_has_bits = 0;
6632 (void) cached_has_bits;
6633
6634 // .dmi.Status status = 1;
6635 if (this->status() != 0) {
6636 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
6637 1, this->status(), target);
6638 }
6639
6640 // .dmi.SetRemoteEndpointResponse.Reason reason = 2;
6641 if (this->reason() != 0) {
6642 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
6643 2, this->reason(), target);
6644 }
6645
6646 // string reason_detail = 3;
6647 if (this->reason_detail().size() > 0) {
6648 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6649 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
6650 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6651 "dmi.SetRemoteEndpointResponse.reason_detail");
6652 target =
6653 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6654 3, this->reason_detail(), target);
6655 }
6656
6657 if (_internal_metadata_.have_unknown_fields()) {
6658 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6659 _internal_metadata_.unknown_fields(), target);
6660 }
6661 // @@protoc_insertion_point(serialize_to_array_end:dmi.SetRemoteEndpointResponse)
6662 return target;
6663}
6664
6665size_t SetRemoteEndpointResponse::ByteSizeLong() const {
6666// @@protoc_insertion_point(message_byte_size_start:dmi.SetRemoteEndpointResponse)
6667 size_t total_size = 0;
6668
6669 if (_internal_metadata_.have_unknown_fields()) {
6670 total_size +=
6671 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6672 _internal_metadata_.unknown_fields());
6673 }
6674 ::google::protobuf::uint32 cached_has_bits = 0;
6675 // Prevent compiler warnings about cached_has_bits being unused
6676 (void) cached_has_bits;
6677
6678 // string reason_detail = 3;
6679 if (this->reason_detail().size() > 0) {
6680 total_size += 1 +
6681 ::google::protobuf::internal::WireFormatLite::StringSize(
6682 this->reason_detail());
6683 }
6684
6685 // .dmi.Status status = 1;
6686 if (this->status() != 0) {
6687 total_size += 1 +
6688 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
6689 }
6690
6691 // .dmi.SetRemoteEndpointResponse.Reason reason = 2;
6692 if (this->reason() != 0) {
6693 total_size += 1 +
6694 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
6695 }
6696
6697 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
6698 SetCachedSize(cached_size);
6699 return total_size;
6700}
6701
6702void SetRemoteEndpointResponse::MergeFrom(const ::google::protobuf::Message& from) {
6703// @@protoc_insertion_point(generalized_merge_from_start:dmi.SetRemoteEndpointResponse)
6704 GOOGLE_DCHECK_NE(&from, this);
6705 const SetRemoteEndpointResponse* source =
6706 ::google::protobuf::DynamicCastToGenerated<SetRemoteEndpointResponse>(
6707 &from);
6708 if (source == nullptr) {
6709 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.SetRemoteEndpointResponse)
6710 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6711 } else {
6712 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.SetRemoteEndpointResponse)
6713 MergeFrom(*source);
6714 }
6715}
6716
6717void SetRemoteEndpointResponse::MergeFrom(const SetRemoteEndpointResponse& from) {
6718// @@protoc_insertion_point(class_specific_merge_from_start:dmi.SetRemoteEndpointResponse)
6719 GOOGLE_DCHECK_NE(&from, this);
6720 _internal_metadata_.MergeFrom(from._internal_metadata_);
6721 ::google::protobuf::uint32 cached_has_bits = 0;
6722 (void) cached_has_bits;
6723
6724 if (from.reason_detail().size() > 0) {
6725
6726 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
6727 }
6728 if (from.status() != 0) {
6729 set_status(from.status());
6730 }
6731 if (from.reason() != 0) {
6732 set_reason(from.reason());
6733 }
6734}
6735
6736void SetRemoteEndpointResponse::CopyFrom(const ::google::protobuf::Message& from) {
6737// @@protoc_insertion_point(generalized_copy_from_start:dmi.SetRemoteEndpointResponse)
6738 if (&from == this) return;
6739 Clear();
6740 MergeFrom(from);
6741}
6742
6743void SetRemoteEndpointResponse::CopyFrom(const SetRemoteEndpointResponse& from) {
6744// @@protoc_insertion_point(class_specific_copy_from_start:dmi.SetRemoteEndpointResponse)
6745 if (&from == this) return;
6746 Clear();
6747 MergeFrom(from);
6748}
6749
6750bool SetRemoteEndpointResponse::IsInitialized() const {
6751 return true;
6752}
6753
6754void SetRemoteEndpointResponse::Swap(SetRemoteEndpointResponse* other) {
6755 if (other == this) return;
6756 InternalSwap(other);
6757}
6758void SetRemoteEndpointResponse::InternalSwap(SetRemoteEndpointResponse* other) {
6759 using std::swap;
6760 _internal_metadata_.Swap(&other->_internal_metadata_);
6761 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6762 GetArenaNoVirtual());
6763 swap(status_, other->status_);
6764 swap(reason_, other->reason_);
6765}
6766
6767::google::protobuf::Metadata SetRemoteEndpointResponse::GetMetadata() const {
6768 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
6769 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
6770}
6771
6772
6773// ===================================================================
6774
6775void GetLoggingEndpointResponse::InitAsDefaultInstance() {
6776}
6777class GetLoggingEndpointResponse::HasBitSetters {
6778 public:
6779};
6780
6781#if !defined(_MSC_VER) || _MSC_VER >= 1900
6782const int GetLoggingEndpointResponse::kStatusFieldNumber;
6783const int GetLoggingEndpointResponse::kReasonFieldNumber;
6784const int GetLoggingEndpointResponse::kLoggingEndpointFieldNumber;
6785const int GetLoggingEndpointResponse::kLoggingProtocolFieldNumber;
6786const int GetLoggingEndpointResponse::kReasonDetailFieldNumber;
6787#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
6788
6789GetLoggingEndpointResponse::GetLoggingEndpointResponse()
6790 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
6791 SharedCtor();
6792 // @@protoc_insertion_point(constructor:dmi.GetLoggingEndpointResponse)
6793}
6794GetLoggingEndpointResponse::GetLoggingEndpointResponse(const GetLoggingEndpointResponse& from)
6795 : ::google::protobuf::Message(),
6796 _internal_metadata_(nullptr) {
6797 _internal_metadata_.MergeFrom(from._internal_metadata_);
6798 logging_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6799 if (from.logging_endpoint().size() > 0) {
6800 logging_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_endpoint_);
6801 }
6802 logging_protocol_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6803 if (from.logging_protocol().size() > 0) {
6804 logging_protocol_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_protocol_);
6805 }
6806 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6807 if (from.reason_detail().size() > 0) {
6808 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
6809 }
6810 ::memcpy(&status_, &from.status_,
6811 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
6812 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
6813 // @@protoc_insertion_point(copy_constructor:dmi.GetLoggingEndpointResponse)
6814}
6815
6816void GetLoggingEndpointResponse::SharedCtor() {
6817 ::google::protobuf::internal::InitSCC(
6818 &scc_info_GetLoggingEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
6819 logging_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6820 logging_protocol_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6821 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6822 ::memset(&status_, 0, static_cast<size_t>(
6823 reinterpret_cast<char*>(&reason_) -
6824 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
6825}
6826
6827GetLoggingEndpointResponse::~GetLoggingEndpointResponse() {
6828 // @@protoc_insertion_point(destructor:dmi.GetLoggingEndpointResponse)
6829 SharedDtor();
6830}
6831
6832void GetLoggingEndpointResponse::SharedDtor() {
6833 logging_endpoint_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6834 logging_protocol_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6835 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6836}
6837
6838void GetLoggingEndpointResponse::SetCachedSize(int size) const {
6839 _cached_size_.Set(size);
6840}
6841const GetLoggingEndpointResponse& GetLoggingEndpointResponse::default_instance() {
6842 ::google::protobuf::internal::InitSCC(&::scc_info_GetLoggingEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
6843 return *internal_default_instance();
6844}
6845
6846
6847void GetLoggingEndpointResponse::Clear() {
6848// @@protoc_insertion_point(message_clear_start:dmi.GetLoggingEndpointResponse)
6849 ::google::protobuf::uint32 cached_has_bits = 0;
6850 // Prevent compiler warnings about cached_has_bits being unused
6851 (void) cached_has_bits;
6852
6853 logging_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6854 logging_protocol_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6855 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6856 ::memset(&status_, 0, static_cast<size_t>(
6857 reinterpret_cast<char*>(&reason_) -
6858 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
6859 _internal_metadata_.Clear();
6860}
6861
6862#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6863const char* GetLoggingEndpointResponse::_InternalParse(const char* begin, const char* end, void* object,
6864 ::google::protobuf::internal::ParseContext* ctx) {
6865 auto msg = static_cast<GetLoggingEndpointResponse*>(object);
6866 ::google::protobuf::int32 size; (void)size;
6867 int depth; (void)depth;
6868 ::google::protobuf::uint32 tag;
6869 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
6870 auto ptr = begin;
6871 while (ptr < end) {
6872 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
6873 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6874 switch (tag >> 3) {
6875 // .dmi.Status status = 1;
6876 case 1: {
6877 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
6878 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
6879 msg->set_status(static_cast<::dmi::Status>(val));
6880 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6881 break;
6882 }
6883 // .dmi.GetLoggingEndpointResponse.Reason reason = 2;
6884 case 2: {
6885 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
6886 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
6887 msg->set_reason(static_cast<::dmi::GetLoggingEndpointResponse_Reason>(val));
6888 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6889 break;
6890 }
6891 // string logging_endpoint = 3;
6892 case 3: {
6893 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
6894 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
6895 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6896 ctx->extra_parse_data().SetFieldName("dmi.GetLoggingEndpointResponse.logging_endpoint");
6897 object = msg->mutable_logging_endpoint();
6898 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
6899 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
6900 goto string_till_end;
6901 }
6902 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
6903 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
6904 ptr += size;
6905 break;
6906 }
6907 // string logging_protocol = 4;
6908 case 4: {
6909 if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual;
6910 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
6911 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6912 ctx->extra_parse_data().SetFieldName("dmi.GetLoggingEndpointResponse.logging_protocol");
6913 object = msg->mutable_logging_protocol();
6914 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
6915 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
6916 goto string_till_end;
6917 }
6918 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
6919 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
6920 ptr += size;
6921 break;
6922 }
6923 // string reason_detail = 5;
6924 case 5: {
6925 if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual;
6926 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
6927 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6928 ctx->extra_parse_data().SetFieldName("dmi.GetLoggingEndpointResponse.reason_detail");
6929 object = msg->mutable_reason_detail();
6930 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
6931 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
6932 goto string_till_end;
6933 }
6934 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
6935 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
6936 ptr += size;
6937 break;
6938 }
6939 default: {
6940 handle_unusual:
6941 if ((tag & 7) == 4 || tag == 0) {
6942 ctx->EndGroup(tag);
6943 return ptr;
6944 }
6945 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
6946 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
6947 ptr = res.first;
6948 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
6949 if (res.second) return ptr;
6950 }
6951 } // switch
6952 } // while
6953 return ptr;
6954string_till_end:
6955 static_cast<::std::string*>(object)->clear();
6956 static_cast<::std::string*>(object)->reserve(size);
6957 goto len_delim_till_end;
6958len_delim_till_end:
6959 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
6960 {parser_till_end, object}, size);
6961}
6962#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6963bool GetLoggingEndpointResponse::MergePartialFromCodedStream(
6964 ::google::protobuf::io::CodedInputStream* input) {
6965#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
6966 ::google::protobuf::uint32 tag;
6967 // @@protoc_insertion_point(parse_start:dmi.GetLoggingEndpointResponse)
6968 for (;;) {
6969 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6970 tag = p.first;
6971 if (!p.second) goto handle_unusual;
6972 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6973 // .dmi.Status status = 1;
6974 case 1: {
6975 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
6976 int value = 0;
6977 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6978 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
6979 input, &value)));
6980 set_status(static_cast< ::dmi::Status >(value));
6981 } else {
6982 goto handle_unusual;
6983 }
6984 break;
6985 }
6986
6987 // .dmi.GetLoggingEndpointResponse.Reason reason = 2;
6988 case 2: {
6989 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
6990 int value = 0;
6991 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6992 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
6993 input, &value)));
6994 set_reason(static_cast< ::dmi::GetLoggingEndpointResponse_Reason >(value));
6995 } else {
6996 goto handle_unusual;
6997 }
6998 break;
6999 }
7000
7001 // string logging_endpoint = 3;
7002 case 3: {
7003 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
7004 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7005 input, this->mutable_logging_endpoint()));
7006 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7007 this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()),
7008 ::google::protobuf::internal::WireFormatLite::PARSE,
7009 "dmi.GetLoggingEndpointResponse.logging_endpoint"));
7010 } else {
7011 goto handle_unusual;
7012 }
7013 break;
7014 }
7015
7016 // string logging_protocol = 4;
7017 case 4: {
7018 if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
7019 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7020 input, this->mutable_logging_protocol()));
7021 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7022 this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()),
7023 ::google::protobuf::internal::WireFormatLite::PARSE,
7024 "dmi.GetLoggingEndpointResponse.logging_protocol"));
7025 } else {
7026 goto handle_unusual;
7027 }
7028 break;
7029 }
7030
7031 // string reason_detail = 5;
7032 case 5: {
7033 if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) {
7034 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7035 input, this->mutable_reason_detail()));
7036 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7037 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
7038 ::google::protobuf::internal::WireFormatLite::PARSE,
7039 "dmi.GetLoggingEndpointResponse.reason_detail"));
7040 } else {
7041 goto handle_unusual;
7042 }
7043 break;
7044 }
7045
7046 default: {
7047 handle_unusual:
7048 if (tag == 0) {
7049 goto success;
7050 }
7051 DO_(::google::protobuf::internal::WireFormat::SkipField(
7052 input, tag, _internal_metadata_.mutable_unknown_fields()));
7053 break;
7054 }
7055 }
7056 }
7057success:
7058 // @@protoc_insertion_point(parse_success:dmi.GetLoggingEndpointResponse)
7059 return true;
7060failure:
7061 // @@protoc_insertion_point(parse_failure:dmi.GetLoggingEndpointResponse)
7062 return false;
7063#undef DO_
7064}
7065#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7066
7067void GetLoggingEndpointResponse::SerializeWithCachedSizes(
7068 ::google::protobuf::io::CodedOutputStream* output) const {
7069 // @@protoc_insertion_point(serialize_start:dmi.GetLoggingEndpointResponse)
7070 ::google::protobuf::uint32 cached_has_bits = 0;
7071 (void) cached_has_bits;
7072
7073 // .dmi.Status status = 1;
7074 if (this->status() != 0) {
7075 ::google::protobuf::internal::WireFormatLite::WriteEnum(
7076 1, this->status(), output);
7077 }
7078
7079 // .dmi.GetLoggingEndpointResponse.Reason reason = 2;
7080 if (this->reason() != 0) {
7081 ::google::protobuf::internal::WireFormatLite::WriteEnum(
7082 2, this->reason(), output);
7083 }
7084
7085 // string logging_endpoint = 3;
7086 if (this->logging_endpoint().size() > 0) {
7087 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7088 this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()),
7089 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7090 "dmi.GetLoggingEndpointResponse.logging_endpoint");
7091 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7092 3, this->logging_endpoint(), output);
7093 }
7094
7095 // string logging_protocol = 4;
7096 if (this->logging_protocol().size() > 0) {
7097 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7098 this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()),
7099 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7100 "dmi.GetLoggingEndpointResponse.logging_protocol");
7101 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7102 4, this->logging_protocol(), output);
7103 }
7104
7105 // string reason_detail = 5;
7106 if (this->reason_detail().size() > 0) {
7107 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7108 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
7109 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7110 "dmi.GetLoggingEndpointResponse.reason_detail");
7111 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7112 5, this->reason_detail(), output);
7113 }
7114
7115 if (_internal_metadata_.have_unknown_fields()) {
7116 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
7117 _internal_metadata_.unknown_fields(), output);
7118 }
7119 // @@protoc_insertion_point(serialize_end:dmi.GetLoggingEndpointResponse)
7120}
7121
7122::google::protobuf::uint8* GetLoggingEndpointResponse::InternalSerializeWithCachedSizesToArray(
7123 ::google::protobuf::uint8* target) const {
7124 // @@protoc_insertion_point(serialize_to_array_start:dmi.GetLoggingEndpointResponse)
7125 ::google::protobuf::uint32 cached_has_bits = 0;
7126 (void) cached_has_bits;
7127
7128 // .dmi.Status status = 1;
7129 if (this->status() != 0) {
7130 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
7131 1, this->status(), target);
7132 }
7133
7134 // .dmi.GetLoggingEndpointResponse.Reason reason = 2;
7135 if (this->reason() != 0) {
7136 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
7137 2, this->reason(), target);
7138 }
7139
7140 // string logging_endpoint = 3;
7141 if (this->logging_endpoint().size() > 0) {
7142 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7143 this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()),
7144 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7145 "dmi.GetLoggingEndpointResponse.logging_endpoint");
7146 target =
7147 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7148 3, this->logging_endpoint(), target);
7149 }
7150
7151 // string logging_protocol = 4;
7152 if (this->logging_protocol().size() > 0) {
7153 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7154 this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()),
7155 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7156 "dmi.GetLoggingEndpointResponse.logging_protocol");
7157 target =
7158 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7159 4, this->logging_protocol(), target);
7160 }
7161
7162 // string reason_detail = 5;
7163 if (this->reason_detail().size() > 0) {
7164 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7165 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
7166 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7167 "dmi.GetLoggingEndpointResponse.reason_detail");
7168 target =
7169 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7170 5, this->reason_detail(), target);
7171 }
7172
7173 if (_internal_metadata_.have_unknown_fields()) {
7174 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
7175 _internal_metadata_.unknown_fields(), target);
7176 }
7177 // @@protoc_insertion_point(serialize_to_array_end:dmi.GetLoggingEndpointResponse)
7178 return target;
7179}
7180
7181size_t GetLoggingEndpointResponse::ByteSizeLong() const {
7182// @@protoc_insertion_point(message_byte_size_start:dmi.GetLoggingEndpointResponse)
7183 size_t total_size = 0;
7184
7185 if (_internal_metadata_.have_unknown_fields()) {
7186 total_size +=
7187 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7188 _internal_metadata_.unknown_fields());
7189 }
7190 ::google::protobuf::uint32 cached_has_bits = 0;
7191 // Prevent compiler warnings about cached_has_bits being unused
7192 (void) cached_has_bits;
7193
7194 // string logging_endpoint = 3;
7195 if (this->logging_endpoint().size() > 0) {
7196 total_size += 1 +
7197 ::google::protobuf::internal::WireFormatLite::StringSize(
7198 this->logging_endpoint());
7199 }
7200
7201 // string logging_protocol = 4;
7202 if (this->logging_protocol().size() > 0) {
7203 total_size += 1 +
7204 ::google::protobuf::internal::WireFormatLite::StringSize(
7205 this->logging_protocol());
7206 }
7207
7208 // string reason_detail = 5;
7209 if (this->reason_detail().size() > 0) {
7210 total_size += 1 +
7211 ::google::protobuf::internal::WireFormatLite::StringSize(
7212 this->reason_detail());
7213 }
7214
7215 // .dmi.Status status = 1;
7216 if (this->status() != 0) {
7217 total_size += 1 +
7218 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
7219 }
7220
7221 // .dmi.GetLoggingEndpointResponse.Reason reason = 2;
7222 if (this->reason() != 0) {
7223 total_size += 1 +
7224 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
7225 }
7226
7227 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
7228 SetCachedSize(cached_size);
7229 return total_size;
7230}
7231
7232void GetLoggingEndpointResponse::MergeFrom(const ::google::protobuf::Message& from) {
7233// @@protoc_insertion_point(generalized_merge_from_start:dmi.GetLoggingEndpointResponse)
7234 GOOGLE_DCHECK_NE(&from, this);
7235 const GetLoggingEndpointResponse* source =
7236 ::google::protobuf::DynamicCastToGenerated<GetLoggingEndpointResponse>(
7237 &from);
7238 if (source == nullptr) {
7239 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.GetLoggingEndpointResponse)
7240 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7241 } else {
7242 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.GetLoggingEndpointResponse)
7243 MergeFrom(*source);
7244 }
7245}
7246
7247void GetLoggingEndpointResponse::MergeFrom(const GetLoggingEndpointResponse& from) {
7248// @@protoc_insertion_point(class_specific_merge_from_start:dmi.GetLoggingEndpointResponse)
7249 GOOGLE_DCHECK_NE(&from, this);
7250 _internal_metadata_.MergeFrom(from._internal_metadata_);
7251 ::google::protobuf::uint32 cached_has_bits = 0;
7252 (void) cached_has_bits;
7253
7254 if (from.logging_endpoint().size() > 0) {
7255
7256 logging_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_endpoint_);
7257 }
7258 if (from.logging_protocol().size() > 0) {
7259
7260 logging_protocol_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_protocol_);
7261 }
7262 if (from.reason_detail().size() > 0) {
7263
7264 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
7265 }
7266 if (from.status() != 0) {
7267 set_status(from.status());
7268 }
7269 if (from.reason() != 0) {
7270 set_reason(from.reason());
7271 }
7272}
7273
7274void GetLoggingEndpointResponse::CopyFrom(const ::google::protobuf::Message& from) {
7275// @@protoc_insertion_point(generalized_copy_from_start:dmi.GetLoggingEndpointResponse)
7276 if (&from == this) return;
7277 Clear();
7278 MergeFrom(from);
7279}
7280
7281void GetLoggingEndpointResponse::CopyFrom(const GetLoggingEndpointResponse& from) {
7282// @@protoc_insertion_point(class_specific_copy_from_start:dmi.GetLoggingEndpointResponse)
7283 if (&from == this) return;
7284 Clear();
7285 MergeFrom(from);
7286}
7287
7288bool GetLoggingEndpointResponse::IsInitialized() const {
7289 return true;
7290}
7291
7292void GetLoggingEndpointResponse::Swap(GetLoggingEndpointResponse* other) {
7293 if (other == this) return;
7294 InternalSwap(other);
7295}
7296void GetLoggingEndpointResponse::InternalSwap(GetLoggingEndpointResponse* other) {
7297 using std::swap;
7298 _internal_metadata_.Swap(&other->_internal_metadata_);
7299 logging_endpoint_.Swap(&other->logging_endpoint_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
7300 GetArenaNoVirtual());
7301 logging_protocol_.Swap(&other->logging_protocol_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
7302 GetArenaNoVirtual());
7303 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
7304 GetArenaNoVirtual());
7305 swap(status_, other->status_);
7306 swap(reason_, other->reason_);
7307}
7308
7309::google::protobuf::Metadata GetLoggingEndpointResponse::GetMetadata() const {
7310 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
7311 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
7312}
7313
7314
7315// ===================================================================
7316
7317void SetMsgBusEndpointRequest::InitAsDefaultInstance() {
7318}
7319class SetMsgBusEndpointRequest::HasBitSetters {
7320 public:
7321};
7322
7323#if !defined(_MSC_VER) || _MSC_VER >= 1900
7324const int SetMsgBusEndpointRequest::kMsgbusEndpointFieldNumber;
7325#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
7326
7327SetMsgBusEndpointRequest::SetMsgBusEndpointRequest()
7328 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
7329 SharedCtor();
7330 // @@protoc_insertion_point(constructor:dmi.SetMsgBusEndpointRequest)
7331}
7332SetMsgBusEndpointRequest::SetMsgBusEndpointRequest(const SetMsgBusEndpointRequest& from)
7333 : ::google::protobuf::Message(),
7334 _internal_metadata_(nullptr) {
7335 _internal_metadata_.MergeFrom(from._internal_metadata_);
7336 msgbus_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7337 if (from.msgbus_endpoint().size() > 0) {
7338 msgbus_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.msgbus_endpoint_);
7339 }
7340 // @@protoc_insertion_point(copy_constructor:dmi.SetMsgBusEndpointRequest)
7341}
7342
7343void SetMsgBusEndpointRequest::SharedCtor() {
7344 ::google::protobuf::internal::InitSCC(
7345 &scc_info_SetMsgBusEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
7346 msgbus_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7347}
7348
7349SetMsgBusEndpointRequest::~SetMsgBusEndpointRequest() {
7350 // @@protoc_insertion_point(destructor:dmi.SetMsgBusEndpointRequest)
7351 SharedDtor();
7352}
7353
7354void SetMsgBusEndpointRequest::SharedDtor() {
7355 msgbus_endpoint_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7356}
7357
7358void SetMsgBusEndpointRequest::SetCachedSize(int size) const {
7359 _cached_size_.Set(size);
7360}
7361const SetMsgBusEndpointRequest& SetMsgBusEndpointRequest::default_instance() {
7362 ::google::protobuf::internal::InitSCC(&::scc_info_SetMsgBusEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
7363 return *internal_default_instance();
7364}
7365
7366
7367void SetMsgBusEndpointRequest::Clear() {
7368// @@protoc_insertion_point(message_clear_start:dmi.SetMsgBusEndpointRequest)
7369 ::google::protobuf::uint32 cached_has_bits = 0;
7370 // Prevent compiler warnings about cached_has_bits being unused
7371 (void) cached_has_bits;
7372
7373 msgbus_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7374 _internal_metadata_.Clear();
7375}
7376
7377#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7378const char* SetMsgBusEndpointRequest::_InternalParse(const char* begin, const char* end, void* object,
7379 ::google::protobuf::internal::ParseContext* ctx) {
7380 auto msg = static_cast<SetMsgBusEndpointRequest*>(object);
7381 ::google::protobuf::int32 size; (void)size;
7382 int depth; (void)depth;
7383 ::google::protobuf::uint32 tag;
7384 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
7385 auto ptr = begin;
7386 while (ptr < end) {
7387 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
7388 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7389 switch (tag >> 3) {
7390 // string msgbus_endpoint = 1;
7391 case 1: {
7392 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
7393 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
7394 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7395 ctx->extra_parse_data().SetFieldName("dmi.SetMsgBusEndpointRequest.msgbus_endpoint");
7396 object = msg->mutable_msgbus_endpoint();
7397 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
7398 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
7399 goto string_till_end;
7400 }
7401 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
7402 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
7403 ptr += size;
7404 break;
7405 }
7406 default: {
7407 handle_unusual:
7408 if ((tag & 7) == 4 || tag == 0) {
7409 ctx->EndGroup(tag);
7410 return ptr;
7411 }
7412 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
7413 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
7414 ptr = res.first;
7415 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
7416 if (res.second) return ptr;
7417 }
7418 } // switch
7419 } // while
7420 return ptr;
7421string_till_end:
7422 static_cast<::std::string*>(object)->clear();
7423 static_cast<::std::string*>(object)->reserve(size);
7424 goto len_delim_till_end;
7425len_delim_till_end:
7426 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
7427 {parser_till_end, object}, size);
7428}
7429#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7430bool SetMsgBusEndpointRequest::MergePartialFromCodedStream(
7431 ::google::protobuf::io::CodedInputStream* input) {
7432#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
7433 ::google::protobuf::uint32 tag;
7434 // @@protoc_insertion_point(parse_start:dmi.SetMsgBusEndpointRequest)
7435 for (;;) {
7436 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
7437 tag = p.first;
7438 if (!p.second) goto handle_unusual;
7439 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7440 // string msgbus_endpoint = 1;
7441 case 1: {
7442 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
7443 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7444 input, this->mutable_msgbus_endpoint()));
7445 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7446 this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()),
7447 ::google::protobuf::internal::WireFormatLite::PARSE,
7448 "dmi.SetMsgBusEndpointRequest.msgbus_endpoint"));
7449 } else {
7450 goto handle_unusual;
7451 }
7452 break;
7453 }
7454
7455 default: {
7456 handle_unusual:
7457 if (tag == 0) {
7458 goto success;
7459 }
7460 DO_(::google::protobuf::internal::WireFormat::SkipField(
7461 input, tag, _internal_metadata_.mutable_unknown_fields()));
7462 break;
7463 }
7464 }
7465 }
7466success:
7467 // @@protoc_insertion_point(parse_success:dmi.SetMsgBusEndpointRequest)
7468 return true;
7469failure:
7470 // @@protoc_insertion_point(parse_failure:dmi.SetMsgBusEndpointRequest)
7471 return false;
7472#undef DO_
7473}
7474#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7475
7476void SetMsgBusEndpointRequest::SerializeWithCachedSizes(
7477 ::google::protobuf::io::CodedOutputStream* output) const {
7478 // @@protoc_insertion_point(serialize_start:dmi.SetMsgBusEndpointRequest)
7479 ::google::protobuf::uint32 cached_has_bits = 0;
7480 (void) cached_has_bits;
7481
7482 // string msgbus_endpoint = 1;
7483 if (this->msgbus_endpoint().size() > 0) {
7484 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7485 this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()),
7486 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7487 "dmi.SetMsgBusEndpointRequest.msgbus_endpoint");
7488 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7489 1, this->msgbus_endpoint(), output);
7490 }
7491
7492 if (_internal_metadata_.have_unknown_fields()) {
7493 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
7494 _internal_metadata_.unknown_fields(), output);
7495 }
7496 // @@protoc_insertion_point(serialize_end:dmi.SetMsgBusEndpointRequest)
7497}
7498
7499::google::protobuf::uint8* SetMsgBusEndpointRequest::InternalSerializeWithCachedSizesToArray(
7500 ::google::protobuf::uint8* target) const {
7501 // @@protoc_insertion_point(serialize_to_array_start:dmi.SetMsgBusEndpointRequest)
7502 ::google::protobuf::uint32 cached_has_bits = 0;
7503 (void) cached_has_bits;
7504
7505 // string msgbus_endpoint = 1;
7506 if (this->msgbus_endpoint().size() > 0) {
7507 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7508 this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()),
7509 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7510 "dmi.SetMsgBusEndpointRequest.msgbus_endpoint");
7511 target =
7512 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7513 1, this->msgbus_endpoint(), target);
7514 }
7515
7516 if (_internal_metadata_.have_unknown_fields()) {
7517 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
7518 _internal_metadata_.unknown_fields(), target);
7519 }
7520 // @@protoc_insertion_point(serialize_to_array_end:dmi.SetMsgBusEndpointRequest)
7521 return target;
7522}
7523
7524size_t SetMsgBusEndpointRequest::ByteSizeLong() const {
7525// @@protoc_insertion_point(message_byte_size_start:dmi.SetMsgBusEndpointRequest)
7526 size_t total_size = 0;
7527
7528 if (_internal_metadata_.have_unknown_fields()) {
7529 total_size +=
7530 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7531 _internal_metadata_.unknown_fields());
7532 }
7533 ::google::protobuf::uint32 cached_has_bits = 0;
7534 // Prevent compiler warnings about cached_has_bits being unused
7535 (void) cached_has_bits;
7536
7537 // string msgbus_endpoint = 1;
7538 if (this->msgbus_endpoint().size() > 0) {
7539 total_size += 1 +
7540 ::google::protobuf::internal::WireFormatLite::StringSize(
7541 this->msgbus_endpoint());
7542 }
7543
7544 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
7545 SetCachedSize(cached_size);
7546 return total_size;
7547}
7548
7549void SetMsgBusEndpointRequest::MergeFrom(const ::google::protobuf::Message& from) {
7550// @@protoc_insertion_point(generalized_merge_from_start:dmi.SetMsgBusEndpointRequest)
7551 GOOGLE_DCHECK_NE(&from, this);
7552 const SetMsgBusEndpointRequest* source =
7553 ::google::protobuf::DynamicCastToGenerated<SetMsgBusEndpointRequest>(
7554 &from);
7555 if (source == nullptr) {
7556 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.SetMsgBusEndpointRequest)
7557 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7558 } else {
7559 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.SetMsgBusEndpointRequest)
7560 MergeFrom(*source);
7561 }
7562}
7563
7564void SetMsgBusEndpointRequest::MergeFrom(const SetMsgBusEndpointRequest& from) {
7565// @@protoc_insertion_point(class_specific_merge_from_start:dmi.SetMsgBusEndpointRequest)
7566 GOOGLE_DCHECK_NE(&from, this);
7567 _internal_metadata_.MergeFrom(from._internal_metadata_);
7568 ::google::protobuf::uint32 cached_has_bits = 0;
7569 (void) cached_has_bits;
7570
7571 if (from.msgbus_endpoint().size() > 0) {
7572
7573 msgbus_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.msgbus_endpoint_);
7574 }
7575}
7576
7577void SetMsgBusEndpointRequest::CopyFrom(const ::google::protobuf::Message& from) {
7578// @@protoc_insertion_point(generalized_copy_from_start:dmi.SetMsgBusEndpointRequest)
7579 if (&from == this) return;
7580 Clear();
7581 MergeFrom(from);
7582}
7583
7584void SetMsgBusEndpointRequest::CopyFrom(const SetMsgBusEndpointRequest& from) {
7585// @@protoc_insertion_point(class_specific_copy_from_start:dmi.SetMsgBusEndpointRequest)
7586 if (&from == this) return;
7587 Clear();
7588 MergeFrom(from);
7589}
7590
7591bool SetMsgBusEndpointRequest::IsInitialized() const {
7592 return true;
7593}
7594
7595void SetMsgBusEndpointRequest::Swap(SetMsgBusEndpointRequest* other) {
7596 if (other == this) return;
7597 InternalSwap(other);
7598}
7599void SetMsgBusEndpointRequest::InternalSwap(SetMsgBusEndpointRequest* other) {
7600 using std::swap;
7601 _internal_metadata_.Swap(&other->_internal_metadata_);
7602 msgbus_endpoint_.Swap(&other->msgbus_endpoint_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
7603 GetArenaNoVirtual());
7604}
7605
7606::google::protobuf::Metadata SetMsgBusEndpointRequest::GetMetadata() const {
7607 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
7608 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
7609}
7610
7611
7612// ===================================================================
7613
7614void GetMsgBusEndpointResponse::InitAsDefaultInstance() {
7615}
7616class GetMsgBusEndpointResponse::HasBitSetters {
7617 public:
7618};
7619
7620#if !defined(_MSC_VER) || _MSC_VER >= 1900
7621const int GetMsgBusEndpointResponse::kStatusFieldNumber;
7622const int GetMsgBusEndpointResponse::kReasonFieldNumber;
7623const int GetMsgBusEndpointResponse::kMsgbusEndpointFieldNumber;
7624const int GetMsgBusEndpointResponse::kReasonDetailFieldNumber;
7625#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
7626
7627GetMsgBusEndpointResponse::GetMsgBusEndpointResponse()
7628 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
7629 SharedCtor();
7630 // @@protoc_insertion_point(constructor:dmi.GetMsgBusEndpointResponse)
7631}
7632GetMsgBusEndpointResponse::GetMsgBusEndpointResponse(const GetMsgBusEndpointResponse& from)
7633 : ::google::protobuf::Message(),
7634 _internal_metadata_(nullptr) {
7635 _internal_metadata_.MergeFrom(from._internal_metadata_);
7636 msgbus_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7637 if (from.msgbus_endpoint().size() > 0) {
7638 msgbus_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.msgbus_endpoint_);
7639 }
7640 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7641 if (from.reason_detail().size() > 0) {
7642 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
7643 }
7644 ::memcpy(&status_, &from.status_,
7645 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
7646 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
7647 // @@protoc_insertion_point(copy_constructor:dmi.GetMsgBusEndpointResponse)
7648}
7649
7650void GetMsgBusEndpointResponse::SharedCtor() {
7651 ::google::protobuf::internal::InitSCC(
7652 &scc_info_GetMsgBusEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
7653 msgbus_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7654 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7655 ::memset(&status_, 0, static_cast<size_t>(
7656 reinterpret_cast<char*>(&reason_) -
7657 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
7658}
7659
7660GetMsgBusEndpointResponse::~GetMsgBusEndpointResponse() {
7661 // @@protoc_insertion_point(destructor:dmi.GetMsgBusEndpointResponse)
7662 SharedDtor();
7663}
7664
7665void GetMsgBusEndpointResponse::SharedDtor() {
7666 msgbus_endpoint_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7667 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7668}
7669
7670void GetMsgBusEndpointResponse::SetCachedSize(int size) const {
7671 _cached_size_.Set(size);
7672}
7673const GetMsgBusEndpointResponse& GetMsgBusEndpointResponse::default_instance() {
7674 ::google::protobuf::internal::InitSCC(&::scc_info_GetMsgBusEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
7675 return *internal_default_instance();
7676}
7677
7678
7679void GetMsgBusEndpointResponse::Clear() {
7680// @@protoc_insertion_point(message_clear_start:dmi.GetMsgBusEndpointResponse)
7681 ::google::protobuf::uint32 cached_has_bits = 0;
7682 // Prevent compiler warnings about cached_has_bits being unused
7683 (void) cached_has_bits;
7684
7685 msgbus_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7686 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7687 ::memset(&status_, 0, static_cast<size_t>(
7688 reinterpret_cast<char*>(&reason_) -
7689 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
7690 _internal_metadata_.Clear();
7691}
7692
7693#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7694const char* GetMsgBusEndpointResponse::_InternalParse(const char* begin, const char* end, void* object,
7695 ::google::protobuf::internal::ParseContext* ctx) {
7696 auto msg = static_cast<GetMsgBusEndpointResponse*>(object);
7697 ::google::protobuf::int32 size; (void)size;
7698 int depth; (void)depth;
7699 ::google::protobuf::uint32 tag;
7700 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
7701 auto ptr = begin;
7702 while (ptr < end) {
7703 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
7704 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7705 switch (tag >> 3) {
7706 // .dmi.Status status = 1;
7707 case 1: {
7708 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
7709 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
7710 msg->set_status(static_cast<::dmi::Status>(val));
7711 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7712 break;
7713 }
7714 // .dmi.GetMsgBusEndpointResponse.Reason reason = 2;
7715 case 2: {
7716 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
7717 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
7718 msg->set_reason(static_cast<::dmi::GetMsgBusEndpointResponse_Reason>(val));
7719 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7720 break;
7721 }
7722 // string msgbus_endpoint = 3;
7723 case 3: {
7724 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
7725 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
7726 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7727 ctx->extra_parse_data().SetFieldName("dmi.GetMsgBusEndpointResponse.msgbus_endpoint");
7728 object = msg->mutable_msgbus_endpoint();
7729 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
7730 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
7731 goto string_till_end;
7732 }
7733 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
7734 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
7735 ptr += size;
7736 break;
7737 }
7738 // string reason_detail = 4;
7739 case 4: {
7740 if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual;
7741 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
7742 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7743 ctx->extra_parse_data().SetFieldName("dmi.GetMsgBusEndpointResponse.reason_detail");
7744 object = msg->mutable_reason_detail();
7745 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
7746 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
7747 goto string_till_end;
7748 }
7749 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
7750 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
7751 ptr += size;
7752 break;
7753 }
7754 default: {
7755 handle_unusual:
7756 if ((tag & 7) == 4 || tag == 0) {
7757 ctx->EndGroup(tag);
7758 return ptr;
7759 }
7760 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
7761 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
7762 ptr = res.first;
7763 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
7764 if (res.second) return ptr;
7765 }
7766 } // switch
7767 } // while
7768 return ptr;
7769string_till_end:
7770 static_cast<::std::string*>(object)->clear();
7771 static_cast<::std::string*>(object)->reserve(size);
7772 goto len_delim_till_end;
7773len_delim_till_end:
7774 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
7775 {parser_till_end, object}, size);
7776}
7777#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7778bool GetMsgBusEndpointResponse::MergePartialFromCodedStream(
7779 ::google::protobuf::io::CodedInputStream* input) {
7780#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
7781 ::google::protobuf::uint32 tag;
7782 // @@protoc_insertion_point(parse_start:dmi.GetMsgBusEndpointResponse)
7783 for (;;) {
7784 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
7785 tag = p.first;
7786 if (!p.second) goto handle_unusual;
7787 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7788 // .dmi.Status status = 1;
7789 case 1: {
7790 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
7791 int value = 0;
7792 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7793 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
7794 input, &value)));
7795 set_status(static_cast< ::dmi::Status >(value));
7796 } else {
7797 goto handle_unusual;
7798 }
7799 break;
7800 }
7801
7802 // .dmi.GetMsgBusEndpointResponse.Reason reason = 2;
7803 case 2: {
7804 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
7805 int value = 0;
7806 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7807 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
7808 input, &value)));
7809 set_reason(static_cast< ::dmi::GetMsgBusEndpointResponse_Reason >(value));
7810 } else {
7811 goto handle_unusual;
7812 }
7813 break;
7814 }
7815
7816 // string msgbus_endpoint = 3;
7817 case 3: {
7818 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
7819 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7820 input, this->mutable_msgbus_endpoint()));
7821 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7822 this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()),
7823 ::google::protobuf::internal::WireFormatLite::PARSE,
7824 "dmi.GetMsgBusEndpointResponse.msgbus_endpoint"));
7825 } else {
7826 goto handle_unusual;
7827 }
7828 break;
7829 }
7830
7831 // string reason_detail = 4;
7832 case 4: {
7833 if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
7834 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7835 input, this->mutable_reason_detail()));
7836 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7837 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
7838 ::google::protobuf::internal::WireFormatLite::PARSE,
7839 "dmi.GetMsgBusEndpointResponse.reason_detail"));
7840 } else {
7841 goto handle_unusual;
7842 }
7843 break;
7844 }
7845
7846 default: {
7847 handle_unusual:
7848 if (tag == 0) {
7849 goto success;
7850 }
7851 DO_(::google::protobuf::internal::WireFormat::SkipField(
7852 input, tag, _internal_metadata_.mutable_unknown_fields()));
7853 break;
7854 }
7855 }
7856 }
7857success:
7858 // @@protoc_insertion_point(parse_success:dmi.GetMsgBusEndpointResponse)
7859 return true;
7860failure:
7861 // @@protoc_insertion_point(parse_failure:dmi.GetMsgBusEndpointResponse)
7862 return false;
7863#undef DO_
7864}
7865#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7866
7867void GetMsgBusEndpointResponse::SerializeWithCachedSizes(
7868 ::google::protobuf::io::CodedOutputStream* output) const {
7869 // @@protoc_insertion_point(serialize_start:dmi.GetMsgBusEndpointResponse)
7870 ::google::protobuf::uint32 cached_has_bits = 0;
7871 (void) cached_has_bits;
7872
7873 // .dmi.Status status = 1;
7874 if (this->status() != 0) {
7875 ::google::protobuf::internal::WireFormatLite::WriteEnum(
7876 1, this->status(), output);
7877 }
7878
7879 // .dmi.GetMsgBusEndpointResponse.Reason reason = 2;
7880 if (this->reason() != 0) {
7881 ::google::protobuf::internal::WireFormatLite::WriteEnum(
7882 2, this->reason(), output);
7883 }
7884
7885 // string msgbus_endpoint = 3;
7886 if (this->msgbus_endpoint().size() > 0) {
7887 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7888 this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()),
7889 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7890 "dmi.GetMsgBusEndpointResponse.msgbus_endpoint");
7891 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7892 3, this->msgbus_endpoint(), output);
7893 }
7894
7895 // string reason_detail = 4;
7896 if (this->reason_detail().size() > 0) {
7897 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7898 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
7899 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7900 "dmi.GetMsgBusEndpointResponse.reason_detail");
7901 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7902 4, this->reason_detail(), output);
7903 }
7904
7905 if (_internal_metadata_.have_unknown_fields()) {
7906 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
7907 _internal_metadata_.unknown_fields(), output);
7908 }
7909 // @@protoc_insertion_point(serialize_end:dmi.GetMsgBusEndpointResponse)
7910}
7911
7912::google::protobuf::uint8* GetMsgBusEndpointResponse::InternalSerializeWithCachedSizesToArray(
7913 ::google::protobuf::uint8* target) const {
7914 // @@protoc_insertion_point(serialize_to_array_start:dmi.GetMsgBusEndpointResponse)
7915 ::google::protobuf::uint32 cached_has_bits = 0;
7916 (void) cached_has_bits;
7917
7918 // .dmi.Status status = 1;
7919 if (this->status() != 0) {
7920 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
7921 1, this->status(), target);
7922 }
7923
7924 // .dmi.GetMsgBusEndpointResponse.Reason reason = 2;
7925 if (this->reason() != 0) {
7926 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
7927 2, this->reason(), target);
7928 }
7929
7930 // string msgbus_endpoint = 3;
7931 if (this->msgbus_endpoint().size() > 0) {
7932 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7933 this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()),
7934 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7935 "dmi.GetMsgBusEndpointResponse.msgbus_endpoint");
7936 target =
7937 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7938 3, this->msgbus_endpoint(), target);
7939 }
7940
7941 // string reason_detail = 4;
7942 if (this->reason_detail().size() > 0) {
7943 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7944 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
7945 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7946 "dmi.GetMsgBusEndpointResponse.reason_detail");
7947 target =
7948 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7949 4, this->reason_detail(), target);
7950 }
7951
7952 if (_internal_metadata_.have_unknown_fields()) {
7953 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
7954 _internal_metadata_.unknown_fields(), target);
7955 }
7956 // @@protoc_insertion_point(serialize_to_array_end:dmi.GetMsgBusEndpointResponse)
7957 return target;
7958}
7959
7960size_t GetMsgBusEndpointResponse::ByteSizeLong() const {
7961// @@protoc_insertion_point(message_byte_size_start:dmi.GetMsgBusEndpointResponse)
7962 size_t total_size = 0;
7963
7964 if (_internal_metadata_.have_unknown_fields()) {
7965 total_size +=
7966 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7967 _internal_metadata_.unknown_fields());
7968 }
7969 ::google::protobuf::uint32 cached_has_bits = 0;
7970 // Prevent compiler warnings about cached_has_bits being unused
7971 (void) cached_has_bits;
7972
7973 // string msgbus_endpoint = 3;
7974 if (this->msgbus_endpoint().size() > 0) {
7975 total_size += 1 +
7976 ::google::protobuf::internal::WireFormatLite::StringSize(
7977 this->msgbus_endpoint());
7978 }
7979
7980 // string reason_detail = 4;
7981 if (this->reason_detail().size() > 0) {
7982 total_size += 1 +
7983 ::google::protobuf::internal::WireFormatLite::StringSize(
7984 this->reason_detail());
7985 }
7986
7987 // .dmi.Status status = 1;
7988 if (this->status() != 0) {
7989 total_size += 1 +
7990 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
7991 }
7992
7993 // .dmi.GetMsgBusEndpointResponse.Reason reason = 2;
7994 if (this->reason() != 0) {
7995 total_size += 1 +
7996 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
7997 }
7998
7999 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
8000 SetCachedSize(cached_size);
8001 return total_size;
8002}
8003
8004void GetMsgBusEndpointResponse::MergeFrom(const ::google::protobuf::Message& from) {
8005// @@protoc_insertion_point(generalized_merge_from_start:dmi.GetMsgBusEndpointResponse)
8006 GOOGLE_DCHECK_NE(&from, this);
8007 const GetMsgBusEndpointResponse* source =
8008 ::google::protobuf::DynamicCastToGenerated<GetMsgBusEndpointResponse>(
8009 &from);
8010 if (source == nullptr) {
8011 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.GetMsgBusEndpointResponse)
8012 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
8013 } else {
8014 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.GetMsgBusEndpointResponse)
8015 MergeFrom(*source);
8016 }
8017}
8018
8019void GetMsgBusEndpointResponse::MergeFrom(const GetMsgBusEndpointResponse& from) {
8020// @@protoc_insertion_point(class_specific_merge_from_start:dmi.GetMsgBusEndpointResponse)
8021 GOOGLE_DCHECK_NE(&from, this);
8022 _internal_metadata_.MergeFrom(from._internal_metadata_);
8023 ::google::protobuf::uint32 cached_has_bits = 0;
8024 (void) cached_has_bits;
8025
8026 if (from.msgbus_endpoint().size() > 0) {
8027
8028 msgbus_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.msgbus_endpoint_);
8029 }
8030 if (from.reason_detail().size() > 0) {
8031
8032 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
8033 }
8034 if (from.status() != 0) {
8035 set_status(from.status());
8036 }
8037 if (from.reason() != 0) {
8038 set_reason(from.reason());
8039 }
8040}
8041
8042void GetMsgBusEndpointResponse::CopyFrom(const ::google::protobuf::Message& from) {
8043// @@protoc_insertion_point(generalized_copy_from_start:dmi.GetMsgBusEndpointResponse)
8044 if (&from == this) return;
8045 Clear();
8046 MergeFrom(from);
8047}
8048
8049void GetMsgBusEndpointResponse::CopyFrom(const GetMsgBusEndpointResponse& from) {
8050// @@protoc_insertion_point(class_specific_copy_from_start:dmi.GetMsgBusEndpointResponse)
8051 if (&from == this) return;
8052 Clear();
8053 MergeFrom(from);
8054}
8055
8056bool GetMsgBusEndpointResponse::IsInitialized() const {
8057 return true;
8058}
8059
8060void GetMsgBusEndpointResponse::Swap(GetMsgBusEndpointResponse* other) {
8061 if (other == this) return;
8062 InternalSwap(other);
8063}
8064void GetMsgBusEndpointResponse::InternalSwap(GetMsgBusEndpointResponse* other) {
8065 using std::swap;
8066 _internal_metadata_.Swap(&other->_internal_metadata_);
8067 msgbus_endpoint_.Swap(&other->msgbus_endpoint_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
8068 GetArenaNoVirtual());
8069 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
8070 GetArenaNoVirtual());
8071 swap(status_, other->status_);
8072 swap(reason_, other->reason_);
8073}
8074
8075::google::protobuf::Metadata GetMsgBusEndpointResponse::GetMetadata() const {
8076 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
8077 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
8078}
8079
8080
8081// ===================================================================
8082
8083void EntitiesLogLevel::InitAsDefaultInstance() {
8084}
8085class EntitiesLogLevel::HasBitSetters {
8086 public:
8087};
8088
8089#if !defined(_MSC_VER) || _MSC_VER >= 1900
8090const int EntitiesLogLevel::kLogLevelFieldNumber;
8091const int EntitiesLogLevel::kEntitiesFieldNumber;
8092#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
8093
8094EntitiesLogLevel::EntitiesLogLevel()
8095 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
8096 SharedCtor();
8097 // @@protoc_insertion_point(constructor:dmi.EntitiesLogLevel)
8098}
8099EntitiesLogLevel::EntitiesLogLevel(const EntitiesLogLevel& from)
8100 : ::google::protobuf::Message(),
8101 _internal_metadata_(nullptr),
8102 entities_(from.entities_) {
8103 _internal_metadata_.MergeFrom(from._internal_metadata_);
8104 loglevel_ = from.loglevel_;
8105 // @@protoc_insertion_point(copy_constructor:dmi.EntitiesLogLevel)
8106}
8107
8108void EntitiesLogLevel::SharedCtor() {
8109 ::google::protobuf::internal::InitSCC(
8110 &scc_info_EntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
8111 loglevel_ = 0;
8112}
8113
8114EntitiesLogLevel::~EntitiesLogLevel() {
8115 // @@protoc_insertion_point(destructor:dmi.EntitiesLogLevel)
8116 SharedDtor();
8117}
8118
8119void EntitiesLogLevel::SharedDtor() {
8120}
8121
8122void EntitiesLogLevel::SetCachedSize(int size) const {
8123 _cached_size_.Set(size);
8124}
8125const EntitiesLogLevel& EntitiesLogLevel::default_instance() {
8126 ::google::protobuf::internal::InitSCC(&::scc_info_EntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
8127 return *internal_default_instance();
8128}
8129
8130
8131void EntitiesLogLevel::Clear() {
8132// @@protoc_insertion_point(message_clear_start:dmi.EntitiesLogLevel)
8133 ::google::protobuf::uint32 cached_has_bits = 0;
8134 // Prevent compiler warnings about cached_has_bits being unused
8135 (void) cached_has_bits;
8136
8137 entities_.Clear();
8138 loglevel_ = 0;
8139 _internal_metadata_.Clear();
8140}
8141
8142#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8143const char* EntitiesLogLevel::_InternalParse(const char* begin, const char* end, void* object,
8144 ::google::protobuf::internal::ParseContext* ctx) {
8145 auto msg = static_cast<EntitiesLogLevel*>(object);
8146 ::google::protobuf::int32 size; (void)size;
8147 int depth; (void)depth;
8148 ::google::protobuf::uint32 tag;
8149 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
8150 auto ptr = begin;
8151 while (ptr < end) {
8152 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
8153 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
8154 switch (tag >> 3) {
8155 // .dmi.LogLevel logLevel = 1;
8156 case 1: {
8157 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
8158 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
8159 msg->set_loglevel(static_cast<::dmi::LogLevel>(val));
8160 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
8161 break;
8162 }
8163 // repeated string entities = 2;
8164 case 2: {
8165 if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
8166 do {
8167 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
8168 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
8169 ctx->extra_parse_data().SetFieldName("dmi.EntitiesLogLevel.entities");
8170 object = msg->add_entities();
8171 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
8172 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
8173 goto string_till_end;
8174 }
8175 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
8176 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
8177 ptr += size;
8178 if (ptr >= end) break;
8179 } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1));
8180 break;
8181 }
8182 default: {
8183 handle_unusual:
8184 if ((tag & 7) == 4 || tag == 0) {
8185 ctx->EndGroup(tag);
8186 return ptr;
8187 }
8188 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
8189 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
8190 ptr = res.first;
8191 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
8192 if (res.second) return ptr;
8193 }
8194 } // switch
8195 } // while
8196 return ptr;
8197string_till_end:
8198 static_cast<::std::string*>(object)->clear();
8199 static_cast<::std::string*>(object)->reserve(size);
8200 goto len_delim_till_end;
8201len_delim_till_end:
8202 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
8203 {parser_till_end, object}, size);
8204}
8205#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8206bool EntitiesLogLevel::MergePartialFromCodedStream(
8207 ::google::protobuf::io::CodedInputStream* input) {
8208#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
8209 ::google::protobuf::uint32 tag;
8210 // @@protoc_insertion_point(parse_start:dmi.EntitiesLogLevel)
8211 for (;;) {
8212 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
8213 tag = p.first;
8214 if (!p.second) goto handle_unusual;
8215 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
8216 // .dmi.LogLevel logLevel = 1;
8217 case 1: {
8218 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
8219 int value = 0;
8220 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8221 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
8222 input, &value)));
8223 set_loglevel(static_cast< ::dmi::LogLevel >(value));
8224 } else {
8225 goto handle_unusual;
8226 }
8227 break;
8228 }
8229
8230 // repeated string entities = 2;
8231 case 2: {
8232 if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
8233 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8234 input, this->add_entities()));
8235 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
8236 this->entities(this->entities_size() - 1).data(),
8237 static_cast<int>(this->entities(this->entities_size() - 1).length()),
8238 ::google::protobuf::internal::WireFormatLite::PARSE,
8239 "dmi.EntitiesLogLevel.entities"));
8240 } else {
8241 goto handle_unusual;
8242 }
8243 break;
8244 }
8245
8246 default: {
8247 handle_unusual:
8248 if (tag == 0) {
8249 goto success;
8250 }
8251 DO_(::google::protobuf::internal::WireFormat::SkipField(
8252 input, tag, _internal_metadata_.mutable_unknown_fields()));
8253 break;
8254 }
8255 }
8256 }
8257success:
8258 // @@protoc_insertion_point(parse_success:dmi.EntitiesLogLevel)
8259 return true;
8260failure:
8261 // @@protoc_insertion_point(parse_failure:dmi.EntitiesLogLevel)
8262 return false;
8263#undef DO_
8264}
8265#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8266
8267void EntitiesLogLevel::SerializeWithCachedSizes(
8268 ::google::protobuf::io::CodedOutputStream* output) const {
8269 // @@protoc_insertion_point(serialize_start:dmi.EntitiesLogLevel)
8270 ::google::protobuf::uint32 cached_has_bits = 0;
8271 (void) cached_has_bits;
8272
8273 // .dmi.LogLevel logLevel = 1;
8274 if (this->loglevel() != 0) {
8275 ::google::protobuf::internal::WireFormatLite::WriteEnum(
8276 1, this->loglevel(), output);
8277 }
8278
8279 // repeated string entities = 2;
8280 for (int i = 0, n = this->entities_size(); i < n; i++) {
8281 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
8282 this->entities(i).data(), static_cast<int>(this->entities(i).length()),
8283 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
8284 "dmi.EntitiesLogLevel.entities");
8285 ::google::protobuf::internal::WireFormatLite::WriteString(
8286 2, this->entities(i), output);
8287 }
8288
8289 if (_internal_metadata_.have_unknown_fields()) {
8290 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
8291 _internal_metadata_.unknown_fields(), output);
8292 }
8293 // @@protoc_insertion_point(serialize_end:dmi.EntitiesLogLevel)
8294}
8295
8296::google::protobuf::uint8* EntitiesLogLevel::InternalSerializeWithCachedSizesToArray(
8297 ::google::protobuf::uint8* target) const {
8298 // @@protoc_insertion_point(serialize_to_array_start:dmi.EntitiesLogLevel)
8299 ::google::protobuf::uint32 cached_has_bits = 0;
8300 (void) cached_has_bits;
8301
8302 // .dmi.LogLevel logLevel = 1;
8303 if (this->loglevel() != 0) {
8304 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
8305 1, this->loglevel(), target);
8306 }
8307
8308 // repeated string entities = 2;
8309 for (int i = 0, n = this->entities_size(); i < n; i++) {
8310 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
8311 this->entities(i).data(), static_cast<int>(this->entities(i).length()),
8312 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
8313 "dmi.EntitiesLogLevel.entities");
8314 target = ::google::protobuf::internal::WireFormatLite::
8315 WriteStringToArray(2, this->entities(i), target);
8316 }
8317
8318 if (_internal_metadata_.have_unknown_fields()) {
8319 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
8320 _internal_metadata_.unknown_fields(), target);
8321 }
8322 // @@protoc_insertion_point(serialize_to_array_end:dmi.EntitiesLogLevel)
8323 return target;
8324}
8325
8326size_t EntitiesLogLevel::ByteSizeLong() const {
8327// @@protoc_insertion_point(message_byte_size_start:dmi.EntitiesLogLevel)
8328 size_t total_size = 0;
8329
8330 if (_internal_metadata_.have_unknown_fields()) {
8331 total_size +=
8332 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
8333 _internal_metadata_.unknown_fields());
8334 }
8335 ::google::protobuf::uint32 cached_has_bits = 0;
8336 // Prevent compiler warnings about cached_has_bits being unused
8337 (void) cached_has_bits;
8338
8339 // repeated string entities = 2;
8340 total_size += 1 *
8341 ::google::protobuf::internal::FromIntSize(this->entities_size());
8342 for (int i = 0, n = this->entities_size(); i < n; i++) {
8343 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
8344 this->entities(i));
8345 }
8346
8347 // .dmi.LogLevel logLevel = 1;
8348 if (this->loglevel() != 0) {
8349 total_size += 1 +
8350 ::google::protobuf::internal::WireFormatLite::EnumSize(this->loglevel());
8351 }
8352
8353 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
8354 SetCachedSize(cached_size);
8355 return total_size;
8356}
8357
8358void EntitiesLogLevel::MergeFrom(const ::google::protobuf::Message& from) {
8359// @@protoc_insertion_point(generalized_merge_from_start:dmi.EntitiesLogLevel)
8360 GOOGLE_DCHECK_NE(&from, this);
8361 const EntitiesLogLevel* source =
8362 ::google::protobuf::DynamicCastToGenerated<EntitiesLogLevel>(
8363 &from);
8364 if (source == nullptr) {
8365 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.EntitiesLogLevel)
8366 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
8367 } else {
8368 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.EntitiesLogLevel)
8369 MergeFrom(*source);
8370 }
8371}
8372
8373void EntitiesLogLevel::MergeFrom(const EntitiesLogLevel& from) {
8374// @@protoc_insertion_point(class_specific_merge_from_start:dmi.EntitiesLogLevel)
8375 GOOGLE_DCHECK_NE(&from, this);
8376 _internal_metadata_.MergeFrom(from._internal_metadata_);
8377 ::google::protobuf::uint32 cached_has_bits = 0;
8378 (void) cached_has_bits;
8379
8380 entities_.MergeFrom(from.entities_);
8381 if (from.loglevel() != 0) {
8382 set_loglevel(from.loglevel());
8383 }
8384}
8385
8386void EntitiesLogLevel::CopyFrom(const ::google::protobuf::Message& from) {
8387// @@protoc_insertion_point(generalized_copy_from_start:dmi.EntitiesLogLevel)
8388 if (&from == this) return;
8389 Clear();
8390 MergeFrom(from);
8391}
8392
8393void EntitiesLogLevel::CopyFrom(const EntitiesLogLevel& from) {
8394// @@protoc_insertion_point(class_specific_copy_from_start:dmi.EntitiesLogLevel)
8395 if (&from == this) return;
8396 Clear();
8397 MergeFrom(from);
8398}
8399
8400bool EntitiesLogLevel::IsInitialized() const {
8401 return true;
8402}
8403
8404void EntitiesLogLevel::Swap(EntitiesLogLevel* other) {
8405 if (other == this) return;
8406 InternalSwap(other);
8407}
8408void EntitiesLogLevel::InternalSwap(EntitiesLogLevel* other) {
8409 using std::swap;
8410 _internal_metadata_.Swap(&other->_internal_metadata_);
8411 entities_.InternalSwap(CastToBase(&other->entities_));
8412 swap(loglevel_, other->loglevel_);
8413}
8414
8415::google::protobuf::Metadata EntitiesLogLevel::GetMetadata() const {
8416 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
8417 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
8418}
8419
8420
8421// ===================================================================
8422
8423void SetLogLevelRequest::InitAsDefaultInstance() {
8424 ::dmi::_SetLogLevelRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
8425 ::dmi::Uuid::internal_default_instance());
8426}
8427class SetLogLevelRequest::HasBitSetters {
8428 public:
8429 static const ::dmi::Uuid& device_uuid(const SetLogLevelRequest* msg);
8430};
8431
8432const ::dmi::Uuid&
8433SetLogLevelRequest::HasBitSetters::device_uuid(const SetLogLevelRequest* msg) {
8434 return *msg->device_uuid_;
8435}
8436void SetLogLevelRequest::clear_device_uuid() {
8437 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
8438 delete device_uuid_;
8439 }
8440 device_uuid_ = nullptr;
8441}
8442#if !defined(_MSC_VER) || _MSC_VER >= 1900
8443const int SetLogLevelRequest::kDeviceUuidFieldNumber;
8444const int SetLogLevelRequest::kLoglevelsFieldNumber;
8445#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
8446
8447SetLogLevelRequest::SetLogLevelRequest()
8448 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
8449 SharedCtor();
8450 // @@protoc_insertion_point(constructor:dmi.SetLogLevelRequest)
8451}
8452SetLogLevelRequest::SetLogLevelRequest(const SetLogLevelRequest& from)
8453 : ::google::protobuf::Message(),
8454 _internal_metadata_(nullptr),
8455 loglevels_(from.loglevels_) {
8456 _internal_metadata_.MergeFrom(from._internal_metadata_);
8457 if (from.has_device_uuid()) {
8458 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
8459 } else {
8460 device_uuid_ = nullptr;
8461 }
8462 // @@protoc_insertion_point(copy_constructor:dmi.SetLogLevelRequest)
8463}
8464
8465void SetLogLevelRequest::SharedCtor() {
8466 ::google::protobuf::internal::InitSCC(
8467 &scc_info_SetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
8468 device_uuid_ = nullptr;
8469}
8470
8471SetLogLevelRequest::~SetLogLevelRequest() {
8472 // @@protoc_insertion_point(destructor:dmi.SetLogLevelRequest)
8473 SharedDtor();
8474}
8475
8476void SetLogLevelRequest::SharedDtor() {
8477 if (this != internal_default_instance()) delete device_uuid_;
8478}
8479
8480void SetLogLevelRequest::SetCachedSize(int size) const {
8481 _cached_size_.Set(size);
8482}
8483const SetLogLevelRequest& SetLogLevelRequest::default_instance() {
8484 ::google::protobuf::internal::InitSCC(&::scc_info_SetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
8485 return *internal_default_instance();
8486}
8487
8488
8489void SetLogLevelRequest::Clear() {
8490// @@protoc_insertion_point(message_clear_start:dmi.SetLogLevelRequest)
8491 ::google::protobuf::uint32 cached_has_bits = 0;
8492 // Prevent compiler warnings about cached_has_bits being unused
8493 (void) cached_has_bits;
8494
8495 loglevels_.Clear();
8496 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
8497 delete device_uuid_;
8498 }
8499 device_uuid_ = nullptr;
8500 _internal_metadata_.Clear();
8501}
8502
8503#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8504const char* SetLogLevelRequest::_InternalParse(const char* begin, const char* end, void* object,
8505 ::google::protobuf::internal::ParseContext* ctx) {
8506 auto msg = static_cast<SetLogLevelRequest*>(object);
8507 ::google::protobuf::int32 size; (void)size;
8508 int depth; (void)depth;
8509 ::google::protobuf::uint32 tag;
8510 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
8511 auto ptr = begin;
8512 while (ptr < end) {
8513 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
8514 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
8515 switch (tag >> 3) {
8516 // .dmi.Uuid device_uuid = 1;
8517 case 1: {
8518 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
8519 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
8520 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
8521 parser_till_end = ::dmi::Uuid::_InternalParse;
8522 object = msg->mutable_device_uuid();
8523 if (size > end - ptr) goto len_delim_till_end;
8524 ptr += size;
8525 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
8526 {parser_till_end, object}, ptr - size, ptr));
8527 break;
8528 }
8529 // repeated .dmi.EntitiesLogLevel loglevels = 2;
8530 case 2: {
8531 if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
8532 do {
8533 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
8534 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
8535 parser_till_end = ::dmi::EntitiesLogLevel::_InternalParse;
8536 object = msg->add_loglevels();
8537 if (size > end - ptr) goto len_delim_till_end;
8538 ptr += size;
8539 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
8540 {parser_till_end, object}, ptr - size, ptr));
8541 if (ptr >= end) break;
8542 } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1));
8543 break;
8544 }
8545 default: {
8546 handle_unusual:
8547 if ((tag & 7) == 4 || tag == 0) {
8548 ctx->EndGroup(tag);
8549 return ptr;
8550 }
8551 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
8552 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
8553 ptr = res.first;
8554 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
8555 if (res.second) return ptr;
8556 }
8557 } // switch
8558 } // while
8559 return ptr;
8560len_delim_till_end:
8561 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
8562 {parser_till_end, object}, size);
8563}
8564#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8565bool SetLogLevelRequest::MergePartialFromCodedStream(
8566 ::google::protobuf::io::CodedInputStream* input) {
8567#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
8568 ::google::protobuf::uint32 tag;
8569 // @@protoc_insertion_point(parse_start:dmi.SetLogLevelRequest)
8570 for (;;) {
8571 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
8572 tag = p.first;
8573 if (!p.second) goto handle_unusual;
8574 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
8575 // .dmi.Uuid device_uuid = 1;
8576 case 1: {
8577 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
8578 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
8579 input, mutable_device_uuid()));
8580 } else {
8581 goto handle_unusual;
8582 }
8583 break;
8584 }
8585
8586 // repeated .dmi.EntitiesLogLevel loglevels = 2;
8587 case 2: {
8588 if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
8589 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
8590 input, add_loglevels()));
8591 } else {
8592 goto handle_unusual;
8593 }
8594 break;
8595 }
8596
8597 default: {
8598 handle_unusual:
8599 if (tag == 0) {
8600 goto success;
8601 }
8602 DO_(::google::protobuf::internal::WireFormat::SkipField(
8603 input, tag, _internal_metadata_.mutable_unknown_fields()));
8604 break;
8605 }
8606 }
8607 }
8608success:
8609 // @@protoc_insertion_point(parse_success:dmi.SetLogLevelRequest)
8610 return true;
8611failure:
8612 // @@protoc_insertion_point(parse_failure:dmi.SetLogLevelRequest)
8613 return false;
8614#undef DO_
8615}
8616#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8617
8618void SetLogLevelRequest::SerializeWithCachedSizes(
8619 ::google::protobuf::io::CodedOutputStream* output) const {
8620 // @@protoc_insertion_point(serialize_start:dmi.SetLogLevelRequest)
8621 ::google::protobuf::uint32 cached_has_bits = 0;
8622 (void) cached_has_bits;
8623
8624 // .dmi.Uuid device_uuid = 1;
8625 if (this->has_device_uuid()) {
8626 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
8627 1, HasBitSetters::device_uuid(this), output);
8628 }
8629
8630 // repeated .dmi.EntitiesLogLevel loglevels = 2;
8631 for (unsigned int i = 0,
8632 n = static_cast<unsigned int>(this->loglevels_size()); i < n; i++) {
8633 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
8634 2,
8635 this->loglevels(static_cast<int>(i)),
8636 output);
8637 }
8638
8639 if (_internal_metadata_.have_unknown_fields()) {
8640 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
8641 _internal_metadata_.unknown_fields(), output);
8642 }
8643 // @@protoc_insertion_point(serialize_end:dmi.SetLogLevelRequest)
8644}
8645
8646::google::protobuf::uint8* SetLogLevelRequest::InternalSerializeWithCachedSizesToArray(
8647 ::google::protobuf::uint8* target) const {
8648 // @@protoc_insertion_point(serialize_to_array_start:dmi.SetLogLevelRequest)
8649 ::google::protobuf::uint32 cached_has_bits = 0;
8650 (void) cached_has_bits;
8651
8652 // .dmi.Uuid device_uuid = 1;
8653 if (this->has_device_uuid()) {
8654 target = ::google::protobuf::internal::WireFormatLite::
8655 InternalWriteMessageToArray(
8656 1, HasBitSetters::device_uuid(this), target);
8657 }
8658
8659 // repeated .dmi.EntitiesLogLevel loglevels = 2;
8660 for (unsigned int i = 0,
8661 n = static_cast<unsigned int>(this->loglevels_size()); i < n; i++) {
8662 target = ::google::protobuf::internal::WireFormatLite::
8663 InternalWriteMessageToArray(
8664 2, this->loglevels(static_cast<int>(i)), target);
8665 }
8666
8667 if (_internal_metadata_.have_unknown_fields()) {
8668 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
8669 _internal_metadata_.unknown_fields(), target);
8670 }
8671 // @@protoc_insertion_point(serialize_to_array_end:dmi.SetLogLevelRequest)
8672 return target;
8673}
8674
8675size_t SetLogLevelRequest::ByteSizeLong() const {
8676// @@protoc_insertion_point(message_byte_size_start:dmi.SetLogLevelRequest)
8677 size_t total_size = 0;
8678
8679 if (_internal_metadata_.have_unknown_fields()) {
8680 total_size +=
8681 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
8682 _internal_metadata_.unknown_fields());
8683 }
8684 ::google::protobuf::uint32 cached_has_bits = 0;
8685 // Prevent compiler warnings about cached_has_bits being unused
8686 (void) cached_has_bits;
8687
8688 // repeated .dmi.EntitiesLogLevel loglevels = 2;
8689 {
8690 unsigned int count = static_cast<unsigned int>(this->loglevels_size());
8691 total_size += 1UL * count;
8692 for (unsigned int i = 0; i < count; i++) {
8693 total_size +=
8694 ::google::protobuf::internal::WireFormatLite::MessageSize(
8695 this->loglevels(static_cast<int>(i)));
8696 }
8697 }
8698
8699 // .dmi.Uuid device_uuid = 1;
8700 if (this->has_device_uuid()) {
8701 total_size += 1 +
8702 ::google::protobuf::internal::WireFormatLite::MessageSize(
8703 *device_uuid_);
8704 }
8705
8706 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
8707 SetCachedSize(cached_size);
8708 return total_size;
8709}
8710
8711void SetLogLevelRequest::MergeFrom(const ::google::protobuf::Message& from) {
8712// @@protoc_insertion_point(generalized_merge_from_start:dmi.SetLogLevelRequest)
8713 GOOGLE_DCHECK_NE(&from, this);
8714 const SetLogLevelRequest* source =
8715 ::google::protobuf::DynamicCastToGenerated<SetLogLevelRequest>(
8716 &from);
8717 if (source == nullptr) {
8718 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.SetLogLevelRequest)
8719 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
8720 } else {
8721 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.SetLogLevelRequest)
8722 MergeFrom(*source);
8723 }
8724}
8725
8726void SetLogLevelRequest::MergeFrom(const SetLogLevelRequest& from) {
8727// @@protoc_insertion_point(class_specific_merge_from_start:dmi.SetLogLevelRequest)
8728 GOOGLE_DCHECK_NE(&from, this);
8729 _internal_metadata_.MergeFrom(from._internal_metadata_);
8730 ::google::protobuf::uint32 cached_has_bits = 0;
8731 (void) cached_has_bits;
8732
8733 loglevels_.MergeFrom(from.loglevels_);
8734 if (from.has_device_uuid()) {
8735 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
8736 }
8737}
8738
8739void SetLogLevelRequest::CopyFrom(const ::google::protobuf::Message& from) {
8740// @@protoc_insertion_point(generalized_copy_from_start:dmi.SetLogLevelRequest)
8741 if (&from == this) return;
8742 Clear();
8743 MergeFrom(from);
8744}
8745
8746void SetLogLevelRequest::CopyFrom(const SetLogLevelRequest& from) {
8747// @@protoc_insertion_point(class_specific_copy_from_start:dmi.SetLogLevelRequest)
8748 if (&from == this) return;
8749 Clear();
8750 MergeFrom(from);
8751}
8752
8753bool SetLogLevelRequest::IsInitialized() const {
8754 return true;
8755}
8756
8757void SetLogLevelRequest::Swap(SetLogLevelRequest* other) {
8758 if (other == this) return;
8759 InternalSwap(other);
8760}
8761void SetLogLevelRequest::InternalSwap(SetLogLevelRequest* other) {
8762 using std::swap;
8763 _internal_metadata_.Swap(&other->_internal_metadata_);
8764 CastToBase(&loglevels_)->InternalSwap(CastToBase(&other->loglevels_));
8765 swap(device_uuid_, other->device_uuid_);
8766}
8767
8768::google::protobuf::Metadata SetLogLevelRequest::GetMetadata() const {
8769 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
8770 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
8771}
8772
8773
8774// ===================================================================
8775
8776void SetLogLevelResponse::InitAsDefaultInstance() {
8777 ::dmi::_SetLogLevelResponse_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
8778 ::dmi::Uuid::internal_default_instance());
8779}
8780class SetLogLevelResponse::HasBitSetters {
8781 public:
8782 static const ::dmi::Uuid& device_uuid(const SetLogLevelResponse* msg);
8783};
8784
8785const ::dmi::Uuid&
8786SetLogLevelResponse::HasBitSetters::device_uuid(const SetLogLevelResponse* msg) {
8787 return *msg->device_uuid_;
8788}
8789void SetLogLevelResponse::clear_device_uuid() {
8790 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
8791 delete device_uuid_;
8792 }
8793 device_uuid_ = nullptr;
8794}
8795#if !defined(_MSC_VER) || _MSC_VER >= 1900
8796const int SetLogLevelResponse::kDeviceUuidFieldNumber;
8797const int SetLogLevelResponse::kStatusFieldNumber;
8798const int SetLogLevelResponse::kReasonFieldNumber;
8799const int SetLogLevelResponse::kReasonDetailFieldNumber;
8800#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
8801
8802SetLogLevelResponse::SetLogLevelResponse()
8803 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
8804 SharedCtor();
8805 // @@protoc_insertion_point(constructor:dmi.SetLogLevelResponse)
8806}
8807SetLogLevelResponse::SetLogLevelResponse(const SetLogLevelResponse& from)
8808 : ::google::protobuf::Message(),
8809 _internal_metadata_(nullptr) {
8810 _internal_metadata_.MergeFrom(from._internal_metadata_);
8811 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8812 if (from.reason_detail().size() > 0) {
8813 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
8814 }
8815 if (from.has_device_uuid()) {
8816 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
8817 } else {
8818 device_uuid_ = nullptr;
8819 }
8820 ::memcpy(&status_, &from.status_,
8821 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
8822 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
8823 // @@protoc_insertion_point(copy_constructor:dmi.SetLogLevelResponse)
8824}
8825
8826void SetLogLevelResponse::SharedCtor() {
8827 ::google::protobuf::internal::InitSCC(
8828 &scc_info_SetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
8829 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8830 ::memset(&device_uuid_, 0, static_cast<size_t>(
8831 reinterpret_cast<char*>(&reason_) -
8832 reinterpret_cast<char*>(&device_uuid_)) + sizeof(reason_));
8833}
8834
8835SetLogLevelResponse::~SetLogLevelResponse() {
8836 // @@protoc_insertion_point(destructor:dmi.SetLogLevelResponse)
8837 SharedDtor();
8838}
8839
8840void SetLogLevelResponse::SharedDtor() {
8841 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8842 if (this != internal_default_instance()) delete device_uuid_;
8843}
8844
8845void SetLogLevelResponse::SetCachedSize(int size) const {
8846 _cached_size_.Set(size);
8847}
8848const SetLogLevelResponse& SetLogLevelResponse::default_instance() {
8849 ::google::protobuf::internal::InitSCC(&::scc_info_SetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
8850 return *internal_default_instance();
8851}
8852
8853
8854void SetLogLevelResponse::Clear() {
8855// @@protoc_insertion_point(message_clear_start:dmi.SetLogLevelResponse)
8856 ::google::protobuf::uint32 cached_has_bits = 0;
8857 // Prevent compiler warnings about cached_has_bits being unused
8858 (void) cached_has_bits;
8859
8860 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8861 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
8862 delete device_uuid_;
8863 }
8864 device_uuid_ = nullptr;
8865 ::memset(&status_, 0, static_cast<size_t>(
8866 reinterpret_cast<char*>(&reason_) -
8867 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
8868 _internal_metadata_.Clear();
8869}
8870
8871#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8872const char* SetLogLevelResponse::_InternalParse(const char* begin, const char* end, void* object,
8873 ::google::protobuf::internal::ParseContext* ctx) {
8874 auto msg = static_cast<SetLogLevelResponse*>(object);
8875 ::google::protobuf::int32 size; (void)size;
8876 int depth; (void)depth;
8877 ::google::protobuf::uint32 tag;
8878 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
8879 auto ptr = begin;
8880 while (ptr < end) {
8881 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
8882 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
8883 switch (tag >> 3) {
8884 // .dmi.Uuid device_uuid = 1;
8885 case 1: {
8886 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
8887 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
8888 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
8889 parser_till_end = ::dmi::Uuid::_InternalParse;
8890 object = msg->mutable_device_uuid();
8891 if (size > end - ptr) goto len_delim_till_end;
8892 ptr += size;
8893 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
8894 {parser_till_end, object}, ptr - size, ptr));
8895 break;
8896 }
8897 // .dmi.Status status = 2;
8898 case 2: {
8899 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
8900 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
8901 msg->set_status(static_cast<::dmi::Status>(val));
8902 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
8903 break;
8904 }
8905 // .dmi.SetLogLevelResponse.Reason reason = 3;
8906 case 3: {
8907 if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual;
8908 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
8909 msg->set_reason(static_cast<::dmi::SetLogLevelResponse_Reason>(val));
8910 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
8911 break;
8912 }
8913 // string reason_detail = 4;
8914 case 4: {
8915 if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual;
8916 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
8917 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
8918 ctx->extra_parse_data().SetFieldName("dmi.SetLogLevelResponse.reason_detail");
8919 object = msg->mutable_reason_detail();
8920 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
8921 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
8922 goto string_till_end;
8923 }
8924 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
8925 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
8926 ptr += size;
8927 break;
8928 }
8929 default: {
8930 handle_unusual:
8931 if ((tag & 7) == 4 || tag == 0) {
8932 ctx->EndGroup(tag);
8933 return ptr;
8934 }
8935 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
8936 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
8937 ptr = res.first;
8938 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
8939 if (res.second) return ptr;
8940 }
8941 } // switch
8942 } // while
8943 return ptr;
8944string_till_end:
8945 static_cast<::std::string*>(object)->clear();
8946 static_cast<::std::string*>(object)->reserve(size);
8947 goto len_delim_till_end;
8948len_delim_till_end:
8949 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
8950 {parser_till_end, object}, size);
8951}
8952#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8953bool SetLogLevelResponse::MergePartialFromCodedStream(
8954 ::google::protobuf::io::CodedInputStream* input) {
8955#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
8956 ::google::protobuf::uint32 tag;
8957 // @@protoc_insertion_point(parse_start:dmi.SetLogLevelResponse)
8958 for (;;) {
8959 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
8960 tag = p.first;
8961 if (!p.second) goto handle_unusual;
8962 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
8963 // .dmi.Uuid device_uuid = 1;
8964 case 1: {
8965 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
8966 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
8967 input, mutable_device_uuid()));
8968 } else {
8969 goto handle_unusual;
8970 }
8971 break;
8972 }
8973
8974 // .dmi.Status status = 2;
8975 case 2: {
8976 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
8977 int value = 0;
8978 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8979 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
8980 input, &value)));
8981 set_status(static_cast< ::dmi::Status >(value));
8982 } else {
8983 goto handle_unusual;
8984 }
8985 break;
8986 }
8987
8988 // .dmi.SetLogLevelResponse.Reason reason = 3;
8989 case 3: {
8990 if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) {
8991 int value = 0;
8992 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8993 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
8994 input, &value)));
8995 set_reason(static_cast< ::dmi::SetLogLevelResponse_Reason >(value));
8996 } else {
8997 goto handle_unusual;
8998 }
8999 break;
9000 }
9001
9002 // string reason_detail = 4;
9003 case 4: {
9004 if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
9005 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
9006 input, this->mutable_reason_detail()));
9007 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
9008 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
9009 ::google::protobuf::internal::WireFormatLite::PARSE,
9010 "dmi.SetLogLevelResponse.reason_detail"));
9011 } else {
9012 goto handle_unusual;
9013 }
9014 break;
9015 }
9016
9017 default: {
9018 handle_unusual:
9019 if (tag == 0) {
9020 goto success;
9021 }
9022 DO_(::google::protobuf::internal::WireFormat::SkipField(
9023 input, tag, _internal_metadata_.mutable_unknown_fields()));
9024 break;
9025 }
9026 }
9027 }
9028success:
9029 // @@protoc_insertion_point(parse_success:dmi.SetLogLevelResponse)
9030 return true;
9031failure:
9032 // @@protoc_insertion_point(parse_failure:dmi.SetLogLevelResponse)
9033 return false;
9034#undef DO_
9035}
9036#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
9037
9038void SetLogLevelResponse::SerializeWithCachedSizes(
9039 ::google::protobuf::io::CodedOutputStream* output) const {
9040 // @@protoc_insertion_point(serialize_start:dmi.SetLogLevelResponse)
9041 ::google::protobuf::uint32 cached_has_bits = 0;
9042 (void) cached_has_bits;
9043
9044 // .dmi.Uuid device_uuid = 1;
9045 if (this->has_device_uuid()) {
9046 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9047 1, HasBitSetters::device_uuid(this), output);
9048 }
9049
9050 // .dmi.Status status = 2;
9051 if (this->status() != 0) {
9052 ::google::protobuf::internal::WireFormatLite::WriteEnum(
9053 2, this->status(), output);
9054 }
9055
9056 // .dmi.SetLogLevelResponse.Reason reason = 3;
9057 if (this->reason() != 0) {
9058 ::google::protobuf::internal::WireFormatLite::WriteEnum(
9059 3, this->reason(), output);
9060 }
9061
9062 // string reason_detail = 4;
9063 if (this->reason_detail().size() > 0) {
9064 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
9065 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
9066 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
9067 "dmi.SetLogLevelResponse.reason_detail");
9068 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
9069 4, this->reason_detail(), output);
9070 }
9071
9072 if (_internal_metadata_.have_unknown_fields()) {
9073 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
9074 _internal_metadata_.unknown_fields(), output);
9075 }
9076 // @@protoc_insertion_point(serialize_end:dmi.SetLogLevelResponse)
9077}
9078
9079::google::protobuf::uint8* SetLogLevelResponse::InternalSerializeWithCachedSizesToArray(
9080 ::google::protobuf::uint8* target) const {
9081 // @@protoc_insertion_point(serialize_to_array_start:dmi.SetLogLevelResponse)
9082 ::google::protobuf::uint32 cached_has_bits = 0;
9083 (void) cached_has_bits;
9084
9085 // .dmi.Uuid device_uuid = 1;
9086 if (this->has_device_uuid()) {
9087 target = ::google::protobuf::internal::WireFormatLite::
9088 InternalWriteMessageToArray(
9089 1, HasBitSetters::device_uuid(this), target);
9090 }
9091
9092 // .dmi.Status status = 2;
9093 if (this->status() != 0) {
9094 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
9095 2, this->status(), target);
9096 }
9097
9098 // .dmi.SetLogLevelResponse.Reason reason = 3;
9099 if (this->reason() != 0) {
9100 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
9101 3, this->reason(), target);
9102 }
9103
9104 // string reason_detail = 4;
9105 if (this->reason_detail().size() > 0) {
9106 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
9107 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
9108 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
9109 "dmi.SetLogLevelResponse.reason_detail");
9110 target =
9111 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
9112 4, this->reason_detail(), target);
9113 }
9114
9115 if (_internal_metadata_.have_unknown_fields()) {
9116 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
9117 _internal_metadata_.unknown_fields(), target);
9118 }
9119 // @@protoc_insertion_point(serialize_to_array_end:dmi.SetLogLevelResponse)
9120 return target;
9121}
9122
9123size_t SetLogLevelResponse::ByteSizeLong() const {
9124// @@protoc_insertion_point(message_byte_size_start:dmi.SetLogLevelResponse)
9125 size_t total_size = 0;
9126
9127 if (_internal_metadata_.have_unknown_fields()) {
9128 total_size +=
9129 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
9130 _internal_metadata_.unknown_fields());
9131 }
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 // string reason_detail = 4;
9137 if (this->reason_detail().size() > 0) {
9138 total_size += 1 +
9139 ::google::protobuf::internal::WireFormatLite::StringSize(
9140 this->reason_detail());
9141 }
9142
9143 // .dmi.Uuid device_uuid = 1;
9144 if (this->has_device_uuid()) {
9145 total_size += 1 +
9146 ::google::protobuf::internal::WireFormatLite::MessageSize(
9147 *device_uuid_);
9148 }
9149
9150 // .dmi.Status status = 2;
9151 if (this->status() != 0) {
9152 total_size += 1 +
9153 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
9154 }
9155
9156 // .dmi.SetLogLevelResponse.Reason reason = 3;
9157 if (this->reason() != 0) {
9158 total_size += 1 +
9159 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
9160 }
9161
9162 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
9163 SetCachedSize(cached_size);
9164 return total_size;
9165}
9166
9167void SetLogLevelResponse::MergeFrom(const ::google::protobuf::Message& from) {
9168// @@protoc_insertion_point(generalized_merge_from_start:dmi.SetLogLevelResponse)
9169 GOOGLE_DCHECK_NE(&from, this);
9170 const SetLogLevelResponse* source =
9171 ::google::protobuf::DynamicCastToGenerated<SetLogLevelResponse>(
9172 &from);
9173 if (source == nullptr) {
9174 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.SetLogLevelResponse)
9175 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
9176 } else {
9177 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.SetLogLevelResponse)
9178 MergeFrom(*source);
9179 }
9180}
9181
9182void SetLogLevelResponse::MergeFrom(const SetLogLevelResponse& from) {
9183// @@protoc_insertion_point(class_specific_merge_from_start:dmi.SetLogLevelResponse)
9184 GOOGLE_DCHECK_NE(&from, this);
9185 _internal_metadata_.MergeFrom(from._internal_metadata_);
9186 ::google::protobuf::uint32 cached_has_bits = 0;
9187 (void) cached_has_bits;
9188
9189 if (from.reason_detail().size() > 0) {
9190
9191 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
9192 }
9193 if (from.has_device_uuid()) {
9194 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
9195 }
9196 if (from.status() != 0) {
9197 set_status(from.status());
9198 }
9199 if (from.reason() != 0) {
9200 set_reason(from.reason());
9201 }
9202}
9203
9204void SetLogLevelResponse::CopyFrom(const ::google::protobuf::Message& from) {
9205// @@protoc_insertion_point(generalized_copy_from_start:dmi.SetLogLevelResponse)
9206 if (&from == this) return;
9207 Clear();
9208 MergeFrom(from);
9209}
9210
9211void SetLogLevelResponse::CopyFrom(const SetLogLevelResponse& from) {
9212// @@protoc_insertion_point(class_specific_copy_from_start:dmi.SetLogLevelResponse)
9213 if (&from == this) return;
9214 Clear();
9215 MergeFrom(from);
9216}
9217
9218bool SetLogLevelResponse::IsInitialized() const {
9219 return true;
9220}
9221
9222void SetLogLevelResponse::Swap(SetLogLevelResponse* other) {
9223 if (other == this) return;
9224 InternalSwap(other);
9225}
9226void SetLogLevelResponse::InternalSwap(SetLogLevelResponse* other) {
9227 using std::swap;
9228 _internal_metadata_.Swap(&other->_internal_metadata_);
9229 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
9230 GetArenaNoVirtual());
9231 swap(device_uuid_, other->device_uuid_);
9232 swap(status_, other->status_);
9233 swap(reason_, other->reason_);
9234}
9235
9236::google::protobuf::Metadata SetLogLevelResponse::GetMetadata() const {
9237 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
9238 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
9239}
9240
9241
9242// ===================================================================
9243
9244void GetLogLevelRequest::InitAsDefaultInstance() {
9245 ::dmi::_GetLogLevelRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
9246 ::dmi::Uuid::internal_default_instance());
9247}
9248class GetLogLevelRequest::HasBitSetters {
9249 public:
9250 static const ::dmi::Uuid& device_uuid(const GetLogLevelRequest* msg);
9251};
9252
9253const ::dmi::Uuid&
9254GetLogLevelRequest::HasBitSetters::device_uuid(const GetLogLevelRequest* msg) {
9255 return *msg->device_uuid_;
9256}
9257void GetLogLevelRequest::clear_device_uuid() {
9258 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
9259 delete device_uuid_;
9260 }
9261 device_uuid_ = nullptr;
9262}
9263#if !defined(_MSC_VER) || _MSC_VER >= 1900
9264const int GetLogLevelRequest::kDeviceUuidFieldNumber;
9265const int GetLogLevelRequest::kEntitiesFieldNumber;
9266#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
9267
9268GetLogLevelRequest::GetLogLevelRequest()
9269 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
9270 SharedCtor();
9271 // @@protoc_insertion_point(constructor:dmi.GetLogLevelRequest)
9272}
9273GetLogLevelRequest::GetLogLevelRequest(const GetLogLevelRequest& from)
9274 : ::google::protobuf::Message(),
9275 _internal_metadata_(nullptr),
9276 entities_(from.entities_) {
9277 _internal_metadata_.MergeFrom(from._internal_metadata_);
9278 if (from.has_device_uuid()) {
9279 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
9280 } else {
9281 device_uuid_ = nullptr;
9282 }
9283 // @@protoc_insertion_point(copy_constructor:dmi.GetLogLevelRequest)
9284}
9285
9286void GetLogLevelRequest::SharedCtor() {
9287 ::google::protobuf::internal::InitSCC(
9288 &scc_info_GetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
9289 device_uuid_ = nullptr;
9290}
9291
9292GetLogLevelRequest::~GetLogLevelRequest() {
9293 // @@protoc_insertion_point(destructor:dmi.GetLogLevelRequest)
9294 SharedDtor();
9295}
9296
9297void GetLogLevelRequest::SharedDtor() {
9298 if (this != internal_default_instance()) delete device_uuid_;
9299}
9300
9301void GetLogLevelRequest::SetCachedSize(int size) const {
9302 _cached_size_.Set(size);
9303}
9304const GetLogLevelRequest& GetLogLevelRequest::default_instance() {
9305 ::google::protobuf::internal::InitSCC(&::scc_info_GetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
9306 return *internal_default_instance();
9307}
9308
9309
9310void GetLogLevelRequest::Clear() {
9311// @@protoc_insertion_point(message_clear_start:dmi.GetLogLevelRequest)
9312 ::google::protobuf::uint32 cached_has_bits = 0;
9313 // Prevent compiler warnings about cached_has_bits being unused
9314 (void) cached_has_bits;
9315
9316 entities_.Clear();
9317 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
9318 delete device_uuid_;
9319 }
9320 device_uuid_ = nullptr;
9321 _internal_metadata_.Clear();
9322}
9323
9324#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
9325const char* GetLogLevelRequest::_InternalParse(const char* begin, const char* end, void* object,
9326 ::google::protobuf::internal::ParseContext* ctx) {
9327 auto msg = static_cast<GetLogLevelRequest*>(object);
9328 ::google::protobuf::int32 size; (void)size;
9329 int depth; (void)depth;
9330 ::google::protobuf::uint32 tag;
9331 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
9332 auto ptr = begin;
9333 while (ptr < end) {
9334 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
9335 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
9336 switch (tag >> 3) {
9337 // .dmi.Uuid device_uuid = 1;
9338 case 1: {
9339 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
9340 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
9341 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
9342 parser_till_end = ::dmi::Uuid::_InternalParse;
9343 object = msg->mutable_device_uuid();
9344 if (size > end - ptr) goto len_delim_till_end;
9345 ptr += size;
9346 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
9347 {parser_till_end, object}, ptr - size, ptr));
9348 break;
9349 }
9350 // repeated string entities = 2;
9351 case 2: {
9352 if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
9353 do {
9354 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
9355 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
9356 ctx->extra_parse_data().SetFieldName("dmi.GetLogLevelRequest.entities");
9357 object = msg->add_entities();
9358 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
9359 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
9360 goto string_till_end;
9361 }
9362 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
9363 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
9364 ptr += size;
9365 if (ptr >= end) break;
9366 } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1));
9367 break;
9368 }
9369 default: {
9370 handle_unusual:
9371 if ((tag & 7) == 4 || tag == 0) {
9372 ctx->EndGroup(tag);
9373 return ptr;
9374 }
9375 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
9376 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
9377 ptr = res.first;
9378 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
9379 if (res.second) return ptr;
9380 }
9381 } // switch
9382 } // while
9383 return ptr;
9384string_till_end:
9385 static_cast<::std::string*>(object)->clear();
9386 static_cast<::std::string*>(object)->reserve(size);
9387 goto len_delim_till_end;
9388len_delim_till_end:
9389 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
9390 {parser_till_end, object}, size);
9391}
9392#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
9393bool GetLogLevelRequest::MergePartialFromCodedStream(
9394 ::google::protobuf::io::CodedInputStream* input) {
9395#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
9396 ::google::protobuf::uint32 tag;
9397 // @@protoc_insertion_point(parse_start:dmi.GetLogLevelRequest)
9398 for (;;) {
9399 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
9400 tag = p.first;
9401 if (!p.second) goto handle_unusual;
9402 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
9403 // .dmi.Uuid device_uuid = 1;
9404 case 1: {
9405 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
9406 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
9407 input, mutable_device_uuid()));
9408 } else {
9409 goto handle_unusual;
9410 }
9411 break;
9412 }
9413
9414 // repeated string entities = 2;
9415 case 2: {
9416 if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
9417 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
9418 input, this->add_entities()));
9419 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
9420 this->entities(this->entities_size() - 1).data(),
9421 static_cast<int>(this->entities(this->entities_size() - 1).length()),
9422 ::google::protobuf::internal::WireFormatLite::PARSE,
9423 "dmi.GetLogLevelRequest.entities"));
9424 } else {
9425 goto handle_unusual;
9426 }
9427 break;
9428 }
9429
9430 default: {
9431 handle_unusual:
9432 if (tag == 0) {
9433 goto success;
9434 }
9435 DO_(::google::protobuf::internal::WireFormat::SkipField(
9436 input, tag, _internal_metadata_.mutable_unknown_fields()));
9437 break;
9438 }
9439 }
9440 }
9441success:
9442 // @@protoc_insertion_point(parse_success:dmi.GetLogLevelRequest)
9443 return true;
9444failure:
9445 // @@protoc_insertion_point(parse_failure:dmi.GetLogLevelRequest)
9446 return false;
9447#undef DO_
9448}
9449#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
9450
9451void GetLogLevelRequest::SerializeWithCachedSizes(
9452 ::google::protobuf::io::CodedOutputStream* output) const {
9453 // @@protoc_insertion_point(serialize_start:dmi.GetLogLevelRequest)
9454 ::google::protobuf::uint32 cached_has_bits = 0;
9455 (void) cached_has_bits;
9456
9457 // .dmi.Uuid device_uuid = 1;
9458 if (this->has_device_uuid()) {
9459 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9460 1, HasBitSetters::device_uuid(this), output);
9461 }
9462
9463 // repeated string entities = 2;
9464 for (int i = 0, n = this->entities_size(); i < n; i++) {
9465 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
9466 this->entities(i).data(), static_cast<int>(this->entities(i).length()),
9467 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
9468 "dmi.GetLogLevelRequest.entities");
9469 ::google::protobuf::internal::WireFormatLite::WriteString(
9470 2, this->entities(i), output);
9471 }
9472
9473 if (_internal_metadata_.have_unknown_fields()) {
9474 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
9475 _internal_metadata_.unknown_fields(), output);
9476 }
9477 // @@protoc_insertion_point(serialize_end:dmi.GetLogLevelRequest)
9478}
9479
9480::google::protobuf::uint8* GetLogLevelRequest::InternalSerializeWithCachedSizesToArray(
9481 ::google::protobuf::uint8* target) const {
9482 // @@protoc_insertion_point(serialize_to_array_start:dmi.GetLogLevelRequest)
9483 ::google::protobuf::uint32 cached_has_bits = 0;
9484 (void) cached_has_bits;
9485
9486 // .dmi.Uuid device_uuid = 1;
9487 if (this->has_device_uuid()) {
9488 target = ::google::protobuf::internal::WireFormatLite::
9489 InternalWriteMessageToArray(
9490 1, HasBitSetters::device_uuid(this), target);
9491 }
9492
9493 // repeated string entities = 2;
9494 for (int i = 0, n = this->entities_size(); i < n; i++) {
9495 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
9496 this->entities(i).data(), static_cast<int>(this->entities(i).length()),
9497 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
9498 "dmi.GetLogLevelRequest.entities");
9499 target = ::google::protobuf::internal::WireFormatLite::
9500 WriteStringToArray(2, this->entities(i), target);
9501 }
9502
9503 if (_internal_metadata_.have_unknown_fields()) {
9504 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
9505 _internal_metadata_.unknown_fields(), target);
9506 }
9507 // @@protoc_insertion_point(serialize_to_array_end:dmi.GetLogLevelRequest)
9508 return target;
9509}
9510
9511size_t GetLogLevelRequest::ByteSizeLong() const {
9512// @@protoc_insertion_point(message_byte_size_start:dmi.GetLogLevelRequest)
9513 size_t total_size = 0;
9514
9515 if (_internal_metadata_.have_unknown_fields()) {
9516 total_size +=
9517 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
9518 _internal_metadata_.unknown_fields());
9519 }
9520 ::google::protobuf::uint32 cached_has_bits = 0;
9521 // Prevent compiler warnings about cached_has_bits being unused
9522 (void) cached_has_bits;
9523
9524 // repeated string entities = 2;
9525 total_size += 1 *
9526 ::google::protobuf::internal::FromIntSize(this->entities_size());
9527 for (int i = 0, n = this->entities_size(); i < n; i++) {
9528 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
9529 this->entities(i));
9530 }
9531
9532 // .dmi.Uuid device_uuid = 1;
9533 if (this->has_device_uuid()) {
9534 total_size += 1 +
9535 ::google::protobuf::internal::WireFormatLite::MessageSize(
9536 *device_uuid_);
9537 }
9538
9539 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
9540 SetCachedSize(cached_size);
9541 return total_size;
9542}
9543
9544void GetLogLevelRequest::MergeFrom(const ::google::protobuf::Message& from) {
9545// @@protoc_insertion_point(generalized_merge_from_start:dmi.GetLogLevelRequest)
9546 GOOGLE_DCHECK_NE(&from, this);
9547 const GetLogLevelRequest* source =
9548 ::google::protobuf::DynamicCastToGenerated<GetLogLevelRequest>(
9549 &from);
9550 if (source == nullptr) {
9551 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.GetLogLevelRequest)
9552 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
9553 } else {
9554 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.GetLogLevelRequest)
9555 MergeFrom(*source);
9556 }
9557}
9558
9559void GetLogLevelRequest::MergeFrom(const GetLogLevelRequest& from) {
9560// @@protoc_insertion_point(class_specific_merge_from_start:dmi.GetLogLevelRequest)
9561 GOOGLE_DCHECK_NE(&from, this);
9562 _internal_metadata_.MergeFrom(from._internal_metadata_);
9563 ::google::protobuf::uint32 cached_has_bits = 0;
9564 (void) cached_has_bits;
9565
9566 entities_.MergeFrom(from.entities_);
9567 if (from.has_device_uuid()) {
9568 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
9569 }
9570}
9571
9572void GetLogLevelRequest::CopyFrom(const ::google::protobuf::Message& from) {
9573// @@protoc_insertion_point(generalized_copy_from_start:dmi.GetLogLevelRequest)
9574 if (&from == this) return;
9575 Clear();
9576 MergeFrom(from);
9577}
9578
9579void GetLogLevelRequest::CopyFrom(const GetLogLevelRequest& from) {
9580// @@protoc_insertion_point(class_specific_copy_from_start:dmi.GetLogLevelRequest)
9581 if (&from == this) return;
9582 Clear();
9583 MergeFrom(from);
9584}
9585
9586bool GetLogLevelRequest::IsInitialized() const {
9587 return true;
9588}
9589
9590void GetLogLevelRequest::Swap(GetLogLevelRequest* other) {
9591 if (other == this) return;
9592 InternalSwap(other);
9593}
9594void GetLogLevelRequest::InternalSwap(GetLogLevelRequest* other) {
9595 using std::swap;
9596 _internal_metadata_.Swap(&other->_internal_metadata_);
9597 entities_.InternalSwap(CastToBase(&other->entities_));
9598 swap(device_uuid_, other->device_uuid_);
9599}
9600
9601::google::protobuf::Metadata GetLogLevelRequest::GetMetadata() const {
9602 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
9603 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
9604}
9605
9606
9607// ===================================================================
9608
9609void GetLogLevelResponse::InitAsDefaultInstance() {
9610 ::dmi::_GetLogLevelResponse_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
9611 ::dmi::Uuid::internal_default_instance());
9612}
9613class GetLogLevelResponse::HasBitSetters {
9614 public:
9615 static const ::dmi::Uuid& device_uuid(const GetLogLevelResponse* msg);
9616};
9617
9618const ::dmi::Uuid&
9619GetLogLevelResponse::HasBitSetters::device_uuid(const GetLogLevelResponse* msg) {
9620 return *msg->device_uuid_;
9621}
9622void GetLogLevelResponse::clear_device_uuid() {
9623 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
9624 delete device_uuid_;
9625 }
9626 device_uuid_ = nullptr;
9627}
9628#if !defined(_MSC_VER) || _MSC_VER >= 1900
9629const int GetLogLevelResponse::kDeviceUuidFieldNumber;
9630const int GetLogLevelResponse::kLogLevelsFieldNumber;
9631const int GetLogLevelResponse::kStatusFieldNumber;
9632const int GetLogLevelResponse::kReasonFieldNumber;
9633const int GetLogLevelResponse::kReasonDetailFieldNumber;
9634#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
9635
9636GetLogLevelResponse::GetLogLevelResponse()
9637 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
9638 SharedCtor();
9639 // @@protoc_insertion_point(constructor:dmi.GetLogLevelResponse)
9640}
9641GetLogLevelResponse::GetLogLevelResponse(const GetLogLevelResponse& from)
9642 : ::google::protobuf::Message(),
9643 _internal_metadata_(nullptr),
9644 loglevels_(from.loglevels_) {
9645 _internal_metadata_.MergeFrom(from._internal_metadata_);
9646 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9647 if (from.reason_detail().size() > 0) {
9648 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
9649 }
9650 if (from.has_device_uuid()) {
9651 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
9652 } else {
9653 device_uuid_ = nullptr;
9654 }
9655 ::memcpy(&status_, &from.status_,
9656 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
9657 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
9658 // @@protoc_insertion_point(copy_constructor:dmi.GetLogLevelResponse)
9659}
9660
9661void GetLogLevelResponse::SharedCtor() {
9662 ::google::protobuf::internal::InitSCC(
9663 &scc_info_GetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
9664 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9665 ::memset(&device_uuid_, 0, static_cast<size_t>(
9666 reinterpret_cast<char*>(&reason_) -
9667 reinterpret_cast<char*>(&device_uuid_)) + sizeof(reason_));
9668}
9669
9670GetLogLevelResponse::~GetLogLevelResponse() {
9671 // @@protoc_insertion_point(destructor:dmi.GetLogLevelResponse)
9672 SharedDtor();
9673}
9674
9675void GetLogLevelResponse::SharedDtor() {
9676 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9677 if (this != internal_default_instance()) delete device_uuid_;
9678}
9679
9680void GetLogLevelResponse::SetCachedSize(int size) const {
9681 _cached_size_.Set(size);
9682}
9683const GetLogLevelResponse& GetLogLevelResponse::default_instance() {
9684 ::google::protobuf::internal::InitSCC(&::scc_info_GetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
9685 return *internal_default_instance();
9686}
9687
9688
9689void GetLogLevelResponse::Clear() {
9690// @@protoc_insertion_point(message_clear_start:dmi.GetLogLevelResponse)
9691 ::google::protobuf::uint32 cached_has_bits = 0;
9692 // Prevent compiler warnings about cached_has_bits being unused
9693 (void) cached_has_bits;
9694
9695 loglevels_.Clear();
9696 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9697 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
9698 delete device_uuid_;
9699 }
9700 device_uuid_ = nullptr;
9701 ::memset(&status_, 0, static_cast<size_t>(
9702 reinterpret_cast<char*>(&reason_) -
9703 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
9704 _internal_metadata_.Clear();
9705}
9706
9707#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
9708const char* GetLogLevelResponse::_InternalParse(const char* begin, const char* end, void* object,
9709 ::google::protobuf::internal::ParseContext* ctx) {
9710 auto msg = static_cast<GetLogLevelResponse*>(object);
9711 ::google::protobuf::int32 size; (void)size;
9712 int depth; (void)depth;
9713 ::google::protobuf::uint32 tag;
9714 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
9715 auto ptr = begin;
9716 while (ptr < end) {
9717 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
9718 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
9719 switch (tag >> 3) {
9720 // .dmi.Uuid device_uuid = 1;
9721 case 1: {
9722 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
9723 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
9724 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
9725 parser_till_end = ::dmi::Uuid::_InternalParse;
9726 object = msg->mutable_device_uuid();
9727 if (size > end - ptr) goto len_delim_till_end;
9728 ptr += size;
9729 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
9730 {parser_till_end, object}, ptr - size, ptr));
9731 break;
9732 }
9733 // repeated .dmi.EntitiesLogLevel logLevels = 2;
9734 case 2: {
9735 if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
9736 do {
9737 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
9738 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
9739 parser_till_end = ::dmi::EntitiesLogLevel::_InternalParse;
9740 object = msg->add_loglevels();
9741 if (size > end - ptr) goto len_delim_till_end;
9742 ptr += size;
9743 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
9744 {parser_till_end, object}, ptr - size, ptr));
9745 if (ptr >= end) break;
9746 } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1));
9747 break;
9748 }
9749 // .dmi.Status status = 3;
9750 case 3: {
9751 if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual;
9752 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
9753 msg->set_status(static_cast<::dmi::Status>(val));
9754 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
9755 break;
9756 }
9757 // .dmi.GetLogLevelResponse.Reason reason = 4;
9758 case 4: {
9759 if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual;
9760 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
9761 msg->set_reason(static_cast<::dmi::GetLogLevelResponse_Reason>(val));
9762 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
9763 break;
9764 }
9765 // string reason_detail = 5;
9766 case 5: {
9767 if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual;
9768 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
9769 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
9770 ctx->extra_parse_data().SetFieldName("dmi.GetLogLevelResponse.reason_detail");
9771 object = msg->mutable_reason_detail();
9772 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
9773 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
9774 goto string_till_end;
9775 }
9776 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
9777 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
9778 ptr += size;
9779 break;
9780 }
9781 default: {
9782 handle_unusual:
9783 if ((tag & 7) == 4 || tag == 0) {
9784 ctx->EndGroup(tag);
9785 return ptr;
9786 }
9787 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
9788 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
9789 ptr = res.first;
9790 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
9791 if (res.second) return ptr;
9792 }
9793 } // switch
9794 } // while
9795 return ptr;
9796string_till_end:
9797 static_cast<::std::string*>(object)->clear();
9798 static_cast<::std::string*>(object)->reserve(size);
9799 goto len_delim_till_end;
9800len_delim_till_end:
9801 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
9802 {parser_till_end, object}, size);
9803}
9804#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
9805bool GetLogLevelResponse::MergePartialFromCodedStream(
9806 ::google::protobuf::io::CodedInputStream* input) {
9807#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
9808 ::google::protobuf::uint32 tag;
9809 // @@protoc_insertion_point(parse_start:dmi.GetLogLevelResponse)
9810 for (;;) {
9811 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
9812 tag = p.first;
9813 if (!p.second) goto handle_unusual;
9814 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
9815 // .dmi.Uuid device_uuid = 1;
9816 case 1: {
9817 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
9818 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
9819 input, mutable_device_uuid()));
9820 } else {
9821 goto handle_unusual;
9822 }
9823 break;
9824 }
9825
9826 // repeated .dmi.EntitiesLogLevel logLevels = 2;
9827 case 2: {
9828 if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
9829 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
9830 input, add_loglevels()));
9831 } else {
9832 goto handle_unusual;
9833 }
9834 break;
9835 }
9836
9837 // .dmi.Status status = 3;
9838 case 3: {
9839 if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) {
9840 int value = 0;
9841 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9842 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
9843 input, &value)));
9844 set_status(static_cast< ::dmi::Status >(value));
9845 } else {
9846 goto handle_unusual;
9847 }
9848 break;
9849 }
9850
9851 // .dmi.GetLogLevelResponse.Reason reason = 4;
9852 case 4: {
9853 if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) {
9854 int value = 0;
9855 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9856 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
9857 input, &value)));
9858 set_reason(static_cast< ::dmi::GetLogLevelResponse_Reason >(value));
9859 } else {
9860 goto handle_unusual;
9861 }
9862 break;
9863 }
9864
9865 // string reason_detail = 5;
9866 case 5: {
9867 if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) {
9868 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
9869 input, this->mutable_reason_detail()));
9870 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
9871 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
9872 ::google::protobuf::internal::WireFormatLite::PARSE,
9873 "dmi.GetLogLevelResponse.reason_detail"));
9874 } else {
9875 goto handle_unusual;
9876 }
9877 break;
9878 }
9879
9880 default: {
9881 handle_unusual:
9882 if (tag == 0) {
9883 goto success;
9884 }
9885 DO_(::google::protobuf::internal::WireFormat::SkipField(
9886 input, tag, _internal_metadata_.mutable_unknown_fields()));
9887 break;
9888 }
9889 }
9890 }
9891success:
9892 // @@protoc_insertion_point(parse_success:dmi.GetLogLevelResponse)
9893 return true;
9894failure:
9895 // @@protoc_insertion_point(parse_failure:dmi.GetLogLevelResponse)
9896 return false;
9897#undef DO_
9898}
9899#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
9900
9901void GetLogLevelResponse::SerializeWithCachedSizes(
9902 ::google::protobuf::io::CodedOutputStream* output) const {
9903 // @@protoc_insertion_point(serialize_start:dmi.GetLogLevelResponse)
9904 ::google::protobuf::uint32 cached_has_bits = 0;
9905 (void) cached_has_bits;
9906
9907 // .dmi.Uuid device_uuid = 1;
9908 if (this->has_device_uuid()) {
9909 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9910 1, HasBitSetters::device_uuid(this), output);
9911 }
9912
9913 // repeated .dmi.EntitiesLogLevel logLevels = 2;
9914 for (unsigned int i = 0,
9915 n = static_cast<unsigned int>(this->loglevels_size()); i < n; i++) {
9916 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9917 2,
9918 this->loglevels(static_cast<int>(i)),
9919 output);
9920 }
9921
9922 // .dmi.Status status = 3;
9923 if (this->status() != 0) {
9924 ::google::protobuf::internal::WireFormatLite::WriteEnum(
9925 3, this->status(), output);
9926 }
9927
9928 // .dmi.GetLogLevelResponse.Reason reason = 4;
9929 if (this->reason() != 0) {
9930 ::google::protobuf::internal::WireFormatLite::WriteEnum(
9931 4, this->reason(), output);
9932 }
9933
9934 // string reason_detail = 5;
9935 if (this->reason_detail().size() > 0) {
9936 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
9937 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
9938 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
9939 "dmi.GetLogLevelResponse.reason_detail");
9940 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
9941 5, this->reason_detail(), output);
9942 }
9943
9944 if (_internal_metadata_.have_unknown_fields()) {
9945 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
9946 _internal_metadata_.unknown_fields(), output);
9947 }
9948 // @@protoc_insertion_point(serialize_end:dmi.GetLogLevelResponse)
9949}
9950
9951::google::protobuf::uint8* GetLogLevelResponse::InternalSerializeWithCachedSizesToArray(
9952 ::google::protobuf::uint8* target) const {
9953 // @@protoc_insertion_point(serialize_to_array_start:dmi.GetLogLevelResponse)
9954 ::google::protobuf::uint32 cached_has_bits = 0;
9955 (void) cached_has_bits;
9956
9957 // .dmi.Uuid device_uuid = 1;
9958 if (this->has_device_uuid()) {
9959 target = ::google::protobuf::internal::WireFormatLite::
9960 InternalWriteMessageToArray(
9961 1, HasBitSetters::device_uuid(this), target);
9962 }
9963
9964 // repeated .dmi.EntitiesLogLevel logLevels = 2;
9965 for (unsigned int i = 0,
9966 n = static_cast<unsigned int>(this->loglevels_size()); i < n; i++) {
9967 target = ::google::protobuf::internal::WireFormatLite::
9968 InternalWriteMessageToArray(
9969 2, this->loglevels(static_cast<int>(i)), target);
9970 }
9971
9972 // .dmi.Status status = 3;
9973 if (this->status() != 0) {
9974 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
9975 3, this->status(), target);
9976 }
9977
9978 // .dmi.GetLogLevelResponse.Reason reason = 4;
9979 if (this->reason() != 0) {
9980 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
9981 4, this->reason(), target);
9982 }
9983
9984 // string reason_detail = 5;
9985 if (this->reason_detail().size() > 0) {
9986 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
9987 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
9988 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
9989 "dmi.GetLogLevelResponse.reason_detail");
9990 target =
9991 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
9992 5, this->reason_detail(), target);
9993 }
9994
9995 if (_internal_metadata_.have_unknown_fields()) {
9996 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
9997 _internal_metadata_.unknown_fields(), target);
9998 }
9999 // @@protoc_insertion_point(serialize_to_array_end:dmi.GetLogLevelResponse)
10000 return target;
10001}
10002
10003size_t GetLogLevelResponse::ByteSizeLong() const {
10004// @@protoc_insertion_point(message_byte_size_start:dmi.GetLogLevelResponse)
10005 size_t total_size = 0;
10006
10007 if (_internal_metadata_.have_unknown_fields()) {
10008 total_size +=
10009 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
10010 _internal_metadata_.unknown_fields());
10011 }
10012 ::google::protobuf::uint32 cached_has_bits = 0;
10013 // Prevent compiler warnings about cached_has_bits being unused
10014 (void) cached_has_bits;
10015
10016 // repeated .dmi.EntitiesLogLevel logLevels = 2;
10017 {
10018 unsigned int count = static_cast<unsigned int>(this->loglevels_size());
10019 total_size += 1UL * count;
10020 for (unsigned int i = 0; i < count; i++) {
10021 total_size +=
10022 ::google::protobuf::internal::WireFormatLite::MessageSize(
10023 this->loglevels(static_cast<int>(i)));
10024 }
10025 }
10026
10027 // string reason_detail = 5;
10028 if (this->reason_detail().size() > 0) {
10029 total_size += 1 +
10030 ::google::protobuf::internal::WireFormatLite::StringSize(
10031 this->reason_detail());
10032 }
10033
10034 // .dmi.Uuid device_uuid = 1;
10035 if (this->has_device_uuid()) {
10036 total_size += 1 +
10037 ::google::protobuf::internal::WireFormatLite::MessageSize(
10038 *device_uuid_);
10039 }
10040
10041 // .dmi.Status status = 3;
10042 if (this->status() != 0) {
10043 total_size += 1 +
10044 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
10045 }
10046
10047 // .dmi.GetLogLevelResponse.Reason reason = 4;
10048 if (this->reason() != 0) {
10049 total_size += 1 +
10050 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
10051 }
10052
10053 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
10054 SetCachedSize(cached_size);
10055 return total_size;
10056}
10057
10058void GetLogLevelResponse::MergeFrom(const ::google::protobuf::Message& from) {
10059// @@protoc_insertion_point(generalized_merge_from_start:dmi.GetLogLevelResponse)
10060 GOOGLE_DCHECK_NE(&from, this);
10061 const GetLogLevelResponse* source =
10062 ::google::protobuf::DynamicCastToGenerated<GetLogLevelResponse>(
10063 &from);
10064 if (source == nullptr) {
10065 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.GetLogLevelResponse)
10066 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
10067 } else {
10068 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.GetLogLevelResponse)
10069 MergeFrom(*source);
10070 }
10071}
10072
10073void GetLogLevelResponse::MergeFrom(const GetLogLevelResponse& from) {
10074// @@protoc_insertion_point(class_specific_merge_from_start:dmi.GetLogLevelResponse)
10075 GOOGLE_DCHECK_NE(&from, this);
10076 _internal_metadata_.MergeFrom(from._internal_metadata_);
10077 ::google::protobuf::uint32 cached_has_bits = 0;
10078 (void) cached_has_bits;
10079
10080 loglevels_.MergeFrom(from.loglevels_);
10081 if (from.reason_detail().size() > 0) {
10082
10083 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
10084 }
10085 if (from.has_device_uuid()) {
10086 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
10087 }
10088 if (from.status() != 0) {
10089 set_status(from.status());
10090 }
10091 if (from.reason() != 0) {
10092 set_reason(from.reason());
10093 }
10094}
10095
10096void GetLogLevelResponse::CopyFrom(const ::google::protobuf::Message& from) {
10097// @@protoc_insertion_point(generalized_copy_from_start:dmi.GetLogLevelResponse)
10098 if (&from == this) return;
10099 Clear();
10100 MergeFrom(from);
10101}
10102
10103void GetLogLevelResponse::CopyFrom(const GetLogLevelResponse& from) {
10104// @@protoc_insertion_point(class_specific_copy_from_start:dmi.GetLogLevelResponse)
10105 if (&from == this) return;
10106 Clear();
10107 MergeFrom(from);
10108}
10109
10110bool GetLogLevelResponse::IsInitialized() const {
10111 return true;
10112}
10113
10114void GetLogLevelResponse::Swap(GetLogLevelResponse* other) {
10115 if (other == this) return;
10116 InternalSwap(other);
10117}
10118void GetLogLevelResponse::InternalSwap(GetLogLevelResponse* other) {
10119 using std::swap;
10120 _internal_metadata_.Swap(&other->_internal_metadata_);
10121 CastToBase(&loglevels_)->InternalSwap(CastToBase(&other->loglevels_));
10122 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
10123 GetArenaNoVirtual());
10124 swap(device_uuid_, other->device_uuid_);
10125 swap(status_, other->status_);
10126 swap(reason_, other->reason_);
10127}
10128
10129::google::protobuf::Metadata GetLogLevelResponse::GetMetadata() const {
10130 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
10131 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
10132}
10133
10134
10135// ===================================================================
10136
10137void GetLoggableEntitiesRequest::InitAsDefaultInstance() {
10138 ::dmi::_GetLoggableEntitiesRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
10139 ::dmi::Uuid::internal_default_instance());
10140}
10141class GetLoggableEntitiesRequest::HasBitSetters {
10142 public:
10143 static const ::dmi::Uuid& device_uuid(const GetLoggableEntitiesRequest* msg);
10144};
10145
10146const ::dmi::Uuid&
10147GetLoggableEntitiesRequest::HasBitSetters::device_uuid(const GetLoggableEntitiesRequest* msg) {
10148 return *msg->device_uuid_;
10149}
10150void GetLoggableEntitiesRequest::clear_device_uuid() {
10151 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
10152 delete device_uuid_;
10153 }
10154 device_uuid_ = nullptr;
10155}
10156#if !defined(_MSC_VER) || _MSC_VER >= 1900
10157const int GetLoggableEntitiesRequest::kDeviceUuidFieldNumber;
10158#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
10159
10160GetLoggableEntitiesRequest::GetLoggableEntitiesRequest()
10161 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
10162 SharedCtor();
10163 // @@protoc_insertion_point(constructor:dmi.GetLoggableEntitiesRequest)
10164}
10165GetLoggableEntitiesRequest::GetLoggableEntitiesRequest(const GetLoggableEntitiesRequest& from)
10166 : ::google::protobuf::Message(),
10167 _internal_metadata_(nullptr) {
10168 _internal_metadata_.MergeFrom(from._internal_metadata_);
10169 if (from.has_device_uuid()) {
10170 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
10171 } else {
10172 device_uuid_ = nullptr;
10173 }
10174 // @@protoc_insertion_point(copy_constructor:dmi.GetLoggableEntitiesRequest)
10175}
10176
10177void GetLoggableEntitiesRequest::SharedCtor() {
10178 ::google::protobuf::internal::InitSCC(
10179 &scc_info_GetLoggableEntitiesRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
10180 device_uuid_ = nullptr;
10181}
10182
10183GetLoggableEntitiesRequest::~GetLoggableEntitiesRequest() {
10184 // @@protoc_insertion_point(destructor:dmi.GetLoggableEntitiesRequest)
10185 SharedDtor();
10186}
10187
10188void GetLoggableEntitiesRequest::SharedDtor() {
10189 if (this != internal_default_instance()) delete device_uuid_;
10190}
10191
10192void GetLoggableEntitiesRequest::SetCachedSize(int size) const {
10193 _cached_size_.Set(size);
10194}
10195const GetLoggableEntitiesRequest& GetLoggableEntitiesRequest::default_instance() {
10196 ::google::protobuf::internal::InitSCC(&::scc_info_GetLoggableEntitiesRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
10197 return *internal_default_instance();
10198}
10199
10200
10201void GetLoggableEntitiesRequest::Clear() {
10202// @@protoc_insertion_point(message_clear_start:dmi.GetLoggableEntitiesRequest)
10203 ::google::protobuf::uint32 cached_has_bits = 0;
10204 // Prevent compiler warnings about cached_has_bits being unused
10205 (void) cached_has_bits;
10206
10207 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
10208 delete device_uuid_;
10209 }
10210 device_uuid_ = nullptr;
10211 _internal_metadata_.Clear();
10212}
10213
10214#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10215const char* GetLoggableEntitiesRequest::_InternalParse(const char* begin, const char* end, void* object,
10216 ::google::protobuf::internal::ParseContext* ctx) {
10217 auto msg = static_cast<GetLoggableEntitiesRequest*>(object);
10218 ::google::protobuf::int32 size; (void)size;
10219 int depth; (void)depth;
10220 ::google::protobuf::uint32 tag;
10221 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
10222 auto ptr = begin;
10223 while (ptr < end) {
10224 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
10225 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
10226 switch (tag >> 3) {
10227 // .dmi.Uuid device_uuid = 1;
10228 case 1: {
10229 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
10230 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
10231 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
10232 parser_till_end = ::dmi::Uuid::_InternalParse;
10233 object = msg->mutable_device_uuid();
10234 if (size > end - ptr) goto len_delim_till_end;
10235 ptr += size;
10236 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
10237 {parser_till_end, object}, ptr - size, ptr));
10238 break;
10239 }
10240 default: {
10241 handle_unusual:
10242 if ((tag & 7) == 4 || tag == 0) {
10243 ctx->EndGroup(tag);
10244 return ptr;
10245 }
10246 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
10247 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
10248 ptr = res.first;
10249 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
10250 if (res.second) return ptr;
10251 }
10252 } // switch
10253 } // while
10254 return ptr;
10255len_delim_till_end:
10256 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
10257 {parser_till_end, object}, size);
10258}
10259#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10260bool GetLoggableEntitiesRequest::MergePartialFromCodedStream(
10261 ::google::protobuf::io::CodedInputStream* input) {
10262#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
10263 ::google::protobuf::uint32 tag;
10264 // @@protoc_insertion_point(parse_start:dmi.GetLoggableEntitiesRequest)
10265 for (;;) {
10266 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
10267 tag = p.first;
10268 if (!p.second) goto handle_unusual;
10269 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
10270 // .dmi.Uuid device_uuid = 1;
10271 case 1: {
10272 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
10273 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
10274 input, mutable_device_uuid()));
10275 } else {
10276 goto handle_unusual;
10277 }
10278 break;
10279 }
10280
10281 default: {
10282 handle_unusual:
10283 if (tag == 0) {
10284 goto success;
10285 }
10286 DO_(::google::protobuf::internal::WireFormat::SkipField(
10287 input, tag, _internal_metadata_.mutable_unknown_fields()));
10288 break;
10289 }
10290 }
10291 }
10292success:
10293 // @@protoc_insertion_point(parse_success:dmi.GetLoggableEntitiesRequest)
10294 return true;
10295failure:
10296 // @@protoc_insertion_point(parse_failure:dmi.GetLoggableEntitiesRequest)
10297 return false;
10298#undef DO_
10299}
10300#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10301
10302void GetLoggableEntitiesRequest::SerializeWithCachedSizes(
10303 ::google::protobuf::io::CodedOutputStream* output) const {
10304 // @@protoc_insertion_point(serialize_start:dmi.GetLoggableEntitiesRequest)
10305 ::google::protobuf::uint32 cached_has_bits = 0;
10306 (void) cached_has_bits;
10307
10308 // .dmi.Uuid device_uuid = 1;
10309 if (this->has_device_uuid()) {
10310 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10311 1, HasBitSetters::device_uuid(this), output);
10312 }
10313
10314 if (_internal_metadata_.have_unknown_fields()) {
10315 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
10316 _internal_metadata_.unknown_fields(), output);
10317 }
10318 // @@protoc_insertion_point(serialize_end:dmi.GetLoggableEntitiesRequest)
10319}
10320
10321::google::protobuf::uint8* GetLoggableEntitiesRequest::InternalSerializeWithCachedSizesToArray(
10322 ::google::protobuf::uint8* target) const {
10323 // @@protoc_insertion_point(serialize_to_array_start:dmi.GetLoggableEntitiesRequest)
10324 ::google::protobuf::uint32 cached_has_bits = 0;
10325 (void) cached_has_bits;
10326
10327 // .dmi.Uuid device_uuid = 1;
10328 if (this->has_device_uuid()) {
10329 target = ::google::protobuf::internal::WireFormatLite::
10330 InternalWriteMessageToArray(
10331 1, HasBitSetters::device_uuid(this), target);
10332 }
10333
10334 if (_internal_metadata_.have_unknown_fields()) {
10335 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
10336 _internal_metadata_.unknown_fields(), target);
10337 }
10338 // @@protoc_insertion_point(serialize_to_array_end:dmi.GetLoggableEntitiesRequest)
10339 return target;
10340}
10341
10342size_t GetLoggableEntitiesRequest::ByteSizeLong() const {
10343// @@protoc_insertion_point(message_byte_size_start:dmi.GetLoggableEntitiesRequest)
10344 size_t total_size = 0;
10345
10346 if (_internal_metadata_.have_unknown_fields()) {
10347 total_size +=
10348 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
10349 _internal_metadata_.unknown_fields());
10350 }
10351 ::google::protobuf::uint32 cached_has_bits = 0;
10352 // Prevent compiler warnings about cached_has_bits being unused
10353 (void) cached_has_bits;
10354
10355 // .dmi.Uuid device_uuid = 1;
10356 if (this->has_device_uuid()) {
10357 total_size += 1 +
10358 ::google::protobuf::internal::WireFormatLite::MessageSize(
10359 *device_uuid_);
10360 }
10361
10362 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
10363 SetCachedSize(cached_size);
10364 return total_size;
10365}
10366
10367void GetLoggableEntitiesRequest::MergeFrom(const ::google::protobuf::Message& from) {
10368// @@protoc_insertion_point(generalized_merge_from_start:dmi.GetLoggableEntitiesRequest)
10369 GOOGLE_DCHECK_NE(&from, this);
10370 const GetLoggableEntitiesRequest* source =
10371 ::google::protobuf::DynamicCastToGenerated<GetLoggableEntitiesRequest>(
10372 &from);
10373 if (source == nullptr) {
10374 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.GetLoggableEntitiesRequest)
10375 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
10376 } else {
10377 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.GetLoggableEntitiesRequest)
10378 MergeFrom(*source);
10379 }
10380}
10381
10382void GetLoggableEntitiesRequest::MergeFrom(const GetLoggableEntitiesRequest& from) {
10383// @@protoc_insertion_point(class_specific_merge_from_start:dmi.GetLoggableEntitiesRequest)
10384 GOOGLE_DCHECK_NE(&from, this);
10385 _internal_metadata_.MergeFrom(from._internal_metadata_);
10386 ::google::protobuf::uint32 cached_has_bits = 0;
10387 (void) cached_has_bits;
10388
10389 if (from.has_device_uuid()) {
10390 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
10391 }
10392}
10393
10394void GetLoggableEntitiesRequest::CopyFrom(const ::google::protobuf::Message& from) {
10395// @@protoc_insertion_point(generalized_copy_from_start:dmi.GetLoggableEntitiesRequest)
10396 if (&from == this) return;
10397 Clear();
10398 MergeFrom(from);
10399}
10400
10401void GetLoggableEntitiesRequest::CopyFrom(const GetLoggableEntitiesRequest& from) {
10402// @@protoc_insertion_point(class_specific_copy_from_start:dmi.GetLoggableEntitiesRequest)
10403 if (&from == this) return;
10404 Clear();
10405 MergeFrom(from);
10406}
10407
10408bool GetLoggableEntitiesRequest::IsInitialized() const {
10409 return true;
10410}
10411
10412void GetLoggableEntitiesRequest::Swap(GetLoggableEntitiesRequest* other) {
10413 if (other == this) return;
10414 InternalSwap(other);
10415}
10416void GetLoggableEntitiesRequest::InternalSwap(GetLoggableEntitiesRequest* other) {
10417 using std::swap;
10418 _internal_metadata_.Swap(&other->_internal_metadata_);
10419 swap(device_uuid_, other->device_uuid_);
10420}
10421
10422::google::protobuf::Metadata GetLoggableEntitiesRequest::GetMetadata() const {
10423 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
10424 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
10425}
10426
10427
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +053010428// ===================================================================
10429
amit.ghosh93183512024-05-28 22:37:27 +020010430void SetDmLogLevelRequest::InitAsDefaultInstance() {
10431}
10432class SetDmLogLevelRequest::HasBitSetters {
10433 public:
10434};
10435
10436#if !defined(_MSC_VER) || _MSC_VER >= 1900
10437const int SetDmLogLevelRequest::kLevelFieldNumber;
10438#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
10439
10440SetDmLogLevelRequest::SetDmLogLevelRequest()
10441 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
10442 SharedCtor();
10443 // @@protoc_insertion_point(constructor:dmi.SetDmLogLevelRequest)
10444}
10445SetDmLogLevelRequest::SetDmLogLevelRequest(const SetDmLogLevelRequest& from)
10446 : ::google::protobuf::Message(),
10447 _internal_metadata_(nullptr) {
10448 _internal_metadata_.MergeFrom(from._internal_metadata_);
10449 level_ = from.level_;
10450 // @@protoc_insertion_point(copy_constructor:dmi.SetDmLogLevelRequest)
10451}
10452
10453void SetDmLogLevelRequest::SharedCtor() {
10454 level_ = 0;
10455}
10456
10457SetDmLogLevelRequest::~SetDmLogLevelRequest() {
10458 // @@protoc_insertion_point(destructor:dmi.SetDmLogLevelRequest)
10459 SharedDtor();
10460}
10461
10462void SetDmLogLevelRequest::SharedDtor() {
10463}
10464
10465void SetDmLogLevelRequest::SetCachedSize(int size) const {
10466 _cached_size_.Set(size);
10467}
10468const SetDmLogLevelRequest& SetDmLogLevelRequest::default_instance() {
10469 ::google::protobuf::internal::InitSCC(&::scc_info_SetDmLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
10470 return *internal_default_instance();
10471}
10472
10473
10474void SetDmLogLevelRequest::Clear() {
10475// @@protoc_insertion_point(message_clear_start:dmi.SetDmLogLevelRequest)
10476 ::google::protobuf::uint32 cached_has_bits = 0;
10477 // Prevent compiler warnings about cached_has_bits being unused
10478 (void) cached_has_bits;
10479
10480 level_ = 0;
10481 _internal_metadata_.Clear();
10482}
10483
10484#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10485const char* SetDmLogLevelRequest::_InternalParse(const char* begin, const char* end, void* object,
10486 ::google::protobuf::internal::ParseContext* ctx) {
10487 auto msg = static_cast<SetDmLogLevelRequest*>(object);
10488 ::google::protobuf::int32 size; (void)size;
10489 int depth; (void)depth;
10490 ::google::protobuf::uint32 tag;
10491 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
10492 auto ptr = begin;
10493 while (ptr < end) {
10494 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
10495 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
10496 switch (tag >> 3) {
10497 // .dmi.LogLevel level = 1;
10498 case 1: {
10499 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
10500 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
10501 msg->set_level(static_cast<::dmi::LogLevel>(val));
10502 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
10503 break;
10504 }
10505 default: {
10506 handle_unusual:
10507 if ((tag & 7) == 4 || tag == 0) {
10508 ctx->EndGroup(tag);
10509 return ptr;
10510 }
10511 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
10512 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
10513 ptr = res.first;
10514 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
10515 if (res.second) return ptr;
10516 }
10517 } // switch
10518 } // while
10519 return ptr;
10520}
10521#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10522bool SetDmLogLevelRequest::MergePartialFromCodedStream(
10523 ::google::protobuf::io::CodedInputStream* input) {
10524#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
10525 ::google::protobuf::uint32 tag;
10526 // @@protoc_insertion_point(parse_start:dmi.SetDmLogLevelRequest)
10527 for (;;) {
10528 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
10529 tag = p.first;
10530 if (!p.second) goto handle_unusual;
10531 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
10532 // .dmi.LogLevel level = 1;
10533 case 1: {
10534 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
10535 int value = 0;
10536 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10537 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
10538 input, &value)));
10539 set_level(static_cast< ::dmi::LogLevel >(value));
10540 } else {
10541 goto handle_unusual;
10542 }
10543 break;
10544 }
10545
10546 default: {
10547 handle_unusual:
10548 if (tag == 0) {
10549 goto success;
10550 }
10551 DO_(::google::protobuf::internal::WireFormat::SkipField(
10552 input, tag, _internal_metadata_.mutable_unknown_fields()));
10553 break;
10554 }
10555 }
10556 }
10557success:
10558 // @@protoc_insertion_point(parse_success:dmi.SetDmLogLevelRequest)
10559 return true;
10560failure:
10561 // @@protoc_insertion_point(parse_failure:dmi.SetDmLogLevelRequest)
10562 return false;
10563#undef DO_
10564}
10565#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10566
10567void SetDmLogLevelRequest::SerializeWithCachedSizes(
10568 ::google::protobuf::io::CodedOutputStream* output) const {
10569 // @@protoc_insertion_point(serialize_start:dmi.SetDmLogLevelRequest)
10570 ::google::protobuf::uint32 cached_has_bits = 0;
10571 (void) cached_has_bits;
10572
10573 // .dmi.LogLevel level = 1;
10574 if (this->level() != 0) {
10575 ::google::protobuf::internal::WireFormatLite::WriteEnum(
10576 1, this->level(), output);
10577 }
10578
10579 if (_internal_metadata_.have_unknown_fields()) {
10580 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
10581 _internal_metadata_.unknown_fields(), output);
10582 }
10583 // @@protoc_insertion_point(serialize_end:dmi.SetDmLogLevelRequest)
10584}
10585
10586::google::protobuf::uint8* SetDmLogLevelRequest::InternalSerializeWithCachedSizesToArray(
10587 ::google::protobuf::uint8* target) const {
10588 // @@protoc_insertion_point(serialize_to_array_start:dmi.SetDmLogLevelRequest)
10589 ::google::protobuf::uint32 cached_has_bits = 0;
10590 (void) cached_has_bits;
10591
10592 // .dmi.LogLevel level = 1;
10593 if (this->level() != 0) {
10594 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
10595 1, this->level(), target);
10596 }
10597
10598 if (_internal_metadata_.have_unknown_fields()) {
10599 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
10600 _internal_metadata_.unknown_fields(), target);
10601 }
10602 // @@protoc_insertion_point(serialize_to_array_end:dmi.SetDmLogLevelRequest)
10603 return target;
10604}
10605
10606size_t SetDmLogLevelRequest::ByteSizeLong() const {
10607// @@protoc_insertion_point(message_byte_size_start:dmi.SetDmLogLevelRequest)
10608 size_t total_size = 0;
10609
10610 if (_internal_metadata_.have_unknown_fields()) {
10611 total_size +=
10612 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
10613 _internal_metadata_.unknown_fields());
10614 }
10615 ::google::protobuf::uint32 cached_has_bits = 0;
10616 // Prevent compiler warnings about cached_has_bits being unused
10617 (void) cached_has_bits;
10618
10619 // .dmi.LogLevel level = 1;
10620 if (this->level() != 0) {
10621 total_size += 1 +
10622 ::google::protobuf::internal::WireFormatLite::EnumSize(this->level());
10623 }
10624
10625 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
10626 SetCachedSize(cached_size);
10627 return total_size;
10628}
10629
10630void SetDmLogLevelRequest::MergeFrom(const ::google::protobuf::Message& from) {
10631// @@protoc_insertion_point(generalized_merge_from_start:dmi.SetDmLogLevelRequest)
10632 GOOGLE_DCHECK_NE(&from, this);
10633 const SetDmLogLevelRequest* source =
10634 ::google::protobuf::DynamicCastToGenerated<SetDmLogLevelRequest>(
10635 &from);
10636 if (source == nullptr) {
10637 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.SetDmLogLevelRequest)
10638 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
10639 } else {
10640 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.SetDmLogLevelRequest)
10641 MergeFrom(*source);
10642 }
10643}
10644
10645void SetDmLogLevelRequest::MergeFrom(const SetDmLogLevelRequest& from) {
10646// @@protoc_insertion_point(class_specific_merge_from_start:dmi.SetDmLogLevelRequest)
10647 GOOGLE_DCHECK_NE(&from, this);
10648 _internal_metadata_.MergeFrom(from._internal_metadata_);
10649 ::google::protobuf::uint32 cached_has_bits = 0;
10650 (void) cached_has_bits;
10651
10652 if (from.level() != 0) {
10653 set_level(from.level());
10654 }
10655}
10656
10657void SetDmLogLevelRequest::CopyFrom(const ::google::protobuf::Message& from) {
10658// @@protoc_insertion_point(generalized_copy_from_start:dmi.SetDmLogLevelRequest)
10659 if (&from == this) return;
10660 Clear();
10661 MergeFrom(from);
10662}
10663
10664void SetDmLogLevelRequest::CopyFrom(const SetDmLogLevelRequest& from) {
10665// @@protoc_insertion_point(class_specific_copy_from_start:dmi.SetDmLogLevelRequest)
10666 if (&from == this) return;
10667 Clear();
10668 MergeFrom(from);
10669}
10670
10671bool SetDmLogLevelRequest::IsInitialized() const {
10672 return true;
10673}
10674
10675void SetDmLogLevelRequest::Swap(SetDmLogLevelRequest* other) {
10676 if (other == this) return;
10677 InternalSwap(other);
10678}
10679void SetDmLogLevelRequest::InternalSwap(SetDmLogLevelRequest* other) {
10680 using std::swap;
10681 _internal_metadata_.Swap(&other->_internal_metadata_);
10682 swap(level_, other->level_);
10683}
10684
10685::google::protobuf::Metadata SetDmLogLevelRequest::GetMetadata() const {
10686 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
10687 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
10688}
10689
10690
10691// ===================================================================
10692
10693void SetDmLogLevelResponse::InitAsDefaultInstance() {
10694}
10695class SetDmLogLevelResponse::HasBitSetters {
10696 public:
10697};
10698
10699#if !defined(_MSC_VER) || _MSC_VER >= 1900
10700const int SetDmLogLevelResponse::kStatusFieldNumber;
10701const int SetDmLogLevelResponse::kReasonFieldNumber;
10702const int SetDmLogLevelResponse::kReasonDetailFieldNumber;
10703#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
10704
10705SetDmLogLevelResponse::SetDmLogLevelResponse()
10706 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
10707 SharedCtor();
10708 // @@protoc_insertion_point(constructor:dmi.SetDmLogLevelResponse)
10709}
10710SetDmLogLevelResponse::SetDmLogLevelResponse(const SetDmLogLevelResponse& from)
10711 : ::google::protobuf::Message(),
10712 _internal_metadata_(nullptr) {
10713 _internal_metadata_.MergeFrom(from._internal_metadata_);
10714 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10715 if (from.reason_detail().size() > 0) {
10716 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
10717 }
10718 ::memcpy(&status_, &from.status_,
10719 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
10720 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
10721 // @@protoc_insertion_point(copy_constructor:dmi.SetDmLogLevelResponse)
10722}
10723
10724void SetDmLogLevelResponse::SharedCtor() {
10725 ::google::protobuf::internal::InitSCC(
10726 &scc_info_SetDmLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
10727 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10728 ::memset(&status_, 0, static_cast<size_t>(
10729 reinterpret_cast<char*>(&reason_) -
10730 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
10731}
10732
10733SetDmLogLevelResponse::~SetDmLogLevelResponse() {
10734 // @@protoc_insertion_point(destructor:dmi.SetDmLogLevelResponse)
10735 SharedDtor();
10736}
10737
10738void SetDmLogLevelResponse::SharedDtor() {
10739 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10740}
10741
10742void SetDmLogLevelResponse::SetCachedSize(int size) const {
10743 _cached_size_.Set(size);
10744}
10745const SetDmLogLevelResponse& SetDmLogLevelResponse::default_instance() {
10746 ::google::protobuf::internal::InitSCC(&::scc_info_SetDmLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
10747 return *internal_default_instance();
10748}
10749
10750
10751void SetDmLogLevelResponse::Clear() {
10752// @@protoc_insertion_point(message_clear_start:dmi.SetDmLogLevelResponse)
10753 ::google::protobuf::uint32 cached_has_bits = 0;
10754 // Prevent compiler warnings about cached_has_bits being unused
10755 (void) cached_has_bits;
10756
10757 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10758 ::memset(&status_, 0, static_cast<size_t>(
10759 reinterpret_cast<char*>(&reason_) -
10760 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
10761 _internal_metadata_.Clear();
10762}
10763
10764#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10765const char* SetDmLogLevelResponse::_InternalParse(const char* begin, const char* end, void* object,
10766 ::google::protobuf::internal::ParseContext* ctx) {
10767 auto msg = static_cast<SetDmLogLevelResponse*>(object);
10768 ::google::protobuf::int32 size; (void)size;
10769 int depth; (void)depth;
10770 ::google::protobuf::uint32 tag;
10771 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
10772 auto ptr = begin;
10773 while (ptr < end) {
10774 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
10775 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
10776 switch (tag >> 3) {
10777 // .dmi.Status status = 1;
10778 case 1: {
10779 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
10780 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
10781 msg->set_status(static_cast<::dmi::Status>(val));
10782 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
10783 break;
10784 }
10785 // .dmi.SetDmLogLevelResponse.Reason reason = 2;
10786 case 2: {
10787 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
10788 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
10789 msg->set_reason(static_cast<::dmi::SetDmLogLevelResponse_Reason>(val));
10790 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
10791 break;
10792 }
10793 // string reason_detail = 3;
10794 case 3: {
10795 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
10796 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
10797 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
10798 ctx->extra_parse_data().SetFieldName("dmi.SetDmLogLevelResponse.reason_detail");
10799 object = msg->mutable_reason_detail();
10800 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
10801 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
10802 goto string_till_end;
10803 }
10804 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
10805 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
10806 ptr += size;
10807 break;
10808 }
10809 default: {
10810 handle_unusual:
10811 if ((tag & 7) == 4 || tag == 0) {
10812 ctx->EndGroup(tag);
10813 return ptr;
10814 }
10815 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
10816 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
10817 ptr = res.first;
10818 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
10819 if (res.second) return ptr;
10820 }
10821 } // switch
10822 } // while
10823 return ptr;
10824string_till_end:
10825 static_cast<::std::string*>(object)->clear();
10826 static_cast<::std::string*>(object)->reserve(size);
10827 goto len_delim_till_end;
10828len_delim_till_end:
10829 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
10830 {parser_till_end, object}, size);
10831}
10832#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10833bool SetDmLogLevelResponse::MergePartialFromCodedStream(
10834 ::google::protobuf::io::CodedInputStream* input) {
10835#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
10836 ::google::protobuf::uint32 tag;
10837 // @@protoc_insertion_point(parse_start:dmi.SetDmLogLevelResponse)
10838 for (;;) {
10839 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
10840 tag = p.first;
10841 if (!p.second) goto handle_unusual;
10842 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
10843 // .dmi.Status status = 1;
10844 case 1: {
10845 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
10846 int value = 0;
10847 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10848 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
10849 input, &value)));
10850 set_status(static_cast< ::dmi::Status >(value));
10851 } else {
10852 goto handle_unusual;
10853 }
10854 break;
10855 }
10856
10857 // .dmi.SetDmLogLevelResponse.Reason reason = 2;
10858 case 2: {
10859 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
10860 int value = 0;
10861 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10862 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
10863 input, &value)));
10864 set_reason(static_cast< ::dmi::SetDmLogLevelResponse_Reason >(value));
10865 } else {
10866 goto handle_unusual;
10867 }
10868 break;
10869 }
10870
10871 // string reason_detail = 3;
10872 case 3: {
10873 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
10874 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
10875 input, this->mutable_reason_detail()));
10876 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
10877 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
10878 ::google::protobuf::internal::WireFormatLite::PARSE,
10879 "dmi.SetDmLogLevelResponse.reason_detail"));
10880 } else {
10881 goto handle_unusual;
10882 }
10883 break;
10884 }
10885
10886 default: {
10887 handle_unusual:
10888 if (tag == 0) {
10889 goto success;
10890 }
10891 DO_(::google::protobuf::internal::WireFormat::SkipField(
10892 input, tag, _internal_metadata_.mutable_unknown_fields()));
10893 break;
10894 }
10895 }
10896 }
10897success:
10898 // @@protoc_insertion_point(parse_success:dmi.SetDmLogLevelResponse)
10899 return true;
10900failure:
10901 // @@protoc_insertion_point(parse_failure:dmi.SetDmLogLevelResponse)
10902 return false;
10903#undef DO_
10904}
10905#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10906
10907void SetDmLogLevelResponse::SerializeWithCachedSizes(
10908 ::google::protobuf::io::CodedOutputStream* output) const {
10909 // @@protoc_insertion_point(serialize_start:dmi.SetDmLogLevelResponse)
10910 ::google::protobuf::uint32 cached_has_bits = 0;
10911 (void) cached_has_bits;
10912
10913 // .dmi.Status status = 1;
10914 if (this->status() != 0) {
10915 ::google::protobuf::internal::WireFormatLite::WriteEnum(
10916 1, this->status(), output);
10917 }
10918
10919 // .dmi.SetDmLogLevelResponse.Reason reason = 2;
10920 if (this->reason() != 0) {
10921 ::google::protobuf::internal::WireFormatLite::WriteEnum(
10922 2, this->reason(), output);
10923 }
10924
10925 // string reason_detail = 3;
10926 if (this->reason_detail().size() > 0) {
10927 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
10928 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
10929 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
10930 "dmi.SetDmLogLevelResponse.reason_detail");
10931 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
10932 3, this->reason_detail(), output);
10933 }
10934
10935 if (_internal_metadata_.have_unknown_fields()) {
10936 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
10937 _internal_metadata_.unknown_fields(), output);
10938 }
10939 // @@protoc_insertion_point(serialize_end:dmi.SetDmLogLevelResponse)
10940}
10941
10942::google::protobuf::uint8* SetDmLogLevelResponse::InternalSerializeWithCachedSizesToArray(
10943 ::google::protobuf::uint8* target) const {
10944 // @@protoc_insertion_point(serialize_to_array_start:dmi.SetDmLogLevelResponse)
10945 ::google::protobuf::uint32 cached_has_bits = 0;
10946 (void) cached_has_bits;
10947
10948 // .dmi.Status status = 1;
10949 if (this->status() != 0) {
10950 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
10951 1, this->status(), target);
10952 }
10953
10954 // .dmi.SetDmLogLevelResponse.Reason reason = 2;
10955 if (this->reason() != 0) {
10956 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
10957 2, this->reason(), target);
10958 }
10959
10960 // string reason_detail = 3;
10961 if (this->reason_detail().size() > 0) {
10962 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
10963 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
10964 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
10965 "dmi.SetDmLogLevelResponse.reason_detail");
10966 target =
10967 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
10968 3, this->reason_detail(), target);
10969 }
10970
10971 if (_internal_metadata_.have_unknown_fields()) {
10972 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
10973 _internal_metadata_.unknown_fields(), target);
10974 }
10975 // @@protoc_insertion_point(serialize_to_array_end:dmi.SetDmLogLevelResponse)
10976 return target;
10977}
10978
10979size_t SetDmLogLevelResponse::ByteSizeLong() const {
10980// @@protoc_insertion_point(message_byte_size_start:dmi.SetDmLogLevelResponse)
10981 size_t total_size = 0;
10982
10983 if (_internal_metadata_.have_unknown_fields()) {
10984 total_size +=
10985 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
10986 _internal_metadata_.unknown_fields());
10987 }
10988 ::google::protobuf::uint32 cached_has_bits = 0;
10989 // Prevent compiler warnings about cached_has_bits being unused
10990 (void) cached_has_bits;
10991
10992 // string reason_detail = 3;
10993 if (this->reason_detail().size() > 0) {
10994 total_size += 1 +
10995 ::google::protobuf::internal::WireFormatLite::StringSize(
10996 this->reason_detail());
10997 }
10998
10999 // .dmi.Status status = 1;
11000 if (this->status() != 0) {
11001 total_size += 1 +
11002 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
11003 }
11004
11005 // .dmi.SetDmLogLevelResponse.Reason reason = 2;
11006 if (this->reason() != 0) {
11007 total_size += 1 +
11008 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
11009 }
11010
11011 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
11012 SetCachedSize(cached_size);
11013 return total_size;
11014}
11015
11016void SetDmLogLevelResponse::MergeFrom(const ::google::protobuf::Message& from) {
11017// @@protoc_insertion_point(generalized_merge_from_start:dmi.SetDmLogLevelResponse)
11018 GOOGLE_DCHECK_NE(&from, this);
11019 const SetDmLogLevelResponse* source =
11020 ::google::protobuf::DynamicCastToGenerated<SetDmLogLevelResponse>(
11021 &from);
11022 if (source == nullptr) {
11023 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.SetDmLogLevelResponse)
11024 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
11025 } else {
11026 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.SetDmLogLevelResponse)
11027 MergeFrom(*source);
11028 }
11029}
11030
11031void SetDmLogLevelResponse::MergeFrom(const SetDmLogLevelResponse& from) {
11032// @@protoc_insertion_point(class_specific_merge_from_start:dmi.SetDmLogLevelResponse)
11033 GOOGLE_DCHECK_NE(&from, this);
11034 _internal_metadata_.MergeFrom(from._internal_metadata_);
11035 ::google::protobuf::uint32 cached_has_bits = 0;
11036 (void) cached_has_bits;
11037
11038 if (from.reason_detail().size() > 0) {
11039
11040 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
11041 }
11042 if (from.status() != 0) {
11043 set_status(from.status());
11044 }
11045 if (from.reason() != 0) {
11046 set_reason(from.reason());
11047 }
11048}
11049
11050void SetDmLogLevelResponse::CopyFrom(const ::google::protobuf::Message& from) {
11051// @@protoc_insertion_point(generalized_copy_from_start:dmi.SetDmLogLevelResponse)
11052 if (&from == this) return;
11053 Clear();
11054 MergeFrom(from);
11055}
11056
11057void SetDmLogLevelResponse::CopyFrom(const SetDmLogLevelResponse& from) {
11058// @@protoc_insertion_point(class_specific_copy_from_start:dmi.SetDmLogLevelResponse)
11059 if (&from == this) return;
11060 Clear();
11061 MergeFrom(from);
11062}
11063
11064bool SetDmLogLevelResponse::IsInitialized() const {
11065 return true;
11066}
11067
11068void SetDmLogLevelResponse::Swap(SetDmLogLevelResponse* other) {
11069 if (other == this) return;
11070 InternalSwap(other);
11071}
11072void SetDmLogLevelResponse::InternalSwap(SetDmLogLevelResponse* other) {
11073 using std::swap;
11074 _internal_metadata_.Swap(&other->_internal_metadata_);
11075 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
11076 GetArenaNoVirtual());
11077 swap(status_, other->status_);
11078 swap(reason_, other->reason_);
11079}
11080
11081::google::protobuf::Metadata SetDmLogLevelResponse::GetMetadata() const {
11082 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
11083 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
11084}
11085
11086
11087// ===================================================================
11088
11089void GetDmLogLevelRequest::InitAsDefaultInstance() {
11090}
11091class GetDmLogLevelRequest::HasBitSetters {
11092 public:
11093};
11094
11095#if !defined(_MSC_VER) || _MSC_VER >= 1900
11096#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
11097
11098GetDmLogLevelRequest::GetDmLogLevelRequest()
11099 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
11100 SharedCtor();
11101 // @@protoc_insertion_point(constructor:dmi.GetDmLogLevelRequest)
11102}
11103GetDmLogLevelRequest::GetDmLogLevelRequest(const GetDmLogLevelRequest& from)
11104 : ::google::protobuf::Message(),
11105 _internal_metadata_(nullptr) {
11106 _internal_metadata_.MergeFrom(from._internal_metadata_);
11107 // @@protoc_insertion_point(copy_constructor:dmi.GetDmLogLevelRequest)
11108}
11109
11110void GetDmLogLevelRequest::SharedCtor() {
11111}
11112
11113GetDmLogLevelRequest::~GetDmLogLevelRequest() {
11114 // @@protoc_insertion_point(destructor:dmi.GetDmLogLevelRequest)
11115 SharedDtor();
11116}
11117
11118void GetDmLogLevelRequest::SharedDtor() {
11119}
11120
11121void GetDmLogLevelRequest::SetCachedSize(int size) const {
11122 _cached_size_.Set(size);
11123}
11124const GetDmLogLevelRequest& GetDmLogLevelRequest::default_instance() {
11125 ::google::protobuf::internal::InitSCC(&::scc_info_GetDmLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
11126 return *internal_default_instance();
11127}
11128
11129
11130void GetDmLogLevelRequest::Clear() {
11131// @@protoc_insertion_point(message_clear_start:dmi.GetDmLogLevelRequest)
11132 ::google::protobuf::uint32 cached_has_bits = 0;
11133 // Prevent compiler warnings about cached_has_bits being unused
11134 (void) cached_has_bits;
11135
11136 _internal_metadata_.Clear();
11137}
11138
11139#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
11140const char* GetDmLogLevelRequest::_InternalParse(const char* begin, const char* end, void* object,
11141 ::google::protobuf::internal::ParseContext* ctx) {
11142 auto msg = static_cast<GetDmLogLevelRequest*>(object);
11143 ::google::protobuf::int32 size; (void)size;
11144 int depth; (void)depth;
11145 ::google::protobuf::uint32 tag;
11146 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
11147 auto ptr = begin;
11148 while (ptr < end) {
11149 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
11150 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
11151 switch (tag >> 3) {
11152 default: {
11153 if ((tag & 7) == 4 || tag == 0) {
11154 ctx->EndGroup(tag);
11155 return ptr;
11156 }
11157 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
11158 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
11159 ptr = res.first;
11160 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
11161 if (res.second) return ptr;
11162 }
11163 } // switch
11164 } // while
11165 return ptr;
11166}
11167#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
11168bool GetDmLogLevelRequest::MergePartialFromCodedStream(
11169 ::google::protobuf::io::CodedInputStream* input) {
11170#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
11171 ::google::protobuf::uint32 tag;
11172 // @@protoc_insertion_point(parse_start:dmi.GetDmLogLevelRequest)
11173 for (;;) {
11174 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
11175 tag = p.first;
11176 if (!p.second) goto handle_unusual;
11177 handle_unusual:
11178 if (tag == 0) {
11179 goto success;
11180 }
11181 DO_(::google::protobuf::internal::WireFormat::SkipField(
11182 input, tag, _internal_metadata_.mutable_unknown_fields()));
11183 }
11184success:
11185 // @@protoc_insertion_point(parse_success:dmi.GetDmLogLevelRequest)
11186 return true;
11187failure:
11188 // @@protoc_insertion_point(parse_failure:dmi.GetDmLogLevelRequest)
11189 return false;
11190#undef DO_
11191}
11192#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
11193
11194void GetDmLogLevelRequest::SerializeWithCachedSizes(
11195 ::google::protobuf::io::CodedOutputStream* output) const {
11196 // @@protoc_insertion_point(serialize_start:dmi.GetDmLogLevelRequest)
11197 ::google::protobuf::uint32 cached_has_bits = 0;
11198 (void) cached_has_bits;
11199
11200 if (_internal_metadata_.have_unknown_fields()) {
11201 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
11202 _internal_metadata_.unknown_fields(), output);
11203 }
11204 // @@protoc_insertion_point(serialize_end:dmi.GetDmLogLevelRequest)
11205}
11206
11207::google::protobuf::uint8* GetDmLogLevelRequest::InternalSerializeWithCachedSizesToArray(
11208 ::google::protobuf::uint8* target) const {
11209 // @@protoc_insertion_point(serialize_to_array_start:dmi.GetDmLogLevelRequest)
11210 ::google::protobuf::uint32 cached_has_bits = 0;
11211 (void) cached_has_bits;
11212
11213 if (_internal_metadata_.have_unknown_fields()) {
11214 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
11215 _internal_metadata_.unknown_fields(), target);
11216 }
11217 // @@protoc_insertion_point(serialize_to_array_end:dmi.GetDmLogLevelRequest)
11218 return target;
11219}
11220
11221size_t GetDmLogLevelRequest::ByteSizeLong() const {
11222// @@protoc_insertion_point(message_byte_size_start:dmi.GetDmLogLevelRequest)
11223 size_t total_size = 0;
11224
11225 if (_internal_metadata_.have_unknown_fields()) {
11226 total_size +=
11227 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
11228 _internal_metadata_.unknown_fields());
11229 }
11230 ::google::protobuf::uint32 cached_has_bits = 0;
11231 // Prevent compiler warnings about cached_has_bits being unused
11232 (void) cached_has_bits;
11233
11234 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
11235 SetCachedSize(cached_size);
11236 return total_size;
11237}
11238
11239void GetDmLogLevelRequest::MergeFrom(const ::google::protobuf::Message& from) {
11240// @@protoc_insertion_point(generalized_merge_from_start:dmi.GetDmLogLevelRequest)
11241 GOOGLE_DCHECK_NE(&from, this);
11242 const GetDmLogLevelRequest* source =
11243 ::google::protobuf::DynamicCastToGenerated<GetDmLogLevelRequest>(
11244 &from);
11245 if (source == nullptr) {
11246 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.GetDmLogLevelRequest)
11247 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
11248 } else {
11249 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.GetDmLogLevelRequest)
11250 MergeFrom(*source);
11251 }
11252}
11253
11254void GetDmLogLevelRequest::MergeFrom(const GetDmLogLevelRequest& from) {
11255// @@protoc_insertion_point(class_specific_merge_from_start:dmi.GetDmLogLevelRequest)
11256 GOOGLE_DCHECK_NE(&from, this);
11257 _internal_metadata_.MergeFrom(from._internal_metadata_);
11258 ::google::protobuf::uint32 cached_has_bits = 0;
11259 (void) cached_has_bits;
11260
11261}
11262
11263void GetDmLogLevelRequest::CopyFrom(const ::google::protobuf::Message& from) {
11264// @@protoc_insertion_point(generalized_copy_from_start:dmi.GetDmLogLevelRequest)
11265 if (&from == this) return;
11266 Clear();
11267 MergeFrom(from);
11268}
11269
11270void GetDmLogLevelRequest::CopyFrom(const GetDmLogLevelRequest& from) {
11271// @@protoc_insertion_point(class_specific_copy_from_start:dmi.GetDmLogLevelRequest)
11272 if (&from == this) return;
11273 Clear();
11274 MergeFrom(from);
11275}
11276
11277bool GetDmLogLevelRequest::IsInitialized() const {
11278 return true;
11279}
11280
11281void GetDmLogLevelRequest::Swap(GetDmLogLevelRequest* other) {
11282 if (other == this) return;
11283 InternalSwap(other);
11284}
11285void GetDmLogLevelRequest::InternalSwap(GetDmLogLevelRequest* other) {
11286 using std::swap;
11287 _internal_metadata_.Swap(&other->_internal_metadata_);
11288}
11289
11290::google::protobuf::Metadata GetDmLogLevelRequest::GetMetadata() const {
11291 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
11292 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
11293}
11294
11295
11296// ===================================================================
11297
11298void GetDmLogLevelResponse::InitAsDefaultInstance() {
11299}
11300class GetDmLogLevelResponse::HasBitSetters {
11301 public:
11302};
11303
11304#if !defined(_MSC_VER) || _MSC_VER >= 1900
11305const int GetDmLogLevelResponse::kLevelFieldNumber;
11306const int GetDmLogLevelResponse::kStatusFieldNumber;
11307const int GetDmLogLevelResponse::kReasonFieldNumber;
11308const int GetDmLogLevelResponse::kReasonDetailFieldNumber;
11309#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
11310
11311GetDmLogLevelResponse::GetDmLogLevelResponse()
11312 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
11313 SharedCtor();
11314 // @@protoc_insertion_point(constructor:dmi.GetDmLogLevelResponse)
11315}
11316GetDmLogLevelResponse::GetDmLogLevelResponse(const GetDmLogLevelResponse& from)
11317 : ::google::protobuf::Message(),
11318 _internal_metadata_(nullptr) {
11319 _internal_metadata_.MergeFrom(from._internal_metadata_);
11320 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11321 if (from.reason_detail().size() > 0) {
11322 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
11323 }
11324 ::memcpy(&level_, &from.level_,
11325 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
11326 reinterpret_cast<char*>(&level_)) + sizeof(reason_));
11327 // @@protoc_insertion_point(copy_constructor:dmi.GetDmLogLevelResponse)
11328}
11329
11330void GetDmLogLevelResponse::SharedCtor() {
11331 ::google::protobuf::internal::InitSCC(
11332 &scc_info_GetDmLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
11333 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11334 ::memset(&level_, 0, static_cast<size_t>(
11335 reinterpret_cast<char*>(&reason_) -
11336 reinterpret_cast<char*>(&level_)) + sizeof(reason_));
11337}
11338
11339GetDmLogLevelResponse::~GetDmLogLevelResponse() {
11340 // @@protoc_insertion_point(destructor:dmi.GetDmLogLevelResponse)
11341 SharedDtor();
11342}
11343
11344void GetDmLogLevelResponse::SharedDtor() {
11345 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11346}
11347
11348void GetDmLogLevelResponse::SetCachedSize(int size) const {
11349 _cached_size_.Set(size);
11350}
11351const GetDmLogLevelResponse& GetDmLogLevelResponse::default_instance() {
11352 ::google::protobuf::internal::InitSCC(&::scc_info_GetDmLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
11353 return *internal_default_instance();
11354}
11355
11356
11357void GetDmLogLevelResponse::Clear() {
11358// @@protoc_insertion_point(message_clear_start:dmi.GetDmLogLevelResponse)
11359 ::google::protobuf::uint32 cached_has_bits = 0;
11360 // Prevent compiler warnings about cached_has_bits being unused
11361 (void) cached_has_bits;
11362
11363 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11364 ::memset(&level_, 0, static_cast<size_t>(
11365 reinterpret_cast<char*>(&reason_) -
11366 reinterpret_cast<char*>(&level_)) + sizeof(reason_));
11367 _internal_metadata_.Clear();
11368}
11369
11370#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
11371const char* GetDmLogLevelResponse::_InternalParse(const char* begin, const char* end, void* object,
11372 ::google::protobuf::internal::ParseContext* ctx) {
11373 auto msg = static_cast<GetDmLogLevelResponse*>(object);
11374 ::google::protobuf::int32 size; (void)size;
11375 int depth; (void)depth;
11376 ::google::protobuf::uint32 tag;
11377 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
11378 auto ptr = begin;
11379 while (ptr < end) {
11380 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
11381 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
11382 switch (tag >> 3) {
11383 // .dmi.LogLevel level = 1;
11384 case 1: {
11385 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
11386 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
11387 msg->set_level(static_cast<::dmi::LogLevel>(val));
11388 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
11389 break;
11390 }
11391 // .dmi.Status status = 2;
11392 case 2: {
11393 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
11394 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
11395 msg->set_status(static_cast<::dmi::Status>(val));
11396 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
11397 break;
11398 }
11399 // .dmi.GetDmLogLevelResponse.Reason reason = 3;
11400 case 3: {
11401 if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual;
11402 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
11403 msg->set_reason(static_cast<::dmi::GetDmLogLevelResponse_Reason>(val));
11404 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
11405 break;
11406 }
11407 // string reason_detail = 4;
11408 case 4: {
11409 if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual;
11410 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
11411 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
11412 ctx->extra_parse_data().SetFieldName("dmi.GetDmLogLevelResponse.reason_detail");
11413 object = msg->mutable_reason_detail();
11414 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
11415 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
11416 goto string_till_end;
11417 }
11418 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
11419 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
11420 ptr += size;
11421 break;
11422 }
11423 default: {
11424 handle_unusual:
11425 if ((tag & 7) == 4 || tag == 0) {
11426 ctx->EndGroup(tag);
11427 return ptr;
11428 }
11429 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
11430 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
11431 ptr = res.first;
11432 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
11433 if (res.second) return ptr;
11434 }
11435 } // switch
11436 } // while
11437 return ptr;
11438string_till_end:
11439 static_cast<::std::string*>(object)->clear();
11440 static_cast<::std::string*>(object)->reserve(size);
11441 goto len_delim_till_end;
11442len_delim_till_end:
11443 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
11444 {parser_till_end, object}, size);
11445}
11446#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
11447bool GetDmLogLevelResponse::MergePartialFromCodedStream(
11448 ::google::protobuf::io::CodedInputStream* input) {
11449#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
11450 ::google::protobuf::uint32 tag;
11451 // @@protoc_insertion_point(parse_start:dmi.GetDmLogLevelResponse)
11452 for (;;) {
11453 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
11454 tag = p.first;
11455 if (!p.second) goto handle_unusual;
11456 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
11457 // .dmi.LogLevel level = 1;
11458 case 1: {
11459 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
11460 int value = 0;
11461 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
11462 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
11463 input, &value)));
11464 set_level(static_cast< ::dmi::LogLevel >(value));
11465 } else {
11466 goto handle_unusual;
11467 }
11468 break;
11469 }
11470
11471 // .dmi.Status status = 2;
11472 case 2: {
11473 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
11474 int value = 0;
11475 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
11476 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
11477 input, &value)));
11478 set_status(static_cast< ::dmi::Status >(value));
11479 } else {
11480 goto handle_unusual;
11481 }
11482 break;
11483 }
11484
11485 // .dmi.GetDmLogLevelResponse.Reason reason = 3;
11486 case 3: {
11487 if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) {
11488 int value = 0;
11489 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
11490 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
11491 input, &value)));
11492 set_reason(static_cast< ::dmi::GetDmLogLevelResponse_Reason >(value));
11493 } else {
11494 goto handle_unusual;
11495 }
11496 break;
11497 }
11498
11499 // string reason_detail = 4;
11500 case 4: {
11501 if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
11502 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
11503 input, this->mutable_reason_detail()));
11504 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
11505 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
11506 ::google::protobuf::internal::WireFormatLite::PARSE,
11507 "dmi.GetDmLogLevelResponse.reason_detail"));
11508 } else {
11509 goto handle_unusual;
11510 }
11511 break;
11512 }
11513
11514 default: {
11515 handle_unusual:
11516 if (tag == 0) {
11517 goto success;
11518 }
11519 DO_(::google::protobuf::internal::WireFormat::SkipField(
11520 input, tag, _internal_metadata_.mutable_unknown_fields()));
11521 break;
11522 }
11523 }
11524 }
11525success:
11526 // @@protoc_insertion_point(parse_success:dmi.GetDmLogLevelResponse)
11527 return true;
11528failure:
11529 // @@protoc_insertion_point(parse_failure:dmi.GetDmLogLevelResponse)
11530 return false;
11531#undef DO_
11532}
11533#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
11534
11535void GetDmLogLevelResponse::SerializeWithCachedSizes(
11536 ::google::protobuf::io::CodedOutputStream* output) const {
11537 // @@protoc_insertion_point(serialize_start:dmi.GetDmLogLevelResponse)
11538 ::google::protobuf::uint32 cached_has_bits = 0;
11539 (void) cached_has_bits;
11540
11541 // .dmi.LogLevel level = 1;
11542 if (this->level() != 0) {
11543 ::google::protobuf::internal::WireFormatLite::WriteEnum(
11544 1, this->level(), output);
11545 }
11546
11547 // .dmi.Status status = 2;
11548 if (this->status() != 0) {
11549 ::google::protobuf::internal::WireFormatLite::WriteEnum(
11550 2, this->status(), output);
11551 }
11552
11553 // .dmi.GetDmLogLevelResponse.Reason reason = 3;
11554 if (this->reason() != 0) {
11555 ::google::protobuf::internal::WireFormatLite::WriteEnum(
11556 3, this->reason(), output);
11557 }
11558
11559 // string reason_detail = 4;
11560 if (this->reason_detail().size() > 0) {
11561 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
11562 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
11563 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
11564 "dmi.GetDmLogLevelResponse.reason_detail");
11565 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
11566 4, this->reason_detail(), output);
11567 }
11568
11569 if (_internal_metadata_.have_unknown_fields()) {
11570 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
11571 _internal_metadata_.unknown_fields(), output);
11572 }
11573 // @@protoc_insertion_point(serialize_end:dmi.GetDmLogLevelResponse)
11574}
11575
11576::google::protobuf::uint8* GetDmLogLevelResponse::InternalSerializeWithCachedSizesToArray(
11577 ::google::protobuf::uint8* target) const {
11578 // @@protoc_insertion_point(serialize_to_array_start:dmi.GetDmLogLevelResponse)
11579 ::google::protobuf::uint32 cached_has_bits = 0;
11580 (void) cached_has_bits;
11581
11582 // .dmi.LogLevel level = 1;
11583 if (this->level() != 0) {
11584 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
11585 1, this->level(), target);
11586 }
11587
11588 // .dmi.Status status = 2;
11589 if (this->status() != 0) {
11590 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
11591 2, this->status(), target);
11592 }
11593
11594 // .dmi.GetDmLogLevelResponse.Reason reason = 3;
11595 if (this->reason() != 0) {
11596 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
11597 3, this->reason(), target);
11598 }
11599
11600 // string reason_detail = 4;
11601 if (this->reason_detail().size() > 0) {
11602 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
11603 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
11604 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
11605 "dmi.GetDmLogLevelResponse.reason_detail");
11606 target =
11607 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
11608 4, this->reason_detail(), target);
11609 }
11610
11611 if (_internal_metadata_.have_unknown_fields()) {
11612 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
11613 _internal_metadata_.unknown_fields(), target);
11614 }
11615 // @@protoc_insertion_point(serialize_to_array_end:dmi.GetDmLogLevelResponse)
11616 return target;
11617}
11618
11619size_t GetDmLogLevelResponse::ByteSizeLong() const {
11620// @@protoc_insertion_point(message_byte_size_start:dmi.GetDmLogLevelResponse)
11621 size_t total_size = 0;
11622
11623 if (_internal_metadata_.have_unknown_fields()) {
11624 total_size +=
11625 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
11626 _internal_metadata_.unknown_fields());
11627 }
11628 ::google::protobuf::uint32 cached_has_bits = 0;
11629 // Prevent compiler warnings about cached_has_bits being unused
11630 (void) cached_has_bits;
11631
11632 // string reason_detail = 4;
11633 if (this->reason_detail().size() > 0) {
11634 total_size += 1 +
11635 ::google::protobuf::internal::WireFormatLite::StringSize(
11636 this->reason_detail());
11637 }
11638
11639 // .dmi.LogLevel level = 1;
11640 if (this->level() != 0) {
11641 total_size += 1 +
11642 ::google::protobuf::internal::WireFormatLite::EnumSize(this->level());
11643 }
11644
11645 // .dmi.Status status = 2;
11646 if (this->status() != 0) {
11647 total_size += 1 +
11648 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
11649 }
11650
11651 // .dmi.GetDmLogLevelResponse.Reason reason = 3;
11652 if (this->reason() != 0) {
11653 total_size += 1 +
11654 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
11655 }
11656
11657 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
11658 SetCachedSize(cached_size);
11659 return total_size;
11660}
11661
11662void GetDmLogLevelResponse::MergeFrom(const ::google::protobuf::Message& from) {
11663// @@protoc_insertion_point(generalized_merge_from_start:dmi.GetDmLogLevelResponse)
11664 GOOGLE_DCHECK_NE(&from, this);
11665 const GetDmLogLevelResponse* source =
11666 ::google::protobuf::DynamicCastToGenerated<GetDmLogLevelResponse>(
11667 &from);
11668 if (source == nullptr) {
11669 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.GetDmLogLevelResponse)
11670 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
11671 } else {
11672 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.GetDmLogLevelResponse)
11673 MergeFrom(*source);
11674 }
11675}
11676
11677void GetDmLogLevelResponse::MergeFrom(const GetDmLogLevelResponse& from) {
11678// @@protoc_insertion_point(class_specific_merge_from_start:dmi.GetDmLogLevelResponse)
11679 GOOGLE_DCHECK_NE(&from, this);
11680 _internal_metadata_.MergeFrom(from._internal_metadata_);
11681 ::google::protobuf::uint32 cached_has_bits = 0;
11682 (void) cached_has_bits;
11683
11684 if (from.reason_detail().size() > 0) {
11685
11686 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
11687 }
11688 if (from.level() != 0) {
11689 set_level(from.level());
11690 }
11691 if (from.status() != 0) {
11692 set_status(from.status());
11693 }
11694 if (from.reason() != 0) {
11695 set_reason(from.reason());
11696 }
11697}
11698
11699void GetDmLogLevelResponse::CopyFrom(const ::google::protobuf::Message& from) {
11700// @@protoc_insertion_point(generalized_copy_from_start:dmi.GetDmLogLevelResponse)
11701 if (&from == this) return;
11702 Clear();
11703 MergeFrom(from);
11704}
11705
11706void GetDmLogLevelResponse::CopyFrom(const GetDmLogLevelResponse& from) {
11707// @@protoc_insertion_point(class_specific_copy_from_start:dmi.GetDmLogLevelResponse)
11708 if (&from == this) return;
11709 Clear();
11710 MergeFrom(from);
11711}
11712
11713bool GetDmLogLevelResponse::IsInitialized() const {
11714 return true;
11715}
11716
11717void GetDmLogLevelResponse::Swap(GetDmLogLevelResponse* other) {
11718 if (other == this) return;
11719 InternalSwap(other);
11720}
11721void GetDmLogLevelResponse::InternalSwap(GetDmLogLevelResponse* other) {
11722 using std::swap;
11723 _internal_metadata_.Swap(&other->_internal_metadata_);
11724 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
11725 GetArenaNoVirtual());
11726 swap(level_, other->level_);
11727 swap(status_, other->status_);
11728 swap(reason_, other->reason_);
11729}
11730
11731::google::protobuf::Metadata GetDmLogLevelResponse::GetMetadata() const {
11732 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
11733 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
11734}
11735
11736
11737// ===================================================================
11738
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +053011739void Heartbeat::InitAsDefaultInstance() {
11740}
11741class Heartbeat::HasBitSetters {
11742 public:
11743};
11744
11745#if !defined(_MSC_VER) || _MSC_VER >= 1900
11746const int Heartbeat::kHeartbeatSignatureFieldNumber;
11747#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
11748
11749Heartbeat::Heartbeat()
11750 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
11751 SharedCtor();
11752 // @@protoc_insertion_point(constructor:dmi.Heartbeat)
11753}
11754Heartbeat::Heartbeat(const Heartbeat& from)
11755 : ::google::protobuf::Message(),
11756 _internal_metadata_(nullptr) {
11757 _internal_metadata_.MergeFrom(from._internal_metadata_);
11758 heartbeat_signature_ = from.heartbeat_signature_;
11759 // @@protoc_insertion_point(copy_constructor:dmi.Heartbeat)
11760}
11761
11762void Heartbeat::SharedCtor() {
11763 heartbeat_signature_ = 0u;
11764}
11765
11766Heartbeat::~Heartbeat() {
11767 // @@protoc_insertion_point(destructor:dmi.Heartbeat)
11768 SharedDtor();
11769}
11770
11771void Heartbeat::SharedDtor() {
11772}
11773
11774void Heartbeat::SetCachedSize(int size) const {
11775 _cached_size_.Set(size);
11776}
11777const Heartbeat& Heartbeat::default_instance() {
11778 ::google::protobuf::internal::InitSCC(&::scc_info_Heartbeat_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
11779 return *internal_default_instance();
11780}
11781
11782
11783void Heartbeat::Clear() {
11784// @@protoc_insertion_point(message_clear_start:dmi.Heartbeat)
11785 ::google::protobuf::uint32 cached_has_bits = 0;
11786 // Prevent compiler warnings about cached_has_bits being unused
11787 (void) cached_has_bits;
11788
11789 heartbeat_signature_ = 0u;
11790 _internal_metadata_.Clear();
11791}
11792
11793#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
11794const char* Heartbeat::_InternalParse(const char* begin, const char* end, void* object,
11795 ::google::protobuf::internal::ParseContext* ctx) {
11796 auto msg = static_cast<Heartbeat*>(object);
11797 ::google::protobuf::int32 size; (void)size;
11798 int depth; (void)depth;
11799 ::google::protobuf::uint32 tag;
11800 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
11801 auto ptr = begin;
11802 while (ptr < end) {
11803 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
11804 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
11805 switch (tag >> 3) {
11806 // fixed32 heartbeat_signature = 1;
11807 case 1: {
11808 if (static_cast<::google::protobuf::uint8>(tag) != 13) goto handle_unusual;
11809 msg->set_heartbeat_signature(::google::protobuf::io::UnalignedLoad<::google::protobuf::uint32>(ptr));
11810 ptr += sizeof(::google::protobuf::uint32);
11811 break;
11812 }
11813 default: {
11814 handle_unusual:
11815 if ((tag & 7) == 4 || tag == 0) {
11816 ctx->EndGroup(tag);
11817 return ptr;
11818 }
11819 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
11820 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
11821 ptr = res.first;
11822 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
11823 if (res.second) return ptr;
11824 }
11825 } // switch
11826 } // while
11827 return ptr;
11828}
11829#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
11830bool Heartbeat::MergePartialFromCodedStream(
11831 ::google::protobuf::io::CodedInputStream* input) {
11832#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
11833 ::google::protobuf::uint32 tag;
11834 // @@protoc_insertion_point(parse_start:dmi.Heartbeat)
11835 for (;;) {
11836 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
11837 tag = p.first;
11838 if (!p.second) goto handle_unusual;
11839 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
11840 // fixed32 heartbeat_signature = 1;
11841 case 1: {
11842 if (static_cast< ::google::protobuf::uint8>(tag) == (13 & 0xFF)) {
11843
11844 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
11845 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>(
11846 input, &heartbeat_signature_)));
11847 } else {
11848 goto handle_unusual;
11849 }
11850 break;
11851 }
11852
11853 default: {
11854 handle_unusual:
11855 if (tag == 0) {
11856 goto success;
11857 }
11858 DO_(::google::protobuf::internal::WireFormat::SkipField(
11859 input, tag, _internal_metadata_.mutable_unknown_fields()));
11860 break;
11861 }
11862 }
11863 }
11864success:
11865 // @@protoc_insertion_point(parse_success:dmi.Heartbeat)
11866 return true;
11867failure:
11868 // @@protoc_insertion_point(parse_failure:dmi.Heartbeat)
11869 return false;
11870#undef DO_
11871}
11872#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
11873
11874void Heartbeat::SerializeWithCachedSizes(
11875 ::google::protobuf::io::CodedOutputStream* output) const {
11876 // @@protoc_insertion_point(serialize_start:dmi.Heartbeat)
11877 ::google::protobuf::uint32 cached_has_bits = 0;
11878 (void) cached_has_bits;
11879
11880 // fixed32 heartbeat_signature = 1;
11881 if (this->heartbeat_signature() != 0) {
11882 ::google::protobuf::internal::WireFormatLite::WriteFixed32(1, this->heartbeat_signature(), output);
11883 }
11884
11885 if (_internal_metadata_.have_unknown_fields()) {
11886 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
11887 _internal_metadata_.unknown_fields(), output);
11888 }
11889 // @@protoc_insertion_point(serialize_end:dmi.Heartbeat)
11890}
11891
11892::google::protobuf::uint8* Heartbeat::InternalSerializeWithCachedSizesToArray(
11893 ::google::protobuf::uint8* target) const {
11894 // @@protoc_insertion_point(serialize_to_array_start:dmi.Heartbeat)
11895 ::google::protobuf::uint32 cached_has_bits = 0;
11896 (void) cached_has_bits;
11897
11898 // fixed32 heartbeat_signature = 1;
11899 if (this->heartbeat_signature() != 0) {
11900 target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(1, this->heartbeat_signature(), target);
11901 }
11902
11903 if (_internal_metadata_.have_unknown_fields()) {
11904 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
11905 _internal_metadata_.unknown_fields(), target);
11906 }
11907 // @@protoc_insertion_point(serialize_to_array_end:dmi.Heartbeat)
11908 return target;
11909}
11910
11911size_t Heartbeat::ByteSizeLong() const {
11912// @@protoc_insertion_point(message_byte_size_start:dmi.Heartbeat)
11913 size_t total_size = 0;
11914
11915 if (_internal_metadata_.have_unknown_fields()) {
11916 total_size +=
11917 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
11918 _internal_metadata_.unknown_fields());
11919 }
11920 ::google::protobuf::uint32 cached_has_bits = 0;
11921 // Prevent compiler warnings about cached_has_bits being unused
11922 (void) cached_has_bits;
11923
11924 // fixed32 heartbeat_signature = 1;
11925 if (this->heartbeat_signature() != 0) {
11926 total_size += 1 + 4;
11927 }
11928
11929 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
11930 SetCachedSize(cached_size);
11931 return total_size;
11932}
11933
11934void Heartbeat::MergeFrom(const ::google::protobuf::Message& from) {
11935// @@protoc_insertion_point(generalized_merge_from_start:dmi.Heartbeat)
11936 GOOGLE_DCHECK_NE(&from, this);
11937 const Heartbeat* source =
11938 ::google::protobuf::DynamicCastToGenerated<Heartbeat>(
11939 &from);
11940 if (source == nullptr) {
11941 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.Heartbeat)
11942 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
11943 } else {
11944 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.Heartbeat)
11945 MergeFrom(*source);
11946 }
11947}
11948
11949void Heartbeat::MergeFrom(const Heartbeat& from) {
11950// @@protoc_insertion_point(class_specific_merge_from_start:dmi.Heartbeat)
11951 GOOGLE_DCHECK_NE(&from, this);
11952 _internal_metadata_.MergeFrom(from._internal_metadata_);
11953 ::google::protobuf::uint32 cached_has_bits = 0;
11954 (void) cached_has_bits;
11955
11956 if (from.heartbeat_signature() != 0) {
11957 set_heartbeat_signature(from.heartbeat_signature());
11958 }
11959}
11960
11961void Heartbeat::CopyFrom(const ::google::protobuf::Message& from) {
11962// @@protoc_insertion_point(generalized_copy_from_start:dmi.Heartbeat)
11963 if (&from == this) return;
11964 Clear();
11965 MergeFrom(from);
11966}
11967
11968void Heartbeat::CopyFrom(const Heartbeat& from) {
11969// @@protoc_insertion_point(class_specific_copy_from_start:dmi.Heartbeat)
11970 if (&from == this) return;
11971 Clear();
11972 MergeFrom(from);
11973}
11974
11975bool Heartbeat::IsInitialized() const {
11976 return true;
11977}
11978
11979void Heartbeat::Swap(Heartbeat* other) {
11980 if (other == this) return;
11981 InternalSwap(other);
11982}
11983void Heartbeat::InternalSwap(Heartbeat* other) {
11984 using std::swap;
11985 _internal_metadata_.Swap(&other->_internal_metadata_);
11986 swap(heartbeat_signature_, other->heartbeat_signature_);
11987}
11988
11989::google::protobuf::Metadata Heartbeat::GetMetadata() const {
11990 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
11991 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
11992}
11993
11994
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +053011995// ===================================================================
11996
11997void RebootDeviceRequest::InitAsDefaultInstance() {
11998 ::dmi::_RebootDeviceRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
11999 ::dmi::Uuid::internal_default_instance());
12000}
12001class RebootDeviceRequest::HasBitSetters {
12002 public:
12003 static const ::dmi::Uuid& device_uuid(const RebootDeviceRequest* msg);
12004};
12005
12006const ::dmi::Uuid&
12007RebootDeviceRequest::HasBitSetters::device_uuid(const RebootDeviceRequest* msg) {
12008 return *msg->device_uuid_;
12009}
12010void RebootDeviceRequest::clear_device_uuid() {
12011 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
12012 delete device_uuid_;
12013 }
12014 device_uuid_ = nullptr;
12015}
12016#if !defined(_MSC_VER) || _MSC_VER >= 1900
12017const int RebootDeviceRequest::kDeviceUuidFieldNumber;
12018#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
12019
12020RebootDeviceRequest::RebootDeviceRequest()
12021 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
12022 SharedCtor();
12023 // @@protoc_insertion_point(constructor:dmi.RebootDeviceRequest)
12024}
12025RebootDeviceRequest::RebootDeviceRequest(const RebootDeviceRequest& from)
12026 : ::google::protobuf::Message(),
12027 _internal_metadata_(nullptr) {
12028 _internal_metadata_.MergeFrom(from._internal_metadata_);
12029 if (from.has_device_uuid()) {
12030 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
12031 } else {
12032 device_uuid_ = nullptr;
12033 }
12034 // @@protoc_insertion_point(copy_constructor:dmi.RebootDeviceRequest)
12035}
12036
12037void RebootDeviceRequest::SharedCtor() {
12038 ::google::protobuf::internal::InitSCC(
12039 &scc_info_RebootDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
12040 device_uuid_ = nullptr;
12041}
12042
12043RebootDeviceRequest::~RebootDeviceRequest() {
12044 // @@protoc_insertion_point(destructor:dmi.RebootDeviceRequest)
12045 SharedDtor();
12046}
12047
12048void RebootDeviceRequest::SharedDtor() {
12049 if (this != internal_default_instance()) delete device_uuid_;
12050}
12051
12052void RebootDeviceRequest::SetCachedSize(int size) const {
12053 _cached_size_.Set(size);
12054}
12055const RebootDeviceRequest& RebootDeviceRequest::default_instance() {
12056 ::google::protobuf::internal::InitSCC(&::scc_info_RebootDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
12057 return *internal_default_instance();
12058}
12059
12060
12061void RebootDeviceRequest::Clear() {
12062// @@protoc_insertion_point(message_clear_start:dmi.RebootDeviceRequest)
12063 ::google::protobuf::uint32 cached_has_bits = 0;
12064 // Prevent compiler warnings about cached_has_bits being unused
12065 (void) cached_has_bits;
12066
12067 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
12068 delete device_uuid_;
12069 }
12070 device_uuid_ = nullptr;
12071 _internal_metadata_.Clear();
12072}
12073
12074#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
12075const char* RebootDeviceRequest::_InternalParse(const char* begin, const char* end, void* object,
12076 ::google::protobuf::internal::ParseContext* ctx) {
12077 auto msg = static_cast<RebootDeviceRequest*>(object);
12078 ::google::protobuf::int32 size; (void)size;
12079 int depth; (void)depth;
12080 ::google::protobuf::uint32 tag;
12081 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
12082 auto ptr = begin;
12083 while (ptr < end) {
12084 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
12085 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
12086 switch (tag >> 3) {
12087 // .dmi.Uuid device_uuid = 1;
12088 case 1: {
12089 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
12090 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
12091 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
12092 parser_till_end = ::dmi::Uuid::_InternalParse;
12093 object = msg->mutable_device_uuid();
12094 if (size > end - ptr) goto len_delim_till_end;
12095 ptr += size;
12096 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
12097 {parser_till_end, object}, ptr - size, ptr));
12098 break;
12099 }
12100 default: {
12101 handle_unusual:
12102 if ((tag & 7) == 4 || tag == 0) {
12103 ctx->EndGroup(tag);
12104 return ptr;
12105 }
12106 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
12107 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
12108 ptr = res.first;
12109 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
12110 if (res.second) return ptr;
12111 }
12112 } // switch
12113 } // while
12114 return ptr;
12115len_delim_till_end:
12116 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
12117 {parser_till_end, object}, size);
12118}
12119#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
12120bool RebootDeviceRequest::MergePartialFromCodedStream(
12121 ::google::protobuf::io::CodedInputStream* input) {
12122#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
12123 ::google::protobuf::uint32 tag;
12124 // @@protoc_insertion_point(parse_start:dmi.RebootDeviceRequest)
12125 for (;;) {
12126 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
12127 tag = p.first;
12128 if (!p.second) goto handle_unusual;
12129 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
12130 // .dmi.Uuid device_uuid = 1;
12131 case 1: {
12132 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
12133 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
12134 input, mutable_device_uuid()));
12135 } else {
12136 goto handle_unusual;
12137 }
12138 break;
12139 }
12140
12141 default: {
12142 handle_unusual:
12143 if (tag == 0) {
12144 goto success;
12145 }
12146 DO_(::google::protobuf::internal::WireFormat::SkipField(
12147 input, tag, _internal_metadata_.mutable_unknown_fields()));
12148 break;
12149 }
12150 }
12151 }
12152success:
12153 // @@protoc_insertion_point(parse_success:dmi.RebootDeviceRequest)
12154 return true;
12155failure:
12156 // @@protoc_insertion_point(parse_failure:dmi.RebootDeviceRequest)
12157 return false;
12158#undef DO_
12159}
12160#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
12161
12162void RebootDeviceRequest::SerializeWithCachedSizes(
12163 ::google::protobuf::io::CodedOutputStream* output) const {
12164 // @@protoc_insertion_point(serialize_start:dmi.RebootDeviceRequest)
12165 ::google::protobuf::uint32 cached_has_bits = 0;
12166 (void) cached_has_bits;
12167
12168 // .dmi.Uuid device_uuid = 1;
12169 if (this->has_device_uuid()) {
12170 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
12171 1, HasBitSetters::device_uuid(this), output);
12172 }
12173
12174 if (_internal_metadata_.have_unknown_fields()) {
12175 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
12176 _internal_metadata_.unknown_fields(), output);
12177 }
12178 // @@protoc_insertion_point(serialize_end:dmi.RebootDeviceRequest)
12179}
12180
12181::google::protobuf::uint8* RebootDeviceRequest::InternalSerializeWithCachedSizesToArray(
12182 ::google::protobuf::uint8* target) const {
12183 // @@protoc_insertion_point(serialize_to_array_start:dmi.RebootDeviceRequest)
12184 ::google::protobuf::uint32 cached_has_bits = 0;
12185 (void) cached_has_bits;
12186
12187 // .dmi.Uuid device_uuid = 1;
12188 if (this->has_device_uuid()) {
12189 target = ::google::protobuf::internal::WireFormatLite::
12190 InternalWriteMessageToArray(
12191 1, HasBitSetters::device_uuid(this), target);
12192 }
12193
12194 if (_internal_metadata_.have_unknown_fields()) {
12195 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
12196 _internal_metadata_.unknown_fields(), target);
12197 }
12198 // @@protoc_insertion_point(serialize_to_array_end:dmi.RebootDeviceRequest)
12199 return target;
12200}
12201
12202size_t RebootDeviceRequest::ByteSizeLong() const {
12203// @@protoc_insertion_point(message_byte_size_start:dmi.RebootDeviceRequest)
12204 size_t total_size = 0;
12205
12206 if (_internal_metadata_.have_unknown_fields()) {
12207 total_size +=
12208 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
12209 _internal_metadata_.unknown_fields());
12210 }
12211 ::google::protobuf::uint32 cached_has_bits = 0;
12212 // Prevent compiler warnings about cached_has_bits being unused
12213 (void) cached_has_bits;
12214
12215 // .dmi.Uuid device_uuid = 1;
12216 if (this->has_device_uuid()) {
12217 total_size += 1 +
12218 ::google::protobuf::internal::WireFormatLite::MessageSize(
12219 *device_uuid_);
12220 }
12221
12222 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
12223 SetCachedSize(cached_size);
12224 return total_size;
12225}
12226
12227void RebootDeviceRequest::MergeFrom(const ::google::protobuf::Message& from) {
12228// @@protoc_insertion_point(generalized_merge_from_start:dmi.RebootDeviceRequest)
12229 GOOGLE_DCHECK_NE(&from, this);
12230 const RebootDeviceRequest* source =
12231 ::google::protobuf::DynamicCastToGenerated<RebootDeviceRequest>(
12232 &from);
12233 if (source == nullptr) {
12234 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.RebootDeviceRequest)
12235 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
12236 } else {
12237 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.RebootDeviceRequest)
12238 MergeFrom(*source);
12239 }
12240}
12241
12242void RebootDeviceRequest::MergeFrom(const RebootDeviceRequest& from) {
12243// @@protoc_insertion_point(class_specific_merge_from_start:dmi.RebootDeviceRequest)
12244 GOOGLE_DCHECK_NE(&from, this);
12245 _internal_metadata_.MergeFrom(from._internal_metadata_);
12246 ::google::protobuf::uint32 cached_has_bits = 0;
12247 (void) cached_has_bits;
12248
12249 if (from.has_device_uuid()) {
12250 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
12251 }
12252}
12253
12254void RebootDeviceRequest::CopyFrom(const ::google::protobuf::Message& from) {
12255// @@protoc_insertion_point(generalized_copy_from_start:dmi.RebootDeviceRequest)
12256 if (&from == this) return;
12257 Clear();
12258 MergeFrom(from);
12259}
12260
12261void RebootDeviceRequest::CopyFrom(const RebootDeviceRequest& from) {
12262// @@protoc_insertion_point(class_specific_copy_from_start:dmi.RebootDeviceRequest)
12263 if (&from == this) return;
12264 Clear();
12265 MergeFrom(from);
12266}
12267
12268bool RebootDeviceRequest::IsInitialized() const {
12269 return true;
12270}
12271
12272void RebootDeviceRequest::Swap(RebootDeviceRequest* other) {
12273 if (other == this) return;
12274 InternalSwap(other);
12275}
12276void RebootDeviceRequest::InternalSwap(RebootDeviceRequest* other) {
12277 using std::swap;
12278 _internal_metadata_.Swap(&other->_internal_metadata_);
12279 swap(device_uuid_, other->device_uuid_);
12280}
12281
12282::google::protobuf::Metadata RebootDeviceRequest::GetMetadata() const {
12283 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
12284 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
12285}
12286
12287
12288// ===================================================================
12289
12290void RebootDeviceResponse::InitAsDefaultInstance() {
12291}
12292class RebootDeviceResponse::HasBitSetters {
12293 public:
12294};
12295
12296#if !defined(_MSC_VER) || _MSC_VER >= 1900
12297const int RebootDeviceResponse::kStatusFieldNumber;
12298const int RebootDeviceResponse::kReasonFieldNumber;
12299const int RebootDeviceResponse::kReasonDetailFieldNumber;
12300#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
12301
12302RebootDeviceResponse::RebootDeviceResponse()
12303 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
12304 SharedCtor();
12305 // @@protoc_insertion_point(constructor:dmi.RebootDeviceResponse)
12306}
12307RebootDeviceResponse::RebootDeviceResponse(const RebootDeviceResponse& from)
12308 : ::google::protobuf::Message(),
12309 _internal_metadata_(nullptr) {
12310 _internal_metadata_.MergeFrom(from._internal_metadata_);
12311 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12312 if (from.reason_detail().size() > 0) {
12313 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
12314 }
12315 ::memcpy(&status_, &from.status_,
12316 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
12317 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
12318 // @@protoc_insertion_point(copy_constructor:dmi.RebootDeviceResponse)
12319}
12320
12321void RebootDeviceResponse::SharedCtor() {
12322 ::google::protobuf::internal::InitSCC(
12323 &scc_info_RebootDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
12324 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12325 ::memset(&status_, 0, static_cast<size_t>(
12326 reinterpret_cast<char*>(&reason_) -
12327 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
12328}
12329
12330RebootDeviceResponse::~RebootDeviceResponse() {
12331 // @@protoc_insertion_point(destructor:dmi.RebootDeviceResponse)
12332 SharedDtor();
12333}
12334
12335void RebootDeviceResponse::SharedDtor() {
12336 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12337}
12338
12339void RebootDeviceResponse::SetCachedSize(int size) const {
12340 _cached_size_.Set(size);
12341}
12342const RebootDeviceResponse& RebootDeviceResponse::default_instance() {
12343 ::google::protobuf::internal::InitSCC(&::scc_info_RebootDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
12344 return *internal_default_instance();
12345}
12346
12347
12348void RebootDeviceResponse::Clear() {
12349// @@protoc_insertion_point(message_clear_start:dmi.RebootDeviceResponse)
12350 ::google::protobuf::uint32 cached_has_bits = 0;
12351 // Prevent compiler warnings about cached_has_bits being unused
12352 (void) cached_has_bits;
12353
12354 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12355 ::memset(&status_, 0, static_cast<size_t>(
12356 reinterpret_cast<char*>(&reason_) -
12357 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
12358 _internal_metadata_.Clear();
12359}
12360
12361#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
12362const char* RebootDeviceResponse::_InternalParse(const char* begin, const char* end, void* object,
12363 ::google::protobuf::internal::ParseContext* ctx) {
12364 auto msg = static_cast<RebootDeviceResponse*>(object);
12365 ::google::protobuf::int32 size; (void)size;
12366 int depth; (void)depth;
12367 ::google::protobuf::uint32 tag;
12368 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
12369 auto ptr = begin;
12370 while (ptr < end) {
12371 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
12372 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
12373 switch (tag >> 3) {
12374 // .dmi.Status status = 3;
12375 case 3: {
12376 if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual;
12377 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
12378 msg->set_status(static_cast<::dmi::Status>(val));
12379 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
12380 break;
12381 }
12382 // .dmi.RebootDeviceResponse.Reason reason = 4;
12383 case 4: {
12384 if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual;
12385 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
12386 msg->set_reason(static_cast<::dmi::RebootDeviceResponse_Reason>(val));
12387 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
12388 break;
12389 }
12390 // string reason_detail = 5;
12391 case 5: {
12392 if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual;
12393 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
12394 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
12395 ctx->extra_parse_data().SetFieldName("dmi.RebootDeviceResponse.reason_detail");
12396 object = msg->mutable_reason_detail();
12397 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
12398 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
12399 goto string_till_end;
12400 }
12401 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
12402 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
12403 ptr += size;
12404 break;
12405 }
12406 default: {
12407 handle_unusual:
12408 if ((tag & 7) == 4 || tag == 0) {
12409 ctx->EndGroup(tag);
12410 return ptr;
12411 }
12412 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
12413 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
12414 ptr = res.first;
12415 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
12416 if (res.second) return ptr;
12417 }
12418 } // switch
12419 } // while
12420 return ptr;
12421string_till_end:
12422 static_cast<::std::string*>(object)->clear();
12423 static_cast<::std::string*>(object)->reserve(size);
12424 goto len_delim_till_end;
12425len_delim_till_end:
12426 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
12427 {parser_till_end, object}, size);
12428}
12429#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
12430bool RebootDeviceResponse::MergePartialFromCodedStream(
12431 ::google::protobuf::io::CodedInputStream* input) {
12432#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
12433 ::google::protobuf::uint32 tag;
12434 // @@protoc_insertion_point(parse_start:dmi.RebootDeviceResponse)
12435 for (;;) {
12436 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
12437 tag = p.first;
12438 if (!p.second) goto handle_unusual;
12439 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
12440 // .dmi.Status status = 3;
12441 case 3: {
12442 if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) {
12443 int value = 0;
12444 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
12445 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
12446 input, &value)));
12447 set_status(static_cast< ::dmi::Status >(value));
12448 } else {
12449 goto handle_unusual;
12450 }
12451 break;
12452 }
12453
12454 // .dmi.RebootDeviceResponse.Reason reason = 4;
12455 case 4: {
12456 if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) {
12457 int value = 0;
12458 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
12459 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
12460 input, &value)));
12461 set_reason(static_cast< ::dmi::RebootDeviceResponse_Reason >(value));
12462 } else {
12463 goto handle_unusual;
12464 }
12465 break;
12466 }
12467
12468 // string reason_detail = 5;
12469 case 5: {
12470 if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) {
12471 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
12472 input, this->mutable_reason_detail()));
12473 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
12474 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
12475 ::google::protobuf::internal::WireFormatLite::PARSE,
12476 "dmi.RebootDeviceResponse.reason_detail"));
12477 } else {
12478 goto handle_unusual;
12479 }
12480 break;
12481 }
12482
12483 default: {
12484 handle_unusual:
12485 if (tag == 0) {
12486 goto success;
12487 }
12488 DO_(::google::protobuf::internal::WireFormat::SkipField(
12489 input, tag, _internal_metadata_.mutable_unknown_fields()));
12490 break;
12491 }
12492 }
12493 }
12494success:
12495 // @@protoc_insertion_point(parse_success:dmi.RebootDeviceResponse)
12496 return true;
12497failure:
12498 // @@protoc_insertion_point(parse_failure:dmi.RebootDeviceResponse)
12499 return false;
12500#undef DO_
12501}
12502#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
12503
12504void RebootDeviceResponse::SerializeWithCachedSizes(
12505 ::google::protobuf::io::CodedOutputStream* output) const {
12506 // @@protoc_insertion_point(serialize_start:dmi.RebootDeviceResponse)
12507 ::google::protobuf::uint32 cached_has_bits = 0;
12508 (void) cached_has_bits;
12509
12510 // .dmi.Status status = 3;
12511 if (this->status() != 0) {
12512 ::google::protobuf::internal::WireFormatLite::WriteEnum(
12513 3, this->status(), output);
12514 }
12515
12516 // .dmi.RebootDeviceResponse.Reason reason = 4;
12517 if (this->reason() != 0) {
12518 ::google::protobuf::internal::WireFormatLite::WriteEnum(
12519 4, this->reason(), output);
12520 }
12521
12522 // string reason_detail = 5;
12523 if (this->reason_detail().size() > 0) {
12524 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
12525 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
12526 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
12527 "dmi.RebootDeviceResponse.reason_detail");
12528 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
12529 5, this->reason_detail(), output);
12530 }
12531
12532 if (_internal_metadata_.have_unknown_fields()) {
12533 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
12534 _internal_metadata_.unknown_fields(), output);
12535 }
12536 // @@protoc_insertion_point(serialize_end:dmi.RebootDeviceResponse)
12537}
12538
12539::google::protobuf::uint8* RebootDeviceResponse::InternalSerializeWithCachedSizesToArray(
12540 ::google::protobuf::uint8* target) const {
12541 // @@protoc_insertion_point(serialize_to_array_start:dmi.RebootDeviceResponse)
12542 ::google::protobuf::uint32 cached_has_bits = 0;
12543 (void) cached_has_bits;
12544
12545 // .dmi.Status status = 3;
12546 if (this->status() != 0) {
12547 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
12548 3, this->status(), target);
12549 }
12550
12551 // .dmi.RebootDeviceResponse.Reason reason = 4;
12552 if (this->reason() != 0) {
12553 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
12554 4, this->reason(), target);
12555 }
12556
12557 // string reason_detail = 5;
12558 if (this->reason_detail().size() > 0) {
12559 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
12560 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
12561 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
12562 "dmi.RebootDeviceResponse.reason_detail");
12563 target =
12564 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
12565 5, this->reason_detail(), target);
12566 }
12567
12568 if (_internal_metadata_.have_unknown_fields()) {
12569 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
12570 _internal_metadata_.unknown_fields(), target);
12571 }
12572 // @@protoc_insertion_point(serialize_to_array_end:dmi.RebootDeviceResponse)
12573 return target;
12574}
12575
12576size_t RebootDeviceResponse::ByteSizeLong() const {
12577// @@protoc_insertion_point(message_byte_size_start:dmi.RebootDeviceResponse)
12578 size_t total_size = 0;
12579
12580 if (_internal_metadata_.have_unknown_fields()) {
12581 total_size +=
12582 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
12583 _internal_metadata_.unknown_fields());
12584 }
12585 ::google::protobuf::uint32 cached_has_bits = 0;
12586 // Prevent compiler warnings about cached_has_bits being unused
12587 (void) cached_has_bits;
12588
12589 // string reason_detail = 5;
12590 if (this->reason_detail().size() > 0) {
12591 total_size += 1 +
12592 ::google::protobuf::internal::WireFormatLite::StringSize(
12593 this->reason_detail());
12594 }
12595
12596 // .dmi.Status status = 3;
12597 if (this->status() != 0) {
12598 total_size += 1 +
12599 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
12600 }
12601
12602 // .dmi.RebootDeviceResponse.Reason reason = 4;
12603 if (this->reason() != 0) {
12604 total_size += 1 +
12605 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
12606 }
12607
12608 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
12609 SetCachedSize(cached_size);
12610 return total_size;
12611}
12612
12613void RebootDeviceResponse::MergeFrom(const ::google::protobuf::Message& from) {
12614// @@protoc_insertion_point(generalized_merge_from_start:dmi.RebootDeviceResponse)
12615 GOOGLE_DCHECK_NE(&from, this);
12616 const RebootDeviceResponse* source =
12617 ::google::protobuf::DynamicCastToGenerated<RebootDeviceResponse>(
12618 &from);
12619 if (source == nullptr) {
12620 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.RebootDeviceResponse)
12621 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
12622 } else {
12623 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.RebootDeviceResponse)
12624 MergeFrom(*source);
12625 }
12626}
12627
12628void RebootDeviceResponse::MergeFrom(const RebootDeviceResponse& from) {
12629// @@protoc_insertion_point(class_specific_merge_from_start:dmi.RebootDeviceResponse)
12630 GOOGLE_DCHECK_NE(&from, this);
12631 _internal_metadata_.MergeFrom(from._internal_metadata_);
12632 ::google::protobuf::uint32 cached_has_bits = 0;
12633 (void) cached_has_bits;
12634
12635 if (from.reason_detail().size() > 0) {
12636
12637 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
12638 }
12639 if (from.status() != 0) {
12640 set_status(from.status());
12641 }
12642 if (from.reason() != 0) {
12643 set_reason(from.reason());
12644 }
12645}
12646
12647void RebootDeviceResponse::CopyFrom(const ::google::protobuf::Message& from) {
12648// @@protoc_insertion_point(generalized_copy_from_start:dmi.RebootDeviceResponse)
12649 if (&from == this) return;
12650 Clear();
12651 MergeFrom(from);
12652}
12653
12654void RebootDeviceResponse::CopyFrom(const RebootDeviceResponse& from) {
12655// @@protoc_insertion_point(class_specific_copy_from_start:dmi.RebootDeviceResponse)
12656 if (&from == this) return;
12657 Clear();
12658 MergeFrom(from);
12659}
12660
12661bool RebootDeviceResponse::IsInitialized() const {
12662 return true;
12663}
12664
12665void RebootDeviceResponse::Swap(RebootDeviceResponse* other) {
12666 if (other == this) return;
12667 InternalSwap(other);
12668}
12669void RebootDeviceResponse::InternalSwap(RebootDeviceResponse* other) {
12670 using std::swap;
12671 _internal_metadata_.Swap(&other->_internal_metadata_);
12672 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
12673 GetArenaNoVirtual());
12674 swap(status_, other->status_);
12675 swap(reason_, other->reason_);
12676}
12677
12678::google::protobuf::Metadata RebootDeviceResponse::GetMetadata() const {
12679 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
12680 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
12681}
12682
12683
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +053012684// @@protoc_insertion_point(namespace_scope)
12685} // namespace dmi
12686namespace google {
12687namespace protobuf {
12688template<> PROTOBUF_NOINLINE ::dmi::PhysicalInventoryRequest* Arena::CreateMaybeMessage< ::dmi::PhysicalInventoryRequest >(Arena* arena) {
12689 return Arena::CreateInternal< ::dmi::PhysicalInventoryRequest >(arena);
12690}
12691template<> PROTOBUF_NOINLINE ::dmi::PhysicalInventoryResponse* Arena::CreateMaybeMessage< ::dmi::PhysicalInventoryResponse >(Arena* arena) {
12692 return Arena::CreateInternal< ::dmi::PhysicalInventoryResponse >(arena);
12693}
12694template<> PROTOBUF_NOINLINE ::dmi::HWComponentInfoGetRequest* Arena::CreateMaybeMessage< ::dmi::HWComponentInfoGetRequest >(Arena* arena) {
12695 return Arena::CreateInternal< ::dmi::HWComponentInfoGetRequest >(arena);
12696}
12697template<> PROTOBUF_NOINLINE ::dmi::HWComponentInfoGetResponse* Arena::CreateMaybeMessage< ::dmi::HWComponentInfoGetResponse >(Arena* arena) {
12698 return Arena::CreateInternal< ::dmi::HWComponentInfoGetResponse >(arena);
12699}
12700template<> PROTOBUF_NOINLINE ::dmi::HWComponentInfoSetRequest* Arena::CreateMaybeMessage< ::dmi::HWComponentInfoSetRequest >(Arena* arena) {
12701 return Arena::CreateInternal< ::dmi::HWComponentInfoSetRequest >(arena);
12702}
12703template<> PROTOBUF_NOINLINE ::dmi::HWComponentInfoSetResponse* Arena::CreateMaybeMessage< ::dmi::HWComponentInfoSetResponse >(Arena* arena) {
12704 return Arena::CreateInternal< ::dmi::HWComponentInfoSetResponse >(arena);
12705}
12706template<> PROTOBUF_NOINLINE ::dmi::StartManagingDeviceResponse* Arena::CreateMaybeMessage< ::dmi::StartManagingDeviceResponse >(Arena* arena) {
12707 return Arena::CreateInternal< ::dmi::StartManagingDeviceResponse >(arena);
12708}
12709template<> PROTOBUF_NOINLINE ::dmi::StopManagingDeviceRequest* Arena::CreateMaybeMessage< ::dmi::StopManagingDeviceRequest >(Arena* arena) {
12710 return Arena::CreateInternal< ::dmi::StopManagingDeviceRequest >(arena);
12711}
12712template<> PROTOBUF_NOINLINE ::dmi::StopManagingDeviceResponse* Arena::CreateMaybeMessage< ::dmi::StopManagingDeviceResponse >(Arena* arena) {
12713 return Arena::CreateInternal< ::dmi::StopManagingDeviceResponse >(arena);
12714}
12715template<> PROTOBUF_NOINLINE ::dmi::ManagedDeviceInfo* Arena::CreateMaybeMessage< ::dmi::ManagedDeviceInfo >(Arena* arena) {
12716 return Arena::CreateInternal< ::dmi::ManagedDeviceInfo >(arena);
12717}
12718template<> PROTOBUF_NOINLINE ::dmi::ManagedDevicesResponse* Arena::CreateMaybeMessage< ::dmi::ManagedDevicesResponse >(Arena* arena) {
12719 return Arena::CreateInternal< ::dmi::ManagedDevicesResponse >(arena);
12720}
12721template<> PROTOBUF_NOINLINE ::dmi::SetLoggingEndpointRequest* Arena::CreateMaybeMessage< ::dmi::SetLoggingEndpointRequest >(Arena* arena) {
12722 return Arena::CreateInternal< ::dmi::SetLoggingEndpointRequest >(arena);
12723}
12724template<> PROTOBUF_NOINLINE ::dmi::SetRemoteEndpointResponse* Arena::CreateMaybeMessage< ::dmi::SetRemoteEndpointResponse >(Arena* arena) {
12725 return Arena::CreateInternal< ::dmi::SetRemoteEndpointResponse >(arena);
12726}
12727template<> PROTOBUF_NOINLINE ::dmi::GetLoggingEndpointResponse* Arena::CreateMaybeMessage< ::dmi::GetLoggingEndpointResponse >(Arena* arena) {
12728 return Arena::CreateInternal< ::dmi::GetLoggingEndpointResponse >(arena);
12729}
12730template<> PROTOBUF_NOINLINE ::dmi::SetMsgBusEndpointRequest* Arena::CreateMaybeMessage< ::dmi::SetMsgBusEndpointRequest >(Arena* arena) {
12731 return Arena::CreateInternal< ::dmi::SetMsgBusEndpointRequest >(arena);
12732}
12733template<> PROTOBUF_NOINLINE ::dmi::GetMsgBusEndpointResponse* Arena::CreateMaybeMessage< ::dmi::GetMsgBusEndpointResponse >(Arena* arena) {
12734 return Arena::CreateInternal< ::dmi::GetMsgBusEndpointResponse >(arena);
12735}
12736template<> PROTOBUF_NOINLINE ::dmi::EntitiesLogLevel* Arena::CreateMaybeMessage< ::dmi::EntitiesLogLevel >(Arena* arena) {
12737 return Arena::CreateInternal< ::dmi::EntitiesLogLevel >(arena);
12738}
12739template<> PROTOBUF_NOINLINE ::dmi::SetLogLevelRequest* Arena::CreateMaybeMessage< ::dmi::SetLogLevelRequest >(Arena* arena) {
12740 return Arena::CreateInternal< ::dmi::SetLogLevelRequest >(arena);
12741}
12742template<> PROTOBUF_NOINLINE ::dmi::SetLogLevelResponse* Arena::CreateMaybeMessage< ::dmi::SetLogLevelResponse >(Arena* arena) {
12743 return Arena::CreateInternal< ::dmi::SetLogLevelResponse >(arena);
12744}
12745template<> PROTOBUF_NOINLINE ::dmi::GetLogLevelRequest* Arena::CreateMaybeMessage< ::dmi::GetLogLevelRequest >(Arena* arena) {
12746 return Arena::CreateInternal< ::dmi::GetLogLevelRequest >(arena);
12747}
12748template<> PROTOBUF_NOINLINE ::dmi::GetLogLevelResponse* Arena::CreateMaybeMessage< ::dmi::GetLogLevelResponse >(Arena* arena) {
12749 return Arena::CreateInternal< ::dmi::GetLogLevelResponse >(arena);
12750}
12751template<> PROTOBUF_NOINLINE ::dmi::GetLoggableEntitiesRequest* Arena::CreateMaybeMessage< ::dmi::GetLoggableEntitiesRequest >(Arena* arena) {
12752 return Arena::CreateInternal< ::dmi::GetLoggableEntitiesRequest >(arena);
12753}
amit.ghosh93183512024-05-28 22:37:27 +020012754template<> PROTOBUF_NOINLINE ::dmi::SetDmLogLevelRequest* Arena::CreateMaybeMessage< ::dmi::SetDmLogLevelRequest >(Arena* arena) {
12755 return Arena::CreateInternal< ::dmi::SetDmLogLevelRequest >(arena);
12756}
12757template<> PROTOBUF_NOINLINE ::dmi::SetDmLogLevelResponse* Arena::CreateMaybeMessage< ::dmi::SetDmLogLevelResponse >(Arena* arena) {
12758 return Arena::CreateInternal< ::dmi::SetDmLogLevelResponse >(arena);
12759}
12760template<> PROTOBUF_NOINLINE ::dmi::GetDmLogLevelRequest* Arena::CreateMaybeMessage< ::dmi::GetDmLogLevelRequest >(Arena* arena) {
12761 return Arena::CreateInternal< ::dmi::GetDmLogLevelRequest >(arena);
12762}
12763template<> PROTOBUF_NOINLINE ::dmi::GetDmLogLevelResponse* Arena::CreateMaybeMessage< ::dmi::GetDmLogLevelResponse >(Arena* arena) {
12764 return Arena::CreateInternal< ::dmi::GetDmLogLevelResponse >(arena);
12765}
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +053012766template<> PROTOBUF_NOINLINE ::dmi::Heartbeat* Arena::CreateMaybeMessage< ::dmi::Heartbeat >(Arena* arena) {
12767 return Arena::CreateInternal< ::dmi::Heartbeat >(arena);
12768}
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +053012769template<> PROTOBUF_NOINLINE ::dmi::RebootDeviceRequest* Arena::CreateMaybeMessage< ::dmi::RebootDeviceRequest >(Arena* arena) {
12770 return Arena::CreateInternal< ::dmi::RebootDeviceRequest >(arena);
12771}
12772template<> PROTOBUF_NOINLINE ::dmi::RebootDeviceResponse* Arena::CreateMaybeMessage< ::dmi::RebootDeviceResponse >(Arena* arena) {
12773 return Arena::CreateInternal< ::dmi::RebootDeviceResponse >(arena);
12774}
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +053012775} // namespace protobuf
12776} // namespace google
12777
12778// @@protoc_insertion_point(global_scope)
12779#include <google/protobuf/port_undef.inc>