blob: 7b03bb01d80ec85f0d623e4c6c1295ccb8729ea3 [file] [log] [blame]
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: dmi/hw_management_service.proto
3
4#include "dmi/hw_management_service.pb.h"
5
6#include <algorithm>
7
8#include <google/protobuf/stubs/common.h>
9#include <google/protobuf/io/coded_stream.h>
10#include <google/protobuf/extension_set.h>
11#include <google/protobuf/wire_format_lite_inl.h>
12#include <google/protobuf/descriptor.h>
13#include <google/protobuf/generated_message_reflection.h>
14#include <google/protobuf/reflection_ops.h>
15#include <google/protobuf/wire_format.h>
16// @@protoc_insertion_point(includes)
17#include <google/protobuf/port_def.inc>
18
19extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Uuid_dmi_2fhw_2eproto;
20extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_Hardware_dmi_2fhw_2eproto;
21extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_ModifiableComponent_dmi_2fhw_2eproto;
22extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<9> scc_info_Component_dmi_2fhw_2eproto;
23extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_5fmanagement_5fservice_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_EntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto;
24extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_5fmanagement_5fservice_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_ManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto;
25namespace dmi {
26class PhysicalInventoryRequestDefaultTypeInternal {
27 public:
28 ::google::protobuf::internal::ExplicitlyConstructed<PhysicalInventoryRequest> _instance;
29} _PhysicalInventoryRequest_default_instance_;
30class PhysicalInventoryResponseDefaultTypeInternal {
31 public:
32 ::google::protobuf::internal::ExplicitlyConstructed<PhysicalInventoryResponse> _instance;
33} _PhysicalInventoryResponse_default_instance_;
34class HWComponentInfoGetRequestDefaultTypeInternal {
35 public:
36 ::google::protobuf::internal::ExplicitlyConstructed<HWComponentInfoGetRequest> _instance;
37} _HWComponentInfoGetRequest_default_instance_;
38class HWComponentInfoGetResponseDefaultTypeInternal {
39 public:
40 ::google::protobuf::internal::ExplicitlyConstructed<HWComponentInfoGetResponse> _instance;
41} _HWComponentInfoGetResponse_default_instance_;
42class HWComponentInfoSetRequestDefaultTypeInternal {
43 public:
44 ::google::protobuf::internal::ExplicitlyConstructed<HWComponentInfoSetRequest> _instance;
45} _HWComponentInfoSetRequest_default_instance_;
46class HWComponentInfoSetResponseDefaultTypeInternal {
47 public:
48 ::google::protobuf::internal::ExplicitlyConstructed<HWComponentInfoSetResponse> _instance;
49} _HWComponentInfoSetResponse_default_instance_;
50class StartManagingDeviceResponseDefaultTypeInternal {
51 public:
52 ::google::protobuf::internal::ExplicitlyConstructed<StartManagingDeviceResponse> _instance;
53} _StartManagingDeviceResponse_default_instance_;
54class StopManagingDeviceRequestDefaultTypeInternal {
55 public:
56 ::google::protobuf::internal::ExplicitlyConstructed<StopManagingDeviceRequest> _instance;
57} _StopManagingDeviceRequest_default_instance_;
58class StopManagingDeviceResponseDefaultTypeInternal {
59 public:
60 ::google::protobuf::internal::ExplicitlyConstructed<StopManagingDeviceResponse> _instance;
61} _StopManagingDeviceResponse_default_instance_;
62class ManagedDeviceInfoDefaultTypeInternal {
63 public:
64 ::google::protobuf::internal::ExplicitlyConstructed<ManagedDeviceInfo> _instance;
65} _ManagedDeviceInfo_default_instance_;
66class ManagedDevicesResponseDefaultTypeInternal {
67 public:
68 ::google::protobuf::internal::ExplicitlyConstructed<ManagedDevicesResponse> _instance;
69} _ManagedDevicesResponse_default_instance_;
70class SetLoggingEndpointRequestDefaultTypeInternal {
71 public:
72 ::google::protobuf::internal::ExplicitlyConstructed<SetLoggingEndpointRequest> _instance;
73} _SetLoggingEndpointRequest_default_instance_;
74class SetRemoteEndpointResponseDefaultTypeInternal {
75 public:
76 ::google::protobuf::internal::ExplicitlyConstructed<SetRemoteEndpointResponse> _instance;
77} _SetRemoteEndpointResponse_default_instance_;
78class GetLoggingEndpointResponseDefaultTypeInternal {
79 public:
80 ::google::protobuf::internal::ExplicitlyConstructed<GetLoggingEndpointResponse> _instance;
81} _GetLoggingEndpointResponse_default_instance_;
82class SetMsgBusEndpointRequestDefaultTypeInternal {
83 public:
84 ::google::protobuf::internal::ExplicitlyConstructed<SetMsgBusEndpointRequest> _instance;
85} _SetMsgBusEndpointRequest_default_instance_;
86class GetMsgBusEndpointResponseDefaultTypeInternal {
87 public:
88 ::google::protobuf::internal::ExplicitlyConstructed<GetMsgBusEndpointResponse> _instance;
89} _GetMsgBusEndpointResponse_default_instance_;
90class EntitiesLogLevelDefaultTypeInternal {
91 public:
92 ::google::protobuf::internal::ExplicitlyConstructed<EntitiesLogLevel> _instance;
93} _EntitiesLogLevel_default_instance_;
94class SetLogLevelRequestDefaultTypeInternal {
95 public:
96 ::google::protobuf::internal::ExplicitlyConstructed<SetLogLevelRequest> _instance;
97} _SetLogLevelRequest_default_instance_;
98class SetLogLevelResponseDefaultTypeInternal {
99 public:
100 ::google::protobuf::internal::ExplicitlyConstructed<SetLogLevelResponse> _instance;
101} _SetLogLevelResponse_default_instance_;
102class GetLogLevelRequestDefaultTypeInternal {
103 public:
104 ::google::protobuf::internal::ExplicitlyConstructed<GetLogLevelRequest> _instance;
105} _GetLogLevelRequest_default_instance_;
106class GetLogLevelResponseDefaultTypeInternal {
107 public:
108 ::google::protobuf::internal::ExplicitlyConstructed<GetLogLevelResponse> _instance;
109} _GetLogLevelResponse_default_instance_;
110class GetLoggableEntitiesRequestDefaultTypeInternal {
111 public:
112 ::google::protobuf::internal::ExplicitlyConstructed<GetLoggableEntitiesRequest> _instance;
113} _GetLoggableEntitiesRequest_default_instance_;
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +0530114class HeartbeatDefaultTypeInternal {
115 public:
116 ::google::protobuf::internal::ExplicitlyConstructed<Heartbeat> _instance;
117} _Heartbeat_default_instance_;
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530118class RebootDeviceRequestDefaultTypeInternal {
119 public:
120 ::google::protobuf::internal::ExplicitlyConstructed<RebootDeviceRequest> _instance;
121} _RebootDeviceRequest_default_instance_;
122class RebootDeviceResponseDefaultTypeInternal {
123 public:
124 ::google::protobuf::internal::ExplicitlyConstructed<RebootDeviceResponse> _instance;
125} _RebootDeviceResponse_default_instance_;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530126} // namespace dmi
127static void InitDefaultsPhysicalInventoryRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() {
128 GOOGLE_PROTOBUF_VERIFY_VERSION;
129
130 {
131 void* ptr = &::dmi::_PhysicalInventoryRequest_default_instance_;
132 new (ptr) ::dmi::PhysicalInventoryRequest();
133 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
134 }
135 ::dmi::PhysicalInventoryRequest::InitAsDefaultInstance();
136}
137
138::google::protobuf::internal::SCCInfo<1> scc_info_PhysicalInventoryRequest_dmi_2fhw_5fmanagement_5fservice_2eproto =
139 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsPhysicalInventoryRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, {
140 &scc_info_Uuid_dmi_2fhw_2eproto.base,}};
141
142static void InitDefaultsPhysicalInventoryResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() {
143 GOOGLE_PROTOBUF_VERIFY_VERSION;
144
145 {
146 void* ptr = &::dmi::_PhysicalInventoryResponse_default_instance_;
147 new (ptr) ::dmi::PhysicalInventoryResponse();
148 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
149 }
150 ::dmi::PhysicalInventoryResponse::InitAsDefaultInstance();
151}
152
153::google::protobuf::internal::SCCInfo<1> scc_info_PhysicalInventoryResponse_dmi_2fhw_5fmanagement_5fservice_2eproto =
154 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsPhysicalInventoryResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {
155 &scc_info_Hardware_dmi_2fhw_2eproto.base,}};
156
157static void InitDefaultsHWComponentInfoGetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() {
158 GOOGLE_PROTOBUF_VERIFY_VERSION;
159
160 {
161 void* ptr = &::dmi::_HWComponentInfoGetRequest_default_instance_;
162 new (ptr) ::dmi::HWComponentInfoGetRequest();
163 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
164 }
165 ::dmi::HWComponentInfoGetRequest::InitAsDefaultInstance();
166}
167
168::google::protobuf::internal::SCCInfo<1> scc_info_HWComponentInfoGetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto =
169 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsHWComponentInfoGetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, {
170 &scc_info_Uuid_dmi_2fhw_2eproto.base,}};
171
172static void InitDefaultsHWComponentInfoGetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() {
173 GOOGLE_PROTOBUF_VERIFY_VERSION;
174
175 {
176 void* ptr = &::dmi::_HWComponentInfoGetResponse_default_instance_;
177 new (ptr) ::dmi::HWComponentInfoGetResponse();
178 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
179 }
180 ::dmi::HWComponentInfoGetResponse::InitAsDefaultInstance();
181}
182
183::google::protobuf::internal::SCCInfo<1> scc_info_HWComponentInfoGetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto =
184 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsHWComponentInfoGetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {
185 &scc_info_Component_dmi_2fhw_2eproto.base,}};
186
187static void InitDefaultsHWComponentInfoSetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() {
188 GOOGLE_PROTOBUF_VERIFY_VERSION;
189
190 {
191 void* ptr = &::dmi::_HWComponentInfoSetRequest_default_instance_;
192 new (ptr) ::dmi::HWComponentInfoSetRequest();
193 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
194 }
195 ::dmi::HWComponentInfoSetRequest::InitAsDefaultInstance();
196}
197
198::google::protobuf::internal::SCCInfo<2> scc_info_HWComponentInfoSetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto =
199 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsHWComponentInfoSetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, {
200 &scc_info_Uuid_dmi_2fhw_2eproto.base,
201 &scc_info_ModifiableComponent_dmi_2fhw_2eproto.base,}};
202
203static void InitDefaultsHWComponentInfoSetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() {
204 GOOGLE_PROTOBUF_VERIFY_VERSION;
205
206 {
207 void* ptr = &::dmi::_HWComponentInfoSetResponse_default_instance_;
208 new (ptr) ::dmi::HWComponentInfoSetResponse();
209 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
210 }
211 ::dmi::HWComponentInfoSetResponse::InitAsDefaultInstance();
212}
213
214::google::protobuf::internal::SCCInfo<0> scc_info_HWComponentInfoSetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto =
215 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsHWComponentInfoSetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}};
216
217static void InitDefaultsStartManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() {
218 GOOGLE_PROTOBUF_VERIFY_VERSION;
219
220 {
221 void* ptr = &::dmi::_StartManagingDeviceResponse_default_instance_;
222 new (ptr) ::dmi::StartManagingDeviceResponse();
223 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
224 }
225 ::dmi::StartManagingDeviceResponse::InitAsDefaultInstance();
226}
227
228::google::protobuf::internal::SCCInfo<1> scc_info_StartManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto =
229 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsStartManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {
230 &scc_info_Uuid_dmi_2fhw_2eproto.base,}};
231
232static void InitDefaultsStopManagingDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() {
233 GOOGLE_PROTOBUF_VERIFY_VERSION;
234
235 {
236 void* ptr = &::dmi::_StopManagingDeviceRequest_default_instance_;
237 new (ptr) ::dmi::StopManagingDeviceRequest();
238 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
239 }
240 ::dmi::StopManagingDeviceRequest::InitAsDefaultInstance();
241}
242
243::google::protobuf::internal::SCCInfo<0> scc_info_StopManagingDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto =
244 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStopManagingDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}};
245
246static void InitDefaultsStopManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() {
247 GOOGLE_PROTOBUF_VERIFY_VERSION;
248
249 {
250 void* ptr = &::dmi::_StopManagingDeviceResponse_default_instance_;
251 new (ptr) ::dmi::StopManagingDeviceResponse();
252 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
253 }
254 ::dmi::StopManagingDeviceResponse::InitAsDefaultInstance();
255}
256
257::google::protobuf::internal::SCCInfo<0> scc_info_StopManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto =
258 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStopManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}};
259
260static void InitDefaultsManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto() {
261 GOOGLE_PROTOBUF_VERIFY_VERSION;
262
263 {
264 void* ptr = &::dmi::_ManagedDeviceInfo_default_instance_;
265 new (ptr) ::dmi::ManagedDeviceInfo();
266 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
267 }
268 ::dmi::ManagedDeviceInfo::InitAsDefaultInstance();
269}
270
271::google::protobuf::internal::SCCInfo<2> scc_info_ManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto =
272 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto}, {
273 &scc_info_ModifiableComponent_dmi_2fhw_2eproto.base,
274 &scc_info_Uuid_dmi_2fhw_2eproto.base,}};
275
276static void InitDefaultsManagedDevicesResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() {
277 GOOGLE_PROTOBUF_VERIFY_VERSION;
278
279 {
280 void* ptr = &::dmi::_ManagedDevicesResponse_default_instance_;
281 new (ptr) ::dmi::ManagedDevicesResponse();
282 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
283 }
284 ::dmi::ManagedDevicesResponse::InitAsDefaultInstance();
285}
286
287::google::protobuf::internal::SCCInfo<1> scc_info_ManagedDevicesResponse_dmi_2fhw_5fmanagement_5fservice_2eproto =
288 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsManagedDevicesResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {
289 &scc_info_ManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto.base,}};
290
291static void InitDefaultsSetLoggingEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() {
292 GOOGLE_PROTOBUF_VERIFY_VERSION;
293
294 {
295 void* ptr = &::dmi::_SetLoggingEndpointRequest_default_instance_;
296 new (ptr) ::dmi::SetLoggingEndpointRequest();
297 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
298 }
299 ::dmi::SetLoggingEndpointRequest::InitAsDefaultInstance();
300}
301
302::google::protobuf::internal::SCCInfo<1> scc_info_SetLoggingEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto =
303 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsSetLoggingEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, {
304 &scc_info_Uuid_dmi_2fhw_2eproto.base,}};
305
306static void InitDefaultsSetRemoteEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() {
307 GOOGLE_PROTOBUF_VERIFY_VERSION;
308
309 {
310 void* ptr = &::dmi::_SetRemoteEndpointResponse_default_instance_;
311 new (ptr) ::dmi::SetRemoteEndpointResponse();
312 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
313 }
314 ::dmi::SetRemoteEndpointResponse::InitAsDefaultInstance();
315}
316
317::google::protobuf::internal::SCCInfo<0> scc_info_SetRemoteEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto =
318 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSetRemoteEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}};
319
320static void InitDefaultsGetLoggingEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() {
321 GOOGLE_PROTOBUF_VERIFY_VERSION;
322
323 {
324 void* ptr = &::dmi::_GetLoggingEndpointResponse_default_instance_;
325 new (ptr) ::dmi::GetLoggingEndpointResponse();
326 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
327 }
328 ::dmi::GetLoggingEndpointResponse::InitAsDefaultInstance();
329}
330
331::google::protobuf::internal::SCCInfo<0> scc_info_GetLoggingEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto =
332 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetLoggingEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}};
333
334static void InitDefaultsSetMsgBusEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() {
335 GOOGLE_PROTOBUF_VERIFY_VERSION;
336
337 {
338 void* ptr = &::dmi::_SetMsgBusEndpointRequest_default_instance_;
339 new (ptr) ::dmi::SetMsgBusEndpointRequest();
340 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
341 }
342 ::dmi::SetMsgBusEndpointRequest::InitAsDefaultInstance();
343}
344
345::google::protobuf::internal::SCCInfo<0> scc_info_SetMsgBusEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto =
346 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSetMsgBusEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}};
347
348static void InitDefaultsGetMsgBusEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() {
349 GOOGLE_PROTOBUF_VERIFY_VERSION;
350
351 {
352 void* ptr = &::dmi::_GetMsgBusEndpointResponse_default_instance_;
353 new (ptr) ::dmi::GetMsgBusEndpointResponse();
354 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
355 }
356 ::dmi::GetMsgBusEndpointResponse::InitAsDefaultInstance();
357}
358
359::google::protobuf::internal::SCCInfo<0> scc_info_GetMsgBusEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto =
360 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetMsgBusEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}};
361
362static void InitDefaultsEntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto() {
363 GOOGLE_PROTOBUF_VERIFY_VERSION;
364
365 {
366 void* ptr = &::dmi::_EntitiesLogLevel_default_instance_;
367 new (ptr) ::dmi::EntitiesLogLevel();
368 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
369 }
370 ::dmi::EntitiesLogLevel::InitAsDefaultInstance();
371}
372
373::google::protobuf::internal::SCCInfo<0> scc_info_EntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto =
374 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}};
375
376static void InitDefaultsSetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() {
377 GOOGLE_PROTOBUF_VERIFY_VERSION;
378
379 {
380 void* ptr = &::dmi::_SetLogLevelRequest_default_instance_;
381 new (ptr) ::dmi::SetLogLevelRequest();
382 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
383 }
384 ::dmi::SetLogLevelRequest::InitAsDefaultInstance();
385}
386
387::google::protobuf::internal::SCCInfo<2> scc_info_SetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto =
388 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsSetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, {
389 &scc_info_Uuid_dmi_2fhw_2eproto.base,
390 &scc_info_EntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto.base,}};
391
392static void InitDefaultsSetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() {
393 GOOGLE_PROTOBUF_VERIFY_VERSION;
394
395 {
396 void* ptr = &::dmi::_SetLogLevelResponse_default_instance_;
397 new (ptr) ::dmi::SetLogLevelResponse();
398 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
399 }
400 ::dmi::SetLogLevelResponse::InitAsDefaultInstance();
401}
402
403::google::protobuf::internal::SCCInfo<1> scc_info_SetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto =
404 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsSetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {
405 &scc_info_Uuid_dmi_2fhw_2eproto.base,}};
406
407static void InitDefaultsGetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() {
408 GOOGLE_PROTOBUF_VERIFY_VERSION;
409
410 {
411 void* ptr = &::dmi::_GetLogLevelRequest_default_instance_;
412 new (ptr) ::dmi::GetLogLevelRequest();
413 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
414 }
415 ::dmi::GetLogLevelRequest::InitAsDefaultInstance();
416}
417
418::google::protobuf::internal::SCCInfo<1> scc_info_GetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto =
419 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, {
420 &scc_info_Uuid_dmi_2fhw_2eproto.base,}};
421
422static void InitDefaultsGetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() {
423 GOOGLE_PROTOBUF_VERIFY_VERSION;
424
425 {
426 void* ptr = &::dmi::_GetLogLevelResponse_default_instance_;
427 new (ptr) ::dmi::GetLogLevelResponse();
428 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
429 }
430 ::dmi::GetLogLevelResponse::InitAsDefaultInstance();
431}
432
433::google::protobuf::internal::SCCInfo<2> scc_info_GetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto =
434 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsGetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {
435 &scc_info_Uuid_dmi_2fhw_2eproto.base,
436 &scc_info_EntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto.base,}};
437
438static void InitDefaultsGetLoggableEntitiesRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() {
439 GOOGLE_PROTOBUF_VERIFY_VERSION;
440
441 {
442 void* ptr = &::dmi::_GetLoggableEntitiesRequest_default_instance_;
443 new (ptr) ::dmi::GetLoggableEntitiesRequest();
444 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
445 }
446 ::dmi::GetLoggableEntitiesRequest::InitAsDefaultInstance();
447}
448
449::google::protobuf::internal::SCCInfo<1> scc_info_GetLoggableEntitiesRequest_dmi_2fhw_5fmanagement_5fservice_2eproto =
450 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetLoggableEntitiesRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, {
451 &scc_info_Uuid_dmi_2fhw_2eproto.base,}};
452
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +0530453static void InitDefaultsHeartbeat_dmi_2fhw_5fmanagement_5fservice_2eproto() {
454 GOOGLE_PROTOBUF_VERIFY_VERSION;
455
456 {
457 void* ptr = &::dmi::_Heartbeat_default_instance_;
458 new (ptr) ::dmi::Heartbeat();
459 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
460 }
461 ::dmi::Heartbeat::InitAsDefaultInstance();
462}
463
464::google::protobuf::internal::SCCInfo<0> scc_info_Heartbeat_dmi_2fhw_5fmanagement_5fservice_2eproto =
465 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsHeartbeat_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}};
466
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530467static void InitDefaultsRebootDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() {
468 GOOGLE_PROTOBUF_VERIFY_VERSION;
469
470 {
471 void* ptr = &::dmi::_RebootDeviceRequest_default_instance_;
472 new (ptr) ::dmi::RebootDeviceRequest();
473 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
474 }
475 ::dmi::RebootDeviceRequest::InitAsDefaultInstance();
476}
477
478::google::protobuf::internal::SCCInfo<1> scc_info_RebootDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto =
479 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsRebootDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, {
480 &scc_info_Uuid_dmi_2fhw_2eproto.base,}};
481
482static void InitDefaultsRebootDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() {
483 GOOGLE_PROTOBUF_VERIFY_VERSION;
484
485 {
486 void* ptr = &::dmi::_RebootDeviceResponse_default_instance_;
487 new (ptr) ::dmi::RebootDeviceResponse();
488 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
489 }
490 ::dmi::RebootDeviceResponse::InitAsDefaultInstance();
491}
492
493::google::protobuf::internal::SCCInfo<0> scc_info_RebootDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto =
494 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRebootDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}};
495
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530496void InitDefaults_dmi_2fhw_5fmanagement_5fservice_2eproto() {
497 ::google::protobuf::internal::InitSCC(&scc_info_PhysicalInventoryRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
498 ::google::protobuf::internal::InitSCC(&scc_info_PhysicalInventoryResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
499 ::google::protobuf::internal::InitSCC(&scc_info_HWComponentInfoGetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
500 ::google::protobuf::internal::InitSCC(&scc_info_HWComponentInfoGetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
501 ::google::protobuf::internal::InitSCC(&scc_info_HWComponentInfoSetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
502 ::google::protobuf::internal::InitSCC(&scc_info_HWComponentInfoSetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
503 ::google::protobuf::internal::InitSCC(&scc_info_StartManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
504 ::google::protobuf::internal::InitSCC(&scc_info_StopManagingDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
505 ::google::protobuf::internal::InitSCC(&scc_info_StopManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
506 ::google::protobuf::internal::InitSCC(&scc_info_ManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
507 ::google::protobuf::internal::InitSCC(&scc_info_ManagedDevicesResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
508 ::google::protobuf::internal::InitSCC(&scc_info_SetLoggingEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
509 ::google::protobuf::internal::InitSCC(&scc_info_SetRemoteEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
510 ::google::protobuf::internal::InitSCC(&scc_info_GetLoggingEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
511 ::google::protobuf::internal::InitSCC(&scc_info_SetMsgBusEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
512 ::google::protobuf::internal::InitSCC(&scc_info_GetMsgBusEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
513 ::google::protobuf::internal::InitSCC(&scc_info_EntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
514 ::google::protobuf::internal::InitSCC(&scc_info_SetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
515 ::google::protobuf::internal::InitSCC(&scc_info_SetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
516 ::google::protobuf::internal::InitSCC(&scc_info_GetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
517 ::google::protobuf::internal::InitSCC(&scc_info_GetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
518 ::google::protobuf::internal::InitSCC(&scc_info_GetLoggableEntitiesRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +0530519 ::google::protobuf::internal::InitSCC(&scc_info_Heartbeat_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530520 ::google::protobuf::internal::InitSCC(&scc_info_RebootDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
521 ::google::protobuf::internal::InitSCC(&scc_info_RebootDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530522}
523
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530524::google::protobuf::Metadata file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[25];
525const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[12];
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530526constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto = nullptr;
527
528const ::google::protobuf::uint32 TableStruct_dmi_2fhw_5fmanagement_5fservice_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
529 ~0u, // no _has_bits_
530 PROTOBUF_FIELD_OFFSET(::dmi::PhysicalInventoryRequest, _internal_metadata_),
531 ~0u, // no _extensions_
532 ~0u, // no _oneof_case_
533 ~0u, // no _weak_field_map_
534 PROTOBUF_FIELD_OFFSET(::dmi::PhysicalInventoryRequest, device_uuid_),
535 ~0u, // no _has_bits_
536 PROTOBUF_FIELD_OFFSET(::dmi::PhysicalInventoryResponse, _internal_metadata_),
537 ~0u, // no _extensions_
538 ~0u, // no _oneof_case_
539 ~0u, // no _weak_field_map_
540 PROTOBUF_FIELD_OFFSET(::dmi::PhysicalInventoryResponse, status_),
541 PROTOBUF_FIELD_OFFSET(::dmi::PhysicalInventoryResponse, reason_),
542 PROTOBUF_FIELD_OFFSET(::dmi::PhysicalInventoryResponse, inventory_),
543 PROTOBUF_FIELD_OFFSET(::dmi::PhysicalInventoryResponse, reason_detail_),
544 ~0u, // no _has_bits_
545 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetRequest, _internal_metadata_),
546 ~0u, // no _extensions_
547 ~0u, // no _oneof_case_
548 ~0u, // no _weak_field_map_
549 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetRequest, device_uuid_),
550 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetRequest, component_uuid_),
551 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetRequest, component_name_),
552 ~0u, // no _has_bits_
553 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetResponse, _internal_metadata_),
554 ~0u, // no _extensions_
555 ~0u, // no _oneof_case_
556 ~0u, // no _weak_field_map_
557 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetResponse, status_),
558 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetResponse, reason_),
559 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetResponse, component_),
560 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetResponse, reason_detail_),
561 ~0u, // no _has_bits_
562 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetRequest, _internal_metadata_),
563 ~0u, // no _extensions_
564 ~0u, // no _oneof_case_
565 ~0u, // no _weak_field_map_
566 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetRequest, device_uuid_),
567 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetRequest, component_uuid_),
568 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetRequest, component_name_),
569 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetRequest, changes_),
570 ~0u, // no _has_bits_
571 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetResponse, _internal_metadata_),
572 ~0u, // no _extensions_
573 ~0u, // no _oneof_case_
574 ~0u, // no _weak_field_map_
575 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetResponse, status_),
576 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetResponse, reason_),
577 PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetResponse, reason_detail_),
578 ~0u, // no _has_bits_
579 PROTOBUF_FIELD_OFFSET(::dmi::StartManagingDeviceResponse, _internal_metadata_),
580 ~0u, // no _extensions_
581 ~0u, // no _oneof_case_
582 ~0u, // no _weak_field_map_
583 PROTOBUF_FIELD_OFFSET(::dmi::StartManagingDeviceResponse, status_),
584 PROTOBUF_FIELD_OFFSET(::dmi::StartManagingDeviceResponse, reason_),
585 PROTOBUF_FIELD_OFFSET(::dmi::StartManagingDeviceResponse, device_uuid_),
586 PROTOBUF_FIELD_OFFSET(::dmi::StartManagingDeviceResponse, reason_detail_),
587 ~0u, // no _has_bits_
588 PROTOBUF_FIELD_OFFSET(::dmi::StopManagingDeviceRequest, _internal_metadata_),
589 ~0u, // no _extensions_
590 ~0u, // no _oneof_case_
591 ~0u, // no _weak_field_map_
592 PROTOBUF_FIELD_OFFSET(::dmi::StopManagingDeviceRequest, name_),
593 ~0u, // no _has_bits_
594 PROTOBUF_FIELD_OFFSET(::dmi::StopManagingDeviceResponse, _internal_metadata_),
595 ~0u, // no _extensions_
596 ~0u, // no _oneof_case_
597 ~0u, // no _weak_field_map_
598 PROTOBUF_FIELD_OFFSET(::dmi::StopManagingDeviceResponse, status_),
599 PROTOBUF_FIELD_OFFSET(::dmi::StopManagingDeviceResponse, reason_),
600 PROTOBUF_FIELD_OFFSET(::dmi::StopManagingDeviceResponse, reason_detail_),
601 ~0u, // no _has_bits_
602 PROTOBUF_FIELD_OFFSET(::dmi::ManagedDeviceInfo, _internal_metadata_),
603 ~0u, // no _extensions_
604 ~0u, // no _oneof_case_
605 ~0u, // no _weak_field_map_
606 PROTOBUF_FIELD_OFFSET(::dmi::ManagedDeviceInfo, info_),
607 PROTOBUF_FIELD_OFFSET(::dmi::ManagedDeviceInfo, device_uuid_),
608 ~0u, // no _has_bits_
609 PROTOBUF_FIELD_OFFSET(::dmi::ManagedDevicesResponse, _internal_metadata_),
610 ~0u, // no _extensions_
611 ~0u, // no _oneof_case_
612 ~0u, // no _weak_field_map_
613 PROTOBUF_FIELD_OFFSET(::dmi::ManagedDevicesResponse, status_),
614 PROTOBUF_FIELD_OFFSET(::dmi::ManagedDevicesResponse, reason_),
615 PROTOBUF_FIELD_OFFSET(::dmi::ManagedDevicesResponse, devices_),
616 ~0u, // no _has_bits_
617 PROTOBUF_FIELD_OFFSET(::dmi::SetLoggingEndpointRequest, _internal_metadata_),
618 ~0u, // no _extensions_
619 ~0u, // no _oneof_case_
620 ~0u, // no _weak_field_map_
621 PROTOBUF_FIELD_OFFSET(::dmi::SetLoggingEndpointRequest, device_uuid_),
622 PROTOBUF_FIELD_OFFSET(::dmi::SetLoggingEndpointRequest, logging_endpoint_),
623 PROTOBUF_FIELD_OFFSET(::dmi::SetLoggingEndpointRequest, logging_protocol_),
624 ~0u, // no _has_bits_
625 PROTOBUF_FIELD_OFFSET(::dmi::SetRemoteEndpointResponse, _internal_metadata_),
626 ~0u, // no _extensions_
627 ~0u, // no _oneof_case_
628 ~0u, // no _weak_field_map_
629 PROTOBUF_FIELD_OFFSET(::dmi::SetRemoteEndpointResponse, status_),
630 PROTOBUF_FIELD_OFFSET(::dmi::SetRemoteEndpointResponse, reason_),
631 PROTOBUF_FIELD_OFFSET(::dmi::SetRemoteEndpointResponse, reason_detail_),
632 ~0u, // no _has_bits_
633 PROTOBUF_FIELD_OFFSET(::dmi::GetLoggingEndpointResponse, _internal_metadata_),
634 ~0u, // no _extensions_
635 ~0u, // no _oneof_case_
636 ~0u, // no _weak_field_map_
637 PROTOBUF_FIELD_OFFSET(::dmi::GetLoggingEndpointResponse, status_),
638 PROTOBUF_FIELD_OFFSET(::dmi::GetLoggingEndpointResponse, reason_),
639 PROTOBUF_FIELD_OFFSET(::dmi::GetLoggingEndpointResponse, logging_endpoint_),
640 PROTOBUF_FIELD_OFFSET(::dmi::GetLoggingEndpointResponse, logging_protocol_),
641 PROTOBUF_FIELD_OFFSET(::dmi::GetLoggingEndpointResponse, reason_detail_),
642 ~0u, // no _has_bits_
643 PROTOBUF_FIELD_OFFSET(::dmi::SetMsgBusEndpointRequest, _internal_metadata_),
644 ~0u, // no _extensions_
645 ~0u, // no _oneof_case_
646 ~0u, // no _weak_field_map_
647 PROTOBUF_FIELD_OFFSET(::dmi::SetMsgBusEndpointRequest, msgbus_endpoint_),
648 ~0u, // no _has_bits_
649 PROTOBUF_FIELD_OFFSET(::dmi::GetMsgBusEndpointResponse, _internal_metadata_),
650 ~0u, // no _extensions_
651 ~0u, // no _oneof_case_
652 ~0u, // no _weak_field_map_
653 PROTOBUF_FIELD_OFFSET(::dmi::GetMsgBusEndpointResponse, status_),
654 PROTOBUF_FIELD_OFFSET(::dmi::GetMsgBusEndpointResponse, reason_),
655 PROTOBUF_FIELD_OFFSET(::dmi::GetMsgBusEndpointResponse, msgbus_endpoint_),
656 PROTOBUF_FIELD_OFFSET(::dmi::GetMsgBusEndpointResponse, reason_detail_),
657 ~0u, // no _has_bits_
658 PROTOBUF_FIELD_OFFSET(::dmi::EntitiesLogLevel, _internal_metadata_),
659 ~0u, // no _extensions_
660 ~0u, // no _oneof_case_
661 ~0u, // no _weak_field_map_
662 PROTOBUF_FIELD_OFFSET(::dmi::EntitiesLogLevel, loglevel_),
663 PROTOBUF_FIELD_OFFSET(::dmi::EntitiesLogLevel, entities_),
664 ~0u, // no _has_bits_
665 PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelRequest, _internal_metadata_),
666 ~0u, // no _extensions_
667 ~0u, // no _oneof_case_
668 ~0u, // no _weak_field_map_
669 PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelRequest, device_uuid_),
670 PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelRequest, loglevels_),
671 ~0u, // no _has_bits_
672 PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelResponse, _internal_metadata_),
673 ~0u, // no _extensions_
674 ~0u, // no _oneof_case_
675 ~0u, // no _weak_field_map_
676 PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelResponse, device_uuid_),
677 PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelResponse, status_),
678 PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelResponse, reason_),
679 PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelResponse, reason_detail_),
680 ~0u, // no _has_bits_
681 PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelRequest, _internal_metadata_),
682 ~0u, // no _extensions_
683 ~0u, // no _oneof_case_
684 ~0u, // no _weak_field_map_
685 PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelRequest, device_uuid_),
686 PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelRequest, entities_),
687 ~0u, // no _has_bits_
688 PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelResponse, _internal_metadata_),
689 ~0u, // no _extensions_
690 ~0u, // no _oneof_case_
691 ~0u, // no _weak_field_map_
692 PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelResponse, device_uuid_),
693 PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelResponse, loglevels_),
694 PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelResponse, status_),
695 PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelResponse, reason_),
696 PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelResponse, reason_detail_),
697 ~0u, // no _has_bits_
698 PROTOBUF_FIELD_OFFSET(::dmi::GetLoggableEntitiesRequest, _internal_metadata_),
699 ~0u, // no _extensions_
700 ~0u, // no _oneof_case_
701 ~0u, // no _weak_field_map_
702 PROTOBUF_FIELD_OFFSET(::dmi::GetLoggableEntitiesRequest, device_uuid_),
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +0530703 ~0u, // no _has_bits_
704 PROTOBUF_FIELD_OFFSET(::dmi::Heartbeat, _internal_metadata_),
705 ~0u, // no _extensions_
706 ~0u, // no _oneof_case_
707 ~0u, // no _weak_field_map_
708 PROTOBUF_FIELD_OFFSET(::dmi::Heartbeat, heartbeat_signature_),
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530709 ~0u, // no _has_bits_
710 PROTOBUF_FIELD_OFFSET(::dmi::RebootDeviceRequest, _internal_metadata_),
711 ~0u, // no _extensions_
712 ~0u, // no _oneof_case_
713 ~0u, // no _weak_field_map_
714 PROTOBUF_FIELD_OFFSET(::dmi::RebootDeviceRequest, device_uuid_),
715 ~0u, // no _has_bits_
716 PROTOBUF_FIELD_OFFSET(::dmi::RebootDeviceResponse, _internal_metadata_),
717 ~0u, // no _extensions_
718 ~0u, // no _oneof_case_
719 ~0u, // no _weak_field_map_
720 PROTOBUF_FIELD_OFFSET(::dmi::RebootDeviceResponse, status_),
721 PROTOBUF_FIELD_OFFSET(::dmi::RebootDeviceResponse, reason_),
722 PROTOBUF_FIELD_OFFSET(::dmi::RebootDeviceResponse, reason_detail_),
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530723};
724static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
725 { 0, -1, sizeof(::dmi::PhysicalInventoryRequest)},
726 { 6, -1, sizeof(::dmi::PhysicalInventoryResponse)},
727 { 15, -1, sizeof(::dmi::HWComponentInfoGetRequest)},
728 { 23, -1, sizeof(::dmi::HWComponentInfoGetResponse)},
729 { 32, -1, sizeof(::dmi::HWComponentInfoSetRequest)},
730 { 41, -1, sizeof(::dmi::HWComponentInfoSetResponse)},
731 { 49, -1, sizeof(::dmi::StartManagingDeviceResponse)},
732 { 58, -1, sizeof(::dmi::StopManagingDeviceRequest)},
733 { 64, -1, sizeof(::dmi::StopManagingDeviceResponse)},
734 { 72, -1, sizeof(::dmi::ManagedDeviceInfo)},
735 { 79, -1, sizeof(::dmi::ManagedDevicesResponse)},
736 { 87, -1, sizeof(::dmi::SetLoggingEndpointRequest)},
737 { 95, -1, sizeof(::dmi::SetRemoteEndpointResponse)},
738 { 103, -1, sizeof(::dmi::GetLoggingEndpointResponse)},
739 { 113, -1, sizeof(::dmi::SetMsgBusEndpointRequest)},
740 { 119, -1, sizeof(::dmi::GetMsgBusEndpointResponse)},
741 { 128, -1, sizeof(::dmi::EntitiesLogLevel)},
742 { 135, -1, sizeof(::dmi::SetLogLevelRequest)},
743 { 142, -1, sizeof(::dmi::SetLogLevelResponse)},
744 { 151, -1, sizeof(::dmi::GetLogLevelRequest)},
745 { 158, -1, sizeof(::dmi::GetLogLevelResponse)},
746 { 168, -1, sizeof(::dmi::GetLoggableEntitiesRequest)},
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +0530747 { 174, -1, sizeof(::dmi::Heartbeat)},
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530748 { 180, -1, sizeof(::dmi::RebootDeviceRequest)},
749 { 186, -1, sizeof(::dmi::RebootDeviceResponse)},
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530750};
751
752static ::google::protobuf::Message const * const file_default_instances[] = {
753 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_PhysicalInventoryRequest_default_instance_),
754 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_PhysicalInventoryResponse_default_instance_),
755 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_HWComponentInfoGetRequest_default_instance_),
756 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_HWComponentInfoGetResponse_default_instance_),
757 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_HWComponentInfoSetRequest_default_instance_),
758 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_HWComponentInfoSetResponse_default_instance_),
759 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_StartManagingDeviceResponse_default_instance_),
760 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_StopManagingDeviceRequest_default_instance_),
761 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_StopManagingDeviceResponse_default_instance_),
762 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_ManagedDeviceInfo_default_instance_),
763 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_ManagedDevicesResponse_default_instance_),
764 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_SetLoggingEndpointRequest_default_instance_),
765 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_SetRemoteEndpointResponse_default_instance_),
766 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_GetLoggingEndpointResponse_default_instance_),
767 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_SetMsgBusEndpointRequest_default_instance_),
768 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_GetMsgBusEndpointResponse_default_instance_),
769 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_EntitiesLogLevel_default_instance_),
770 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_SetLogLevelRequest_default_instance_),
771 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_SetLogLevelResponse_default_instance_),
772 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_GetLogLevelRequest_default_instance_),
773 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_GetLogLevelResponse_default_instance_),
774 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_GetLoggableEntitiesRequest_default_instance_),
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +0530775 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_Heartbeat_default_instance_),
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530776 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_RebootDeviceRequest_default_instance_),
777 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_RebootDeviceResponse_default_instance_),
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530778};
779
780::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto = {
781 {}, AddDescriptors_dmi_2fhw_5fmanagement_5fservice_2eproto, "dmi/hw_management_service.proto", schemas,
782 file_default_instances, TableStruct_dmi_2fhw_5fmanagement_5fservice_2eproto::offsets,
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530783 file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto, 25, file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto, file_level_service_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto,
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530784};
785
786const char descriptor_table_protodef_dmi_2fhw_5fmanagement_5fservice_2eproto[] =
787 "\n\037dmi/hw_management_service.proto\022\003dmi\032\021"
788 "dmi/commons.proto\032\014dmi/hw.proto\032\033google/"
789 "protobuf/empty.proto\":\n\030PhysicalInventor"
790 "yRequest\022\036\n\013device_uuid\030\001 \001(\0132\t.dmi.Uuid"
791 "\"\210\002\n\031PhysicalInventoryResponse\022\033\n\006status"
792 "\030\001 \001(\0162\013.dmi.Status\0225\n\006reason\030\002 \001(\0162%.dm"
793 "i.PhysicalInventoryResponse.Reason\022 \n\tin"
794 "ventory\030\003 \001(\0132\r.dmi.Hardware\022\025\n\rreason_d"
795 "etail\030\004 \001(\t\"^\n\006Reason\022\024\n\020UNDEFINED_REASO"
796 "N\020\000\022\022\n\016UNKNOWN_DEVICE\020\001\022\022\n\016INTERNAL_ERRO"
797 "R\020\002\022\026\n\022DEVICE_UNREACHABLE\020\003\"v\n\031HWCompone"
798 "ntInfoGetRequest\022\036\n\013device_uuid\030\001 \001(\0132\t."
799 "dmi.Uuid\022!\n\016component_uuid\030\002 \001(\0132\t.dmi.U"
800 "uid\022\026\n\016component_name\030\003 \001(\t\"\242\002\n\032HWCompon"
801 "entInfoGetResponse\022\033\n\006status\030\001 \001(\0162\013.dmi"
802 ".Status\0226\n\006reason\030\002 \001(\0162&.dmi.HWComponen"
803 "tInfoGetResponse.Reason\022!\n\tcomponent\030\003 \001"
804 "(\0132\016.dmi.Component\022\025\n\rreason_detail\030\004 \001("
805 "\t\"u\n\006Reason\022\024\n\020UNDEFINED_REASON\020\000\022\022\n\016UNK"
806 "NOWN_DEVICE\020\001\022\025\n\021UNKNOWN_COMPONENT\020\002\022\022\n\016"
807 "INTERNAL_ERROR\020\003\022\026\n\022DEVICE_UNREACHABLE\020\004"
808 "\"\241\001\n\031HWComponentInfoSetRequest\022\036\n\013device"
809 "_uuid\030\001 \001(\0132\t.dmi.Uuid\022!\n\016component_uuid"
810 "\030\002 \001(\0132\t.dmi.Uuid\022\026\n\016component_name\030\003 \001("
811 "\t\022)\n\007changes\030\004 \001(\0132\030.dmi.ModifiableCompo"
812 "nent\"\224\002\n\032HWComponentInfoSetResponse\022\033\n\006s"
813 "tatus\030\001 \001(\0162\013.dmi.Status\0226\n\006reason\030\002 \001(\016"
814 "2&.dmi.HWComponentInfoSetResponse.Reason"
815 "\022\025\n\rreason_detail\030\003 \001(\t\"\211\001\n\006Reason\022\024\n\020UN"
816 "DEFINED_REASON\020\000\022\022\n\016UNKNOWN_DEVICE\020\001\022\025\n\021"
817 "UNKNOWN_COMPONENT\020\002\022\022\n\016INVALID_PARAMS\020\003\022"
818 "\022\n\016INTERNAL_ERROR\020\004\022\026\n\022DEVICE_UNREACHABL"
819 "E\020\005\"\262\002\n\033StartManagingDeviceResponse\022\033\n\006s"
820 "tatus\030\001 \001(\0162\013.dmi.Status\0227\n\006reason\030\002 \001(\016"
821 "2\'.dmi.StartManagingDeviceResponse.Reaso"
822 "n\022\036\n\013device_uuid\030\003 \001(\0132\t.dmi.Uuid\022\025\n\rrea"
823 "son_detail\030\004 \001(\t\"\205\001\n\006Reason\022\024\n\020UNDEFINED"
824 "_REASON\020\000\022\032\n\026DEVICE_ALREADY_MANAGED\020\001\022!\n"
825 "\035OPERATION_ALREADY_IN_PROGRESS\020\002\022\022\n\016INVA"
826 "LID_PARAMS\020\003\022\022\n\016INTERNAL_ERROR\020\004\")\n\031Stop"
827 "ManagingDeviceRequest\022\014\n\004name\030\001 \001(\t\"\274\001\n\032"
828 "StopManagingDeviceResponse\022\033\n\006status\030\001 \001"
829 "(\0162\013.dmi.Status\0226\n\006reason\030\002 \001(\0162&.dmi.St"
830 "opManagingDeviceResponse.Reason\022\025\n\rreaso"
831 "n_detail\030\003 \001(\t\"2\n\006Reason\022\024\n\020UNDEFINED_RE"
832 "ASON\020\000\022\022\n\016UNKNOWN_DEVICE\020\001\"[\n\021ManagedDev"
833 "iceInfo\022&\n\004info\030\001 \001(\0132\030.dmi.ModifiableCo"
834 "mponent\022\036\n\013device_uuid\030\002 \001(\0132\t.dmi.Uuid\""
835 "\306\001\n\026ManagedDevicesResponse\022\033\n\006status\030\001 \001"
836 "(\0162\013.dmi.Status\0222\n\006reason\030\002 \001(\0162\".dmi.Ma"
837 "nagedDevicesResponse.Reason\022\'\n\007devices\030\003"
838 " \003(\0132\026.dmi.ManagedDeviceInfo\"2\n\006Reason\022\024"
839 "\n\020UNDEFINED_REASON\020\000\022\022\n\016INTERNAL_ERROR\020\001"
840 "\"o\n\031SetLoggingEndpointRequest\022\036\n\013device_"
841 "uuid\030\001 \001(\0132\t.dmi.Uuid\022\030\n\020logging_endpoin"
842 "t\030\002 \001(\t\022\030\n\020logging_protocol\030\003 \001(\t\"\303\002\n\031Se"
843 "tRemoteEndpointResponse\022\033\n\006status\030\001 \001(\0162"
844 "\013.dmi.Status\0225\n\006reason\030\002 \001(\0162%.dmi.SetRe"
845 "moteEndpointResponse.Reason\022\025\n\rreason_de"
846 "tail\030\003 \001(\t\"\272\001\n\006Reason\022\024\n\020UNDEFINED_REASO"
847 "N\020\000\022\022\n\016UNKNOWN_DEVICE\020\001\022\022\n\016INTERNAL_ERRO"
848 "R\020\002\022\032\n\026LOGGING_ENDPOINT_ERROR\020\003\022#\n\037LOGGI"
849 "NG_ENDPOINT_PROTOCOL_ERROR\020\004\022\031\n\025MSGBUS_E"
850 "NDPOINT_ERROR\020\005\022\026\n\022DEVICE_UNREACHABLE\020\006\""
851 "\234\002\n\032GetLoggingEndpointResponse\022\033\n\006status"
852 "\030\001 \001(\0162\013.dmi.Status\0226\n\006reason\030\002 \001(\0162&.dm"
853 "i.GetLoggingEndpointResponse.Reason\022\030\n\020l"
854 "ogging_endpoint\030\003 \001(\t\022\030\n\020logging_protoco"
855 "l\030\004 \001(\t\022\025\n\rreason_detail\030\005 \001(\t\"^\n\006Reason"
856 "\022\024\n\020UNDEFINED_REASON\020\000\022\022\n\016UNKNOWN_DEVICE"
857 "\020\001\022\022\n\016INTERNAL_ERROR\020\002\022\026\n\022DEVICE_UNREACH"
858 "ABLE\020\003\"3\n\030SetMsgBusEndpointRequest\022\027\n\017ms"
859 "gbus_endpoint\030\001 \001(\t\"\353\001\n\031GetMsgBusEndpoin"
860 "tResponse\022\033\n\006status\030\001 \001(\0162\013.dmi.Status\0225"
861 "\n\006reason\030\002 \001(\0162%.dmi.GetMsgBusEndpointRe"
862 "sponse.Reason\022\027\n\017msgbus_endpoint\030\003 \001(\t\022\025"
863 "\n\rreason_detail\030\004 \001(\t\"J\n\006Reason\022\024\n\020UNDEF"
864 "INED_REASON\020\000\022\022\n\016INTERNAL_ERROR\020\001\022\026\n\022DEV"
865 "ICE_UNREACHABLE\020\002\"E\n\020EntitiesLogLevel\022\037\n"
866 "\010logLevel\030\001 \001(\0162\r.dmi.LogLevel\022\020\n\010entiti"
867 "es\030\002 \003(\t\"^\n\022SetLogLevelRequest\022\036\n\013device"
868 "_uuid\030\001 \001(\0132\t.dmi.Uuid\022(\n\tloglevels\030\002 \003("
869 "\0132\025.dmi.EntitiesLogLevel\"\222\002\n\023SetLogLevel"
870 "Response\022\036\n\013device_uuid\030\001 \001(\0132\t.dmi.Uuid"
871 "\022\033\n\006status\030\002 \001(\0162\013.dmi.Status\022/\n\006reason\030"
872 "\003 \001(\0162\037.dmi.SetLogLevelResponse.Reason\022\025"
873 "\n\rreason_detail\030\004 \001(\t\"v\n\006Reason\022\024\n\020UNDEF"
874 "INED_REASON\020\000\022\022\n\016UNKNOWN_DEVICE\020\001\022\022\n\016INT"
875 "ERNAL_ERROR\020\002\022\026\n\022UNKNOWN_LOG_ENTITY\020\003\022\026\n"
876 "\022DEVICE_UNREACHABLE\020\004\"F\n\022GetLogLevelRequ"
877 "est\022\036\n\013device_uuid\030\001 \001(\0132\t.dmi.Uuid\022\020\n\010e"
878 "ntities\030\002 \003(\t\"\274\002\n\023GetLogLevelResponse\022\036\n"
879 "\013device_uuid\030\001 \001(\0132\t.dmi.Uuid\022(\n\tlogLeve"
880 "ls\030\002 \003(\0132\025.dmi.EntitiesLogLevel\022\033\n\006statu"
881 "s\030\003 \001(\0162\013.dmi.Status\022/\n\006reason\030\004 \001(\0162\037.d"
882 "mi.GetLogLevelResponse.Reason\022\025\n\rreason_"
883 "detail\030\005 \001(\t\"v\n\006Reason\022\024\n\020UNDEFINED_REAS"
884 "ON\020\000\022\022\n\016UNKNOWN_DEVICE\020\001\022\022\n\016INTERNAL_ERR"
885 "OR\020\002\022\026\n\022UNKNOWN_LOG_ENTITY\020\003\022\026\n\022DEVICE_U"
886 "NREACHABLE\020\004\"<\n\032GetLoggableEntitiesReque"
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +0530887 "st\022\036\n\013device_uuid\030\001 \001(\0132\t.dmi.Uuid\"(\n\tHe"
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530888 "artbeat\022\033\n\023heartbeat_signature\030\001 \001(\007\"5\n\023"
889 "RebootDeviceRequest\022\036\n\013device_uuid\030\001 \001(\013"
890 "2\t.dmi.Uuid\"\334\001\n\024RebootDeviceResponse\022\033\n\006"
891 "status\030\003 \001(\0162\013.dmi.Status\0220\n\006reason\030\004 \001("
892 "\0162 .dmi.RebootDeviceResponse.Reason\022\025\n\rr"
893 "eason_detail\030\005 \001(\t\"^\n\006Reason\022\024\n\020UNDEFINE"
894 "D_REASON\020\000\022\022\n\016UNKNOWN_DEVICE\020\001\022\022\n\016INTERN"
895 "AL_ERROR\020\002\022\026\n\022DEVICE_UNREACHABLE\020\0032\256\t\n\031N"
896 "ativeHWManagementService\022S\n\023StartManagin"
897 "gDevice\022\030.dmi.ModifiableComponent\032 .dmi."
898 "StartManagingDeviceResponse0\001\022U\n\022StopMan"
899 "agingDevice\022\036.dmi.StopManagingDeviceRequ"
900 "est\032\037.dmi.StopManagingDeviceResponse\022H\n\021"
901 "GetManagedDevices\022\026.google.protobuf.Empt"
902 "y\032\033.dmi.ManagedDevicesResponse\022W\n\024GetPhy"
903 "sicalInventory\022\035.dmi.PhysicalInventoryRe"
904 "quest\032\036.dmi.PhysicalInventoryResponse0\001\022"
905 "W\n\022GetHWComponentInfo\022\036.dmi.HWComponentI"
906 "nfoGetRequest\032\037.dmi.HWComponentInfoGetRe"
907 "sponse0\001\022U\n\022SetHWComponentInfo\022\036.dmi.HWC"
908 "omponentInfoSetRequest\032\037.dmi.HWComponent"
909 "InfoSetResponse\022T\n\022SetLoggingEndpoint\022\036."
910 "dmi.SetLoggingEndpointRequest\032\036.dmi.SetR"
911 "emoteEndpointResponse\022F\n\022GetLoggingEndpo"
912 "int\022\017.dmi.HardwareID\032\037.dmi.GetLoggingEnd"
913 "pointResponse\022R\n\021SetMsgBusEndpoint\022\035.dmi"
914 ".SetMsgBusEndpointRequest\032\036.dmi.SetRemot"
915 "eEndpointResponse\022K\n\021GetMsgBusEndpoint\022\026"
916 ".google.protobuf.Empty\032\036.dmi.GetMsgBusEn"
917 "dpointResponse\022P\n\023GetLoggableEntities\022\037."
918 "dmi.GetLoggableEntitiesRequest\032\030.dmi.Get"
919 "LogLevelResponse\022@\n\013SetLogLevel\022\027.dmi.Se"
920 "tLogLevelRequest\032\030.dmi.SetLogLevelRespon"
921 "se\022@\n\013GetLogLevel\022\027.dmi.GetLogLevelReque"
922 "st\032\030.dmi.GetLogLevelResponse\0228\n\016Heartbea"
923 "tCheck\022\026.google.protobuf.Empty\032\016.dmi.Hea"
924 "rtbeat\022C\n\014RebootDevice\022\030.dmi.RebootDevic"
925 "eRequest\032\031.dmi.RebootDeviceResponseB;Z9g"
926 "ithub.com/opencord/device-management-int"
927 "erface/v3/go/dmib\006proto3"
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530928 ;
929::google::protobuf::internal::DescriptorTable descriptor_table_dmi_2fhw_5fmanagement_5fservice_2eproto = {
930 false, InitDefaults_dmi_2fhw_5fmanagement_5fservice_2eproto,
931 descriptor_table_protodef_dmi_2fhw_5fmanagement_5fservice_2eproto,
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530932 "dmi/hw_management_service.proto", &assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto, 5624,
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530933};
934
935void AddDescriptors_dmi_2fhw_5fmanagement_5fservice_2eproto() {
936 static constexpr ::google::protobuf::internal::InitFunc deps[3] =
937 {
938 ::AddDescriptors_dmi_2fcommons_2eproto,
939 ::AddDescriptors_dmi_2fhw_2eproto,
940 ::AddDescriptors_google_2fprotobuf_2fempty_2eproto,
941 };
942 ::google::protobuf::internal::AddDescriptors(&descriptor_table_dmi_2fhw_5fmanagement_5fservice_2eproto, deps, 3);
943}
944
945// Force running AddDescriptors() at dynamic initialization time.
946static bool dynamic_init_dummy_dmi_2fhw_5fmanagement_5fservice_2eproto = []() { AddDescriptors_dmi_2fhw_5fmanagement_5fservice_2eproto(); return true; }();
947namespace dmi {
948const ::google::protobuf::EnumDescriptor* PhysicalInventoryResponse_Reason_descriptor() {
949 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
950 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[0];
951}
952bool PhysicalInventoryResponse_Reason_IsValid(int value) {
953 switch (value) {
954 case 0:
955 case 1:
956 case 2:
957 case 3:
958 return true;
959 default:
960 return false;
961 }
962}
963
964#if !defined(_MSC_VER) || _MSC_VER >= 1900
965const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::UNDEFINED_REASON;
966const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::UNKNOWN_DEVICE;
967const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::INTERNAL_ERROR;
968const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::DEVICE_UNREACHABLE;
969const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::Reason_MIN;
970const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::Reason_MAX;
971const int PhysicalInventoryResponse::Reason_ARRAYSIZE;
972#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
973const ::google::protobuf::EnumDescriptor* HWComponentInfoGetResponse_Reason_descriptor() {
974 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
975 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[1];
976}
977bool HWComponentInfoGetResponse_Reason_IsValid(int value) {
978 switch (value) {
979 case 0:
980 case 1:
981 case 2:
982 case 3:
983 case 4:
984 return true;
985 default:
986 return false;
987 }
988}
989
990#if !defined(_MSC_VER) || _MSC_VER >= 1900
991const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::UNDEFINED_REASON;
992const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::UNKNOWN_DEVICE;
993const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::UNKNOWN_COMPONENT;
994const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::INTERNAL_ERROR;
995const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::DEVICE_UNREACHABLE;
996const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::Reason_MIN;
997const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::Reason_MAX;
998const int HWComponentInfoGetResponse::Reason_ARRAYSIZE;
999#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1000const ::google::protobuf::EnumDescriptor* HWComponentInfoSetResponse_Reason_descriptor() {
1001 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1002 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[2];
1003}
1004bool HWComponentInfoSetResponse_Reason_IsValid(int value) {
1005 switch (value) {
1006 case 0:
1007 case 1:
1008 case 2:
1009 case 3:
1010 case 4:
1011 case 5:
1012 return true;
1013 default:
1014 return false;
1015 }
1016}
1017
1018#if !defined(_MSC_VER) || _MSC_VER >= 1900
1019const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::UNDEFINED_REASON;
1020const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::UNKNOWN_DEVICE;
1021const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::UNKNOWN_COMPONENT;
1022const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::INVALID_PARAMS;
1023const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::INTERNAL_ERROR;
1024const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::DEVICE_UNREACHABLE;
1025const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::Reason_MIN;
1026const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::Reason_MAX;
1027const int HWComponentInfoSetResponse::Reason_ARRAYSIZE;
1028#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1029const ::google::protobuf::EnumDescriptor* StartManagingDeviceResponse_Reason_descriptor() {
1030 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1031 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[3];
1032}
1033bool StartManagingDeviceResponse_Reason_IsValid(int value) {
1034 switch (value) {
1035 case 0:
1036 case 1:
1037 case 2:
1038 case 3:
1039 case 4:
1040 return true;
1041 default:
1042 return false;
1043 }
1044}
1045
1046#if !defined(_MSC_VER) || _MSC_VER >= 1900
1047const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::UNDEFINED_REASON;
1048const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::DEVICE_ALREADY_MANAGED;
1049const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::OPERATION_ALREADY_IN_PROGRESS;
1050const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::INVALID_PARAMS;
1051const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::INTERNAL_ERROR;
1052const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::Reason_MIN;
1053const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::Reason_MAX;
1054const int StartManagingDeviceResponse::Reason_ARRAYSIZE;
1055#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1056const ::google::protobuf::EnumDescriptor* StopManagingDeviceResponse_Reason_descriptor() {
1057 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1058 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[4];
1059}
1060bool StopManagingDeviceResponse_Reason_IsValid(int value) {
1061 switch (value) {
1062 case 0:
1063 case 1:
1064 return true;
1065 default:
1066 return false;
1067 }
1068}
1069
1070#if !defined(_MSC_VER) || _MSC_VER >= 1900
1071const StopManagingDeviceResponse_Reason StopManagingDeviceResponse::UNDEFINED_REASON;
1072const StopManagingDeviceResponse_Reason StopManagingDeviceResponse::UNKNOWN_DEVICE;
1073const StopManagingDeviceResponse_Reason StopManagingDeviceResponse::Reason_MIN;
1074const StopManagingDeviceResponse_Reason StopManagingDeviceResponse::Reason_MAX;
1075const int StopManagingDeviceResponse::Reason_ARRAYSIZE;
1076#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1077const ::google::protobuf::EnumDescriptor* ManagedDevicesResponse_Reason_descriptor() {
1078 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1079 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[5];
1080}
1081bool ManagedDevicesResponse_Reason_IsValid(int value) {
1082 switch (value) {
1083 case 0:
1084 case 1:
1085 return true;
1086 default:
1087 return false;
1088 }
1089}
1090
1091#if !defined(_MSC_VER) || _MSC_VER >= 1900
1092const ManagedDevicesResponse_Reason ManagedDevicesResponse::UNDEFINED_REASON;
1093const ManagedDevicesResponse_Reason ManagedDevicesResponse::INTERNAL_ERROR;
1094const ManagedDevicesResponse_Reason ManagedDevicesResponse::Reason_MIN;
1095const ManagedDevicesResponse_Reason ManagedDevicesResponse::Reason_MAX;
1096const int ManagedDevicesResponse::Reason_ARRAYSIZE;
1097#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1098const ::google::protobuf::EnumDescriptor* SetRemoteEndpointResponse_Reason_descriptor() {
1099 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1100 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[6];
1101}
1102bool SetRemoteEndpointResponse_Reason_IsValid(int value) {
1103 switch (value) {
1104 case 0:
1105 case 1:
1106 case 2:
1107 case 3:
1108 case 4:
1109 case 5:
1110 case 6:
1111 return true;
1112 default:
1113 return false;
1114 }
1115}
1116
1117#if !defined(_MSC_VER) || _MSC_VER >= 1900
1118const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::UNDEFINED_REASON;
1119const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::UNKNOWN_DEVICE;
1120const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::INTERNAL_ERROR;
1121const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::LOGGING_ENDPOINT_ERROR;
1122const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::LOGGING_ENDPOINT_PROTOCOL_ERROR;
1123const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::MSGBUS_ENDPOINT_ERROR;
1124const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::DEVICE_UNREACHABLE;
1125const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::Reason_MIN;
1126const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::Reason_MAX;
1127const int SetRemoteEndpointResponse::Reason_ARRAYSIZE;
1128#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1129const ::google::protobuf::EnumDescriptor* GetLoggingEndpointResponse_Reason_descriptor() {
1130 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1131 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[7];
1132}
1133bool GetLoggingEndpointResponse_Reason_IsValid(int value) {
1134 switch (value) {
1135 case 0:
1136 case 1:
1137 case 2:
1138 case 3:
1139 return true;
1140 default:
1141 return false;
1142 }
1143}
1144
1145#if !defined(_MSC_VER) || _MSC_VER >= 1900
1146const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::UNDEFINED_REASON;
1147const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::UNKNOWN_DEVICE;
1148const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::INTERNAL_ERROR;
1149const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::DEVICE_UNREACHABLE;
1150const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::Reason_MIN;
1151const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::Reason_MAX;
1152const int GetLoggingEndpointResponse::Reason_ARRAYSIZE;
1153#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1154const ::google::protobuf::EnumDescriptor* GetMsgBusEndpointResponse_Reason_descriptor() {
1155 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1156 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[8];
1157}
1158bool GetMsgBusEndpointResponse_Reason_IsValid(int value) {
1159 switch (value) {
1160 case 0:
1161 case 1:
1162 case 2:
1163 return true;
1164 default:
1165 return false;
1166 }
1167}
1168
1169#if !defined(_MSC_VER) || _MSC_VER >= 1900
1170const GetMsgBusEndpointResponse_Reason GetMsgBusEndpointResponse::UNDEFINED_REASON;
1171const GetMsgBusEndpointResponse_Reason GetMsgBusEndpointResponse::INTERNAL_ERROR;
1172const GetMsgBusEndpointResponse_Reason GetMsgBusEndpointResponse::DEVICE_UNREACHABLE;
1173const GetMsgBusEndpointResponse_Reason GetMsgBusEndpointResponse::Reason_MIN;
1174const GetMsgBusEndpointResponse_Reason GetMsgBusEndpointResponse::Reason_MAX;
1175const int GetMsgBusEndpointResponse::Reason_ARRAYSIZE;
1176#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1177const ::google::protobuf::EnumDescriptor* SetLogLevelResponse_Reason_descriptor() {
1178 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1179 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[9];
1180}
1181bool SetLogLevelResponse_Reason_IsValid(int value) {
1182 switch (value) {
1183 case 0:
1184 case 1:
1185 case 2:
1186 case 3:
1187 case 4:
1188 return true;
1189 default:
1190 return false;
1191 }
1192}
1193
1194#if !defined(_MSC_VER) || _MSC_VER >= 1900
1195const SetLogLevelResponse_Reason SetLogLevelResponse::UNDEFINED_REASON;
1196const SetLogLevelResponse_Reason SetLogLevelResponse::UNKNOWN_DEVICE;
1197const SetLogLevelResponse_Reason SetLogLevelResponse::INTERNAL_ERROR;
1198const SetLogLevelResponse_Reason SetLogLevelResponse::UNKNOWN_LOG_ENTITY;
1199const SetLogLevelResponse_Reason SetLogLevelResponse::DEVICE_UNREACHABLE;
1200const SetLogLevelResponse_Reason SetLogLevelResponse::Reason_MIN;
1201const SetLogLevelResponse_Reason SetLogLevelResponse::Reason_MAX;
1202const int SetLogLevelResponse::Reason_ARRAYSIZE;
1203#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1204const ::google::protobuf::EnumDescriptor* GetLogLevelResponse_Reason_descriptor() {
1205 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1206 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[10];
1207}
1208bool GetLogLevelResponse_Reason_IsValid(int value) {
1209 switch (value) {
1210 case 0:
1211 case 1:
1212 case 2:
1213 case 3:
1214 case 4:
1215 return true;
1216 default:
1217 return false;
1218 }
1219}
1220
1221#if !defined(_MSC_VER) || _MSC_VER >= 1900
1222const GetLogLevelResponse_Reason GetLogLevelResponse::UNDEFINED_REASON;
1223const GetLogLevelResponse_Reason GetLogLevelResponse::UNKNOWN_DEVICE;
1224const GetLogLevelResponse_Reason GetLogLevelResponse::INTERNAL_ERROR;
1225const GetLogLevelResponse_Reason GetLogLevelResponse::UNKNOWN_LOG_ENTITY;
1226const GetLogLevelResponse_Reason GetLogLevelResponse::DEVICE_UNREACHABLE;
1227const GetLogLevelResponse_Reason GetLogLevelResponse::Reason_MIN;
1228const GetLogLevelResponse_Reason GetLogLevelResponse::Reason_MAX;
1229const int GetLogLevelResponse::Reason_ARRAYSIZE;
1230#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +05301231const ::google::protobuf::EnumDescriptor* RebootDeviceResponse_Reason_descriptor() {
1232 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1233 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[11];
1234}
1235bool RebootDeviceResponse_Reason_IsValid(int value) {
1236 switch (value) {
1237 case 0:
1238 case 1:
1239 case 2:
1240 case 3:
1241 return true;
1242 default:
1243 return false;
1244 }
1245}
1246
1247#if !defined(_MSC_VER) || _MSC_VER >= 1900
1248const RebootDeviceResponse_Reason RebootDeviceResponse::UNDEFINED_REASON;
1249const RebootDeviceResponse_Reason RebootDeviceResponse::UNKNOWN_DEVICE;
1250const RebootDeviceResponse_Reason RebootDeviceResponse::INTERNAL_ERROR;
1251const RebootDeviceResponse_Reason RebootDeviceResponse::DEVICE_UNREACHABLE;
1252const RebootDeviceResponse_Reason RebootDeviceResponse::Reason_MIN;
1253const RebootDeviceResponse_Reason RebootDeviceResponse::Reason_MAX;
1254const int RebootDeviceResponse::Reason_ARRAYSIZE;
1255#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301256
1257// ===================================================================
1258
1259void PhysicalInventoryRequest::InitAsDefaultInstance() {
1260 ::dmi::_PhysicalInventoryRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
1261 ::dmi::Uuid::internal_default_instance());
1262}
1263class PhysicalInventoryRequest::HasBitSetters {
1264 public:
1265 static const ::dmi::Uuid& device_uuid(const PhysicalInventoryRequest* msg);
1266};
1267
1268const ::dmi::Uuid&
1269PhysicalInventoryRequest::HasBitSetters::device_uuid(const PhysicalInventoryRequest* msg) {
1270 return *msg->device_uuid_;
1271}
1272void PhysicalInventoryRequest::clear_device_uuid() {
1273 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
1274 delete device_uuid_;
1275 }
1276 device_uuid_ = nullptr;
1277}
1278#if !defined(_MSC_VER) || _MSC_VER >= 1900
1279const int PhysicalInventoryRequest::kDeviceUuidFieldNumber;
1280#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1281
1282PhysicalInventoryRequest::PhysicalInventoryRequest()
1283 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
1284 SharedCtor();
1285 // @@protoc_insertion_point(constructor:dmi.PhysicalInventoryRequest)
1286}
1287PhysicalInventoryRequest::PhysicalInventoryRequest(const PhysicalInventoryRequest& from)
1288 : ::google::protobuf::Message(),
1289 _internal_metadata_(nullptr) {
1290 _internal_metadata_.MergeFrom(from._internal_metadata_);
1291 if (from.has_device_uuid()) {
1292 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
1293 } else {
1294 device_uuid_ = nullptr;
1295 }
1296 // @@protoc_insertion_point(copy_constructor:dmi.PhysicalInventoryRequest)
1297}
1298
1299void PhysicalInventoryRequest::SharedCtor() {
1300 ::google::protobuf::internal::InitSCC(
1301 &scc_info_PhysicalInventoryRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
1302 device_uuid_ = nullptr;
1303}
1304
1305PhysicalInventoryRequest::~PhysicalInventoryRequest() {
1306 // @@protoc_insertion_point(destructor:dmi.PhysicalInventoryRequest)
1307 SharedDtor();
1308}
1309
1310void PhysicalInventoryRequest::SharedDtor() {
1311 if (this != internal_default_instance()) delete device_uuid_;
1312}
1313
1314void PhysicalInventoryRequest::SetCachedSize(int size) const {
1315 _cached_size_.Set(size);
1316}
1317const PhysicalInventoryRequest& PhysicalInventoryRequest::default_instance() {
1318 ::google::protobuf::internal::InitSCC(&::scc_info_PhysicalInventoryRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
1319 return *internal_default_instance();
1320}
1321
1322
1323void PhysicalInventoryRequest::Clear() {
1324// @@protoc_insertion_point(message_clear_start:dmi.PhysicalInventoryRequest)
1325 ::google::protobuf::uint32 cached_has_bits = 0;
1326 // Prevent compiler warnings about cached_has_bits being unused
1327 (void) cached_has_bits;
1328
1329 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
1330 delete device_uuid_;
1331 }
1332 device_uuid_ = nullptr;
1333 _internal_metadata_.Clear();
1334}
1335
1336#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1337const char* PhysicalInventoryRequest::_InternalParse(const char* begin, const char* end, void* object,
1338 ::google::protobuf::internal::ParseContext* ctx) {
1339 auto msg = static_cast<PhysicalInventoryRequest*>(object);
1340 ::google::protobuf::int32 size; (void)size;
1341 int depth; (void)depth;
1342 ::google::protobuf::uint32 tag;
1343 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
1344 auto ptr = begin;
1345 while (ptr < end) {
1346 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
1347 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1348 switch (tag >> 3) {
1349 // .dmi.Uuid device_uuid = 1;
1350 case 1: {
1351 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
1352 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
1353 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1354 parser_till_end = ::dmi::Uuid::_InternalParse;
1355 object = msg->mutable_device_uuid();
1356 if (size > end - ptr) goto len_delim_till_end;
1357 ptr += size;
1358 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
1359 {parser_till_end, object}, ptr - size, ptr));
1360 break;
1361 }
1362 default: {
1363 handle_unusual:
1364 if ((tag & 7) == 4 || tag == 0) {
1365 ctx->EndGroup(tag);
1366 return ptr;
1367 }
1368 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
1369 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
1370 ptr = res.first;
1371 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
1372 if (res.second) return ptr;
1373 }
1374 } // switch
1375 } // while
1376 return ptr;
1377len_delim_till_end:
1378 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
1379 {parser_till_end, object}, size);
1380}
1381#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1382bool PhysicalInventoryRequest::MergePartialFromCodedStream(
1383 ::google::protobuf::io::CodedInputStream* input) {
1384#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
1385 ::google::protobuf::uint32 tag;
1386 // @@protoc_insertion_point(parse_start:dmi.PhysicalInventoryRequest)
1387 for (;;) {
1388 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1389 tag = p.first;
1390 if (!p.second) goto handle_unusual;
1391 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1392 // .dmi.Uuid device_uuid = 1;
1393 case 1: {
1394 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
1395 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1396 input, mutable_device_uuid()));
1397 } else {
1398 goto handle_unusual;
1399 }
1400 break;
1401 }
1402
1403 default: {
1404 handle_unusual:
1405 if (tag == 0) {
1406 goto success;
1407 }
1408 DO_(::google::protobuf::internal::WireFormat::SkipField(
1409 input, tag, _internal_metadata_.mutable_unknown_fields()));
1410 break;
1411 }
1412 }
1413 }
1414success:
1415 // @@protoc_insertion_point(parse_success:dmi.PhysicalInventoryRequest)
1416 return true;
1417failure:
1418 // @@protoc_insertion_point(parse_failure:dmi.PhysicalInventoryRequest)
1419 return false;
1420#undef DO_
1421}
1422#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1423
1424void PhysicalInventoryRequest::SerializeWithCachedSizes(
1425 ::google::protobuf::io::CodedOutputStream* output) const {
1426 // @@protoc_insertion_point(serialize_start:dmi.PhysicalInventoryRequest)
1427 ::google::protobuf::uint32 cached_has_bits = 0;
1428 (void) cached_has_bits;
1429
1430 // .dmi.Uuid device_uuid = 1;
1431 if (this->has_device_uuid()) {
1432 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1433 1, HasBitSetters::device_uuid(this), output);
1434 }
1435
1436 if (_internal_metadata_.have_unknown_fields()) {
1437 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1438 _internal_metadata_.unknown_fields(), output);
1439 }
1440 // @@protoc_insertion_point(serialize_end:dmi.PhysicalInventoryRequest)
1441}
1442
1443::google::protobuf::uint8* PhysicalInventoryRequest::InternalSerializeWithCachedSizesToArray(
1444 ::google::protobuf::uint8* target) const {
1445 // @@protoc_insertion_point(serialize_to_array_start:dmi.PhysicalInventoryRequest)
1446 ::google::protobuf::uint32 cached_has_bits = 0;
1447 (void) cached_has_bits;
1448
1449 // .dmi.Uuid device_uuid = 1;
1450 if (this->has_device_uuid()) {
1451 target = ::google::protobuf::internal::WireFormatLite::
1452 InternalWriteMessageToArray(
1453 1, HasBitSetters::device_uuid(this), target);
1454 }
1455
1456 if (_internal_metadata_.have_unknown_fields()) {
1457 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1458 _internal_metadata_.unknown_fields(), target);
1459 }
1460 // @@protoc_insertion_point(serialize_to_array_end:dmi.PhysicalInventoryRequest)
1461 return target;
1462}
1463
1464size_t PhysicalInventoryRequest::ByteSizeLong() const {
1465// @@protoc_insertion_point(message_byte_size_start:dmi.PhysicalInventoryRequest)
1466 size_t total_size = 0;
1467
1468 if (_internal_metadata_.have_unknown_fields()) {
1469 total_size +=
1470 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1471 _internal_metadata_.unknown_fields());
1472 }
1473 ::google::protobuf::uint32 cached_has_bits = 0;
1474 // Prevent compiler warnings about cached_has_bits being unused
1475 (void) cached_has_bits;
1476
1477 // .dmi.Uuid device_uuid = 1;
1478 if (this->has_device_uuid()) {
1479 total_size += 1 +
1480 ::google::protobuf::internal::WireFormatLite::MessageSize(
1481 *device_uuid_);
1482 }
1483
1484 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1485 SetCachedSize(cached_size);
1486 return total_size;
1487}
1488
1489void PhysicalInventoryRequest::MergeFrom(const ::google::protobuf::Message& from) {
1490// @@protoc_insertion_point(generalized_merge_from_start:dmi.PhysicalInventoryRequest)
1491 GOOGLE_DCHECK_NE(&from, this);
1492 const PhysicalInventoryRequest* source =
1493 ::google::protobuf::DynamicCastToGenerated<PhysicalInventoryRequest>(
1494 &from);
1495 if (source == nullptr) {
1496 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.PhysicalInventoryRequest)
1497 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1498 } else {
1499 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.PhysicalInventoryRequest)
1500 MergeFrom(*source);
1501 }
1502}
1503
1504void PhysicalInventoryRequest::MergeFrom(const PhysicalInventoryRequest& from) {
1505// @@protoc_insertion_point(class_specific_merge_from_start:dmi.PhysicalInventoryRequest)
1506 GOOGLE_DCHECK_NE(&from, this);
1507 _internal_metadata_.MergeFrom(from._internal_metadata_);
1508 ::google::protobuf::uint32 cached_has_bits = 0;
1509 (void) cached_has_bits;
1510
1511 if (from.has_device_uuid()) {
1512 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
1513 }
1514}
1515
1516void PhysicalInventoryRequest::CopyFrom(const ::google::protobuf::Message& from) {
1517// @@protoc_insertion_point(generalized_copy_from_start:dmi.PhysicalInventoryRequest)
1518 if (&from == this) return;
1519 Clear();
1520 MergeFrom(from);
1521}
1522
1523void PhysicalInventoryRequest::CopyFrom(const PhysicalInventoryRequest& from) {
1524// @@protoc_insertion_point(class_specific_copy_from_start:dmi.PhysicalInventoryRequest)
1525 if (&from == this) return;
1526 Clear();
1527 MergeFrom(from);
1528}
1529
1530bool PhysicalInventoryRequest::IsInitialized() const {
1531 return true;
1532}
1533
1534void PhysicalInventoryRequest::Swap(PhysicalInventoryRequest* other) {
1535 if (other == this) return;
1536 InternalSwap(other);
1537}
1538void PhysicalInventoryRequest::InternalSwap(PhysicalInventoryRequest* other) {
1539 using std::swap;
1540 _internal_metadata_.Swap(&other->_internal_metadata_);
1541 swap(device_uuid_, other->device_uuid_);
1542}
1543
1544::google::protobuf::Metadata PhysicalInventoryRequest::GetMetadata() const {
1545 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1546 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
1547}
1548
1549
1550// ===================================================================
1551
1552void PhysicalInventoryResponse::InitAsDefaultInstance() {
1553 ::dmi::_PhysicalInventoryResponse_default_instance_._instance.get_mutable()->inventory_ = const_cast< ::dmi::Hardware*>(
1554 ::dmi::Hardware::internal_default_instance());
1555}
1556class PhysicalInventoryResponse::HasBitSetters {
1557 public:
1558 static const ::dmi::Hardware& inventory(const PhysicalInventoryResponse* msg);
1559};
1560
1561const ::dmi::Hardware&
1562PhysicalInventoryResponse::HasBitSetters::inventory(const PhysicalInventoryResponse* msg) {
1563 return *msg->inventory_;
1564}
1565void PhysicalInventoryResponse::clear_inventory() {
1566 if (GetArenaNoVirtual() == nullptr && inventory_ != nullptr) {
1567 delete inventory_;
1568 }
1569 inventory_ = nullptr;
1570}
1571#if !defined(_MSC_VER) || _MSC_VER >= 1900
1572const int PhysicalInventoryResponse::kStatusFieldNumber;
1573const int PhysicalInventoryResponse::kReasonFieldNumber;
1574const int PhysicalInventoryResponse::kInventoryFieldNumber;
1575const int PhysicalInventoryResponse::kReasonDetailFieldNumber;
1576#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1577
1578PhysicalInventoryResponse::PhysicalInventoryResponse()
1579 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
1580 SharedCtor();
1581 // @@protoc_insertion_point(constructor:dmi.PhysicalInventoryResponse)
1582}
1583PhysicalInventoryResponse::PhysicalInventoryResponse(const PhysicalInventoryResponse& from)
1584 : ::google::protobuf::Message(),
1585 _internal_metadata_(nullptr) {
1586 _internal_metadata_.MergeFrom(from._internal_metadata_);
1587 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1588 if (from.reason_detail().size() > 0) {
1589 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
1590 }
1591 if (from.has_inventory()) {
1592 inventory_ = new ::dmi::Hardware(*from.inventory_);
1593 } else {
1594 inventory_ = nullptr;
1595 }
1596 ::memcpy(&status_, &from.status_,
1597 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
1598 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
1599 // @@protoc_insertion_point(copy_constructor:dmi.PhysicalInventoryResponse)
1600}
1601
1602void PhysicalInventoryResponse::SharedCtor() {
1603 ::google::protobuf::internal::InitSCC(
1604 &scc_info_PhysicalInventoryResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
1605 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1606 ::memset(&inventory_, 0, static_cast<size_t>(
1607 reinterpret_cast<char*>(&reason_) -
1608 reinterpret_cast<char*>(&inventory_)) + sizeof(reason_));
1609}
1610
1611PhysicalInventoryResponse::~PhysicalInventoryResponse() {
1612 // @@protoc_insertion_point(destructor:dmi.PhysicalInventoryResponse)
1613 SharedDtor();
1614}
1615
1616void PhysicalInventoryResponse::SharedDtor() {
1617 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1618 if (this != internal_default_instance()) delete inventory_;
1619}
1620
1621void PhysicalInventoryResponse::SetCachedSize(int size) const {
1622 _cached_size_.Set(size);
1623}
1624const PhysicalInventoryResponse& PhysicalInventoryResponse::default_instance() {
1625 ::google::protobuf::internal::InitSCC(&::scc_info_PhysicalInventoryResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
1626 return *internal_default_instance();
1627}
1628
1629
1630void PhysicalInventoryResponse::Clear() {
1631// @@protoc_insertion_point(message_clear_start:dmi.PhysicalInventoryResponse)
1632 ::google::protobuf::uint32 cached_has_bits = 0;
1633 // Prevent compiler warnings about cached_has_bits being unused
1634 (void) cached_has_bits;
1635
1636 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1637 if (GetArenaNoVirtual() == nullptr && inventory_ != nullptr) {
1638 delete inventory_;
1639 }
1640 inventory_ = nullptr;
1641 ::memset(&status_, 0, static_cast<size_t>(
1642 reinterpret_cast<char*>(&reason_) -
1643 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
1644 _internal_metadata_.Clear();
1645}
1646
1647#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1648const char* PhysicalInventoryResponse::_InternalParse(const char* begin, const char* end, void* object,
1649 ::google::protobuf::internal::ParseContext* ctx) {
1650 auto msg = static_cast<PhysicalInventoryResponse*>(object);
1651 ::google::protobuf::int32 size; (void)size;
1652 int depth; (void)depth;
1653 ::google::protobuf::uint32 tag;
1654 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
1655 auto ptr = begin;
1656 while (ptr < end) {
1657 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
1658 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1659 switch (tag >> 3) {
1660 // .dmi.Status status = 1;
1661 case 1: {
1662 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
1663 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
1664 msg->set_status(static_cast<::dmi::Status>(val));
1665 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1666 break;
1667 }
1668 // .dmi.PhysicalInventoryResponse.Reason reason = 2;
1669 case 2: {
1670 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
1671 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
1672 msg->set_reason(static_cast<::dmi::PhysicalInventoryResponse_Reason>(val));
1673 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1674 break;
1675 }
1676 // .dmi.Hardware inventory = 3;
1677 case 3: {
1678 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
1679 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
1680 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1681 parser_till_end = ::dmi::Hardware::_InternalParse;
1682 object = msg->mutable_inventory();
1683 if (size > end - ptr) goto len_delim_till_end;
1684 ptr += size;
1685 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
1686 {parser_till_end, object}, ptr - size, ptr));
1687 break;
1688 }
1689 // string reason_detail = 4;
1690 case 4: {
1691 if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual;
1692 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
1693 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1694 ctx->extra_parse_data().SetFieldName("dmi.PhysicalInventoryResponse.reason_detail");
1695 object = msg->mutable_reason_detail();
1696 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
1697 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
1698 goto string_till_end;
1699 }
1700 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
1701 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
1702 ptr += size;
1703 break;
1704 }
1705 default: {
1706 handle_unusual:
1707 if ((tag & 7) == 4 || tag == 0) {
1708 ctx->EndGroup(tag);
1709 return ptr;
1710 }
1711 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
1712 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
1713 ptr = res.first;
1714 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
1715 if (res.second) return ptr;
1716 }
1717 } // switch
1718 } // while
1719 return ptr;
1720string_till_end:
1721 static_cast<::std::string*>(object)->clear();
1722 static_cast<::std::string*>(object)->reserve(size);
1723 goto len_delim_till_end;
1724len_delim_till_end:
1725 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
1726 {parser_till_end, object}, size);
1727}
1728#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1729bool PhysicalInventoryResponse::MergePartialFromCodedStream(
1730 ::google::protobuf::io::CodedInputStream* input) {
1731#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
1732 ::google::protobuf::uint32 tag;
1733 // @@protoc_insertion_point(parse_start:dmi.PhysicalInventoryResponse)
1734 for (;;) {
1735 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1736 tag = p.first;
1737 if (!p.second) goto handle_unusual;
1738 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1739 // .dmi.Status status = 1;
1740 case 1: {
1741 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
1742 int value = 0;
1743 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1744 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1745 input, &value)));
1746 set_status(static_cast< ::dmi::Status >(value));
1747 } else {
1748 goto handle_unusual;
1749 }
1750 break;
1751 }
1752
1753 // .dmi.PhysicalInventoryResponse.Reason reason = 2;
1754 case 2: {
1755 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
1756 int value = 0;
1757 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1758 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1759 input, &value)));
1760 set_reason(static_cast< ::dmi::PhysicalInventoryResponse_Reason >(value));
1761 } else {
1762 goto handle_unusual;
1763 }
1764 break;
1765 }
1766
1767 // .dmi.Hardware inventory = 3;
1768 case 3: {
1769 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
1770 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1771 input, mutable_inventory()));
1772 } else {
1773 goto handle_unusual;
1774 }
1775 break;
1776 }
1777
1778 // string reason_detail = 4;
1779 case 4: {
1780 if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
1781 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1782 input, this->mutable_reason_detail()));
1783 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1784 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
1785 ::google::protobuf::internal::WireFormatLite::PARSE,
1786 "dmi.PhysicalInventoryResponse.reason_detail"));
1787 } else {
1788 goto handle_unusual;
1789 }
1790 break;
1791 }
1792
1793 default: {
1794 handle_unusual:
1795 if (tag == 0) {
1796 goto success;
1797 }
1798 DO_(::google::protobuf::internal::WireFormat::SkipField(
1799 input, tag, _internal_metadata_.mutable_unknown_fields()));
1800 break;
1801 }
1802 }
1803 }
1804success:
1805 // @@protoc_insertion_point(parse_success:dmi.PhysicalInventoryResponse)
1806 return true;
1807failure:
1808 // @@protoc_insertion_point(parse_failure:dmi.PhysicalInventoryResponse)
1809 return false;
1810#undef DO_
1811}
1812#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1813
1814void PhysicalInventoryResponse::SerializeWithCachedSizes(
1815 ::google::protobuf::io::CodedOutputStream* output) const {
1816 // @@protoc_insertion_point(serialize_start:dmi.PhysicalInventoryResponse)
1817 ::google::protobuf::uint32 cached_has_bits = 0;
1818 (void) cached_has_bits;
1819
1820 // .dmi.Status status = 1;
1821 if (this->status() != 0) {
1822 ::google::protobuf::internal::WireFormatLite::WriteEnum(
1823 1, this->status(), output);
1824 }
1825
1826 // .dmi.PhysicalInventoryResponse.Reason reason = 2;
1827 if (this->reason() != 0) {
1828 ::google::protobuf::internal::WireFormatLite::WriteEnum(
1829 2, this->reason(), output);
1830 }
1831
1832 // .dmi.Hardware inventory = 3;
1833 if (this->has_inventory()) {
1834 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1835 3, HasBitSetters::inventory(this), output);
1836 }
1837
1838 // string reason_detail = 4;
1839 if (this->reason_detail().size() > 0) {
1840 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1841 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
1842 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1843 "dmi.PhysicalInventoryResponse.reason_detail");
1844 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1845 4, this->reason_detail(), output);
1846 }
1847
1848 if (_internal_metadata_.have_unknown_fields()) {
1849 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1850 _internal_metadata_.unknown_fields(), output);
1851 }
1852 // @@protoc_insertion_point(serialize_end:dmi.PhysicalInventoryResponse)
1853}
1854
1855::google::protobuf::uint8* PhysicalInventoryResponse::InternalSerializeWithCachedSizesToArray(
1856 ::google::protobuf::uint8* target) const {
1857 // @@protoc_insertion_point(serialize_to_array_start:dmi.PhysicalInventoryResponse)
1858 ::google::protobuf::uint32 cached_has_bits = 0;
1859 (void) cached_has_bits;
1860
1861 // .dmi.Status status = 1;
1862 if (this->status() != 0) {
1863 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1864 1, this->status(), target);
1865 }
1866
1867 // .dmi.PhysicalInventoryResponse.Reason reason = 2;
1868 if (this->reason() != 0) {
1869 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1870 2, this->reason(), target);
1871 }
1872
1873 // .dmi.Hardware inventory = 3;
1874 if (this->has_inventory()) {
1875 target = ::google::protobuf::internal::WireFormatLite::
1876 InternalWriteMessageToArray(
1877 3, HasBitSetters::inventory(this), target);
1878 }
1879
1880 // string reason_detail = 4;
1881 if (this->reason_detail().size() > 0) {
1882 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1883 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
1884 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1885 "dmi.PhysicalInventoryResponse.reason_detail");
1886 target =
1887 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1888 4, this->reason_detail(), target);
1889 }
1890
1891 if (_internal_metadata_.have_unknown_fields()) {
1892 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1893 _internal_metadata_.unknown_fields(), target);
1894 }
1895 // @@protoc_insertion_point(serialize_to_array_end:dmi.PhysicalInventoryResponse)
1896 return target;
1897}
1898
1899size_t PhysicalInventoryResponse::ByteSizeLong() const {
1900// @@protoc_insertion_point(message_byte_size_start:dmi.PhysicalInventoryResponse)
1901 size_t total_size = 0;
1902
1903 if (_internal_metadata_.have_unknown_fields()) {
1904 total_size +=
1905 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1906 _internal_metadata_.unknown_fields());
1907 }
1908 ::google::protobuf::uint32 cached_has_bits = 0;
1909 // Prevent compiler warnings about cached_has_bits being unused
1910 (void) cached_has_bits;
1911
1912 // string reason_detail = 4;
1913 if (this->reason_detail().size() > 0) {
1914 total_size += 1 +
1915 ::google::protobuf::internal::WireFormatLite::StringSize(
1916 this->reason_detail());
1917 }
1918
1919 // .dmi.Hardware inventory = 3;
1920 if (this->has_inventory()) {
1921 total_size += 1 +
1922 ::google::protobuf::internal::WireFormatLite::MessageSize(
1923 *inventory_);
1924 }
1925
1926 // .dmi.Status status = 1;
1927 if (this->status() != 0) {
1928 total_size += 1 +
1929 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
1930 }
1931
1932 // .dmi.PhysicalInventoryResponse.Reason reason = 2;
1933 if (this->reason() != 0) {
1934 total_size += 1 +
1935 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
1936 }
1937
1938 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1939 SetCachedSize(cached_size);
1940 return total_size;
1941}
1942
1943void PhysicalInventoryResponse::MergeFrom(const ::google::protobuf::Message& from) {
1944// @@protoc_insertion_point(generalized_merge_from_start:dmi.PhysicalInventoryResponse)
1945 GOOGLE_DCHECK_NE(&from, this);
1946 const PhysicalInventoryResponse* source =
1947 ::google::protobuf::DynamicCastToGenerated<PhysicalInventoryResponse>(
1948 &from);
1949 if (source == nullptr) {
1950 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.PhysicalInventoryResponse)
1951 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1952 } else {
1953 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.PhysicalInventoryResponse)
1954 MergeFrom(*source);
1955 }
1956}
1957
1958void PhysicalInventoryResponse::MergeFrom(const PhysicalInventoryResponse& from) {
1959// @@protoc_insertion_point(class_specific_merge_from_start:dmi.PhysicalInventoryResponse)
1960 GOOGLE_DCHECK_NE(&from, this);
1961 _internal_metadata_.MergeFrom(from._internal_metadata_);
1962 ::google::protobuf::uint32 cached_has_bits = 0;
1963 (void) cached_has_bits;
1964
1965 if (from.reason_detail().size() > 0) {
1966
1967 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
1968 }
1969 if (from.has_inventory()) {
1970 mutable_inventory()->::dmi::Hardware::MergeFrom(from.inventory());
1971 }
1972 if (from.status() != 0) {
1973 set_status(from.status());
1974 }
1975 if (from.reason() != 0) {
1976 set_reason(from.reason());
1977 }
1978}
1979
1980void PhysicalInventoryResponse::CopyFrom(const ::google::protobuf::Message& from) {
1981// @@protoc_insertion_point(generalized_copy_from_start:dmi.PhysicalInventoryResponse)
1982 if (&from == this) return;
1983 Clear();
1984 MergeFrom(from);
1985}
1986
1987void PhysicalInventoryResponse::CopyFrom(const PhysicalInventoryResponse& from) {
1988// @@protoc_insertion_point(class_specific_copy_from_start:dmi.PhysicalInventoryResponse)
1989 if (&from == this) return;
1990 Clear();
1991 MergeFrom(from);
1992}
1993
1994bool PhysicalInventoryResponse::IsInitialized() const {
1995 return true;
1996}
1997
1998void PhysicalInventoryResponse::Swap(PhysicalInventoryResponse* other) {
1999 if (other == this) return;
2000 InternalSwap(other);
2001}
2002void PhysicalInventoryResponse::InternalSwap(PhysicalInventoryResponse* other) {
2003 using std::swap;
2004 _internal_metadata_.Swap(&other->_internal_metadata_);
2005 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2006 GetArenaNoVirtual());
2007 swap(inventory_, other->inventory_);
2008 swap(status_, other->status_);
2009 swap(reason_, other->reason_);
2010}
2011
2012::google::protobuf::Metadata PhysicalInventoryResponse::GetMetadata() const {
2013 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
2014 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
2015}
2016
2017
2018// ===================================================================
2019
2020void HWComponentInfoGetRequest::InitAsDefaultInstance() {
2021 ::dmi::_HWComponentInfoGetRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
2022 ::dmi::Uuid::internal_default_instance());
2023 ::dmi::_HWComponentInfoGetRequest_default_instance_._instance.get_mutable()->component_uuid_ = const_cast< ::dmi::Uuid*>(
2024 ::dmi::Uuid::internal_default_instance());
2025}
2026class HWComponentInfoGetRequest::HasBitSetters {
2027 public:
2028 static const ::dmi::Uuid& device_uuid(const HWComponentInfoGetRequest* msg);
2029 static const ::dmi::Uuid& component_uuid(const HWComponentInfoGetRequest* msg);
2030};
2031
2032const ::dmi::Uuid&
2033HWComponentInfoGetRequest::HasBitSetters::device_uuid(const HWComponentInfoGetRequest* msg) {
2034 return *msg->device_uuid_;
2035}
2036const ::dmi::Uuid&
2037HWComponentInfoGetRequest::HasBitSetters::component_uuid(const HWComponentInfoGetRequest* msg) {
2038 return *msg->component_uuid_;
2039}
2040void HWComponentInfoGetRequest::clear_device_uuid() {
2041 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
2042 delete device_uuid_;
2043 }
2044 device_uuid_ = nullptr;
2045}
2046void HWComponentInfoGetRequest::clear_component_uuid() {
2047 if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) {
2048 delete component_uuid_;
2049 }
2050 component_uuid_ = nullptr;
2051}
2052#if !defined(_MSC_VER) || _MSC_VER >= 1900
2053const int HWComponentInfoGetRequest::kDeviceUuidFieldNumber;
2054const int HWComponentInfoGetRequest::kComponentUuidFieldNumber;
2055const int HWComponentInfoGetRequest::kComponentNameFieldNumber;
2056#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
2057
2058HWComponentInfoGetRequest::HWComponentInfoGetRequest()
2059 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
2060 SharedCtor();
2061 // @@protoc_insertion_point(constructor:dmi.HWComponentInfoGetRequest)
2062}
2063HWComponentInfoGetRequest::HWComponentInfoGetRequest(const HWComponentInfoGetRequest& from)
2064 : ::google::protobuf::Message(),
2065 _internal_metadata_(nullptr) {
2066 _internal_metadata_.MergeFrom(from._internal_metadata_);
2067 component_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2068 if (from.component_name().size() > 0) {
2069 component_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.component_name_);
2070 }
2071 if (from.has_device_uuid()) {
2072 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
2073 } else {
2074 device_uuid_ = nullptr;
2075 }
2076 if (from.has_component_uuid()) {
2077 component_uuid_ = new ::dmi::Uuid(*from.component_uuid_);
2078 } else {
2079 component_uuid_ = nullptr;
2080 }
2081 // @@protoc_insertion_point(copy_constructor:dmi.HWComponentInfoGetRequest)
2082}
2083
2084void HWComponentInfoGetRequest::SharedCtor() {
2085 ::google::protobuf::internal::InitSCC(
2086 &scc_info_HWComponentInfoGetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
2087 component_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2088 ::memset(&device_uuid_, 0, static_cast<size_t>(
2089 reinterpret_cast<char*>(&component_uuid_) -
2090 reinterpret_cast<char*>(&device_uuid_)) + sizeof(component_uuid_));
2091}
2092
2093HWComponentInfoGetRequest::~HWComponentInfoGetRequest() {
2094 // @@protoc_insertion_point(destructor:dmi.HWComponentInfoGetRequest)
2095 SharedDtor();
2096}
2097
2098void HWComponentInfoGetRequest::SharedDtor() {
2099 component_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2100 if (this != internal_default_instance()) delete device_uuid_;
2101 if (this != internal_default_instance()) delete component_uuid_;
2102}
2103
2104void HWComponentInfoGetRequest::SetCachedSize(int size) const {
2105 _cached_size_.Set(size);
2106}
2107const HWComponentInfoGetRequest& HWComponentInfoGetRequest::default_instance() {
2108 ::google::protobuf::internal::InitSCC(&::scc_info_HWComponentInfoGetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
2109 return *internal_default_instance();
2110}
2111
2112
2113void HWComponentInfoGetRequest::Clear() {
2114// @@protoc_insertion_point(message_clear_start:dmi.HWComponentInfoGetRequest)
2115 ::google::protobuf::uint32 cached_has_bits = 0;
2116 // Prevent compiler warnings about cached_has_bits being unused
2117 (void) cached_has_bits;
2118
2119 component_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2120 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
2121 delete device_uuid_;
2122 }
2123 device_uuid_ = nullptr;
2124 if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) {
2125 delete component_uuid_;
2126 }
2127 component_uuid_ = nullptr;
2128 _internal_metadata_.Clear();
2129}
2130
2131#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2132const char* HWComponentInfoGetRequest::_InternalParse(const char* begin, const char* end, void* object,
2133 ::google::protobuf::internal::ParseContext* ctx) {
2134 auto msg = static_cast<HWComponentInfoGetRequest*>(object);
2135 ::google::protobuf::int32 size; (void)size;
2136 int depth; (void)depth;
2137 ::google::protobuf::uint32 tag;
2138 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
2139 auto ptr = begin;
2140 while (ptr < end) {
2141 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
2142 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2143 switch (tag >> 3) {
2144 // .dmi.Uuid device_uuid = 1;
2145 case 1: {
2146 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
2147 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
2148 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2149 parser_till_end = ::dmi::Uuid::_InternalParse;
2150 object = msg->mutable_device_uuid();
2151 if (size > end - ptr) goto len_delim_till_end;
2152 ptr += size;
2153 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
2154 {parser_till_end, object}, ptr - size, ptr));
2155 break;
2156 }
2157 // .dmi.Uuid component_uuid = 2;
2158 case 2: {
2159 if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
2160 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
2161 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2162 parser_till_end = ::dmi::Uuid::_InternalParse;
2163 object = msg->mutable_component_uuid();
2164 if (size > end - ptr) goto len_delim_till_end;
2165 ptr += size;
2166 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
2167 {parser_till_end, object}, ptr - size, ptr));
2168 break;
2169 }
2170 // string component_name = 3;
2171 case 3: {
2172 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
2173 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
2174 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2175 ctx->extra_parse_data().SetFieldName("dmi.HWComponentInfoGetRequest.component_name");
2176 object = msg->mutable_component_name();
2177 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
2178 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
2179 goto string_till_end;
2180 }
2181 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
2182 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
2183 ptr += size;
2184 break;
2185 }
2186 default: {
2187 handle_unusual:
2188 if ((tag & 7) == 4 || tag == 0) {
2189 ctx->EndGroup(tag);
2190 return ptr;
2191 }
2192 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
2193 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
2194 ptr = res.first;
2195 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
2196 if (res.second) return ptr;
2197 }
2198 } // switch
2199 } // while
2200 return ptr;
2201string_till_end:
2202 static_cast<::std::string*>(object)->clear();
2203 static_cast<::std::string*>(object)->reserve(size);
2204 goto len_delim_till_end;
2205len_delim_till_end:
2206 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
2207 {parser_till_end, object}, size);
2208}
2209#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2210bool HWComponentInfoGetRequest::MergePartialFromCodedStream(
2211 ::google::protobuf::io::CodedInputStream* input) {
2212#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
2213 ::google::protobuf::uint32 tag;
2214 // @@protoc_insertion_point(parse_start:dmi.HWComponentInfoGetRequest)
2215 for (;;) {
2216 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2217 tag = p.first;
2218 if (!p.second) goto handle_unusual;
2219 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2220 // .dmi.Uuid device_uuid = 1;
2221 case 1: {
2222 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
2223 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
2224 input, mutable_device_uuid()));
2225 } else {
2226 goto handle_unusual;
2227 }
2228 break;
2229 }
2230
2231 // .dmi.Uuid component_uuid = 2;
2232 case 2: {
2233 if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
2234 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
2235 input, mutable_component_uuid()));
2236 } else {
2237 goto handle_unusual;
2238 }
2239 break;
2240 }
2241
2242 // string component_name = 3;
2243 case 3: {
2244 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
2245 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2246 input, this->mutable_component_name()));
2247 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2248 this->component_name().data(), static_cast<int>(this->component_name().length()),
2249 ::google::protobuf::internal::WireFormatLite::PARSE,
2250 "dmi.HWComponentInfoGetRequest.component_name"));
2251 } else {
2252 goto handle_unusual;
2253 }
2254 break;
2255 }
2256
2257 default: {
2258 handle_unusual:
2259 if (tag == 0) {
2260 goto success;
2261 }
2262 DO_(::google::protobuf::internal::WireFormat::SkipField(
2263 input, tag, _internal_metadata_.mutable_unknown_fields()));
2264 break;
2265 }
2266 }
2267 }
2268success:
2269 // @@protoc_insertion_point(parse_success:dmi.HWComponentInfoGetRequest)
2270 return true;
2271failure:
2272 // @@protoc_insertion_point(parse_failure:dmi.HWComponentInfoGetRequest)
2273 return false;
2274#undef DO_
2275}
2276#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2277
2278void HWComponentInfoGetRequest::SerializeWithCachedSizes(
2279 ::google::protobuf::io::CodedOutputStream* output) const {
2280 // @@protoc_insertion_point(serialize_start:dmi.HWComponentInfoGetRequest)
2281 ::google::protobuf::uint32 cached_has_bits = 0;
2282 (void) cached_has_bits;
2283
2284 // .dmi.Uuid device_uuid = 1;
2285 if (this->has_device_uuid()) {
2286 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2287 1, HasBitSetters::device_uuid(this), output);
2288 }
2289
2290 // .dmi.Uuid component_uuid = 2;
2291 if (this->has_component_uuid()) {
2292 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2293 2, HasBitSetters::component_uuid(this), output);
2294 }
2295
2296 // string component_name = 3;
2297 if (this->component_name().size() > 0) {
2298 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2299 this->component_name().data(), static_cast<int>(this->component_name().length()),
2300 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
2301 "dmi.HWComponentInfoGetRequest.component_name");
2302 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2303 3, this->component_name(), output);
2304 }
2305
2306 if (_internal_metadata_.have_unknown_fields()) {
2307 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2308 _internal_metadata_.unknown_fields(), output);
2309 }
2310 // @@protoc_insertion_point(serialize_end:dmi.HWComponentInfoGetRequest)
2311}
2312
2313::google::protobuf::uint8* HWComponentInfoGetRequest::InternalSerializeWithCachedSizesToArray(
2314 ::google::protobuf::uint8* target) const {
2315 // @@protoc_insertion_point(serialize_to_array_start:dmi.HWComponentInfoGetRequest)
2316 ::google::protobuf::uint32 cached_has_bits = 0;
2317 (void) cached_has_bits;
2318
2319 // .dmi.Uuid device_uuid = 1;
2320 if (this->has_device_uuid()) {
2321 target = ::google::protobuf::internal::WireFormatLite::
2322 InternalWriteMessageToArray(
2323 1, HasBitSetters::device_uuid(this), target);
2324 }
2325
2326 // .dmi.Uuid component_uuid = 2;
2327 if (this->has_component_uuid()) {
2328 target = ::google::protobuf::internal::WireFormatLite::
2329 InternalWriteMessageToArray(
2330 2, HasBitSetters::component_uuid(this), target);
2331 }
2332
2333 // string component_name = 3;
2334 if (this->component_name().size() > 0) {
2335 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2336 this->component_name().data(), static_cast<int>(this->component_name().length()),
2337 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
2338 "dmi.HWComponentInfoGetRequest.component_name");
2339 target =
2340 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2341 3, this->component_name(), target);
2342 }
2343
2344 if (_internal_metadata_.have_unknown_fields()) {
2345 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2346 _internal_metadata_.unknown_fields(), target);
2347 }
2348 // @@protoc_insertion_point(serialize_to_array_end:dmi.HWComponentInfoGetRequest)
2349 return target;
2350}
2351
2352size_t HWComponentInfoGetRequest::ByteSizeLong() const {
2353// @@protoc_insertion_point(message_byte_size_start:dmi.HWComponentInfoGetRequest)
2354 size_t total_size = 0;
2355
2356 if (_internal_metadata_.have_unknown_fields()) {
2357 total_size +=
2358 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2359 _internal_metadata_.unknown_fields());
2360 }
2361 ::google::protobuf::uint32 cached_has_bits = 0;
2362 // Prevent compiler warnings about cached_has_bits being unused
2363 (void) cached_has_bits;
2364
2365 // string component_name = 3;
2366 if (this->component_name().size() > 0) {
2367 total_size += 1 +
2368 ::google::protobuf::internal::WireFormatLite::StringSize(
2369 this->component_name());
2370 }
2371
2372 // .dmi.Uuid device_uuid = 1;
2373 if (this->has_device_uuid()) {
2374 total_size += 1 +
2375 ::google::protobuf::internal::WireFormatLite::MessageSize(
2376 *device_uuid_);
2377 }
2378
2379 // .dmi.Uuid component_uuid = 2;
2380 if (this->has_component_uuid()) {
2381 total_size += 1 +
2382 ::google::protobuf::internal::WireFormatLite::MessageSize(
2383 *component_uuid_);
2384 }
2385
2386 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2387 SetCachedSize(cached_size);
2388 return total_size;
2389}
2390
2391void HWComponentInfoGetRequest::MergeFrom(const ::google::protobuf::Message& from) {
2392// @@protoc_insertion_point(generalized_merge_from_start:dmi.HWComponentInfoGetRequest)
2393 GOOGLE_DCHECK_NE(&from, this);
2394 const HWComponentInfoGetRequest* source =
2395 ::google::protobuf::DynamicCastToGenerated<HWComponentInfoGetRequest>(
2396 &from);
2397 if (source == nullptr) {
2398 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.HWComponentInfoGetRequest)
2399 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2400 } else {
2401 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.HWComponentInfoGetRequest)
2402 MergeFrom(*source);
2403 }
2404}
2405
2406void HWComponentInfoGetRequest::MergeFrom(const HWComponentInfoGetRequest& from) {
2407// @@protoc_insertion_point(class_specific_merge_from_start:dmi.HWComponentInfoGetRequest)
2408 GOOGLE_DCHECK_NE(&from, this);
2409 _internal_metadata_.MergeFrom(from._internal_metadata_);
2410 ::google::protobuf::uint32 cached_has_bits = 0;
2411 (void) cached_has_bits;
2412
2413 if (from.component_name().size() > 0) {
2414
2415 component_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.component_name_);
2416 }
2417 if (from.has_device_uuid()) {
2418 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
2419 }
2420 if (from.has_component_uuid()) {
2421 mutable_component_uuid()->::dmi::Uuid::MergeFrom(from.component_uuid());
2422 }
2423}
2424
2425void HWComponentInfoGetRequest::CopyFrom(const ::google::protobuf::Message& from) {
2426// @@protoc_insertion_point(generalized_copy_from_start:dmi.HWComponentInfoGetRequest)
2427 if (&from == this) return;
2428 Clear();
2429 MergeFrom(from);
2430}
2431
2432void HWComponentInfoGetRequest::CopyFrom(const HWComponentInfoGetRequest& from) {
2433// @@protoc_insertion_point(class_specific_copy_from_start:dmi.HWComponentInfoGetRequest)
2434 if (&from == this) return;
2435 Clear();
2436 MergeFrom(from);
2437}
2438
2439bool HWComponentInfoGetRequest::IsInitialized() const {
2440 return true;
2441}
2442
2443void HWComponentInfoGetRequest::Swap(HWComponentInfoGetRequest* other) {
2444 if (other == this) return;
2445 InternalSwap(other);
2446}
2447void HWComponentInfoGetRequest::InternalSwap(HWComponentInfoGetRequest* other) {
2448 using std::swap;
2449 _internal_metadata_.Swap(&other->_internal_metadata_);
2450 component_name_.Swap(&other->component_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2451 GetArenaNoVirtual());
2452 swap(device_uuid_, other->device_uuid_);
2453 swap(component_uuid_, other->component_uuid_);
2454}
2455
2456::google::protobuf::Metadata HWComponentInfoGetRequest::GetMetadata() const {
2457 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
2458 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
2459}
2460
2461
2462// ===================================================================
2463
2464void HWComponentInfoGetResponse::InitAsDefaultInstance() {
2465 ::dmi::_HWComponentInfoGetResponse_default_instance_._instance.get_mutable()->component_ = const_cast< ::dmi::Component*>(
2466 ::dmi::Component::internal_default_instance());
2467}
2468class HWComponentInfoGetResponse::HasBitSetters {
2469 public:
2470 static const ::dmi::Component& component(const HWComponentInfoGetResponse* msg);
2471};
2472
2473const ::dmi::Component&
2474HWComponentInfoGetResponse::HasBitSetters::component(const HWComponentInfoGetResponse* msg) {
2475 return *msg->component_;
2476}
2477void HWComponentInfoGetResponse::clear_component() {
2478 if (GetArenaNoVirtual() == nullptr && component_ != nullptr) {
2479 delete component_;
2480 }
2481 component_ = nullptr;
2482}
2483#if !defined(_MSC_VER) || _MSC_VER >= 1900
2484const int HWComponentInfoGetResponse::kStatusFieldNumber;
2485const int HWComponentInfoGetResponse::kReasonFieldNumber;
2486const int HWComponentInfoGetResponse::kComponentFieldNumber;
2487const int HWComponentInfoGetResponse::kReasonDetailFieldNumber;
2488#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
2489
2490HWComponentInfoGetResponse::HWComponentInfoGetResponse()
2491 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
2492 SharedCtor();
2493 // @@protoc_insertion_point(constructor:dmi.HWComponentInfoGetResponse)
2494}
2495HWComponentInfoGetResponse::HWComponentInfoGetResponse(const HWComponentInfoGetResponse& from)
2496 : ::google::protobuf::Message(),
2497 _internal_metadata_(nullptr) {
2498 _internal_metadata_.MergeFrom(from._internal_metadata_);
2499 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2500 if (from.reason_detail().size() > 0) {
2501 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
2502 }
2503 if (from.has_component()) {
2504 component_ = new ::dmi::Component(*from.component_);
2505 } else {
2506 component_ = nullptr;
2507 }
2508 ::memcpy(&status_, &from.status_,
2509 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
2510 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
2511 // @@protoc_insertion_point(copy_constructor:dmi.HWComponentInfoGetResponse)
2512}
2513
2514void HWComponentInfoGetResponse::SharedCtor() {
2515 ::google::protobuf::internal::InitSCC(
2516 &scc_info_HWComponentInfoGetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
2517 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2518 ::memset(&component_, 0, static_cast<size_t>(
2519 reinterpret_cast<char*>(&reason_) -
2520 reinterpret_cast<char*>(&component_)) + sizeof(reason_));
2521}
2522
2523HWComponentInfoGetResponse::~HWComponentInfoGetResponse() {
2524 // @@protoc_insertion_point(destructor:dmi.HWComponentInfoGetResponse)
2525 SharedDtor();
2526}
2527
2528void HWComponentInfoGetResponse::SharedDtor() {
2529 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2530 if (this != internal_default_instance()) delete component_;
2531}
2532
2533void HWComponentInfoGetResponse::SetCachedSize(int size) const {
2534 _cached_size_.Set(size);
2535}
2536const HWComponentInfoGetResponse& HWComponentInfoGetResponse::default_instance() {
2537 ::google::protobuf::internal::InitSCC(&::scc_info_HWComponentInfoGetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
2538 return *internal_default_instance();
2539}
2540
2541
2542void HWComponentInfoGetResponse::Clear() {
2543// @@protoc_insertion_point(message_clear_start:dmi.HWComponentInfoGetResponse)
2544 ::google::protobuf::uint32 cached_has_bits = 0;
2545 // Prevent compiler warnings about cached_has_bits being unused
2546 (void) cached_has_bits;
2547
2548 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2549 if (GetArenaNoVirtual() == nullptr && component_ != nullptr) {
2550 delete component_;
2551 }
2552 component_ = nullptr;
2553 ::memset(&status_, 0, static_cast<size_t>(
2554 reinterpret_cast<char*>(&reason_) -
2555 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
2556 _internal_metadata_.Clear();
2557}
2558
2559#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2560const char* HWComponentInfoGetResponse::_InternalParse(const char* begin, const char* end, void* object,
2561 ::google::protobuf::internal::ParseContext* ctx) {
2562 auto msg = static_cast<HWComponentInfoGetResponse*>(object);
2563 ::google::protobuf::int32 size; (void)size;
2564 int depth; (void)depth;
2565 ::google::protobuf::uint32 tag;
2566 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
2567 auto ptr = begin;
2568 while (ptr < end) {
2569 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
2570 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2571 switch (tag >> 3) {
2572 // .dmi.Status status = 1;
2573 case 1: {
2574 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
2575 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
2576 msg->set_status(static_cast<::dmi::Status>(val));
2577 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2578 break;
2579 }
2580 // .dmi.HWComponentInfoGetResponse.Reason reason = 2;
2581 case 2: {
2582 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
2583 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
2584 msg->set_reason(static_cast<::dmi::HWComponentInfoGetResponse_Reason>(val));
2585 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2586 break;
2587 }
2588 // .dmi.Component component = 3;
2589 case 3: {
2590 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
2591 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
2592 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2593 parser_till_end = ::dmi::Component::_InternalParse;
2594 object = msg->mutable_component();
2595 if (size > end - ptr) goto len_delim_till_end;
2596 ptr += size;
2597 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
2598 {parser_till_end, object}, ptr - size, ptr));
2599 break;
2600 }
2601 // string reason_detail = 4;
2602 case 4: {
2603 if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual;
2604 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
2605 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2606 ctx->extra_parse_data().SetFieldName("dmi.HWComponentInfoGetResponse.reason_detail");
2607 object = msg->mutable_reason_detail();
2608 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
2609 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
2610 goto string_till_end;
2611 }
2612 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
2613 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
2614 ptr += size;
2615 break;
2616 }
2617 default: {
2618 handle_unusual:
2619 if ((tag & 7) == 4 || tag == 0) {
2620 ctx->EndGroup(tag);
2621 return ptr;
2622 }
2623 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
2624 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
2625 ptr = res.first;
2626 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
2627 if (res.second) return ptr;
2628 }
2629 } // switch
2630 } // while
2631 return ptr;
2632string_till_end:
2633 static_cast<::std::string*>(object)->clear();
2634 static_cast<::std::string*>(object)->reserve(size);
2635 goto len_delim_till_end;
2636len_delim_till_end:
2637 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
2638 {parser_till_end, object}, size);
2639}
2640#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2641bool HWComponentInfoGetResponse::MergePartialFromCodedStream(
2642 ::google::protobuf::io::CodedInputStream* input) {
2643#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
2644 ::google::protobuf::uint32 tag;
2645 // @@protoc_insertion_point(parse_start:dmi.HWComponentInfoGetResponse)
2646 for (;;) {
2647 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2648 tag = p.first;
2649 if (!p.second) goto handle_unusual;
2650 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2651 // .dmi.Status status = 1;
2652 case 1: {
2653 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
2654 int value = 0;
2655 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2656 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
2657 input, &value)));
2658 set_status(static_cast< ::dmi::Status >(value));
2659 } else {
2660 goto handle_unusual;
2661 }
2662 break;
2663 }
2664
2665 // .dmi.HWComponentInfoGetResponse.Reason reason = 2;
2666 case 2: {
2667 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
2668 int value = 0;
2669 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2670 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
2671 input, &value)));
2672 set_reason(static_cast< ::dmi::HWComponentInfoGetResponse_Reason >(value));
2673 } else {
2674 goto handle_unusual;
2675 }
2676 break;
2677 }
2678
2679 // .dmi.Component component = 3;
2680 case 3: {
2681 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
2682 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
2683 input, mutable_component()));
2684 } else {
2685 goto handle_unusual;
2686 }
2687 break;
2688 }
2689
2690 // string reason_detail = 4;
2691 case 4: {
2692 if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
2693 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2694 input, this->mutable_reason_detail()));
2695 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2696 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
2697 ::google::protobuf::internal::WireFormatLite::PARSE,
2698 "dmi.HWComponentInfoGetResponse.reason_detail"));
2699 } else {
2700 goto handle_unusual;
2701 }
2702 break;
2703 }
2704
2705 default: {
2706 handle_unusual:
2707 if (tag == 0) {
2708 goto success;
2709 }
2710 DO_(::google::protobuf::internal::WireFormat::SkipField(
2711 input, tag, _internal_metadata_.mutable_unknown_fields()));
2712 break;
2713 }
2714 }
2715 }
2716success:
2717 // @@protoc_insertion_point(parse_success:dmi.HWComponentInfoGetResponse)
2718 return true;
2719failure:
2720 // @@protoc_insertion_point(parse_failure:dmi.HWComponentInfoGetResponse)
2721 return false;
2722#undef DO_
2723}
2724#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2725
2726void HWComponentInfoGetResponse::SerializeWithCachedSizes(
2727 ::google::protobuf::io::CodedOutputStream* output) const {
2728 // @@protoc_insertion_point(serialize_start:dmi.HWComponentInfoGetResponse)
2729 ::google::protobuf::uint32 cached_has_bits = 0;
2730 (void) cached_has_bits;
2731
2732 // .dmi.Status status = 1;
2733 if (this->status() != 0) {
2734 ::google::protobuf::internal::WireFormatLite::WriteEnum(
2735 1, this->status(), output);
2736 }
2737
2738 // .dmi.HWComponentInfoGetResponse.Reason reason = 2;
2739 if (this->reason() != 0) {
2740 ::google::protobuf::internal::WireFormatLite::WriteEnum(
2741 2, this->reason(), output);
2742 }
2743
2744 // .dmi.Component component = 3;
2745 if (this->has_component()) {
2746 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2747 3, HasBitSetters::component(this), output);
2748 }
2749
2750 // string reason_detail = 4;
2751 if (this->reason_detail().size() > 0) {
2752 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2753 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
2754 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
2755 "dmi.HWComponentInfoGetResponse.reason_detail");
2756 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2757 4, this->reason_detail(), output);
2758 }
2759
2760 if (_internal_metadata_.have_unknown_fields()) {
2761 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2762 _internal_metadata_.unknown_fields(), output);
2763 }
2764 // @@protoc_insertion_point(serialize_end:dmi.HWComponentInfoGetResponse)
2765}
2766
2767::google::protobuf::uint8* HWComponentInfoGetResponse::InternalSerializeWithCachedSizesToArray(
2768 ::google::protobuf::uint8* target) const {
2769 // @@protoc_insertion_point(serialize_to_array_start:dmi.HWComponentInfoGetResponse)
2770 ::google::protobuf::uint32 cached_has_bits = 0;
2771 (void) cached_has_bits;
2772
2773 // .dmi.Status status = 1;
2774 if (this->status() != 0) {
2775 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2776 1, this->status(), target);
2777 }
2778
2779 // .dmi.HWComponentInfoGetResponse.Reason reason = 2;
2780 if (this->reason() != 0) {
2781 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2782 2, this->reason(), target);
2783 }
2784
2785 // .dmi.Component component = 3;
2786 if (this->has_component()) {
2787 target = ::google::protobuf::internal::WireFormatLite::
2788 InternalWriteMessageToArray(
2789 3, HasBitSetters::component(this), target);
2790 }
2791
2792 // string reason_detail = 4;
2793 if (this->reason_detail().size() > 0) {
2794 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2795 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
2796 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
2797 "dmi.HWComponentInfoGetResponse.reason_detail");
2798 target =
2799 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2800 4, this->reason_detail(), target);
2801 }
2802
2803 if (_internal_metadata_.have_unknown_fields()) {
2804 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2805 _internal_metadata_.unknown_fields(), target);
2806 }
2807 // @@protoc_insertion_point(serialize_to_array_end:dmi.HWComponentInfoGetResponse)
2808 return target;
2809}
2810
2811size_t HWComponentInfoGetResponse::ByteSizeLong() const {
2812// @@protoc_insertion_point(message_byte_size_start:dmi.HWComponentInfoGetResponse)
2813 size_t total_size = 0;
2814
2815 if (_internal_metadata_.have_unknown_fields()) {
2816 total_size +=
2817 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2818 _internal_metadata_.unknown_fields());
2819 }
2820 ::google::protobuf::uint32 cached_has_bits = 0;
2821 // Prevent compiler warnings about cached_has_bits being unused
2822 (void) cached_has_bits;
2823
2824 // string reason_detail = 4;
2825 if (this->reason_detail().size() > 0) {
2826 total_size += 1 +
2827 ::google::protobuf::internal::WireFormatLite::StringSize(
2828 this->reason_detail());
2829 }
2830
2831 // .dmi.Component component = 3;
2832 if (this->has_component()) {
2833 total_size += 1 +
2834 ::google::protobuf::internal::WireFormatLite::MessageSize(
2835 *component_);
2836 }
2837
2838 // .dmi.Status status = 1;
2839 if (this->status() != 0) {
2840 total_size += 1 +
2841 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
2842 }
2843
2844 // .dmi.HWComponentInfoGetResponse.Reason reason = 2;
2845 if (this->reason() != 0) {
2846 total_size += 1 +
2847 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
2848 }
2849
2850 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2851 SetCachedSize(cached_size);
2852 return total_size;
2853}
2854
2855void HWComponentInfoGetResponse::MergeFrom(const ::google::protobuf::Message& from) {
2856// @@protoc_insertion_point(generalized_merge_from_start:dmi.HWComponentInfoGetResponse)
2857 GOOGLE_DCHECK_NE(&from, this);
2858 const HWComponentInfoGetResponse* source =
2859 ::google::protobuf::DynamicCastToGenerated<HWComponentInfoGetResponse>(
2860 &from);
2861 if (source == nullptr) {
2862 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.HWComponentInfoGetResponse)
2863 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2864 } else {
2865 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.HWComponentInfoGetResponse)
2866 MergeFrom(*source);
2867 }
2868}
2869
2870void HWComponentInfoGetResponse::MergeFrom(const HWComponentInfoGetResponse& from) {
2871// @@protoc_insertion_point(class_specific_merge_from_start:dmi.HWComponentInfoGetResponse)
2872 GOOGLE_DCHECK_NE(&from, this);
2873 _internal_metadata_.MergeFrom(from._internal_metadata_);
2874 ::google::protobuf::uint32 cached_has_bits = 0;
2875 (void) cached_has_bits;
2876
2877 if (from.reason_detail().size() > 0) {
2878
2879 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
2880 }
2881 if (from.has_component()) {
2882 mutable_component()->::dmi::Component::MergeFrom(from.component());
2883 }
2884 if (from.status() != 0) {
2885 set_status(from.status());
2886 }
2887 if (from.reason() != 0) {
2888 set_reason(from.reason());
2889 }
2890}
2891
2892void HWComponentInfoGetResponse::CopyFrom(const ::google::protobuf::Message& from) {
2893// @@protoc_insertion_point(generalized_copy_from_start:dmi.HWComponentInfoGetResponse)
2894 if (&from == this) return;
2895 Clear();
2896 MergeFrom(from);
2897}
2898
2899void HWComponentInfoGetResponse::CopyFrom(const HWComponentInfoGetResponse& from) {
2900// @@protoc_insertion_point(class_specific_copy_from_start:dmi.HWComponentInfoGetResponse)
2901 if (&from == this) return;
2902 Clear();
2903 MergeFrom(from);
2904}
2905
2906bool HWComponentInfoGetResponse::IsInitialized() const {
2907 return true;
2908}
2909
2910void HWComponentInfoGetResponse::Swap(HWComponentInfoGetResponse* other) {
2911 if (other == this) return;
2912 InternalSwap(other);
2913}
2914void HWComponentInfoGetResponse::InternalSwap(HWComponentInfoGetResponse* other) {
2915 using std::swap;
2916 _internal_metadata_.Swap(&other->_internal_metadata_);
2917 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2918 GetArenaNoVirtual());
2919 swap(component_, other->component_);
2920 swap(status_, other->status_);
2921 swap(reason_, other->reason_);
2922}
2923
2924::google::protobuf::Metadata HWComponentInfoGetResponse::GetMetadata() const {
2925 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
2926 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
2927}
2928
2929
2930// ===================================================================
2931
2932void HWComponentInfoSetRequest::InitAsDefaultInstance() {
2933 ::dmi::_HWComponentInfoSetRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
2934 ::dmi::Uuid::internal_default_instance());
2935 ::dmi::_HWComponentInfoSetRequest_default_instance_._instance.get_mutable()->component_uuid_ = const_cast< ::dmi::Uuid*>(
2936 ::dmi::Uuid::internal_default_instance());
2937 ::dmi::_HWComponentInfoSetRequest_default_instance_._instance.get_mutable()->changes_ = const_cast< ::dmi::ModifiableComponent*>(
2938 ::dmi::ModifiableComponent::internal_default_instance());
2939}
2940class HWComponentInfoSetRequest::HasBitSetters {
2941 public:
2942 static const ::dmi::Uuid& device_uuid(const HWComponentInfoSetRequest* msg);
2943 static const ::dmi::Uuid& component_uuid(const HWComponentInfoSetRequest* msg);
2944 static const ::dmi::ModifiableComponent& changes(const HWComponentInfoSetRequest* msg);
2945};
2946
2947const ::dmi::Uuid&
2948HWComponentInfoSetRequest::HasBitSetters::device_uuid(const HWComponentInfoSetRequest* msg) {
2949 return *msg->device_uuid_;
2950}
2951const ::dmi::Uuid&
2952HWComponentInfoSetRequest::HasBitSetters::component_uuid(const HWComponentInfoSetRequest* msg) {
2953 return *msg->component_uuid_;
2954}
2955const ::dmi::ModifiableComponent&
2956HWComponentInfoSetRequest::HasBitSetters::changes(const HWComponentInfoSetRequest* msg) {
2957 return *msg->changes_;
2958}
2959void HWComponentInfoSetRequest::clear_device_uuid() {
2960 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
2961 delete device_uuid_;
2962 }
2963 device_uuid_ = nullptr;
2964}
2965void HWComponentInfoSetRequest::clear_component_uuid() {
2966 if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) {
2967 delete component_uuid_;
2968 }
2969 component_uuid_ = nullptr;
2970}
2971void HWComponentInfoSetRequest::clear_changes() {
2972 if (GetArenaNoVirtual() == nullptr && changes_ != nullptr) {
2973 delete changes_;
2974 }
2975 changes_ = nullptr;
2976}
2977#if !defined(_MSC_VER) || _MSC_VER >= 1900
2978const int HWComponentInfoSetRequest::kDeviceUuidFieldNumber;
2979const int HWComponentInfoSetRequest::kComponentUuidFieldNumber;
2980const int HWComponentInfoSetRequest::kComponentNameFieldNumber;
2981const int HWComponentInfoSetRequest::kChangesFieldNumber;
2982#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
2983
2984HWComponentInfoSetRequest::HWComponentInfoSetRequest()
2985 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
2986 SharedCtor();
2987 // @@protoc_insertion_point(constructor:dmi.HWComponentInfoSetRequest)
2988}
2989HWComponentInfoSetRequest::HWComponentInfoSetRequest(const HWComponentInfoSetRequest& from)
2990 : ::google::protobuf::Message(),
2991 _internal_metadata_(nullptr) {
2992 _internal_metadata_.MergeFrom(from._internal_metadata_);
2993 component_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2994 if (from.component_name().size() > 0) {
2995 component_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.component_name_);
2996 }
2997 if (from.has_device_uuid()) {
2998 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
2999 } else {
3000 device_uuid_ = nullptr;
3001 }
3002 if (from.has_component_uuid()) {
3003 component_uuid_ = new ::dmi::Uuid(*from.component_uuid_);
3004 } else {
3005 component_uuid_ = nullptr;
3006 }
3007 if (from.has_changes()) {
3008 changes_ = new ::dmi::ModifiableComponent(*from.changes_);
3009 } else {
3010 changes_ = nullptr;
3011 }
3012 // @@protoc_insertion_point(copy_constructor:dmi.HWComponentInfoSetRequest)
3013}
3014
3015void HWComponentInfoSetRequest::SharedCtor() {
3016 ::google::protobuf::internal::InitSCC(
3017 &scc_info_HWComponentInfoSetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
3018 component_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3019 ::memset(&device_uuid_, 0, static_cast<size_t>(
3020 reinterpret_cast<char*>(&changes_) -
3021 reinterpret_cast<char*>(&device_uuid_)) + sizeof(changes_));
3022}
3023
3024HWComponentInfoSetRequest::~HWComponentInfoSetRequest() {
3025 // @@protoc_insertion_point(destructor:dmi.HWComponentInfoSetRequest)
3026 SharedDtor();
3027}
3028
3029void HWComponentInfoSetRequest::SharedDtor() {
3030 component_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3031 if (this != internal_default_instance()) delete device_uuid_;
3032 if (this != internal_default_instance()) delete component_uuid_;
3033 if (this != internal_default_instance()) delete changes_;
3034}
3035
3036void HWComponentInfoSetRequest::SetCachedSize(int size) const {
3037 _cached_size_.Set(size);
3038}
3039const HWComponentInfoSetRequest& HWComponentInfoSetRequest::default_instance() {
3040 ::google::protobuf::internal::InitSCC(&::scc_info_HWComponentInfoSetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
3041 return *internal_default_instance();
3042}
3043
3044
3045void HWComponentInfoSetRequest::Clear() {
3046// @@protoc_insertion_point(message_clear_start:dmi.HWComponentInfoSetRequest)
3047 ::google::protobuf::uint32 cached_has_bits = 0;
3048 // Prevent compiler warnings about cached_has_bits being unused
3049 (void) cached_has_bits;
3050
3051 component_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3052 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
3053 delete device_uuid_;
3054 }
3055 device_uuid_ = nullptr;
3056 if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) {
3057 delete component_uuid_;
3058 }
3059 component_uuid_ = nullptr;
3060 if (GetArenaNoVirtual() == nullptr && changes_ != nullptr) {
3061 delete changes_;
3062 }
3063 changes_ = nullptr;
3064 _internal_metadata_.Clear();
3065}
3066
3067#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3068const char* HWComponentInfoSetRequest::_InternalParse(const char* begin, const char* end, void* object,
3069 ::google::protobuf::internal::ParseContext* ctx) {
3070 auto msg = static_cast<HWComponentInfoSetRequest*>(object);
3071 ::google::protobuf::int32 size; (void)size;
3072 int depth; (void)depth;
3073 ::google::protobuf::uint32 tag;
3074 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
3075 auto ptr = begin;
3076 while (ptr < end) {
3077 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
3078 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3079 switch (tag >> 3) {
3080 // .dmi.Uuid device_uuid = 1;
3081 case 1: {
3082 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
3083 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
3084 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3085 parser_till_end = ::dmi::Uuid::_InternalParse;
3086 object = msg->mutable_device_uuid();
3087 if (size > end - ptr) goto len_delim_till_end;
3088 ptr += size;
3089 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
3090 {parser_till_end, object}, ptr - size, ptr));
3091 break;
3092 }
3093 // .dmi.Uuid component_uuid = 2;
3094 case 2: {
3095 if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
3096 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
3097 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3098 parser_till_end = ::dmi::Uuid::_InternalParse;
3099 object = msg->mutable_component_uuid();
3100 if (size > end - ptr) goto len_delim_till_end;
3101 ptr += size;
3102 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
3103 {parser_till_end, object}, ptr - size, ptr));
3104 break;
3105 }
3106 // string component_name = 3;
3107 case 3: {
3108 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
3109 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
3110 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3111 ctx->extra_parse_data().SetFieldName("dmi.HWComponentInfoSetRequest.component_name");
3112 object = msg->mutable_component_name();
3113 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
3114 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
3115 goto string_till_end;
3116 }
3117 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
3118 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
3119 ptr += size;
3120 break;
3121 }
3122 // .dmi.ModifiableComponent changes = 4;
3123 case 4: {
3124 if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual;
3125 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
3126 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3127 parser_till_end = ::dmi::ModifiableComponent::_InternalParse;
3128 object = msg->mutable_changes();
3129 if (size > end - ptr) goto len_delim_till_end;
3130 ptr += size;
3131 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
3132 {parser_till_end, object}, ptr - size, ptr));
3133 break;
3134 }
3135 default: {
3136 handle_unusual:
3137 if ((tag & 7) == 4 || tag == 0) {
3138 ctx->EndGroup(tag);
3139 return ptr;
3140 }
3141 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
3142 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
3143 ptr = res.first;
3144 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
3145 if (res.second) return ptr;
3146 }
3147 } // switch
3148 } // while
3149 return ptr;
3150string_till_end:
3151 static_cast<::std::string*>(object)->clear();
3152 static_cast<::std::string*>(object)->reserve(size);
3153 goto len_delim_till_end;
3154len_delim_till_end:
3155 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
3156 {parser_till_end, object}, size);
3157}
3158#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3159bool HWComponentInfoSetRequest::MergePartialFromCodedStream(
3160 ::google::protobuf::io::CodedInputStream* input) {
3161#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
3162 ::google::protobuf::uint32 tag;
3163 // @@protoc_insertion_point(parse_start:dmi.HWComponentInfoSetRequest)
3164 for (;;) {
3165 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3166 tag = p.first;
3167 if (!p.second) goto handle_unusual;
3168 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3169 // .dmi.Uuid device_uuid = 1;
3170 case 1: {
3171 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
3172 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3173 input, mutable_device_uuid()));
3174 } else {
3175 goto handle_unusual;
3176 }
3177 break;
3178 }
3179
3180 // .dmi.Uuid component_uuid = 2;
3181 case 2: {
3182 if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
3183 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3184 input, mutable_component_uuid()));
3185 } else {
3186 goto handle_unusual;
3187 }
3188 break;
3189 }
3190
3191 // string component_name = 3;
3192 case 3: {
3193 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
3194 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3195 input, this->mutable_component_name()));
3196 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3197 this->component_name().data(), static_cast<int>(this->component_name().length()),
3198 ::google::protobuf::internal::WireFormatLite::PARSE,
3199 "dmi.HWComponentInfoSetRequest.component_name"));
3200 } else {
3201 goto handle_unusual;
3202 }
3203 break;
3204 }
3205
3206 // .dmi.ModifiableComponent changes = 4;
3207 case 4: {
3208 if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
3209 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3210 input, mutable_changes()));
3211 } else {
3212 goto handle_unusual;
3213 }
3214 break;
3215 }
3216
3217 default: {
3218 handle_unusual:
3219 if (tag == 0) {
3220 goto success;
3221 }
3222 DO_(::google::protobuf::internal::WireFormat::SkipField(
3223 input, tag, _internal_metadata_.mutable_unknown_fields()));
3224 break;
3225 }
3226 }
3227 }
3228success:
3229 // @@protoc_insertion_point(parse_success:dmi.HWComponentInfoSetRequest)
3230 return true;
3231failure:
3232 // @@protoc_insertion_point(parse_failure:dmi.HWComponentInfoSetRequest)
3233 return false;
3234#undef DO_
3235}
3236#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3237
3238void HWComponentInfoSetRequest::SerializeWithCachedSizes(
3239 ::google::protobuf::io::CodedOutputStream* output) const {
3240 // @@protoc_insertion_point(serialize_start:dmi.HWComponentInfoSetRequest)
3241 ::google::protobuf::uint32 cached_has_bits = 0;
3242 (void) cached_has_bits;
3243
3244 // .dmi.Uuid device_uuid = 1;
3245 if (this->has_device_uuid()) {
3246 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3247 1, HasBitSetters::device_uuid(this), output);
3248 }
3249
3250 // .dmi.Uuid component_uuid = 2;
3251 if (this->has_component_uuid()) {
3252 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3253 2, HasBitSetters::component_uuid(this), output);
3254 }
3255
3256 // string component_name = 3;
3257 if (this->component_name().size() > 0) {
3258 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3259 this->component_name().data(), static_cast<int>(this->component_name().length()),
3260 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
3261 "dmi.HWComponentInfoSetRequest.component_name");
3262 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3263 3, this->component_name(), output);
3264 }
3265
3266 // .dmi.ModifiableComponent changes = 4;
3267 if (this->has_changes()) {
3268 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3269 4, HasBitSetters::changes(this), output);
3270 }
3271
3272 if (_internal_metadata_.have_unknown_fields()) {
3273 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3274 _internal_metadata_.unknown_fields(), output);
3275 }
3276 // @@protoc_insertion_point(serialize_end:dmi.HWComponentInfoSetRequest)
3277}
3278
3279::google::protobuf::uint8* HWComponentInfoSetRequest::InternalSerializeWithCachedSizesToArray(
3280 ::google::protobuf::uint8* target) const {
3281 // @@protoc_insertion_point(serialize_to_array_start:dmi.HWComponentInfoSetRequest)
3282 ::google::protobuf::uint32 cached_has_bits = 0;
3283 (void) cached_has_bits;
3284
3285 // .dmi.Uuid device_uuid = 1;
3286 if (this->has_device_uuid()) {
3287 target = ::google::protobuf::internal::WireFormatLite::
3288 InternalWriteMessageToArray(
3289 1, HasBitSetters::device_uuid(this), target);
3290 }
3291
3292 // .dmi.Uuid component_uuid = 2;
3293 if (this->has_component_uuid()) {
3294 target = ::google::protobuf::internal::WireFormatLite::
3295 InternalWriteMessageToArray(
3296 2, HasBitSetters::component_uuid(this), target);
3297 }
3298
3299 // string component_name = 3;
3300 if (this->component_name().size() > 0) {
3301 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3302 this->component_name().data(), static_cast<int>(this->component_name().length()),
3303 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
3304 "dmi.HWComponentInfoSetRequest.component_name");
3305 target =
3306 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3307 3, this->component_name(), target);
3308 }
3309
3310 // .dmi.ModifiableComponent changes = 4;
3311 if (this->has_changes()) {
3312 target = ::google::protobuf::internal::WireFormatLite::
3313 InternalWriteMessageToArray(
3314 4, HasBitSetters::changes(this), target);
3315 }
3316
3317 if (_internal_metadata_.have_unknown_fields()) {
3318 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3319 _internal_metadata_.unknown_fields(), target);
3320 }
3321 // @@protoc_insertion_point(serialize_to_array_end:dmi.HWComponentInfoSetRequest)
3322 return target;
3323}
3324
3325size_t HWComponentInfoSetRequest::ByteSizeLong() const {
3326// @@protoc_insertion_point(message_byte_size_start:dmi.HWComponentInfoSetRequest)
3327 size_t total_size = 0;
3328
3329 if (_internal_metadata_.have_unknown_fields()) {
3330 total_size +=
3331 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3332 _internal_metadata_.unknown_fields());
3333 }
3334 ::google::protobuf::uint32 cached_has_bits = 0;
3335 // Prevent compiler warnings about cached_has_bits being unused
3336 (void) cached_has_bits;
3337
3338 // string component_name = 3;
3339 if (this->component_name().size() > 0) {
3340 total_size += 1 +
3341 ::google::protobuf::internal::WireFormatLite::StringSize(
3342 this->component_name());
3343 }
3344
3345 // .dmi.Uuid device_uuid = 1;
3346 if (this->has_device_uuid()) {
3347 total_size += 1 +
3348 ::google::protobuf::internal::WireFormatLite::MessageSize(
3349 *device_uuid_);
3350 }
3351
3352 // .dmi.Uuid component_uuid = 2;
3353 if (this->has_component_uuid()) {
3354 total_size += 1 +
3355 ::google::protobuf::internal::WireFormatLite::MessageSize(
3356 *component_uuid_);
3357 }
3358
3359 // .dmi.ModifiableComponent changes = 4;
3360 if (this->has_changes()) {
3361 total_size += 1 +
3362 ::google::protobuf::internal::WireFormatLite::MessageSize(
3363 *changes_);
3364 }
3365
3366 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3367 SetCachedSize(cached_size);
3368 return total_size;
3369}
3370
3371void HWComponentInfoSetRequest::MergeFrom(const ::google::protobuf::Message& from) {
3372// @@protoc_insertion_point(generalized_merge_from_start:dmi.HWComponentInfoSetRequest)
3373 GOOGLE_DCHECK_NE(&from, this);
3374 const HWComponentInfoSetRequest* source =
3375 ::google::protobuf::DynamicCastToGenerated<HWComponentInfoSetRequest>(
3376 &from);
3377 if (source == nullptr) {
3378 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.HWComponentInfoSetRequest)
3379 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3380 } else {
3381 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.HWComponentInfoSetRequest)
3382 MergeFrom(*source);
3383 }
3384}
3385
3386void HWComponentInfoSetRequest::MergeFrom(const HWComponentInfoSetRequest& from) {
3387// @@protoc_insertion_point(class_specific_merge_from_start:dmi.HWComponentInfoSetRequest)
3388 GOOGLE_DCHECK_NE(&from, this);
3389 _internal_metadata_.MergeFrom(from._internal_metadata_);
3390 ::google::protobuf::uint32 cached_has_bits = 0;
3391 (void) cached_has_bits;
3392
3393 if (from.component_name().size() > 0) {
3394
3395 component_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.component_name_);
3396 }
3397 if (from.has_device_uuid()) {
3398 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
3399 }
3400 if (from.has_component_uuid()) {
3401 mutable_component_uuid()->::dmi::Uuid::MergeFrom(from.component_uuid());
3402 }
3403 if (from.has_changes()) {
3404 mutable_changes()->::dmi::ModifiableComponent::MergeFrom(from.changes());
3405 }
3406}
3407
3408void HWComponentInfoSetRequest::CopyFrom(const ::google::protobuf::Message& from) {
3409// @@protoc_insertion_point(generalized_copy_from_start:dmi.HWComponentInfoSetRequest)
3410 if (&from == this) return;
3411 Clear();
3412 MergeFrom(from);
3413}
3414
3415void HWComponentInfoSetRequest::CopyFrom(const HWComponentInfoSetRequest& from) {
3416// @@protoc_insertion_point(class_specific_copy_from_start:dmi.HWComponentInfoSetRequest)
3417 if (&from == this) return;
3418 Clear();
3419 MergeFrom(from);
3420}
3421
3422bool HWComponentInfoSetRequest::IsInitialized() const {
3423 return true;
3424}
3425
3426void HWComponentInfoSetRequest::Swap(HWComponentInfoSetRequest* other) {
3427 if (other == this) return;
3428 InternalSwap(other);
3429}
3430void HWComponentInfoSetRequest::InternalSwap(HWComponentInfoSetRequest* other) {
3431 using std::swap;
3432 _internal_metadata_.Swap(&other->_internal_metadata_);
3433 component_name_.Swap(&other->component_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3434 GetArenaNoVirtual());
3435 swap(device_uuid_, other->device_uuid_);
3436 swap(component_uuid_, other->component_uuid_);
3437 swap(changes_, other->changes_);
3438}
3439
3440::google::protobuf::Metadata HWComponentInfoSetRequest::GetMetadata() const {
3441 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
3442 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
3443}
3444
3445
3446// ===================================================================
3447
3448void HWComponentInfoSetResponse::InitAsDefaultInstance() {
3449}
3450class HWComponentInfoSetResponse::HasBitSetters {
3451 public:
3452};
3453
3454#if !defined(_MSC_VER) || _MSC_VER >= 1900
3455const int HWComponentInfoSetResponse::kStatusFieldNumber;
3456const int HWComponentInfoSetResponse::kReasonFieldNumber;
3457const int HWComponentInfoSetResponse::kReasonDetailFieldNumber;
3458#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
3459
3460HWComponentInfoSetResponse::HWComponentInfoSetResponse()
3461 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
3462 SharedCtor();
3463 // @@protoc_insertion_point(constructor:dmi.HWComponentInfoSetResponse)
3464}
3465HWComponentInfoSetResponse::HWComponentInfoSetResponse(const HWComponentInfoSetResponse& from)
3466 : ::google::protobuf::Message(),
3467 _internal_metadata_(nullptr) {
3468 _internal_metadata_.MergeFrom(from._internal_metadata_);
3469 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3470 if (from.reason_detail().size() > 0) {
3471 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
3472 }
3473 ::memcpy(&status_, &from.status_,
3474 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
3475 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
3476 // @@protoc_insertion_point(copy_constructor:dmi.HWComponentInfoSetResponse)
3477}
3478
3479void HWComponentInfoSetResponse::SharedCtor() {
3480 ::google::protobuf::internal::InitSCC(
3481 &scc_info_HWComponentInfoSetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
3482 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3483 ::memset(&status_, 0, static_cast<size_t>(
3484 reinterpret_cast<char*>(&reason_) -
3485 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
3486}
3487
3488HWComponentInfoSetResponse::~HWComponentInfoSetResponse() {
3489 // @@protoc_insertion_point(destructor:dmi.HWComponentInfoSetResponse)
3490 SharedDtor();
3491}
3492
3493void HWComponentInfoSetResponse::SharedDtor() {
3494 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3495}
3496
3497void HWComponentInfoSetResponse::SetCachedSize(int size) const {
3498 _cached_size_.Set(size);
3499}
3500const HWComponentInfoSetResponse& HWComponentInfoSetResponse::default_instance() {
3501 ::google::protobuf::internal::InitSCC(&::scc_info_HWComponentInfoSetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
3502 return *internal_default_instance();
3503}
3504
3505
3506void HWComponentInfoSetResponse::Clear() {
3507// @@protoc_insertion_point(message_clear_start:dmi.HWComponentInfoSetResponse)
3508 ::google::protobuf::uint32 cached_has_bits = 0;
3509 // Prevent compiler warnings about cached_has_bits being unused
3510 (void) cached_has_bits;
3511
3512 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3513 ::memset(&status_, 0, static_cast<size_t>(
3514 reinterpret_cast<char*>(&reason_) -
3515 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
3516 _internal_metadata_.Clear();
3517}
3518
3519#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3520const char* HWComponentInfoSetResponse::_InternalParse(const char* begin, const char* end, void* object,
3521 ::google::protobuf::internal::ParseContext* ctx) {
3522 auto msg = static_cast<HWComponentInfoSetResponse*>(object);
3523 ::google::protobuf::int32 size; (void)size;
3524 int depth; (void)depth;
3525 ::google::protobuf::uint32 tag;
3526 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
3527 auto ptr = begin;
3528 while (ptr < end) {
3529 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
3530 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3531 switch (tag >> 3) {
3532 // .dmi.Status status = 1;
3533 case 1: {
3534 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
3535 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
3536 msg->set_status(static_cast<::dmi::Status>(val));
3537 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3538 break;
3539 }
3540 // .dmi.HWComponentInfoSetResponse.Reason reason = 2;
3541 case 2: {
3542 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
3543 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
3544 msg->set_reason(static_cast<::dmi::HWComponentInfoSetResponse_Reason>(val));
3545 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3546 break;
3547 }
3548 // string reason_detail = 3;
3549 case 3: {
3550 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
3551 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
3552 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3553 ctx->extra_parse_data().SetFieldName("dmi.HWComponentInfoSetResponse.reason_detail");
3554 object = msg->mutable_reason_detail();
3555 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
3556 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
3557 goto string_till_end;
3558 }
3559 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
3560 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
3561 ptr += size;
3562 break;
3563 }
3564 default: {
3565 handle_unusual:
3566 if ((tag & 7) == 4 || tag == 0) {
3567 ctx->EndGroup(tag);
3568 return ptr;
3569 }
3570 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
3571 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
3572 ptr = res.first;
3573 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
3574 if (res.second) return ptr;
3575 }
3576 } // switch
3577 } // while
3578 return ptr;
3579string_till_end:
3580 static_cast<::std::string*>(object)->clear();
3581 static_cast<::std::string*>(object)->reserve(size);
3582 goto len_delim_till_end;
3583len_delim_till_end:
3584 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
3585 {parser_till_end, object}, size);
3586}
3587#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3588bool HWComponentInfoSetResponse::MergePartialFromCodedStream(
3589 ::google::protobuf::io::CodedInputStream* input) {
3590#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
3591 ::google::protobuf::uint32 tag;
3592 // @@protoc_insertion_point(parse_start:dmi.HWComponentInfoSetResponse)
3593 for (;;) {
3594 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3595 tag = p.first;
3596 if (!p.second) goto handle_unusual;
3597 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3598 // .dmi.Status status = 1;
3599 case 1: {
3600 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
3601 int value = 0;
3602 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3603 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
3604 input, &value)));
3605 set_status(static_cast< ::dmi::Status >(value));
3606 } else {
3607 goto handle_unusual;
3608 }
3609 break;
3610 }
3611
3612 // .dmi.HWComponentInfoSetResponse.Reason reason = 2;
3613 case 2: {
3614 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
3615 int value = 0;
3616 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3617 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
3618 input, &value)));
3619 set_reason(static_cast< ::dmi::HWComponentInfoSetResponse_Reason >(value));
3620 } else {
3621 goto handle_unusual;
3622 }
3623 break;
3624 }
3625
3626 // string reason_detail = 3;
3627 case 3: {
3628 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
3629 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3630 input, this->mutable_reason_detail()));
3631 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3632 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
3633 ::google::protobuf::internal::WireFormatLite::PARSE,
3634 "dmi.HWComponentInfoSetResponse.reason_detail"));
3635 } else {
3636 goto handle_unusual;
3637 }
3638 break;
3639 }
3640
3641 default: {
3642 handle_unusual:
3643 if (tag == 0) {
3644 goto success;
3645 }
3646 DO_(::google::protobuf::internal::WireFormat::SkipField(
3647 input, tag, _internal_metadata_.mutable_unknown_fields()));
3648 break;
3649 }
3650 }
3651 }
3652success:
3653 // @@protoc_insertion_point(parse_success:dmi.HWComponentInfoSetResponse)
3654 return true;
3655failure:
3656 // @@protoc_insertion_point(parse_failure:dmi.HWComponentInfoSetResponse)
3657 return false;
3658#undef DO_
3659}
3660#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3661
3662void HWComponentInfoSetResponse::SerializeWithCachedSizes(
3663 ::google::protobuf::io::CodedOutputStream* output) const {
3664 // @@protoc_insertion_point(serialize_start:dmi.HWComponentInfoSetResponse)
3665 ::google::protobuf::uint32 cached_has_bits = 0;
3666 (void) cached_has_bits;
3667
3668 // .dmi.Status status = 1;
3669 if (this->status() != 0) {
3670 ::google::protobuf::internal::WireFormatLite::WriteEnum(
3671 1, this->status(), output);
3672 }
3673
3674 // .dmi.HWComponentInfoSetResponse.Reason reason = 2;
3675 if (this->reason() != 0) {
3676 ::google::protobuf::internal::WireFormatLite::WriteEnum(
3677 2, this->reason(), output);
3678 }
3679
3680 // string reason_detail = 3;
3681 if (this->reason_detail().size() > 0) {
3682 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3683 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
3684 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
3685 "dmi.HWComponentInfoSetResponse.reason_detail");
3686 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3687 3, this->reason_detail(), output);
3688 }
3689
3690 if (_internal_metadata_.have_unknown_fields()) {
3691 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3692 _internal_metadata_.unknown_fields(), output);
3693 }
3694 // @@protoc_insertion_point(serialize_end:dmi.HWComponentInfoSetResponse)
3695}
3696
3697::google::protobuf::uint8* HWComponentInfoSetResponse::InternalSerializeWithCachedSizesToArray(
3698 ::google::protobuf::uint8* target) const {
3699 // @@protoc_insertion_point(serialize_to_array_start:dmi.HWComponentInfoSetResponse)
3700 ::google::protobuf::uint32 cached_has_bits = 0;
3701 (void) cached_has_bits;
3702
3703 // .dmi.Status status = 1;
3704 if (this->status() != 0) {
3705 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
3706 1, this->status(), target);
3707 }
3708
3709 // .dmi.HWComponentInfoSetResponse.Reason reason = 2;
3710 if (this->reason() != 0) {
3711 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
3712 2, this->reason(), target);
3713 }
3714
3715 // string reason_detail = 3;
3716 if (this->reason_detail().size() > 0) {
3717 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3718 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
3719 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
3720 "dmi.HWComponentInfoSetResponse.reason_detail");
3721 target =
3722 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3723 3, this->reason_detail(), target);
3724 }
3725
3726 if (_internal_metadata_.have_unknown_fields()) {
3727 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3728 _internal_metadata_.unknown_fields(), target);
3729 }
3730 // @@protoc_insertion_point(serialize_to_array_end:dmi.HWComponentInfoSetResponse)
3731 return target;
3732}
3733
3734size_t HWComponentInfoSetResponse::ByteSizeLong() const {
3735// @@protoc_insertion_point(message_byte_size_start:dmi.HWComponentInfoSetResponse)
3736 size_t total_size = 0;
3737
3738 if (_internal_metadata_.have_unknown_fields()) {
3739 total_size +=
3740 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3741 _internal_metadata_.unknown_fields());
3742 }
3743 ::google::protobuf::uint32 cached_has_bits = 0;
3744 // Prevent compiler warnings about cached_has_bits being unused
3745 (void) cached_has_bits;
3746
3747 // string reason_detail = 3;
3748 if (this->reason_detail().size() > 0) {
3749 total_size += 1 +
3750 ::google::protobuf::internal::WireFormatLite::StringSize(
3751 this->reason_detail());
3752 }
3753
3754 // .dmi.Status status = 1;
3755 if (this->status() != 0) {
3756 total_size += 1 +
3757 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
3758 }
3759
3760 // .dmi.HWComponentInfoSetResponse.Reason reason = 2;
3761 if (this->reason() != 0) {
3762 total_size += 1 +
3763 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
3764 }
3765
3766 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3767 SetCachedSize(cached_size);
3768 return total_size;
3769}
3770
3771void HWComponentInfoSetResponse::MergeFrom(const ::google::protobuf::Message& from) {
3772// @@protoc_insertion_point(generalized_merge_from_start:dmi.HWComponentInfoSetResponse)
3773 GOOGLE_DCHECK_NE(&from, this);
3774 const HWComponentInfoSetResponse* source =
3775 ::google::protobuf::DynamicCastToGenerated<HWComponentInfoSetResponse>(
3776 &from);
3777 if (source == nullptr) {
3778 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.HWComponentInfoSetResponse)
3779 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3780 } else {
3781 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.HWComponentInfoSetResponse)
3782 MergeFrom(*source);
3783 }
3784}
3785
3786void HWComponentInfoSetResponse::MergeFrom(const HWComponentInfoSetResponse& from) {
3787// @@protoc_insertion_point(class_specific_merge_from_start:dmi.HWComponentInfoSetResponse)
3788 GOOGLE_DCHECK_NE(&from, this);
3789 _internal_metadata_.MergeFrom(from._internal_metadata_);
3790 ::google::protobuf::uint32 cached_has_bits = 0;
3791 (void) cached_has_bits;
3792
3793 if (from.reason_detail().size() > 0) {
3794
3795 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
3796 }
3797 if (from.status() != 0) {
3798 set_status(from.status());
3799 }
3800 if (from.reason() != 0) {
3801 set_reason(from.reason());
3802 }
3803}
3804
3805void HWComponentInfoSetResponse::CopyFrom(const ::google::protobuf::Message& from) {
3806// @@protoc_insertion_point(generalized_copy_from_start:dmi.HWComponentInfoSetResponse)
3807 if (&from == this) return;
3808 Clear();
3809 MergeFrom(from);
3810}
3811
3812void HWComponentInfoSetResponse::CopyFrom(const HWComponentInfoSetResponse& from) {
3813// @@protoc_insertion_point(class_specific_copy_from_start:dmi.HWComponentInfoSetResponse)
3814 if (&from == this) return;
3815 Clear();
3816 MergeFrom(from);
3817}
3818
3819bool HWComponentInfoSetResponse::IsInitialized() const {
3820 return true;
3821}
3822
3823void HWComponentInfoSetResponse::Swap(HWComponentInfoSetResponse* other) {
3824 if (other == this) return;
3825 InternalSwap(other);
3826}
3827void HWComponentInfoSetResponse::InternalSwap(HWComponentInfoSetResponse* other) {
3828 using std::swap;
3829 _internal_metadata_.Swap(&other->_internal_metadata_);
3830 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3831 GetArenaNoVirtual());
3832 swap(status_, other->status_);
3833 swap(reason_, other->reason_);
3834}
3835
3836::google::protobuf::Metadata HWComponentInfoSetResponse::GetMetadata() const {
3837 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
3838 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
3839}
3840
3841
3842// ===================================================================
3843
3844void StartManagingDeviceResponse::InitAsDefaultInstance() {
3845 ::dmi::_StartManagingDeviceResponse_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
3846 ::dmi::Uuid::internal_default_instance());
3847}
3848class StartManagingDeviceResponse::HasBitSetters {
3849 public:
3850 static const ::dmi::Uuid& device_uuid(const StartManagingDeviceResponse* msg);
3851};
3852
3853const ::dmi::Uuid&
3854StartManagingDeviceResponse::HasBitSetters::device_uuid(const StartManagingDeviceResponse* msg) {
3855 return *msg->device_uuid_;
3856}
3857void StartManagingDeviceResponse::clear_device_uuid() {
3858 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
3859 delete device_uuid_;
3860 }
3861 device_uuid_ = nullptr;
3862}
3863#if !defined(_MSC_VER) || _MSC_VER >= 1900
3864const int StartManagingDeviceResponse::kStatusFieldNumber;
3865const int StartManagingDeviceResponse::kReasonFieldNumber;
3866const int StartManagingDeviceResponse::kDeviceUuidFieldNumber;
3867const int StartManagingDeviceResponse::kReasonDetailFieldNumber;
3868#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
3869
3870StartManagingDeviceResponse::StartManagingDeviceResponse()
3871 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
3872 SharedCtor();
3873 // @@protoc_insertion_point(constructor:dmi.StartManagingDeviceResponse)
3874}
3875StartManagingDeviceResponse::StartManagingDeviceResponse(const StartManagingDeviceResponse& from)
3876 : ::google::protobuf::Message(),
3877 _internal_metadata_(nullptr) {
3878 _internal_metadata_.MergeFrom(from._internal_metadata_);
3879 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3880 if (from.reason_detail().size() > 0) {
3881 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
3882 }
3883 if (from.has_device_uuid()) {
3884 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
3885 } else {
3886 device_uuid_ = nullptr;
3887 }
3888 ::memcpy(&status_, &from.status_,
3889 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
3890 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
3891 // @@protoc_insertion_point(copy_constructor:dmi.StartManagingDeviceResponse)
3892}
3893
3894void StartManagingDeviceResponse::SharedCtor() {
3895 ::google::protobuf::internal::InitSCC(
3896 &scc_info_StartManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
3897 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3898 ::memset(&device_uuid_, 0, static_cast<size_t>(
3899 reinterpret_cast<char*>(&reason_) -
3900 reinterpret_cast<char*>(&device_uuid_)) + sizeof(reason_));
3901}
3902
3903StartManagingDeviceResponse::~StartManagingDeviceResponse() {
3904 // @@protoc_insertion_point(destructor:dmi.StartManagingDeviceResponse)
3905 SharedDtor();
3906}
3907
3908void StartManagingDeviceResponse::SharedDtor() {
3909 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3910 if (this != internal_default_instance()) delete device_uuid_;
3911}
3912
3913void StartManagingDeviceResponse::SetCachedSize(int size) const {
3914 _cached_size_.Set(size);
3915}
3916const StartManagingDeviceResponse& StartManagingDeviceResponse::default_instance() {
3917 ::google::protobuf::internal::InitSCC(&::scc_info_StartManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
3918 return *internal_default_instance();
3919}
3920
3921
3922void StartManagingDeviceResponse::Clear() {
3923// @@protoc_insertion_point(message_clear_start:dmi.StartManagingDeviceResponse)
3924 ::google::protobuf::uint32 cached_has_bits = 0;
3925 // Prevent compiler warnings about cached_has_bits being unused
3926 (void) cached_has_bits;
3927
3928 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3929 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
3930 delete device_uuid_;
3931 }
3932 device_uuid_ = nullptr;
3933 ::memset(&status_, 0, static_cast<size_t>(
3934 reinterpret_cast<char*>(&reason_) -
3935 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
3936 _internal_metadata_.Clear();
3937}
3938
3939#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3940const char* StartManagingDeviceResponse::_InternalParse(const char* begin, const char* end, void* object,
3941 ::google::protobuf::internal::ParseContext* ctx) {
3942 auto msg = static_cast<StartManagingDeviceResponse*>(object);
3943 ::google::protobuf::int32 size; (void)size;
3944 int depth; (void)depth;
3945 ::google::protobuf::uint32 tag;
3946 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
3947 auto ptr = begin;
3948 while (ptr < end) {
3949 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
3950 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3951 switch (tag >> 3) {
3952 // .dmi.Status status = 1;
3953 case 1: {
3954 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
3955 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
3956 msg->set_status(static_cast<::dmi::Status>(val));
3957 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3958 break;
3959 }
3960 // .dmi.StartManagingDeviceResponse.Reason reason = 2;
3961 case 2: {
3962 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
3963 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
3964 msg->set_reason(static_cast<::dmi::StartManagingDeviceResponse_Reason>(val));
3965 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3966 break;
3967 }
3968 // .dmi.Uuid device_uuid = 3;
3969 case 3: {
3970 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
3971 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
3972 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3973 parser_till_end = ::dmi::Uuid::_InternalParse;
3974 object = msg->mutable_device_uuid();
3975 if (size > end - ptr) goto len_delim_till_end;
3976 ptr += size;
3977 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
3978 {parser_till_end, object}, ptr - size, ptr));
3979 break;
3980 }
3981 // string reason_detail = 4;
3982 case 4: {
3983 if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual;
3984 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
3985 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3986 ctx->extra_parse_data().SetFieldName("dmi.StartManagingDeviceResponse.reason_detail");
3987 object = msg->mutable_reason_detail();
3988 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
3989 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
3990 goto string_till_end;
3991 }
3992 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
3993 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
3994 ptr += size;
3995 break;
3996 }
3997 default: {
3998 handle_unusual:
3999 if ((tag & 7) == 4 || tag == 0) {
4000 ctx->EndGroup(tag);
4001 return ptr;
4002 }
4003 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
4004 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
4005 ptr = res.first;
4006 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
4007 if (res.second) return ptr;
4008 }
4009 } // switch
4010 } // while
4011 return ptr;
4012string_till_end:
4013 static_cast<::std::string*>(object)->clear();
4014 static_cast<::std::string*>(object)->reserve(size);
4015 goto len_delim_till_end;
4016len_delim_till_end:
4017 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
4018 {parser_till_end, object}, size);
4019}
4020#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4021bool StartManagingDeviceResponse::MergePartialFromCodedStream(
4022 ::google::protobuf::io::CodedInputStream* input) {
4023#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
4024 ::google::protobuf::uint32 tag;
4025 // @@protoc_insertion_point(parse_start:dmi.StartManagingDeviceResponse)
4026 for (;;) {
4027 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4028 tag = p.first;
4029 if (!p.second) goto handle_unusual;
4030 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4031 // .dmi.Status status = 1;
4032 case 1: {
4033 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
4034 int value = 0;
4035 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4036 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
4037 input, &value)));
4038 set_status(static_cast< ::dmi::Status >(value));
4039 } else {
4040 goto handle_unusual;
4041 }
4042 break;
4043 }
4044
4045 // .dmi.StartManagingDeviceResponse.Reason reason = 2;
4046 case 2: {
4047 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
4048 int value = 0;
4049 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4050 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
4051 input, &value)));
4052 set_reason(static_cast< ::dmi::StartManagingDeviceResponse_Reason >(value));
4053 } else {
4054 goto handle_unusual;
4055 }
4056 break;
4057 }
4058
4059 // .dmi.Uuid device_uuid = 3;
4060 case 3: {
4061 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
4062 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
4063 input, mutable_device_uuid()));
4064 } else {
4065 goto handle_unusual;
4066 }
4067 break;
4068 }
4069
4070 // string reason_detail = 4;
4071 case 4: {
4072 if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
4073 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4074 input, this->mutable_reason_detail()));
4075 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
4076 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
4077 ::google::protobuf::internal::WireFormatLite::PARSE,
4078 "dmi.StartManagingDeviceResponse.reason_detail"));
4079 } else {
4080 goto handle_unusual;
4081 }
4082 break;
4083 }
4084
4085 default: {
4086 handle_unusual:
4087 if (tag == 0) {
4088 goto success;
4089 }
4090 DO_(::google::protobuf::internal::WireFormat::SkipField(
4091 input, tag, _internal_metadata_.mutable_unknown_fields()));
4092 break;
4093 }
4094 }
4095 }
4096success:
4097 // @@protoc_insertion_point(parse_success:dmi.StartManagingDeviceResponse)
4098 return true;
4099failure:
4100 // @@protoc_insertion_point(parse_failure:dmi.StartManagingDeviceResponse)
4101 return false;
4102#undef DO_
4103}
4104#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4105
4106void StartManagingDeviceResponse::SerializeWithCachedSizes(
4107 ::google::protobuf::io::CodedOutputStream* output) const {
4108 // @@protoc_insertion_point(serialize_start:dmi.StartManagingDeviceResponse)
4109 ::google::protobuf::uint32 cached_has_bits = 0;
4110 (void) cached_has_bits;
4111
4112 // .dmi.Status status = 1;
4113 if (this->status() != 0) {
4114 ::google::protobuf::internal::WireFormatLite::WriteEnum(
4115 1, this->status(), output);
4116 }
4117
4118 // .dmi.StartManagingDeviceResponse.Reason reason = 2;
4119 if (this->reason() != 0) {
4120 ::google::protobuf::internal::WireFormatLite::WriteEnum(
4121 2, this->reason(), output);
4122 }
4123
4124 // .dmi.Uuid device_uuid = 3;
4125 if (this->has_device_uuid()) {
4126 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4127 3, HasBitSetters::device_uuid(this), output);
4128 }
4129
4130 // string reason_detail = 4;
4131 if (this->reason_detail().size() > 0) {
4132 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
4133 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
4134 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
4135 "dmi.StartManagingDeviceResponse.reason_detail");
4136 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4137 4, this->reason_detail(), output);
4138 }
4139
4140 if (_internal_metadata_.have_unknown_fields()) {
4141 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4142 _internal_metadata_.unknown_fields(), output);
4143 }
4144 // @@protoc_insertion_point(serialize_end:dmi.StartManagingDeviceResponse)
4145}
4146
4147::google::protobuf::uint8* StartManagingDeviceResponse::InternalSerializeWithCachedSizesToArray(
4148 ::google::protobuf::uint8* target) const {
4149 // @@protoc_insertion_point(serialize_to_array_start:dmi.StartManagingDeviceResponse)
4150 ::google::protobuf::uint32 cached_has_bits = 0;
4151 (void) cached_has_bits;
4152
4153 // .dmi.Status status = 1;
4154 if (this->status() != 0) {
4155 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4156 1, this->status(), target);
4157 }
4158
4159 // .dmi.StartManagingDeviceResponse.Reason reason = 2;
4160 if (this->reason() != 0) {
4161 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4162 2, this->reason(), target);
4163 }
4164
4165 // .dmi.Uuid device_uuid = 3;
4166 if (this->has_device_uuid()) {
4167 target = ::google::protobuf::internal::WireFormatLite::
4168 InternalWriteMessageToArray(
4169 3, HasBitSetters::device_uuid(this), target);
4170 }
4171
4172 // string reason_detail = 4;
4173 if (this->reason_detail().size() > 0) {
4174 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
4175 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
4176 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
4177 "dmi.StartManagingDeviceResponse.reason_detail");
4178 target =
4179 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4180 4, this->reason_detail(), target);
4181 }
4182
4183 if (_internal_metadata_.have_unknown_fields()) {
4184 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4185 _internal_metadata_.unknown_fields(), target);
4186 }
4187 // @@protoc_insertion_point(serialize_to_array_end:dmi.StartManagingDeviceResponse)
4188 return target;
4189}
4190
4191size_t StartManagingDeviceResponse::ByteSizeLong() const {
4192// @@protoc_insertion_point(message_byte_size_start:dmi.StartManagingDeviceResponse)
4193 size_t total_size = 0;
4194
4195 if (_internal_metadata_.have_unknown_fields()) {
4196 total_size +=
4197 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4198 _internal_metadata_.unknown_fields());
4199 }
4200 ::google::protobuf::uint32 cached_has_bits = 0;
4201 // Prevent compiler warnings about cached_has_bits being unused
4202 (void) cached_has_bits;
4203
4204 // string reason_detail = 4;
4205 if (this->reason_detail().size() > 0) {
4206 total_size += 1 +
4207 ::google::protobuf::internal::WireFormatLite::StringSize(
4208 this->reason_detail());
4209 }
4210
4211 // .dmi.Uuid device_uuid = 3;
4212 if (this->has_device_uuid()) {
4213 total_size += 1 +
4214 ::google::protobuf::internal::WireFormatLite::MessageSize(
4215 *device_uuid_);
4216 }
4217
4218 // .dmi.Status status = 1;
4219 if (this->status() != 0) {
4220 total_size += 1 +
4221 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
4222 }
4223
4224 // .dmi.StartManagingDeviceResponse.Reason reason = 2;
4225 if (this->reason() != 0) {
4226 total_size += 1 +
4227 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
4228 }
4229
4230 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4231 SetCachedSize(cached_size);
4232 return total_size;
4233}
4234
4235void StartManagingDeviceResponse::MergeFrom(const ::google::protobuf::Message& from) {
4236// @@protoc_insertion_point(generalized_merge_from_start:dmi.StartManagingDeviceResponse)
4237 GOOGLE_DCHECK_NE(&from, this);
4238 const StartManagingDeviceResponse* source =
4239 ::google::protobuf::DynamicCastToGenerated<StartManagingDeviceResponse>(
4240 &from);
4241 if (source == nullptr) {
4242 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.StartManagingDeviceResponse)
4243 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4244 } else {
4245 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.StartManagingDeviceResponse)
4246 MergeFrom(*source);
4247 }
4248}
4249
4250void StartManagingDeviceResponse::MergeFrom(const StartManagingDeviceResponse& from) {
4251// @@protoc_insertion_point(class_specific_merge_from_start:dmi.StartManagingDeviceResponse)
4252 GOOGLE_DCHECK_NE(&from, this);
4253 _internal_metadata_.MergeFrom(from._internal_metadata_);
4254 ::google::protobuf::uint32 cached_has_bits = 0;
4255 (void) cached_has_bits;
4256
4257 if (from.reason_detail().size() > 0) {
4258
4259 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
4260 }
4261 if (from.has_device_uuid()) {
4262 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
4263 }
4264 if (from.status() != 0) {
4265 set_status(from.status());
4266 }
4267 if (from.reason() != 0) {
4268 set_reason(from.reason());
4269 }
4270}
4271
4272void StartManagingDeviceResponse::CopyFrom(const ::google::protobuf::Message& from) {
4273// @@protoc_insertion_point(generalized_copy_from_start:dmi.StartManagingDeviceResponse)
4274 if (&from == this) return;
4275 Clear();
4276 MergeFrom(from);
4277}
4278
4279void StartManagingDeviceResponse::CopyFrom(const StartManagingDeviceResponse& from) {
4280// @@protoc_insertion_point(class_specific_copy_from_start:dmi.StartManagingDeviceResponse)
4281 if (&from == this) return;
4282 Clear();
4283 MergeFrom(from);
4284}
4285
4286bool StartManagingDeviceResponse::IsInitialized() const {
4287 return true;
4288}
4289
4290void StartManagingDeviceResponse::Swap(StartManagingDeviceResponse* other) {
4291 if (other == this) return;
4292 InternalSwap(other);
4293}
4294void StartManagingDeviceResponse::InternalSwap(StartManagingDeviceResponse* other) {
4295 using std::swap;
4296 _internal_metadata_.Swap(&other->_internal_metadata_);
4297 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4298 GetArenaNoVirtual());
4299 swap(device_uuid_, other->device_uuid_);
4300 swap(status_, other->status_);
4301 swap(reason_, other->reason_);
4302}
4303
4304::google::protobuf::Metadata StartManagingDeviceResponse::GetMetadata() const {
4305 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
4306 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
4307}
4308
4309
4310// ===================================================================
4311
4312void StopManagingDeviceRequest::InitAsDefaultInstance() {
4313}
4314class StopManagingDeviceRequest::HasBitSetters {
4315 public:
4316};
4317
4318#if !defined(_MSC_VER) || _MSC_VER >= 1900
4319const int StopManagingDeviceRequest::kNameFieldNumber;
4320#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
4321
4322StopManagingDeviceRequest::StopManagingDeviceRequest()
4323 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
4324 SharedCtor();
4325 // @@protoc_insertion_point(constructor:dmi.StopManagingDeviceRequest)
4326}
4327StopManagingDeviceRequest::StopManagingDeviceRequest(const StopManagingDeviceRequest& from)
4328 : ::google::protobuf::Message(),
4329 _internal_metadata_(nullptr) {
4330 _internal_metadata_.MergeFrom(from._internal_metadata_);
4331 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4332 if (from.name().size() > 0) {
4333 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
4334 }
4335 // @@protoc_insertion_point(copy_constructor:dmi.StopManagingDeviceRequest)
4336}
4337
4338void StopManagingDeviceRequest::SharedCtor() {
4339 ::google::protobuf::internal::InitSCC(
4340 &scc_info_StopManagingDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
4341 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4342}
4343
4344StopManagingDeviceRequest::~StopManagingDeviceRequest() {
4345 // @@protoc_insertion_point(destructor:dmi.StopManagingDeviceRequest)
4346 SharedDtor();
4347}
4348
4349void StopManagingDeviceRequest::SharedDtor() {
4350 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4351}
4352
4353void StopManagingDeviceRequest::SetCachedSize(int size) const {
4354 _cached_size_.Set(size);
4355}
4356const StopManagingDeviceRequest& StopManagingDeviceRequest::default_instance() {
4357 ::google::protobuf::internal::InitSCC(&::scc_info_StopManagingDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
4358 return *internal_default_instance();
4359}
4360
4361
4362void StopManagingDeviceRequest::Clear() {
4363// @@protoc_insertion_point(message_clear_start:dmi.StopManagingDeviceRequest)
4364 ::google::protobuf::uint32 cached_has_bits = 0;
4365 // Prevent compiler warnings about cached_has_bits being unused
4366 (void) cached_has_bits;
4367
4368 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4369 _internal_metadata_.Clear();
4370}
4371
4372#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4373const char* StopManagingDeviceRequest::_InternalParse(const char* begin, const char* end, void* object,
4374 ::google::protobuf::internal::ParseContext* ctx) {
4375 auto msg = static_cast<StopManagingDeviceRequest*>(object);
4376 ::google::protobuf::int32 size; (void)size;
4377 int depth; (void)depth;
4378 ::google::protobuf::uint32 tag;
4379 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
4380 auto ptr = begin;
4381 while (ptr < end) {
4382 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
4383 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4384 switch (tag >> 3) {
4385 // string name = 1;
4386 case 1: {
4387 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
4388 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
4389 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4390 ctx->extra_parse_data().SetFieldName("dmi.StopManagingDeviceRequest.name");
4391 object = msg->mutable_name();
4392 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
4393 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
4394 goto string_till_end;
4395 }
4396 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
4397 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
4398 ptr += size;
4399 break;
4400 }
4401 default: {
4402 handle_unusual:
4403 if ((tag & 7) == 4 || tag == 0) {
4404 ctx->EndGroup(tag);
4405 return ptr;
4406 }
4407 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
4408 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
4409 ptr = res.first;
4410 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
4411 if (res.second) return ptr;
4412 }
4413 } // switch
4414 } // while
4415 return ptr;
4416string_till_end:
4417 static_cast<::std::string*>(object)->clear();
4418 static_cast<::std::string*>(object)->reserve(size);
4419 goto len_delim_till_end;
4420len_delim_till_end:
4421 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
4422 {parser_till_end, object}, size);
4423}
4424#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4425bool StopManagingDeviceRequest::MergePartialFromCodedStream(
4426 ::google::protobuf::io::CodedInputStream* input) {
4427#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
4428 ::google::protobuf::uint32 tag;
4429 // @@protoc_insertion_point(parse_start:dmi.StopManagingDeviceRequest)
4430 for (;;) {
4431 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4432 tag = p.first;
4433 if (!p.second) goto handle_unusual;
4434 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4435 // string name = 1;
4436 case 1: {
4437 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
4438 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4439 input, this->mutable_name()));
4440 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
4441 this->name().data(), static_cast<int>(this->name().length()),
4442 ::google::protobuf::internal::WireFormatLite::PARSE,
4443 "dmi.StopManagingDeviceRequest.name"));
4444 } else {
4445 goto handle_unusual;
4446 }
4447 break;
4448 }
4449
4450 default: {
4451 handle_unusual:
4452 if (tag == 0) {
4453 goto success;
4454 }
4455 DO_(::google::protobuf::internal::WireFormat::SkipField(
4456 input, tag, _internal_metadata_.mutable_unknown_fields()));
4457 break;
4458 }
4459 }
4460 }
4461success:
4462 // @@protoc_insertion_point(parse_success:dmi.StopManagingDeviceRequest)
4463 return true;
4464failure:
4465 // @@protoc_insertion_point(parse_failure:dmi.StopManagingDeviceRequest)
4466 return false;
4467#undef DO_
4468}
4469#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4470
4471void StopManagingDeviceRequest::SerializeWithCachedSizes(
4472 ::google::protobuf::io::CodedOutputStream* output) const {
4473 // @@protoc_insertion_point(serialize_start:dmi.StopManagingDeviceRequest)
4474 ::google::protobuf::uint32 cached_has_bits = 0;
4475 (void) cached_has_bits;
4476
4477 // string name = 1;
4478 if (this->name().size() > 0) {
4479 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
4480 this->name().data(), static_cast<int>(this->name().length()),
4481 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
4482 "dmi.StopManagingDeviceRequest.name");
4483 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4484 1, this->name(), output);
4485 }
4486
4487 if (_internal_metadata_.have_unknown_fields()) {
4488 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4489 _internal_metadata_.unknown_fields(), output);
4490 }
4491 // @@protoc_insertion_point(serialize_end:dmi.StopManagingDeviceRequest)
4492}
4493
4494::google::protobuf::uint8* StopManagingDeviceRequest::InternalSerializeWithCachedSizesToArray(
4495 ::google::protobuf::uint8* target) const {
4496 // @@protoc_insertion_point(serialize_to_array_start:dmi.StopManagingDeviceRequest)
4497 ::google::protobuf::uint32 cached_has_bits = 0;
4498 (void) cached_has_bits;
4499
4500 // string name = 1;
4501 if (this->name().size() > 0) {
4502 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
4503 this->name().data(), static_cast<int>(this->name().length()),
4504 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
4505 "dmi.StopManagingDeviceRequest.name");
4506 target =
4507 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4508 1, this->name(), target);
4509 }
4510
4511 if (_internal_metadata_.have_unknown_fields()) {
4512 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4513 _internal_metadata_.unknown_fields(), target);
4514 }
4515 // @@protoc_insertion_point(serialize_to_array_end:dmi.StopManagingDeviceRequest)
4516 return target;
4517}
4518
4519size_t StopManagingDeviceRequest::ByteSizeLong() const {
4520// @@protoc_insertion_point(message_byte_size_start:dmi.StopManagingDeviceRequest)
4521 size_t total_size = 0;
4522
4523 if (_internal_metadata_.have_unknown_fields()) {
4524 total_size +=
4525 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4526 _internal_metadata_.unknown_fields());
4527 }
4528 ::google::protobuf::uint32 cached_has_bits = 0;
4529 // Prevent compiler warnings about cached_has_bits being unused
4530 (void) cached_has_bits;
4531
4532 // string name = 1;
4533 if (this->name().size() > 0) {
4534 total_size += 1 +
4535 ::google::protobuf::internal::WireFormatLite::StringSize(
4536 this->name());
4537 }
4538
4539 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4540 SetCachedSize(cached_size);
4541 return total_size;
4542}
4543
4544void StopManagingDeviceRequest::MergeFrom(const ::google::protobuf::Message& from) {
4545// @@protoc_insertion_point(generalized_merge_from_start:dmi.StopManagingDeviceRequest)
4546 GOOGLE_DCHECK_NE(&from, this);
4547 const StopManagingDeviceRequest* source =
4548 ::google::protobuf::DynamicCastToGenerated<StopManagingDeviceRequest>(
4549 &from);
4550 if (source == nullptr) {
4551 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.StopManagingDeviceRequest)
4552 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4553 } else {
4554 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.StopManagingDeviceRequest)
4555 MergeFrom(*source);
4556 }
4557}
4558
4559void StopManagingDeviceRequest::MergeFrom(const StopManagingDeviceRequest& from) {
4560// @@protoc_insertion_point(class_specific_merge_from_start:dmi.StopManagingDeviceRequest)
4561 GOOGLE_DCHECK_NE(&from, this);
4562 _internal_metadata_.MergeFrom(from._internal_metadata_);
4563 ::google::protobuf::uint32 cached_has_bits = 0;
4564 (void) cached_has_bits;
4565
4566 if (from.name().size() > 0) {
4567
4568 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
4569 }
4570}
4571
4572void StopManagingDeviceRequest::CopyFrom(const ::google::protobuf::Message& from) {
4573// @@protoc_insertion_point(generalized_copy_from_start:dmi.StopManagingDeviceRequest)
4574 if (&from == this) return;
4575 Clear();
4576 MergeFrom(from);
4577}
4578
4579void StopManagingDeviceRequest::CopyFrom(const StopManagingDeviceRequest& from) {
4580// @@protoc_insertion_point(class_specific_copy_from_start:dmi.StopManagingDeviceRequest)
4581 if (&from == this) return;
4582 Clear();
4583 MergeFrom(from);
4584}
4585
4586bool StopManagingDeviceRequest::IsInitialized() const {
4587 return true;
4588}
4589
4590void StopManagingDeviceRequest::Swap(StopManagingDeviceRequest* other) {
4591 if (other == this) return;
4592 InternalSwap(other);
4593}
4594void StopManagingDeviceRequest::InternalSwap(StopManagingDeviceRequest* other) {
4595 using std::swap;
4596 _internal_metadata_.Swap(&other->_internal_metadata_);
4597 name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4598 GetArenaNoVirtual());
4599}
4600
4601::google::protobuf::Metadata StopManagingDeviceRequest::GetMetadata() const {
4602 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
4603 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
4604}
4605
4606
4607// ===================================================================
4608
4609void StopManagingDeviceResponse::InitAsDefaultInstance() {
4610}
4611class StopManagingDeviceResponse::HasBitSetters {
4612 public:
4613};
4614
4615#if !defined(_MSC_VER) || _MSC_VER >= 1900
4616const int StopManagingDeviceResponse::kStatusFieldNumber;
4617const int StopManagingDeviceResponse::kReasonFieldNumber;
4618const int StopManagingDeviceResponse::kReasonDetailFieldNumber;
4619#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
4620
4621StopManagingDeviceResponse::StopManagingDeviceResponse()
4622 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
4623 SharedCtor();
4624 // @@protoc_insertion_point(constructor:dmi.StopManagingDeviceResponse)
4625}
4626StopManagingDeviceResponse::StopManagingDeviceResponse(const StopManagingDeviceResponse& from)
4627 : ::google::protobuf::Message(),
4628 _internal_metadata_(nullptr) {
4629 _internal_metadata_.MergeFrom(from._internal_metadata_);
4630 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4631 if (from.reason_detail().size() > 0) {
4632 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
4633 }
4634 ::memcpy(&status_, &from.status_,
4635 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
4636 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
4637 // @@protoc_insertion_point(copy_constructor:dmi.StopManagingDeviceResponse)
4638}
4639
4640void StopManagingDeviceResponse::SharedCtor() {
4641 ::google::protobuf::internal::InitSCC(
4642 &scc_info_StopManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
4643 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4644 ::memset(&status_, 0, static_cast<size_t>(
4645 reinterpret_cast<char*>(&reason_) -
4646 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
4647}
4648
4649StopManagingDeviceResponse::~StopManagingDeviceResponse() {
4650 // @@protoc_insertion_point(destructor:dmi.StopManagingDeviceResponse)
4651 SharedDtor();
4652}
4653
4654void StopManagingDeviceResponse::SharedDtor() {
4655 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4656}
4657
4658void StopManagingDeviceResponse::SetCachedSize(int size) const {
4659 _cached_size_.Set(size);
4660}
4661const StopManagingDeviceResponse& StopManagingDeviceResponse::default_instance() {
4662 ::google::protobuf::internal::InitSCC(&::scc_info_StopManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
4663 return *internal_default_instance();
4664}
4665
4666
4667void StopManagingDeviceResponse::Clear() {
4668// @@protoc_insertion_point(message_clear_start:dmi.StopManagingDeviceResponse)
4669 ::google::protobuf::uint32 cached_has_bits = 0;
4670 // Prevent compiler warnings about cached_has_bits being unused
4671 (void) cached_has_bits;
4672
4673 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4674 ::memset(&status_, 0, static_cast<size_t>(
4675 reinterpret_cast<char*>(&reason_) -
4676 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
4677 _internal_metadata_.Clear();
4678}
4679
4680#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4681const char* StopManagingDeviceResponse::_InternalParse(const char* begin, const char* end, void* object,
4682 ::google::protobuf::internal::ParseContext* ctx) {
4683 auto msg = static_cast<StopManagingDeviceResponse*>(object);
4684 ::google::protobuf::int32 size; (void)size;
4685 int depth; (void)depth;
4686 ::google::protobuf::uint32 tag;
4687 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
4688 auto ptr = begin;
4689 while (ptr < end) {
4690 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
4691 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4692 switch (tag >> 3) {
4693 // .dmi.Status status = 1;
4694 case 1: {
4695 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
4696 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
4697 msg->set_status(static_cast<::dmi::Status>(val));
4698 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4699 break;
4700 }
4701 // .dmi.StopManagingDeviceResponse.Reason reason = 2;
4702 case 2: {
4703 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
4704 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
4705 msg->set_reason(static_cast<::dmi::StopManagingDeviceResponse_Reason>(val));
4706 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4707 break;
4708 }
4709 // string reason_detail = 3;
4710 case 3: {
4711 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
4712 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
4713 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4714 ctx->extra_parse_data().SetFieldName("dmi.StopManagingDeviceResponse.reason_detail");
4715 object = msg->mutable_reason_detail();
4716 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
4717 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
4718 goto string_till_end;
4719 }
4720 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
4721 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
4722 ptr += size;
4723 break;
4724 }
4725 default: {
4726 handle_unusual:
4727 if ((tag & 7) == 4 || tag == 0) {
4728 ctx->EndGroup(tag);
4729 return ptr;
4730 }
4731 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
4732 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
4733 ptr = res.first;
4734 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
4735 if (res.second) return ptr;
4736 }
4737 } // switch
4738 } // while
4739 return ptr;
4740string_till_end:
4741 static_cast<::std::string*>(object)->clear();
4742 static_cast<::std::string*>(object)->reserve(size);
4743 goto len_delim_till_end;
4744len_delim_till_end:
4745 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
4746 {parser_till_end, object}, size);
4747}
4748#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4749bool StopManagingDeviceResponse::MergePartialFromCodedStream(
4750 ::google::protobuf::io::CodedInputStream* input) {
4751#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
4752 ::google::protobuf::uint32 tag;
4753 // @@protoc_insertion_point(parse_start:dmi.StopManagingDeviceResponse)
4754 for (;;) {
4755 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4756 tag = p.first;
4757 if (!p.second) goto handle_unusual;
4758 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4759 // .dmi.Status status = 1;
4760 case 1: {
4761 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
4762 int value = 0;
4763 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4764 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
4765 input, &value)));
4766 set_status(static_cast< ::dmi::Status >(value));
4767 } else {
4768 goto handle_unusual;
4769 }
4770 break;
4771 }
4772
4773 // .dmi.StopManagingDeviceResponse.Reason reason = 2;
4774 case 2: {
4775 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
4776 int value = 0;
4777 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4778 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
4779 input, &value)));
4780 set_reason(static_cast< ::dmi::StopManagingDeviceResponse_Reason >(value));
4781 } else {
4782 goto handle_unusual;
4783 }
4784 break;
4785 }
4786
4787 // string reason_detail = 3;
4788 case 3: {
4789 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
4790 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4791 input, this->mutable_reason_detail()));
4792 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
4793 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
4794 ::google::protobuf::internal::WireFormatLite::PARSE,
4795 "dmi.StopManagingDeviceResponse.reason_detail"));
4796 } else {
4797 goto handle_unusual;
4798 }
4799 break;
4800 }
4801
4802 default: {
4803 handle_unusual:
4804 if (tag == 0) {
4805 goto success;
4806 }
4807 DO_(::google::protobuf::internal::WireFormat::SkipField(
4808 input, tag, _internal_metadata_.mutable_unknown_fields()));
4809 break;
4810 }
4811 }
4812 }
4813success:
4814 // @@protoc_insertion_point(parse_success:dmi.StopManagingDeviceResponse)
4815 return true;
4816failure:
4817 // @@protoc_insertion_point(parse_failure:dmi.StopManagingDeviceResponse)
4818 return false;
4819#undef DO_
4820}
4821#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4822
4823void StopManagingDeviceResponse::SerializeWithCachedSizes(
4824 ::google::protobuf::io::CodedOutputStream* output) const {
4825 // @@protoc_insertion_point(serialize_start:dmi.StopManagingDeviceResponse)
4826 ::google::protobuf::uint32 cached_has_bits = 0;
4827 (void) cached_has_bits;
4828
4829 // .dmi.Status status = 1;
4830 if (this->status() != 0) {
4831 ::google::protobuf::internal::WireFormatLite::WriteEnum(
4832 1, this->status(), output);
4833 }
4834
4835 // .dmi.StopManagingDeviceResponse.Reason reason = 2;
4836 if (this->reason() != 0) {
4837 ::google::protobuf::internal::WireFormatLite::WriteEnum(
4838 2, this->reason(), output);
4839 }
4840
4841 // string reason_detail = 3;
4842 if (this->reason_detail().size() > 0) {
4843 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
4844 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
4845 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
4846 "dmi.StopManagingDeviceResponse.reason_detail");
4847 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4848 3, this->reason_detail(), output);
4849 }
4850
4851 if (_internal_metadata_.have_unknown_fields()) {
4852 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4853 _internal_metadata_.unknown_fields(), output);
4854 }
4855 // @@protoc_insertion_point(serialize_end:dmi.StopManagingDeviceResponse)
4856}
4857
4858::google::protobuf::uint8* StopManagingDeviceResponse::InternalSerializeWithCachedSizesToArray(
4859 ::google::protobuf::uint8* target) const {
4860 // @@protoc_insertion_point(serialize_to_array_start:dmi.StopManagingDeviceResponse)
4861 ::google::protobuf::uint32 cached_has_bits = 0;
4862 (void) cached_has_bits;
4863
4864 // .dmi.Status status = 1;
4865 if (this->status() != 0) {
4866 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4867 1, this->status(), target);
4868 }
4869
4870 // .dmi.StopManagingDeviceResponse.Reason reason = 2;
4871 if (this->reason() != 0) {
4872 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4873 2, this->reason(), target);
4874 }
4875
4876 // string reason_detail = 3;
4877 if (this->reason_detail().size() > 0) {
4878 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
4879 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
4880 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
4881 "dmi.StopManagingDeviceResponse.reason_detail");
4882 target =
4883 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4884 3, this->reason_detail(), target);
4885 }
4886
4887 if (_internal_metadata_.have_unknown_fields()) {
4888 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4889 _internal_metadata_.unknown_fields(), target);
4890 }
4891 // @@protoc_insertion_point(serialize_to_array_end:dmi.StopManagingDeviceResponse)
4892 return target;
4893}
4894
4895size_t StopManagingDeviceResponse::ByteSizeLong() const {
4896// @@protoc_insertion_point(message_byte_size_start:dmi.StopManagingDeviceResponse)
4897 size_t total_size = 0;
4898
4899 if (_internal_metadata_.have_unknown_fields()) {
4900 total_size +=
4901 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4902 _internal_metadata_.unknown_fields());
4903 }
4904 ::google::protobuf::uint32 cached_has_bits = 0;
4905 // Prevent compiler warnings about cached_has_bits being unused
4906 (void) cached_has_bits;
4907
4908 // string reason_detail = 3;
4909 if (this->reason_detail().size() > 0) {
4910 total_size += 1 +
4911 ::google::protobuf::internal::WireFormatLite::StringSize(
4912 this->reason_detail());
4913 }
4914
4915 // .dmi.Status status = 1;
4916 if (this->status() != 0) {
4917 total_size += 1 +
4918 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
4919 }
4920
4921 // .dmi.StopManagingDeviceResponse.Reason reason = 2;
4922 if (this->reason() != 0) {
4923 total_size += 1 +
4924 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
4925 }
4926
4927 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4928 SetCachedSize(cached_size);
4929 return total_size;
4930}
4931
4932void StopManagingDeviceResponse::MergeFrom(const ::google::protobuf::Message& from) {
4933// @@protoc_insertion_point(generalized_merge_from_start:dmi.StopManagingDeviceResponse)
4934 GOOGLE_DCHECK_NE(&from, this);
4935 const StopManagingDeviceResponse* source =
4936 ::google::protobuf::DynamicCastToGenerated<StopManagingDeviceResponse>(
4937 &from);
4938 if (source == nullptr) {
4939 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.StopManagingDeviceResponse)
4940 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4941 } else {
4942 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.StopManagingDeviceResponse)
4943 MergeFrom(*source);
4944 }
4945}
4946
4947void StopManagingDeviceResponse::MergeFrom(const StopManagingDeviceResponse& from) {
4948// @@protoc_insertion_point(class_specific_merge_from_start:dmi.StopManagingDeviceResponse)
4949 GOOGLE_DCHECK_NE(&from, this);
4950 _internal_metadata_.MergeFrom(from._internal_metadata_);
4951 ::google::protobuf::uint32 cached_has_bits = 0;
4952 (void) cached_has_bits;
4953
4954 if (from.reason_detail().size() > 0) {
4955
4956 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
4957 }
4958 if (from.status() != 0) {
4959 set_status(from.status());
4960 }
4961 if (from.reason() != 0) {
4962 set_reason(from.reason());
4963 }
4964}
4965
4966void StopManagingDeviceResponse::CopyFrom(const ::google::protobuf::Message& from) {
4967// @@protoc_insertion_point(generalized_copy_from_start:dmi.StopManagingDeviceResponse)
4968 if (&from == this) return;
4969 Clear();
4970 MergeFrom(from);
4971}
4972
4973void StopManagingDeviceResponse::CopyFrom(const StopManagingDeviceResponse& from) {
4974// @@protoc_insertion_point(class_specific_copy_from_start:dmi.StopManagingDeviceResponse)
4975 if (&from == this) return;
4976 Clear();
4977 MergeFrom(from);
4978}
4979
4980bool StopManagingDeviceResponse::IsInitialized() const {
4981 return true;
4982}
4983
4984void StopManagingDeviceResponse::Swap(StopManagingDeviceResponse* other) {
4985 if (other == this) return;
4986 InternalSwap(other);
4987}
4988void StopManagingDeviceResponse::InternalSwap(StopManagingDeviceResponse* other) {
4989 using std::swap;
4990 _internal_metadata_.Swap(&other->_internal_metadata_);
4991 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4992 GetArenaNoVirtual());
4993 swap(status_, other->status_);
4994 swap(reason_, other->reason_);
4995}
4996
4997::google::protobuf::Metadata StopManagingDeviceResponse::GetMetadata() const {
4998 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
4999 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
5000}
5001
5002
5003// ===================================================================
5004
5005void ManagedDeviceInfo::InitAsDefaultInstance() {
5006 ::dmi::_ManagedDeviceInfo_default_instance_._instance.get_mutable()->info_ = const_cast< ::dmi::ModifiableComponent*>(
5007 ::dmi::ModifiableComponent::internal_default_instance());
5008 ::dmi::_ManagedDeviceInfo_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
5009 ::dmi::Uuid::internal_default_instance());
5010}
5011class ManagedDeviceInfo::HasBitSetters {
5012 public:
5013 static const ::dmi::ModifiableComponent& info(const ManagedDeviceInfo* msg);
5014 static const ::dmi::Uuid& device_uuid(const ManagedDeviceInfo* msg);
5015};
5016
5017const ::dmi::ModifiableComponent&
5018ManagedDeviceInfo::HasBitSetters::info(const ManagedDeviceInfo* msg) {
5019 return *msg->info_;
5020}
5021const ::dmi::Uuid&
5022ManagedDeviceInfo::HasBitSetters::device_uuid(const ManagedDeviceInfo* msg) {
5023 return *msg->device_uuid_;
5024}
5025void ManagedDeviceInfo::clear_info() {
5026 if (GetArenaNoVirtual() == nullptr && info_ != nullptr) {
5027 delete info_;
5028 }
5029 info_ = nullptr;
5030}
5031void ManagedDeviceInfo::clear_device_uuid() {
5032 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
5033 delete device_uuid_;
5034 }
5035 device_uuid_ = nullptr;
5036}
5037#if !defined(_MSC_VER) || _MSC_VER >= 1900
5038const int ManagedDeviceInfo::kInfoFieldNumber;
5039const int ManagedDeviceInfo::kDeviceUuidFieldNumber;
5040#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
5041
5042ManagedDeviceInfo::ManagedDeviceInfo()
5043 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
5044 SharedCtor();
5045 // @@protoc_insertion_point(constructor:dmi.ManagedDeviceInfo)
5046}
5047ManagedDeviceInfo::ManagedDeviceInfo(const ManagedDeviceInfo& from)
5048 : ::google::protobuf::Message(),
5049 _internal_metadata_(nullptr) {
5050 _internal_metadata_.MergeFrom(from._internal_metadata_);
5051 if (from.has_info()) {
5052 info_ = new ::dmi::ModifiableComponent(*from.info_);
5053 } else {
5054 info_ = nullptr;
5055 }
5056 if (from.has_device_uuid()) {
5057 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
5058 } else {
5059 device_uuid_ = nullptr;
5060 }
5061 // @@protoc_insertion_point(copy_constructor:dmi.ManagedDeviceInfo)
5062}
5063
5064void ManagedDeviceInfo::SharedCtor() {
5065 ::google::protobuf::internal::InitSCC(
5066 &scc_info_ManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
5067 ::memset(&info_, 0, static_cast<size_t>(
5068 reinterpret_cast<char*>(&device_uuid_) -
5069 reinterpret_cast<char*>(&info_)) + sizeof(device_uuid_));
5070}
5071
5072ManagedDeviceInfo::~ManagedDeviceInfo() {
5073 // @@protoc_insertion_point(destructor:dmi.ManagedDeviceInfo)
5074 SharedDtor();
5075}
5076
5077void ManagedDeviceInfo::SharedDtor() {
5078 if (this != internal_default_instance()) delete info_;
5079 if (this != internal_default_instance()) delete device_uuid_;
5080}
5081
5082void ManagedDeviceInfo::SetCachedSize(int size) const {
5083 _cached_size_.Set(size);
5084}
5085const ManagedDeviceInfo& ManagedDeviceInfo::default_instance() {
5086 ::google::protobuf::internal::InitSCC(&::scc_info_ManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
5087 return *internal_default_instance();
5088}
5089
5090
5091void ManagedDeviceInfo::Clear() {
5092// @@protoc_insertion_point(message_clear_start:dmi.ManagedDeviceInfo)
5093 ::google::protobuf::uint32 cached_has_bits = 0;
5094 // Prevent compiler warnings about cached_has_bits being unused
5095 (void) cached_has_bits;
5096
5097 if (GetArenaNoVirtual() == nullptr && info_ != nullptr) {
5098 delete info_;
5099 }
5100 info_ = nullptr;
5101 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
5102 delete device_uuid_;
5103 }
5104 device_uuid_ = nullptr;
5105 _internal_metadata_.Clear();
5106}
5107
5108#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5109const char* ManagedDeviceInfo::_InternalParse(const char* begin, const char* end, void* object,
5110 ::google::protobuf::internal::ParseContext* ctx) {
5111 auto msg = static_cast<ManagedDeviceInfo*>(object);
5112 ::google::protobuf::int32 size; (void)size;
5113 int depth; (void)depth;
5114 ::google::protobuf::uint32 tag;
5115 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
5116 auto ptr = begin;
5117 while (ptr < end) {
5118 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
5119 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5120 switch (tag >> 3) {
5121 // .dmi.ModifiableComponent info = 1;
5122 case 1: {
5123 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
5124 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
5125 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5126 parser_till_end = ::dmi::ModifiableComponent::_InternalParse;
5127 object = msg->mutable_info();
5128 if (size > end - ptr) goto len_delim_till_end;
5129 ptr += size;
5130 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
5131 {parser_till_end, object}, ptr - size, ptr));
5132 break;
5133 }
5134 // .dmi.Uuid device_uuid = 2;
5135 case 2: {
5136 if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
5137 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
5138 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5139 parser_till_end = ::dmi::Uuid::_InternalParse;
5140 object = msg->mutable_device_uuid();
5141 if (size > end - ptr) goto len_delim_till_end;
5142 ptr += size;
5143 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
5144 {parser_till_end, object}, ptr - size, ptr));
5145 break;
5146 }
5147 default: {
5148 handle_unusual:
5149 if ((tag & 7) == 4 || tag == 0) {
5150 ctx->EndGroup(tag);
5151 return ptr;
5152 }
5153 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
5154 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
5155 ptr = res.first;
5156 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
5157 if (res.second) return ptr;
5158 }
5159 } // switch
5160 } // while
5161 return ptr;
5162len_delim_till_end:
5163 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
5164 {parser_till_end, object}, size);
5165}
5166#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5167bool ManagedDeviceInfo::MergePartialFromCodedStream(
5168 ::google::protobuf::io::CodedInputStream* input) {
5169#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
5170 ::google::protobuf::uint32 tag;
5171 // @@protoc_insertion_point(parse_start:dmi.ManagedDeviceInfo)
5172 for (;;) {
5173 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5174 tag = p.first;
5175 if (!p.second) goto handle_unusual;
5176 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5177 // .dmi.ModifiableComponent info = 1;
5178 case 1: {
5179 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
5180 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5181 input, mutable_info()));
5182 } else {
5183 goto handle_unusual;
5184 }
5185 break;
5186 }
5187
5188 // .dmi.Uuid device_uuid = 2;
5189 case 2: {
5190 if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
5191 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5192 input, mutable_device_uuid()));
5193 } else {
5194 goto handle_unusual;
5195 }
5196 break;
5197 }
5198
5199 default: {
5200 handle_unusual:
5201 if (tag == 0) {
5202 goto success;
5203 }
5204 DO_(::google::protobuf::internal::WireFormat::SkipField(
5205 input, tag, _internal_metadata_.mutable_unknown_fields()));
5206 break;
5207 }
5208 }
5209 }
5210success:
5211 // @@protoc_insertion_point(parse_success:dmi.ManagedDeviceInfo)
5212 return true;
5213failure:
5214 // @@protoc_insertion_point(parse_failure:dmi.ManagedDeviceInfo)
5215 return false;
5216#undef DO_
5217}
5218#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5219
5220void ManagedDeviceInfo::SerializeWithCachedSizes(
5221 ::google::protobuf::io::CodedOutputStream* output) const {
5222 // @@protoc_insertion_point(serialize_start:dmi.ManagedDeviceInfo)
5223 ::google::protobuf::uint32 cached_has_bits = 0;
5224 (void) cached_has_bits;
5225
5226 // .dmi.ModifiableComponent info = 1;
5227 if (this->has_info()) {
5228 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5229 1, HasBitSetters::info(this), output);
5230 }
5231
5232 // .dmi.Uuid device_uuid = 2;
5233 if (this->has_device_uuid()) {
5234 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5235 2, HasBitSetters::device_uuid(this), output);
5236 }
5237
5238 if (_internal_metadata_.have_unknown_fields()) {
5239 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5240 _internal_metadata_.unknown_fields(), output);
5241 }
5242 // @@protoc_insertion_point(serialize_end:dmi.ManagedDeviceInfo)
5243}
5244
5245::google::protobuf::uint8* ManagedDeviceInfo::InternalSerializeWithCachedSizesToArray(
5246 ::google::protobuf::uint8* target) const {
5247 // @@protoc_insertion_point(serialize_to_array_start:dmi.ManagedDeviceInfo)
5248 ::google::protobuf::uint32 cached_has_bits = 0;
5249 (void) cached_has_bits;
5250
5251 // .dmi.ModifiableComponent info = 1;
5252 if (this->has_info()) {
5253 target = ::google::protobuf::internal::WireFormatLite::
5254 InternalWriteMessageToArray(
5255 1, HasBitSetters::info(this), target);
5256 }
5257
5258 // .dmi.Uuid device_uuid = 2;
5259 if (this->has_device_uuid()) {
5260 target = ::google::protobuf::internal::WireFormatLite::
5261 InternalWriteMessageToArray(
5262 2, HasBitSetters::device_uuid(this), target);
5263 }
5264
5265 if (_internal_metadata_.have_unknown_fields()) {
5266 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5267 _internal_metadata_.unknown_fields(), target);
5268 }
5269 // @@protoc_insertion_point(serialize_to_array_end:dmi.ManagedDeviceInfo)
5270 return target;
5271}
5272
5273size_t ManagedDeviceInfo::ByteSizeLong() const {
5274// @@protoc_insertion_point(message_byte_size_start:dmi.ManagedDeviceInfo)
5275 size_t total_size = 0;
5276
5277 if (_internal_metadata_.have_unknown_fields()) {
5278 total_size +=
5279 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5280 _internal_metadata_.unknown_fields());
5281 }
5282 ::google::protobuf::uint32 cached_has_bits = 0;
5283 // Prevent compiler warnings about cached_has_bits being unused
5284 (void) cached_has_bits;
5285
5286 // .dmi.ModifiableComponent info = 1;
5287 if (this->has_info()) {
5288 total_size += 1 +
5289 ::google::protobuf::internal::WireFormatLite::MessageSize(
5290 *info_);
5291 }
5292
5293 // .dmi.Uuid device_uuid = 2;
5294 if (this->has_device_uuid()) {
5295 total_size += 1 +
5296 ::google::protobuf::internal::WireFormatLite::MessageSize(
5297 *device_uuid_);
5298 }
5299
5300 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5301 SetCachedSize(cached_size);
5302 return total_size;
5303}
5304
5305void ManagedDeviceInfo::MergeFrom(const ::google::protobuf::Message& from) {
5306// @@protoc_insertion_point(generalized_merge_from_start:dmi.ManagedDeviceInfo)
5307 GOOGLE_DCHECK_NE(&from, this);
5308 const ManagedDeviceInfo* source =
5309 ::google::protobuf::DynamicCastToGenerated<ManagedDeviceInfo>(
5310 &from);
5311 if (source == nullptr) {
5312 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ManagedDeviceInfo)
5313 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5314 } else {
5315 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ManagedDeviceInfo)
5316 MergeFrom(*source);
5317 }
5318}
5319
5320void ManagedDeviceInfo::MergeFrom(const ManagedDeviceInfo& from) {
5321// @@protoc_insertion_point(class_specific_merge_from_start:dmi.ManagedDeviceInfo)
5322 GOOGLE_DCHECK_NE(&from, this);
5323 _internal_metadata_.MergeFrom(from._internal_metadata_);
5324 ::google::protobuf::uint32 cached_has_bits = 0;
5325 (void) cached_has_bits;
5326
5327 if (from.has_info()) {
5328 mutable_info()->::dmi::ModifiableComponent::MergeFrom(from.info());
5329 }
5330 if (from.has_device_uuid()) {
5331 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
5332 }
5333}
5334
5335void ManagedDeviceInfo::CopyFrom(const ::google::protobuf::Message& from) {
5336// @@protoc_insertion_point(generalized_copy_from_start:dmi.ManagedDeviceInfo)
5337 if (&from == this) return;
5338 Clear();
5339 MergeFrom(from);
5340}
5341
5342void ManagedDeviceInfo::CopyFrom(const ManagedDeviceInfo& from) {
5343// @@protoc_insertion_point(class_specific_copy_from_start:dmi.ManagedDeviceInfo)
5344 if (&from == this) return;
5345 Clear();
5346 MergeFrom(from);
5347}
5348
5349bool ManagedDeviceInfo::IsInitialized() const {
5350 return true;
5351}
5352
5353void ManagedDeviceInfo::Swap(ManagedDeviceInfo* other) {
5354 if (other == this) return;
5355 InternalSwap(other);
5356}
5357void ManagedDeviceInfo::InternalSwap(ManagedDeviceInfo* other) {
5358 using std::swap;
5359 _internal_metadata_.Swap(&other->_internal_metadata_);
5360 swap(info_, other->info_);
5361 swap(device_uuid_, other->device_uuid_);
5362}
5363
5364::google::protobuf::Metadata ManagedDeviceInfo::GetMetadata() const {
5365 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
5366 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
5367}
5368
5369
5370// ===================================================================
5371
5372void ManagedDevicesResponse::InitAsDefaultInstance() {
5373}
5374class ManagedDevicesResponse::HasBitSetters {
5375 public:
5376};
5377
5378#if !defined(_MSC_VER) || _MSC_VER >= 1900
5379const int ManagedDevicesResponse::kStatusFieldNumber;
5380const int ManagedDevicesResponse::kReasonFieldNumber;
5381const int ManagedDevicesResponse::kDevicesFieldNumber;
5382#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
5383
5384ManagedDevicesResponse::ManagedDevicesResponse()
5385 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
5386 SharedCtor();
5387 // @@protoc_insertion_point(constructor:dmi.ManagedDevicesResponse)
5388}
5389ManagedDevicesResponse::ManagedDevicesResponse(const ManagedDevicesResponse& from)
5390 : ::google::protobuf::Message(),
5391 _internal_metadata_(nullptr),
5392 devices_(from.devices_) {
5393 _internal_metadata_.MergeFrom(from._internal_metadata_);
5394 ::memcpy(&status_, &from.status_,
5395 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
5396 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
5397 // @@protoc_insertion_point(copy_constructor:dmi.ManagedDevicesResponse)
5398}
5399
5400void ManagedDevicesResponse::SharedCtor() {
5401 ::google::protobuf::internal::InitSCC(
5402 &scc_info_ManagedDevicesResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
5403 ::memset(&status_, 0, static_cast<size_t>(
5404 reinterpret_cast<char*>(&reason_) -
5405 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
5406}
5407
5408ManagedDevicesResponse::~ManagedDevicesResponse() {
5409 // @@protoc_insertion_point(destructor:dmi.ManagedDevicesResponse)
5410 SharedDtor();
5411}
5412
5413void ManagedDevicesResponse::SharedDtor() {
5414}
5415
5416void ManagedDevicesResponse::SetCachedSize(int size) const {
5417 _cached_size_.Set(size);
5418}
5419const ManagedDevicesResponse& ManagedDevicesResponse::default_instance() {
5420 ::google::protobuf::internal::InitSCC(&::scc_info_ManagedDevicesResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
5421 return *internal_default_instance();
5422}
5423
5424
5425void ManagedDevicesResponse::Clear() {
5426// @@protoc_insertion_point(message_clear_start:dmi.ManagedDevicesResponse)
5427 ::google::protobuf::uint32 cached_has_bits = 0;
5428 // Prevent compiler warnings about cached_has_bits being unused
5429 (void) cached_has_bits;
5430
5431 devices_.Clear();
5432 ::memset(&status_, 0, static_cast<size_t>(
5433 reinterpret_cast<char*>(&reason_) -
5434 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
5435 _internal_metadata_.Clear();
5436}
5437
5438#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5439const char* ManagedDevicesResponse::_InternalParse(const char* begin, const char* end, void* object,
5440 ::google::protobuf::internal::ParseContext* ctx) {
5441 auto msg = static_cast<ManagedDevicesResponse*>(object);
5442 ::google::protobuf::int32 size; (void)size;
5443 int depth; (void)depth;
5444 ::google::protobuf::uint32 tag;
5445 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
5446 auto ptr = begin;
5447 while (ptr < end) {
5448 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
5449 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5450 switch (tag >> 3) {
5451 // .dmi.Status status = 1;
5452 case 1: {
5453 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
5454 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
5455 msg->set_status(static_cast<::dmi::Status>(val));
5456 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5457 break;
5458 }
5459 // .dmi.ManagedDevicesResponse.Reason reason = 2;
5460 case 2: {
5461 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
5462 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
5463 msg->set_reason(static_cast<::dmi::ManagedDevicesResponse_Reason>(val));
5464 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5465 break;
5466 }
5467 // repeated .dmi.ManagedDeviceInfo devices = 3;
5468 case 3: {
5469 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
5470 do {
5471 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
5472 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5473 parser_till_end = ::dmi::ManagedDeviceInfo::_InternalParse;
5474 object = msg->add_devices();
5475 if (size > end - ptr) goto len_delim_till_end;
5476 ptr += size;
5477 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
5478 {parser_till_end, object}, ptr - size, ptr));
5479 if (ptr >= end) break;
5480 } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 26 && (ptr += 1));
5481 break;
5482 }
5483 default: {
5484 handle_unusual:
5485 if ((tag & 7) == 4 || tag == 0) {
5486 ctx->EndGroup(tag);
5487 return ptr;
5488 }
5489 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
5490 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
5491 ptr = res.first;
5492 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
5493 if (res.second) return ptr;
5494 }
5495 } // switch
5496 } // while
5497 return ptr;
5498len_delim_till_end:
5499 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
5500 {parser_till_end, object}, size);
5501}
5502#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5503bool ManagedDevicesResponse::MergePartialFromCodedStream(
5504 ::google::protobuf::io::CodedInputStream* input) {
5505#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
5506 ::google::protobuf::uint32 tag;
5507 // @@protoc_insertion_point(parse_start:dmi.ManagedDevicesResponse)
5508 for (;;) {
5509 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5510 tag = p.first;
5511 if (!p.second) goto handle_unusual;
5512 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5513 // .dmi.Status status = 1;
5514 case 1: {
5515 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
5516 int value = 0;
5517 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5518 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
5519 input, &value)));
5520 set_status(static_cast< ::dmi::Status >(value));
5521 } else {
5522 goto handle_unusual;
5523 }
5524 break;
5525 }
5526
5527 // .dmi.ManagedDevicesResponse.Reason reason = 2;
5528 case 2: {
5529 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
5530 int value = 0;
5531 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5532 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
5533 input, &value)));
5534 set_reason(static_cast< ::dmi::ManagedDevicesResponse_Reason >(value));
5535 } else {
5536 goto handle_unusual;
5537 }
5538 break;
5539 }
5540
5541 // repeated .dmi.ManagedDeviceInfo devices = 3;
5542 case 3: {
5543 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
5544 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5545 input, add_devices()));
5546 } else {
5547 goto handle_unusual;
5548 }
5549 break;
5550 }
5551
5552 default: {
5553 handle_unusual:
5554 if (tag == 0) {
5555 goto success;
5556 }
5557 DO_(::google::protobuf::internal::WireFormat::SkipField(
5558 input, tag, _internal_metadata_.mutable_unknown_fields()));
5559 break;
5560 }
5561 }
5562 }
5563success:
5564 // @@protoc_insertion_point(parse_success:dmi.ManagedDevicesResponse)
5565 return true;
5566failure:
5567 // @@protoc_insertion_point(parse_failure:dmi.ManagedDevicesResponse)
5568 return false;
5569#undef DO_
5570}
5571#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5572
5573void ManagedDevicesResponse::SerializeWithCachedSizes(
5574 ::google::protobuf::io::CodedOutputStream* output) const {
5575 // @@protoc_insertion_point(serialize_start:dmi.ManagedDevicesResponse)
5576 ::google::protobuf::uint32 cached_has_bits = 0;
5577 (void) cached_has_bits;
5578
5579 // .dmi.Status status = 1;
5580 if (this->status() != 0) {
5581 ::google::protobuf::internal::WireFormatLite::WriteEnum(
5582 1, this->status(), output);
5583 }
5584
5585 // .dmi.ManagedDevicesResponse.Reason reason = 2;
5586 if (this->reason() != 0) {
5587 ::google::protobuf::internal::WireFormatLite::WriteEnum(
5588 2, this->reason(), output);
5589 }
5590
5591 // repeated .dmi.ManagedDeviceInfo devices = 3;
5592 for (unsigned int i = 0,
5593 n = static_cast<unsigned int>(this->devices_size()); i < n; i++) {
5594 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5595 3,
5596 this->devices(static_cast<int>(i)),
5597 output);
5598 }
5599
5600 if (_internal_metadata_.have_unknown_fields()) {
5601 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5602 _internal_metadata_.unknown_fields(), output);
5603 }
5604 // @@protoc_insertion_point(serialize_end:dmi.ManagedDevicesResponse)
5605}
5606
5607::google::protobuf::uint8* ManagedDevicesResponse::InternalSerializeWithCachedSizesToArray(
5608 ::google::protobuf::uint8* target) const {
5609 // @@protoc_insertion_point(serialize_to_array_start:dmi.ManagedDevicesResponse)
5610 ::google::protobuf::uint32 cached_has_bits = 0;
5611 (void) cached_has_bits;
5612
5613 // .dmi.Status status = 1;
5614 if (this->status() != 0) {
5615 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
5616 1, this->status(), target);
5617 }
5618
5619 // .dmi.ManagedDevicesResponse.Reason reason = 2;
5620 if (this->reason() != 0) {
5621 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
5622 2, this->reason(), target);
5623 }
5624
5625 // repeated .dmi.ManagedDeviceInfo devices = 3;
5626 for (unsigned int i = 0,
5627 n = static_cast<unsigned int>(this->devices_size()); i < n; i++) {
5628 target = ::google::protobuf::internal::WireFormatLite::
5629 InternalWriteMessageToArray(
5630 3, this->devices(static_cast<int>(i)), target);
5631 }
5632
5633 if (_internal_metadata_.have_unknown_fields()) {
5634 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5635 _internal_metadata_.unknown_fields(), target);
5636 }
5637 // @@protoc_insertion_point(serialize_to_array_end:dmi.ManagedDevicesResponse)
5638 return target;
5639}
5640
5641size_t ManagedDevicesResponse::ByteSizeLong() const {
5642// @@protoc_insertion_point(message_byte_size_start:dmi.ManagedDevicesResponse)
5643 size_t total_size = 0;
5644
5645 if (_internal_metadata_.have_unknown_fields()) {
5646 total_size +=
5647 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5648 _internal_metadata_.unknown_fields());
5649 }
5650 ::google::protobuf::uint32 cached_has_bits = 0;
5651 // Prevent compiler warnings about cached_has_bits being unused
5652 (void) cached_has_bits;
5653
5654 // repeated .dmi.ManagedDeviceInfo devices = 3;
5655 {
5656 unsigned int count = static_cast<unsigned int>(this->devices_size());
5657 total_size += 1UL * count;
5658 for (unsigned int i = 0; i < count; i++) {
5659 total_size +=
5660 ::google::protobuf::internal::WireFormatLite::MessageSize(
5661 this->devices(static_cast<int>(i)));
5662 }
5663 }
5664
5665 // .dmi.Status status = 1;
5666 if (this->status() != 0) {
5667 total_size += 1 +
5668 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
5669 }
5670
5671 // .dmi.ManagedDevicesResponse.Reason reason = 2;
5672 if (this->reason() != 0) {
5673 total_size += 1 +
5674 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
5675 }
5676
5677 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5678 SetCachedSize(cached_size);
5679 return total_size;
5680}
5681
5682void ManagedDevicesResponse::MergeFrom(const ::google::protobuf::Message& from) {
5683// @@protoc_insertion_point(generalized_merge_from_start:dmi.ManagedDevicesResponse)
5684 GOOGLE_DCHECK_NE(&from, this);
5685 const ManagedDevicesResponse* source =
5686 ::google::protobuf::DynamicCastToGenerated<ManagedDevicesResponse>(
5687 &from);
5688 if (source == nullptr) {
5689 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ManagedDevicesResponse)
5690 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5691 } else {
5692 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ManagedDevicesResponse)
5693 MergeFrom(*source);
5694 }
5695}
5696
5697void ManagedDevicesResponse::MergeFrom(const ManagedDevicesResponse& from) {
5698// @@protoc_insertion_point(class_specific_merge_from_start:dmi.ManagedDevicesResponse)
5699 GOOGLE_DCHECK_NE(&from, this);
5700 _internal_metadata_.MergeFrom(from._internal_metadata_);
5701 ::google::protobuf::uint32 cached_has_bits = 0;
5702 (void) cached_has_bits;
5703
5704 devices_.MergeFrom(from.devices_);
5705 if (from.status() != 0) {
5706 set_status(from.status());
5707 }
5708 if (from.reason() != 0) {
5709 set_reason(from.reason());
5710 }
5711}
5712
5713void ManagedDevicesResponse::CopyFrom(const ::google::protobuf::Message& from) {
5714// @@protoc_insertion_point(generalized_copy_from_start:dmi.ManagedDevicesResponse)
5715 if (&from == this) return;
5716 Clear();
5717 MergeFrom(from);
5718}
5719
5720void ManagedDevicesResponse::CopyFrom(const ManagedDevicesResponse& from) {
5721// @@protoc_insertion_point(class_specific_copy_from_start:dmi.ManagedDevicesResponse)
5722 if (&from == this) return;
5723 Clear();
5724 MergeFrom(from);
5725}
5726
5727bool ManagedDevicesResponse::IsInitialized() const {
5728 return true;
5729}
5730
5731void ManagedDevicesResponse::Swap(ManagedDevicesResponse* other) {
5732 if (other == this) return;
5733 InternalSwap(other);
5734}
5735void ManagedDevicesResponse::InternalSwap(ManagedDevicesResponse* other) {
5736 using std::swap;
5737 _internal_metadata_.Swap(&other->_internal_metadata_);
5738 CastToBase(&devices_)->InternalSwap(CastToBase(&other->devices_));
5739 swap(status_, other->status_);
5740 swap(reason_, other->reason_);
5741}
5742
5743::google::protobuf::Metadata ManagedDevicesResponse::GetMetadata() const {
5744 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
5745 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
5746}
5747
5748
5749// ===================================================================
5750
5751void SetLoggingEndpointRequest::InitAsDefaultInstance() {
5752 ::dmi::_SetLoggingEndpointRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
5753 ::dmi::Uuid::internal_default_instance());
5754}
5755class SetLoggingEndpointRequest::HasBitSetters {
5756 public:
5757 static const ::dmi::Uuid& device_uuid(const SetLoggingEndpointRequest* msg);
5758};
5759
5760const ::dmi::Uuid&
5761SetLoggingEndpointRequest::HasBitSetters::device_uuid(const SetLoggingEndpointRequest* msg) {
5762 return *msg->device_uuid_;
5763}
5764void SetLoggingEndpointRequest::clear_device_uuid() {
5765 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
5766 delete device_uuid_;
5767 }
5768 device_uuid_ = nullptr;
5769}
5770#if !defined(_MSC_VER) || _MSC_VER >= 1900
5771const int SetLoggingEndpointRequest::kDeviceUuidFieldNumber;
5772const int SetLoggingEndpointRequest::kLoggingEndpointFieldNumber;
5773const int SetLoggingEndpointRequest::kLoggingProtocolFieldNumber;
5774#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
5775
5776SetLoggingEndpointRequest::SetLoggingEndpointRequest()
5777 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
5778 SharedCtor();
5779 // @@protoc_insertion_point(constructor:dmi.SetLoggingEndpointRequest)
5780}
5781SetLoggingEndpointRequest::SetLoggingEndpointRequest(const SetLoggingEndpointRequest& from)
5782 : ::google::protobuf::Message(),
5783 _internal_metadata_(nullptr) {
5784 _internal_metadata_.MergeFrom(from._internal_metadata_);
5785 logging_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5786 if (from.logging_endpoint().size() > 0) {
5787 logging_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_endpoint_);
5788 }
5789 logging_protocol_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5790 if (from.logging_protocol().size() > 0) {
5791 logging_protocol_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_protocol_);
5792 }
5793 if (from.has_device_uuid()) {
5794 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
5795 } else {
5796 device_uuid_ = nullptr;
5797 }
5798 // @@protoc_insertion_point(copy_constructor:dmi.SetLoggingEndpointRequest)
5799}
5800
5801void SetLoggingEndpointRequest::SharedCtor() {
5802 ::google::protobuf::internal::InitSCC(
5803 &scc_info_SetLoggingEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
5804 logging_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5805 logging_protocol_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5806 device_uuid_ = nullptr;
5807}
5808
5809SetLoggingEndpointRequest::~SetLoggingEndpointRequest() {
5810 // @@protoc_insertion_point(destructor:dmi.SetLoggingEndpointRequest)
5811 SharedDtor();
5812}
5813
5814void SetLoggingEndpointRequest::SharedDtor() {
5815 logging_endpoint_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5816 logging_protocol_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5817 if (this != internal_default_instance()) delete device_uuid_;
5818}
5819
5820void SetLoggingEndpointRequest::SetCachedSize(int size) const {
5821 _cached_size_.Set(size);
5822}
5823const SetLoggingEndpointRequest& SetLoggingEndpointRequest::default_instance() {
5824 ::google::protobuf::internal::InitSCC(&::scc_info_SetLoggingEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
5825 return *internal_default_instance();
5826}
5827
5828
5829void SetLoggingEndpointRequest::Clear() {
5830// @@protoc_insertion_point(message_clear_start:dmi.SetLoggingEndpointRequest)
5831 ::google::protobuf::uint32 cached_has_bits = 0;
5832 // Prevent compiler warnings about cached_has_bits being unused
5833 (void) cached_has_bits;
5834
5835 logging_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5836 logging_protocol_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5837 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
5838 delete device_uuid_;
5839 }
5840 device_uuid_ = nullptr;
5841 _internal_metadata_.Clear();
5842}
5843
5844#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5845const char* SetLoggingEndpointRequest::_InternalParse(const char* begin, const char* end, void* object,
5846 ::google::protobuf::internal::ParseContext* ctx) {
5847 auto msg = static_cast<SetLoggingEndpointRequest*>(object);
5848 ::google::protobuf::int32 size; (void)size;
5849 int depth; (void)depth;
5850 ::google::protobuf::uint32 tag;
5851 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
5852 auto ptr = begin;
5853 while (ptr < end) {
5854 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
5855 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5856 switch (tag >> 3) {
5857 // .dmi.Uuid device_uuid = 1;
5858 case 1: {
5859 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
5860 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
5861 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5862 parser_till_end = ::dmi::Uuid::_InternalParse;
5863 object = msg->mutable_device_uuid();
5864 if (size > end - ptr) goto len_delim_till_end;
5865 ptr += size;
5866 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
5867 {parser_till_end, object}, ptr - size, ptr));
5868 break;
5869 }
5870 // string logging_endpoint = 2;
5871 case 2: {
5872 if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
5873 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
5874 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5875 ctx->extra_parse_data().SetFieldName("dmi.SetLoggingEndpointRequest.logging_endpoint");
5876 object = msg->mutable_logging_endpoint();
5877 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
5878 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
5879 goto string_till_end;
5880 }
5881 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
5882 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
5883 ptr += size;
5884 break;
5885 }
5886 // string logging_protocol = 3;
5887 case 3: {
5888 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
5889 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
5890 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5891 ctx->extra_parse_data().SetFieldName("dmi.SetLoggingEndpointRequest.logging_protocol");
5892 object = msg->mutable_logging_protocol();
5893 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
5894 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
5895 goto string_till_end;
5896 }
5897 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
5898 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
5899 ptr += size;
5900 break;
5901 }
5902 default: {
5903 handle_unusual:
5904 if ((tag & 7) == 4 || tag == 0) {
5905 ctx->EndGroup(tag);
5906 return ptr;
5907 }
5908 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
5909 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
5910 ptr = res.first;
5911 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
5912 if (res.second) return ptr;
5913 }
5914 } // switch
5915 } // while
5916 return ptr;
5917string_till_end:
5918 static_cast<::std::string*>(object)->clear();
5919 static_cast<::std::string*>(object)->reserve(size);
5920 goto len_delim_till_end;
5921len_delim_till_end:
5922 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
5923 {parser_till_end, object}, size);
5924}
5925#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5926bool SetLoggingEndpointRequest::MergePartialFromCodedStream(
5927 ::google::protobuf::io::CodedInputStream* input) {
5928#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
5929 ::google::protobuf::uint32 tag;
5930 // @@protoc_insertion_point(parse_start:dmi.SetLoggingEndpointRequest)
5931 for (;;) {
5932 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5933 tag = p.first;
5934 if (!p.second) goto handle_unusual;
5935 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5936 // .dmi.Uuid device_uuid = 1;
5937 case 1: {
5938 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
5939 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5940 input, mutable_device_uuid()));
5941 } else {
5942 goto handle_unusual;
5943 }
5944 break;
5945 }
5946
5947 // string logging_endpoint = 2;
5948 case 2: {
5949 if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
5950 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5951 input, this->mutable_logging_endpoint()));
5952 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
5953 this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()),
5954 ::google::protobuf::internal::WireFormatLite::PARSE,
5955 "dmi.SetLoggingEndpointRequest.logging_endpoint"));
5956 } else {
5957 goto handle_unusual;
5958 }
5959 break;
5960 }
5961
5962 // string logging_protocol = 3;
5963 case 3: {
5964 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
5965 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5966 input, this->mutable_logging_protocol()));
5967 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
5968 this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()),
5969 ::google::protobuf::internal::WireFormatLite::PARSE,
5970 "dmi.SetLoggingEndpointRequest.logging_protocol"));
5971 } else {
5972 goto handle_unusual;
5973 }
5974 break;
5975 }
5976
5977 default: {
5978 handle_unusual:
5979 if (tag == 0) {
5980 goto success;
5981 }
5982 DO_(::google::protobuf::internal::WireFormat::SkipField(
5983 input, tag, _internal_metadata_.mutable_unknown_fields()));
5984 break;
5985 }
5986 }
5987 }
5988success:
5989 // @@protoc_insertion_point(parse_success:dmi.SetLoggingEndpointRequest)
5990 return true;
5991failure:
5992 // @@protoc_insertion_point(parse_failure:dmi.SetLoggingEndpointRequest)
5993 return false;
5994#undef DO_
5995}
5996#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5997
5998void SetLoggingEndpointRequest::SerializeWithCachedSizes(
5999 ::google::protobuf::io::CodedOutputStream* output) const {
6000 // @@protoc_insertion_point(serialize_start:dmi.SetLoggingEndpointRequest)
6001 ::google::protobuf::uint32 cached_has_bits = 0;
6002 (void) cached_has_bits;
6003
6004 // .dmi.Uuid device_uuid = 1;
6005 if (this->has_device_uuid()) {
6006 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6007 1, HasBitSetters::device_uuid(this), output);
6008 }
6009
6010 // string logging_endpoint = 2;
6011 if (this->logging_endpoint().size() > 0) {
6012 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6013 this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()),
6014 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6015 "dmi.SetLoggingEndpointRequest.logging_endpoint");
6016 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6017 2, this->logging_endpoint(), output);
6018 }
6019
6020 // string logging_protocol = 3;
6021 if (this->logging_protocol().size() > 0) {
6022 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6023 this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()),
6024 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6025 "dmi.SetLoggingEndpointRequest.logging_protocol");
6026 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6027 3, this->logging_protocol(), output);
6028 }
6029
6030 if (_internal_metadata_.have_unknown_fields()) {
6031 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6032 _internal_metadata_.unknown_fields(), output);
6033 }
6034 // @@protoc_insertion_point(serialize_end:dmi.SetLoggingEndpointRequest)
6035}
6036
6037::google::protobuf::uint8* SetLoggingEndpointRequest::InternalSerializeWithCachedSizesToArray(
6038 ::google::protobuf::uint8* target) const {
6039 // @@protoc_insertion_point(serialize_to_array_start:dmi.SetLoggingEndpointRequest)
6040 ::google::protobuf::uint32 cached_has_bits = 0;
6041 (void) cached_has_bits;
6042
6043 // .dmi.Uuid device_uuid = 1;
6044 if (this->has_device_uuid()) {
6045 target = ::google::protobuf::internal::WireFormatLite::
6046 InternalWriteMessageToArray(
6047 1, HasBitSetters::device_uuid(this), target);
6048 }
6049
6050 // string logging_endpoint = 2;
6051 if (this->logging_endpoint().size() > 0) {
6052 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6053 this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()),
6054 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6055 "dmi.SetLoggingEndpointRequest.logging_endpoint");
6056 target =
6057 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6058 2, this->logging_endpoint(), target);
6059 }
6060
6061 // string logging_protocol = 3;
6062 if (this->logging_protocol().size() > 0) {
6063 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6064 this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()),
6065 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6066 "dmi.SetLoggingEndpointRequest.logging_protocol");
6067 target =
6068 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6069 3, this->logging_protocol(), target);
6070 }
6071
6072 if (_internal_metadata_.have_unknown_fields()) {
6073 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6074 _internal_metadata_.unknown_fields(), target);
6075 }
6076 // @@protoc_insertion_point(serialize_to_array_end:dmi.SetLoggingEndpointRequest)
6077 return target;
6078}
6079
6080size_t SetLoggingEndpointRequest::ByteSizeLong() const {
6081// @@protoc_insertion_point(message_byte_size_start:dmi.SetLoggingEndpointRequest)
6082 size_t total_size = 0;
6083
6084 if (_internal_metadata_.have_unknown_fields()) {
6085 total_size +=
6086 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6087 _internal_metadata_.unknown_fields());
6088 }
6089 ::google::protobuf::uint32 cached_has_bits = 0;
6090 // Prevent compiler warnings about cached_has_bits being unused
6091 (void) cached_has_bits;
6092
6093 // string logging_endpoint = 2;
6094 if (this->logging_endpoint().size() > 0) {
6095 total_size += 1 +
6096 ::google::protobuf::internal::WireFormatLite::StringSize(
6097 this->logging_endpoint());
6098 }
6099
6100 // string logging_protocol = 3;
6101 if (this->logging_protocol().size() > 0) {
6102 total_size += 1 +
6103 ::google::protobuf::internal::WireFormatLite::StringSize(
6104 this->logging_protocol());
6105 }
6106
6107 // .dmi.Uuid device_uuid = 1;
6108 if (this->has_device_uuid()) {
6109 total_size += 1 +
6110 ::google::protobuf::internal::WireFormatLite::MessageSize(
6111 *device_uuid_);
6112 }
6113
6114 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
6115 SetCachedSize(cached_size);
6116 return total_size;
6117}
6118
6119void SetLoggingEndpointRequest::MergeFrom(const ::google::protobuf::Message& from) {
6120// @@protoc_insertion_point(generalized_merge_from_start:dmi.SetLoggingEndpointRequest)
6121 GOOGLE_DCHECK_NE(&from, this);
6122 const SetLoggingEndpointRequest* source =
6123 ::google::protobuf::DynamicCastToGenerated<SetLoggingEndpointRequest>(
6124 &from);
6125 if (source == nullptr) {
6126 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.SetLoggingEndpointRequest)
6127 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6128 } else {
6129 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.SetLoggingEndpointRequest)
6130 MergeFrom(*source);
6131 }
6132}
6133
6134void SetLoggingEndpointRequest::MergeFrom(const SetLoggingEndpointRequest& from) {
6135// @@protoc_insertion_point(class_specific_merge_from_start:dmi.SetLoggingEndpointRequest)
6136 GOOGLE_DCHECK_NE(&from, this);
6137 _internal_metadata_.MergeFrom(from._internal_metadata_);
6138 ::google::protobuf::uint32 cached_has_bits = 0;
6139 (void) cached_has_bits;
6140
6141 if (from.logging_endpoint().size() > 0) {
6142
6143 logging_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_endpoint_);
6144 }
6145 if (from.logging_protocol().size() > 0) {
6146
6147 logging_protocol_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_protocol_);
6148 }
6149 if (from.has_device_uuid()) {
6150 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
6151 }
6152}
6153
6154void SetLoggingEndpointRequest::CopyFrom(const ::google::protobuf::Message& from) {
6155// @@protoc_insertion_point(generalized_copy_from_start:dmi.SetLoggingEndpointRequest)
6156 if (&from == this) return;
6157 Clear();
6158 MergeFrom(from);
6159}
6160
6161void SetLoggingEndpointRequest::CopyFrom(const SetLoggingEndpointRequest& from) {
6162// @@protoc_insertion_point(class_specific_copy_from_start:dmi.SetLoggingEndpointRequest)
6163 if (&from == this) return;
6164 Clear();
6165 MergeFrom(from);
6166}
6167
6168bool SetLoggingEndpointRequest::IsInitialized() const {
6169 return true;
6170}
6171
6172void SetLoggingEndpointRequest::Swap(SetLoggingEndpointRequest* other) {
6173 if (other == this) return;
6174 InternalSwap(other);
6175}
6176void SetLoggingEndpointRequest::InternalSwap(SetLoggingEndpointRequest* other) {
6177 using std::swap;
6178 _internal_metadata_.Swap(&other->_internal_metadata_);
6179 logging_endpoint_.Swap(&other->logging_endpoint_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6180 GetArenaNoVirtual());
6181 logging_protocol_.Swap(&other->logging_protocol_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6182 GetArenaNoVirtual());
6183 swap(device_uuid_, other->device_uuid_);
6184}
6185
6186::google::protobuf::Metadata SetLoggingEndpointRequest::GetMetadata() const {
6187 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
6188 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
6189}
6190
6191
6192// ===================================================================
6193
6194void SetRemoteEndpointResponse::InitAsDefaultInstance() {
6195}
6196class SetRemoteEndpointResponse::HasBitSetters {
6197 public:
6198};
6199
6200#if !defined(_MSC_VER) || _MSC_VER >= 1900
6201const int SetRemoteEndpointResponse::kStatusFieldNumber;
6202const int SetRemoteEndpointResponse::kReasonFieldNumber;
6203const int SetRemoteEndpointResponse::kReasonDetailFieldNumber;
6204#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
6205
6206SetRemoteEndpointResponse::SetRemoteEndpointResponse()
6207 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
6208 SharedCtor();
6209 // @@protoc_insertion_point(constructor:dmi.SetRemoteEndpointResponse)
6210}
6211SetRemoteEndpointResponse::SetRemoteEndpointResponse(const SetRemoteEndpointResponse& from)
6212 : ::google::protobuf::Message(),
6213 _internal_metadata_(nullptr) {
6214 _internal_metadata_.MergeFrom(from._internal_metadata_);
6215 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6216 if (from.reason_detail().size() > 0) {
6217 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
6218 }
6219 ::memcpy(&status_, &from.status_,
6220 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
6221 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
6222 // @@protoc_insertion_point(copy_constructor:dmi.SetRemoteEndpointResponse)
6223}
6224
6225void SetRemoteEndpointResponse::SharedCtor() {
6226 ::google::protobuf::internal::InitSCC(
6227 &scc_info_SetRemoteEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
6228 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6229 ::memset(&status_, 0, static_cast<size_t>(
6230 reinterpret_cast<char*>(&reason_) -
6231 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
6232}
6233
6234SetRemoteEndpointResponse::~SetRemoteEndpointResponse() {
6235 // @@protoc_insertion_point(destructor:dmi.SetRemoteEndpointResponse)
6236 SharedDtor();
6237}
6238
6239void SetRemoteEndpointResponse::SharedDtor() {
6240 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6241}
6242
6243void SetRemoteEndpointResponse::SetCachedSize(int size) const {
6244 _cached_size_.Set(size);
6245}
6246const SetRemoteEndpointResponse& SetRemoteEndpointResponse::default_instance() {
6247 ::google::protobuf::internal::InitSCC(&::scc_info_SetRemoteEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
6248 return *internal_default_instance();
6249}
6250
6251
6252void SetRemoteEndpointResponse::Clear() {
6253// @@protoc_insertion_point(message_clear_start:dmi.SetRemoteEndpointResponse)
6254 ::google::protobuf::uint32 cached_has_bits = 0;
6255 // Prevent compiler warnings about cached_has_bits being unused
6256 (void) cached_has_bits;
6257
6258 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6259 ::memset(&status_, 0, static_cast<size_t>(
6260 reinterpret_cast<char*>(&reason_) -
6261 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
6262 _internal_metadata_.Clear();
6263}
6264
6265#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6266const char* SetRemoteEndpointResponse::_InternalParse(const char* begin, const char* end, void* object,
6267 ::google::protobuf::internal::ParseContext* ctx) {
6268 auto msg = static_cast<SetRemoteEndpointResponse*>(object);
6269 ::google::protobuf::int32 size; (void)size;
6270 int depth; (void)depth;
6271 ::google::protobuf::uint32 tag;
6272 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
6273 auto ptr = begin;
6274 while (ptr < end) {
6275 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
6276 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6277 switch (tag >> 3) {
6278 // .dmi.Status status = 1;
6279 case 1: {
6280 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
6281 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
6282 msg->set_status(static_cast<::dmi::Status>(val));
6283 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6284 break;
6285 }
6286 // .dmi.SetRemoteEndpointResponse.Reason reason = 2;
6287 case 2: {
6288 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
6289 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
6290 msg->set_reason(static_cast<::dmi::SetRemoteEndpointResponse_Reason>(val));
6291 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6292 break;
6293 }
6294 // string reason_detail = 3;
6295 case 3: {
6296 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
6297 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
6298 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6299 ctx->extra_parse_data().SetFieldName("dmi.SetRemoteEndpointResponse.reason_detail");
6300 object = msg->mutable_reason_detail();
6301 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
6302 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
6303 goto string_till_end;
6304 }
6305 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
6306 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
6307 ptr += size;
6308 break;
6309 }
6310 default: {
6311 handle_unusual:
6312 if ((tag & 7) == 4 || tag == 0) {
6313 ctx->EndGroup(tag);
6314 return ptr;
6315 }
6316 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
6317 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
6318 ptr = res.first;
6319 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
6320 if (res.second) return ptr;
6321 }
6322 } // switch
6323 } // while
6324 return ptr;
6325string_till_end:
6326 static_cast<::std::string*>(object)->clear();
6327 static_cast<::std::string*>(object)->reserve(size);
6328 goto len_delim_till_end;
6329len_delim_till_end:
6330 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
6331 {parser_till_end, object}, size);
6332}
6333#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6334bool SetRemoteEndpointResponse::MergePartialFromCodedStream(
6335 ::google::protobuf::io::CodedInputStream* input) {
6336#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
6337 ::google::protobuf::uint32 tag;
6338 // @@protoc_insertion_point(parse_start:dmi.SetRemoteEndpointResponse)
6339 for (;;) {
6340 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6341 tag = p.first;
6342 if (!p.second) goto handle_unusual;
6343 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6344 // .dmi.Status status = 1;
6345 case 1: {
6346 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
6347 int value = 0;
6348 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6349 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
6350 input, &value)));
6351 set_status(static_cast< ::dmi::Status >(value));
6352 } else {
6353 goto handle_unusual;
6354 }
6355 break;
6356 }
6357
6358 // .dmi.SetRemoteEndpointResponse.Reason reason = 2;
6359 case 2: {
6360 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
6361 int value = 0;
6362 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6363 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
6364 input, &value)));
6365 set_reason(static_cast< ::dmi::SetRemoteEndpointResponse_Reason >(value));
6366 } else {
6367 goto handle_unusual;
6368 }
6369 break;
6370 }
6371
6372 // string reason_detail = 3;
6373 case 3: {
6374 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
6375 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6376 input, this->mutable_reason_detail()));
6377 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6378 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
6379 ::google::protobuf::internal::WireFormatLite::PARSE,
6380 "dmi.SetRemoteEndpointResponse.reason_detail"));
6381 } else {
6382 goto handle_unusual;
6383 }
6384 break;
6385 }
6386
6387 default: {
6388 handle_unusual:
6389 if (tag == 0) {
6390 goto success;
6391 }
6392 DO_(::google::protobuf::internal::WireFormat::SkipField(
6393 input, tag, _internal_metadata_.mutable_unknown_fields()));
6394 break;
6395 }
6396 }
6397 }
6398success:
6399 // @@protoc_insertion_point(parse_success:dmi.SetRemoteEndpointResponse)
6400 return true;
6401failure:
6402 // @@protoc_insertion_point(parse_failure:dmi.SetRemoteEndpointResponse)
6403 return false;
6404#undef DO_
6405}
6406#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6407
6408void SetRemoteEndpointResponse::SerializeWithCachedSizes(
6409 ::google::protobuf::io::CodedOutputStream* output) const {
6410 // @@protoc_insertion_point(serialize_start:dmi.SetRemoteEndpointResponse)
6411 ::google::protobuf::uint32 cached_has_bits = 0;
6412 (void) cached_has_bits;
6413
6414 // .dmi.Status status = 1;
6415 if (this->status() != 0) {
6416 ::google::protobuf::internal::WireFormatLite::WriteEnum(
6417 1, this->status(), output);
6418 }
6419
6420 // .dmi.SetRemoteEndpointResponse.Reason reason = 2;
6421 if (this->reason() != 0) {
6422 ::google::protobuf::internal::WireFormatLite::WriteEnum(
6423 2, this->reason(), output);
6424 }
6425
6426 // string reason_detail = 3;
6427 if (this->reason_detail().size() > 0) {
6428 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6429 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
6430 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6431 "dmi.SetRemoteEndpointResponse.reason_detail");
6432 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6433 3, this->reason_detail(), output);
6434 }
6435
6436 if (_internal_metadata_.have_unknown_fields()) {
6437 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6438 _internal_metadata_.unknown_fields(), output);
6439 }
6440 // @@protoc_insertion_point(serialize_end:dmi.SetRemoteEndpointResponse)
6441}
6442
6443::google::protobuf::uint8* SetRemoteEndpointResponse::InternalSerializeWithCachedSizesToArray(
6444 ::google::protobuf::uint8* target) const {
6445 // @@protoc_insertion_point(serialize_to_array_start:dmi.SetRemoteEndpointResponse)
6446 ::google::protobuf::uint32 cached_has_bits = 0;
6447 (void) cached_has_bits;
6448
6449 // .dmi.Status status = 1;
6450 if (this->status() != 0) {
6451 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
6452 1, this->status(), target);
6453 }
6454
6455 // .dmi.SetRemoteEndpointResponse.Reason reason = 2;
6456 if (this->reason() != 0) {
6457 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
6458 2, this->reason(), target);
6459 }
6460
6461 // string reason_detail = 3;
6462 if (this->reason_detail().size() > 0) {
6463 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6464 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
6465 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6466 "dmi.SetRemoteEndpointResponse.reason_detail");
6467 target =
6468 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6469 3, this->reason_detail(), target);
6470 }
6471
6472 if (_internal_metadata_.have_unknown_fields()) {
6473 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6474 _internal_metadata_.unknown_fields(), target);
6475 }
6476 // @@protoc_insertion_point(serialize_to_array_end:dmi.SetRemoteEndpointResponse)
6477 return target;
6478}
6479
6480size_t SetRemoteEndpointResponse::ByteSizeLong() const {
6481// @@protoc_insertion_point(message_byte_size_start:dmi.SetRemoteEndpointResponse)
6482 size_t total_size = 0;
6483
6484 if (_internal_metadata_.have_unknown_fields()) {
6485 total_size +=
6486 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6487 _internal_metadata_.unknown_fields());
6488 }
6489 ::google::protobuf::uint32 cached_has_bits = 0;
6490 // Prevent compiler warnings about cached_has_bits being unused
6491 (void) cached_has_bits;
6492
6493 // string reason_detail = 3;
6494 if (this->reason_detail().size() > 0) {
6495 total_size += 1 +
6496 ::google::protobuf::internal::WireFormatLite::StringSize(
6497 this->reason_detail());
6498 }
6499
6500 // .dmi.Status status = 1;
6501 if (this->status() != 0) {
6502 total_size += 1 +
6503 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
6504 }
6505
6506 // .dmi.SetRemoteEndpointResponse.Reason reason = 2;
6507 if (this->reason() != 0) {
6508 total_size += 1 +
6509 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
6510 }
6511
6512 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
6513 SetCachedSize(cached_size);
6514 return total_size;
6515}
6516
6517void SetRemoteEndpointResponse::MergeFrom(const ::google::protobuf::Message& from) {
6518// @@protoc_insertion_point(generalized_merge_from_start:dmi.SetRemoteEndpointResponse)
6519 GOOGLE_DCHECK_NE(&from, this);
6520 const SetRemoteEndpointResponse* source =
6521 ::google::protobuf::DynamicCastToGenerated<SetRemoteEndpointResponse>(
6522 &from);
6523 if (source == nullptr) {
6524 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.SetRemoteEndpointResponse)
6525 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6526 } else {
6527 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.SetRemoteEndpointResponse)
6528 MergeFrom(*source);
6529 }
6530}
6531
6532void SetRemoteEndpointResponse::MergeFrom(const SetRemoteEndpointResponse& from) {
6533// @@protoc_insertion_point(class_specific_merge_from_start:dmi.SetRemoteEndpointResponse)
6534 GOOGLE_DCHECK_NE(&from, this);
6535 _internal_metadata_.MergeFrom(from._internal_metadata_);
6536 ::google::protobuf::uint32 cached_has_bits = 0;
6537 (void) cached_has_bits;
6538
6539 if (from.reason_detail().size() > 0) {
6540
6541 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
6542 }
6543 if (from.status() != 0) {
6544 set_status(from.status());
6545 }
6546 if (from.reason() != 0) {
6547 set_reason(from.reason());
6548 }
6549}
6550
6551void SetRemoteEndpointResponse::CopyFrom(const ::google::protobuf::Message& from) {
6552// @@protoc_insertion_point(generalized_copy_from_start:dmi.SetRemoteEndpointResponse)
6553 if (&from == this) return;
6554 Clear();
6555 MergeFrom(from);
6556}
6557
6558void SetRemoteEndpointResponse::CopyFrom(const SetRemoteEndpointResponse& from) {
6559// @@protoc_insertion_point(class_specific_copy_from_start:dmi.SetRemoteEndpointResponse)
6560 if (&from == this) return;
6561 Clear();
6562 MergeFrom(from);
6563}
6564
6565bool SetRemoteEndpointResponse::IsInitialized() const {
6566 return true;
6567}
6568
6569void SetRemoteEndpointResponse::Swap(SetRemoteEndpointResponse* other) {
6570 if (other == this) return;
6571 InternalSwap(other);
6572}
6573void SetRemoteEndpointResponse::InternalSwap(SetRemoteEndpointResponse* other) {
6574 using std::swap;
6575 _internal_metadata_.Swap(&other->_internal_metadata_);
6576 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6577 GetArenaNoVirtual());
6578 swap(status_, other->status_);
6579 swap(reason_, other->reason_);
6580}
6581
6582::google::protobuf::Metadata SetRemoteEndpointResponse::GetMetadata() const {
6583 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
6584 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
6585}
6586
6587
6588// ===================================================================
6589
6590void GetLoggingEndpointResponse::InitAsDefaultInstance() {
6591}
6592class GetLoggingEndpointResponse::HasBitSetters {
6593 public:
6594};
6595
6596#if !defined(_MSC_VER) || _MSC_VER >= 1900
6597const int GetLoggingEndpointResponse::kStatusFieldNumber;
6598const int GetLoggingEndpointResponse::kReasonFieldNumber;
6599const int GetLoggingEndpointResponse::kLoggingEndpointFieldNumber;
6600const int GetLoggingEndpointResponse::kLoggingProtocolFieldNumber;
6601const int GetLoggingEndpointResponse::kReasonDetailFieldNumber;
6602#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
6603
6604GetLoggingEndpointResponse::GetLoggingEndpointResponse()
6605 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
6606 SharedCtor();
6607 // @@protoc_insertion_point(constructor:dmi.GetLoggingEndpointResponse)
6608}
6609GetLoggingEndpointResponse::GetLoggingEndpointResponse(const GetLoggingEndpointResponse& from)
6610 : ::google::protobuf::Message(),
6611 _internal_metadata_(nullptr) {
6612 _internal_metadata_.MergeFrom(from._internal_metadata_);
6613 logging_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6614 if (from.logging_endpoint().size() > 0) {
6615 logging_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_endpoint_);
6616 }
6617 logging_protocol_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6618 if (from.logging_protocol().size() > 0) {
6619 logging_protocol_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_protocol_);
6620 }
6621 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6622 if (from.reason_detail().size() > 0) {
6623 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
6624 }
6625 ::memcpy(&status_, &from.status_,
6626 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
6627 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
6628 // @@protoc_insertion_point(copy_constructor:dmi.GetLoggingEndpointResponse)
6629}
6630
6631void GetLoggingEndpointResponse::SharedCtor() {
6632 ::google::protobuf::internal::InitSCC(
6633 &scc_info_GetLoggingEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
6634 logging_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6635 logging_protocol_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6636 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6637 ::memset(&status_, 0, static_cast<size_t>(
6638 reinterpret_cast<char*>(&reason_) -
6639 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
6640}
6641
6642GetLoggingEndpointResponse::~GetLoggingEndpointResponse() {
6643 // @@protoc_insertion_point(destructor:dmi.GetLoggingEndpointResponse)
6644 SharedDtor();
6645}
6646
6647void GetLoggingEndpointResponse::SharedDtor() {
6648 logging_endpoint_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6649 logging_protocol_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6650 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6651}
6652
6653void GetLoggingEndpointResponse::SetCachedSize(int size) const {
6654 _cached_size_.Set(size);
6655}
6656const GetLoggingEndpointResponse& GetLoggingEndpointResponse::default_instance() {
6657 ::google::protobuf::internal::InitSCC(&::scc_info_GetLoggingEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
6658 return *internal_default_instance();
6659}
6660
6661
6662void GetLoggingEndpointResponse::Clear() {
6663// @@protoc_insertion_point(message_clear_start:dmi.GetLoggingEndpointResponse)
6664 ::google::protobuf::uint32 cached_has_bits = 0;
6665 // Prevent compiler warnings about cached_has_bits being unused
6666 (void) cached_has_bits;
6667
6668 logging_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6669 logging_protocol_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6670 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6671 ::memset(&status_, 0, static_cast<size_t>(
6672 reinterpret_cast<char*>(&reason_) -
6673 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
6674 _internal_metadata_.Clear();
6675}
6676
6677#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6678const char* GetLoggingEndpointResponse::_InternalParse(const char* begin, const char* end, void* object,
6679 ::google::protobuf::internal::ParseContext* ctx) {
6680 auto msg = static_cast<GetLoggingEndpointResponse*>(object);
6681 ::google::protobuf::int32 size; (void)size;
6682 int depth; (void)depth;
6683 ::google::protobuf::uint32 tag;
6684 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
6685 auto ptr = begin;
6686 while (ptr < end) {
6687 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
6688 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6689 switch (tag >> 3) {
6690 // .dmi.Status status = 1;
6691 case 1: {
6692 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
6693 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
6694 msg->set_status(static_cast<::dmi::Status>(val));
6695 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6696 break;
6697 }
6698 // .dmi.GetLoggingEndpointResponse.Reason reason = 2;
6699 case 2: {
6700 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
6701 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
6702 msg->set_reason(static_cast<::dmi::GetLoggingEndpointResponse_Reason>(val));
6703 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6704 break;
6705 }
6706 // string logging_endpoint = 3;
6707 case 3: {
6708 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
6709 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
6710 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6711 ctx->extra_parse_data().SetFieldName("dmi.GetLoggingEndpointResponse.logging_endpoint");
6712 object = msg->mutable_logging_endpoint();
6713 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
6714 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
6715 goto string_till_end;
6716 }
6717 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
6718 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
6719 ptr += size;
6720 break;
6721 }
6722 // string logging_protocol = 4;
6723 case 4: {
6724 if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual;
6725 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
6726 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6727 ctx->extra_parse_data().SetFieldName("dmi.GetLoggingEndpointResponse.logging_protocol");
6728 object = msg->mutable_logging_protocol();
6729 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
6730 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
6731 goto string_till_end;
6732 }
6733 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
6734 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
6735 ptr += size;
6736 break;
6737 }
6738 // string reason_detail = 5;
6739 case 5: {
6740 if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual;
6741 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
6742 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6743 ctx->extra_parse_data().SetFieldName("dmi.GetLoggingEndpointResponse.reason_detail");
6744 object = msg->mutable_reason_detail();
6745 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
6746 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
6747 goto string_till_end;
6748 }
6749 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
6750 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
6751 ptr += size;
6752 break;
6753 }
6754 default: {
6755 handle_unusual:
6756 if ((tag & 7) == 4 || tag == 0) {
6757 ctx->EndGroup(tag);
6758 return ptr;
6759 }
6760 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
6761 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
6762 ptr = res.first;
6763 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
6764 if (res.second) return ptr;
6765 }
6766 } // switch
6767 } // while
6768 return ptr;
6769string_till_end:
6770 static_cast<::std::string*>(object)->clear();
6771 static_cast<::std::string*>(object)->reserve(size);
6772 goto len_delim_till_end;
6773len_delim_till_end:
6774 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
6775 {parser_till_end, object}, size);
6776}
6777#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6778bool GetLoggingEndpointResponse::MergePartialFromCodedStream(
6779 ::google::protobuf::io::CodedInputStream* input) {
6780#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
6781 ::google::protobuf::uint32 tag;
6782 // @@protoc_insertion_point(parse_start:dmi.GetLoggingEndpointResponse)
6783 for (;;) {
6784 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6785 tag = p.first;
6786 if (!p.second) goto handle_unusual;
6787 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6788 // .dmi.Status status = 1;
6789 case 1: {
6790 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
6791 int value = 0;
6792 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6793 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
6794 input, &value)));
6795 set_status(static_cast< ::dmi::Status >(value));
6796 } else {
6797 goto handle_unusual;
6798 }
6799 break;
6800 }
6801
6802 // .dmi.GetLoggingEndpointResponse.Reason reason = 2;
6803 case 2: {
6804 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
6805 int value = 0;
6806 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6807 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
6808 input, &value)));
6809 set_reason(static_cast< ::dmi::GetLoggingEndpointResponse_Reason >(value));
6810 } else {
6811 goto handle_unusual;
6812 }
6813 break;
6814 }
6815
6816 // string logging_endpoint = 3;
6817 case 3: {
6818 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
6819 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6820 input, this->mutable_logging_endpoint()));
6821 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6822 this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()),
6823 ::google::protobuf::internal::WireFormatLite::PARSE,
6824 "dmi.GetLoggingEndpointResponse.logging_endpoint"));
6825 } else {
6826 goto handle_unusual;
6827 }
6828 break;
6829 }
6830
6831 // string logging_protocol = 4;
6832 case 4: {
6833 if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
6834 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6835 input, this->mutable_logging_protocol()));
6836 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6837 this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()),
6838 ::google::protobuf::internal::WireFormatLite::PARSE,
6839 "dmi.GetLoggingEndpointResponse.logging_protocol"));
6840 } else {
6841 goto handle_unusual;
6842 }
6843 break;
6844 }
6845
6846 // string reason_detail = 5;
6847 case 5: {
6848 if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) {
6849 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6850 input, this->mutable_reason_detail()));
6851 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6852 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
6853 ::google::protobuf::internal::WireFormatLite::PARSE,
6854 "dmi.GetLoggingEndpointResponse.reason_detail"));
6855 } else {
6856 goto handle_unusual;
6857 }
6858 break;
6859 }
6860
6861 default: {
6862 handle_unusual:
6863 if (tag == 0) {
6864 goto success;
6865 }
6866 DO_(::google::protobuf::internal::WireFormat::SkipField(
6867 input, tag, _internal_metadata_.mutable_unknown_fields()));
6868 break;
6869 }
6870 }
6871 }
6872success:
6873 // @@protoc_insertion_point(parse_success:dmi.GetLoggingEndpointResponse)
6874 return true;
6875failure:
6876 // @@protoc_insertion_point(parse_failure:dmi.GetLoggingEndpointResponse)
6877 return false;
6878#undef DO_
6879}
6880#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6881
6882void GetLoggingEndpointResponse::SerializeWithCachedSizes(
6883 ::google::protobuf::io::CodedOutputStream* output) const {
6884 // @@protoc_insertion_point(serialize_start:dmi.GetLoggingEndpointResponse)
6885 ::google::protobuf::uint32 cached_has_bits = 0;
6886 (void) cached_has_bits;
6887
6888 // .dmi.Status status = 1;
6889 if (this->status() != 0) {
6890 ::google::protobuf::internal::WireFormatLite::WriteEnum(
6891 1, this->status(), output);
6892 }
6893
6894 // .dmi.GetLoggingEndpointResponse.Reason reason = 2;
6895 if (this->reason() != 0) {
6896 ::google::protobuf::internal::WireFormatLite::WriteEnum(
6897 2, this->reason(), output);
6898 }
6899
6900 // string logging_endpoint = 3;
6901 if (this->logging_endpoint().size() > 0) {
6902 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6903 this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()),
6904 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6905 "dmi.GetLoggingEndpointResponse.logging_endpoint");
6906 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6907 3, this->logging_endpoint(), output);
6908 }
6909
6910 // string logging_protocol = 4;
6911 if (this->logging_protocol().size() > 0) {
6912 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6913 this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()),
6914 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6915 "dmi.GetLoggingEndpointResponse.logging_protocol");
6916 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6917 4, this->logging_protocol(), output);
6918 }
6919
6920 // string reason_detail = 5;
6921 if (this->reason_detail().size() > 0) {
6922 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6923 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
6924 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6925 "dmi.GetLoggingEndpointResponse.reason_detail");
6926 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6927 5, this->reason_detail(), output);
6928 }
6929
6930 if (_internal_metadata_.have_unknown_fields()) {
6931 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6932 _internal_metadata_.unknown_fields(), output);
6933 }
6934 // @@protoc_insertion_point(serialize_end:dmi.GetLoggingEndpointResponse)
6935}
6936
6937::google::protobuf::uint8* GetLoggingEndpointResponse::InternalSerializeWithCachedSizesToArray(
6938 ::google::protobuf::uint8* target) const {
6939 // @@protoc_insertion_point(serialize_to_array_start:dmi.GetLoggingEndpointResponse)
6940 ::google::protobuf::uint32 cached_has_bits = 0;
6941 (void) cached_has_bits;
6942
6943 // .dmi.Status status = 1;
6944 if (this->status() != 0) {
6945 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
6946 1, this->status(), target);
6947 }
6948
6949 // .dmi.GetLoggingEndpointResponse.Reason reason = 2;
6950 if (this->reason() != 0) {
6951 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
6952 2, this->reason(), target);
6953 }
6954
6955 // string logging_endpoint = 3;
6956 if (this->logging_endpoint().size() > 0) {
6957 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6958 this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()),
6959 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6960 "dmi.GetLoggingEndpointResponse.logging_endpoint");
6961 target =
6962 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6963 3, this->logging_endpoint(), target);
6964 }
6965
6966 // string logging_protocol = 4;
6967 if (this->logging_protocol().size() > 0) {
6968 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6969 this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()),
6970 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6971 "dmi.GetLoggingEndpointResponse.logging_protocol");
6972 target =
6973 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6974 4, this->logging_protocol(), target);
6975 }
6976
6977 // string reason_detail = 5;
6978 if (this->reason_detail().size() > 0) {
6979 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6980 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
6981 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6982 "dmi.GetLoggingEndpointResponse.reason_detail");
6983 target =
6984 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6985 5, this->reason_detail(), target);
6986 }
6987
6988 if (_internal_metadata_.have_unknown_fields()) {
6989 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6990 _internal_metadata_.unknown_fields(), target);
6991 }
6992 // @@protoc_insertion_point(serialize_to_array_end:dmi.GetLoggingEndpointResponse)
6993 return target;
6994}
6995
6996size_t GetLoggingEndpointResponse::ByteSizeLong() const {
6997// @@protoc_insertion_point(message_byte_size_start:dmi.GetLoggingEndpointResponse)
6998 size_t total_size = 0;
6999
7000 if (_internal_metadata_.have_unknown_fields()) {
7001 total_size +=
7002 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7003 _internal_metadata_.unknown_fields());
7004 }
7005 ::google::protobuf::uint32 cached_has_bits = 0;
7006 // Prevent compiler warnings about cached_has_bits being unused
7007 (void) cached_has_bits;
7008
7009 // string logging_endpoint = 3;
7010 if (this->logging_endpoint().size() > 0) {
7011 total_size += 1 +
7012 ::google::protobuf::internal::WireFormatLite::StringSize(
7013 this->logging_endpoint());
7014 }
7015
7016 // string logging_protocol = 4;
7017 if (this->logging_protocol().size() > 0) {
7018 total_size += 1 +
7019 ::google::protobuf::internal::WireFormatLite::StringSize(
7020 this->logging_protocol());
7021 }
7022
7023 // string reason_detail = 5;
7024 if (this->reason_detail().size() > 0) {
7025 total_size += 1 +
7026 ::google::protobuf::internal::WireFormatLite::StringSize(
7027 this->reason_detail());
7028 }
7029
7030 // .dmi.Status status = 1;
7031 if (this->status() != 0) {
7032 total_size += 1 +
7033 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
7034 }
7035
7036 // .dmi.GetLoggingEndpointResponse.Reason reason = 2;
7037 if (this->reason() != 0) {
7038 total_size += 1 +
7039 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
7040 }
7041
7042 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
7043 SetCachedSize(cached_size);
7044 return total_size;
7045}
7046
7047void GetLoggingEndpointResponse::MergeFrom(const ::google::protobuf::Message& from) {
7048// @@protoc_insertion_point(generalized_merge_from_start:dmi.GetLoggingEndpointResponse)
7049 GOOGLE_DCHECK_NE(&from, this);
7050 const GetLoggingEndpointResponse* source =
7051 ::google::protobuf::DynamicCastToGenerated<GetLoggingEndpointResponse>(
7052 &from);
7053 if (source == nullptr) {
7054 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.GetLoggingEndpointResponse)
7055 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7056 } else {
7057 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.GetLoggingEndpointResponse)
7058 MergeFrom(*source);
7059 }
7060}
7061
7062void GetLoggingEndpointResponse::MergeFrom(const GetLoggingEndpointResponse& from) {
7063// @@protoc_insertion_point(class_specific_merge_from_start:dmi.GetLoggingEndpointResponse)
7064 GOOGLE_DCHECK_NE(&from, this);
7065 _internal_metadata_.MergeFrom(from._internal_metadata_);
7066 ::google::protobuf::uint32 cached_has_bits = 0;
7067 (void) cached_has_bits;
7068
7069 if (from.logging_endpoint().size() > 0) {
7070
7071 logging_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_endpoint_);
7072 }
7073 if (from.logging_protocol().size() > 0) {
7074
7075 logging_protocol_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_protocol_);
7076 }
7077 if (from.reason_detail().size() > 0) {
7078
7079 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
7080 }
7081 if (from.status() != 0) {
7082 set_status(from.status());
7083 }
7084 if (from.reason() != 0) {
7085 set_reason(from.reason());
7086 }
7087}
7088
7089void GetLoggingEndpointResponse::CopyFrom(const ::google::protobuf::Message& from) {
7090// @@protoc_insertion_point(generalized_copy_from_start:dmi.GetLoggingEndpointResponse)
7091 if (&from == this) return;
7092 Clear();
7093 MergeFrom(from);
7094}
7095
7096void GetLoggingEndpointResponse::CopyFrom(const GetLoggingEndpointResponse& from) {
7097// @@protoc_insertion_point(class_specific_copy_from_start:dmi.GetLoggingEndpointResponse)
7098 if (&from == this) return;
7099 Clear();
7100 MergeFrom(from);
7101}
7102
7103bool GetLoggingEndpointResponse::IsInitialized() const {
7104 return true;
7105}
7106
7107void GetLoggingEndpointResponse::Swap(GetLoggingEndpointResponse* other) {
7108 if (other == this) return;
7109 InternalSwap(other);
7110}
7111void GetLoggingEndpointResponse::InternalSwap(GetLoggingEndpointResponse* other) {
7112 using std::swap;
7113 _internal_metadata_.Swap(&other->_internal_metadata_);
7114 logging_endpoint_.Swap(&other->logging_endpoint_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
7115 GetArenaNoVirtual());
7116 logging_protocol_.Swap(&other->logging_protocol_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
7117 GetArenaNoVirtual());
7118 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
7119 GetArenaNoVirtual());
7120 swap(status_, other->status_);
7121 swap(reason_, other->reason_);
7122}
7123
7124::google::protobuf::Metadata GetLoggingEndpointResponse::GetMetadata() const {
7125 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
7126 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
7127}
7128
7129
7130// ===================================================================
7131
7132void SetMsgBusEndpointRequest::InitAsDefaultInstance() {
7133}
7134class SetMsgBusEndpointRequest::HasBitSetters {
7135 public:
7136};
7137
7138#if !defined(_MSC_VER) || _MSC_VER >= 1900
7139const int SetMsgBusEndpointRequest::kMsgbusEndpointFieldNumber;
7140#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
7141
7142SetMsgBusEndpointRequest::SetMsgBusEndpointRequest()
7143 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
7144 SharedCtor();
7145 // @@protoc_insertion_point(constructor:dmi.SetMsgBusEndpointRequest)
7146}
7147SetMsgBusEndpointRequest::SetMsgBusEndpointRequest(const SetMsgBusEndpointRequest& from)
7148 : ::google::protobuf::Message(),
7149 _internal_metadata_(nullptr) {
7150 _internal_metadata_.MergeFrom(from._internal_metadata_);
7151 msgbus_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7152 if (from.msgbus_endpoint().size() > 0) {
7153 msgbus_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.msgbus_endpoint_);
7154 }
7155 // @@protoc_insertion_point(copy_constructor:dmi.SetMsgBusEndpointRequest)
7156}
7157
7158void SetMsgBusEndpointRequest::SharedCtor() {
7159 ::google::protobuf::internal::InitSCC(
7160 &scc_info_SetMsgBusEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
7161 msgbus_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7162}
7163
7164SetMsgBusEndpointRequest::~SetMsgBusEndpointRequest() {
7165 // @@protoc_insertion_point(destructor:dmi.SetMsgBusEndpointRequest)
7166 SharedDtor();
7167}
7168
7169void SetMsgBusEndpointRequest::SharedDtor() {
7170 msgbus_endpoint_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7171}
7172
7173void SetMsgBusEndpointRequest::SetCachedSize(int size) const {
7174 _cached_size_.Set(size);
7175}
7176const SetMsgBusEndpointRequest& SetMsgBusEndpointRequest::default_instance() {
7177 ::google::protobuf::internal::InitSCC(&::scc_info_SetMsgBusEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
7178 return *internal_default_instance();
7179}
7180
7181
7182void SetMsgBusEndpointRequest::Clear() {
7183// @@protoc_insertion_point(message_clear_start:dmi.SetMsgBusEndpointRequest)
7184 ::google::protobuf::uint32 cached_has_bits = 0;
7185 // Prevent compiler warnings about cached_has_bits being unused
7186 (void) cached_has_bits;
7187
7188 msgbus_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7189 _internal_metadata_.Clear();
7190}
7191
7192#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7193const char* SetMsgBusEndpointRequest::_InternalParse(const char* begin, const char* end, void* object,
7194 ::google::protobuf::internal::ParseContext* ctx) {
7195 auto msg = static_cast<SetMsgBusEndpointRequest*>(object);
7196 ::google::protobuf::int32 size; (void)size;
7197 int depth; (void)depth;
7198 ::google::protobuf::uint32 tag;
7199 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
7200 auto ptr = begin;
7201 while (ptr < end) {
7202 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
7203 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7204 switch (tag >> 3) {
7205 // string msgbus_endpoint = 1;
7206 case 1: {
7207 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
7208 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
7209 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7210 ctx->extra_parse_data().SetFieldName("dmi.SetMsgBusEndpointRequest.msgbus_endpoint");
7211 object = msg->mutable_msgbus_endpoint();
7212 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
7213 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
7214 goto string_till_end;
7215 }
7216 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
7217 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
7218 ptr += size;
7219 break;
7220 }
7221 default: {
7222 handle_unusual:
7223 if ((tag & 7) == 4 || tag == 0) {
7224 ctx->EndGroup(tag);
7225 return ptr;
7226 }
7227 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
7228 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
7229 ptr = res.first;
7230 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
7231 if (res.second) return ptr;
7232 }
7233 } // switch
7234 } // while
7235 return ptr;
7236string_till_end:
7237 static_cast<::std::string*>(object)->clear();
7238 static_cast<::std::string*>(object)->reserve(size);
7239 goto len_delim_till_end;
7240len_delim_till_end:
7241 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
7242 {parser_till_end, object}, size);
7243}
7244#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7245bool SetMsgBusEndpointRequest::MergePartialFromCodedStream(
7246 ::google::protobuf::io::CodedInputStream* input) {
7247#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
7248 ::google::protobuf::uint32 tag;
7249 // @@protoc_insertion_point(parse_start:dmi.SetMsgBusEndpointRequest)
7250 for (;;) {
7251 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
7252 tag = p.first;
7253 if (!p.second) goto handle_unusual;
7254 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7255 // string msgbus_endpoint = 1;
7256 case 1: {
7257 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
7258 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7259 input, this->mutable_msgbus_endpoint()));
7260 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7261 this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()),
7262 ::google::protobuf::internal::WireFormatLite::PARSE,
7263 "dmi.SetMsgBusEndpointRequest.msgbus_endpoint"));
7264 } else {
7265 goto handle_unusual;
7266 }
7267 break;
7268 }
7269
7270 default: {
7271 handle_unusual:
7272 if (tag == 0) {
7273 goto success;
7274 }
7275 DO_(::google::protobuf::internal::WireFormat::SkipField(
7276 input, tag, _internal_metadata_.mutable_unknown_fields()));
7277 break;
7278 }
7279 }
7280 }
7281success:
7282 // @@protoc_insertion_point(parse_success:dmi.SetMsgBusEndpointRequest)
7283 return true;
7284failure:
7285 // @@protoc_insertion_point(parse_failure:dmi.SetMsgBusEndpointRequest)
7286 return false;
7287#undef DO_
7288}
7289#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7290
7291void SetMsgBusEndpointRequest::SerializeWithCachedSizes(
7292 ::google::protobuf::io::CodedOutputStream* output) const {
7293 // @@protoc_insertion_point(serialize_start:dmi.SetMsgBusEndpointRequest)
7294 ::google::protobuf::uint32 cached_has_bits = 0;
7295 (void) cached_has_bits;
7296
7297 // string msgbus_endpoint = 1;
7298 if (this->msgbus_endpoint().size() > 0) {
7299 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7300 this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()),
7301 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7302 "dmi.SetMsgBusEndpointRequest.msgbus_endpoint");
7303 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7304 1, this->msgbus_endpoint(), output);
7305 }
7306
7307 if (_internal_metadata_.have_unknown_fields()) {
7308 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
7309 _internal_metadata_.unknown_fields(), output);
7310 }
7311 // @@protoc_insertion_point(serialize_end:dmi.SetMsgBusEndpointRequest)
7312}
7313
7314::google::protobuf::uint8* SetMsgBusEndpointRequest::InternalSerializeWithCachedSizesToArray(
7315 ::google::protobuf::uint8* target) const {
7316 // @@protoc_insertion_point(serialize_to_array_start:dmi.SetMsgBusEndpointRequest)
7317 ::google::protobuf::uint32 cached_has_bits = 0;
7318 (void) cached_has_bits;
7319
7320 // string msgbus_endpoint = 1;
7321 if (this->msgbus_endpoint().size() > 0) {
7322 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7323 this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()),
7324 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7325 "dmi.SetMsgBusEndpointRequest.msgbus_endpoint");
7326 target =
7327 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7328 1, this->msgbus_endpoint(), target);
7329 }
7330
7331 if (_internal_metadata_.have_unknown_fields()) {
7332 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
7333 _internal_metadata_.unknown_fields(), target);
7334 }
7335 // @@protoc_insertion_point(serialize_to_array_end:dmi.SetMsgBusEndpointRequest)
7336 return target;
7337}
7338
7339size_t SetMsgBusEndpointRequest::ByteSizeLong() const {
7340// @@protoc_insertion_point(message_byte_size_start:dmi.SetMsgBusEndpointRequest)
7341 size_t total_size = 0;
7342
7343 if (_internal_metadata_.have_unknown_fields()) {
7344 total_size +=
7345 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7346 _internal_metadata_.unknown_fields());
7347 }
7348 ::google::protobuf::uint32 cached_has_bits = 0;
7349 // Prevent compiler warnings about cached_has_bits being unused
7350 (void) cached_has_bits;
7351
7352 // string msgbus_endpoint = 1;
7353 if (this->msgbus_endpoint().size() > 0) {
7354 total_size += 1 +
7355 ::google::protobuf::internal::WireFormatLite::StringSize(
7356 this->msgbus_endpoint());
7357 }
7358
7359 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
7360 SetCachedSize(cached_size);
7361 return total_size;
7362}
7363
7364void SetMsgBusEndpointRequest::MergeFrom(const ::google::protobuf::Message& from) {
7365// @@protoc_insertion_point(generalized_merge_from_start:dmi.SetMsgBusEndpointRequest)
7366 GOOGLE_DCHECK_NE(&from, this);
7367 const SetMsgBusEndpointRequest* source =
7368 ::google::protobuf::DynamicCastToGenerated<SetMsgBusEndpointRequest>(
7369 &from);
7370 if (source == nullptr) {
7371 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.SetMsgBusEndpointRequest)
7372 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7373 } else {
7374 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.SetMsgBusEndpointRequest)
7375 MergeFrom(*source);
7376 }
7377}
7378
7379void SetMsgBusEndpointRequest::MergeFrom(const SetMsgBusEndpointRequest& from) {
7380// @@protoc_insertion_point(class_specific_merge_from_start:dmi.SetMsgBusEndpointRequest)
7381 GOOGLE_DCHECK_NE(&from, this);
7382 _internal_metadata_.MergeFrom(from._internal_metadata_);
7383 ::google::protobuf::uint32 cached_has_bits = 0;
7384 (void) cached_has_bits;
7385
7386 if (from.msgbus_endpoint().size() > 0) {
7387
7388 msgbus_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.msgbus_endpoint_);
7389 }
7390}
7391
7392void SetMsgBusEndpointRequest::CopyFrom(const ::google::protobuf::Message& from) {
7393// @@protoc_insertion_point(generalized_copy_from_start:dmi.SetMsgBusEndpointRequest)
7394 if (&from == this) return;
7395 Clear();
7396 MergeFrom(from);
7397}
7398
7399void SetMsgBusEndpointRequest::CopyFrom(const SetMsgBusEndpointRequest& from) {
7400// @@protoc_insertion_point(class_specific_copy_from_start:dmi.SetMsgBusEndpointRequest)
7401 if (&from == this) return;
7402 Clear();
7403 MergeFrom(from);
7404}
7405
7406bool SetMsgBusEndpointRequest::IsInitialized() const {
7407 return true;
7408}
7409
7410void SetMsgBusEndpointRequest::Swap(SetMsgBusEndpointRequest* other) {
7411 if (other == this) return;
7412 InternalSwap(other);
7413}
7414void SetMsgBusEndpointRequest::InternalSwap(SetMsgBusEndpointRequest* other) {
7415 using std::swap;
7416 _internal_metadata_.Swap(&other->_internal_metadata_);
7417 msgbus_endpoint_.Swap(&other->msgbus_endpoint_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
7418 GetArenaNoVirtual());
7419}
7420
7421::google::protobuf::Metadata SetMsgBusEndpointRequest::GetMetadata() const {
7422 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
7423 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
7424}
7425
7426
7427// ===================================================================
7428
7429void GetMsgBusEndpointResponse::InitAsDefaultInstance() {
7430}
7431class GetMsgBusEndpointResponse::HasBitSetters {
7432 public:
7433};
7434
7435#if !defined(_MSC_VER) || _MSC_VER >= 1900
7436const int GetMsgBusEndpointResponse::kStatusFieldNumber;
7437const int GetMsgBusEndpointResponse::kReasonFieldNumber;
7438const int GetMsgBusEndpointResponse::kMsgbusEndpointFieldNumber;
7439const int GetMsgBusEndpointResponse::kReasonDetailFieldNumber;
7440#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
7441
7442GetMsgBusEndpointResponse::GetMsgBusEndpointResponse()
7443 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
7444 SharedCtor();
7445 // @@protoc_insertion_point(constructor:dmi.GetMsgBusEndpointResponse)
7446}
7447GetMsgBusEndpointResponse::GetMsgBusEndpointResponse(const GetMsgBusEndpointResponse& from)
7448 : ::google::protobuf::Message(),
7449 _internal_metadata_(nullptr) {
7450 _internal_metadata_.MergeFrom(from._internal_metadata_);
7451 msgbus_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7452 if (from.msgbus_endpoint().size() > 0) {
7453 msgbus_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.msgbus_endpoint_);
7454 }
7455 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7456 if (from.reason_detail().size() > 0) {
7457 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
7458 }
7459 ::memcpy(&status_, &from.status_,
7460 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
7461 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
7462 // @@protoc_insertion_point(copy_constructor:dmi.GetMsgBusEndpointResponse)
7463}
7464
7465void GetMsgBusEndpointResponse::SharedCtor() {
7466 ::google::protobuf::internal::InitSCC(
7467 &scc_info_GetMsgBusEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
7468 msgbus_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7469 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7470 ::memset(&status_, 0, static_cast<size_t>(
7471 reinterpret_cast<char*>(&reason_) -
7472 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
7473}
7474
7475GetMsgBusEndpointResponse::~GetMsgBusEndpointResponse() {
7476 // @@protoc_insertion_point(destructor:dmi.GetMsgBusEndpointResponse)
7477 SharedDtor();
7478}
7479
7480void GetMsgBusEndpointResponse::SharedDtor() {
7481 msgbus_endpoint_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7482 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7483}
7484
7485void GetMsgBusEndpointResponse::SetCachedSize(int size) const {
7486 _cached_size_.Set(size);
7487}
7488const GetMsgBusEndpointResponse& GetMsgBusEndpointResponse::default_instance() {
7489 ::google::protobuf::internal::InitSCC(&::scc_info_GetMsgBusEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
7490 return *internal_default_instance();
7491}
7492
7493
7494void GetMsgBusEndpointResponse::Clear() {
7495// @@protoc_insertion_point(message_clear_start:dmi.GetMsgBusEndpointResponse)
7496 ::google::protobuf::uint32 cached_has_bits = 0;
7497 // Prevent compiler warnings about cached_has_bits being unused
7498 (void) cached_has_bits;
7499
7500 msgbus_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7501 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7502 ::memset(&status_, 0, static_cast<size_t>(
7503 reinterpret_cast<char*>(&reason_) -
7504 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
7505 _internal_metadata_.Clear();
7506}
7507
7508#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7509const char* GetMsgBusEndpointResponse::_InternalParse(const char* begin, const char* end, void* object,
7510 ::google::protobuf::internal::ParseContext* ctx) {
7511 auto msg = static_cast<GetMsgBusEndpointResponse*>(object);
7512 ::google::protobuf::int32 size; (void)size;
7513 int depth; (void)depth;
7514 ::google::protobuf::uint32 tag;
7515 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
7516 auto ptr = begin;
7517 while (ptr < end) {
7518 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
7519 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7520 switch (tag >> 3) {
7521 // .dmi.Status status = 1;
7522 case 1: {
7523 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
7524 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
7525 msg->set_status(static_cast<::dmi::Status>(val));
7526 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7527 break;
7528 }
7529 // .dmi.GetMsgBusEndpointResponse.Reason reason = 2;
7530 case 2: {
7531 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
7532 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
7533 msg->set_reason(static_cast<::dmi::GetMsgBusEndpointResponse_Reason>(val));
7534 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7535 break;
7536 }
7537 // string msgbus_endpoint = 3;
7538 case 3: {
7539 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
7540 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
7541 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7542 ctx->extra_parse_data().SetFieldName("dmi.GetMsgBusEndpointResponse.msgbus_endpoint");
7543 object = msg->mutable_msgbus_endpoint();
7544 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
7545 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
7546 goto string_till_end;
7547 }
7548 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
7549 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
7550 ptr += size;
7551 break;
7552 }
7553 // string reason_detail = 4;
7554 case 4: {
7555 if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual;
7556 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
7557 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7558 ctx->extra_parse_data().SetFieldName("dmi.GetMsgBusEndpointResponse.reason_detail");
7559 object = msg->mutable_reason_detail();
7560 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
7561 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
7562 goto string_till_end;
7563 }
7564 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
7565 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
7566 ptr += size;
7567 break;
7568 }
7569 default: {
7570 handle_unusual:
7571 if ((tag & 7) == 4 || tag == 0) {
7572 ctx->EndGroup(tag);
7573 return ptr;
7574 }
7575 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
7576 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
7577 ptr = res.first;
7578 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
7579 if (res.second) return ptr;
7580 }
7581 } // switch
7582 } // while
7583 return ptr;
7584string_till_end:
7585 static_cast<::std::string*>(object)->clear();
7586 static_cast<::std::string*>(object)->reserve(size);
7587 goto len_delim_till_end;
7588len_delim_till_end:
7589 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
7590 {parser_till_end, object}, size);
7591}
7592#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7593bool GetMsgBusEndpointResponse::MergePartialFromCodedStream(
7594 ::google::protobuf::io::CodedInputStream* input) {
7595#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
7596 ::google::protobuf::uint32 tag;
7597 // @@protoc_insertion_point(parse_start:dmi.GetMsgBusEndpointResponse)
7598 for (;;) {
7599 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
7600 tag = p.first;
7601 if (!p.second) goto handle_unusual;
7602 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7603 // .dmi.Status status = 1;
7604 case 1: {
7605 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
7606 int value = 0;
7607 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7608 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
7609 input, &value)));
7610 set_status(static_cast< ::dmi::Status >(value));
7611 } else {
7612 goto handle_unusual;
7613 }
7614 break;
7615 }
7616
7617 // .dmi.GetMsgBusEndpointResponse.Reason reason = 2;
7618 case 2: {
7619 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
7620 int value = 0;
7621 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7622 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
7623 input, &value)));
7624 set_reason(static_cast< ::dmi::GetMsgBusEndpointResponse_Reason >(value));
7625 } else {
7626 goto handle_unusual;
7627 }
7628 break;
7629 }
7630
7631 // string msgbus_endpoint = 3;
7632 case 3: {
7633 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
7634 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7635 input, this->mutable_msgbus_endpoint()));
7636 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7637 this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()),
7638 ::google::protobuf::internal::WireFormatLite::PARSE,
7639 "dmi.GetMsgBusEndpointResponse.msgbus_endpoint"));
7640 } else {
7641 goto handle_unusual;
7642 }
7643 break;
7644 }
7645
7646 // string reason_detail = 4;
7647 case 4: {
7648 if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
7649 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7650 input, this->mutable_reason_detail()));
7651 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7652 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
7653 ::google::protobuf::internal::WireFormatLite::PARSE,
7654 "dmi.GetMsgBusEndpointResponse.reason_detail"));
7655 } else {
7656 goto handle_unusual;
7657 }
7658 break;
7659 }
7660
7661 default: {
7662 handle_unusual:
7663 if (tag == 0) {
7664 goto success;
7665 }
7666 DO_(::google::protobuf::internal::WireFormat::SkipField(
7667 input, tag, _internal_metadata_.mutable_unknown_fields()));
7668 break;
7669 }
7670 }
7671 }
7672success:
7673 // @@protoc_insertion_point(parse_success:dmi.GetMsgBusEndpointResponse)
7674 return true;
7675failure:
7676 // @@protoc_insertion_point(parse_failure:dmi.GetMsgBusEndpointResponse)
7677 return false;
7678#undef DO_
7679}
7680#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7681
7682void GetMsgBusEndpointResponse::SerializeWithCachedSizes(
7683 ::google::protobuf::io::CodedOutputStream* output) const {
7684 // @@protoc_insertion_point(serialize_start:dmi.GetMsgBusEndpointResponse)
7685 ::google::protobuf::uint32 cached_has_bits = 0;
7686 (void) cached_has_bits;
7687
7688 // .dmi.Status status = 1;
7689 if (this->status() != 0) {
7690 ::google::protobuf::internal::WireFormatLite::WriteEnum(
7691 1, this->status(), output);
7692 }
7693
7694 // .dmi.GetMsgBusEndpointResponse.Reason reason = 2;
7695 if (this->reason() != 0) {
7696 ::google::protobuf::internal::WireFormatLite::WriteEnum(
7697 2, this->reason(), output);
7698 }
7699
7700 // string msgbus_endpoint = 3;
7701 if (this->msgbus_endpoint().size() > 0) {
7702 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7703 this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()),
7704 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7705 "dmi.GetMsgBusEndpointResponse.msgbus_endpoint");
7706 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7707 3, this->msgbus_endpoint(), output);
7708 }
7709
7710 // string reason_detail = 4;
7711 if (this->reason_detail().size() > 0) {
7712 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7713 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
7714 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7715 "dmi.GetMsgBusEndpointResponse.reason_detail");
7716 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7717 4, this->reason_detail(), output);
7718 }
7719
7720 if (_internal_metadata_.have_unknown_fields()) {
7721 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
7722 _internal_metadata_.unknown_fields(), output);
7723 }
7724 // @@protoc_insertion_point(serialize_end:dmi.GetMsgBusEndpointResponse)
7725}
7726
7727::google::protobuf::uint8* GetMsgBusEndpointResponse::InternalSerializeWithCachedSizesToArray(
7728 ::google::protobuf::uint8* target) const {
7729 // @@protoc_insertion_point(serialize_to_array_start:dmi.GetMsgBusEndpointResponse)
7730 ::google::protobuf::uint32 cached_has_bits = 0;
7731 (void) cached_has_bits;
7732
7733 // .dmi.Status status = 1;
7734 if (this->status() != 0) {
7735 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
7736 1, this->status(), target);
7737 }
7738
7739 // .dmi.GetMsgBusEndpointResponse.Reason reason = 2;
7740 if (this->reason() != 0) {
7741 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
7742 2, this->reason(), target);
7743 }
7744
7745 // string msgbus_endpoint = 3;
7746 if (this->msgbus_endpoint().size() > 0) {
7747 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7748 this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()),
7749 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7750 "dmi.GetMsgBusEndpointResponse.msgbus_endpoint");
7751 target =
7752 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7753 3, this->msgbus_endpoint(), target);
7754 }
7755
7756 // string reason_detail = 4;
7757 if (this->reason_detail().size() > 0) {
7758 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7759 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
7760 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7761 "dmi.GetMsgBusEndpointResponse.reason_detail");
7762 target =
7763 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7764 4, this->reason_detail(), target);
7765 }
7766
7767 if (_internal_metadata_.have_unknown_fields()) {
7768 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
7769 _internal_metadata_.unknown_fields(), target);
7770 }
7771 // @@protoc_insertion_point(serialize_to_array_end:dmi.GetMsgBusEndpointResponse)
7772 return target;
7773}
7774
7775size_t GetMsgBusEndpointResponse::ByteSizeLong() const {
7776// @@protoc_insertion_point(message_byte_size_start:dmi.GetMsgBusEndpointResponse)
7777 size_t total_size = 0;
7778
7779 if (_internal_metadata_.have_unknown_fields()) {
7780 total_size +=
7781 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7782 _internal_metadata_.unknown_fields());
7783 }
7784 ::google::protobuf::uint32 cached_has_bits = 0;
7785 // Prevent compiler warnings about cached_has_bits being unused
7786 (void) cached_has_bits;
7787
7788 // string msgbus_endpoint = 3;
7789 if (this->msgbus_endpoint().size() > 0) {
7790 total_size += 1 +
7791 ::google::protobuf::internal::WireFormatLite::StringSize(
7792 this->msgbus_endpoint());
7793 }
7794
7795 // string reason_detail = 4;
7796 if (this->reason_detail().size() > 0) {
7797 total_size += 1 +
7798 ::google::protobuf::internal::WireFormatLite::StringSize(
7799 this->reason_detail());
7800 }
7801
7802 // .dmi.Status status = 1;
7803 if (this->status() != 0) {
7804 total_size += 1 +
7805 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
7806 }
7807
7808 // .dmi.GetMsgBusEndpointResponse.Reason reason = 2;
7809 if (this->reason() != 0) {
7810 total_size += 1 +
7811 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
7812 }
7813
7814 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
7815 SetCachedSize(cached_size);
7816 return total_size;
7817}
7818
7819void GetMsgBusEndpointResponse::MergeFrom(const ::google::protobuf::Message& from) {
7820// @@protoc_insertion_point(generalized_merge_from_start:dmi.GetMsgBusEndpointResponse)
7821 GOOGLE_DCHECK_NE(&from, this);
7822 const GetMsgBusEndpointResponse* source =
7823 ::google::protobuf::DynamicCastToGenerated<GetMsgBusEndpointResponse>(
7824 &from);
7825 if (source == nullptr) {
7826 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.GetMsgBusEndpointResponse)
7827 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7828 } else {
7829 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.GetMsgBusEndpointResponse)
7830 MergeFrom(*source);
7831 }
7832}
7833
7834void GetMsgBusEndpointResponse::MergeFrom(const GetMsgBusEndpointResponse& from) {
7835// @@protoc_insertion_point(class_specific_merge_from_start:dmi.GetMsgBusEndpointResponse)
7836 GOOGLE_DCHECK_NE(&from, this);
7837 _internal_metadata_.MergeFrom(from._internal_metadata_);
7838 ::google::protobuf::uint32 cached_has_bits = 0;
7839 (void) cached_has_bits;
7840
7841 if (from.msgbus_endpoint().size() > 0) {
7842
7843 msgbus_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.msgbus_endpoint_);
7844 }
7845 if (from.reason_detail().size() > 0) {
7846
7847 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
7848 }
7849 if (from.status() != 0) {
7850 set_status(from.status());
7851 }
7852 if (from.reason() != 0) {
7853 set_reason(from.reason());
7854 }
7855}
7856
7857void GetMsgBusEndpointResponse::CopyFrom(const ::google::protobuf::Message& from) {
7858// @@protoc_insertion_point(generalized_copy_from_start:dmi.GetMsgBusEndpointResponse)
7859 if (&from == this) return;
7860 Clear();
7861 MergeFrom(from);
7862}
7863
7864void GetMsgBusEndpointResponse::CopyFrom(const GetMsgBusEndpointResponse& from) {
7865// @@protoc_insertion_point(class_specific_copy_from_start:dmi.GetMsgBusEndpointResponse)
7866 if (&from == this) return;
7867 Clear();
7868 MergeFrom(from);
7869}
7870
7871bool GetMsgBusEndpointResponse::IsInitialized() const {
7872 return true;
7873}
7874
7875void GetMsgBusEndpointResponse::Swap(GetMsgBusEndpointResponse* other) {
7876 if (other == this) return;
7877 InternalSwap(other);
7878}
7879void GetMsgBusEndpointResponse::InternalSwap(GetMsgBusEndpointResponse* other) {
7880 using std::swap;
7881 _internal_metadata_.Swap(&other->_internal_metadata_);
7882 msgbus_endpoint_.Swap(&other->msgbus_endpoint_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
7883 GetArenaNoVirtual());
7884 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
7885 GetArenaNoVirtual());
7886 swap(status_, other->status_);
7887 swap(reason_, other->reason_);
7888}
7889
7890::google::protobuf::Metadata GetMsgBusEndpointResponse::GetMetadata() const {
7891 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
7892 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
7893}
7894
7895
7896// ===================================================================
7897
7898void EntitiesLogLevel::InitAsDefaultInstance() {
7899}
7900class EntitiesLogLevel::HasBitSetters {
7901 public:
7902};
7903
7904#if !defined(_MSC_VER) || _MSC_VER >= 1900
7905const int EntitiesLogLevel::kLogLevelFieldNumber;
7906const int EntitiesLogLevel::kEntitiesFieldNumber;
7907#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
7908
7909EntitiesLogLevel::EntitiesLogLevel()
7910 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
7911 SharedCtor();
7912 // @@protoc_insertion_point(constructor:dmi.EntitiesLogLevel)
7913}
7914EntitiesLogLevel::EntitiesLogLevel(const EntitiesLogLevel& from)
7915 : ::google::protobuf::Message(),
7916 _internal_metadata_(nullptr),
7917 entities_(from.entities_) {
7918 _internal_metadata_.MergeFrom(from._internal_metadata_);
7919 loglevel_ = from.loglevel_;
7920 // @@protoc_insertion_point(copy_constructor:dmi.EntitiesLogLevel)
7921}
7922
7923void EntitiesLogLevel::SharedCtor() {
7924 ::google::protobuf::internal::InitSCC(
7925 &scc_info_EntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
7926 loglevel_ = 0;
7927}
7928
7929EntitiesLogLevel::~EntitiesLogLevel() {
7930 // @@protoc_insertion_point(destructor:dmi.EntitiesLogLevel)
7931 SharedDtor();
7932}
7933
7934void EntitiesLogLevel::SharedDtor() {
7935}
7936
7937void EntitiesLogLevel::SetCachedSize(int size) const {
7938 _cached_size_.Set(size);
7939}
7940const EntitiesLogLevel& EntitiesLogLevel::default_instance() {
7941 ::google::protobuf::internal::InitSCC(&::scc_info_EntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
7942 return *internal_default_instance();
7943}
7944
7945
7946void EntitiesLogLevel::Clear() {
7947// @@protoc_insertion_point(message_clear_start:dmi.EntitiesLogLevel)
7948 ::google::protobuf::uint32 cached_has_bits = 0;
7949 // Prevent compiler warnings about cached_has_bits being unused
7950 (void) cached_has_bits;
7951
7952 entities_.Clear();
7953 loglevel_ = 0;
7954 _internal_metadata_.Clear();
7955}
7956
7957#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7958const char* EntitiesLogLevel::_InternalParse(const char* begin, const char* end, void* object,
7959 ::google::protobuf::internal::ParseContext* ctx) {
7960 auto msg = static_cast<EntitiesLogLevel*>(object);
7961 ::google::protobuf::int32 size; (void)size;
7962 int depth; (void)depth;
7963 ::google::protobuf::uint32 tag;
7964 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
7965 auto ptr = begin;
7966 while (ptr < end) {
7967 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
7968 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7969 switch (tag >> 3) {
7970 // .dmi.LogLevel logLevel = 1;
7971 case 1: {
7972 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
7973 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
7974 msg->set_loglevel(static_cast<::dmi::LogLevel>(val));
7975 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7976 break;
7977 }
7978 // repeated string entities = 2;
7979 case 2: {
7980 if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
7981 do {
7982 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
7983 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7984 ctx->extra_parse_data().SetFieldName("dmi.EntitiesLogLevel.entities");
7985 object = msg->add_entities();
7986 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
7987 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
7988 goto string_till_end;
7989 }
7990 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
7991 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
7992 ptr += size;
7993 if (ptr >= end) break;
7994 } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1));
7995 break;
7996 }
7997 default: {
7998 handle_unusual:
7999 if ((tag & 7) == 4 || tag == 0) {
8000 ctx->EndGroup(tag);
8001 return ptr;
8002 }
8003 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
8004 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
8005 ptr = res.first;
8006 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
8007 if (res.second) return ptr;
8008 }
8009 } // switch
8010 } // while
8011 return ptr;
8012string_till_end:
8013 static_cast<::std::string*>(object)->clear();
8014 static_cast<::std::string*>(object)->reserve(size);
8015 goto len_delim_till_end;
8016len_delim_till_end:
8017 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
8018 {parser_till_end, object}, size);
8019}
8020#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8021bool EntitiesLogLevel::MergePartialFromCodedStream(
8022 ::google::protobuf::io::CodedInputStream* input) {
8023#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
8024 ::google::protobuf::uint32 tag;
8025 // @@protoc_insertion_point(parse_start:dmi.EntitiesLogLevel)
8026 for (;;) {
8027 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
8028 tag = p.first;
8029 if (!p.second) goto handle_unusual;
8030 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
8031 // .dmi.LogLevel logLevel = 1;
8032 case 1: {
8033 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
8034 int value = 0;
8035 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8036 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
8037 input, &value)));
8038 set_loglevel(static_cast< ::dmi::LogLevel >(value));
8039 } else {
8040 goto handle_unusual;
8041 }
8042 break;
8043 }
8044
8045 // repeated string entities = 2;
8046 case 2: {
8047 if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
8048 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8049 input, this->add_entities()));
8050 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
8051 this->entities(this->entities_size() - 1).data(),
8052 static_cast<int>(this->entities(this->entities_size() - 1).length()),
8053 ::google::protobuf::internal::WireFormatLite::PARSE,
8054 "dmi.EntitiesLogLevel.entities"));
8055 } else {
8056 goto handle_unusual;
8057 }
8058 break;
8059 }
8060
8061 default: {
8062 handle_unusual:
8063 if (tag == 0) {
8064 goto success;
8065 }
8066 DO_(::google::protobuf::internal::WireFormat::SkipField(
8067 input, tag, _internal_metadata_.mutable_unknown_fields()));
8068 break;
8069 }
8070 }
8071 }
8072success:
8073 // @@protoc_insertion_point(parse_success:dmi.EntitiesLogLevel)
8074 return true;
8075failure:
8076 // @@protoc_insertion_point(parse_failure:dmi.EntitiesLogLevel)
8077 return false;
8078#undef DO_
8079}
8080#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8081
8082void EntitiesLogLevel::SerializeWithCachedSizes(
8083 ::google::protobuf::io::CodedOutputStream* output) const {
8084 // @@protoc_insertion_point(serialize_start:dmi.EntitiesLogLevel)
8085 ::google::protobuf::uint32 cached_has_bits = 0;
8086 (void) cached_has_bits;
8087
8088 // .dmi.LogLevel logLevel = 1;
8089 if (this->loglevel() != 0) {
8090 ::google::protobuf::internal::WireFormatLite::WriteEnum(
8091 1, this->loglevel(), output);
8092 }
8093
8094 // repeated string entities = 2;
8095 for (int i = 0, n = this->entities_size(); i < n; i++) {
8096 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
8097 this->entities(i).data(), static_cast<int>(this->entities(i).length()),
8098 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
8099 "dmi.EntitiesLogLevel.entities");
8100 ::google::protobuf::internal::WireFormatLite::WriteString(
8101 2, this->entities(i), output);
8102 }
8103
8104 if (_internal_metadata_.have_unknown_fields()) {
8105 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
8106 _internal_metadata_.unknown_fields(), output);
8107 }
8108 // @@protoc_insertion_point(serialize_end:dmi.EntitiesLogLevel)
8109}
8110
8111::google::protobuf::uint8* EntitiesLogLevel::InternalSerializeWithCachedSizesToArray(
8112 ::google::protobuf::uint8* target) const {
8113 // @@protoc_insertion_point(serialize_to_array_start:dmi.EntitiesLogLevel)
8114 ::google::protobuf::uint32 cached_has_bits = 0;
8115 (void) cached_has_bits;
8116
8117 // .dmi.LogLevel logLevel = 1;
8118 if (this->loglevel() != 0) {
8119 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
8120 1, this->loglevel(), target);
8121 }
8122
8123 // repeated string entities = 2;
8124 for (int i = 0, n = this->entities_size(); i < n; i++) {
8125 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
8126 this->entities(i).data(), static_cast<int>(this->entities(i).length()),
8127 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
8128 "dmi.EntitiesLogLevel.entities");
8129 target = ::google::protobuf::internal::WireFormatLite::
8130 WriteStringToArray(2, this->entities(i), target);
8131 }
8132
8133 if (_internal_metadata_.have_unknown_fields()) {
8134 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
8135 _internal_metadata_.unknown_fields(), target);
8136 }
8137 // @@protoc_insertion_point(serialize_to_array_end:dmi.EntitiesLogLevel)
8138 return target;
8139}
8140
8141size_t EntitiesLogLevel::ByteSizeLong() const {
8142// @@protoc_insertion_point(message_byte_size_start:dmi.EntitiesLogLevel)
8143 size_t total_size = 0;
8144
8145 if (_internal_metadata_.have_unknown_fields()) {
8146 total_size +=
8147 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
8148 _internal_metadata_.unknown_fields());
8149 }
8150 ::google::protobuf::uint32 cached_has_bits = 0;
8151 // Prevent compiler warnings about cached_has_bits being unused
8152 (void) cached_has_bits;
8153
8154 // repeated string entities = 2;
8155 total_size += 1 *
8156 ::google::protobuf::internal::FromIntSize(this->entities_size());
8157 for (int i = 0, n = this->entities_size(); i < n; i++) {
8158 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
8159 this->entities(i));
8160 }
8161
8162 // .dmi.LogLevel logLevel = 1;
8163 if (this->loglevel() != 0) {
8164 total_size += 1 +
8165 ::google::protobuf::internal::WireFormatLite::EnumSize(this->loglevel());
8166 }
8167
8168 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
8169 SetCachedSize(cached_size);
8170 return total_size;
8171}
8172
8173void EntitiesLogLevel::MergeFrom(const ::google::protobuf::Message& from) {
8174// @@protoc_insertion_point(generalized_merge_from_start:dmi.EntitiesLogLevel)
8175 GOOGLE_DCHECK_NE(&from, this);
8176 const EntitiesLogLevel* source =
8177 ::google::protobuf::DynamicCastToGenerated<EntitiesLogLevel>(
8178 &from);
8179 if (source == nullptr) {
8180 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.EntitiesLogLevel)
8181 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
8182 } else {
8183 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.EntitiesLogLevel)
8184 MergeFrom(*source);
8185 }
8186}
8187
8188void EntitiesLogLevel::MergeFrom(const EntitiesLogLevel& from) {
8189// @@protoc_insertion_point(class_specific_merge_from_start:dmi.EntitiesLogLevel)
8190 GOOGLE_DCHECK_NE(&from, this);
8191 _internal_metadata_.MergeFrom(from._internal_metadata_);
8192 ::google::protobuf::uint32 cached_has_bits = 0;
8193 (void) cached_has_bits;
8194
8195 entities_.MergeFrom(from.entities_);
8196 if (from.loglevel() != 0) {
8197 set_loglevel(from.loglevel());
8198 }
8199}
8200
8201void EntitiesLogLevel::CopyFrom(const ::google::protobuf::Message& from) {
8202// @@protoc_insertion_point(generalized_copy_from_start:dmi.EntitiesLogLevel)
8203 if (&from == this) return;
8204 Clear();
8205 MergeFrom(from);
8206}
8207
8208void EntitiesLogLevel::CopyFrom(const EntitiesLogLevel& from) {
8209// @@protoc_insertion_point(class_specific_copy_from_start:dmi.EntitiesLogLevel)
8210 if (&from == this) return;
8211 Clear();
8212 MergeFrom(from);
8213}
8214
8215bool EntitiesLogLevel::IsInitialized() const {
8216 return true;
8217}
8218
8219void EntitiesLogLevel::Swap(EntitiesLogLevel* other) {
8220 if (other == this) return;
8221 InternalSwap(other);
8222}
8223void EntitiesLogLevel::InternalSwap(EntitiesLogLevel* other) {
8224 using std::swap;
8225 _internal_metadata_.Swap(&other->_internal_metadata_);
8226 entities_.InternalSwap(CastToBase(&other->entities_));
8227 swap(loglevel_, other->loglevel_);
8228}
8229
8230::google::protobuf::Metadata EntitiesLogLevel::GetMetadata() const {
8231 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
8232 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
8233}
8234
8235
8236// ===================================================================
8237
8238void SetLogLevelRequest::InitAsDefaultInstance() {
8239 ::dmi::_SetLogLevelRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
8240 ::dmi::Uuid::internal_default_instance());
8241}
8242class SetLogLevelRequest::HasBitSetters {
8243 public:
8244 static const ::dmi::Uuid& device_uuid(const SetLogLevelRequest* msg);
8245};
8246
8247const ::dmi::Uuid&
8248SetLogLevelRequest::HasBitSetters::device_uuid(const SetLogLevelRequest* msg) {
8249 return *msg->device_uuid_;
8250}
8251void SetLogLevelRequest::clear_device_uuid() {
8252 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
8253 delete device_uuid_;
8254 }
8255 device_uuid_ = nullptr;
8256}
8257#if !defined(_MSC_VER) || _MSC_VER >= 1900
8258const int SetLogLevelRequest::kDeviceUuidFieldNumber;
8259const int SetLogLevelRequest::kLoglevelsFieldNumber;
8260#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
8261
8262SetLogLevelRequest::SetLogLevelRequest()
8263 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
8264 SharedCtor();
8265 // @@protoc_insertion_point(constructor:dmi.SetLogLevelRequest)
8266}
8267SetLogLevelRequest::SetLogLevelRequest(const SetLogLevelRequest& from)
8268 : ::google::protobuf::Message(),
8269 _internal_metadata_(nullptr),
8270 loglevels_(from.loglevels_) {
8271 _internal_metadata_.MergeFrom(from._internal_metadata_);
8272 if (from.has_device_uuid()) {
8273 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
8274 } else {
8275 device_uuid_ = nullptr;
8276 }
8277 // @@protoc_insertion_point(copy_constructor:dmi.SetLogLevelRequest)
8278}
8279
8280void SetLogLevelRequest::SharedCtor() {
8281 ::google::protobuf::internal::InitSCC(
8282 &scc_info_SetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
8283 device_uuid_ = nullptr;
8284}
8285
8286SetLogLevelRequest::~SetLogLevelRequest() {
8287 // @@protoc_insertion_point(destructor:dmi.SetLogLevelRequest)
8288 SharedDtor();
8289}
8290
8291void SetLogLevelRequest::SharedDtor() {
8292 if (this != internal_default_instance()) delete device_uuid_;
8293}
8294
8295void SetLogLevelRequest::SetCachedSize(int size) const {
8296 _cached_size_.Set(size);
8297}
8298const SetLogLevelRequest& SetLogLevelRequest::default_instance() {
8299 ::google::protobuf::internal::InitSCC(&::scc_info_SetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
8300 return *internal_default_instance();
8301}
8302
8303
8304void SetLogLevelRequest::Clear() {
8305// @@protoc_insertion_point(message_clear_start:dmi.SetLogLevelRequest)
8306 ::google::protobuf::uint32 cached_has_bits = 0;
8307 // Prevent compiler warnings about cached_has_bits being unused
8308 (void) cached_has_bits;
8309
8310 loglevels_.Clear();
8311 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
8312 delete device_uuid_;
8313 }
8314 device_uuid_ = nullptr;
8315 _internal_metadata_.Clear();
8316}
8317
8318#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8319const char* SetLogLevelRequest::_InternalParse(const char* begin, const char* end, void* object,
8320 ::google::protobuf::internal::ParseContext* ctx) {
8321 auto msg = static_cast<SetLogLevelRequest*>(object);
8322 ::google::protobuf::int32 size; (void)size;
8323 int depth; (void)depth;
8324 ::google::protobuf::uint32 tag;
8325 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
8326 auto ptr = begin;
8327 while (ptr < end) {
8328 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
8329 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
8330 switch (tag >> 3) {
8331 // .dmi.Uuid device_uuid = 1;
8332 case 1: {
8333 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
8334 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
8335 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
8336 parser_till_end = ::dmi::Uuid::_InternalParse;
8337 object = msg->mutable_device_uuid();
8338 if (size > end - ptr) goto len_delim_till_end;
8339 ptr += size;
8340 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
8341 {parser_till_end, object}, ptr - size, ptr));
8342 break;
8343 }
8344 // repeated .dmi.EntitiesLogLevel loglevels = 2;
8345 case 2: {
8346 if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
8347 do {
8348 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
8349 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
8350 parser_till_end = ::dmi::EntitiesLogLevel::_InternalParse;
8351 object = msg->add_loglevels();
8352 if (size > end - ptr) goto len_delim_till_end;
8353 ptr += size;
8354 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
8355 {parser_till_end, object}, ptr - size, ptr));
8356 if (ptr >= end) break;
8357 } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1));
8358 break;
8359 }
8360 default: {
8361 handle_unusual:
8362 if ((tag & 7) == 4 || tag == 0) {
8363 ctx->EndGroup(tag);
8364 return ptr;
8365 }
8366 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
8367 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
8368 ptr = res.first;
8369 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
8370 if (res.second) return ptr;
8371 }
8372 } // switch
8373 } // while
8374 return ptr;
8375len_delim_till_end:
8376 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
8377 {parser_till_end, object}, size);
8378}
8379#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8380bool SetLogLevelRequest::MergePartialFromCodedStream(
8381 ::google::protobuf::io::CodedInputStream* input) {
8382#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
8383 ::google::protobuf::uint32 tag;
8384 // @@protoc_insertion_point(parse_start:dmi.SetLogLevelRequest)
8385 for (;;) {
8386 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
8387 tag = p.first;
8388 if (!p.second) goto handle_unusual;
8389 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
8390 // .dmi.Uuid device_uuid = 1;
8391 case 1: {
8392 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
8393 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
8394 input, mutable_device_uuid()));
8395 } else {
8396 goto handle_unusual;
8397 }
8398 break;
8399 }
8400
8401 // repeated .dmi.EntitiesLogLevel loglevels = 2;
8402 case 2: {
8403 if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
8404 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
8405 input, add_loglevels()));
8406 } else {
8407 goto handle_unusual;
8408 }
8409 break;
8410 }
8411
8412 default: {
8413 handle_unusual:
8414 if (tag == 0) {
8415 goto success;
8416 }
8417 DO_(::google::protobuf::internal::WireFormat::SkipField(
8418 input, tag, _internal_metadata_.mutable_unknown_fields()));
8419 break;
8420 }
8421 }
8422 }
8423success:
8424 // @@protoc_insertion_point(parse_success:dmi.SetLogLevelRequest)
8425 return true;
8426failure:
8427 // @@protoc_insertion_point(parse_failure:dmi.SetLogLevelRequest)
8428 return false;
8429#undef DO_
8430}
8431#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8432
8433void SetLogLevelRequest::SerializeWithCachedSizes(
8434 ::google::protobuf::io::CodedOutputStream* output) const {
8435 // @@protoc_insertion_point(serialize_start:dmi.SetLogLevelRequest)
8436 ::google::protobuf::uint32 cached_has_bits = 0;
8437 (void) cached_has_bits;
8438
8439 // .dmi.Uuid device_uuid = 1;
8440 if (this->has_device_uuid()) {
8441 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
8442 1, HasBitSetters::device_uuid(this), output);
8443 }
8444
8445 // repeated .dmi.EntitiesLogLevel loglevels = 2;
8446 for (unsigned int i = 0,
8447 n = static_cast<unsigned int>(this->loglevels_size()); i < n; i++) {
8448 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
8449 2,
8450 this->loglevels(static_cast<int>(i)),
8451 output);
8452 }
8453
8454 if (_internal_metadata_.have_unknown_fields()) {
8455 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
8456 _internal_metadata_.unknown_fields(), output);
8457 }
8458 // @@protoc_insertion_point(serialize_end:dmi.SetLogLevelRequest)
8459}
8460
8461::google::protobuf::uint8* SetLogLevelRequest::InternalSerializeWithCachedSizesToArray(
8462 ::google::protobuf::uint8* target) const {
8463 // @@protoc_insertion_point(serialize_to_array_start:dmi.SetLogLevelRequest)
8464 ::google::protobuf::uint32 cached_has_bits = 0;
8465 (void) cached_has_bits;
8466
8467 // .dmi.Uuid device_uuid = 1;
8468 if (this->has_device_uuid()) {
8469 target = ::google::protobuf::internal::WireFormatLite::
8470 InternalWriteMessageToArray(
8471 1, HasBitSetters::device_uuid(this), target);
8472 }
8473
8474 // repeated .dmi.EntitiesLogLevel loglevels = 2;
8475 for (unsigned int i = 0,
8476 n = static_cast<unsigned int>(this->loglevels_size()); i < n; i++) {
8477 target = ::google::protobuf::internal::WireFormatLite::
8478 InternalWriteMessageToArray(
8479 2, this->loglevels(static_cast<int>(i)), target);
8480 }
8481
8482 if (_internal_metadata_.have_unknown_fields()) {
8483 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
8484 _internal_metadata_.unknown_fields(), target);
8485 }
8486 // @@protoc_insertion_point(serialize_to_array_end:dmi.SetLogLevelRequest)
8487 return target;
8488}
8489
8490size_t SetLogLevelRequest::ByteSizeLong() const {
8491// @@protoc_insertion_point(message_byte_size_start:dmi.SetLogLevelRequest)
8492 size_t total_size = 0;
8493
8494 if (_internal_metadata_.have_unknown_fields()) {
8495 total_size +=
8496 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
8497 _internal_metadata_.unknown_fields());
8498 }
8499 ::google::protobuf::uint32 cached_has_bits = 0;
8500 // Prevent compiler warnings about cached_has_bits being unused
8501 (void) cached_has_bits;
8502
8503 // repeated .dmi.EntitiesLogLevel loglevels = 2;
8504 {
8505 unsigned int count = static_cast<unsigned int>(this->loglevels_size());
8506 total_size += 1UL * count;
8507 for (unsigned int i = 0; i < count; i++) {
8508 total_size +=
8509 ::google::protobuf::internal::WireFormatLite::MessageSize(
8510 this->loglevels(static_cast<int>(i)));
8511 }
8512 }
8513
8514 // .dmi.Uuid device_uuid = 1;
8515 if (this->has_device_uuid()) {
8516 total_size += 1 +
8517 ::google::protobuf::internal::WireFormatLite::MessageSize(
8518 *device_uuid_);
8519 }
8520
8521 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
8522 SetCachedSize(cached_size);
8523 return total_size;
8524}
8525
8526void SetLogLevelRequest::MergeFrom(const ::google::protobuf::Message& from) {
8527// @@protoc_insertion_point(generalized_merge_from_start:dmi.SetLogLevelRequest)
8528 GOOGLE_DCHECK_NE(&from, this);
8529 const SetLogLevelRequest* source =
8530 ::google::protobuf::DynamicCastToGenerated<SetLogLevelRequest>(
8531 &from);
8532 if (source == nullptr) {
8533 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.SetLogLevelRequest)
8534 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
8535 } else {
8536 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.SetLogLevelRequest)
8537 MergeFrom(*source);
8538 }
8539}
8540
8541void SetLogLevelRequest::MergeFrom(const SetLogLevelRequest& from) {
8542// @@protoc_insertion_point(class_specific_merge_from_start:dmi.SetLogLevelRequest)
8543 GOOGLE_DCHECK_NE(&from, this);
8544 _internal_metadata_.MergeFrom(from._internal_metadata_);
8545 ::google::protobuf::uint32 cached_has_bits = 0;
8546 (void) cached_has_bits;
8547
8548 loglevels_.MergeFrom(from.loglevels_);
8549 if (from.has_device_uuid()) {
8550 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
8551 }
8552}
8553
8554void SetLogLevelRequest::CopyFrom(const ::google::protobuf::Message& from) {
8555// @@protoc_insertion_point(generalized_copy_from_start:dmi.SetLogLevelRequest)
8556 if (&from == this) return;
8557 Clear();
8558 MergeFrom(from);
8559}
8560
8561void SetLogLevelRequest::CopyFrom(const SetLogLevelRequest& from) {
8562// @@protoc_insertion_point(class_specific_copy_from_start:dmi.SetLogLevelRequest)
8563 if (&from == this) return;
8564 Clear();
8565 MergeFrom(from);
8566}
8567
8568bool SetLogLevelRequest::IsInitialized() const {
8569 return true;
8570}
8571
8572void SetLogLevelRequest::Swap(SetLogLevelRequest* other) {
8573 if (other == this) return;
8574 InternalSwap(other);
8575}
8576void SetLogLevelRequest::InternalSwap(SetLogLevelRequest* other) {
8577 using std::swap;
8578 _internal_metadata_.Swap(&other->_internal_metadata_);
8579 CastToBase(&loglevels_)->InternalSwap(CastToBase(&other->loglevels_));
8580 swap(device_uuid_, other->device_uuid_);
8581}
8582
8583::google::protobuf::Metadata SetLogLevelRequest::GetMetadata() const {
8584 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
8585 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
8586}
8587
8588
8589// ===================================================================
8590
8591void SetLogLevelResponse::InitAsDefaultInstance() {
8592 ::dmi::_SetLogLevelResponse_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
8593 ::dmi::Uuid::internal_default_instance());
8594}
8595class SetLogLevelResponse::HasBitSetters {
8596 public:
8597 static const ::dmi::Uuid& device_uuid(const SetLogLevelResponse* msg);
8598};
8599
8600const ::dmi::Uuid&
8601SetLogLevelResponse::HasBitSetters::device_uuid(const SetLogLevelResponse* msg) {
8602 return *msg->device_uuid_;
8603}
8604void SetLogLevelResponse::clear_device_uuid() {
8605 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
8606 delete device_uuid_;
8607 }
8608 device_uuid_ = nullptr;
8609}
8610#if !defined(_MSC_VER) || _MSC_VER >= 1900
8611const int SetLogLevelResponse::kDeviceUuidFieldNumber;
8612const int SetLogLevelResponse::kStatusFieldNumber;
8613const int SetLogLevelResponse::kReasonFieldNumber;
8614const int SetLogLevelResponse::kReasonDetailFieldNumber;
8615#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
8616
8617SetLogLevelResponse::SetLogLevelResponse()
8618 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
8619 SharedCtor();
8620 // @@protoc_insertion_point(constructor:dmi.SetLogLevelResponse)
8621}
8622SetLogLevelResponse::SetLogLevelResponse(const SetLogLevelResponse& from)
8623 : ::google::protobuf::Message(),
8624 _internal_metadata_(nullptr) {
8625 _internal_metadata_.MergeFrom(from._internal_metadata_);
8626 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8627 if (from.reason_detail().size() > 0) {
8628 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
8629 }
8630 if (from.has_device_uuid()) {
8631 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
8632 } else {
8633 device_uuid_ = nullptr;
8634 }
8635 ::memcpy(&status_, &from.status_,
8636 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
8637 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
8638 // @@protoc_insertion_point(copy_constructor:dmi.SetLogLevelResponse)
8639}
8640
8641void SetLogLevelResponse::SharedCtor() {
8642 ::google::protobuf::internal::InitSCC(
8643 &scc_info_SetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
8644 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8645 ::memset(&device_uuid_, 0, static_cast<size_t>(
8646 reinterpret_cast<char*>(&reason_) -
8647 reinterpret_cast<char*>(&device_uuid_)) + sizeof(reason_));
8648}
8649
8650SetLogLevelResponse::~SetLogLevelResponse() {
8651 // @@protoc_insertion_point(destructor:dmi.SetLogLevelResponse)
8652 SharedDtor();
8653}
8654
8655void SetLogLevelResponse::SharedDtor() {
8656 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8657 if (this != internal_default_instance()) delete device_uuid_;
8658}
8659
8660void SetLogLevelResponse::SetCachedSize(int size) const {
8661 _cached_size_.Set(size);
8662}
8663const SetLogLevelResponse& SetLogLevelResponse::default_instance() {
8664 ::google::protobuf::internal::InitSCC(&::scc_info_SetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
8665 return *internal_default_instance();
8666}
8667
8668
8669void SetLogLevelResponse::Clear() {
8670// @@protoc_insertion_point(message_clear_start:dmi.SetLogLevelResponse)
8671 ::google::protobuf::uint32 cached_has_bits = 0;
8672 // Prevent compiler warnings about cached_has_bits being unused
8673 (void) cached_has_bits;
8674
8675 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8676 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
8677 delete device_uuid_;
8678 }
8679 device_uuid_ = nullptr;
8680 ::memset(&status_, 0, static_cast<size_t>(
8681 reinterpret_cast<char*>(&reason_) -
8682 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
8683 _internal_metadata_.Clear();
8684}
8685
8686#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8687const char* SetLogLevelResponse::_InternalParse(const char* begin, const char* end, void* object,
8688 ::google::protobuf::internal::ParseContext* ctx) {
8689 auto msg = static_cast<SetLogLevelResponse*>(object);
8690 ::google::protobuf::int32 size; (void)size;
8691 int depth; (void)depth;
8692 ::google::protobuf::uint32 tag;
8693 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
8694 auto ptr = begin;
8695 while (ptr < end) {
8696 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
8697 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
8698 switch (tag >> 3) {
8699 // .dmi.Uuid device_uuid = 1;
8700 case 1: {
8701 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
8702 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
8703 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
8704 parser_till_end = ::dmi::Uuid::_InternalParse;
8705 object = msg->mutable_device_uuid();
8706 if (size > end - ptr) goto len_delim_till_end;
8707 ptr += size;
8708 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
8709 {parser_till_end, object}, ptr - size, ptr));
8710 break;
8711 }
8712 // .dmi.Status status = 2;
8713 case 2: {
8714 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
8715 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
8716 msg->set_status(static_cast<::dmi::Status>(val));
8717 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
8718 break;
8719 }
8720 // .dmi.SetLogLevelResponse.Reason reason = 3;
8721 case 3: {
8722 if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual;
8723 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
8724 msg->set_reason(static_cast<::dmi::SetLogLevelResponse_Reason>(val));
8725 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
8726 break;
8727 }
8728 // string reason_detail = 4;
8729 case 4: {
8730 if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual;
8731 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
8732 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
8733 ctx->extra_parse_data().SetFieldName("dmi.SetLogLevelResponse.reason_detail");
8734 object = msg->mutable_reason_detail();
8735 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
8736 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
8737 goto string_till_end;
8738 }
8739 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
8740 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
8741 ptr += size;
8742 break;
8743 }
8744 default: {
8745 handle_unusual:
8746 if ((tag & 7) == 4 || tag == 0) {
8747 ctx->EndGroup(tag);
8748 return ptr;
8749 }
8750 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
8751 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
8752 ptr = res.first;
8753 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
8754 if (res.second) return ptr;
8755 }
8756 } // switch
8757 } // while
8758 return ptr;
8759string_till_end:
8760 static_cast<::std::string*>(object)->clear();
8761 static_cast<::std::string*>(object)->reserve(size);
8762 goto len_delim_till_end;
8763len_delim_till_end:
8764 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
8765 {parser_till_end, object}, size);
8766}
8767#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8768bool SetLogLevelResponse::MergePartialFromCodedStream(
8769 ::google::protobuf::io::CodedInputStream* input) {
8770#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
8771 ::google::protobuf::uint32 tag;
8772 // @@protoc_insertion_point(parse_start:dmi.SetLogLevelResponse)
8773 for (;;) {
8774 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
8775 tag = p.first;
8776 if (!p.second) goto handle_unusual;
8777 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
8778 // .dmi.Uuid device_uuid = 1;
8779 case 1: {
8780 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
8781 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
8782 input, mutable_device_uuid()));
8783 } else {
8784 goto handle_unusual;
8785 }
8786 break;
8787 }
8788
8789 // .dmi.Status status = 2;
8790 case 2: {
8791 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
8792 int value = 0;
8793 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8794 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
8795 input, &value)));
8796 set_status(static_cast< ::dmi::Status >(value));
8797 } else {
8798 goto handle_unusual;
8799 }
8800 break;
8801 }
8802
8803 // .dmi.SetLogLevelResponse.Reason reason = 3;
8804 case 3: {
8805 if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) {
8806 int value = 0;
8807 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8808 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
8809 input, &value)));
8810 set_reason(static_cast< ::dmi::SetLogLevelResponse_Reason >(value));
8811 } else {
8812 goto handle_unusual;
8813 }
8814 break;
8815 }
8816
8817 // string reason_detail = 4;
8818 case 4: {
8819 if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
8820 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8821 input, this->mutable_reason_detail()));
8822 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
8823 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
8824 ::google::protobuf::internal::WireFormatLite::PARSE,
8825 "dmi.SetLogLevelResponse.reason_detail"));
8826 } else {
8827 goto handle_unusual;
8828 }
8829 break;
8830 }
8831
8832 default: {
8833 handle_unusual:
8834 if (tag == 0) {
8835 goto success;
8836 }
8837 DO_(::google::protobuf::internal::WireFormat::SkipField(
8838 input, tag, _internal_metadata_.mutable_unknown_fields()));
8839 break;
8840 }
8841 }
8842 }
8843success:
8844 // @@protoc_insertion_point(parse_success:dmi.SetLogLevelResponse)
8845 return true;
8846failure:
8847 // @@protoc_insertion_point(parse_failure:dmi.SetLogLevelResponse)
8848 return false;
8849#undef DO_
8850}
8851#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8852
8853void SetLogLevelResponse::SerializeWithCachedSizes(
8854 ::google::protobuf::io::CodedOutputStream* output) const {
8855 // @@protoc_insertion_point(serialize_start:dmi.SetLogLevelResponse)
8856 ::google::protobuf::uint32 cached_has_bits = 0;
8857 (void) cached_has_bits;
8858
8859 // .dmi.Uuid device_uuid = 1;
8860 if (this->has_device_uuid()) {
8861 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
8862 1, HasBitSetters::device_uuid(this), output);
8863 }
8864
8865 // .dmi.Status status = 2;
8866 if (this->status() != 0) {
8867 ::google::protobuf::internal::WireFormatLite::WriteEnum(
8868 2, this->status(), output);
8869 }
8870
8871 // .dmi.SetLogLevelResponse.Reason reason = 3;
8872 if (this->reason() != 0) {
8873 ::google::protobuf::internal::WireFormatLite::WriteEnum(
8874 3, this->reason(), output);
8875 }
8876
8877 // string reason_detail = 4;
8878 if (this->reason_detail().size() > 0) {
8879 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
8880 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
8881 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
8882 "dmi.SetLogLevelResponse.reason_detail");
8883 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
8884 4, this->reason_detail(), output);
8885 }
8886
8887 if (_internal_metadata_.have_unknown_fields()) {
8888 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
8889 _internal_metadata_.unknown_fields(), output);
8890 }
8891 // @@protoc_insertion_point(serialize_end:dmi.SetLogLevelResponse)
8892}
8893
8894::google::protobuf::uint8* SetLogLevelResponse::InternalSerializeWithCachedSizesToArray(
8895 ::google::protobuf::uint8* target) const {
8896 // @@protoc_insertion_point(serialize_to_array_start:dmi.SetLogLevelResponse)
8897 ::google::protobuf::uint32 cached_has_bits = 0;
8898 (void) cached_has_bits;
8899
8900 // .dmi.Uuid device_uuid = 1;
8901 if (this->has_device_uuid()) {
8902 target = ::google::protobuf::internal::WireFormatLite::
8903 InternalWriteMessageToArray(
8904 1, HasBitSetters::device_uuid(this), target);
8905 }
8906
8907 // .dmi.Status status = 2;
8908 if (this->status() != 0) {
8909 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
8910 2, this->status(), target);
8911 }
8912
8913 // .dmi.SetLogLevelResponse.Reason reason = 3;
8914 if (this->reason() != 0) {
8915 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
8916 3, this->reason(), target);
8917 }
8918
8919 // string reason_detail = 4;
8920 if (this->reason_detail().size() > 0) {
8921 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
8922 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
8923 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
8924 "dmi.SetLogLevelResponse.reason_detail");
8925 target =
8926 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
8927 4, this->reason_detail(), target);
8928 }
8929
8930 if (_internal_metadata_.have_unknown_fields()) {
8931 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
8932 _internal_metadata_.unknown_fields(), target);
8933 }
8934 // @@protoc_insertion_point(serialize_to_array_end:dmi.SetLogLevelResponse)
8935 return target;
8936}
8937
8938size_t SetLogLevelResponse::ByteSizeLong() const {
8939// @@protoc_insertion_point(message_byte_size_start:dmi.SetLogLevelResponse)
8940 size_t total_size = 0;
8941
8942 if (_internal_metadata_.have_unknown_fields()) {
8943 total_size +=
8944 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
8945 _internal_metadata_.unknown_fields());
8946 }
8947 ::google::protobuf::uint32 cached_has_bits = 0;
8948 // Prevent compiler warnings about cached_has_bits being unused
8949 (void) cached_has_bits;
8950
8951 // string reason_detail = 4;
8952 if (this->reason_detail().size() > 0) {
8953 total_size += 1 +
8954 ::google::protobuf::internal::WireFormatLite::StringSize(
8955 this->reason_detail());
8956 }
8957
8958 // .dmi.Uuid device_uuid = 1;
8959 if (this->has_device_uuid()) {
8960 total_size += 1 +
8961 ::google::protobuf::internal::WireFormatLite::MessageSize(
8962 *device_uuid_);
8963 }
8964
8965 // .dmi.Status status = 2;
8966 if (this->status() != 0) {
8967 total_size += 1 +
8968 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
8969 }
8970
8971 // .dmi.SetLogLevelResponse.Reason reason = 3;
8972 if (this->reason() != 0) {
8973 total_size += 1 +
8974 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
8975 }
8976
8977 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
8978 SetCachedSize(cached_size);
8979 return total_size;
8980}
8981
8982void SetLogLevelResponse::MergeFrom(const ::google::protobuf::Message& from) {
8983// @@protoc_insertion_point(generalized_merge_from_start:dmi.SetLogLevelResponse)
8984 GOOGLE_DCHECK_NE(&from, this);
8985 const SetLogLevelResponse* source =
8986 ::google::protobuf::DynamicCastToGenerated<SetLogLevelResponse>(
8987 &from);
8988 if (source == nullptr) {
8989 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.SetLogLevelResponse)
8990 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
8991 } else {
8992 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.SetLogLevelResponse)
8993 MergeFrom(*source);
8994 }
8995}
8996
8997void SetLogLevelResponse::MergeFrom(const SetLogLevelResponse& from) {
8998// @@protoc_insertion_point(class_specific_merge_from_start:dmi.SetLogLevelResponse)
8999 GOOGLE_DCHECK_NE(&from, this);
9000 _internal_metadata_.MergeFrom(from._internal_metadata_);
9001 ::google::protobuf::uint32 cached_has_bits = 0;
9002 (void) cached_has_bits;
9003
9004 if (from.reason_detail().size() > 0) {
9005
9006 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
9007 }
9008 if (from.has_device_uuid()) {
9009 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
9010 }
9011 if (from.status() != 0) {
9012 set_status(from.status());
9013 }
9014 if (from.reason() != 0) {
9015 set_reason(from.reason());
9016 }
9017}
9018
9019void SetLogLevelResponse::CopyFrom(const ::google::protobuf::Message& from) {
9020// @@protoc_insertion_point(generalized_copy_from_start:dmi.SetLogLevelResponse)
9021 if (&from == this) return;
9022 Clear();
9023 MergeFrom(from);
9024}
9025
9026void SetLogLevelResponse::CopyFrom(const SetLogLevelResponse& from) {
9027// @@protoc_insertion_point(class_specific_copy_from_start:dmi.SetLogLevelResponse)
9028 if (&from == this) return;
9029 Clear();
9030 MergeFrom(from);
9031}
9032
9033bool SetLogLevelResponse::IsInitialized() const {
9034 return true;
9035}
9036
9037void SetLogLevelResponse::Swap(SetLogLevelResponse* other) {
9038 if (other == this) return;
9039 InternalSwap(other);
9040}
9041void SetLogLevelResponse::InternalSwap(SetLogLevelResponse* other) {
9042 using std::swap;
9043 _internal_metadata_.Swap(&other->_internal_metadata_);
9044 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
9045 GetArenaNoVirtual());
9046 swap(device_uuid_, other->device_uuid_);
9047 swap(status_, other->status_);
9048 swap(reason_, other->reason_);
9049}
9050
9051::google::protobuf::Metadata SetLogLevelResponse::GetMetadata() const {
9052 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
9053 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
9054}
9055
9056
9057// ===================================================================
9058
9059void GetLogLevelRequest::InitAsDefaultInstance() {
9060 ::dmi::_GetLogLevelRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
9061 ::dmi::Uuid::internal_default_instance());
9062}
9063class GetLogLevelRequest::HasBitSetters {
9064 public:
9065 static const ::dmi::Uuid& device_uuid(const GetLogLevelRequest* msg);
9066};
9067
9068const ::dmi::Uuid&
9069GetLogLevelRequest::HasBitSetters::device_uuid(const GetLogLevelRequest* msg) {
9070 return *msg->device_uuid_;
9071}
9072void GetLogLevelRequest::clear_device_uuid() {
9073 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
9074 delete device_uuid_;
9075 }
9076 device_uuid_ = nullptr;
9077}
9078#if !defined(_MSC_VER) || _MSC_VER >= 1900
9079const int GetLogLevelRequest::kDeviceUuidFieldNumber;
9080const int GetLogLevelRequest::kEntitiesFieldNumber;
9081#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
9082
9083GetLogLevelRequest::GetLogLevelRequest()
9084 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
9085 SharedCtor();
9086 // @@protoc_insertion_point(constructor:dmi.GetLogLevelRequest)
9087}
9088GetLogLevelRequest::GetLogLevelRequest(const GetLogLevelRequest& from)
9089 : ::google::protobuf::Message(),
9090 _internal_metadata_(nullptr),
9091 entities_(from.entities_) {
9092 _internal_metadata_.MergeFrom(from._internal_metadata_);
9093 if (from.has_device_uuid()) {
9094 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
9095 } else {
9096 device_uuid_ = nullptr;
9097 }
9098 // @@protoc_insertion_point(copy_constructor:dmi.GetLogLevelRequest)
9099}
9100
9101void GetLogLevelRequest::SharedCtor() {
9102 ::google::protobuf::internal::InitSCC(
9103 &scc_info_GetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
9104 device_uuid_ = nullptr;
9105}
9106
9107GetLogLevelRequest::~GetLogLevelRequest() {
9108 // @@protoc_insertion_point(destructor:dmi.GetLogLevelRequest)
9109 SharedDtor();
9110}
9111
9112void GetLogLevelRequest::SharedDtor() {
9113 if (this != internal_default_instance()) delete device_uuid_;
9114}
9115
9116void GetLogLevelRequest::SetCachedSize(int size) const {
9117 _cached_size_.Set(size);
9118}
9119const GetLogLevelRequest& GetLogLevelRequest::default_instance() {
9120 ::google::protobuf::internal::InitSCC(&::scc_info_GetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
9121 return *internal_default_instance();
9122}
9123
9124
9125void GetLogLevelRequest::Clear() {
9126// @@protoc_insertion_point(message_clear_start:dmi.GetLogLevelRequest)
9127 ::google::protobuf::uint32 cached_has_bits = 0;
9128 // Prevent compiler warnings about cached_has_bits being unused
9129 (void) cached_has_bits;
9130
9131 entities_.Clear();
9132 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
9133 delete device_uuid_;
9134 }
9135 device_uuid_ = nullptr;
9136 _internal_metadata_.Clear();
9137}
9138
9139#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
9140const char* GetLogLevelRequest::_InternalParse(const char* begin, const char* end, void* object,
9141 ::google::protobuf::internal::ParseContext* ctx) {
9142 auto msg = static_cast<GetLogLevelRequest*>(object);
9143 ::google::protobuf::int32 size; (void)size;
9144 int depth; (void)depth;
9145 ::google::protobuf::uint32 tag;
9146 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
9147 auto ptr = begin;
9148 while (ptr < end) {
9149 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
9150 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
9151 switch (tag >> 3) {
9152 // .dmi.Uuid device_uuid = 1;
9153 case 1: {
9154 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
9155 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
9156 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
9157 parser_till_end = ::dmi::Uuid::_InternalParse;
9158 object = msg->mutable_device_uuid();
9159 if (size > end - ptr) goto len_delim_till_end;
9160 ptr += size;
9161 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
9162 {parser_till_end, object}, ptr - size, ptr));
9163 break;
9164 }
9165 // repeated string entities = 2;
9166 case 2: {
9167 if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
9168 do {
9169 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
9170 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
9171 ctx->extra_parse_data().SetFieldName("dmi.GetLogLevelRequest.entities");
9172 object = msg->add_entities();
9173 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
9174 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
9175 goto string_till_end;
9176 }
9177 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
9178 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
9179 ptr += size;
9180 if (ptr >= end) break;
9181 } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1));
9182 break;
9183 }
9184 default: {
9185 handle_unusual:
9186 if ((tag & 7) == 4 || tag == 0) {
9187 ctx->EndGroup(tag);
9188 return ptr;
9189 }
9190 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
9191 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
9192 ptr = res.first;
9193 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
9194 if (res.second) return ptr;
9195 }
9196 } // switch
9197 } // while
9198 return ptr;
9199string_till_end:
9200 static_cast<::std::string*>(object)->clear();
9201 static_cast<::std::string*>(object)->reserve(size);
9202 goto len_delim_till_end;
9203len_delim_till_end:
9204 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
9205 {parser_till_end, object}, size);
9206}
9207#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
9208bool GetLogLevelRequest::MergePartialFromCodedStream(
9209 ::google::protobuf::io::CodedInputStream* input) {
9210#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
9211 ::google::protobuf::uint32 tag;
9212 // @@protoc_insertion_point(parse_start:dmi.GetLogLevelRequest)
9213 for (;;) {
9214 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
9215 tag = p.first;
9216 if (!p.second) goto handle_unusual;
9217 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
9218 // .dmi.Uuid device_uuid = 1;
9219 case 1: {
9220 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
9221 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
9222 input, mutable_device_uuid()));
9223 } else {
9224 goto handle_unusual;
9225 }
9226 break;
9227 }
9228
9229 // repeated string entities = 2;
9230 case 2: {
9231 if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
9232 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
9233 input, this->add_entities()));
9234 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
9235 this->entities(this->entities_size() - 1).data(),
9236 static_cast<int>(this->entities(this->entities_size() - 1).length()),
9237 ::google::protobuf::internal::WireFormatLite::PARSE,
9238 "dmi.GetLogLevelRequest.entities"));
9239 } else {
9240 goto handle_unusual;
9241 }
9242 break;
9243 }
9244
9245 default: {
9246 handle_unusual:
9247 if (tag == 0) {
9248 goto success;
9249 }
9250 DO_(::google::protobuf::internal::WireFormat::SkipField(
9251 input, tag, _internal_metadata_.mutable_unknown_fields()));
9252 break;
9253 }
9254 }
9255 }
9256success:
9257 // @@protoc_insertion_point(parse_success:dmi.GetLogLevelRequest)
9258 return true;
9259failure:
9260 // @@protoc_insertion_point(parse_failure:dmi.GetLogLevelRequest)
9261 return false;
9262#undef DO_
9263}
9264#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
9265
9266void GetLogLevelRequest::SerializeWithCachedSizes(
9267 ::google::protobuf::io::CodedOutputStream* output) const {
9268 // @@protoc_insertion_point(serialize_start:dmi.GetLogLevelRequest)
9269 ::google::protobuf::uint32 cached_has_bits = 0;
9270 (void) cached_has_bits;
9271
9272 // .dmi.Uuid device_uuid = 1;
9273 if (this->has_device_uuid()) {
9274 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9275 1, HasBitSetters::device_uuid(this), output);
9276 }
9277
9278 // repeated string entities = 2;
9279 for (int i = 0, n = this->entities_size(); i < n; i++) {
9280 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
9281 this->entities(i).data(), static_cast<int>(this->entities(i).length()),
9282 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
9283 "dmi.GetLogLevelRequest.entities");
9284 ::google::protobuf::internal::WireFormatLite::WriteString(
9285 2, this->entities(i), output);
9286 }
9287
9288 if (_internal_metadata_.have_unknown_fields()) {
9289 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
9290 _internal_metadata_.unknown_fields(), output);
9291 }
9292 // @@protoc_insertion_point(serialize_end:dmi.GetLogLevelRequest)
9293}
9294
9295::google::protobuf::uint8* GetLogLevelRequest::InternalSerializeWithCachedSizesToArray(
9296 ::google::protobuf::uint8* target) const {
9297 // @@protoc_insertion_point(serialize_to_array_start:dmi.GetLogLevelRequest)
9298 ::google::protobuf::uint32 cached_has_bits = 0;
9299 (void) cached_has_bits;
9300
9301 // .dmi.Uuid device_uuid = 1;
9302 if (this->has_device_uuid()) {
9303 target = ::google::protobuf::internal::WireFormatLite::
9304 InternalWriteMessageToArray(
9305 1, HasBitSetters::device_uuid(this), target);
9306 }
9307
9308 // repeated string entities = 2;
9309 for (int i = 0, n = this->entities_size(); i < n; i++) {
9310 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
9311 this->entities(i).data(), static_cast<int>(this->entities(i).length()),
9312 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
9313 "dmi.GetLogLevelRequest.entities");
9314 target = ::google::protobuf::internal::WireFormatLite::
9315 WriteStringToArray(2, this->entities(i), target);
9316 }
9317
9318 if (_internal_metadata_.have_unknown_fields()) {
9319 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
9320 _internal_metadata_.unknown_fields(), target);
9321 }
9322 // @@protoc_insertion_point(serialize_to_array_end:dmi.GetLogLevelRequest)
9323 return target;
9324}
9325
9326size_t GetLogLevelRequest::ByteSizeLong() const {
9327// @@protoc_insertion_point(message_byte_size_start:dmi.GetLogLevelRequest)
9328 size_t total_size = 0;
9329
9330 if (_internal_metadata_.have_unknown_fields()) {
9331 total_size +=
9332 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
9333 _internal_metadata_.unknown_fields());
9334 }
9335 ::google::protobuf::uint32 cached_has_bits = 0;
9336 // Prevent compiler warnings about cached_has_bits being unused
9337 (void) cached_has_bits;
9338
9339 // repeated string entities = 2;
9340 total_size += 1 *
9341 ::google::protobuf::internal::FromIntSize(this->entities_size());
9342 for (int i = 0, n = this->entities_size(); i < n; i++) {
9343 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
9344 this->entities(i));
9345 }
9346
9347 // .dmi.Uuid device_uuid = 1;
9348 if (this->has_device_uuid()) {
9349 total_size += 1 +
9350 ::google::protobuf::internal::WireFormatLite::MessageSize(
9351 *device_uuid_);
9352 }
9353
9354 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
9355 SetCachedSize(cached_size);
9356 return total_size;
9357}
9358
9359void GetLogLevelRequest::MergeFrom(const ::google::protobuf::Message& from) {
9360// @@protoc_insertion_point(generalized_merge_from_start:dmi.GetLogLevelRequest)
9361 GOOGLE_DCHECK_NE(&from, this);
9362 const GetLogLevelRequest* source =
9363 ::google::protobuf::DynamicCastToGenerated<GetLogLevelRequest>(
9364 &from);
9365 if (source == nullptr) {
9366 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.GetLogLevelRequest)
9367 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
9368 } else {
9369 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.GetLogLevelRequest)
9370 MergeFrom(*source);
9371 }
9372}
9373
9374void GetLogLevelRequest::MergeFrom(const GetLogLevelRequest& from) {
9375// @@protoc_insertion_point(class_specific_merge_from_start:dmi.GetLogLevelRequest)
9376 GOOGLE_DCHECK_NE(&from, this);
9377 _internal_metadata_.MergeFrom(from._internal_metadata_);
9378 ::google::protobuf::uint32 cached_has_bits = 0;
9379 (void) cached_has_bits;
9380
9381 entities_.MergeFrom(from.entities_);
9382 if (from.has_device_uuid()) {
9383 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
9384 }
9385}
9386
9387void GetLogLevelRequest::CopyFrom(const ::google::protobuf::Message& from) {
9388// @@protoc_insertion_point(generalized_copy_from_start:dmi.GetLogLevelRequest)
9389 if (&from == this) return;
9390 Clear();
9391 MergeFrom(from);
9392}
9393
9394void GetLogLevelRequest::CopyFrom(const GetLogLevelRequest& from) {
9395// @@protoc_insertion_point(class_specific_copy_from_start:dmi.GetLogLevelRequest)
9396 if (&from == this) return;
9397 Clear();
9398 MergeFrom(from);
9399}
9400
9401bool GetLogLevelRequest::IsInitialized() const {
9402 return true;
9403}
9404
9405void GetLogLevelRequest::Swap(GetLogLevelRequest* other) {
9406 if (other == this) return;
9407 InternalSwap(other);
9408}
9409void GetLogLevelRequest::InternalSwap(GetLogLevelRequest* other) {
9410 using std::swap;
9411 _internal_metadata_.Swap(&other->_internal_metadata_);
9412 entities_.InternalSwap(CastToBase(&other->entities_));
9413 swap(device_uuid_, other->device_uuid_);
9414}
9415
9416::google::protobuf::Metadata GetLogLevelRequest::GetMetadata() const {
9417 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
9418 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
9419}
9420
9421
9422// ===================================================================
9423
9424void GetLogLevelResponse::InitAsDefaultInstance() {
9425 ::dmi::_GetLogLevelResponse_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
9426 ::dmi::Uuid::internal_default_instance());
9427}
9428class GetLogLevelResponse::HasBitSetters {
9429 public:
9430 static const ::dmi::Uuid& device_uuid(const GetLogLevelResponse* msg);
9431};
9432
9433const ::dmi::Uuid&
9434GetLogLevelResponse::HasBitSetters::device_uuid(const GetLogLevelResponse* msg) {
9435 return *msg->device_uuid_;
9436}
9437void GetLogLevelResponse::clear_device_uuid() {
9438 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
9439 delete device_uuid_;
9440 }
9441 device_uuid_ = nullptr;
9442}
9443#if !defined(_MSC_VER) || _MSC_VER >= 1900
9444const int GetLogLevelResponse::kDeviceUuidFieldNumber;
9445const int GetLogLevelResponse::kLogLevelsFieldNumber;
9446const int GetLogLevelResponse::kStatusFieldNumber;
9447const int GetLogLevelResponse::kReasonFieldNumber;
9448const int GetLogLevelResponse::kReasonDetailFieldNumber;
9449#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
9450
9451GetLogLevelResponse::GetLogLevelResponse()
9452 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
9453 SharedCtor();
9454 // @@protoc_insertion_point(constructor:dmi.GetLogLevelResponse)
9455}
9456GetLogLevelResponse::GetLogLevelResponse(const GetLogLevelResponse& from)
9457 : ::google::protobuf::Message(),
9458 _internal_metadata_(nullptr),
9459 loglevels_(from.loglevels_) {
9460 _internal_metadata_.MergeFrom(from._internal_metadata_);
9461 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9462 if (from.reason_detail().size() > 0) {
9463 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
9464 }
9465 if (from.has_device_uuid()) {
9466 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
9467 } else {
9468 device_uuid_ = nullptr;
9469 }
9470 ::memcpy(&status_, &from.status_,
9471 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
9472 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
9473 // @@protoc_insertion_point(copy_constructor:dmi.GetLogLevelResponse)
9474}
9475
9476void GetLogLevelResponse::SharedCtor() {
9477 ::google::protobuf::internal::InitSCC(
9478 &scc_info_GetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
9479 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9480 ::memset(&device_uuid_, 0, static_cast<size_t>(
9481 reinterpret_cast<char*>(&reason_) -
9482 reinterpret_cast<char*>(&device_uuid_)) + sizeof(reason_));
9483}
9484
9485GetLogLevelResponse::~GetLogLevelResponse() {
9486 // @@protoc_insertion_point(destructor:dmi.GetLogLevelResponse)
9487 SharedDtor();
9488}
9489
9490void GetLogLevelResponse::SharedDtor() {
9491 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9492 if (this != internal_default_instance()) delete device_uuid_;
9493}
9494
9495void GetLogLevelResponse::SetCachedSize(int size) const {
9496 _cached_size_.Set(size);
9497}
9498const GetLogLevelResponse& GetLogLevelResponse::default_instance() {
9499 ::google::protobuf::internal::InitSCC(&::scc_info_GetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
9500 return *internal_default_instance();
9501}
9502
9503
9504void GetLogLevelResponse::Clear() {
9505// @@protoc_insertion_point(message_clear_start:dmi.GetLogLevelResponse)
9506 ::google::protobuf::uint32 cached_has_bits = 0;
9507 // Prevent compiler warnings about cached_has_bits being unused
9508 (void) cached_has_bits;
9509
9510 loglevels_.Clear();
9511 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9512 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
9513 delete device_uuid_;
9514 }
9515 device_uuid_ = nullptr;
9516 ::memset(&status_, 0, static_cast<size_t>(
9517 reinterpret_cast<char*>(&reason_) -
9518 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
9519 _internal_metadata_.Clear();
9520}
9521
9522#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
9523const char* GetLogLevelResponse::_InternalParse(const char* begin, const char* end, void* object,
9524 ::google::protobuf::internal::ParseContext* ctx) {
9525 auto msg = static_cast<GetLogLevelResponse*>(object);
9526 ::google::protobuf::int32 size; (void)size;
9527 int depth; (void)depth;
9528 ::google::protobuf::uint32 tag;
9529 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
9530 auto ptr = begin;
9531 while (ptr < end) {
9532 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
9533 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
9534 switch (tag >> 3) {
9535 // .dmi.Uuid device_uuid = 1;
9536 case 1: {
9537 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
9538 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
9539 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
9540 parser_till_end = ::dmi::Uuid::_InternalParse;
9541 object = msg->mutable_device_uuid();
9542 if (size > end - ptr) goto len_delim_till_end;
9543 ptr += size;
9544 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
9545 {parser_till_end, object}, ptr - size, ptr));
9546 break;
9547 }
9548 // repeated .dmi.EntitiesLogLevel logLevels = 2;
9549 case 2: {
9550 if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
9551 do {
9552 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
9553 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
9554 parser_till_end = ::dmi::EntitiesLogLevel::_InternalParse;
9555 object = msg->add_loglevels();
9556 if (size > end - ptr) goto len_delim_till_end;
9557 ptr += size;
9558 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
9559 {parser_till_end, object}, ptr - size, ptr));
9560 if (ptr >= end) break;
9561 } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1));
9562 break;
9563 }
9564 // .dmi.Status status = 3;
9565 case 3: {
9566 if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual;
9567 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
9568 msg->set_status(static_cast<::dmi::Status>(val));
9569 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
9570 break;
9571 }
9572 // .dmi.GetLogLevelResponse.Reason reason = 4;
9573 case 4: {
9574 if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual;
9575 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
9576 msg->set_reason(static_cast<::dmi::GetLogLevelResponse_Reason>(val));
9577 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
9578 break;
9579 }
9580 // string reason_detail = 5;
9581 case 5: {
9582 if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual;
9583 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
9584 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
9585 ctx->extra_parse_data().SetFieldName("dmi.GetLogLevelResponse.reason_detail");
9586 object = msg->mutable_reason_detail();
9587 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
9588 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
9589 goto string_till_end;
9590 }
9591 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
9592 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
9593 ptr += size;
9594 break;
9595 }
9596 default: {
9597 handle_unusual:
9598 if ((tag & 7) == 4 || tag == 0) {
9599 ctx->EndGroup(tag);
9600 return ptr;
9601 }
9602 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
9603 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
9604 ptr = res.first;
9605 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
9606 if (res.second) return ptr;
9607 }
9608 } // switch
9609 } // while
9610 return ptr;
9611string_till_end:
9612 static_cast<::std::string*>(object)->clear();
9613 static_cast<::std::string*>(object)->reserve(size);
9614 goto len_delim_till_end;
9615len_delim_till_end:
9616 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
9617 {parser_till_end, object}, size);
9618}
9619#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
9620bool GetLogLevelResponse::MergePartialFromCodedStream(
9621 ::google::protobuf::io::CodedInputStream* input) {
9622#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
9623 ::google::protobuf::uint32 tag;
9624 // @@protoc_insertion_point(parse_start:dmi.GetLogLevelResponse)
9625 for (;;) {
9626 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
9627 tag = p.first;
9628 if (!p.second) goto handle_unusual;
9629 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
9630 // .dmi.Uuid device_uuid = 1;
9631 case 1: {
9632 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
9633 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
9634 input, mutable_device_uuid()));
9635 } else {
9636 goto handle_unusual;
9637 }
9638 break;
9639 }
9640
9641 // repeated .dmi.EntitiesLogLevel logLevels = 2;
9642 case 2: {
9643 if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
9644 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
9645 input, add_loglevels()));
9646 } else {
9647 goto handle_unusual;
9648 }
9649 break;
9650 }
9651
9652 // .dmi.Status status = 3;
9653 case 3: {
9654 if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) {
9655 int value = 0;
9656 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9657 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
9658 input, &value)));
9659 set_status(static_cast< ::dmi::Status >(value));
9660 } else {
9661 goto handle_unusual;
9662 }
9663 break;
9664 }
9665
9666 // .dmi.GetLogLevelResponse.Reason reason = 4;
9667 case 4: {
9668 if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) {
9669 int value = 0;
9670 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9671 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
9672 input, &value)));
9673 set_reason(static_cast< ::dmi::GetLogLevelResponse_Reason >(value));
9674 } else {
9675 goto handle_unusual;
9676 }
9677 break;
9678 }
9679
9680 // string reason_detail = 5;
9681 case 5: {
9682 if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) {
9683 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
9684 input, this->mutable_reason_detail()));
9685 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
9686 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
9687 ::google::protobuf::internal::WireFormatLite::PARSE,
9688 "dmi.GetLogLevelResponse.reason_detail"));
9689 } else {
9690 goto handle_unusual;
9691 }
9692 break;
9693 }
9694
9695 default: {
9696 handle_unusual:
9697 if (tag == 0) {
9698 goto success;
9699 }
9700 DO_(::google::protobuf::internal::WireFormat::SkipField(
9701 input, tag, _internal_metadata_.mutable_unknown_fields()));
9702 break;
9703 }
9704 }
9705 }
9706success:
9707 // @@protoc_insertion_point(parse_success:dmi.GetLogLevelResponse)
9708 return true;
9709failure:
9710 // @@protoc_insertion_point(parse_failure:dmi.GetLogLevelResponse)
9711 return false;
9712#undef DO_
9713}
9714#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
9715
9716void GetLogLevelResponse::SerializeWithCachedSizes(
9717 ::google::protobuf::io::CodedOutputStream* output) const {
9718 // @@protoc_insertion_point(serialize_start:dmi.GetLogLevelResponse)
9719 ::google::protobuf::uint32 cached_has_bits = 0;
9720 (void) cached_has_bits;
9721
9722 // .dmi.Uuid device_uuid = 1;
9723 if (this->has_device_uuid()) {
9724 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9725 1, HasBitSetters::device_uuid(this), output);
9726 }
9727
9728 // repeated .dmi.EntitiesLogLevel logLevels = 2;
9729 for (unsigned int i = 0,
9730 n = static_cast<unsigned int>(this->loglevels_size()); i < n; i++) {
9731 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9732 2,
9733 this->loglevels(static_cast<int>(i)),
9734 output);
9735 }
9736
9737 // .dmi.Status status = 3;
9738 if (this->status() != 0) {
9739 ::google::protobuf::internal::WireFormatLite::WriteEnum(
9740 3, this->status(), output);
9741 }
9742
9743 // .dmi.GetLogLevelResponse.Reason reason = 4;
9744 if (this->reason() != 0) {
9745 ::google::protobuf::internal::WireFormatLite::WriteEnum(
9746 4, this->reason(), output);
9747 }
9748
9749 // string reason_detail = 5;
9750 if (this->reason_detail().size() > 0) {
9751 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
9752 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
9753 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
9754 "dmi.GetLogLevelResponse.reason_detail");
9755 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
9756 5, this->reason_detail(), output);
9757 }
9758
9759 if (_internal_metadata_.have_unknown_fields()) {
9760 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
9761 _internal_metadata_.unknown_fields(), output);
9762 }
9763 // @@protoc_insertion_point(serialize_end:dmi.GetLogLevelResponse)
9764}
9765
9766::google::protobuf::uint8* GetLogLevelResponse::InternalSerializeWithCachedSizesToArray(
9767 ::google::protobuf::uint8* target) const {
9768 // @@protoc_insertion_point(serialize_to_array_start:dmi.GetLogLevelResponse)
9769 ::google::protobuf::uint32 cached_has_bits = 0;
9770 (void) cached_has_bits;
9771
9772 // .dmi.Uuid device_uuid = 1;
9773 if (this->has_device_uuid()) {
9774 target = ::google::protobuf::internal::WireFormatLite::
9775 InternalWriteMessageToArray(
9776 1, HasBitSetters::device_uuid(this), target);
9777 }
9778
9779 // repeated .dmi.EntitiesLogLevel logLevels = 2;
9780 for (unsigned int i = 0,
9781 n = static_cast<unsigned int>(this->loglevels_size()); i < n; i++) {
9782 target = ::google::protobuf::internal::WireFormatLite::
9783 InternalWriteMessageToArray(
9784 2, this->loglevels(static_cast<int>(i)), target);
9785 }
9786
9787 // .dmi.Status status = 3;
9788 if (this->status() != 0) {
9789 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
9790 3, this->status(), target);
9791 }
9792
9793 // .dmi.GetLogLevelResponse.Reason reason = 4;
9794 if (this->reason() != 0) {
9795 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
9796 4, this->reason(), target);
9797 }
9798
9799 // string reason_detail = 5;
9800 if (this->reason_detail().size() > 0) {
9801 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
9802 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
9803 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
9804 "dmi.GetLogLevelResponse.reason_detail");
9805 target =
9806 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
9807 5, this->reason_detail(), target);
9808 }
9809
9810 if (_internal_metadata_.have_unknown_fields()) {
9811 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
9812 _internal_metadata_.unknown_fields(), target);
9813 }
9814 // @@protoc_insertion_point(serialize_to_array_end:dmi.GetLogLevelResponse)
9815 return target;
9816}
9817
9818size_t GetLogLevelResponse::ByteSizeLong() const {
9819// @@protoc_insertion_point(message_byte_size_start:dmi.GetLogLevelResponse)
9820 size_t total_size = 0;
9821
9822 if (_internal_metadata_.have_unknown_fields()) {
9823 total_size +=
9824 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
9825 _internal_metadata_.unknown_fields());
9826 }
9827 ::google::protobuf::uint32 cached_has_bits = 0;
9828 // Prevent compiler warnings about cached_has_bits being unused
9829 (void) cached_has_bits;
9830
9831 // repeated .dmi.EntitiesLogLevel logLevels = 2;
9832 {
9833 unsigned int count = static_cast<unsigned int>(this->loglevels_size());
9834 total_size += 1UL * count;
9835 for (unsigned int i = 0; i < count; i++) {
9836 total_size +=
9837 ::google::protobuf::internal::WireFormatLite::MessageSize(
9838 this->loglevels(static_cast<int>(i)));
9839 }
9840 }
9841
9842 // string reason_detail = 5;
9843 if (this->reason_detail().size() > 0) {
9844 total_size += 1 +
9845 ::google::protobuf::internal::WireFormatLite::StringSize(
9846 this->reason_detail());
9847 }
9848
9849 // .dmi.Uuid device_uuid = 1;
9850 if (this->has_device_uuid()) {
9851 total_size += 1 +
9852 ::google::protobuf::internal::WireFormatLite::MessageSize(
9853 *device_uuid_);
9854 }
9855
9856 // .dmi.Status status = 3;
9857 if (this->status() != 0) {
9858 total_size += 1 +
9859 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
9860 }
9861
9862 // .dmi.GetLogLevelResponse.Reason reason = 4;
9863 if (this->reason() != 0) {
9864 total_size += 1 +
9865 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
9866 }
9867
9868 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
9869 SetCachedSize(cached_size);
9870 return total_size;
9871}
9872
9873void GetLogLevelResponse::MergeFrom(const ::google::protobuf::Message& from) {
9874// @@protoc_insertion_point(generalized_merge_from_start:dmi.GetLogLevelResponse)
9875 GOOGLE_DCHECK_NE(&from, this);
9876 const GetLogLevelResponse* source =
9877 ::google::protobuf::DynamicCastToGenerated<GetLogLevelResponse>(
9878 &from);
9879 if (source == nullptr) {
9880 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.GetLogLevelResponse)
9881 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
9882 } else {
9883 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.GetLogLevelResponse)
9884 MergeFrom(*source);
9885 }
9886}
9887
9888void GetLogLevelResponse::MergeFrom(const GetLogLevelResponse& from) {
9889// @@protoc_insertion_point(class_specific_merge_from_start:dmi.GetLogLevelResponse)
9890 GOOGLE_DCHECK_NE(&from, this);
9891 _internal_metadata_.MergeFrom(from._internal_metadata_);
9892 ::google::protobuf::uint32 cached_has_bits = 0;
9893 (void) cached_has_bits;
9894
9895 loglevels_.MergeFrom(from.loglevels_);
9896 if (from.reason_detail().size() > 0) {
9897
9898 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
9899 }
9900 if (from.has_device_uuid()) {
9901 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
9902 }
9903 if (from.status() != 0) {
9904 set_status(from.status());
9905 }
9906 if (from.reason() != 0) {
9907 set_reason(from.reason());
9908 }
9909}
9910
9911void GetLogLevelResponse::CopyFrom(const ::google::protobuf::Message& from) {
9912// @@protoc_insertion_point(generalized_copy_from_start:dmi.GetLogLevelResponse)
9913 if (&from == this) return;
9914 Clear();
9915 MergeFrom(from);
9916}
9917
9918void GetLogLevelResponse::CopyFrom(const GetLogLevelResponse& from) {
9919// @@protoc_insertion_point(class_specific_copy_from_start:dmi.GetLogLevelResponse)
9920 if (&from == this) return;
9921 Clear();
9922 MergeFrom(from);
9923}
9924
9925bool GetLogLevelResponse::IsInitialized() const {
9926 return true;
9927}
9928
9929void GetLogLevelResponse::Swap(GetLogLevelResponse* other) {
9930 if (other == this) return;
9931 InternalSwap(other);
9932}
9933void GetLogLevelResponse::InternalSwap(GetLogLevelResponse* other) {
9934 using std::swap;
9935 _internal_metadata_.Swap(&other->_internal_metadata_);
9936 CastToBase(&loglevels_)->InternalSwap(CastToBase(&other->loglevels_));
9937 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
9938 GetArenaNoVirtual());
9939 swap(device_uuid_, other->device_uuid_);
9940 swap(status_, other->status_);
9941 swap(reason_, other->reason_);
9942}
9943
9944::google::protobuf::Metadata GetLogLevelResponse::GetMetadata() const {
9945 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
9946 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
9947}
9948
9949
9950// ===================================================================
9951
9952void GetLoggableEntitiesRequest::InitAsDefaultInstance() {
9953 ::dmi::_GetLoggableEntitiesRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
9954 ::dmi::Uuid::internal_default_instance());
9955}
9956class GetLoggableEntitiesRequest::HasBitSetters {
9957 public:
9958 static const ::dmi::Uuid& device_uuid(const GetLoggableEntitiesRequest* msg);
9959};
9960
9961const ::dmi::Uuid&
9962GetLoggableEntitiesRequest::HasBitSetters::device_uuid(const GetLoggableEntitiesRequest* msg) {
9963 return *msg->device_uuid_;
9964}
9965void GetLoggableEntitiesRequest::clear_device_uuid() {
9966 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
9967 delete device_uuid_;
9968 }
9969 device_uuid_ = nullptr;
9970}
9971#if !defined(_MSC_VER) || _MSC_VER >= 1900
9972const int GetLoggableEntitiesRequest::kDeviceUuidFieldNumber;
9973#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
9974
9975GetLoggableEntitiesRequest::GetLoggableEntitiesRequest()
9976 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
9977 SharedCtor();
9978 // @@protoc_insertion_point(constructor:dmi.GetLoggableEntitiesRequest)
9979}
9980GetLoggableEntitiesRequest::GetLoggableEntitiesRequest(const GetLoggableEntitiesRequest& from)
9981 : ::google::protobuf::Message(),
9982 _internal_metadata_(nullptr) {
9983 _internal_metadata_.MergeFrom(from._internal_metadata_);
9984 if (from.has_device_uuid()) {
9985 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
9986 } else {
9987 device_uuid_ = nullptr;
9988 }
9989 // @@protoc_insertion_point(copy_constructor:dmi.GetLoggableEntitiesRequest)
9990}
9991
9992void GetLoggableEntitiesRequest::SharedCtor() {
9993 ::google::protobuf::internal::InitSCC(
9994 &scc_info_GetLoggableEntitiesRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
9995 device_uuid_ = nullptr;
9996}
9997
9998GetLoggableEntitiesRequest::~GetLoggableEntitiesRequest() {
9999 // @@protoc_insertion_point(destructor:dmi.GetLoggableEntitiesRequest)
10000 SharedDtor();
10001}
10002
10003void GetLoggableEntitiesRequest::SharedDtor() {
10004 if (this != internal_default_instance()) delete device_uuid_;
10005}
10006
10007void GetLoggableEntitiesRequest::SetCachedSize(int size) const {
10008 _cached_size_.Set(size);
10009}
10010const GetLoggableEntitiesRequest& GetLoggableEntitiesRequest::default_instance() {
10011 ::google::protobuf::internal::InitSCC(&::scc_info_GetLoggableEntitiesRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
10012 return *internal_default_instance();
10013}
10014
10015
10016void GetLoggableEntitiesRequest::Clear() {
10017// @@protoc_insertion_point(message_clear_start:dmi.GetLoggableEntitiesRequest)
10018 ::google::protobuf::uint32 cached_has_bits = 0;
10019 // Prevent compiler warnings about cached_has_bits being unused
10020 (void) cached_has_bits;
10021
10022 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
10023 delete device_uuid_;
10024 }
10025 device_uuid_ = nullptr;
10026 _internal_metadata_.Clear();
10027}
10028
10029#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10030const char* GetLoggableEntitiesRequest::_InternalParse(const char* begin, const char* end, void* object,
10031 ::google::protobuf::internal::ParseContext* ctx) {
10032 auto msg = static_cast<GetLoggableEntitiesRequest*>(object);
10033 ::google::protobuf::int32 size; (void)size;
10034 int depth; (void)depth;
10035 ::google::protobuf::uint32 tag;
10036 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
10037 auto ptr = begin;
10038 while (ptr < end) {
10039 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
10040 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
10041 switch (tag >> 3) {
10042 // .dmi.Uuid device_uuid = 1;
10043 case 1: {
10044 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
10045 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
10046 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
10047 parser_till_end = ::dmi::Uuid::_InternalParse;
10048 object = msg->mutable_device_uuid();
10049 if (size > end - ptr) goto len_delim_till_end;
10050 ptr += size;
10051 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
10052 {parser_till_end, object}, ptr - size, ptr));
10053 break;
10054 }
10055 default: {
10056 handle_unusual:
10057 if ((tag & 7) == 4 || tag == 0) {
10058 ctx->EndGroup(tag);
10059 return ptr;
10060 }
10061 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
10062 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
10063 ptr = res.first;
10064 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
10065 if (res.second) return ptr;
10066 }
10067 } // switch
10068 } // while
10069 return ptr;
10070len_delim_till_end:
10071 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
10072 {parser_till_end, object}, size);
10073}
10074#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10075bool GetLoggableEntitiesRequest::MergePartialFromCodedStream(
10076 ::google::protobuf::io::CodedInputStream* input) {
10077#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
10078 ::google::protobuf::uint32 tag;
10079 // @@protoc_insertion_point(parse_start:dmi.GetLoggableEntitiesRequest)
10080 for (;;) {
10081 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
10082 tag = p.first;
10083 if (!p.second) goto handle_unusual;
10084 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
10085 // .dmi.Uuid device_uuid = 1;
10086 case 1: {
10087 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
10088 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
10089 input, mutable_device_uuid()));
10090 } else {
10091 goto handle_unusual;
10092 }
10093 break;
10094 }
10095
10096 default: {
10097 handle_unusual:
10098 if (tag == 0) {
10099 goto success;
10100 }
10101 DO_(::google::protobuf::internal::WireFormat::SkipField(
10102 input, tag, _internal_metadata_.mutable_unknown_fields()));
10103 break;
10104 }
10105 }
10106 }
10107success:
10108 // @@protoc_insertion_point(parse_success:dmi.GetLoggableEntitiesRequest)
10109 return true;
10110failure:
10111 // @@protoc_insertion_point(parse_failure:dmi.GetLoggableEntitiesRequest)
10112 return false;
10113#undef DO_
10114}
10115#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10116
10117void GetLoggableEntitiesRequest::SerializeWithCachedSizes(
10118 ::google::protobuf::io::CodedOutputStream* output) const {
10119 // @@protoc_insertion_point(serialize_start:dmi.GetLoggableEntitiesRequest)
10120 ::google::protobuf::uint32 cached_has_bits = 0;
10121 (void) cached_has_bits;
10122
10123 // .dmi.Uuid device_uuid = 1;
10124 if (this->has_device_uuid()) {
10125 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10126 1, HasBitSetters::device_uuid(this), output);
10127 }
10128
10129 if (_internal_metadata_.have_unknown_fields()) {
10130 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
10131 _internal_metadata_.unknown_fields(), output);
10132 }
10133 // @@protoc_insertion_point(serialize_end:dmi.GetLoggableEntitiesRequest)
10134}
10135
10136::google::protobuf::uint8* GetLoggableEntitiesRequest::InternalSerializeWithCachedSizesToArray(
10137 ::google::protobuf::uint8* target) const {
10138 // @@protoc_insertion_point(serialize_to_array_start:dmi.GetLoggableEntitiesRequest)
10139 ::google::protobuf::uint32 cached_has_bits = 0;
10140 (void) cached_has_bits;
10141
10142 // .dmi.Uuid device_uuid = 1;
10143 if (this->has_device_uuid()) {
10144 target = ::google::protobuf::internal::WireFormatLite::
10145 InternalWriteMessageToArray(
10146 1, HasBitSetters::device_uuid(this), target);
10147 }
10148
10149 if (_internal_metadata_.have_unknown_fields()) {
10150 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
10151 _internal_metadata_.unknown_fields(), target);
10152 }
10153 // @@protoc_insertion_point(serialize_to_array_end:dmi.GetLoggableEntitiesRequest)
10154 return target;
10155}
10156
10157size_t GetLoggableEntitiesRequest::ByteSizeLong() const {
10158// @@protoc_insertion_point(message_byte_size_start:dmi.GetLoggableEntitiesRequest)
10159 size_t total_size = 0;
10160
10161 if (_internal_metadata_.have_unknown_fields()) {
10162 total_size +=
10163 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
10164 _internal_metadata_.unknown_fields());
10165 }
10166 ::google::protobuf::uint32 cached_has_bits = 0;
10167 // Prevent compiler warnings about cached_has_bits being unused
10168 (void) cached_has_bits;
10169
10170 // .dmi.Uuid device_uuid = 1;
10171 if (this->has_device_uuid()) {
10172 total_size += 1 +
10173 ::google::protobuf::internal::WireFormatLite::MessageSize(
10174 *device_uuid_);
10175 }
10176
10177 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
10178 SetCachedSize(cached_size);
10179 return total_size;
10180}
10181
10182void GetLoggableEntitiesRequest::MergeFrom(const ::google::protobuf::Message& from) {
10183// @@protoc_insertion_point(generalized_merge_from_start:dmi.GetLoggableEntitiesRequest)
10184 GOOGLE_DCHECK_NE(&from, this);
10185 const GetLoggableEntitiesRequest* source =
10186 ::google::protobuf::DynamicCastToGenerated<GetLoggableEntitiesRequest>(
10187 &from);
10188 if (source == nullptr) {
10189 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.GetLoggableEntitiesRequest)
10190 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
10191 } else {
10192 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.GetLoggableEntitiesRequest)
10193 MergeFrom(*source);
10194 }
10195}
10196
10197void GetLoggableEntitiesRequest::MergeFrom(const GetLoggableEntitiesRequest& from) {
10198// @@protoc_insertion_point(class_specific_merge_from_start:dmi.GetLoggableEntitiesRequest)
10199 GOOGLE_DCHECK_NE(&from, this);
10200 _internal_metadata_.MergeFrom(from._internal_metadata_);
10201 ::google::protobuf::uint32 cached_has_bits = 0;
10202 (void) cached_has_bits;
10203
10204 if (from.has_device_uuid()) {
10205 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
10206 }
10207}
10208
10209void GetLoggableEntitiesRequest::CopyFrom(const ::google::protobuf::Message& from) {
10210// @@protoc_insertion_point(generalized_copy_from_start:dmi.GetLoggableEntitiesRequest)
10211 if (&from == this) return;
10212 Clear();
10213 MergeFrom(from);
10214}
10215
10216void GetLoggableEntitiesRequest::CopyFrom(const GetLoggableEntitiesRequest& from) {
10217// @@protoc_insertion_point(class_specific_copy_from_start:dmi.GetLoggableEntitiesRequest)
10218 if (&from == this) return;
10219 Clear();
10220 MergeFrom(from);
10221}
10222
10223bool GetLoggableEntitiesRequest::IsInitialized() const {
10224 return true;
10225}
10226
10227void GetLoggableEntitiesRequest::Swap(GetLoggableEntitiesRequest* other) {
10228 if (other == this) return;
10229 InternalSwap(other);
10230}
10231void GetLoggableEntitiesRequest::InternalSwap(GetLoggableEntitiesRequest* other) {
10232 using std::swap;
10233 _internal_metadata_.Swap(&other->_internal_metadata_);
10234 swap(device_uuid_, other->device_uuid_);
10235}
10236
10237::google::protobuf::Metadata GetLoggableEntitiesRequest::GetMetadata() const {
10238 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
10239 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
10240}
10241
10242
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +053010243// ===================================================================
10244
10245void Heartbeat::InitAsDefaultInstance() {
10246}
10247class Heartbeat::HasBitSetters {
10248 public:
10249};
10250
10251#if !defined(_MSC_VER) || _MSC_VER >= 1900
10252const int Heartbeat::kHeartbeatSignatureFieldNumber;
10253#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
10254
10255Heartbeat::Heartbeat()
10256 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
10257 SharedCtor();
10258 // @@protoc_insertion_point(constructor:dmi.Heartbeat)
10259}
10260Heartbeat::Heartbeat(const Heartbeat& from)
10261 : ::google::protobuf::Message(),
10262 _internal_metadata_(nullptr) {
10263 _internal_metadata_.MergeFrom(from._internal_metadata_);
10264 heartbeat_signature_ = from.heartbeat_signature_;
10265 // @@protoc_insertion_point(copy_constructor:dmi.Heartbeat)
10266}
10267
10268void Heartbeat::SharedCtor() {
10269 heartbeat_signature_ = 0u;
10270}
10271
10272Heartbeat::~Heartbeat() {
10273 // @@protoc_insertion_point(destructor:dmi.Heartbeat)
10274 SharedDtor();
10275}
10276
10277void Heartbeat::SharedDtor() {
10278}
10279
10280void Heartbeat::SetCachedSize(int size) const {
10281 _cached_size_.Set(size);
10282}
10283const Heartbeat& Heartbeat::default_instance() {
10284 ::google::protobuf::internal::InitSCC(&::scc_info_Heartbeat_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
10285 return *internal_default_instance();
10286}
10287
10288
10289void Heartbeat::Clear() {
10290// @@protoc_insertion_point(message_clear_start:dmi.Heartbeat)
10291 ::google::protobuf::uint32 cached_has_bits = 0;
10292 // Prevent compiler warnings about cached_has_bits being unused
10293 (void) cached_has_bits;
10294
10295 heartbeat_signature_ = 0u;
10296 _internal_metadata_.Clear();
10297}
10298
10299#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10300const char* Heartbeat::_InternalParse(const char* begin, const char* end, void* object,
10301 ::google::protobuf::internal::ParseContext* ctx) {
10302 auto msg = static_cast<Heartbeat*>(object);
10303 ::google::protobuf::int32 size; (void)size;
10304 int depth; (void)depth;
10305 ::google::protobuf::uint32 tag;
10306 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
10307 auto ptr = begin;
10308 while (ptr < end) {
10309 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
10310 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
10311 switch (tag >> 3) {
10312 // fixed32 heartbeat_signature = 1;
10313 case 1: {
10314 if (static_cast<::google::protobuf::uint8>(tag) != 13) goto handle_unusual;
10315 msg->set_heartbeat_signature(::google::protobuf::io::UnalignedLoad<::google::protobuf::uint32>(ptr));
10316 ptr += sizeof(::google::protobuf::uint32);
10317 break;
10318 }
10319 default: {
10320 handle_unusual:
10321 if ((tag & 7) == 4 || tag == 0) {
10322 ctx->EndGroup(tag);
10323 return ptr;
10324 }
10325 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
10326 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
10327 ptr = res.first;
10328 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
10329 if (res.second) return ptr;
10330 }
10331 } // switch
10332 } // while
10333 return ptr;
10334}
10335#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10336bool Heartbeat::MergePartialFromCodedStream(
10337 ::google::protobuf::io::CodedInputStream* input) {
10338#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
10339 ::google::protobuf::uint32 tag;
10340 // @@protoc_insertion_point(parse_start:dmi.Heartbeat)
10341 for (;;) {
10342 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
10343 tag = p.first;
10344 if (!p.second) goto handle_unusual;
10345 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
10346 // fixed32 heartbeat_signature = 1;
10347 case 1: {
10348 if (static_cast< ::google::protobuf::uint8>(tag) == (13 & 0xFF)) {
10349
10350 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10351 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>(
10352 input, &heartbeat_signature_)));
10353 } else {
10354 goto handle_unusual;
10355 }
10356 break;
10357 }
10358
10359 default: {
10360 handle_unusual:
10361 if (tag == 0) {
10362 goto success;
10363 }
10364 DO_(::google::protobuf::internal::WireFormat::SkipField(
10365 input, tag, _internal_metadata_.mutable_unknown_fields()));
10366 break;
10367 }
10368 }
10369 }
10370success:
10371 // @@protoc_insertion_point(parse_success:dmi.Heartbeat)
10372 return true;
10373failure:
10374 // @@protoc_insertion_point(parse_failure:dmi.Heartbeat)
10375 return false;
10376#undef DO_
10377}
10378#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10379
10380void Heartbeat::SerializeWithCachedSizes(
10381 ::google::protobuf::io::CodedOutputStream* output) const {
10382 // @@protoc_insertion_point(serialize_start:dmi.Heartbeat)
10383 ::google::protobuf::uint32 cached_has_bits = 0;
10384 (void) cached_has_bits;
10385
10386 // fixed32 heartbeat_signature = 1;
10387 if (this->heartbeat_signature() != 0) {
10388 ::google::protobuf::internal::WireFormatLite::WriteFixed32(1, this->heartbeat_signature(), output);
10389 }
10390
10391 if (_internal_metadata_.have_unknown_fields()) {
10392 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
10393 _internal_metadata_.unknown_fields(), output);
10394 }
10395 // @@protoc_insertion_point(serialize_end:dmi.Heartbeat)
10396}
10397
10398::google::protobuf::uint8* Heartbeat::InternalSerializeWithCachedSizesToArray(
10399 ::google::protobuf::uint8* target) const {
10400 // @@protoc_insertion_point(serialize_to_array_start:dmi.Heartbeat)
10401 ::google::protobuf::uint32 cached_has_bits = 0;
10402 (void) cached_has_bits;
10403
10404 // fixed32 heartbeat_signature = 1;
10405 if (this->heartbeat_signature() != 0) {
10406 target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(1, this->heartbeat_signature(), target);
10407 }
10408
10409 if (_internal_metadata_.have_unknown_fields()) {
10410 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
10411 _internal_metadata_.unknown_fields(), target);
10412 }
10413 // @@protoc_insertion_point(serialize_to_array_end:dmi.Heartbeat)
10414 return target;
10415}
10416
10417size_t Heartbeat::ByteSizeLong() const {
10418// @@protoc_insertion_point(message_byte_size_start:dmi.Heartbeat)
10419 size_t total_size = 0;
10420
10421 if (_internal_metadata_.have_unknown_fields()) {
10422 total_size +=
10423 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
10424 _internal_metadata_.unknown_fields());
10425 }
10426 ::google::protobuf::uint32 cached_has_bits = 0;
10427 // Prevent compiler warnings about cached_has_bits being unused
10428 (void) cached_has_bits;
10429
10430 // fixed32 heartbeat_signature = 1;
10431 if (this->heartbeat_signature() != 0) {
10432 total_size += 1 + 4;
10433 }
10434
10435 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
10436 SetCachedSize(cached_size);
10437 return total_size;
10438}
10439
10440void Heartbeat::MergeFrom(const ::google::protobuf::Message& from) {
10441// @@protoc_insertion_point(generalized_merge_from_start:dmi.Heartbeat)
10442 GOOGLE_DCHECK_NE(&from, this);
10443 const Heartbeat* source =
10444 ::google::protobuf::DynamicCastToGenerated<Heartbeat>(
10445 &from);
10446 if (source == nullptr) {
10447 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.Heartbeat)
10448 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
10449 } else {
10450 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.Heartbeat)
10451 MergeFrom(*source);
10452 }
10453}
10454
10455void Heartbeat::MergeFrom(const Heartbeat& from) {
10456// @@protoc_insertion_point(class_specific_merge_from_start:dmi.Heartbeat)
10457 GOOGLE_DCHECK_NE(&from, this);
10458 _internal_metadata_.MergeFrom(from._internal_metadata_);
10459 ::google::protobuf::uint32 cached_has_bits = 0;
10460 (void) cached_has_bits;
10461
10462 if (from.heartbeat_signature() != 0) {
10463 set_heartbeat_signature(from.heartbeat_signature());
10464 }
10465}
10466
10467void Heartbeat::CopyFrom(const ::google::protobuf::Message& from) {
10468// @@protoc_insertion_point(generalized_copy_from_start:dmi.Heartbeat)
10469 if (&from == this) return;
10470 Clear();
10471 MergeFrom(from);
10472}
10473
10474void Heartbeat::CopyFrom(const Heartbeat& from) {
10475// @@protoc_insertion_point(class_specific_copy_from_start:dmi.Heartbeat)
10476 if (&from == this) return;
10477 Clear();
10478 MergeFrom(from);
10479}
10480
10481bool Heartbeat::IsInitialized() const {
10482 return true;
10483}
10484
10485void Heartbeat::Swap(Heartbeat* other) {
10486 if (other == this) return;
10487 InternalSwap(other);
10488}
10489void Heartbeat::InternalSwap(Heartbeat* other) {
10490 using std::swap;
10491 _internal_metadata_.Swap(&other->_internal_metadata_);
10492 swap(heartbeat_signature_, other->heartbeat_signature_);
10493}
10494
10495::google::protobuf::Metadata Heartbeat::GetMetadata() const {
10496 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
10497 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
10498}
10499
10500
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +053010501// ===================================================================
10502
10503void RebootDeviceRequest::InitAsDefaultInstance() {
10504 ::dmi::_RebootDeviceRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
10505 ::dmi::Uuid::internal_default_instance());
10506}
10507class RebootDeviceRequest::HasBitSetters {
10508 public:
10509 static const ::dmi::Uuid& device_uuid(const RebootDeviceRequest* msg);
10510};
10511
10512const ::dmi::Uuid&
10513RebootDeviceRequest::HasBitSetters::device_uuid(const RebootDeviceRequest* msg) {
10514 return *msg->device_uuid_;
10515}
10516void RebootDeviceRequest::clear_device_uuid() {
10517 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
10518 delete device_uuid_;
10519 }
10520 device_uuid_ = nullptr;
10521}
10522#if !defined(_MSC_VER) || _MSC_VER >= 1900
10523const int RebootDeviceRequest::kDeviceUuidFieldNumber;
10524#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
10525
10526RebootDeviceRequest::RebootDeviceRequest()
10527 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
10528 SharedCtor();
10529 // @@protoc_insertion_point(constructor:dmi.RebootDeviceRequest)
10530}
10531RebootDeviceRequest::RebootDeviceRequest(const RebootDeviceRequest& from)
10532 : ::google::protobuf::Message(),
10533 _internal_metadata_(nullptr) {
10534 _internal_metadata_.MergeFrom(from._internal_metadata_);
10535 if (from.has_device_uuid()) {
10536 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
10537 } else {
10538 device_uuid_ = nullptr;
10539 }
10540 // @@protoc_insertion_point(copy_constructor:dmi.RebootDeviceRequest)
10541}
10542
10543void RebootDeviceRequest::SharedCtor() {
10544 ::google::protobuf::internal::InitSCC(
10545 &scc_info_RebootDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
10546 device_uuid_ = nullptr;
10547}
10548
10549RebootDeviceRequest::~RebootDeviceRequest() {
10550 // @@protoc_insertion_point(destructor:dmi.RebootDeviceRequest)
10551 SharedDtor();
10552}
10553
10554void RebootDeviceRequest::SharedDtor() {
10555 if (this != internal_default_instance()) delete device_uuid_;
10556}
10557
10558void RebootDeviceRequest::SetCachedSize(int size) const {
10559 _cached_size_.Set(size);
10560}
10561const RebootDeviceRequest& RebootDeviceRequest::default_instance() {
10562 ::google::protobuf::internal::InitSCC(&::scc_info_RebootDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
10563 return *internal_default_instance();
10564}
10565
10566
10567void RebootDeviceRequest::Clear() {
10568// @@protoc_insertion_point(message_clear_start:dmi.RebootDeviceRequest)
10569 ::google::protobuf::uint32 cached_has_bits = 0;
10570 // Prevent compiler warnings about cached_has_bits being unused
10571 (void) cached_has_bits;
10572
10573 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
10574 delete device_uuid_;
10575 }
10576 device_uuid_ = nullptr;
10577 _internal_metadata_.Clear();
10578}
10579
10580#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10581const char* RebootDeviceRequest::_InternalParse(const char* begin, const char* end, void* object,
10582 ::google::protobuf::internal::ParseContext* ctx) {
10583 auto msg = static_cast<RebootDeviceRequest*>(object);
10584 ::google::protobuf::int32 size; (void)size;
10585 int depth; (void)depth;
10586 ::google::protobuf::uint32 tag;
10587 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
10588 auto ptr = begin;
10589 while (ptr < end) {
10590 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
10591 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
10592 switch (tag >> 3) {
10593 // .dmi.Uuid device_uuid = 1;
10594 case 1: {
10595 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
10596 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
10597 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
10598 parser_till_end = ::dmi::Uuid::_InternalParse;
10599 object = msg->mutable_device_uuid();
10600 if (size > end - ptr) goto len_delim_till_end;
10601 ptr += size;
10602 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
10603 {parser_till_end, object}, ptr - size, ptr));
10604 break;
10605 }
10606 default: {
10607 handle_unusual:
10608 if ((tag & 7) == 4 || tag == 0) {
10609 ctx->EndGroup(tag);
10610 return ptr;
10611 }
10612 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
10613 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
10614 ptr = res.first;
10615 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
10616 if (res.second) return ptr;
10617 }
10618 } // switch
10619 } // while
10620 return ptr;
10621len_delim_till_end:
10622 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
10623 {parser_till_end, object}, size);
10624}
10625#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10626bool RebootDeviceRequest::MergePartialFromCodedStream(
10627 ::google::protobuf::io::CodedInputStream* input) {
10628#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
10629 ::google::protobuf::uint32 tag;
10630 // @@protoc_insertion_point(parse_start:dmi.RebootDeviceRequest)
10631 for (;;) {
10632 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
10633 tag = p.first;
10634 if (!p.second) goto handle_unusual;
10635 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
10636 // .dmi.Uuid device_uuid = 1;
10637 case 1: {
10638 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
10639 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
10640 input, mutable_device_uuid()));
10641 } else {
10642 goto handle_unusual;
10643 }
10644 break;
10645 }
10646
10647 default: {
10648 handle_unusual:
10649 if (tag == 0) {
10650 goto success;
10651 }
10652 DO_(::google::protobuf::internal::WireFormat::SkipField(
10653 input, tag, _internal_metadata_.mutable_unknown_fields()));
10654 break;
10655 }
10656 }
10657 }
10658success:
10659 // @@protoc_insertion_point(parse_success:dmi.RebootDeviceRequest)
10660 return true;
10661failure:
10662 // @@protoc_insertion_point(parse_failure:dmi.RebootDeviceRequest)
10663 return false;
10664#undef DO_
10665}
10666#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10667
10668void RebootDeviceRequest::SerializeWithCachedSizes(
10669 ::google::protobuf::io::CodedOutputStream* output) const {
10670 // @@protoc_insertion_point(serialize_start:dmi.RebootDeviceRequest)
10671 ::google::protobuf::uint32 cached_has_bits = 0;
10672 (void) cached_has_bits;
10673
10674 // .dmi.Uuid device_uuid = 1;
10675 if (this->has_device_uuid()) {
10676 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10677 1, HasBitSetters::device_uuid(this), output);
10678 }
10679
10680 if (_internal_metadata_.have_unknown_fields()) {
10681 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
10682 _internal_metadata_.unknown_fields(), output);
10683 }
10684 // @@protoc_insertion_point(serialize_end:dmi.RebootDeviceRequest)
10685}
10686
10687::google::protobuf::uint8* RebootDeviceRequest::InternalSerializeWithCachedSizesToArray(
10688 ::google::protobuf::uint8* target) const {
10689 // @@protoc_insertion_point(serialize_to_array_start:dmi.RebootDeviceRequest)
10690 ::google::protobuf::uint32 cached_has_bits = 0;
10691 (void) cached_has_bits;
10692
10693 // .dmi.Uuid device_uuid = 1;
10694 if (this->has_device_uuid()) {
10695 target = ::google::protobuf::internal::WireFormatLite::
10696 InternalWriteMessageToArray(
10697 1, HasBitSetters::device_uuid(this), target);
10698 }
10699
10700 if (_internal_metadata_.have_unknown_fields()) {
10701 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
10702 _internal_metadata_.unknown_fields(), target);
10703 }
10704 // @@protoc_insertion_point(serialize_to_array_end:dmi.RebootDeviceRequest)
10705 return target;
10706}
10707
10708size_t RebootDeviceRequest::ByteSizeLong() const {
10709// @@protoc_insertion_point(message_byte_size_start:dmi.RebootDeviceRequest)
10710 size_t total_size = 0;
10711
10712 if (_internal_metadata_.have_unknown_fields()) {
10713 total_size +=
10714 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
10715 _internal_metadata_.unknown_fields());
10716 }
10717 ::google::protobuf::uint32 cached_has_bits = 0;
10718 // Prevent compiler warnings about cached_has_bits being unused
10719 (void) cached_has_bits;
10720
10721 // .dmi.Uuid device_uuid = 1;
10722 if (this->has_device_uuid()) {
10723 total_size += 1 +
10724 ::google::protobuf::internal::WireFormatLite::MessageSize(
10725 *device_uuid_);
10726 }
10727
10728 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
10729 SetCachedSize(cached_size);
10730 return total_size;
10731}
10732
10733void RebootDeviceRequest::MergeFrom(const ::google::protobuf::Message& from) {
10734// @@protoc_insertion_point(generalized_merge_from_start:dmi.RebootDeviceRequest)
10735 GOOGLE_DCHECK_NE(&from, this);
10736 const RebootDeviceRequest* source =
10737 ::google::protobuf::DynamicCastToGenerated<RebootDeviceRequest>(
10738 &from);
10739 if (source == nullptr) {
10740 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.RebootDeviceRequest)
10741 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
10742 } else {
10743 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.RebootDeviceRequest)
10744 MergeFrom(*source);
10745 }
10746}
10747
10748void RebootDeviceRequest::MergeFrom(const RebootDeviceRequest& from) {
10749// @@protoc_insertion_point(class_specific_merge_from_start:dmi.RebootDeviceRequest)
10750 GOOGLE_DCHECK_NE(&from, this);
10751 _internal_metadata_.MergeFrom(from._internal_metadata_);
10752 ::google::protobuf::uint32 cached_has_bits = 0;
10753 (void) cached_has_bits;
10754
10755 if (from.has_device_uuid()) {
10756 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
10757 }
10758}
10759
10760void RebootDeviceRequest::CopyFrom(const ::google::protobuf::Message& from) {
10761// @@protoc_insertion_point(generalized_copy_from_start:dmi.RebootDeviceRequest)
10762 if (&from == this) return;
10763 Clear();
10764 MergeFrom(from);
10765}
10766
10767void RebootDeviceRequest::CopyFrom(const RebootDeviceRequest& from) {
10768// @@protoc_insertion_point(class_specific_copy_from_start:dmi.RebootDeviceRequest)
10769 if (&from == this) return;
10770 Clear();
10771 MergeFrom(from);
10772}
10773
10774bool RebootDeviceRequest::IsInitialized() const {
10775 return true;
10776}
10777
10778void RebootDeviceRequest::Swap(RebootDeviceRequest* other) {
10779 if (other == this) return;
10780 InternalSwap(other);
10781}
10782void RebootDeviceRequest::InternalSwap(RebootDeviceRequest* other) {
10783 using std::swap;
10784 _internal_metadata_.Swap(&other->_internal_metadata_);
10785 swap(device_uuid_, other->device_uuid_);
10786}
10787
10788::google::protobuf::Metadata RebootDeviceRequest::GetMetadata() const {
10789 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
10790 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
10791}
10792
10793
10794// ===================================================================
10795
10796void RebootDeviceResponse::InitAsDefaultInstance() {
10797}
10798class RebootDeviceResponse::HasBitSetters {
10799 public:
10800};
10801
10802#if !defined(_MSC_VER) || _MSC_VER >= 1900
10803const int RebootDeviceResponse::kStatusFieldNumber;
10804const int RebootDeviceResponse::kReasonFieldNumber;
10805const int RebootDeviceResponse::kReasonDetailFieldNumber;
10806#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
10807
10808RebootDeviceResponse::RebootDeviceResponse()
10809 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
10810 SharedCtor();
10811 // @@protoc_insertion_point(constructor:dmi.RebootDeviceResponse)
10812}
10813RebootDeviceResponse::RebootDeviceResponse(const RebootDeviceResponse& from)
10814 : ::google::protobuf::Message(),
10815 _internal_metadata_(nullptr) {
10816 _internal_metadata_.MergeFrom(from._internal_metadata_);
10817 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10818 if (from.reason_detail().size() > 0) {
10819 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
10820 }
10821 ::memcpy(&status_, &from.status_,
10822 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
10823 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
10824 // @@protoc_insertion_point(copy_constructor:dmi.RebootDeviceResponse)
10825}
10826
10827void RebootDeviceResponse::SharedCtor() {
10828 ::google::protobuf::internal::InitSCC(
10829 &scc_info_RebootDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
10830 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10831 ::memset(&status_, 0, static_cast<size_t>(
10832 reinterpret_cast<char*>(&reason_) -
10833 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
10834}
10835
10836RebootDeviceResponse::~RebootDeviceResponse() {
10837 // @@protoc_insertion_point(destructor:dmi.RebootDeviceResponse)
10838 SharedDtor();
10839}
10840
10841void RebootDeviceResponse::SharedDtor() {
10842 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10843}
10844
10845void RebootDeviceResponse::SetCachedSize(int size) const {
10846 _cached_size_.Set(size);
10847}
10848const RebootDeviceResponse& RebootDeviceResponse::default_instance() {
10849 ::google::protobuf::internal::InitSCC(&::scc_info_RebootDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
10850 return *internal_default_instance();
10851}
10852
10853
10854void RebootDeviceResponse::Clear() {
10855// @@protoc_insertion_point(message_clear_start:dmi.RebootDeviceResponse)
10856 ::google::protobuf::uint32 cached_has_bits = 0;
10857 // Prevent compiler warnings about cached_has_bits being unused
10858 (void) cached_has_bits;
10859
10860 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10861 ::memset(&status_, 0, static_cast<size_t>(
10862 reinterpret_cast<char*>(&reason_) -
10863 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
10864 _internal_metadata_.Clear();
10865}
10866
10867#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10868const char* RebootDeviceResponse::_InternalParse(const char* begin, const char* end, void* object,
10869 ::google::protobuf::internal::ParseContext* ctx) {
10870 auto msg = static_cast<RebootDeviceResponse*>(object);
10871 ::google::protobuf::int32 size; (void)size;
10872 int depth; (void)depth;
10873 ::google::protobuf::uint32 tag;
10874 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
10875 auto ptr = begin;
10876 while (ptr < end) {
10877 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
10878 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
10879 switch (tag >> 3) {
10880 // .dmi.Status status = 3;
10881 case 3: {
10882 if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual;
10883 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
10884 msg->set_status(static_cast<::dmi::Status>(val));
10885 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
10886 break;
10887 }
10888 // .dmi.RebootDeviceResponse.Reason reason = 4;
10889 case 4: {
10890 if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual;
10891 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
10892 msg->set_reason(static_cast<::dmi::RebootDeviceResponse_Reason>(val));
10893 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
10894 break;
10895 }
10896 // string reason_detail = 5;
10897 case 5: {
10898 if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual;
10899 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
10900 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
10901 ctx->extra_parse_data().SetFieldName("dmi.RebootDeviceResponse.reason_detail");
10902 object = msg->mutable_reason_detail();
10903 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
10904 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
10905 goto string_till_end;
10906 }
10907 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
10908 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
10909 ptr += size;
10910 break;
10911 }
10912 default: {
10913 handle_unusual:
10914 if ((tag & 7) == 4 || tag == 0) {
10915 ctx->EndGroup(tag);
10916 return ptr;
10917 }
10918 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
10919 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
10920 ptr = res.first;
10921 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
10922 if (res.second) return ptr;
10923 }
10924 } // switch
10925 } // while
10926 return ptr;
10927string_till_end:
10928 static_cast<::std::string*>(object)->clear();
10929 static_cast<::std::string*>(object)->reserve(size);
10930 goto len_delim_till_end;
10931len_delim_till_end:
10932 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
10933 {parser_till_end, object}, size);
10934}
10935#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10936bool RebootDeviceResponse::MergePartialFromCodedStream(
10937 ::google::protobuf::io::CodedInputStream* input) {
10938#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
10939 ::google::protobuf::uint32 tag;
10940 // @@protoc_insertion_point(parse_start:dmi.RebootDeviceResponse)
10941 for (;;) {
10942 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
10943 tag = p.first;
10944 if (!p.second) goto handle_unusual;
10945 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
10946 // .dmi.Status status = 3;
10947 case 3: {
10948 if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) {
10949 int value = 0;
10950 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10951 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
10952 input, &value)));
10953 set_status(static_cast< ::dmi::Status >(value));
10954 } else {
10955 goto handle_unusual;
10956 }
10957 break;
10958 }
10959
10960 // .dmi.RebootDeviceResponse.Reason reason = 4;
10961 case 4: {
10962 if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) {
10963 int value = 0;
10964 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10965 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
10966 input, &value)));
10967 set_reason(static_cast< ::dmi::RebootDeviceResponse_Reason >(value));
10968 } else {
10969 goto handle_unusual;
10970 }
10971 break;
10972 }
10973
10974 // string reason_detail = 5;
10975 case 5: {
10976 if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) {
10977 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
10978 input, this->mutable_reason_detail()));
10979 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
10980 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
10981 ::google::protobuf::internal::WireFormatLite::PARSE,
10982 "dmi.RebootDeviceResponse.reason_detail"));
10983 } else {
10984 goto handle_unusual;
10985 }
10986 break;
10987 }
10988
10989 default: {
10990 handle_unusual:
10991 if (tag == 0) {
10992 goto success;
10993 }
10994 DO_(::google::protobuf::internal::WireFormat::SkipField(
10995 input, tag, _internal_metadata_.mutable_unknown_fields()));
10996 break;
10997 }
10998 }
10999 }
11000success:
11001 // @@protoc_insertion_point(parse_success:dmi.RebootDeviceResponse)
11002 return true;
11003failure:
11004 // @@protoc_insertion_point(parse_failure:dmi.RebootDeviceResponse)
11005 return false;
11006#undef DO_
11007}
11008#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
11009
11010void RebootDeviceResponse::SerializeWithCachedSizes(
11011 ::google::protobuf::io::CodedOutputStream* output) const {
11012 // @@protoc_insertion_point(serialize_start:dmi.RebootDeviceResponse)
11013 ::google::protobuf::uint32 cached_has_bits = 0;
11014 (void) cached_has_bits;
11015
11016 // .dmi.Status status = 3;
11017 if (this->status() != 0) {
11018 ::google::protobuf::internal::WireFormatLite::WriteEnum(
11019 3, this->status(), output);
11020 }
11021
11022 // .dmi.RebootDeviceResponse.Reason reason = 4;
11023 if (this->reason() != 0) {
11024 ::google::protobuf::internal::WireFormatLite::WriteEnum(
11025 4, this->reason(), output);
11026 }
11027
11028 // string reason_detail = 5;
11029 if (this->reason_detail().size() > 0) {
11030 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
11031 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
11032 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
11033 "dmi.RebootDeviceResponse.reason_detail");
11034 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
11035 5, this->reason_detail(), output);
11036 }
11037
11038 if (_internal_metadata_.have_unknown_fields()) {
11039 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
11040 _internal_metadata_.unknown_fields(), output);
11041 }
11042 // @@protoc_insertion_point(serialize_end:dmi.RebootDeviceResponse)
11043}
11044
11045::google::protobuf::uint8* RebootDeviceResponse::InternalSerializeWithCachedSizesToArray(
11046 ::google::protobuf::uint8* target) const {
11047 // @@protoc_insertion_point(serialize_to_array_start:dmi.RebootDeviceResponse)
11048 ::google::protobuf::uint32 cached_has_bits = 0;
11049 (void) cached_has_bits;
11050
11051 // .dmi.Status status = 3;
11052 if (this->status() != 0) {
11053 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
11054 3, this->status(), target);
11055 }
11056
11057 // .dmi.RebootDeviceResponse.Reason reason = 4;
11058 if (this->reason() != 0) {
11059 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
11060 4, this->reason(), target);
11061 }
11062
11063 // string reason_detail = 5;
11064 if (this->reason_detail().size() > 0) {
11065 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
11066 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
11067 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
11068 "dmi.RebootDeviceResponse.reason_detail");
11069 target =
11070 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
11071 5, this->reason_detail(), target);
11072 }
11073
11074 if (_internal_metadata_.have_unknown_fields()) {
11075 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
11076 _internal_metadata_.unknown_fields(), target);
11077 }
11078 // @@protoc_insertion_point(serialize_to_array_end:dmi.RebootDeviceResponse)
11079 return target;
11080}
11081
11082size_t RebootDeviceResponse::ByteSizeLong() const {
11083// @@protoc_insertion_point(message_byte_size_start:dmi.RebootDeviceResponse)
11084 size_t total_size = 0;
11085
11086 if (_internal_metadata_.have_unknown_fields()) {
11087 total_size +=
11088 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
11089 _internal_metadata_.unknown_fields());
11090 }
11091 ::google::protobuf::uint32 cached_has_bits = 0;
11092 // Prevent compiler warnings about cached_has_bits being unused
11093 (void) cached_has_bits;
11094
11095 // string reason_detail = 5;
11096 if (this->reason_detail().size() > 0) {
11097 total_size += 1 +
11098 ::google::protobuf::internal::WireFormatLite::StringSize(
11099 this->reason_detail());
11100 }
11101
11102 // .dmi.Status status = 3;
11103 if (this->status() != 0) {
11104 total_size += 1 +
11105 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
11106 }
11107
11108 // .dmi.RebootDeviceResponse.Reason reason = 4;
11109 if (this->reason() != 0) {
11110 total_size += 1 +
11111 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
11112 }
11113
11114 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
11115 SetCachedSize(cached_size);
11116 return total_size;
11117}
11118
11119void RebootDeviceResponse::MergeFrom(const ::google::protobuf::Message& from) {
11120// @@protoc_insertion_point(generalized_merge_from_start:dmi.RebootDeviceResponse)
11121 GOOGLE_DCHECK_NE(&from, this);
11122 const RebootDeviceResponse* source =
11123 ::google::protobuf::DynamicCastToGenerated<RebootDeviceResponse>(
11124 &from);
11125 if (source == nullptr) {
11126 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.RebootDeviceResponse)
11127 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
11128 } else {
11129 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.RebootDeviceResponse)
11130 MergeFrom(*source);
11131 }
11132}
11133
11134void RebootDeviceResponse::MergeFrom(const RebootDeviceResponse& from) {
11135// @@protoc_insertion_point(class_specific_merge_from_start:dmi.RebootDeviceResponse)
11136 GOOGLE_DCHECK_NE(&from, this);
11137 _internal_metadata_.MergeFrom(from._internal_metadata_);
11138 ::google::protobuf::uint32 cached_has_bits = 0;
11139 (void) cached_has_bits;
11140
11141 if (from.reason_detail().size() > 0) {
11142
11143 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
11144 }
11145 if (from.status() != 0) {
11146 set_status(from.status());
11147 }
11148 if (from.reason() != 0) {
11149 set_reason(from.reason());
11150 }
11151}
11152
11153void RebootDeviceResponse::CopyFrom(const ::google::protobuf::Message& from) {
11154// @@protoc_insertion_point(generalized_copy_from_start:dmi.RebootDeviceResponse)
11155 if (&from == this) return;
11156 Clear();
11157 MergeFrom(from);
11158}
11159
11160void RebootDeviceResponse::CopyFrom(const RebootDeviceResponse& from) {
11161// @@protoc_insertion_point(class_specific_copy_from_start:dmi.RebootDeviceResponse)
11162 if (&from == this) return;
11163 Clear();
11164 MergeFrom(from);
11165}
11166
11167bool RebootDeviceResponse::IsInitialized() const {
11168 return true;
11169}
11170
11171void RebootDeviceResponse::Swap(RebootDeviceResponse* other) {
11172 if (other == this) return;
11173 InternalSwap(other);
11174}
11175void RebootDeviceResponse::InternalSwap(RebootDeviceResponse* other) {
11176 using std::swap;
11177 _internal_metadata_.Swap(&other->_internal_metadata_);
11178 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
11179 GetArenaNoVirtual());
11180 swap(status_, other->status_);
11181 swap(reason_, other->reason_);
11182}
11183
11184::google::protobuf::Metadata RebootDeviceResponse::GetMetadata() const {
11185 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
11186 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
11187}
11188
11189
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +053011190// @@protoc_insertion_point(namespace_scope)
11191} // namespace dmi
11192namespace google {
11193namespace protobuf {
11194template<> PROTOBUF_NOINLINE ::dmi::PhysicalInventoryRequest* Arena::CreateMaybeMessage< ::dmi::PhysicalInventoryRequest >(Arena* arena) {
11195 return Arena::CreateInternal< ::dmi::PhysicalInventoryRequest >(arena);
11196}
11197template<> PROTOBUF_NOINLINE ::dmi::PhysicalInventoryResponse* Arena::CreateMaybeMessage< ::dmi::PhysicalInventoryResponse >(Arena* arena) {
11198 return Arena::CreateInternal< ::dmi::PhysicalInventoryResponse >(arena);
11199}
11200template<> PROTOBUF_NOINLINE ::dmi::HWComponentInfoGetRequest* Arena::CreateMaybeMessage< ::dmi::HWComponentInfoGetRequest >(Arena* arena) {
11201 return Arena::CreateInternal< ::dmi::HWComponentInfoGetRequest >(arena);
11202}
11203template<> PROTOBUF_NOINLINE ::dmi::HWComponentInfoGetResponse* Arena::CreateMaybeMessage< ::dmi::HWComponentInfoGetResponse >(Arena* arena) {
11204 return Arena::CreateInternal< ::dmi::HWComponentInfoGetResponse >(arena);
11205}
11206template<> PROTOBUF_NOINLINE ::dmi::HWComponentInfoSetRequest* Arena::CreateMaybeMessage< ::dmi::HWComponentInfoSetRequest >(Arena* arena) {
11207 return Arena::CreateInternal< ::dmi::HWComponentInfoSetRequest >(arena);
11208}
11209template<> PROTOBUF_NOINLINE ::dmi::HWComponentInfoSetResponse* Arena::CreateMaybeMessage< ::dmi::HWComponentInfoSetResponse >(Arena* arena) {
11210 return Arena::CreateInternal< ::dmi::HWComponentInfoSetResponse >(arena);
11211}
11212template<> PROTOBUF_NOINLINE ::dmi::StartManagingDeviceResponse* Arena::CreateMaybeMessage< ::dmi::StartManagingDeviceResponse >(Arena* arena) {
11213 return Arena::CreateInternal< ::dmi::StartManagingDeviceResponse >(arena);
11214}
11215template<> PROTOBUF_NOINLINE ::dmi::StopManagingDeviceRequest* Arena::CreateMaybeMessage< ::dmi::StopManagingDeviceRequest >(Arena* arena) {
11216 return Arena::CreateInternal< ::dmi::StopManagingDeviceRequest >(arena);
11217}
11218template<> PROTOBUF_NOINLINE ::dmi::StopManagingDeviceResponse* Arena::CreateMaybeMessage< ::dmi::StopManagingDeviceResponse >(Arena* arena) {
11219 return Arena::CreateInternal< ::dmi::StopManagingDeviceResponse >(arena);
11220}
11221template<> PROTOBUF_NOINLINE ::dmi::ManagedDeviceInfo* Arena::CreateMaybeMessage< ::dmi::ManagedDeviceInfo >(Arena* arena) {
11222 return Arena::CreateInternal< ::dmi::ManagedDeviceInfo >(arena);
11223}
11224template<> PROTOBUF_NOINLINE ::dmi::ManagedDevicesResponse* Arena::CreateMaybeMessage< ::dmi::ManagedDevicesResponse >(Arena* arena) {
11225 return Arena::CreateInternal< ::dmi::ManagedDevicesResponse >(arena);
11226}
11227template<> PROTOBUF_NOINLINE ::dmi::SetLoggingEndpointRequest* Arena::CreateMaybeMessage< ::dmi::SetLoggingEndpointRequest >(Arena* arena) {
11228 return Arena::CreateInternal< ::dmi::SetLoggingEndpointRequest >(arena);
11229}
11230template<> PROTOBUF_NOINLINE ::dmi::SetRemoteEndpointResponse* Arena::CreateMaybeMessage< ::dmi::SetRemoteEndpointResponse >(Arena* arena) {
11231 return Arena::CreateInternal< ::dmi::SetRemoteEndpointResponse >(arena);
11232}
11233template<> PROTOBUF_NOINLINE ::dmi::GetLoggingEndpointResponse* Arena::CreateMaybeMessage< ::dmi::GetLoggingEndpointResponse >(Arena* arena) {
11234 return Arena::CreateInternal< ::dmi::GetLoggingEndpointResponse >(arena);
11235}
11236template<> PROTOBUF_NOINLINE ::dmi::SetMsgBusEndpointRequest* Arena::CreateMaybeMessage< ::dmi::SetMsgBusEndpointRequest >(Arena* arena) {
11237 return Arena::CreateInternal< ::dmi::SetMsgBusEndpointRequest >(arena);
11238}
11239template<> PROTOBUF_NOINLINE ::dmi::GetMsgBusEndpointResponse* Arena::CreateMaybeMessage< ::dmi::GetMsgBusEndpointResponse >(Arena* arena) {
11240 return Arena::CreateInternal< ::dmi::GetMsgBusEndpointResponse >(arena);
11241}
11242template<> PROTOBUF_NOINLINE ::dmi::EntitiesLogLevel* Arena::CreateMaybeMessage< ::dmi::EntitiesLogLevel >(Arena* arena) {
11243 return Arena::CreateInternal< ::dmi::EntitiesLogLevel >(arena);
11244}
11245template<> PROTOBUF_NOINLINE ::dmi::SetLogLevelRequest* Arena::CreateMaybeMessage< ::dmi::SetLogLevelRequest >(Arena* arena) {
11246 return Arena::CreateInternal< ::dmi::SetLogLevelRequest >(arena);
11247}
11248template<> PROTOBUF_NOINLINE ::dmi::SetLogLevelResponse* Arena::CreateMaybeMessage< ::dmi::SetLogLevelResponse >(Arena* arena) {
11249 return Arena::CreateInternal< ::dmi::SetLogLevelResponse >(arena);
11250}
11251template<> PROTOBUF_NOINLINE ::dmi::GetLogLevelRequest* Arena::CreateMaybeMessage< ::dmi::GetLogLevelRequest >(Arena* arena) {
11252 return Arena::CreateInternal< ::dmi::GetLogLevelRequest >(arena);
11253}
11254template<> PROTOBUF_NOINLINE ::dmi::GetLogLevelResponse* Arena::CreateMaybeMessage< ::dmi::GetLogLevelResponse >(Arena* arena) {
11255 return Arena::CreateInternal< ::dmi::GetLogLevelResponse >(arena);
11256}
11257template<> PROTOBUF_NOINLINE ::dmi::GetLoggableEntitiesRequest* Arena::CreateMaybeMessage< ::dmi::GetLoggableEntitiesRequest >(Arena* arena) {
11258 return Arena::CreateInternal< ::dmi::GetLoggableEntitiesRequest >(arena);
11259}
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +053011260template<> PROTOBUF_NOINLINE ::dmi::Heartbeat* Arena::CreateMaybeMessage< ::dmi::Heartbeat >(Arena* arena) {
11261 return Arena::CreateInternal< ::dmi::Heartbeat >(arena);
11262}
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +053011263template<> PROTOBUF_NOINLINE ::dmi::RebootDeviceRequest* Arena::CreateMaybeMessage< ::dmi::RebootDeviceRequest >(Arena* arena) {
11264 return Arena::CreateInternal< ::dmi::RebootDeviceRequest >(arena);
11265}
11266template<> PROTOBUF_NOINLINE ::dmi::RebootDeviceResponse* Arena::CreateMaybeMessage< ::dmi::RebootDeviceResponse >(Arena* arena) {
11267 return Arena::CreateInternal< ::dmi::RebootDeviceResponse >(arena);
11268}
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +053011269} // namespace protobuf
11270} // namespace google
11271
11272// @@protoc_insertion_point(global_scope)
11273#include <google/protobuf/port_undef.inc>