blob: 322b85f739b6627630ac5d4a0be30619293e8b61 [file] [log] [blame]
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: dmi/hw_management_service.proto
3
4#include "dmi/hw_management_service.pb.h"
5
6#include <algorithm>
7
8#include <google/protobuf/stubs/common.h>
9#include <google/protobuf/io/coded_stream.h>
10#include <google/protobuf/extension_set.h>
11#include <google/protobuf/wire_format_lite_inl.h>
12#include <google/protobuf/descriptor.h>
13#include <google/protobuf/generated_message_reflection.h>
14#include <google/protobuf/reflection_ops.h>
15#include <google/protobuf/wire_format.h>
16// @@protoc_insertion_point(includes)
17#include <google/protobuf/port_def.inc>
18
19extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Uuid_dmi_2fhw_2eproto;
20extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_Hardware_dmi_2fhw_2eproto;
Girish Gowdra997432d2022-03-10 15:59:33 -080021extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<4> scc_info_ModifiableComponent_dmi_2fhw_2eproto;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +053022extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<9> scc_info_Component_dmi_2fhw_2eproto;
23extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_5fmanagement_5fservice_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_EntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto;
24extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_5fmanagement_5fservice_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_ManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto;
25namespace dmi {
26class PhysicalInventoryRequestDefaultTypeInternal {
27 public:
28 ::google::protobuf::internal::ExplicitlyConstructed<PhysicalInventoryRequest> _instance;
29} _PhysicalInventoryRequest_default_instance_;
30class PhysicalInventoryResponseDefaultTypeInternal {
31 public:
32 ::google::protobuf::internal::ExplicitlyConstructed<PhysicalInventoryResponse> _instance;
33} _PhysicalInventoryResponse_default_instance_;
34class HWComponentInfoGetRequestDefaultTypeInternal {
35 public:
36 ::google::protobuf::internal::ExplicitlyConstructed<HWComponentInfoGetRequest> _instance;
37} _HWComponentInfoGetRequest_default_instance_;
38class HWComponentInfoGetResponseDefaultTypeInternal {
39 public:
40 ::google::protobuf::internal::ExplicitlyConstructed<HWComponentInfoGetResponse> _instance;
41} _HWComponentInfoGetResponse_default_instance_;
42class HWComponentInfoSetRequestDefaultTypeInternal {
43 public:
44 ::google::protobuf::internal::ExplicitlyConstructed<HWComponentInfoSetRequest> _instance;
45} _HWComponentInfoSetRequest_default_instance_;
46class HWComponentInfoSetResponseDefaultTypeInternal {
47 public:
48 ::google::protobuf::internal::ExplicitlyConstructed<HWComponentInfoSetResponse> _instance;
49} _HWComponentInfoSetResponse_default_instance_;
50class StartManagingDeviceResponseDefaultTypeInternal {
51 public:
52 ::google::protobuf::internal::ExplicitlyConstructed<StartManagingDeviceResponse> _instance;
53} _StartManagingDeviceResponse_default_instance_;
54class StopManagingDeviceRequestDefaultTypeInternal {
55 public:
56 ::google::protobuf::internal::ExplicitlyConstructed<StopManagingDeviceRequest> _instance;
57} _StopManagingDeviceRequest_default_instance_;
58class StopManagingDeviceResponseDefaultTypeInternal {
59 public:
60 ::google::protobuf::internal::ExplicitlyConstructed<StopManagingDeviceResponse> _instance;
61} _StopManagingDeviceResponse_default_instance_;
62class ManagedDeviceInfoDefaultTypeInternal {
63 public:
64 ::google::protobuf::internal::ExplicitlyConstructed<ManagedDeviceInfo> _instance;
65} _ManagedDeviceInfo_default_instance_;
66class ManagedDevicesResponseDefaultTypeInternal {
67 public:
68 ::google::protobuf::internal::ExplicitlyConstructed<ManagedDevicesResponse> _instance;
69} _ManagedDevicesResponse_default_instance_;
70class SetLoggingEndpointRequestDefaultTypeInternal {
71 public:
72 ::google::protobuf::internal::ExplicitlyConstructed<SetLoggingEndpointRequest> _instance;
73} _SetLoggingEndpointRequest_default_instance_;
74class SetRemoteEndpointResponseDefaultTypeInternal {
75 public:
76 ::google::protobuf::internal::ExplicitlyConstructed<SetRemoteEndpointResponse> _instance;
77} _SetRemoteEndpointResponse_default_instance_;
78class GetLoggingEndpointResponseDefaultTypeInternal {
79 public:
80 ::google::protobuf::internal::ExplicitlyConstructed<GetLoggingEndpointResponse> _instance;
81} _GetLoggingEndpointResponse_default_instance_;
82class SetMsgBusEndpointRequestDefaultTypeInternal {
83 public:
84 ::google::protobuf::internal::ExplicitlyConstructed<SetMsgBusEndpointRequest> _instance;
85} _SetMsgBusEndpointRequest_default_instance_;
86class GetMsgBusEndpointResponseDefaultTypeInternal {
87 public:
88 ::google::protobuf::internal::ExplicitlyConstructed<GetMsgBusEndpointResponse> _instance;
89} _GetMsgBusEndpointResponse_default_instance_;
90class EntitiesLogLevelDefaultTypeInternal {
91 public:
92 ::google::protobuf::internal::ExplicitlyConstructed<EntitiesLogLevel> _instance;
93} _EntitiesLogLevel_default_instance_;
94class SetLogLevelRequestDefaultTypeInternal {
95 public:
96 ::google::protobuf::internal::ExplicitlyConstructed<SetLogLevelRequest> _instance;
97} _SetLogLevelRequest_default_instance_;
98class SetLogLevelResponseDefaultTypeInternal {
99 public:
100 ::google::protobuf::internal::ExplicitlyConstructed<SetLogLevelResponse> _instance;
101} _SetLogLevelResponse_default_instance_;
102class GetLogLevelRequestDefaultTypeInternal {
103 public:
104 ::google::protobuf::internal::ExplicitlyConstructed<GetLogLevelRequest> _instance;
105} _GetLogLevelRequest_default_instance_;
106class GetLogLevelResponseDefaultTypeInternal {
107 public:
108 ::google::protobuf::internal::ExplicitlyConstructed<GetLogLevelResponse> _instance;
109} _GetLogLevelResponse_default_instance_;
110class GetLoggableEntitiesRequestDefaultTypeInternal {
111 public:
112 ::google::protobuf::internal::ExplicitlyConstructed<GetLoggableEntitiesRequest> _instance;
113} _GetLoggableEntitiesRequest_default_instance_;
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"
Girish Gowdra997432d2022-03-10 15:59:33 -0800812 "nent\"\251\002\n\032HWComponentInfoSetResponse\022\033\n\006s"
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530813 "tatus\030\001 \001(\0162\013.dmi.Status\0226\n\006reason\030\002 \001(\016"
814 "2&.dmi.HWComponentInfoSetResponse.Reason"
Girish Gowdra997432d2022-03-10 15:59:33 -0800815 "\022\025\n\rreason_detail\030\003 \001(\t\"\236\001\n\006Reason\022\024\n\020UN"
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530816 "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"
Girish Gowdra997432d2022-03-10 15:59:33 -0800819 "E\020\005\022\023\n\017SET_UNSUPPORTED\020\006\"\347\002\n\033StartManagi"
820 "ngDeviceResponse\022\033\n\006status\030\001 \001(\0162\013.dmi.S"
821 "tatus\0227\n\006reason\030\002 \001(\0162\'.dmi.StartManagin"
822 "gDeviceResponse.Reason\022\036\n\013device_uuid\030\003 "
823 "\001(\0132\t.dmi.Uuid\022\025\n\rreason_detail\030\004 \001(\t\"\272\001"
824 "\n\006Reason\022\024\n\020UNDEFINED_REASON\020\000\022\032\n\026DEVICE"
825 "_ALREADY_MANAGED\020\001\022!\n\035OPERATION_ALREADY_"
826 "IN_PROGRESS\020\002\022\022\n\016INVALID_PARAMS\020\003\022\022\n\016INT"
827 "ERNAL_ERROR\020\004\022\032\n\026AUTHENTICATION_FAILURE\020"
828 "\005\022\027\n\023INCOMPATIBLE_DEVICE\020\006\")\n\031StopManagi"
829 "ngDeviceRequest\022\014\n\004name\030\001 \001(\t\"\274\001\n\032StopMa"
830 "nagingDeviceResponse\022\033\n\006status\030\001 \001(\0162\013.d"
831 "mi.Status\0226\n\006reason\030\002 \001(\0162&.dmi.StopMana"
832 "gingDeviceResponse.Reason\022\025\n\rreason_deta"
833 "il\030\003 \001(\t\"2\n\006Reason\022\024\n\020UNDEFINED_REASON\020\000"
834 "\022\022\n\016UNKNOWN_DEVICE\020\001\"[\n\021ManagedDeviceInf"
835 "o\022&\n\004info\030\001 \001(\0132\030.dmi.ModifiableComponen"
836 "t\022\036\n\013device_uuid\030\002 \001(\0132\t.dmi.Uuid\"\306\001\n\026Ma"
837 "nagedDevicesResponse\022\033\n\006status\030\001 \001(\0162\013.d"
838 "mi.Status\0222\n\006reason\030\002 \001(\0162\".dmi.ManagedD"
839 "evicesResponse.Reason\022\'\n\007devices\030\003 \003(\0132\026"
840 ".dmi.ManagedDeviceInfo\"2\n\006Reason\022\024\n\020UNDE"
841 "FINED_REASON\020\000\022\022\n\016INTERNAL_ERROR\020\001\"o\n\031Se"
842 "tLoggingEndpointRequest\022\036\n\013device_uuid\030\001"
843 " \001(\0132\t.dmi.Uuid\022\030\n\020logging_endpoint\030\002 \001("
844 "\t\022\030\n\020logging_protocol\030\003 \001(\t\"\303\002\n\031SetRemot"
845 "eEndpointResponse\022\033\n\006status\030\001 \001(\0162\013.dmi."
846 "Status\0225\n\006reason\030\002 \001(\0162%.dmi.SetRemoteEn"
847 "dpointResponse.Reason\022\025\n\rreason_detail\030\003"
848 " \001(\t\"\272\001\n\006Reason\022\024\n\020UNDEFINED_REASON\020\000\022\022\n"
849 "\016UNKNOWN_DEVICE\020\001\022\022\n\016INTERNAL_ERROR\020\002\022\032\n"
850 "\026LOGGING_ENDPOINT_ERROR\020\003\022#\n\037LOGGING_END"
851 "POINT_PROTOCOL_ERROR\020\004\022\031\n\025MSGBUS_ENDPOIN"
852 "T_ERROR\020\005\022\026\n\022DEVICE_UNREACHABLE\020\006\"\234\002\n\032Ge"
853 "tLoggingEndpointResponse\022\033\n\006status\030\001 \001(\016"
854 "2\013.dmi.Status\0226\n\006reason\030\002 \001(\0162&.dmi.GetL"
855 "oggingEndpointResponse.Reason\022\030\n\020logging"
856 "_endpoint\030\003 \001(\t\022\030\n\020logging_protocol\030\004 \001("
857 "\t\022\025\n\rreason_detail\030\005 \001(\t\"^\n\006Reason\022\024\n\020UN"
amit.ghosh6bdb0f72021-06-02 14:42:29 +0200858 "DEFINED_REASON\020\000\022\022\n\016UNKNOWN_DEVICE\020\001\022\022\n\016"
Girish Gowdra997432d2022-03-10 15:59:33 -0800859 "INTERNAL_ERROR\020\002\022\026\n\022DEVICE_UNREACHABLE\020\003"
860 "\"3\n\030SetMsgBusEndpointRequest\022\027\n\017msgbus_e"
861 "ndpoint\030\001 \001(\t\"\353\001\n\031GetMsgBusEndpointRespo"
862 "nse\022\033\n\006status\030\001 \001(\0162\013.dmi.Status\0225\n\006reas"
863 "on\030\002 \001(\0162%.dmi.GetMsgBusEndpointResponse"
864 ".Reason\022\027\n\017msgbus_endpoint\030\003 \001(\t\022\025\n\rreas"
865 "on_detail\030\004 \001(\t\"J\n\006Reason\022\024\n\020UNDEFINED_R"
866 "EASON\020\000\022\022\n\016INTERNAL_ERROR\020\001\022\026\n\022DEVICE_UN"
867 "REACHABLE\020\002\"E\n\020EntitiesLogLevel\022\037\n\010logLe"
868 "vel\030\001 \001(\0162\r.dmi.LogLevel\022\020\n\010entities\030\002 \003"
869 "(\t\"^\n\022SetLogLevelRequest\022\036\n\013device_uuid\030"
870 "\001 \001(\0132\t.dmi.Uuid\022(\n\tloglevels\030\002 \003(\0132\025.dm"
871 "i.EntitiesLogLevel\"\222\002\n\023SetLogLevelRespon"
872 "se\022\036\n\013device_uuid\030\001 \001(\0132\t.dmi.Uuid\022\033\n\006st"
873 "atus\030\002 \001(\0162\013.dmi.Status\022/\n\006reason\030\003 \001(\0162"
874 "\037.dmi.SetLogLevelResponse.Reason\022\025\n\rreas"
875 "on_detail\030\004 \001(\t\"v\n\006Reason\022\024\n\020UNDEFINED_R"
876 "EASON\020\000\022\022\n\016UNKNOWN_DEVICE\020\001\022\022\n\016INTERNAL_"
877 "ERROR\020\002\022\026\n\022UNKNOWN_LOG_ENTITY\020\003\022\026\n\022DEVIC"
878 "E_UNREACHABLE\020\004\"F\n\022GetLogLevelRequest\022\036\n"
879 "\013device_uuid\030\001 \001(\0132\t.dmi.Uuid\022\020\n\010entitie"
880 "s\030\002 \003(\t\"\274\002\n\023GetLogLevelResponse\022\036\n\013devic"
881 "e_uuid\030\001 \001(\0132\t.dmi.Uuid\022(\n\tlogLevels\030\002 \003"
882 "(\0132\025.dmi.EntitiesLogLevel\022\033\n\006status\030\003 \001("
883 "\0162\013.dmi.Status\022/\n\006reason\030\004 \001(\0162\037.dmi.Get"
884 "LogLevelResponse.Reason\022\025\n\rreason_detail"
885 "\030\005 \001(\t\"v\n\006Reason\022\024\n\020UNDEFINED_REASON\020\000\022\022"
886 "\n\016UNKNOWN_DEVICE\020\001\022\022\n\016INTERNAL_ERROR\020\002\022\026"
887 "\n\022UNKNOWN_LOG_ENTITY\020\003\022\026\n\022DEVICE_UNREACH"
888 "ABLE\020\004\"<\n\032GetLoggableEntitiesRequest\022\036\n\013"
889 "device_uuid\030\001 \001(\0132\t.dmi.Uuid\"(\n\tHeartbea"
890 "t\022\033\n\023heartbeat_signature\030\001 \001(\007\"5\n\023Reboot"
891 "DeviceRequest\022\036\n\013device_uuid\030\001 \001(\0132\t.dmi"
amit.ghosh840cb602022-04-08 16:10:50 +0200892 ".Uuid\"\367\001\n\024RebootDeviceResponse\022\033\n\006status"
Girish Gowdra997432d2022-03-10 15:59:33 -0800893 "\030\003 \001(\0162\013.dmi.Status\0220\n\006reason\030\004 \001(\0162 .dm"
894 "i.RebootDeviceResponse.Reason\022\025\n\rreason_"
amit.ghosh840cb602022-04-08 16:10:50 +0200895 "detail\030\005 \001(\t\"y\n\006Reason\022\024\n\020UNDEFINED_REAS"
Girish Gowdra997432d2022-03-10 15:59:33 -0800896 "ON\020\000\022\022\n\016UNKNOWN_DEVICE\020\001\022\022\n\016INTERNAL_ERR"
amit.ghosh840cb602022-04-08 16:10:50 +0200897 "OR\020\002\022\026\n\022DEVICE_UNREACHABLE\020\003\022\031\n\025DEVICE_I"
898 "N_WRONG_STATE\020\0042\256\t\n\031NativeHWManagementSe"
899 "rvice\022S\n\023StartManagingDevice\022\030.dmi.Modif"
900 "iableComponent\032 .dmi.StartManagingDevice"
901 "Response0\001\022U\n\022StopManagingDevice\022\036.dmi.S"
902 "topManagingDeviceRequest\032\037.dmi.StopManag"
903 "ingDeviceResponse\022H\n\021GetManagedDevices\022\026"
904 ".google.protobuf.Empty\032\033.dmi.ManagedDevi"
905 "cesResponse\022W\n\024GetPhysicalInventory\022\035.dm"
906 "i.PhysicalInventoryRequest\032\036.dmi.Physica"
907 "lInventoryResponse0\001\022W\n\022GetHWComponentIn"
908 "fo\022\036.dmi.HWComponentInfoGetRequest\032\037.dmi"
909 ".HWComponentInfoGetResponse0\001\022U\n\022SetHWCo"
910 "mponentInfo\022\036.dmi.HWComponentInfoSetRequ"
911 "est\032\037.dmi.HWComponentInfoSetResponse\022T\n\022"
912 "SetLoggingEndpoint\022\036.dmi.SetLoggingEndpo"
913 "intRequest\032\036.dmi.SetRemoteEndpointRespon"
914 "se\022F\n\022GetLoggingEndpoint\022\017.dmi.HardwareI"
915 "D\032\037.dmi.GetLoggingEndpointResponse\022R\n\021Se"
916 "tMsgBusEndpoint\022\035.dmi.SetMsgBusEndpointR"
917 "equest\032\036.dmi.SetRemoteEndpointResponse\022K"
918 "\n\021GetMsgBusEndpoint\022\026.google.protobuf.Em"
919 "pty\032\036.dmi.GetMsgBusEndpointResponse\022P\n\023G"
920 "etLoggableEntities\022\037.dmi.GetLoggableEnti"
921 "tiesRequest\032\030.dmi.GetLogLevelResponse\022@\n"
922 "\013SetLogLevel\022\027.dmi.SetLogLevelRequest\032\030."
923 "dmi.SetLogLevelResponse\022@\n\013GetLogLevel\022\027"
924 ".dmi.GetLogLevelRequest\032\030.dmi.GetLogLeve"
925 "lResponse\0228\n\016HeartbeatCheck\022\026.google.pro"
926 "tobuf.Empty\032\016.dmi.Heartbeat\022C\n\014RebootDev"
927 "ice\022\030.dmi.RebootDeviceRequest\032\031.dmi.Rebo"
928 "otDeviceResponseB;Z9github.com/opencord/"
929 "device-management-interface/v3/go/dmib\006p"
930 "roto3"
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530931 ;
932::google::protobuf::internal::DescriptorTable descriptor_table_dmi_2fhw_5fmanagement_5fservice_2eproto = {
933 false, InitDefaults_dmi_2fhw_5fmanagement_5fservice_2eproto,
934 descriptor_table_protodef_dmi_2fhw_5fmanagement_5fservice_2eproto,
amit.ghosh840cb602022-04-08 16:10:50 +0200935 "dmi/hw_management_service.proto", &assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto, 5725,
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530936};
937
938void AddDescriptors_dmi_2fhw_5fmanagement_5fservice_2eproto() {
939 static constexpr ::google::protobuf::internal::InitFunc deps[3] =
940 {
941 ::AddDescriptors_dmi_2fcommons_2eproto,
942 ::AddDescriptors_dmi_2fhw_2eproto,
943 ::AddDescriptors_google_2fprotobuf_2fempty_2eproto,
944 };
945 ::google::protobuf::internal::AddDescriptors(&descriptor_table_dmi_2fhw_5fmanagement_5fservice_2eproto, deps, 3);
946}
947
948// Force running AddDescriptors() at dynamic initialization time.
949static bool dynamic_init_dummy_dmi_2fhw_5fmanagement_5fservice_2eproto = []() { AddDescriptors_dmi_2fhw_5fmanagement_5fservice_2eproto(); return true; }();
950namespace dmi {
951const ::google::protobuf::EnumDescriptor* PhysicalInventoryResponse_Reason_descriptor() {
952 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
953 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[0];
954}
955bool PhysicalInventoryResponse_Reason_IsValid(int value) {
956 switch (value) {
957 case 0:
958 case 1:
959 case 2:
960 case 3:
961 return true;
962 default:
963 return false;
964 }
965}
966
967#if !defined(_MSC_VER) || _MSC_VER >= 1900
968const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::UNDEFINED_REASON;
969const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::UNKNOWN_DEVICE;
970const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::INTERNAL_ERROR;
971const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::DEVICE_UNREACHABLE;
972const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::Reason_MIN;
973const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::Reason_MAX;
974const int PhysicalInventoryResponse::Reason_ARRAYSIZE;
975#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
976const ::google::protobuf::EnumDescriptor* HWComponentInfoGetResponse_Reason_descriptor() {
977 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
978 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[1];
979}
980bool HWComponentInfoGetResponse_Reason_IsValid(int value) {
981 switch (value) {
982 case 0:
983 case 1:
984 case 2:
985 case 3:
986 case 4:
987 return true;
988 default:
989 return false;
990 }
991}
992
993#if !defined(_MSC_VER) || _MSC_VER >= 1900
994const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::UNDEFINED_REASON;
995const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::UNKNOWN_DEVICE;
996const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::UNKNOWN_COMPONENT;
997const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::INTERNAL_ERROR;
998const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::DEVICE_UNREACHABLE;
999const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::Reason_MIN;
1000const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::Reason_MAX;
1001const int HWComponentInfoGetResponse::Reason_ARRAYSIZE;
1002#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1003const ::google::protobuf::EnumDescriptor* HWComponentInfoSetResponse_Reason_descriptor() {
1004 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1005 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[2];
1006}
1007bool HWComponentInfoSetResponse_Reason_IsValid(int value) {
1008 switch (value) {
1009 case 0:
1010 case 1:
1011 case 2:
1012 case 3:
1013 case 4:
1014 case 5:
Girish Gowdra997432d2022-03-10 15:59:33 -08001015 case 6:
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301016 return true;
1017 default:
1018 return false;
1019 }
1020}
1021
1022#if !defined(_MSC_VER) || _MSC_VER >= 1900
1023const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::UNDEFINED_REASON;
1024const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::UNKNOWN_DEVICE;
1025const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::UNKNOWN_COMPONENT;
1026const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::INVALID_PARAMS;
1027const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::INTERNAL_ERROR;
1028const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::DEVICE_UNREACHABLE;
Girish Gowdra997432d2022-03-10 15:59:33 -08001029const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::SET_UNSUPPORTED;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301030const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::Reason_MIN;
1031const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::Reason_MAX;
1032const int HWComponentInfoSetResponse::Reason_ARRAYSIZE;
1033#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1034const ::google::protobuf::EnumDescriptor* StartManagingDeviceResponse_Reason_descriptor() {
1035 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1036 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[3];
1037}
1038bool StartManagingDeviceResponse_Reason_IsValid(int value) {
1039 switch (value) {
1040 case 0:
1041 case 1:
1042 case 2:
1043 case 3:
1044 case 4:
amit.ghosh6bdb0f72021-06-02 14:42:29 +02001045 case 5:
1046 case 6:
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301047 return true;
1048 default:
1049 return false;
1050 }
1051}
1052
1053#if !defined(_MSC_VER) || _MSC_VER >= 1900
1054const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::UNDEFINED_REASON;
1055const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::DEVICE_ALREADY_MANAGED;
1056const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::OPERATION_ALREADY_IN_PROGRESS;
1057const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::INVALID_PARAMS;
1058const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::INTERNAL_ERROR;
amit.ghosh6bdb0f72021-06-02 14:42:29 +02001059const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::AUTHENTICATION_FAILURE;
1060const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::INCOMPATIBLE_DEVICE;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301061const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::Reason_MIN;
1062const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::Reason_MAX;
1063const int StartManagingDeviceResponse::Reason_ARRAYSIZE;
1064#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1065const ::google::protobuf::EnumDescriptor* StopManagingDeviceResponse_Reason_descriptor() {
1066 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1067 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[4];
1068}
1069bool StopManagingDeviceResponse_Reason_IsValid(int value) {
1070 switch (value) {
1071 case 0:
1072 case 1:
1073 return true;
1074 default:
1075 return false;
1076 }
1077}
1078
1079#if !defined(_MSC_VER) || _MSC_VER >= 1900
1080const StopManagingDeviceResponse_Reason StopManagingDeviceResponse::UNDEFINED_REASON;
1081const StopManagingDeviceResponse_Reason StopManagingDeviceResponse::UNKNOWN_DEVICE;
1082const StopManagingDeviceResponse_Reason StopManagingDeviceResponse::Reason_MIN;
1083const StopManagingDeviceResponse_Reason StopManagingDeviceResponse::Reason_MAX;
1084const int StopManagingDeviceResponse::Reason_ARRAYSIZE;
1085#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1086const ::google::protobuf::EnumDescriptor* ManagedDevicesResponse_Reason_descriptor() {
1087 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1088 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[5];
1089}
1090bool ManagedDevicesResponse_Reason_IsValid(int value) {
1091 switch (value) {
1092 case 0:
1093 case 1:
1094 return true;
1095 default:
1096 return false;
1097 }
1098}
1099
1100#if !defined(_MSC_VER) || _MSC_VER >= 1900
1101const ManagedDevicesResponse_Reason ManagedDevicesResponse::UNDEFINED_REASON;
1102const ManagedDevicesResponse_Reason ManagedDevicesResponse::INTERNAL_ERROR;
1103const ManagedDevicesResponse_Reason ManagedDevicesResponse::Reason_MIN;
1104const ManagedDevicesResponse_Reason ManagedDevicesResponse::Reason_MAX;
1105const int ManagedDevicesResponse::Reason_ARRAYSIZE;
1106#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1107const ::google::protobuf::EnumDescriptor* SetRemoteEndpointResponse_Reason_descriptor() {
1108 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1109 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[6];
1110}
1111bool SetRemoteEndpointResponse_Reason_IsValid(int value) {
1112 switch (value) {
1113 case 0:
1114 case 1:
1115 case 2:
1116 case 3:
1117 case 4:
1118 case 5:
1119 case 6:
1120 return true;
1121 default:
1122 return false;
1123 }
1124}
1125
1126#if !defined(_MSC_VER) || _MSC_VER >= 1900
1127const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::UNDEFINED_REASON;
1128const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::UNKNOWN_DEVICE;
1129const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::INTERNAL_ERROR;
1130const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::LOGGING_ENDPOINT_ERROR;
1131const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::LOGGING_ENDPOINT_PROTOCOL_ERROR;
1132const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::MSGBUS_ENDPOINT_ERROR;
1133const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::DEVICE_UNREACHABLE;
1134const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::Reason_MIN;
1135const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::Reason_MAX;
1136const int SetRemoteEndpointResponse::Reason_ARRAYSIZE;
1137#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1138const ::google::protobuf::EnumDescriptor* GetLoggingEndpointResponse_Reason_descriptor() {
1139 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1140 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[7];
1141}
1142bool GetLoggingEndpointResponse_Reason_IsValid(int value) {
1143 switch (value) {
1144 case 0:
1145 case 1:
1146 case 2:
1147 case 3:
1148 return true;
1149 default:
1150 return false;
1151 }
1152}
1153
1154#if !defined(_MSC_VER) || _MSC_VER >= 1900
1155const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::UNDEFINED_REASON;
1156const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::UNKNOWN_DEVICE;
1157const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::INTERNAL_ERROR;
1158const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::DEVICE_UNREACHABLE;
1159const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::Reason_MIN;
1160const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::Reason_MAX;
1161const int GetLoggingEndpointResponse::Reason_ARRAYSIZE;
1162#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1163const ::google::protobuf::EnumDescriptor* GetMsgBusEndpointResponse_Reason_descriptor() {
1164 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1165 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[8];
1166}
1167bool GetMsgBusEndpointResponse_Reason_IsValid(int value) {
1168 switch (value) {
1169 case 0:
1170 case 1:
1171 case 2:
1172 return true;
1173 default:
1174 return false;
1175 }
1176}
1177
1178#if !defined(_MSC_VER) || _MSC_VER >= 1900
1179const GetMsgBusEndpointResponse_Reason GetMsgBusEndpointResponse::UNDEFINED_REASON;
1180const GetMsgBusEndpointResponse_Reason GetMsgBusEndpointResponse::INTERNAL_ERROR;
1181const GetMsgBusEndpointResponse_Reason GetMsgBusEndpointResponse::DEVICE_UNREACHABLE;
1182const GetMsgBusEndpointResponse_Reason GetMsgBusEndpointResponse::Reason_MIN;
1183const GetMsgBusEndpointResponse_Reason GetMsgBusEndpointResponse::Reason_MAX;
1184const int GetMsgBusEndpointResponse::Reason_ARRAYSIZE;
1185#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1186const ::google::protobuf::EnumDescriptor* SetLogLevelResponse_Reason_descriptor() {
1187 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1188 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[9];
1189}
1190bool SetLogLevelResponse_Reason_IsValid(int value) {
1191 switch (value) {
1192 case 0:
1193 case 1:
1194 case 2:
1195 case 3:
1196 case 4:
1197 return true;
1198 default:
1199 return false;
1200 }
1201}
1202
1203#if !defined(_MSC_VER) || _MSC_VER >= 1900
1204const SetLogLevelResponse_Reason SetLogLevelResponse::UNDEFINED_REASON;
1205const SetLogLevelResponse_Reason SetLogLevelResponse::UNKNOWN_DEVICE;
1206const SetLogLevelResponse_Reason SetLogLevelResponse::INTERNAL_ERROR;
1207const SetLogLevelResponse_Reason SetLogLevelResponse::UNKNOWN_LOG_ENTITY;
1208const SetLogLevelResponse_Reason SetLogLevelResponse::DEVICE_UNREACHABLE;
1209const SetLogLevelResponse_Reason SetLogLevelResponse::Reason_MIN;
1210const SetLogLevelResponse_Reason SetLogLevelResponse::Reason_MAX;
1211const int SetLogLevelResponse::Reason_ARRAYSIZE;
1212#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1213const ::google::protobuf::EnumDescriptor* GetLogLevelResponse_Reason_descriptor() {
1214 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1215 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[10];
1216}
1217bool GetLogLevelResponse_Reason_IsValid(int value) {
1218 switch (value) {
1219 case 0:
1220 case 1:
1221 case 2:
1222 case 3:
1223 case 4:
1224 return true;
1225 default:
1226 return false;
1227 }
1228}
1229
1230#if !defined(_MSC_VER) || _MSC_VER >= 1900
1231const GetLogLevelResponse_Reason GetLogLevelResponse::UNDEFINED_REASON;
1232const GetLogLevelResponse_Reason GetLogLevelResponse::UNKNOWN_DEVICE;
1233const GetLogLevelResponse_Reason GetLogLevelResponse::INTERNAL_ERROR;
1234const GetLogLevelResponse_Reason GetLogLevelResponse::UNKNOWN_LOG_ENTITY;
1235const GetLogLevelResponse_Reason GetLogLevelResponse::DEVICE_UNREACHABLE;
1236const GetLogLevelResponse_Reason GetLogLevelResponse::Reason_MIN;
1237const GetLogLevelResponse_Reason GetLogLevelResponse::Reason_MAX;
1238const int GetLogLevelResponse::Reason_ARRAYSIZE;
1239#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +05301240const ::google::protobuf::EnumDescriptor* RebootDeviceResponse_Reason_descriptor() {
1241 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1242 return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[11];
1243}
1244bool RebootDeviceResponse_Reason_IsValid(int value) {
1245 switch (value) {
1246 case 0:
1247 case 1:
1248 case 2:
1249 case 3:
amit.ghosh840cb602022-04-08 16:10:50 +02001250 case 4:
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +05301251 return true;
1252 default:
1253 return false;
1254 }
1255}
1256
1257#if !defined(_MSC_VER) || _MSC_VER >= 1900
1258const RebootDeviceResponse_Reason RebootDeviceResponse::UNDEFINED_REASON;
1259const RebootDeviceResponse_Reason RebootDeviceResponse::UNKNOWN_DEVICE;
1260const RebootDeviceResponse_Reason RebootDeviceResponse::INTERNAL_ERROR;
1261const RebootDeviceResponse_Reason RebootDeviceResponse::DEVICE_UNREACHABLE;
amit.ghosh840cb602022-04-08 16:10:50 +02001262const RebootDeviceResponse_Reason RebootDeviceResponse::DEVICE_IN_WRONG_STATE;
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +05301263const RebootDeviceResponse_Reason RebootDeviceResponse::Reason_MIN;
1264const RebootDeviceResponse_Reason RebootDeviceResponse::Reason_MAX;
1265const int RebootDeviceResponse::Reason_ARRAYSIZE;
1266#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301267
1268// ===================================================================
1269
1270void PhysicalInventoryRequest::InitAsDefaultInstance() {
1271 ::dmi::_PhysicalInventoryRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
1272 ::dmi::Uuid::internal_default_instance());
1273}
1274class PhysicalInventoryRequest::HasBitSetters {
1275 public:
1276 static const ::dmi::Uuid& device_uuid(const PhysicalInventoryRequest* msg);
1277};
1278
1279const ::dmi::Uuid&
1280PhysicalInventoryRequest::HasBitSetters::device_uuid(const PhysicalInventoryRequest* msg) {
1281 return *msg->device_uuid_;
1282}
1283void PhysicalInventoryRequest::clear_device_uuid() {
1284 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
1285 delete device_uuid_;
1286 }
1287 device_uuid_ = nullptr;
1288}
1289#if !defined(_MSC_VER) || _MSC_VER >= 1900
1290const int PhysicalInventoryRequest::kDeviceUuidFieldNumber;
1291#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1292
1293PhysicalInventoryRequest::PhysicalInventoryRequest()
1294 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
1295 SharedCtor();
1296 // @@protoc_insertion_point(constructor:dmi.PhysicalInventoryRequest)
1297}
1298PhysicalInventoryRequest::PhysicalInventoryRequest(const PhysicalInventoryRequest& from)
1299 : ::google::protobuf::Message(),
1300 _internal_metadata_(nullptr) {
1301 _internal_metadata_.MergeFrom(from._internal_metadata_);
1302 if (from.has_device_uuid()) {
1303 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
1304 } else {
1305 device_uuid_ = nullptr;
1306 }
1307 // @@protoc_insertion_point(copy_constructor:dmi.PhysicalInventoryRequest)
1308}
1309
1310void PhysicalInventoryRequest::SharedCtor() {
1311 ::google::protobuf::internal::InitSCC(
1312 &scc_info_PhysicalInventoryRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
1313 device_uuid_ = nullptr;
1314}
1315
1316PhysicalInventoryRequest::~PhysicalInventoryRequest() {
1317 // @@protoc_insertion_point(destructor:dmi.PhysicalInventoryRequest)
1318 SharedDtor();
1319}
1320
1321void PhysicalInventoryRequest::SharedDtor() {
1322 if (this != internal_default_instance()) delete device_uuid_;
1323}
1324
1325void PhysicalInventoryRequest::SetCachedSize(int size) const {
1326 _cached_size_.Set(size);
1327}
1328const PhysicalInventoryRequest& PhysicalInventoryRequest::default_instance() {
1329 ::google::protobuf::internal::InitSCC(&::scc_info_PhysicalInventoryRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
1330 return *internal_default_instance();
1331}
1332
1333
1334void PhysicalInventoryRequest::Clear() {
1335// @@protoc_insertion_point(message_clear_start:dmi.PhysicalInventoryRequest)
1336 ::google::protobuf::uint32 cached_has_bits = 0;
1337 // Prevent compiler warnings about cached_has_bits being unused
1338 (void) cached_has_bits;
1339
1340 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
1341 delete device_uuid_;
1342 }
1343 device_uuid_ = nullptr;
1344 _internal_metadata_.Clear();
1345}
1346
1347#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1348const char* PhysicalInventoryRequest::_InternalParse(const char* begin, const char* end, void* object,
1349 ::google::protobuf::internal::ParseContext* ctx) {
1350 auto msg = static_cast<PhysicalInventoryRequest*>(object);
1351 ::google::protobuf::int32 size; (void)size;
1352 int depth; (void)depth;
1353 ::google::protobuf::uint32 tag;
1354 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
1355 auto ptr = begin;
1356 while (ptr < end) {
1357 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
1358 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1359 switch (tag >> 3) {
1360 // .dmi.Uuid device_uuid = 1;
1361 case 1: {
1362 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
1363 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
1364 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1365 parser_till_end = ::dmi::Uuid::_InternalParse;
1366 object = msg->mutable_device_uuid();
1367 if (size > end - ptr) goto len_delim_till_end;
1368 ptr += size;
1369 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
1370 {parser_till_end, object}, ptr - size, ptr));
1371 break;
1372 }
1373 default: {
1374 handle_unusual:
1375 if ((tag & 7) == 4 || tag == 0) {
1376 ctx->EndGroup(tag);
1377 return ptr;
1378 }
1379 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
1380 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
1381 ptr = res.first;
1382 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
1383 if (res.second) return ptr;
1384 }
1385 } // switch
1386 } // while
1387 return ptr;
1388len_delim_till_end:
1389 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
1390 {parser_till_end, object}, size);
1391}
1392#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1393bool PhysicalInventoryRequest::MergePartialFromCodedStream(
1394 ::google::protobuf::io::CodedInputStream* input) {
1395#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
1396 ::google::protobuf::uint32 tag;
1397 // @@protoc_insertion_point(parse_start:dmi.PhysicalInventoryRequest)
1398 for (;;) {
1399 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1400 tag = p.first;
1401 if (!p.second) goto handle_unusual;
1402 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1403 // .dmi.Uuid device_uuid = 1;
1404 case 1: {
1405 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
1406 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1407 input, mutable_device_uuid()));
1408 } else {
1409 goto handle_unusual;
1410 }
1411 break;
1412 }
1413
1414 default: {
1415 handle_unusual:
1416 if (tag == 0) {
1417 goto success;
1418 }
1419 DO_(::google::protobuf::internal::WireFormat::SkipField(
1420 input, tag, _internal_metadata_.mutable_unknown_fields()));
1421 break;
1422 }
1423 }
1424 }
1425success:
1426 // @@protoc_insertion_point(parse_success:dmi.PhysicalInventoryRequest)
1427 return true;
1428failure:
1429 // @@protoc_insertion_point(parse_failure:dmi.PhysicalInventoryRequest)
1430 return false;
1431#undef DO_
1432}
1433#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1434
1435void PhysicalInventoryRequest::SerializeWithCachedSizes(
1436 ::google::protobuf::io::CodedOutputStream* output) const {
1437 // @@protoc_insertion_point(serialize_start:dmi.PhysicalInventoryRequest)
1438 ::google::protobuf::uint32 cached_has_bits = 0;
1439 (void) cached_has_bits;
1440
1441 // .dmi.Uuid device_uuid = 1;
1442 if (this->has_device_uuid()) {
1443 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1444 1, HasBitSetters::device_uuid(this), output);
1445 }
1446
1447 if (_internal_metadata_.have_unknown_fields()) {
1448 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1449 _internal_metadata_.unknown_fields(), output);
1450 }
1451 // @@protoc_insertion_point(serialize_end:dmi.PhysicalInventoryRequest)
1452}
1453
1454::google::protobuf::uint8* PhysicalInventoryRequest::InternalSerializeWithCachedSizesToArray(
1455 ::google::protobuf::uint8* target) const {
1456 // @@protoc_insertion_point(serialize_to_array_start:dmi.PhysicalInventoryRequest)
1457 ::google::protobuf::uint32 cached_has_bits = 0;
1458 (void) cached_has_bits;
1459
1460 // .dmi.Uuid device_uuid = 1;
1461 if (this->has_device_uuid()) {
1462 target = ::google::protobuf::internal::WireFormatLite::
1463 InternalWriteMessageToArray(
1464 1, HasBitSetters::device_uuid(this), target);
1465 }
1466
1467 if (_internal_metadata_.have_unknown_fields()) {
1468 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1469 _internal_metadata_.unknown_fields(), target);
1470 }
1471 // @@protoc_insertion_point(serialize_to_array_end:dmi.PhysicalInventoryRequest)
1472 return target;
1473}
1474
1475size_t PhysicalInventoryRequest::ByteSizeLong() const {
1476// @@protoc_insertion_point(message_byte_size_start:dmi.PhysicalInventoryRequest)
1477 size_t total_size = 0;
1478
1479 if (_internal_metadata_.have_unknown_fields()) {
1480 total_size +=
1481 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1482 _internal_metadata_.unknown_fields());
1483 }
1484 ::google::protobuf::uint32 cached_has_bits = 0;
1485 // Prevent compiler warnings about cached_has_bits being unused
1486 (void) cached_has_bits;
1487
1488 // .dmi.Uuid device_uuid = 1;
1489 if (this->has_device_uuid()) {
1490 total_size += 1 +
1491 ::google::protobuf::internal::WireFormatLite::MessageSize(
1492 *device_uuid_);
1493 }
1494
1495 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1496 SetCachedSize(cached_size);
1497 return total_size;
1498}
1499
1500void PhysicalInventoryRequest::MergeFrom(const ::google::protobuf::Message& from) {
1501// @@protoc_insertion_point(generalized_merge_from_start:dmi.PhysicalInventoryRequest)
1502 GOOGLE_DCHECK_NE(&from, this);
1503 const PhysicalInventoryRequest* source =
1504 ::google::protobuf::DynamicCastToGenerated<PhysicalInventoryRequest>(
1505 &from);
1506 if (source == nullptr) {
1507 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.PhysicalInventoryRequest)
1508 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1509 } else {
1510 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.PhysicalInventoryRequest)
1511 MergeFrom(*source);
1512 }
1513}
1514
1515void PhysicalInventoryRequest::MergeFrom(const PhysicalInventoryRequest& from) {
1516// @@protoc_insertion_point(class_specific_merge_from_start:dmi.PhysicalInventoryRequest)
1517 GOOGLE_DCHECK_NE(&from, this);
1518 _internal_metadata_.MergeFrom(from._internal_metadata_);
1519 ::google::protobuf::uint32 cached_has_bits = 0;
1520 (void) cached_has_bits;
1521
1522 if (from.has_device_uuid()) {
1523 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
1524 }
1525}
1526
1527void PhysicalInventoryRequest::CopyFrom(const ::google::protobuf::Message& from) {
1528// @@protoc_insertion_point(generalized_copy_from_start:dmi.PhysicalInventoryRequest)
1529 if (&from == this) return;
1530 Clear();
1531 MergeFrom(from);
1532}
1533
1534void PhysicalInventoryRequest::CopyFrom(const PhysicalInventoryRequest& from) {
1535// @@protoc_insertion_point(class_specific_copy_from_start:dmi.PhysicalInventoryRequest)
1536 if (&from == this) return;
1537 Clear();
1538 MergeFrom(from);
1539}
1540
1541bool PhysicalInventoryRequest::IsInitialized() const {
1542 return true;
1543}
1544
1545void PhysicalInventoryRequest::Swap(PhysicalInventoryRequest* other) {
1546 if (other == this) return;
1547 InternalSwap(other);
1548}
1549void PhysicalInventoryRequest::InternalSwap(PhysicalInventoryRequest* other) {
1550 using std::swap;
1551 _internal_metadata_.Swap(&other->_internal_metadata_);
1552 swap(device_uuid_, other->device_uuid_);
1553}
1554
1555::google::protobuf::Metadata PhysicalInventoryRequest::GetMetadata() const {
1556 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
1557 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
1558}
1559
1560
1561// ===================================================================
1562
1563void PhysicalInventoryResponse::InitAsDefaultInstance() {
1564 ::dmi::_PhysicalInventoryResponse_default_instance_._instance.get_mutable()->inventory_ = const_cast< ::dmi::Hardware*>(
1565 ::dmi::Hardware::internal_default_instance());
1566}
1567class PhysicalInventoryResponse::HasBitSetters {
1568 public:
1569 static const ::dmi::Hardware& inventory(const PhysicalInventoryResponse* msg);
1570};
1571
1572const ::dmi::Hardware&
1573PhysicalInventoryResponse::HasBitSetters::inventory(const PhysicalInventoryResponse* msg) {
1574 return *msg->inventory_;
1575}
1576void PhysicalInventoryResponse::clear_inventory() {
1577 if (GetArenaNoVirtual() == nullptr && inventory_ != nullptr) {
1578 delete inventory_;
1579 }
1580 inventory_ = nullptr;
1581}
1582#if !defined(_MSC_VER) || _MSC_VER >= 1900
1583const int PhysicalInventoryResponse::kStatusFieldNumber;
1584const int PhysicalInventoryResponse::kReasonFieldNumber;
1585const int PhysicalInventoryResponse::kInventoryFieldNumber;
1586const int PhysicalInventoryResponse::kReasonDetailFieldNumber;
1587#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1588
1589PhysicalInventoryResponse::PhysicalInventoryResponse()
1590 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
1591 SharedCtor();
1592 // @@protoc_insertion_point(constructor:dmi.PhysicalInventoryResponse)
1593}
1594PhysicalInventoryResponse::PhysicalInventoryResponse(const PhysicalInventoryResponse& from)
1595 : ::google::protobuf::Message(),
1596 _internal_metadata_(nullptr) {
1597 _internal_metadata_.MergeFrom(from._internal_metadata_);
1598 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1599 if (from.reason_detail().size() > 0) {
1600 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
1601 }
1602 if (from.has_inventory()) {
1603 inventory_ = new ::dmi::Hardware(*from.inventory_);
1604 } else {
1605 inventory_ = nullptr;
1606 }
1607 ::memcpy(&status_, &from.status_,
1608 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
1609 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
1610 // @@protoc_insertion_point(copy_constructor:dmi.PhysicalInventoryResponse)
1611}
1612
1613void PhysicalInventoryResponse::SharedCtor() {
1614 ::google::protobuf::internal::InitSCC(
1615 &scc_info_PhysicalInventoryResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
1616 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1617 ::memset(&inventory_, 0, static_cast<size_t>(
1618 reinterpret_cast<char*>(&reason_) -
1619 reinterpret_cast<char*>(&inventory_)) + sizeof(reason_));
1620}
1621
1622PhysicalInventoryResponse::~PhysicalInventoryResponse() {
1623 // @@protoc_insertion_point(destructor:dmi.PhysicalInventoryResponse)
1624 SharedDtor();
1625}
1626
1627void PhysicalInventoryResponse::SharedDtor() {
1628 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1629 if (this != internal_default_instance()) delete inventory_;
1630}
1631
1632void PhysicalInventoryResponse::SetCachedSize(int size) const {
1633 _cached_size_.Set(size);
1634}
1635const PhysicalInventoryResponse& PhysicalInventoryResponse::default_instance() {
1636 ::google::protobuf::internal::InitSCC(&::scc_info_PhysicalInventoryResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
1637 return *internal_default_instance();
1638}
1639
1640
1641void PhysicalInventoryResponse::Clear() {
1642// @@protoc_insertion_point(message_clear_start:dmi.PhysicalInventoryResponse)
1643 ::google::protobuf::uint32 cached_has_bits = 0;
1644 // Prevent compiler warnings about cached_has_bits being unused
1645 (void) cached_has_bits;
1646
1647 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1648 if (GetArenaNoVirtual() == nullptr && inventory_ != nullptr) {
1649 delete inventory_;
1650 }
1651 inventory_ = nullptr;
1652 ::memset(&status_, 0, static_cast<size_t>(
1653 reinterpret_cast<char*>(&reason_) -
1654 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
1655 _internal_metadata_.Clear();
1656}
1657
1658#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1659const char* PhysicalInventoryResponse::_InternalParse(const char* begin, const char* end, void* object,
1660 ::google::protobuf::internal::ParseContext* ctx) {
1661 auto msg = static_cast<PhysicalInventoryResponse*>(object);
1662 ::google::protobuf::int32 size; (void)size;
1663 int depth; (void)depth;
1664 ::google::protobuf::uint32 tag;
1665 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
1666 auto ptr = begin;
1667 while (ptr < end) {
1668 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
1669 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1670 switch (tag >> 3) {
1671 // .dmi.Status status = 1;
1672 case 1: {
1673 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
1674 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
1675 msg->set_status(static_cast<::dmi::Status>(val));
1676 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1677 break;
1678 }
1679 // .dmi.PhysicalInventoryResponse.Reason reason = 2;
1680 case 2: {
1681 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
1682 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
1683 msg->set_reason(static_cast<::dmi::PhysicalInventoryResponse_Reason>(val));
1684 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1685 break;
1686 }
1687 // .dmi.Hardware inventory = 3;
1688 case 3: {
1689 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
1690 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
1691 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1692 parser_till_end = ::dmi::Hardware::_InternalParse;
1693 object = msg->mutable_inventory();
1694 if (size > end - ptr) goto len_delim_till_end;
1695 ptr += size;
1696 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
1697 {parser_till_end, object}, ptr - size, ptr));
1698 break;
1699 }
1700 // string reason_detail = 4;
1701 case 4: {
1702 if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual;
1703 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
1704 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1705 ctx->extra_parse_data().SetFieldName("dmi.PhysicalInventoryResponse.reason_detail");
1706 object = msg->mutable_reason_detail();
1707 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
1708 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
1709 goto string_till_end;
1710 }
1711 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
1712 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
1713 ptr += size;
1714 break;
1715 }
1716 default: {
1717 handle_unusual:
1718 if ((tag & 7) == 4 || tag == 0) {
1719 ctx->EndGroup(tag);
1720 return ptr;
1721 }
1722 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
1723 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
1724 ptr = res.first;
1725 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
1726 if (res.second) return ptr;
1727 }
1728 } // switch
1729 } // while
1730 return ptr;
1731string_till_end:
1732 static_cast<::std::string*>(object)->clear();
1733 static_cast<::std::string*>(object)->reserve(size);
1734 goto len_delim_till_end;
1735len_delim_till_end:
1736 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
1737 {parser_till_end, object}, size);
1738}
1739#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1740bool PhysicalInventoryResponse::MergePartialFromCodedStream(
1741 ::google::protobuf::io::CodedInputStream* input) {
1742#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
1743 ::google::protobuf::uint32 tag;
1744 // @@protoc_insertion_point(parse_start:dmi.PhysicalInventoryResponse)
1745 for (;;) {
1746 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1747 tag = p.first;
1748 if (!p.second) goto handle_unusual;
1749 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1750 // .dmi.Status status = 1;
1751 case 1: {
1752 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
1753 int value = 0;
1754 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1755 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1756 input, &value)));
1757 set_status(static_cast< ::dmi::Status >(value));
1758 } else {
1759 goto handle_unusual;
1760 }
1761 break;
1762 }
1763
1764 // .dmi.PhysicalInventoryResponse.Reason reason = 2;
1765 case 2: {
1766 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
1767 int value = 0;
1768 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1769 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1770 input, &value)));
1771 set_reason(static_cast< ::dmi::PhysicalInventoryResponse_Reason >(value));
1772 } else {
1773 goto handle_unusual;
1774 }
1775 break;
1776 }
1777
1778 // .dmi.Hardware inventory = 3;
1779 case 3: {
1780 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
1781 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1782 input, mutable_inventory()));
1783 } else {
1784 goto handle_unusual;
1785 }
1786 break;
1787 }
1788
1789 // string reason_detail = 4;
1790 case 4: {
1791 if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
1792 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1793 input, this->mutable_reason_detail()));
1794 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1795 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
1796 ::google::protobuf::internal::WireFormatLite::PARSE,
1797 "dmi.PhysicalInventoryResponse.reason_detail"));
1798 } else {
1799 goto handle_unusual;
1800 }
1801 break;
1802 }
1803
1804 default: {
1805 handle_unusual:
1806 if (tag == 0) {
1807 goto success;
1808 }
1809 DO_(::google::protobuf::internal::WireFormat::SkipField(
1810 input, tag, _internal_metadata_.mutable_unknown_fields()));
1811 break;
1812 }
1813 }
1814 }
1815success:
1816 // @@protoc_insertion_point(parse_success:dmi.PhysicalInventoryResponse)
1817 return true;
1818failure:
1819 // @@protoc_insertion_point(parse_failure:dmi.PhysicalInventoryResponse)
1820 return false;
1821#undef DO_
1822}
1823#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1824
1825void PhysicalInventoryResponse::SerializeWithCachedSizes(
1826 ::google::protobuf::io::CodedOutputStream* output) const {
1827 // @@protoc_insertion_point(serialize_start:dmi.PhysicalInventoryResponse)
1828 ::google::protobuf::uint32 cached_has_bits = 0;
1829 (void) cached_has_bits;
1830
1831 // .dmi.Status status = 1;
1832 if (this->status() != 0) {
1833 ::google::protobuf::internal::WireFormatLite::WriteEnum(
1834 1, this->status(), output);
1835 }
1836
1837 // .dmi.PhysicalInventoryResponse.Reason reason = 2;
1838 if (this->reason() != 0) {
1839 ::google::protobuf::internal::WireFormatLite::WriteEnum(
1840 2, this->reason(), output);
1841 }
1842
1843 // .dmi.Hardware inventory = 3;
1844 if (this->has_inventory()) {
1845 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1846 3, HasBitSetters::inventory(this), output);
1847 }
1848
1849 // string reason_detail = 4;
1850 if (this->reason_detail().size() > 0) {
1851 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1852 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
1853 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1854 "dmi.PhysicalInventoryResponse.reason_detail");
1855 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1856 4, this->reason_detail(), output);
1857 }
1858
1859 if (_internal_metadata_.have_unknown_fields()) {
1860 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1861 _internal_metadata_.unknown_fields(), output);
1862 }
1863 // @@protoc_insertion_point(serialize_end:dmi.PhysicalInventoryResponse)
1864}
1865
1866::google::protobuf::uint8* PhysicalInventoryResponse::InternalSerializeWithCachedSizesToArray(
1867 ::google::protobuf::uint8* target) const {
1868 // @@protoc_insertion_point(serialize_to_array_start:dmi.PhysicalInventoryResponse)
1869 ::google::protobuf::uint32 cached_has_bits = 0;
1870 (void) cached_has_bits;
1871
1872 // .dmi.Status status = 1;
1873 if (this->status() != 0) {
1874 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1875 1, this->status(), target);
1876 }
1877
1878 // .dmi.PhysicalInventoryResponse.Reason reason = 2;
1879 if (this->reason() != 0) {
1880 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1881 2, this->reason(), target);
1882 }
1883
1884 // .dmi.Hardware inventory = 3;
1885 if (this->has_inventory()) {
1886 target = ::google::protobuf::internal::WireFormatLite::
1887 InternalWriteMessageToArray(
1888 3, HasBitSetters::inventory(this), target);
1889 }
1890
1891 // string reason_detail = 4;
1892 if (this->reason_detail().size() > 0) {
1893 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1894 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
1895 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1896 "dmi.PhysicalInventoryResponse.reason_detail");
1897 target =
1898 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1899 4, this->reason_detail(), target);
1900 }
1901
1902 if (_internal_metadata_.have_unknown_fields()) {
1903 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1904 _internal_metadata_.unknown_fields(), target);
1905 }
1906 // @@protoc_insertion_point(serialize_to_array_end:dmi.PhysicalInventoryResponse)
1907 return target;
1908}
1909
1910size_t PhysicalInventoryResponse::ByteSizeLong() const {
1911// @@protoc_insertion_point(message_byte_size_start:dmi.PhysicalInventoryResponse)
1912 size_t total_size = 0;
1913
1914 if (_internal_metadata_.have_unknown_fields()) {
1915 total_size +=
1916 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1917 _internal_metadata_.unknown_fields());
1918 }
1919 ::google::protobuf::uint32 cached_has_bits = 0;
1920 // Prevent compiler warnings about cached_has_bits being unused
1921 (void) cached_has_bits;
1922
1923 // string reason_detail = 4;
1924 if (this->reason_detail().size() > 0) {
1925 total_size += 1 +
1926 ::google::protobuf::internal::WireFormatLite::StringSize(
1927 this->reason_detail());
1928 }
1929
1930 // .dmi.Hardware inventory = 3;
1931 if (this->has_inventory()) {
1932 total_size += 1 +
1933 ::google::protobuf::internal::WireFormatLite::MessageSize(
1934 *inventory_);
1935 }
1936
1937 // .dmi.Status status = 1;
1938 if (this->status() != 0) {
1939 total_size += 1 +
1940 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
1941 }
1942
1943 // .dmi.PhysicalInventoryResponse.Reason reason = 2;
1944 if (this->reason() != 0) {
1945 total_size += 1 +
1946 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
1947 }
1948
1949 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1950 SetCachedSize(cached_size);
1951 return total_size;
1952}
1953
1954void PhysicalInventoryResponse::MergeFrom(const ::google::protobuf::Message& from) {
1955// @@protoc_insertion_point(generalized_merge_from_start:dmi.PhysicalInventoryResponse)
1956 GOOGLE_DCHECK_NE(&from, this);
1957 const PhysicalInventoryResponse* source =
1958 ::google::protobuf::DynamicCastToGenerated<PhysicalInventoryResponse>(
1959 &from);
1960 if (source == nullptr) {
1961 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.PhysicalInventoryResponse)
1962 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1963 } else {
1964 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.PhysicalInventoryResponse)
1965 MergeFrom(*source);
1966 }
1967}
1968
1969void PhysicalInventoryResponse::MergeFrom(const PhysicalInventoryResponse& from) {
1970// @@protoc_insertion_point(class_specific_merge_from_start:dmi.PhysicalInventoryResponse)
1971 GOOGLE_DCHECK_NE(&from, this);
1972 _internal_metadata_.MergeFrom(from._internal_metadata_);
1973 ::google::protobuf::uint32 cached_has_bits = 0;
1974 (void) cached_has_bits;
1975
1976 if (from.reason_detail().size() > 0) {
1977
1978 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
1979 }
1980 if (from.has_inventory()) {
1981 mutable_inventory()->::dmi::Hardware::MergeFrom(from.inventory());
1982 }
1983 if (from.status() != 0) {
1984 set_status(from.status());
1985 }
1986 if (from.reason() != 0) {
1987 set_reason(from.reason());
1988 }
1989}
1990
1991void PhysicalInventoryResponse::CopyFrom(const ::google::protobuf::Message& from) {
1992// @@protoc_insertion_point(generalized_copy_from_start:dmi.PhysicalInventoryResponse)
1993 if (&from == this) return;
1994 Clear();
1995 MergeFrom(from);
1996}
1997
1998void PhysicalInventoryResponse::CopyFrom(const PhysicalInventoryResponse& from) {
1999// @@protoc_insertion_point(class_specific_copy_from_start:dmi.PhysicalInventoryResponse)
2000 if (&from == this) return;
2001 Clear();
2002 MergeFrom(from);
2003}
2004
2005bool PhysicalInventoryResponse::IsInitialized() const {
2006 return true;
2007}
2008
2009void PhysicalInventoryResponse::Swap(PhysicalInventoryResponse* other) {
2010 if (other == this) return;
2011 InternalSwap(other);
2012}
2013void PhysicalInventoryResponse::InternalSwap(PhysicalInventoryResponse* other) {
2014 using std::swap;
2015 _internal_metadata_.Swap(&other->_internal_metadata_);
2016 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2017 GetArenaNoVirtual());
2018 swap(inventory_, other->inventory_);
2019 swap(status_, other->status_);
2020 swap(reason_, other->reason_);
2021}
2022
2023::google::protobuf::Metadata PhysicalInventoryResponse::GetMetadata() const {
2024 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
2025 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
2026}
2027
2028
2029// ===================================================================
2030
2031void HWComponentInfoGetRequest::InitAsDefaultInstance() {
2032 ::dmi::_HWComponentInfoGetRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
2033 ::dmi::Uuid::internal_default_instance());
2034 ::dmi::_HWComponentInfoGetRequest_default_instance_._instance.get_mutable()->component_uuid_ = const_cast< ::dmi::Uuid*>(
2035 ::dmi::Uuid::internal_default_instance());
2036}
2037class HWComponentInfoGetRequest::HasBitSetters {
2038 public:
2039 static const ::dmi::Uuid& device_uuid(const HWComponentInfoGetRequest* msg);
2040 static const ::dmi::Uuid& component_uuid(const HWComponentInfoGetRequest* msg);
2041};
2042
2043const ::dmi::Uuid&
2044HWComponentInfoGetRequest::HasBitSetters::device_uuid(const HWComponentInfoGetRequest* msg) {
2045 return *msg->device_uuid_;
2046}
2047const ::dmi::Uuid&
2048HWComponentInfoGetRequest::HasBitSetters::component_uuid(const HWComponentInfoGetRequest* msg) {
2049 return *msg->component_uuid_;
2050}
2051void HWComponentInfoGetRequest::clear_device_uuid() {
2052 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
2053 delete device_uuid_;
2054 }
2055 device_uuid_ = nullptr;
2056}
2057void HWComponentInfoGetRequest::clear_component_uuid() {
2058 if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) {
2059 delete component_uuid_;
2060 }
2061 component_uuid_ = nullptr;
2062}
2063#if !defined(_MSC_VER) || _MSC_VER >= 1900
2064const int HWComponentInfoGetRequest::kDeviceUuidFieldNumber;
2065const int HWComponentInfoGetRequest::kComponentUuidFieldNumber;
2066const int HWComponentInfoGetRequest::kComponentNameFieldNumber;
2067#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
2068
2069HWComponentInfoGetRequest::HWComponentInfoGetRequest()
2070 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
2071 SharedCtor();
2072 // @@protoc_insertion_point(constructor:dmi.HWComponentInfoGetRequest)
2073}
2074HWComponentInfoGetRequest::HWComponentInfoGetRequest(const HWComponentInfoGetRequest& from)
2075 : ::google::protobuf::Message(),
2076 _internal_metadata_(nullptr) {
2077 _internal_metadata_.MergeFrom(from._internal_metadata_);
2078 component_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2079 if (from.component_name().size() > 0) {
2080 component_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.component_name_);
2081 }
2082 if (from.has_device_uuid()) {
2083 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
2084 } else {
2085 device_uuid_ = nullptr;
2086 }
2087 if (from.has_component_uuid()) {
2088 component_uuid_ = new ::dmi::Uuid(*from.component_uuid_);
2089 } else {
2090 component_uuid_ = nullptr;
2091 }
2092 // @@protoc_insertion_point(copy_constructor:dmi.HWComponentInfoGetRequest)
2093}
2094
2095void HWComponentInfoGetRequest::SharedCtor() {
2096 ::google::protobuf::internal::InitSCC(
2097 &scc_info_HWComponentInfoGetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
2098 component_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2099 ::memset(&device_uuid_, 0, static_cast<size_t>(
2100 reinterpret_cast<char*>(&component_uuid_) -
2101 reinterpret_cast<char*>(&device_uuid_)) + sizeof(component_uuid_));
2102}
2103
2104HWComponentInfoGetRequest::~HWComponentInfoGetRequest() {
2105 // @@protoc_insertion_point(destructor:dmi.HWComponentInfoGetRequest)
2106 SharedDtor();
2107}
2108
2109void HWComponentInfoGetRequest::SharedDtor() {
2110 component_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2111 if (this != internal_default_instance()) delete device_uuid_;
2112 if (this != internal_default_instance()) delete component_uuid_;
2113}
2114
2115void HWComponentInfoGetRequest::SetCachedSize(int size) const {
2116 _cached_size_.Set(size);
2117}
2118const HWComponentInfoGetRequest& HWComponentInfoGetRequest::default_instance() {
2119 ::google::protobuf::internal::InitSCC(&::scc_info_HWComponentInfoGetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
2120 return *internal_default_instance();
2121}
2122
2123
2124void HWComponentInfoGetRequest::Clear() {
2125// @@protoc_insertion_point(message_clear_start:dmi.HWComponentInfoGetRequest)
2126 ::google::protobuf::uint32 cached_has_bits = 0;
2127 // Prevent compiler warnings about cached_has_bits being unused
2128 (void) cached_has_bits;
2129
2130 component_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2131 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
2132 delete device_uuid_;
2133 }
2134 device_uuid_ = nullptr;
2135 if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) {
2136 delete component_uuid_;
2137 }
2138 component_uuid_ = nullptr;
2139 _internal_metadata_.Clear();
2140}
2141
2142#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2143const char* HWComponentInfoGetRequest::_InternalParse(const char* begin, const char* end, void* object,
2144 ::google::protobuf::internal::ParseContext* ctx) {
2145 auto msg = static_cast<HWComponentInfoGetRequest*>(object);
2146 ::google::protobuf::int32 size; (void)size;
2147 int depth; (void)depth;
2148 ::google::protobuf::uint32 tag;
2149 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
2150 auto ptr = begin;
2151 while (ptr < end) {
2152 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
2153 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2154 switch (tag >> 3) {
2155 // .dmi.Uuid device_uuid = 1;
2156 case 1: {
2157 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
2158 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
2159 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2160 parser_till_end = ::dmi::Uuid::_InternalParse;
2161 object = msg->mutable_device_uuid();
2162 if (size > end - ptr) goto len_delim_till_end;
2163 ptr += size;
2164 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
2165 {parser_till_end, object}, ptr - size, ptr));
2166 break;
2167 }
2168 // .dmi.Uuid component_uuid = 2;
2169 case 2: {
2170 if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
2171 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
2172 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2173 parser_till_end = ::dmi::Uuid::_InternalParse;
2174 object = msg->mutable_component_uuid();
2175 if (size > end - ptr) goto len_delim_till_end;
2176 ptr += size;
2177 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
2178 {parser_till_end, object}, ptr - size, ptr));
2179 break;
2180 }
2181 // string component_name = 3;
2182 case 3: {
2183 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
2184 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
2185 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2186 ctx->extra_parse_data().SetFieldName("dmi.HWComponentInfoGetRequest.component_name");
2187 object = msg->mutable_component_name();
2188 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
2189 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
2190 goto string_till_end;
2191 }
2192 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
2193 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
2194 ptr += size;
2195 break;
2196 }
2197 default: {
2198 handle_unusual:
2199 if ((tag & 7) == 4 || tag == 0) {
2200 ctx->EndGroup(tag);
2201 return ptr;
2202 }
2203 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
2204 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
2205 ptr = res.first;
2206 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
2207 if (res.second) return ptr;
2208 }
2209 } // switch
2210 } // while
2211 return ptr;
2212string_till_end:
2213 static_cast<::std::string*>(object)->clear();
2214 static_cast<::std::string*>(object)->reserve(size);
2215 goto len_delim_till_end;
2216len_delim_till_end:
2217 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
2218 {parser_till_end, object}, size);
2219}
2220#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2221bool HWComponentInfoGetRequest::MergePartialFromCodedStream(
2222 ::google::protobuf::io::CodedInputStream* input) {
2223#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
2224 ::google::protobuf::uint32 tag;
2225 // @@protoc_insertion_point(parse_start:dmi.HWComponentInfoGetRequest)
2226 for (;;) {
2227 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2228 tag = p.first;
2229 if (!p.second) goto handle_unusual;
2230 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2231 // .dmi.Uuid device_uuid = 1;
2232 case 1: {
2233 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
2234 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
2235 input, mutable_device_uuid()));
2236 } else {
2237 goto handle_unusual;
2238 }
2239 break;
2240 }
2241
2242 // .dmi.Uuid component_uuid = 2;
2243 case 2: {
2244 if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
2245 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
2246 input, mutable_component_uuid()));
2247 } else {
2248 goto handle_unusual;
2249 }
2250 break;
2251 }
2252
2253 // string component_name = 3;
2254 case 3: {
2255 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
2256 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2257 input, this->mutable_component_name()));
2258 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2259 this->component_name().data(), static_cast<int>(this->component_name().length()),
2260 ::google::protobuf::internal::WireFormatLite::PARSE,
2261 "dmi.HWComponentInfoGetRequest.component_name"));
2262 } else {
2263 goto handle_unusual;
2264 }
2265 break;
2266 }
2267
2268 default: {
2269 handle_unusual:
2270 if (tag == 0) {
2271 goto success;
2272 }
2273 DO_(::google::protobuf::internal::WireFormat::SkipField(
2274 input, tag, _internal_metadata_.mutable_unknown_fields()));
2275 break;
2276 }
2277 }
2278 }
2279success:
2280 // @@protoc_insertion_point(parse_success:dmi.HWComponentInfoGetRequest)
2281 return true;
2282failure:
2283 // @@protoc_insertion_point(parse_failure:dmi.HWComponentInfoGetRequest)
2284 return false;
2285#undef DO_
2286}
2287#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2288
2289void HWComponentInfoGetRequest::SerializeWithCachedSizes(
2290 ::google::protobuf::io::CodedOutputStream* output) const {
2291 // @@protoc_insertion_point(serialize_start:dmi.HWComponentInfoGetRequest)
2292 ::google::protobuf::uint32 cached_has_bits = 0;
2293 (void) cached_has_bits;
2294
2295 // .dmi.Uuid device_uuid = 1;
2296 if (this->has_device_uuid()) {
2297 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2298 1, HasBitSetters::device_uuid(this), output);
2299 }
2300
2301 // .dmi.Uuid component_uuid = 2;
2302 if (this->has_component_uuid()) {
2303 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2304 2, HasBitSetters::component_uuid(this), output);
2305 }
2306
2307 // string component_name = 3;
2308 if (this->component_name().size() > 0) {
2309 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2310 this->component_name().data(), static_cast<int>(this->component_name().length()),
2311 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
2312 "dmi.HWComponentInfoGetRequest.component_name");
2313 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2314 3, this->component_name(), output);
2315 }
2316
2317 if (_internal_metadata_.have_unknown_fields()) {
2318 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2319 _internal_metadata_.unknown_fields(), output);
2320 }
2321 // @@protoc_insertion_point(serialize_end:dmi.HWComponentInfoGetRequest)
2322}
2323
2324::google::protobuf::uint8* HWComponentInfoGetRequest::InternalSerializeWithCachedSizesToArray(
2325 ::google::protobuf::uint8* target) const {
2326 // @@protoc_insertion_point(serialize_to_array_start:dmi.HWComponentInfoGetRequest)
2327 ::google::protobuf::uint32 cached_has_bits = 0;
2328 (void) cached_has_bits;
2329
2330 // .dmi.Uuid device_uuid = 1;
2331 if (this->has_device_uuid()) {
2332 target = ::google::protobuf::internal::WireFormatLite::
2333 InternalWriteMessageToArray(
2334 1, HasBitSetters::device_uuid(this), target);
2335 }
2336
2337 // .dmi.Uuid component_uuid = 2;
2338 if (this->has_component_uuid()) {
2339 target = ::google::protobuf::internal::WireFormatLite::
2340 InternalWriteMessageToArray(
2341 2, HasBitSetters::component_uuid(this), target);
2342 }
2343
2344 // string component_name = 3;
2345 if (this->component_name().size() > 0) {
2346 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2347 this->component_name().data(), static_cast<int>(this->component_name().length()),
2348 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
2349 "dmi.HWComponentInfoGetRequest.component_name");
2350 target =
2351 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2352 3, this->component_name(), target);
2353 }
2354
2355 if (_internal_metadata_.have_unknown_fields()) {
2356 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2357 _internal_metadata_.unknown_fields(), target);
2358 }
2359 // @@protoc_insertion_point(serialize_to_array_end:dmi.HWComponentInfoGetRequest)
2360 return target;
2361}
2362
2363size_t HWComponentInfoGetRequest::ByteSizeLong() const {
2364// @@protoc_insertion_point(message_byte_size_start:dmi.HWComponentInfoGetRequest)
2365 size_t total_size = 0;
2366
2367 if (_internal_metadata_.have_unknown_fields()) {
2368 total_size +=
2369 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2370 _internal_metadata_.unknown_fields());
2371 }
2372 ::google::protobuf::uint32 cached_has_bits = 0;
2373 // Prevent compiler warnings about cached_has_bits being unused
2374 (void) cached_has_bits;
2375
2376 // string component_name = 3;
2377 if (this->component_name().size() > 0) {
2378 total_size += 1 +
2379 ::google::protobuf::internal::WireFormatLite::StringSize(
2380 this->component_name());
2381 }
2382
2383 // .dmi.Uuid device_uuid = 1;
2384 if (this->has_device_uuid()) {
2385 total_size += 1 +
2386 ::google::protobuf::internal::WireFormatLite::MessageSize(
2387 *device_uuid_);
2388 }
2389
2390 // .dmi.Uuid component_uuid = 2;
2391 if (this->has_component_uuid()) {
2392 total_size += 1 +
2393 ::google::protobuf::internal::WireFormatLite::MessageSize(
2394 *component_uuid_);
2395 }
2396
2397 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2398 SetCachedSize(cached_size);
2399 return total_size;
2400}
2401
2402void HWComponentInfoGetRequest::MergeFrom(const ::google::protobuf::Message& from) {
2403// @@protoc_insertion_point(generalized_merge_from_start:dmi.HWComponentInfoGetRequest)
2404 GOOGLE_DCHECK_NE(&from, this);
2405 const HWComponentInfoGetRequest* source =
2406 ::google::protobuf::DynamicCastToGenerated<HWComponentInfoGetRequest>(
2407 &from);
2408 if (source == nullptr) {
2409 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.HWComponentInfoGetRequest)
2410 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2411 } else {
2412 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.HWComponentInfoGetRequest)
2413 MergeFrom(*source);
2414 }
2415}
2416
2417void HWComponentInfoGetRequest::MergeFrom(const HWComponentInfoGetRequest& from) {
2418// @@protoc_insertion_point(class_specific_merge_from_start:dmi.HWComponentInfoGetRequest)
2419 GOOGLE_DCHECK_NE(&from, this);
2420 _internal_metadata_.MergeFrom(from._internal_metadata_);
2421 ::google::protobuf::uint32 cached_has_bits = 0;
2422 (void) cached_has_bits;
2423
2424 if (from.component_name().size() > 0) {
2425
2426 component_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.component_name_);
2427 }
2428 if (from.has_device_uuid()) {
2429 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
2430 }
2431 if (from.has_component_uuid()) {
2432 mutable_component_uuid()->::dmi::Uuid::MergeFrom(from.component_uuid());
2433 }
2434}
2435
2436void HWComponentInfoGetRequest::CopyFrom(const ::google::protobuf::Message& from) {
2437// @@protoc_insertion_point(generalized_copy_from_start:dmi.HWComponentInfoGetRequest)
2438 if (&from == this) return;
2439 Clear();
2440 MergeFrom(from);
2441}
2442
2443void HWComponentInfoGetRequest::CopyFrom(const HWComponentInfoGetRequest& from) {
2444// @@protoc_insertion_point(class_specific_copy_from_start:dmi.HWComponentInfoGetRequest)
2445 if (&from == this) return;
2446 Clear();
2447 MergeFrom(from);
2448}
2449
2450bool HWComponentInfoGetRequest::IsInitialized() const {
2451 return true;
2452}
2453
2454void HWComponentInfoGetRequest::Swap(HWComponentInfoGetRequest* other) {
2455 if (other == this) return;
2456 InternalSwap(other);
2457}
2458void HWComponentInfoGetRequest::InternalSwap(HWComponentInfoGetRequest* other) {
2459 using std::swap;
2460 _internal_metadata_.Swap(&other->_internal_metadata_);
2461 component_name_.Swap(&other->component_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2462 GetArenaNoVirtual());
2463 swap(device_uuid_, other->device_uuid_);
2464 swap(component_uuid_, other->component_uuid_);
2465}
2466
2467::google::protobuf::Metadata HWComponentInfoGetRequest::GetMetadata() const {
2468 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
2469 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
2470}
2471
2472
2473// ===================================================================
2474
2475void HWComponentInfoGetResponse::InitAsDefaultInstance() {
2476 ::dmi::_HWComponentInfoGetResponse_default_instance_._instance.get_mutable()->component_ = const_cast< ::dmi::Component*>(
2477 ::dmi::Component::internal_default_instance());
2478}
2479class HWComponentInfoGetResponse::HasBitSetters {
2480 public:
2481 static const ::dmi::Component& component(const HWComponentInfoGetResponse* msg);
2482};
2483
2484const ::dmi::Component&
2485HWComponentInfoGetResponse::HasBitSetters::component(const HWComponentInfoGetResponse* msg) {
2486 return *msg->component_;
2487}
2488void HWComponentInfoGetResponse::clear_component() {
2489 if (GetArenaNoVirtual() == nullptr && component_ != nullptr) {
2490 delete component_;
2491 }
2492 component_ = nullptr;
2493}
2494#if !defined(_MSC_VER) || _MSC_VER >= 1900
2495const int HWComponentInfoGetResponse::kStatusFieldNumber;
2496const int HWComponentInfoGetResponse::kReasonFieldNumber;
2497const int HWComponentInfoGetResponse::kComponentFieldNumber;
2498const int HWComponentInfoGetResponse::kReasonDetailFieldNumber;
2499#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
2500
2501HWComponentInfoGetResponse::HWComponentInfoGetResponse()
2502 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
2503 SharedCtor();
2504 // @@protoc_insertion_point(constructor:dmi.HWComponentInfoGetResponse)
2505}
2506HWComponentInfoGetResponse::HWComponentInfoGetResponse(const HWComponentInfoGetResponse& from)
2507 : ::google::protobuf::Message(),
2508 _internal_metadata_(nullptr) {
2509 _internal_metadata_.MergeFrom(from._internal_metadata_);
2510 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2511 if (from.reason_detail().size() > 0) {
2512 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
2513 }
2514 if (from.has_component()) {
2515 component_ = new ::dmi::Component(*from.component_);
2516 } else {
2517 component_ = nullptr;
2518 }
2519 ::memcpy(&status_, &from.status_,
2520 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
2521 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
2522 // @@protoc_insertion_point(copy_constructor:dmi.HWComponentInfoGetResponse)
2523}
2524
2525void HWComponentInfoGetResponse::SharedCtor() {
2526 ::google::protobuf::internal::InitSCC(
2527 &scc_info_HWComponentInfoGetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
2528 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2529 ::memset(&component_, 0, static_cast<size_t>(
2530 reinterpret_cast<char*>(&reason_) -
2531 reinterpret_cast<char*>(&component_)) + sizeof(reason_));
2532}
2533
2534HWComponentInfoGetResponse::~HWComponentInfoGetResponse() {
2535 // @@protoc_insertion_point(destructor:dmi.HWComponentInfoGetResponse)
2536 SharedDtor();
2537}
2538
2539void HWComponentInfoGetResponse::SharedDtor() {
2540 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2541 if (this != internal_default_instance()) delete component_;
2542}
2543
2544void HWComponentInfoGetResponse::SetCachedSize(int size) const {
2545 _cached_size_.Set(size);
2546}
2547const HWComponentInfoGetResponse& HWComponentInfoGetResponse::default_instance() {
2548 ::google::protobuf::internal::InitSCC(&::scc_info_HWComponentInfoGetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
2549 return *internal_default_instance();
2550}
2551
2552
2553void HWComponentInfoGetResponse::Clear() {
2554// @@protoc_insertion_point(message_clear_start:dmi.HWComponentInfoGetResponse)
2555 ::google::protobuf::uint32 cached_has_bits = 0;
2556 // Prevent compiler warnings about cached_has_bits being unused
2557 (void) cached_has_bits;
2558
2559 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2560 if (GetArenaNoVirtual() == nullptr && component_ != nullptr) {
2561 delete component_;
2562 }
2563 component_ = nullptr;
2564 ::memset(&status_, 0, static_cast<size_t>(
2565 reinterpret_cast<char*>(&reason_) -
2566 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
2567 _internal_metadata_.Clear();
2568}
2569
2570#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2571const char* HWComponentInfoGetResponse::_InternalParse(const char* begin, const char* end, void* object,
2572 ::google::protobuf::internal::ParseContext* ctx) {
2573 auto msg = static_cast<HWComponentInfoGetResponse*>(object);
2574 ::google::protobuf::int32 size; (void)size;
2575 int depth; (void)depth;
2576 ::google::protobuf::uint32 tag;
2577 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
2578 auto ptr = begin;
2579 while (ptr < end) {
2580 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
2581 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2582 switch (tag >> 3) {
2583 // .dmi.Status status = 1;
2584 case 1: {
2585 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
2586 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
2587 msg->set_status(static_cast<::dmi::Status>(val));
2588 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2589 break;
2590 }
2591 // .dmi.HWComponentInfoGetResponse.Reason reason = 2;
2592 case 2: {
2593 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
2594 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
2595 msg->set_reason(static_cast<::dmi::HWComponentInfoGetResponse_Reason>(val));
2596 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2597 break;
2598 }
2599 // .dmi.Component component = 3;
2600 case 3: {
2601 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
2602 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
2603 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2604 parser_till_end = ::dmi::Component::_InternalParse;
2605 object = msg->mutable_component();
2606 if (size > end - ptr) goto len_delim_till_end;
2607 ptr += size;
2608 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
2609 {parser_till_end, object}, ptr - size, ptr));
2610 break;
2611 }
2612 // string reason_detail = 4;
2613 case 4: {
2614 if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual;
2615 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
2616 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2617 ctx->extra_parse_data().SetFieldName("dmi.HWComponentInfoGetResponse.reason_detail");
2618 object = msg->mutable_reason_detail();
2619 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
2620 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
2621 goto string_till_end;
2622 }
2623 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
2624 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
2625 ptr += size;
2626 break;
2627 }
2628 default: {
2629 handle_unusual:
2630 if ((tag & 7) == 4 || tag == 0) {
2631 ctx->EndGroup(tag);
2632 return ptr;
2633 }
2634 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
2635 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
2636 ptr = res.first;
2637 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
2638 if (res.second) return ptr;
2639 }
2640 } // switch
2641 } // while
2642 return ptr;
2643string_till_end:
2644 static_cast<::std::string*>(object)->clear();
2645 static_cast<::std::string*>(object)->reserve(size);
2646 goto len_delim_till_end;
2647len_delim_till_end:
2648 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
2649 {parser_till_end, object}, size);
2650}
2651#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2652bool HWComponentInfoGetResponse::MergePartialFromCodedStream(
2653 ::google::protobuf::io::CodedInputStream* input) {
2654#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
2655 ::google::protobuf::uint32 tag;
2656 // @@protoc_insertion_point(parse_start:dmi.HWComponentInfoGetResponse)
2657 for (;;) {
2658 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2659 tag = p.first;
2660 if (!p.second) goto handle_unusual;
2661 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2662 // .dmi.Status status = 1;
2663 case 1: {
2664 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
2665 int value = 0;
2666 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2667 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
2668 input, &value)));
2669 set_status(static_cast< ::dmi::Status >(value));
2670 } else {
2671 goto handle_unusual;
2672 }
2673 break;
2674 }
2675
2676 // .dmi.HWComponentInfoGetResponse.Reason reason = 2;
2677 case 2: {
2678 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
2679 int value = 0;
2680 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2681 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
2682 input, &value)));
2683 set_reason(static_cast< ::dmi::HWComponentInfoGetResponse_Reason >(value));
2684 } else {
2685 goto handle_unusual;
2686 }
2687 break;
2688 }
2689
2690 // .dmi.Component component = 3;
2691 case 3: {
2692 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
2693 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
2694 input, mutable_component()));
2695 } else {
2696 goto handle_unusual;
2697 }
2698 break;
2699 }
2700
2701 // string reason_detail = 4;
2702 case 4: {
2703 if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
2704 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2705 input, this->mutable_reason_detail()));
2706 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2707 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
2708 ::google::protobuf::internal::WireFormatLite::PARSE,
2709 "dmi.HWComponentInfoGetResponse.reason_detail"));
2710 } else {
2711 goto handle_unusual;
2712 }
2713 break;
2714 }
2715
2716 default: {
2717 handle_unusual:
2718 if (tag == 0) {
2719 goto success;
2720 }
2721 DO_(::google::protobuf::internal::WireFormat::SkipField(
2722 input, tag, _internal_metadata_.mutable_unknown_fields()));
2723 break;
2724 }
2725 }
2726 }
2727success:
2728 // @@protoc_insertion_point(parse_success:dmi.HWComponentInfoGetResponse)
2729 return true;
2730failure:
2731 // @@protoc_insertion_point(parse_failure:dmi.HWComponentInfoGetResponse)
2732 return false;
2733#undef DO_
2734}
2735#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2736
2737void HWComponentInfoGetResponse::SerializeWithCachedSizes(
2738 ::google::protobuf::io::CodedOutputStream* output) const {
2739 // @@protoc_insertion_point(serialize_start:dmi.HWComponentInfoGetResponse)
2740 ::google::protobuf::uint32 cached_has_bits = 0;
2741 (void) cached_has_bits;
2742
2743 // .dmi.Status status = 1;
2744 if (this->status() != 0) {
2745 ::google::protobuf::internal::WireFormatLite::WriteEnum(
2746 1, this->status(), output);
2747 }
2748
2749 // .dmi.HWComponentInfoGetResponse.Reason reason = 2;
2750 if (this->reason() != 0) {
2751 ::google::protobuf::internal::WireFormatLite::WriteEnum(
2752 2, this->reason(), output);
2753 }
2754
2755 // .dmi.Component component = 3;
2756 if (this->has_component()) {
2757 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2758 3, HasBitSetters::component(this), output);
2759 }
2760
2761 // string reason_detail = 4;
2762 if (this->reason_detail().size() > 0) {
2763 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2764 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
2765 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
2766 "dmi.HWComponentInfoGetResponse.reason_detail");
2767 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2768 4, this->reason_detail(), output);
2769 }
2770
2771 if (_internal_metadata_.have_unknown_fields()) {
2772 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2773 _internal_metadata_.unknown_fields(), output);
2774 }
2775 // @@protoc_insertion_point(serialize_end:dmi.HWComponentInfoGetResponse)
2776}
2777
2778::google::protobuf::uint8* HWComponentInfoGetResponse::InternalSerializeWithCachedSizesToArray(
2779 ::google::protobuf::uint8* target) const {
2780 // @@protoc_insertion_point(serialize_to_array_start:dmi.HWComponentInfoGetResponse)
2781 ::google::protobuf::uint32 cached_has_bits = 0;
2782 (void) cached_has_bits;
2783
2784 // .dmi.Status status = 1;
2785 if (this->status() != 0) {
2786 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2787 1, this->status(), target);
2788 }
2789
2790 // .dmi.HWComponentInfoGetResponse.Reason reason = 2;
2791 if (this->reason() != 0) {
2792 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2793 2, this->reason(), target);
2794 }
2795
2796 // .dmi.Component component = 3;
2797 if (this->has_component()) {
2798 target = ::google::protobuf::internal::WireFormatLite::
2799 InternalWriteMessageToArray(
2800 3, HasBitSetters::component(this), target);
2801 }
2802
2803 // string reason_detail = 4;
2804 if (this->reason_detail().size() > 0) {
2805 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2806 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
2807 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
2808 "dmi.HWComponentInfoGetResponse.reason_detail");
2809 target =
2810 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2811 4, this->reason_detail(), target);
2812 }
2813
2814 if (_internal_metadata_.have_unknown_fields()) {
2815 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2816 _internal_metadata_.unknown_fields(), target);
2817 }
2818 // @@protoc_insertion_point(serialize_to_array_end:dmi.HWComponentInfoGetResponse)
2819 return target;
2820}
2821
2822size_t HWComponentInfoGetResponse::ByteSizeLong() const {
2823// @@protoc_insertion_point(message_byte_size_start:dmi.HWComponentInfoGetResponse)
2824 size_t total_size = 0;
2825
2826 if (_internal_metadata_.have_unknown_fields()) {
2827 total_size +=
2828 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2829 _internal_metadata_.unknown_fields());
2830 }
2831 ::google::protobuf::uint32 cached_has_bits = 0;
2832 // Prevent compiler warnings about cached_has_bits being unused
2833 (void) cached_has_bits;
2834
2835 // string reason_detail = 4;
2836 if (this->reason_detail().size() > 0) {
2837 total_size += 1 +
2838 ::google::protobuf::internal::WireFormatLite::StringSize(
2839 this->reason_detail());
2840 }
2841
2842 // .dmi.Component component = 3;
2843 if (this->has_component()) {
2844 total_size += 1 +
2845 ::google::protobuf::internal::WireFormatLite::MessageSize(
2846 *component_);
2847 }
2848
2849 // .dmi.Status status = 1;
2850 if (this->status() != 0) {
2851 total_size += 1 +
2852 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
2853 }
2854
2855 // .dmi.HWComponentInfoGetResponse.Reason reason = 2;
2856 if (this->reason() != 0) {
2857 total_size += 1 +
2858 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
2859 }
2860
2861 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2862 SetCachedSize(cached_size);
2863 return total_size;
2864}
2865
2866void HWComponentInfoGetResponse::MergeFrom(const ::google::protobuf::Message& from) {
2867// @@protoc_insertion_point(generalized_merge_from_start:dmi.HWComponentInfoGetResponse)
2868 GOOGLE_DCHECK_NE(&from, this);
2869 const HWComponentInfoGetResponse* source =
2870 ::google::protobuf::DynamicCastToGenerated<HWComponentInfoGetResponse>(
2871 &from);
2872 if (source == nullptr) {
2873 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.HWComponentInfoGetResponse)
2874 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2875 } else {
2876 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.HWComponentInfoGetResponse)
2877 MergeFrom(*source);
2878 }
2879}
2880
2881void HWComponentInfoGetResponse::MergeFrom(const HWComponentInfoGetResponse& from) {
2882// @@protoc_insertion_point(class_specific_merge_from_start:dmi.HWComponentInfoGetResponse)
2883 GOOGLE_DCHECK_NE(&from, this);
2884 _internal_metadata_.MergeFrom(from._internal_metadata_);
2885 ::google::protobuf::uint32 cached_has_bits = 0;
2886 (void) cached_has_bits;
2887
2888 if (from.reason_detail().size() > 0) {
2889
2890 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
2891 }
2892 if (from.has_component()) {
2893 mutable_component()->::dmi::Component::MergeFrom(from.component());
2894 }
2895 if (from.status() != 0) {
2896 set_status(from.status());
2897 }
2898 if (from.reason() != 0) {
2899 set_reason(from.reason());
2900 }
2901}
2902
2903void HWComponentInfoGetResponse::CopyFrom(const ::google::protobuf::Message& from) {
2904// @@protoc_insertion_point(generalized_copy_from_start:dmi.HWComponentInfoGetResponse)
2905 if (&from == this) return;
2906 Clear();
2907 MergeFrom(from);
2908}
2909
2910void HWComponentInfoGetResponse::CopyFrom(const HWComponentInfoGetResponse& from) {
2911// @@protoc_insertion_point(class_specific_copy_from_start:dmi.HWComponentInfoGetResponse)
2912 if (&from == this) return;
2913 Clear();
2914 MergeFrom(from);
2915}
2916
2917bool HWComponentInfoGetResponse::IsInitialized() const {
2918 return true;
2919}
2920
2921void HWComponentInfoGetResponse::Swap(HWComponentInfoGetResponse* other) {
2922 if (other == this) return;
2923 InternalSwap(other);
2924}
2925void HWComponentInfoGetResponse::InternalSwap(HWComponentInfoGetResponse* other) {
2926 using std::swap;
2927 _internal_metadata_.Swap(&other->_internal_metadata_);
2928 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2929 GetArenaNoVirtual());
2930 swap(component_, other->component_);
2931 swap(status_, other->status_);
2932 swap(reason_, other->reason_);
2933}
2934
2935::google::protobuf::Metadata HWComponentInfoGetResponse::GetMetadata() const {
2936 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
2937 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
2938}
2939
2940
2941// ===================================================================
2942
2943void HWComponentInfoSetRequest::InitAsDefaultInstance() {
2944 ::dmi::_HWComponentInfoSetRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
2945 ::dmi::Uuid::internal_default_instance());
2946 ::dmi::_HWComponentInfoSetRequest_default_instance_._instance.get_mutable()->component_uuid_ = const_cast< ::dmi::Uuid*>(
2947 ::dmi::Uuid::internal_default_instance());
2948 ::dmi::_HWComponentInfoSetRequest_default_instance_._instance.get_mutable()->changes_ = const_cast< ::dmi::ModifiableComponent*>(
2949 ::dmi::ModifiableComponent::internal_default_instance());
2950}
2951class HWComponentInfoSetRequest::HasBitSetters {
2952 public:
2953 static const ::dmi::Uuid& device_uuid(const HWComponentInfoSetRequest* msg);
2954 static const ::dmi::Uuid& component_uuid(const HWComponentInfoSetRequest* msg);
2955 static const ::dmi::ModifiableComponent& changes(const HWComponentInfoSetRequest* msg);
2956};
2957
2958const ::dmi::Uuid&
2959HWComponentInfoSetRequest::HasBitSetters::device_uuid(const HWComponentInfoSetRequest* msg) {
2960 return *msg->device_uuid_;
2961}
2962const ::dmi::Uuid&
2963HWComponentInfoSetRequest::HasBitSetters::component_uuid(const HWComponentInfoSetRequest* msg) {
2964 return *msg->component_uuid_;
2965}
2966const ::dmi::ModifiableComponent&
2967HWComponentInfoSetRequest::HasBitSetters::changes(const HWComponentInfoSetRequest* msg) {
2968 return *msg->changes_;
2969}
2970void HWComponentInfoSetRequest::clear_device_uuid() {
2971 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
2972 delete device_uuid_;
2973 }
2974 device_uuid_ = nullptr;
2975}
2976void HWComponentInfoSetRequest::clear_component_uuid() {
2977 if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) {
2978 delete component_uuid_;
2979 }
2980 component_uuid_ = nullptr;
2981}
2982void HWComponentInfoSetRequest::clear_changes() {
2983 if (GetArenaNoVirtual() == nullptr && changes_ != nullptr) {
2984 delete changes_;
2985 }
2986 changes_ = nullptr;
2987}
2988#if !defined(_MSC_VER) || _MSC_VER >= 1900
2989const int HWComponentInfoSetRequest::kDeviceUuidFieldNumber;
2990const int HWComponentInfoSetRequest::kComponentUuidFieldNumber;
2991const int HWComponentInfoSetRequest::kComponentNameFieldNumber;
2992const int HWComponentInfoSetRequest::kChangesFieldNumber;
2993#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
2994
2995HWComponentInfoSetRequest::HWComponentInfoSetRequest()
2996 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
2997 SharedCtor();
2998 // @@protoc_insertion_point(constructor:dmi.HWComponentInfoSetRequest)
2999}
3000HWComponentInfoSetRequest::HWComponentInfoSetRequest(const HWComponentInfoSetRequest& from)
3001 : ::google::protobuf::Message(),
3002 _internal_metadata_(nullptr) {
3003 _internal_metadata_.MergeFrom(from._internal_metadata_);
3004 component_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3005 if (from.component_name().size() > 0) {
3006 component_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.component_name_);
3007 }
3008 if (from.has_device_uuid()) {
3009 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
3010 } else {
3011 device_uuid_ = nullptr;
3012 }
3013 if (from.has_component_uuid()) {
3014 component_uuid_ = new ::dmi::Uuid(*from.component_uuid_);
3015 } else {
3016 component_uuid_ = nullptr;
3017 }
3018 if (from.has_changes()) {
3019 changes_ = new ::dmi::ModifiableComponent(*from.changes_);
3020 } else {
3021 changes_ = nullptr;
3022 }
3023 // @@protoc_insertion_point(copy_constructor:dmi.HWComponentInfoSetRequest)
3024}
3025
3026void HWComponentInfoSetRequest::SharedCtor() {
3027 ::google::protobuf::internal::InitSCC(
3028 &scc_info_HWComponentInfoSetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
3029 component_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3030 ::memset(&device_uuid_, 0, static_cast<size_t>(
3031 reinterpret_cast<char*>(&changes_) -
3032 reinterpret_cast<char*>(&device_uuid_)) + sizeof(changes_));
3033}
3034
3035HWComponentInfoSetRequest::~HWComponentInfoSetRequest() {
3036 // @@protoc_insertion_point(destructor:dmi.HWComponentInfoSetRequest)
3037 SharedDtor();
3038}
3039
3040void HWComponentInfoSetRequest::SharedDtor() {
3041 component_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3042 if (this != internal_default_instance()) delete device_uuid_;
3043 if (this != internal_default_instance()) delete component_uuid_;
3044 if (this != internal_default_instance()) delete changes_;
3045}
3046
3047void HWComponentInfoSetRequest::SetCachedSize(int size) const {
3048 _cached_size_.Set(size);
3049}
3050const HWComponentInfoSetRequest& HWComponentInfoSetRequest::default_instance() {
3051 ::google::protobuf::internal::InitSCC(&::scc_info_HWComponentInfoSetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
3052 return *internal_default_instance();
3053}
3054
3055
3056void HWComponentInfoSetRequest::Clear() {
3057// @@protoc_insertion_point(message_clear_start:dmi.HWComponentInfoSetRequest)
3058 ::google::protobuf::uint32 cached_has_bits = 0;
3059 // Prevent compiler warnings about cached_has_bits being unused
3060 (void) cached_has_bits;
3061
3062 component_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3063 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
3064 delete device_uuid_;
3065 }
3066 device_uuid_ = nullptr;
3067 if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) {
3068 delete component_uuid_;
3069 }
3070 component_uuid_ = nullptr;
3071 if (GetArenaNoVirtual() == nullptr && changes_ != nullptr) {
3072 delete changes_;
3073 }
3074 changes_ = nullptr;
3075 _internal_metadata_.Clear();
3076}
3077
3078#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3079const char* HWComponentInfoSetRequest::_InternalParse(const char* begin, const char* end, void* object,
3080 ::google::protobuf::internal::ParseContext* ctx) {
3081 auto msg = static_cast<HWComponentInfoSetRequest*>(object);
3082 ::google::protobuf::int32 size; (void)size;
3083 int depth; (void)depth;
3084 ::google::protobuf::uint32 tag;
3085 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
3086 auto ptr = begin;
3087 while (ptr < end) {
3088 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
3089 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3090 switch (tag >> 3) {
3091 // .dmi.Uuid device_uuid = 1;
3092 case 1: {
3093 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
3094 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
3095 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3096 parser_till_end = ::dmi::Uuid::_InternalParse;
3097 object = msg->mutable_device_uuid();
3098 if (size > end - ptr) goto len_delim_till_end;
3099 ptr += size;
3100 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
3101 {parser_till_end, object}, ptr - size, ptr));
3102 break;
3103 }
3104 // .dmi.Uuid component_uuid = 2;
3105 case 2: {
3106 if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
3107 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
3108 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3109 parser_till_end = ::dmi::Uuid::_InternalParse;
3110 object = msg->mutable_component_uuid();
3111 if (size > end - ptr) goto len_delim_till_end;
3112 ptr += size;
3113 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
3114 {parser_till_end, object}, ptr - size, ptr));
3115 break;
3116 }
3117 // string component_name = 3;
3118 case 3: {
3119 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
3120 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
3121 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3122 ctx->extra_parse_data().SetFieldName("dmi.HWComponentInfoSetRequest.component_name");
3123 object = msg->mutable_component_name();
3124 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
3125 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
3126 goto string_till_end;
3127 }
3128 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
3129 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
3130 ptr += size;
3131 break;
3132 }
3133 // .dmi.ModifiableComponent changes = 4;
3134 case 4: {
3135 if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual;
3136 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
3137 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3138 parser_till_end = ::dmi::ModifiableComponent::_InternalParse;
3139 object = msg->mutable_changes();
3140 if (size > end - ptr) goto len_delim_till_end;
3141 ptr += size;
3142 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
3143 {parser_till_end, object}, ptr - size, ptr));
3144 break;
3145 }
3146 default: {
3147 handle_unusual:
3148 if ((tag & 7) == 4 || tag == 0) {
3149 ctx->EndGroup(tag);
3150 return ptr;
3151 }
3152 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
3153 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
3154 ptr = res.first;
3155 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
3156 if (res.second) return ptr;
3157 }
3158 } // switch
3159 } // while
3160 return ptr;
3161string_till_end:
3162 static_cast<::std::string*>(object)->clear();
3163 static_cast<::std::string*>(object)->reserve(size);
3164 goto len_delim_till_end;
3165len_delim_till_end:
3166 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
3167 {parser_till_end, object}, size);
3168}
3169#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3170bool HWComponentInfoSetRequest::MergePartialFromCodedStream(
3171 ::google::protobuf::io::CodedInputStream* input) {
3172#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
3173 ::google::protobuf::uint32 tag;
3174 // @@protoc_insertion_point(parse_start:dmi.HWComponentInfoSetRequest)
3175 for (;;) {
3176 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3177 tag = p.first;
3178 if (!p.second) goto handle_unusual;
3179 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3180 // .dmi.Uuid device_uuid = 1;
3181 case 1: {
3182 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
3183 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3184 input, mutable_device_uuid()));
3185 } else {
3186 goto handle_unusual;
3187 }
3188 break;
3189 }
3190
3191 // .dmi.Uuid component_uuid = 2;
3192 case 2: {
3193 if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
3194 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3195 input, mutable_component_uuid()));
3196 } else {
3197 goto handle_unusual;
3198 }
3199 break;
3200 }
3201
3202 // string component_name = 3;
3203 case 3: {
3204 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
3205 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3206 input, this->mutable_component_name()));
3207 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3208 this->component_name().data(), static_cast<int>(this->component_name().length()),
3209 ::google::protobuf::internal::WireFormatLite::PARSE,
3210 "dmi.HWComponentInfoSetRequest.component_name"));
3211 } else {
3212 goto handle_unusual;
3213 }
3214 break;
3215 }
3216
3217 // .dmi.ModifiableComponent changes = 4;
3218 case 4: {
3219 if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
3220 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3221 input, mutable_changes()));
3222 } else {
3223 goto handle_unusual;
3224 }
3225 break;
3226 }
3227
3228 default: {
3229 handle_unusual:
3230 if (tag == 0) {
3231 goto success;
3232 }
3233 DO_(::google::protobuf::internal::WireFormat::SkipField(
3234 input, tag, _internal_metadata_.mutable_unknown_fields()));
3235 break;
3236 }
3237 }
3238 }
3239success:
3240 // @@protoc_insertion_point(parse_success:dmi.HWComponentInfoSetRequest)
3241 return true;
3242failure:
3243 // @@protoc_insertion_point(parse_failure:dmi.HWComponentInfoSetRequest)
3244 return false;
3245#undef DO_
3246}
3247#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3248
3249void HWComponentInfoSetRequest::SerializeWithCachedSizes(
3250 ::google::protobuf::io::CodedOutputStream* output) const {
3251 // @@protoc_insertion_point(serialize_start:dmi.HWComponentInfoSetRequest)
3252 ::google::protobuf::uint32 cached_has_bits = 0;
3253 (void) cached_has_bits;
3254
3255 // .dmi.Uuid device_uuid = 1;
3256 if (this->has_device_uuid()) {
3257 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3258 1, HasBitSetters::device_uuid(this), output);
3259 }
3260
3261 // .dmi.Uuid component_uuid = 2;
3262 if (this->has_component_uuid()) {
3263 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3264 2, HasBitSetters::component_uuid(this), output);
3265 }
3266
3267 // string component_name = 3;
3268 if (this->component_name().size() > 0) {
3269 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3270 this->component_name().data(), static_cast<int>(this->component_name().length()),
3271 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
3272 "dmi.HWComponentInfoSetRequest.component_name");
3273 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3274 3, this->component_name(), output);
3275 }
3276
3277 // .dmi.ModifiableComponent changes = 4;
3278 if (this->has_changes()) {
3279 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3280 4, HasBitSetters::changes(this), output);
3281 }
3282
3283 if (_internal_metadata_.have_unknown_fields()) {
3284 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3285 _internal_metadata_.unknown_fields(), output);
3286 }
3287 // @@protoc_insertion_point(serialize_end:dmi.HWComponentInfoSetRequest)
3288}
3289
3290::google::protobuf::uint8* HWComponentInfoSetRequest::InternalSerializeWithCachedSizesToArray(
3291 ::google::protobuf::uint8* target) const {
3292 // @@protoc_insertion_point(serialize_to_array_start:dmi.HWComponentInfoSetRequest)
3293 ::google::protobuf::uint32 cached_has_bits = 0;
3294 (void) cached_has_bits;
3295
3296 // .dmi.Uuid device_uuid = 1;
3297 if (this->has_device_uuid()) {
3298 target = ::google::protobuf::internal::WireFormatLite::
3299 InternalWriteMessageToArray(
3300 1, HasBitSetters::device_uuid(this), target);
3301 }
3302
3303 // .dmi.Uuid component_uuid = 2;
3304 if (this->has_component_uuid()) {
3305 target = ::google::protobuf::internal::WireFormatLite::
3306 InternalWriteMessageToArray(
3307 2, HasBitSetters::component_uuid(this), target);
3308 }
3309
3310 // string component_name = 3;
3311 if (this->component_name().size() > 0) {
3312 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3313 this->component_name().data(), static_cast<int>(this->component_name().length()),
3314 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
3315 "dmi.HWComponentInfoSetRequest.component_name");
3316 target =
3317 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3318 3, this->component_name(), target);
3319 }
3320
3321 // .dmi.ModifiableComponent changes = 4;
3322 if (this->has_changes()) {
3323 target = ::google::protobuf::internal::WireFormatLite::
3324 InternalWriteMessageToArray(
3325 4, HasBitSetters::changes(this), target);
3326 }
3327
3328 if (_internal_metadata_.have_unknown_fields()) {
3329 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3330 _internal_metadata_.unknown_fields(), target);
3331 }
3332 // @@protoc_insertion_point(serialize_to_array_end:dmi.HWComponentInfoSetRequest)
3333 return target;
3334}
3335
3336size_t HWComponentInfoSetRequest::ByteSizeLong() const {
3337// @@protoc_insertion_point(message_byte_size_start:dmi.HWComponentInfoSetRequest)
3338 size_t total_size = 0;
3339
3340 if (_internal_metadata_.have_unknown_fields()) {
3341 total_size +=
3342 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3343 _internal_metadata_.unknown_fields());
3344 }
3345 ::google::protobuf::uint32 cached_has_bits = 0;
3346 // Prevent compiler warnings about cached_has_bits being unused
3347 (void) cached_has_bits;
3348
3349 // string component_name = 3;
3350 if (this->component_name().size() > 0) {
3351 total_size += 1 +
3352 ::google::protobuf::internal::WireFormatLite::StringSize(
3353 this->component_name());
3354 }
3355
3356 // .dmi.Uuid device_uuid = 1;
3357 if (this->has_device_uuid()) {
3358 total_size += 1 +
3359 ::google::protobuf::internal::WireFormatLite::MessageSize(
3360 *device_uuid_);
3361 }
3362
3363 // .dmi.Uuid component_uuid = 2;
3364 if (this->has_component_uuid()) {
3365 total_size += 1 +
3366 ::google::protobuf::internal::WireFormatLite::MessageSize(
3367 *component_uuid_);
3368 }
3369
3370 // .dmi.ModifiableComponent changes = 4;
3371 if (this->has_changes()) {
3372 total_size += 1 +
3373 ::google::protobuf::internal::WireFormatLite::MessageSize(
3374 *changes_);
3375 }
3376
3377 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3378 SetCachedSize(cached_size);
3379 return total_size;
3380}
3381
3382void HWComponentInfoSetRequest::MergeFrom(const ::google::protobuf::Message& from) {
3383// @@protoc_insertion_point(generalized_merge_from_start:dmi.HWComponentInfoSetRequest)
3384 GOOGLE_DCHECK_NE(&from, this);
3385 const HWComponentInfoSetRequest* source =
3386 ::google::protobuf::DynamicCastToGenerated<HWComponentInfoSetRequest>(
3387 &from);
3388 if (source == nullptr) {
3389 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.HWComponentInfoSetRequest)
3390 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3391 } else {
3392 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.HWComponentInfoSetRequest)
3393 MergeFrom(*source);
3394 }
3395}
3396
3397void HWComponentInfoSetRequest::MergeFrom(const HWComponentInfoSetRequest& from) {
3398// @@protoc_insertion_point(class_specific_merge_from_start:dmi.HWComponentInfoSetRequest)
3399 GOOGLE_DCHECK_NE(&from, this);
3400 _internal_metadata_.MergeFrom(from._internal_metadata_);
3401 ::google::protobuf::uint32 cached_has_bits = 0;
3402 (void) cached_has_bits;
3403
3404 if (from.component_name().size() > 0) {
3405
3406 component_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.component_name_);
3407 }
3408 if (from.has_device_uuid()) {
3409 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
3410 }
3411 if (from.has_component_uuid()) {
3412 mutable_component_uuid()->::dmi::Uuid::MergeFrom(from.component_uuid());
3413 }
3414 if (from.has_changes()) {
3415 mutable_changes()->::dmi::ModifiableComponent::MergeFrom(from.changes());
3416 }
3417}
3418
3419void HWComponentInfoSetRequest::CopyFrom(const ::google::protobuf::Message& from) {
3420// @@protoc_insertion_point(generalized_copy_from_start:dmi.HWComponentInfoSetRequest)
3421 if (&from == this) return;
3422 Clear();
3423 MergeFrom(from);
3424}
3425
3426void HWComponentInfoSetRequest::CopyFrom(const HWComponentInfoSetRequest& from) {
3427// @@protoc_insertion_point(class_specific_copy_from_start:dmi.HWComponentInfoSetRequest)
3428 if (&from == this) return;
3429 Clear();
3430 MergeFrom(from);
3431}
3432
3433bool HWComponentInfoSetRequest::IsInitialized() const {
3434 return true;
3435}
3436
3437void HWComponentInfoSetRequest::Swap(HWComponentInfoSetRequest* other) {
3438 if (other == this) return;
3439 InternalSwap(other);
3440}
3441void HWComponentInfoSetRequest::InternalSwap(HWComponentInfoSetRequest* other) {
3442 using std::swap;
3443 _internal_metadata_.Swap(&other->_internal_metadata_);
3444 component_name_.Swap(&other->component_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3445 GetArenaNoVirtual());
3446 swap(device_uuid_, other->device_uuid_);
3447 swap(component_uuid_, other->component_uuid_);
3448 swap(changes_, other->changes_);
3449}
3450
3451::google::protobuf::Metadata HWComponentInfoSetRequest::GetMetadata() const {
3452 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
3453 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
3454}
3455
3456
3457// ===================================================================
3458
3459void HWComponentInfoSetResponse::InitAsDefaultInstance() {
3460}
3461class HWComponentInfoSetResponse::HasBitSetters {
3462 public:
3463};
3464
3465#if !defined(_MSC_VER) || _MSC_VER >= 1900
3466const int HWComponentInfoSetResponse::kStatusFieldNumber;
3467const int HWComponentInfoSetResponse::kReasonFieldNumber;
3468const int HWComponentInfoSetResponse::kReasonDetailFieldNumber;
3469#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
3470
3471HWComponentInfoSetResponse::HWComponentInfoSetResponse()
3472 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
3473 SharedCtor();
3474 // @@protoc_insertion_point(constructor:dmi.HWComponentInfoSetResponse)
3475}
3476HWComponentInfoSetResponse::HWComponentInfoSetResponse(const HWComponentInfoSetResponse& from)
3477 : ::google::protobuf::Message(),
3478 _internal_metadata_(nullptr) {
3479 _internal_metadata_.MergeFrom(from._internal_metadata_);
3480 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3481 if (from.reason_detail().size() > 0) {
3482 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
3483 }
3484 ::memcpy(&status_, &from.status_,
3485 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
3486 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
3487 // @@protoc_insertion_point(copy_constructor:dmi.HWComponentInfoSetResponse)
3488}
3489
3490void HWComponentInfoSetResponse::SharedCtor() {
3491 ::google::protobuf::internal::InitSCC(
3492 &scc_info_HWComponentInfoSetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
3493 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3494 ::memset(&status_, 0, static_cast<size_t>(
3495 reinterpret_cast<char*>(&reason_) -
3496 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
3497}
3498
3499HWComponentInfoSetResponse::~HWComponentInfoSetResponse() {
3500 // @@protoc_insertion_point(destructor:dmi.HWComponentInfoSetResponse)
3501 SharedDtor();
3502}
3503
3504void HWComponentInfoSetResponse::SharedDtor() {
3505 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3506}
3507
3508void HWComponentInfoSetResponse::SetCachedSize(int size) const {
3509 _cached_size_.Set(size);
3510}
3511const HWComponentInfoSetResponse& HWComponentInfoSetResponse::default_instance() {
3512 ::google::protobuf::internal::InitSCC(&::scc_info_HWComponentInfoSetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
3513 return *internal_default_instance();
3514}
3515
3516
3517void HWComponentInfoSetResponse::Clear() {
3518// @@protoc_insertion_point(message_clear_start:dmi.HWComponentInfoSetResponse)
3519 ::google::protobuf::uint32 cached_has_bits = 0;
3520 // Prevent compiler warnings about cached_has_bits being unused
3521 (void) cached_has_bits;
3522
3523 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3524 ::memset(&status_, 0, static_cast<size_t>(
3525 reinterpret_cast<char*>(&reason_) -
3526 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
3527 _internal_metadata_.Clear();
3528}
3529
3530#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3531const char* HWComponentInfoSetResponse::_InternalParse(const char* begin, const char* end, void* object,
3532 ::google::protobuf::internal::ParseContext* ctx) {
3533 auto msg = static_cast<HWComponentInfoSetResponse*>(object);
3534 ::google::protobuf::int32 size; (void)size;
3535 int depth; (void)depth;
3536 ::google::protobuf::uint32 tag;
3537 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
3538 auto ptr = begin;
3539 while (ptr < end) {
3540 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
3541 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3542 switch (tag >> 3) {
3543 // .dmi.Status status = 1;
3544 case 1: {
3545 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
3546 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
3547 msg->set_status(static_cast<::dmi::Status>(val));
3548 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3549 break;
3550 }
3551 // .dmi.HWComponentInfoSetResponse.Reason reason = 2;
3552 case 2: {
3553 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
3554 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
3555 msg->set_reason(static_cast<::dmi::HWComponentInfoSetResponse_Reason>(val));
3556 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3557 break;
3558 }
3559 // string reason_detail = 3;
3560 case 3: {
3561 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
3562 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
3563 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3564 ctx->extra_parse_data().SetFieldName("dmi.HWComponentInfoSetResponse.reason_detail");
3565 object = msg->mutable_reason_detail();
3566 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
3567 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
3568 goto string_till_end;
3569 }
3570 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
3571 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
3572 ptr += size;
3573 break;
3574 }
3575 default: {
3576 handle_unusual:
3577 if ((tag & 7) == 4 || tag == 0) {
3578 ctx->EndGroup(tag);
3579 return ptr;
3580 }
3581 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
3582 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
3583 ptr = res.first;
3584 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
3585 if (res.second) return ptr;
3586 }
3587 } // switch
3588 } // while
3589 return ptr;
3590string_till_end:
3591 static_cast<::std::string*>(object)->clear();
3592 static_cast<::std::string*>(object)->reserve(size);
3593 goto len_delim_till_end;
3594len_delim_till_end:
3595 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
3596 {parser_till_end, object}, size);
3597}
3598#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3599bool HWComponentInfoSetResponse::MergePartialFromCodedStream(
3600 ::google::protobuf::io::CodedInputStream* input) {
3601#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
3602 ::google::protobuf::uint32 tag;
3603 // @@protoc_insertion_point(parse_start:dmi.HWComponentInfoSetResponse)
3604 for (;;) {
3605 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3606 tag = p.first;
3607 if (!p.second) goto handle_unusual;
3608 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3609 // .dmi.Status status = 1;
3610 case 1: {
3611 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
3612 int value = 0;
3613 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3614 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
3615 input, &value)));
3616 set_status(static_cast< ::dmi::Status >(value));
3617 } else {
3618 goto handle_unusual;
3619 }
3620 break;
3621 }
3622
3623 // .dmi.HWComponentInfoSetResponse.Reason reason = 2;
3624 case 2: {
3625 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
3626 int value = 0;
3627 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3628 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
3629 input, &value)));
3630 set_reason(static_cast< ::dmi::HWComponentInfoSetResponse_Reason >(value));
3631 } else {
3632 goto handle_unusual;
3633 }
3634 break;
3635 }
3636
3637 // string reason_detail = 3;
3638 case 3: {
3639 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
3640 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3641 input, this->mutable_reason_detail()));
3642 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3643 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
3644 ::google::protobuf::internal::WireFormatLite::PARSE,
3645 "dmi.HWComponentInfoSetResponse.reason_detail"));
3646 } else {
3647 goto handle_unusual;
3648 }
3649 break;
3650 }
3651
3652 default: {
3653 handle_unusual:
3654 if (tag == 0) {
3655 goto success;
3656 }
3657 DO_(::google::protobuf::internal::WireFormat::SkipField(
3658 input, tag, _internal_metadata_.mutable_unknown_fields()));
3659 break;
3660 }
3661 }
3662 }
3663success:
3664 // @@protoc_insertion_point(parse_success:dmi.HWComponentInfoSetResponse)
3665 return true;
3666failure:
3667 // @@protoc_insertion_point(parse_failure:dmi.HWComponentInfoSetResponse)
3668 return false;
3669#undef DO_
3670}
3671#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3672
3673void HWComponentInfoSetResponse::SerializeWithCachedSizes(
3674 ::google::protobuf::io::CodedOutputStream* output) const {
3675 // @@protoc_insertion_point(serialize_start:dmi.HWComponentInfoSetResponse)
3676 ::google::protobuf::uint32 cached_has_bits = 0;
3677 (void) cached_has_bits;
3678
3679 // .dmi.Status status = 1;
3680 if (this->status() != 0) {
3681 ::google::protobuf::internal::WireFormatLite::WriteEnum(
3682 1, this->status(), output);
3683 }
3684
3685 // .dmi.HWComponentInfoSetResponse.Reason reason = 2;
3686 if (this->reason() != 0) {
3687 ::google::protobuf::internal::WireFormatLite::WriteEnum(
3688 2, this->reason(), output);
3689 }
3690
3691 // string reason_detail = 3;
3692 if (this->reason_detail().size() > 0) {
3693 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3694 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
3695 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
3696 "dmi.HWComponentInfoSetResponse.reason_detail");
3697 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3698 3, this->reason_detail(), output);
3699 }
3700
3701 if (_internal_metadata_.have_unknown_fields()) {
3702 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3703 _internal_metadata_.unknown_fields(), output);
3704 }
3705 // @@protoc_insertion_point(serialize_end:dmi.HWComponentInfoSetResponse)
3706}
3707
3708::google::protobuf::uint8* HWComponentInfoSetResponse::InternalSerializeWithCachedSizesToArray(
3709 ::google::protobuf::uint8* target) const {
3710 // @@protoc_insertion_point(serialize_to_array_start:dmi.HWComponentInfoSetResponse)
3711 ::google::protobuf::uint32 cached_has_bits = 0;
3712 (void) cached_has_bits;
3713
3714 // .dmi.Status status = 1;
3715 if (this->status() != 0) {
3716 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
3717 1, this->status(), target);
3718 }
3719
3720 // .dmi.HWComponentInfoSetResponse.Reason reason = 2;
3721 if (this->reason() != 0) {
3722 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
3723 2, this->reason(), target);
3724 }
3725
3726 // string reason_detail = 3;
3727 if (this->reason_detail().size() > 0) {
3728 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3729 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
3730 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
3731 "dmi.HWComponentInfoSetResponse.reason_detail");
3732 target =
3733 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3734 3, this->reason_detail(), target);
3735 }
3736
3737 if (_internal_metadata_.have_unknown_fields()) {
3738 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3739 _internal_metadata_.unknown_fields(), target);
3740 }
3741 // @@protoc_insertion_point(serialize_to_array_end:dmi.HWComponentInfoSetResponse)
3742 return target;
3743}
3744
3745size_t HWComponentInfoSetResponse::ByteSizeLong() const {
3746// @@protoc_insertion_point(message_byte_size_start:dmi.HWComponentInfoSetResponse)
3747 size_t total_size = 0;
3748
3749 if (_internal_metadata_.have_unknown_fields()) {
3750 total_size +=
3751 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3752 _internal_metadata_.unknown_fields());
3753 }
3754 ::google::protobuf::uint32 cached_has_bits = 0;
3755 // Prevent compiler warnings about cached_has_bits being unused
3756 (void) cached_has_bits;
3757
3758 // string reason_detail = 3;
3759 if (this->reason_detail().size() > 0) {
3760 total_size += 1 +
3761 ::google::protobuf::internal::WireFormatLite::StringSize(
3762 this->reason_detail());
3763 }
3764
3765 // .dmi.Status status = 1;
3766 if (this->status() != 0) {
3767 total_size += 1 +
3768 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
3769 }
3770
3771 // .dmi.HWComponentInfoSetResponse.Reason reason = 2;
3772 if (this->reason() != 0) {
3773 total_size += 1 +
3774 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
3775 }
3776
3777 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3778 SetCachedSize(cached_size);
3779 return total_size;
3780}
3781
3782void HWComponentInfoSetResponse::MergeFrom(const ::google::protobuf::Message& from) {
3783// @@protoc_insertion_point(generalized_merge_from_start:dmi.HWComponentInfoSetResponse)
3784 GOOGLE_DCHECK_NE(&from, this);
3785 const HWComponentInfoSetResponse* source =
3786 ::google::protobuf::DynamicCastToGenerated<HWComponentInfoSetResponse>(
3787 &from);
3788 if (source == nullptr) {
3789 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.HWComponentInfoSetResponse)
3790 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3791 } else {
3792 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.HWComponentInfoSetResponse)
3793 MergeFrom(*source);
3794 }
3795}
3796
3797void HWComponentInfoSetResponse::MergeFrom(const HWComponentInfoSetResponse& from) {
3798// @@protoc_insertion_point(class_specific_merge_from_start:dmi.HWComponentInfoSetResponse)
3799 GOOGLE_DCHECK_NE(&from, this);
3800 _internal_metadata_.MergeFrom(from._internal_metadata_);
3801 ::google::protobuf::uint32 cached_has_bits = 0;
3802 (void) cached_has_bits;
3803
3804 if (from.reason_detail().size() > 0) {
3805
3806 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
3807 }
3808 if (from.status() != 0) {
3809 set_status(from.status());
3810 }
3811 if (from.reason() != 0) {
3812 set_reason(from.reason());
3813 }
3814}
3815
3816void HWComponentInfoSetResponse::CopyFrom(const ::google::protobuf::Message& from) {
3817// @@protoc_insertion_point(generalized_copy_from_start:dmi.HWComponentInfoSetResponse)
3818 if (&from == this) return;
3819 Clear();
3820 MergeFrom(from);
3821}
3822
3823void HWComponentInfoSetResponse::CopyFrom(const HWComponentInfoSetResponse& from) {
3824// @@protoc_insertion_point(class_specific_copy_from_start:dmi.HWComponentInfoSetResponse)
3825 if (&from == this) return;
3826 Clear();
3827 MergeFrom(from);
3828}
3829
3830bool HWComponentInfoSetResponse::IsInitialized() const {
3831 return true;
3832}
3833
3834void HWComponentInfoSetResponse::Swap(HWComponentInfoSetResponse* other) {
3835 if (other == this) return;
3836 InternalSwap(other);
3837}
3838void HWComponentInfoSetResponse::InternalSwap(HWComponentInfoSetResponse* other) {
3839 using std::swap;
3840 _internal_metadata_.Swap(&other->_internal_metadata_);
3841 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3842 GetArenaNoVirtual());
3843 swap(status_, other->status_);
3844 swap(reason_, other->reason_);
3845}
3846
3847::google::protobuf::Metadata HWComponentInfoSetResponse::GetMetadata() const {
3848 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
3849 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
3850}
3851
3852
3853// ===================================================================
3854
3855void StartManagingDeviceResponse::InitAsDefaultInstance() {
3856 ::dmi::_StartManagingDeviceResponse_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
3857 ::dmi::Uuid::internal_default_instance());
3858}
3859class StartManagingDeviceResponse::HasBitSetters {
3860 public:
3861 static const ::dmi::Uuid& device_uuid(const StartManagingDeviceResponse* msg);
3862};
3863
3864const ::dmi::Uuid&
3865StartManagingDeviceResponse::HasBitSetters::device_uuid(const StartManagingDeviceResponse* msg) {
3866 return *msg->device_uuid_;
3867}
3868void StartManagingDeviceResponse::clear_device_uuid() {
3869 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
3870 delete device_uuid_;
3871 }
3872 device_uuid_ = nullptr;
3873}
3874#if !defined(_MSC_VER) || _MSC_VER >= 1900
3875const int StartManagingDeviceResponse::kStatusFieldNumber;
3876const int StartManagingDeviceResponse::kReasonFieldNumber;
3877const int StartManagingDeviceResponse::kDeviceUuidFieldNumber;
3878const int StartManagingDeviceResponse::kReasonDetailFieldNumber;
3879#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
3880
3881StartManagingDeviceResponse::StartManagingDeviceResponse()
3882 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
3883 SharedCtor();
3884 // @@protoc_insertion_point(constructor:dmi.StartManagingDeviceResponse)
3885}
3886StartManagingDeviceResponse::StartManagingDeviceResponse(const StartManagingDeviceResponse& from)
3887 : ::google::protobuf::Message(),
3888 _internal_metadata_(nullptr) {
3889 _internal_metadata_.MergeFrom(from._internal_metadata_);
3890 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3891 if (from.reason_detail().size() > 0) {
3892 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
3893 }
3894 if (from.has_device_uuid()) {
3895 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
3896 } else {
3897 device_uuid_ = nullptr;
3898 }
3899 ::memcpy(&status_, &from.status_,
3900 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
3901 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
3902 // @@protoc_insertion_point(copy_constructor:dmi.StartManagingDeviceResponse)
3903}
3904
3905void StartManagingDeviceResponse::SharedCtor() {
3906 ::google::protobuf::internal::InitSCC(
3907 &scc_info_StartManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
3908 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3909 ::memset(&device_uuid_, 0, static_cast<size_t>(
3910 reinterpret_cast<char*>(&reason_) -
3911 reinterpret_cast<char*>(&device_uuid_)) + sizeof(reason_));
3912}
3913
3914StartManagingDeviceResponse::~StartManagingDeviceResponse() {
3915 // @@protoc_insertion_point(destructor:dmi.StartManagingDeviceResponse)
3916 SharedDtor();
3917}
3918
3919void StartManagingDeviceResponse::SharedDtor() {
3920 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3921 if (this != internal_default_instance()) delete device_uuid_;
3922}
3923
3924void StartManagingDeviceResponse::SetCachedSize(int size) const {
3925 _cached_size_.Set(size);
3926}
3927const StartManagingDeviceResponse& StartManagingDeviceResponse::default_instance() {
3928 ::google::protobuf::internal::InitSCC(&::scc_info_StartManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
3929 return *internal_default_instance();
3930}
3931
3932
3933void StartManagingDeviceResponse::Clear() {
3934// @@protoc_insertion_point(message_clear_start:dmi.StartManagingDeviceResponse)
3935 ::google::protobuf::uint32 cached_has_bits = 0;
3936 // Prevent compiler warnings about cached_has_bits being unused
3937 (void) cached_has_bits;
3938
3939 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3940 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
3941 delete device_uuid_;
3942 }
3943 device_uuid_ = nullptr;
3944 ::memset(&status_, 0, static_cast<size_t>(
3945 reinterpret_cast<char*>(&reason_) -
3946 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
3947 _internal_metadata_.Clear();
3948}
3949
3950#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3951const char* StartManagingDeviceResponse::_InternalParse(const char* begin, const char* end, void* object,
3952 ::google::protobuf::internal::ParseContext* ctx) {
3953 auto msg = static_cast<StartManagingDeviceResponse*>(object);
3954 ::google::protobuf::int32 size; (void)size;
3955 int depth; (void)depth;
3956 ::google::protobuf::uint32 tag;
3957 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
3958 auto ptr = begin;
3959 while (ptr < end) {
3960 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
3961 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3962 switch (tag >> 3) {
3963 // .dmi.Status status = 1;
3964 case 1: {
3965 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
3966 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
3967 msg->set_status(static_cast<::dmi::Status>(val));
3968 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3969 break;
3970 }
3971 // .dmi.StartManagingDeviceResponse.Reason reason = 2;
3972 case 2: {
3973 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
3974 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
3975 msg->set_reason(static_cast<::dmi::StartManagingDeviceResponse_Reason>(val));
3976 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3977 break;
3978 }
3979 // .dmi.Uuid device_uuid = 3;
3980 case 3: {
3981 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
3982 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
3983 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3984 parser_till_end = ::dmi::Uuid::_InternalParse;
3985 object = msg->mutable_device_uuid();
3986 if (size > end - ptr) goto len_delim_till_end;
3987 ptr += size;
3988 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
3989 {parser_till_end, object}, ptr - size, ptr));
3990 break;
3991 }
3992 // string reason_detail = 4;
3993 case 4: {
3994 if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual;
3995 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
3996 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3997 ctx->extra_parse_data().SetFieldName("dmi.StartManagingDeviceResponse.reason_detail");
3998 object = msg->mutable_reason_detail();
3999 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
4000 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
4001 goto string_till_end;
4002 }
4003 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
4004 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
4005 ptr += size;
4006 break;
4007 }
4008 default: {
4009 handle_unusual:
4010 if ((tag & 7) == 4 || tag == 0) {
4011 ctx->EndGroup(tag);
4012 return ptr;
4013 }
4014 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
4015 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
4016 ptr = res.first;
4017 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
4018 if (res.second) return ptr;
4019 }
4020 } // switch
4021 } // while
4022 return ptr;
4023string_till_end:
4024 static_cast<::std::string*>(object)->clear();
4025 static_cast<::std::string*>(object)->reserve(size);
4026 goto len_delim_till_end;
4027len_delim_till_end:
4028 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
4029 {parser_till_end, object}, size);
4030}
4031#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4032bool StartManagingDeviceResponse::MergePartialFromCodedStream(
4033 ::google::protobuf::io::CodedInputStream* input) {
4034#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
4035 ::google::protobuf::uint32 tag;
4036 // @@protoc_insertion_point(parse_start:dmi.StartManagingDeviceResponse)
4037 for (;;) {
4038 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4039 tag = p.first;
4040 if (!p.second) goto handle_unusual;
4041 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4042 // .dmi.Status status = 1;
4043 case 1: {
4044 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
4045 int value = 0;
4046 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4047 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
4048 input, &value)));
4049 set_status(static_cast< ::dmi::Status >(value));
4050 } else {
4051 goto handle_unusual;
4052 }
4053 break;
4054 }
4055
4056 // .dmi.StartManagingDeviceResponse.Reason reason = 2;
4057 case 2: {
4058 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
4059 int value = 0;
4060 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4061 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
4062 input, &value)));
4063 set_reason(static_cast< ::dmi::StartManagingDeviceResponse_Reason >(value));
4064 } else {
4065 goto handle_unusual;
4066 }
4067 break;
4068 }
4069
4070 // .dmi.Uuid device_uuid = 3;
4071 case 3: {
4072 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
4073 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
4074 input, mutable_device_uuid()));
4075 } else {
4076 goto handle_unusual;
4077 }
4078 break;
4079 }
4080
4081 // string reason_detail = 4;
4082 case 4: {
4083 if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
4084 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4085 input, this->mutable_reason_detail()));
4086 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
4087 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
4088 ::google::protobuf::internal::WireFormatLite::PARSE,
4089 "dmi.StartManagingDeviceResponse.reason_detail"));
4090 } else {
4091 goto handle_unusual;
4092 }
4093 break;
4094 }
4095
4096 default: {
4097 handle_unusual:
4098 if (tag == 0) {
4099 goto success;
4100 }
4101 DO_(::google::protobuf::internal::WireFormat::SkipField(
4102 input, tag, _internal_metadata_.mutable_unknown_fields()));
4103 break;
4104 }
4105 }
4106 }
4107success:
4108 // @@protoc_insertion_point(parse_success:dmi.StartManagingDeviceResponse)
4109 return true;
4110failure:
4111 // @@protoc_insertion_point(parse_failure:dmi.StartManagingDeviceResponse)
4112 return false;
4113#undef DO_
4114}
4115#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4116
4117void StartManagingDeviceResponse::SerializeWithCachedSizes(
4118 ::google::protobuf::io::CodedOutputStream* output) const {
4119 // @@protoc_insertion_point(serialize_start:dmi.StartManagingDeviceResponse)
4120 ::google::protobuf::uint32 cached_has_bits = 0;
4121 (void) cached_has_bits;
4122
4123 // .dmi.Status status = 1;
4124 if (this->status() != 0) {
4125 ::google::protobuf::internal::WireFormatLite::WriteEnum(
4126 1, this->status(), output);
4127 }
4128
4129 // .dmi.StartManagingDeviceResponse.Reason reason = 2;
4130 if (this->reason() != 0) {
4131 ::google::protobuf::internal::WireFormatLite::WriteEnum(
4132 2, this->reason(), output);
4133 }
4134
4135 // .dmi.Uuid device_uuid = 3;
4136 if (this->has_device_uuid()) {
4137 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4138 3, HasBitSetters::device_uuid(this), output);
4139 }
4140
4141 // string reason_detail = 4;
4142 if (this->reason_detail().size() > 0) {
4143 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
4144 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
4145 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
4146 "dmi.StartManagingDeviceResponse.reason_detail");
4147 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4148 4, this->reason_detail(), output);
4149 }
4150
4151 if (_internal_metadata_.have_unknown_fields()) {
4152 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4153 _internal_metadata_.unknown_fields(), output);
4154 }
4155 // @@protoc_insertion_point(serialize_end:dmi.StartManagingDeviceResponse)
4156}
4157
4158::google::protobuf::uint8* StartManagingDeviceResponse::InternalSerializeWithCachedSizesToArray(
4159 ::google::protobuf::uint8* target) const {
4160 // @@protoc_insertion_point(serialize_to_array_start:dmi.StartManagingDeviceResponse)
4161 ::google::protobuf::uint32 cached_has_bits = 0;
4162 (void) cached_has_bits;
4163
4164 // .dmi.Status status = 1;
4165 if (this->status() != 0) {
4166 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4167 1, this->status(), target);
4168 }
4169
4170 // .dmi.StartManagingDeviceResponse.Reason reason = 2;
4171 if (this->reason() != 0) {
4172 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4173 2, this->reason(), target);
4174 }
4175
4176 // .dmi.Uuid device_uuid = 3;
4177 if (this->has_device_uuid()) {
4178 target = ::google::protobuf::internal::WireFormatLite::
4179 InternalWriteMessageToArray(
4180 3, HasBitSetters::device_uuid(this), target);
4181 }
4182
4183 // string reason_detail = 4;
4184 if (this->reason_detail().size() > 0) {
4185 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
4186 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
4187 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
4188 "dmi.StartManagingDeviceResponse.reason_detail");
4189 target =
4190 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4191 4, this->reason_detail(), target);
4192 }
4193
4194 if (_internal_metadata_.have_unknown_fields()) {
4195 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4196 _internal_metadata_.unknown_fields(), target);
4197 }
4198 // @@protoc_insertion_point(serialize_to_array_end:dmi.StartManagingDeviceResponse)
4199 return target;
4200}
4201
4202size_t StartManagingDeviceResponse::ByteSizeLong() const {
4203// @@protoc_insertion_point(message_byte_size_start:dmi.StartManagingDeviceResponse)
4204 size_t total_size = 0;
4205
4206 if (_internal_metadata_.have_unknown_fields()) {
4207 total_size +=
4208 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4209 _internal_metadata_.unknown_fields());
4210 }
4211 ::google::protobuf::uint32 cached_has_bits = 0;
4212 // Prevent compiler warnings about cached_has_bits being unused
4213 (void) cached_has_bits;
4214
4215 // string reason_detail = 4;
4216 if (this->reason_detail().size() > 0) {
4217 total_size += 1 +
4218 ::google::protobuf::internal::WireFormatLite::StringSize(
4219 this->reason_detail());
4220 }
4221
4222 // .dmi.Uuid device_uuid = 3;
4223 if (this->has_device_uuid()) {
4224 total_size += 1 +
4225 ::google::protobuf::internal::WireFormatLite::MessageSize(
4226 *device_uuid_);
4227 }
4228
4229 // .dmi.Status status = 1;
4230 if (this->status() != 0) {
4231 total_size += 1 +
4232 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
4233 }
4234
4235 // .dmi.StartManagingDeviceResponse.Reason reason = 2;
4236 if (this->reason() != 0) {
4237 total_size += 1 +
4238 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
4239 }
4240
4241 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4242 SetCachedSize(cached_size);
4243 return total_size;
4244}
4245
4246void StartManagingDeviceResponse::MergeFrom(const ::google::protobuf::Message& from) {
4247// @@protoc_insertion_point(generalized_merge_from_start:dmi.StartManagingDeviceResponse)
4248 GOOGLE_DCHECK_NE(&from, this);
4249 const StartManagingDeviceResponse* source =
4250 ::google::protobuf::DynamicCastToGenerated<StartManagingDeviceResponse>(
4251 &from);
4252 if (source == nullptr) {
4253 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.StartManagingDeviceResponse)
4254 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4255 } else {
4256 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.StartManagingDeviceResponse)
4257 MergeFrom(*source);
4258 }
4259}
4260
4261void StartManagingDeviceResponse::MergeFrom(const StartManagingDeviceResponse& from) {
4262// @@protoc_insertion_point(class_specific_merge_from_start:dmi.StartManagingDeviceResponse)
4263 GOOGLE_DCHECK_NE(&from, this);
4264 _internal_metadata_.MergeFrom(from._internal_metadata_);
4265 ::google::protobuf::uint32 cached_has_bits = 0;
4266 (void) cached_has_bits;
4267
4268 if (from.reason_detail().size() > 0) {
4269
4270 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
4271 }
4272 if (from.has_device_uuid()) {
4273 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
4274 }
4275 if (from.status() != 0) {
4276 set_status(from.status());
4277 }
4278 if (from.reason() != 0) {
4279 set_reason(from.reason());
4280 }
4281}
4282
4283void StartManagingDeviceResponse::CopyFrom(const ::google::protobuf::Message& from) {
4284// @@protoc_insertion_point(generalized_copy_from_start:dmi.StartManagingDeviceResponse)
4285 if (&from == this) return;
4286 Clear();
4287 MergeFrom(from);
4288}
4289
4290void StartManagingDeviceResponse::CopyFrom(const StartManagingDeviceResponse& from) {
4291// @@protoc_insertion_point(class_specific_copy_from_start:dmi.StartManagingDeviceResponse)
4292 if (&from == this) return;
4293 Clear();
4294 MergeFrom(from);
4295}
4296
4297bool StartManagingDeviceResponse::IsInitialized() const {
4298 return true;
4299}
4300
4301void StartManagingDeviceResponse::Swap(StartManagingDeviceResponse* other) {
4302 if (other == this) return;
4303 InternalSwap(other);
4304}
4305void StartManagingDeviceResponse::InternalSwap(StartManagingDeviceResponse* other) {
4306 using std::swap;
4307 _internal_metadata_.Swap(&other->_internal_metadata_);
4308 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4309 GetArenaNoVirtual());
4310 swap(device_uuid_, other->device_uuid_);
4311 swap(status_, other->status_);
4312 swap(reason_, other->reason_);
4313}
4314
4315::google::protobuf::Metadata StartManagingDeviceResponse::GetMetadata() const {
4316 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
4317 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
4318}
4319
4320
4321// ===================================================================
4322
4323void StopManagingDeviceRequest::InitAsDefaultInstance() {
4324}
4325class StopManagingDeviceRequest::HasBitSetters {
4326 public:
4327};
4328
4329#if !defined(_MSC_VER) || _MSC_VER >= 1900
4330const int StopManagingDeviceRequest::kNameFieldNumber;
4331#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
4332
4333StopManagingDeviceRequest::StopManagingDeviceRequest()
4334 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
4335 SharedCtor();
4336 // @@protoc_insertion_point(constructor:dmi.StopManagingDeviceRequest)
4337}
4338StopManagingDeviceRequest::StopManagingDeviceRequest(const StopManagingDeviceRequest& from)
4339 : ::google::protobuf::Message(),
4340 _internal_metadata_(nullptr) {
4341 _internal_metadata_.MergeFrom(from._internal_metadata_);
4342 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4343 if (from.name().size() > 0) {
4344 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
4345 }
4346 // @@protoc_insertion_point(copy_constructor:dmi.StopManagingDeviceRequest)
4347}
4348
4349void StopManagingDeviceRequest::SharedCtor() {
4350 ::google::protobuf::internal::InitSCC(
4351 &scc_info_StopManagingDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
4352 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4353}
4354
4355StopManagingDeviceRequest::~StopManagingDeviceRequest() {
4356 // @@protoc_insertion_point(destructor:dmi.StopManagingDeviceRequest)
4357 SharedDtor();
4358}
4359
4360void StopManagingDeviceRequest::SharedDtor() {
4361 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4362}
4363
4364void StopManagingDeviceRequest::SetCachedSize(int size) const {
4365 _cached_size_.Set(size);
4366}
4367const StopManagingDeviceRequest& StopManagingDeviceRequest::default_instance() {
4368 ::google::protobuf::internal::InitSCC(&::scc_info_StopManagingDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
4369 return *internal_default_instance();
4370}
4371
4372
4373void StopManagingDeviceRequest::Clear() {
4374// @@protoc_insertion_point(message_clear_start:dmi.StopManagingDeviceRequest)
4375 ::google::protobuf::uint32 cached_has_bits = 0;
4376 // Prevent compiler warnings about cached_has_bits being unused
4377 (void) cached_has_bits;
4378
4379 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4380 _internal_metadata_.Clear();
4381}
4382
4383#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4384const char* StopManagingDeviceRequest::_InternalParse(const char* begin, const char* end, void* object,
4385 ::google::protobuf::internal::ParseContext* ctx) {
4386 auto msg = static_cast<StopManagingDeviceRequest*>(object);
4387 ::google::protobuf::int32 size; (void)size;
4388 int depth; (void)depth;
4389 ::google::protobuf::uint32 tag;
4390 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
4391 auto ptr = begin;
4392 while (ptr < end) {
4393 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
4394 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4395 switch (tag >> 3) {
4396 // string name = 1;
4397 case 1: {
4398 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
4399 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
4400 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4401 ctx->extra_parse_data().SetFieldName("dmi.StopManagingDeviceRequest.name");
4402 object = msg->mutable_name();
4403 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
4404 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
4405 goto string_till_end;
4406 }
4407 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
4408 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
4409 ptr += size;
4410 break;
4411 }
4412 default: {
4413 handle_unusual:
4414 if ((tag & 7) == 4 || tag == 0) {
4415 ctx->EndGroup(tag);
4416 return ptr;
4417 }
4418 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
4419 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
4420 ptr = res.first;
4421 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
4422 if (res.second) return ptr;
4423 }
4424 } // switch
4425 } // while
4426 return ptr;
4427string_till_end:
4428 static_cast<::std::string*>(object)->clear();
4429 static_cast<::std::string*>(object)->reserve(size);
4430 goto len_delim_till_end;
4431len_delim_till_end:
4432 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
4433 {parser_till_end, object}, size);
4434}
4435#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4436bool StopManagingDeviceRequest::MergePartialFromCodedStream(
4437 ::google::protobuf::io::CodedInputStream* input) {
4438#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
4439 ::google::protobuf::uint32 tag;
4440 // @@protoc_insertion_point(parse_start:dmi.StopManagingDeviceRequest)
4441 for (;;) {
4442 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4443 tag = p.first;
4444 if (!p.second) goto handle_unusual;
4445 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4446 // string name = 1;
4447 case 1: {
4448 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
4449 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4450 input, this->mutable_name()));
4451 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
4452 this->name().data(), static_cast<int>(this->name().length()),
4453 ::google::protobuf::internal::WireFormatLite::PARSE,
4454 "dmi.StopManagingDeviceRequest.name"));
4455 } else {
4456 goto handle_unusual;
4457 }
4458 break;
4459 }
4460
4461 default: {
4462 handle_unusual:
4463 if (tag == 0) {
4464 goto success;
4465 }
4466 DO_(::google::protobuf::internal::WireFormat::SkipField(
4467 input, tag, _internal_metadata_.mutable_unknown_fields()));
4468 break;
4469 }
4470 }
4471 }
4472success:
4473 // @@protoc_insertion_point(parse_success:dmi.StopManagingDeviceRequest)
4474 return true;
4475failure:
4476 // @@protoc_insertion_point(parse_failure:dmi.StopManagingDeviceRequest)
4477 return false;
4478#undef DO_
4479}
4480#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4481
4482void StopManagingDeviceRequest::SerializeWithCachedSizes(
4483 ::google::protobuf::io::CodedOutputStream* output) const {
4484 // @@protoc_insertion_point(serialize_start:dmi.StopManagingDeviceRequest)
4485 ::google::protobuf::uint32 cached_has_bits = 0;
4486 (void) cached_has_bits;
4487
4488 // string name = 1;
4489 if (this->name().size() > 0) {
4490 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
4491 this->name().data(), static_cast<int>(this->name().length()),
4492 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
4493 "dmi.StopManagingDeviceRequest.name");
4494 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4495 1, this->name(), output);
4496 }
4497
4498 if (_internal_metadata_.have_unknown_fields()) {
4499 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4500 _internal_metadata_.unknown_fields(), output);
4501 }
4502 // @@protoc_insertion_point(serialize_end:dmi.StopManagingDeviceRequest)
4503}
4504
4505::google::protobuf::uint8* StopManagingDeviceRequest::InternalSerializeWithCachedSizesToArray(
4506 ::google::protobuf::uint8* target) const {
4507 // @@protoc_insertion_point(serialize_to_array_start:dmi.StopManagingDeviceRequest)
4508 ::google::protobuf::uint32 cached_has_bits = 0;
4509 (void) cached_has_bits;
4510
4511 // string name = 1;
4512 if (this->name().size() > 0) {
4513 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
4514 this->name().data(), static_cast<int>(this->name().length()),
4515 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
4516 "dmi.StopManagingDeviceRequest.name");
4517 target =
4518 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4519 1, this->name(), target);
4520 }
4521
4522 if (_internal_metadata_.have_unknown_fields()) {
4523 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4524 _internal_metadata_.unknown_fields(), target);
4525 }
4526 // @@protoc_insertion_point(serialize_to_array_end:dmi.StopManagingDeviceRequest)
4527 return target;
4528}
4529
4530size_t StopManagingDeviceRequest::ByteSizeLong() const {
4531// @@protoc_insertion_point(message_byte_size_start:dmi.StopManagingDeviceRequest)
4532 size_t total_size = 0;
4533
4534 if (_internal_metadata_.have_unknown_fields()) {
4535 total_size +=
4536 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4537 _internal_metadata_.unknown_fields());
4538 }
4539 ::google::protobuf::uint32 cached_has_bits = 0;
4540 // Prevent compiler warnings about cached_has_bits being unused
4541 (void) cached_has_bits;
4542
4543 // string name = 1;
4544 if (this->name().size() > 0) {
4545 total_size += 1 +
4546 ::google::protobuf::internal::WireFormatLite::StringSize(
4547 this->name());
4548 }
4549
4550 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4551 SetCachedSize(cached_size);
4552 return total_size;
4553}
4554
4555void StopManagingDeviceRequest::MergeFrom(const ::google::protobuf::Message& from) {
4556// @@protoc_insertion_point(generalized_merge_from_start:dmi.StopManagingDeviceRequest)
4557 GOOGLE_DCHECK_NE(&from, this);
4558 const StopManagingDeviceRequest* source =
4559 ::google::protobuf::DynamicCastToGenerated<StopManagingDeviceRequest>(
4560 &from);
4561 if (source == nullptr) {
4562 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.StopManagingDeviceRequest)
4563 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4564 } else {
4565 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.StopManagingDeviceRequest)
4566 MergeFrom(*source);
4567 }
4568}
4569
4570void StopManagingDeviceRequest::MergeFrom(const StopManagingDeviceRequest& from) {
4571// @@protoc_insertion_point(class_specific_merge_from_start:dmi.StopManagingDeviceRequest)
4572 GOOGLE_DCHECK_NE(&from, this);
4573 _internal_metadata_.MergeFrom(from._internal_metadata_);
4574 ::google::protobuf::uint32 cached_has_bits = 0;
4575 (void) cached_has_bits;
4576
4577 if (from.name().size() > 0) {
4578
4579 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
4580 }
4581}
4582
4583void StopManagingDeviceRequest::CopyFrom(const ::google::protobuf::Message& from) {
4584// @@protoc_insertion_point(generalized_copy_from_start:dmi.StopManagingDeviceRequest)
4585 if (&from == this) return;
4586 Clear();
4587 MergeFrom(from);
4588}
4589
4590void StopManagingDeviceRequest::CopyFrom(const StopManagingDeviceRequest& from) {
4591// @@protoc_insertion_point(class_specific_copy_from_start:dmi.StopManagingDeviceRequest)
4592 if (&from == this) return;
4593 Clear();
4594 MergeFrom(from);
4595}
4596
4597bool StopManagingDeviceRequest::IsInitialized() const {
4598 return true;
4599}
4600
4601void StopManagingDeviceRequest::Swap(StopManagingDeviceRequest* other) {
4602 if (other == this) return;
4603 InternalSwap(other);
4604}
4605void StopManagingDeviceRequest::InternalSwap(StopManagingDeviceRequest* other) {
4606 using std::swap;
4607 _internal_metadata_.Swap(&other->_internal_metadata_);
4608 name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4609 GetArenaNoVirtual());
4610}
4611
4612::google::protobuf::Metadata StopManagingDeviceRequest::GetMetadata() const {
4613 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
4614 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
4615}
4616
4617
4618// ===================================================================
4619
4620void StopManagingDeviceResponse::InitAsDefaultInstance() {
4621}
4622class StopManagingDeviceResponse::HasBitSetters {
4623 public:
4624};
4625
4626#if !defined(_MSC_VER) || _MSC_VER >= 1900
4627const int StopManagingDeviceResponse::kStatusFieldNumber;
4628const int StopManagingDeviceResponse::kReasonFieldNumber;
4629const int StopManagingDeviceResponse::kReasonDetailFieldNumber;
4630#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
4631
4632StopManagingDeviceResponse::StopManagingDeviceResponse()
4633 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
4634 SharedCtor();
4635 // @@protoc_insertion_point(constructor:dmi.StopManagingDeviceResponse)
4636}
4637StopManagingDeviceResponse::StopManagingDeviceResponse(const StopManagingDeviceResponse& from)
4638 : ::google::protobuf::Message(),
4639 _internal_metadata_(nullptr) {
4640 _internal_metadata_.MergeFrom(from._internal_metadata_);
4641 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4642 if (from.reason_detail().size() > 0) {
4643 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
4644 }
4645 ::memcpy(&status_, &from.status_,
4646 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
4647 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
4648 // @@protoc_insertion_point(copy_constructor:dmi.StopManagingDeviceResponse)
4649}
4650
4651void StopManagingDeviceResponse::SharedCtor() {
4652 ::google::protobuf::internal::InitSCC(
4653 &scc_info_StopManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
4654 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4655 ::memset(&status_, 0, static_cast<size_t>(
4656 reinterpret_cast<char*>(&reason_) -
4657 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
4658}
4659
4660StopManagingDeviceResponse::~StopManagingDeviceResponse() {
4661 // @@protoc_insertion_point(destructor:dmi.StopManagingDeviceResponse)
4662 SharedDtor();
4663}
4664
4665void StopManagingDeviceResponse::SharedDtor() {
4666 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4667}
4668
4669void StopManagingDeviceResponse::SetCachedSize(int size) const {
4670 _cached_size_.Set(size);
4671}
4672const StopManagingDeviceResponse& StopManagingDeviceResponse::default_instance() {
4673 ::google::protobuf::internal::InitSCC(&::scc_info_StopManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
4674 return *internal_default_instance();
4675}
4676
4677
4678void StopManagingDeviceResponse::Clear() {
4679// @@protoc_insertion_point(message_clear_start:dmi.StopManagingDeviceResponse)
4680 ::google::protobuf::uint32 cached_has_bits = 0;
4681 // Prevent compiler warnings about cached_has_bits being unused
4682 (void) cached_has_bits;
4683
4684 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4685 ::memset(&status_, 0, static_cast<size_t>(
4686 reinterpret_cast<char*>(&reason_) -
4687 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
4688 _internal_metadata_.Clear();
4689}
4690
4691#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4692const char* StopManagingDeviceResponse::_InternalParse(const char* begin, const char* end, void* object,
4693 ::google::protobuf::internal::ParseContext* ctx) {
4694 auto msg = static_cast<StopManagingDeviceResponse*>(object);
4695 ::google::protobuf::int32 size; (void)size;
4696 int depth; (void)depth;
4697 ::google::protobuf::uint32 tag;
4698 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
4699 auto ptr = begin;
4700 while (ptr < end) {
4701 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
4702 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4703 switch (tag >> 3) {
4704 // .dmi.Status status = 1;
4705 case 1: {
4706 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
4707 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
4708 msg->set_status(static_cast<::dmi::Status>(val));
4709 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4710 break;
4711 }
4712 // .dmi.StopManagingDeviceResponse.Reason reason = 2;
4713 case 2: {
4714 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
4715 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
4716 msg->set_reason(static_cast<::dmi::StopManagingDeviceResponse_Reason>(val));
4717 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4718 break;
4719 }
4720 // string reason_detail = 3;
4721 case 3: {
4722 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
4723 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
4724 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4725 ctx->extra_parse_data().SetFieldName("dmi.StopManagingDeviceResponse.reason_detail");
4726 object = msg->mutable_reason_detail();
4727 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
4728 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
4729 goto string_till_end;
4730 }
4731 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
4732 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
4733 ptr += size;
4734 break;
4735 }
4736 default: {
4737 handle_unusual:
4738 if ((tag & 7) == 4 || tag == 0) {
4739 ctx->EndGroup(tag);
4740 return ptr;
4741 }
4742 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
4743 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
4744 ptr = res.first;
4745 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
4746 if (res.second) return ptr;
4747 }
4748 } // switch
4749 } // while
4750 return ptr;
4751string_till_end:
4752 static_cast<::std::string*>(object)->clear();
4753 static_cast<::std::string*>(object)->reserve(size);
4754 goto len_delim_till_end;
4755len_delim_till_end:
4756 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
4757 {parser_till_end, object}, size);
4758}
4759#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4760bool StopManagingDeviceResponse::MergePartialFromCodedStream(
4761 ::google::protobuf::io::CodedInputStream* input) {
4762#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
4763 ::google::protobuf::uint32 tag;
4764 // @@protoc_insertion_point(parse_start:dmi.StopManagingDeviceResponse)
4765 for (;;) {
4766 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4767 tag = p.first;
4768 if (!p.second) goto handle_unusual;
4769 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4770 // .dmi.Status status = 1;
4771 case 1: {
4772 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
4773 int value = 0;
4774 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4775 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
4776 input, &value)));
4777 set_status(static_cast< ::dmi::Status >(value));
4778 } else {
4779 goto handle_unusual;
4780 }
4781 break;
4782 }
4783
4784 // .dmi.StopManagingDeviceResponse.Reason reason = 2;
4785 case 2: {
4786 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
4787 int value = 0;
4788 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4789 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
4790 input, &value)));
4791 set_reason(static_cast< ::dmi::StopManagingDeviceResponse_Reason >(value));
4792 } else {
4793 goto handle_unusual;
4794 }
4795 break;
4796 }
4797
4798 // string reason_detail = 3;
4799 case 3: {
4800 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
4801 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4802 input, this->mutable_reason_detail()));
4803 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
4804 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
4805 ::google::protobuf::internal::WireFormatLite::PARSE,
4806 "dmi.StopManagingDeviceResponse.reason_detail"));
4807 } else {
4808 goto handle_unusual;
4809 }
4810 break;
4811 }
4812
4813 default: {
4814 handle_unusual:
4815 if (tag == 0) {
4816 goto success;
4817 }
4818 DO_(::google::protobuf::internal::WireFormat::SkipField(
4819 input, tag, _internal_metadata_.mutable_unknown_fields()));
4820 break;
4821 }
4822 }
4823 }
4824success:
4825 // @@protoc_insertion_point(parse_success:dmi.StopManagingDeviceResponse)
4826 return true;
4827failure:
4828 // @@protoc_insertion_point(parse_failure:dmi.StopManagingDeviceResponse)
4829 return false;
4830#undef DO_
4831}
4832#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4833
4834void StopManagingDeviceResponse::SerializeWithCachedSizes(
4835 ::google::protobuf::io::CodedOutputStream* output) const {
4836 // @@protoc_insertion_point(serialize_start:dmi.StopManagingDeviceResponse)
4837 ::google::protobuf::uint32 cached_has_bits = 0;
4838 (void) cached_has_bits;
4839
4840 // .dmi.Status status = 1;
4841 if (this->status() != 0) {
4842 ::google::protobuf::internal::WireFormatLite::WriteEnum(
4843 1, this->status(), output);
4844 }
4845
4846 // .dmi.StopManagingDeviceResponse.Reason reason = 2;
4847 if (this->reason() != 0) {
4848 ::google::protobuf::internal::WireFormatLite::WriteEnum(
4849 2, this->reason(), output);
4850 }
4851
4852 // string reason_detail = 3;
4853 if (this->reason_detail().size() > 0) {
4854 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
4855 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
4856 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
4857 "dmi.StopManagingDeviceResponse.reason_detail");
4858 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4859 3, this->reason_detail(), output);
4860 }
4861
4862 if (_internal_metadata_.have_unknown_fields()) {
4863 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4864 _internal_metadata_.unknown_fields(), output);
4865 }
4866 // @@protoc_insertion_point(serialize_end:dmi.StopManagingDeviceResponse)
4867}
4868
4869::google::protobuf::uint8* StopManagingDeviceResponse::InternalSerializeWithCachedSizesToArray(
4870 ::google::protobuf::uint8* target) const {
4871 // @@protoc_insertion_point(serialize_to_array_start:dmi.StopManagingDeviceResponse)
4872 ::google::protobuf::uint32 cached_has_bits = 0;
4873 (void) cached_has_bits;
4874
4875 // .dmi.Status status = 1;
4876 if (this->status() != 0) {
4877 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4878 1, this->status(), target);
4879 }
4880
4881 // .dmi.StopManagingDeviceResponse.Reason reason = 2;
4882 if (this->reason() != 0) {
4883 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4884 2, this->reason(), target);
4885 }
4886
4887 // string reason_detail = 3;
4888 if (this->reason_detail().size() > 0) {
4889 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
4890 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
4891 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
4892 "dmi.StopManagingDeviceResponse.reason_detail");
4893 target =
4894 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4895 3, this->reason_detail(), target);
4896 }
4897
4898 if (_internal_metadata_.have_unknown_fields()) {
4899 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4900 _internal_metadata_.unknown_fields(), target);
4901 }
4902 // @@protoc_insertion_point(serialize_to_array_end:dmi.StopManagingDeviceResponse)
4903 return target;
4904}
4905
4906size_t StopManagingDeviceResponse::ByteSizeLong() const {
4907// @@protoc_insertion_point(message_byte_size_start:dmi.StopManagingDeviceResponse)
4908 size_t total_size = 0;
4909
4910 if (_internal_metadata_.have_unknown_fields()) {
4911 total_size +=
4912 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4913 _internal_metadata_.unknown_fields());
4914 }
4915 ::google::protobuf::uint32 cached_has_bits = 0;
4916 // Prevent compiler warnings about cached_has_bits being unused
4917 (void) cached_has_bits;
4918
4919 // string reason_detail = 3;
4920 if (this->reason_detail().size() > 0) {
4921 total_size += 1 +
4922 ::google::protobuf::internal::WireFormatLite::StringSize(
4923 this->reason_detail());
4924 }
4925
4926 // .dmi.Status status = 1;
4927 if (this->status() != 0) {
4928 total_size += 1 +
4929 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
4930 }
4931
4932 // .dmi.StopManagingDeviceResponse.Reason reason = 2;
4933 if (this->reason() != 0) {
4934 total_size += 1 +
4935 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
4936 }
4937
4938 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4939 SetCachedSize(cached_size);
4940 return total_size;
4941}
4942
4943void StopManagingDeviceResponse::MergeFrom(const ::google::protobuf::Message& from) {
4944// @@protoc_insertion_point(generalized_merge_from_start:dmi.StopManagingDeviceResponse)
4945 GOOGLE_DCHECK_NE(&from, this);
4946 const StopManagingDeviceResponse* source =
4947 ::google::protobuf::DynamicCastToGenerated<StopManagingDeviceResponse>(
4948 &from);
4949 if (source == nullptr) {
4950 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.StopManagingDeviceResponse)
4951 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4952 } else {
4953 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.StopManagingDeviceResponse)
4954 MergeFrom(*source);
4955 }
4956}
4957
4958void StopManagingDeviceResponse::MergeFrom(const StopManagingDeviceResponse& from) {
4959// @@protoc_insertion_point(class_specific_merge_from_start:dmi.StopManagingDeviceResponse)
4960 GOOGLE_DCHECK_NE(&from, this);
4961 _internal_metadata_.MergeFrom(from._internal_metadata_);
4962 ::google::protobuf::uint32 cached_has_bits = 0;
4963 (void) cached_has_bits;
4964
4965 if (from.reason_detail().size() > 0) {
4966
4967 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
4968 }
4969 if (from.status() != 0) {
4970 set_status(from.status());
4971 }
4972 if (from.reason() != 0) {
4973 set_reason(from.reason());
4974 }
4975}
4976
4977void StopManagingDeviceResponse::CopyFrom(const ::google::protobuf::Message& from) {
4978// @@protoc_insertion_point(generalized_copy_from_start:dmi.StopManagingDeviceResponse)
4979 if (&from == this) return;
4980 Clear();
4981 MergeFrom(from);
4982}
4983
4984void StopManagingDeviceResponse::CopyFrom(const StopManagingDeviceResponse& from) {
4985// @@protoc_insertion_point(class_specific_copy_from_start:dmi.StopManagingDeviceResponse)
4986 if (&from == this) return;
4987 Clear();
4988 MergeFrom(from);
4989}
4990
4991bool StopManagingDeviceResponse::IsInitialized() const {
4992 return true;
4993}
4994
4995void StopManagingDeviceResponse::Swap(StopManagingDeviceResponse* other) {
4996 if (other == this) return;
4997 InternalSwap(other);
4998}
4999void StopManagingDeviceResponse::InternalSwap(StopManagingDeviceResponse* other) {
5000 using std::swap;
5001 _internal_metadata_.Swap(&other->_internal_metadata_);
5002 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
5003 GetArenaNoVirtual());
5004 swap(status_, other->status_);
5005 swap(reason_, other->reason_);
5006}
5007
5008::google::protobuf::Metadata StopManagingDeviceResponse::GetMetadata() const {
5009 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
5010 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
5011}
5012
5013
5014// ===================================================================
5015
5016void ManagedDeviceInfo::InitAsDefaultInstance() {
5017 ::dmi::_ManagedDeviceInfo_default_instance_._instance.get_mutable()->info_ = const_cast< ::dmi::ModifiableComponent*>(
5018 ::dmi::ModifiableComponent::internal_default_instance());
5019 ::dmi::_ManagedDeviceInfo_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
5020 ::dmi::Uuid::internal_default_instance());
5021}
5022class ManagedDeviceInfo::HasBitSetters {
5023 public:
5024 static const ::dmi::ModifiableComponent& info(const ManagedDeviceInfo* msg);
5025 static const ::dmi::Uuid& device_uuid(const ManagedDeviceInfo* msg);
5026};
5027
5028const ::dmi::ModifiableComponent&
5029ManagedDeviceInfo::HasBitSetters::info(const ManagedDeviceInfo* msg) {
5030 return *msg->info_;
5031}
5032const ::dmi::Uuid&
5033ManagedDeviceInfo::HasBitSetters::device_uuid(const ManagedDeviceInfo* msg) {
5034 return *msg->device_uuid_;
5035}
5036void ManagedDeviceInfo::clear_info() {
5037 if (GetArenaNoVirtual() == nullptr && info_ != nullptr) {
5038 delete info_;
5039 }
5040 info_ = nullptr;
5041}
5042void ManagedDeviceInfo::clear_device_uuid() {
5043 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
5044 delete device_uuid_;
5045 }
5046 device_uuid_ = nullptr;
5047}
5048#if !defined(_MSC_VER) || _MSC_VER >= 1900
5049const int ManagedDeviceInfo::kInfoFieldNumber;
5050const int ManagedDeviceInfo::kDeviceUuidFieldNumber;
5051#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
5052
5053ManagedDeviceInfo::ManagedDeviceInfo()
5054 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
5055 SharedCtor();
5056 // @@protoc_insertion_point(constructor:dmi.ManagedDeviceInfo)
5057}
5058ManagedDeviceInfo::ManagedDeviceInfo(const ManagedDeviceInfo& from)
5059 : ::google::protobuf::Message(),
5060 _internal_metadata_(nullptr) {
5061 _internal_metadata_.MergeFrom(from._internal_metadata_);
5062 if (from.has_info()) {
5063 info_ = new ::dmi::ModifiableComponent(*from.info_);
5064 } else {
5065 info_ = nullptr;
5066 }
5067 if (from.has_device_uuid()) {
5068 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
5069 } else {
5070 device_uuid_ = nullptr;
5071 }
5072 // @@protoc_insertion_point(copy_constructor:dmi.ManagedDeviceInfo)
5073}
5074
5075void ManagedDeviceInfo::SharedCtor() {
5076 ::google::protobuf::internal::InitSCC(
5077 &scc_info_ManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
5078 ::memset(&info_, 0, static_cast<size_t>(
5079 reinterpret_cast<char*>(&device_uuid_) -
5080 reinterpret_cast<char*>(&info_)) + sizeof(device_uuid_));
5081}
5082
5083ManagedDeviceInfo::~ManagedDeviceInfo() {
5084 // @@protoc_insertion_point(destructor:dmi.ManagedDeviceInfo)
5085 SharedDtor();
5086}
5087
5088void ManagedDeviceInfo::SharedDtor() {
5089 if (this != internal_default_instance()) delete info_;
5090 if (this != internal_default_instance()) delete device_uuid_;
5091}
5092
5093void ManagedDeviceInfo::SetCachedSize(int size) const {
5094 _cached_size_.Set(size);
5095}
5096const ManagedDeviceInfo& ManagedDeviceInfo::default_instance() {
5097 ::google::protobuf::internal::InitSCC(&::scc_info_ManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
5098 return *internal_default_instance();
5099}
5100
5101
5102void ManagedDeviceInfo::Clear() {
5103// @@protoc_insertion_point(message_clear_start:dmi.ManagedDeviceInfo)
5104 ::google::protobuf::uint32 cached_has_bits = 0;
5105 // Prevent compiler warnings about cached_has_bits being unused
5106 (void) cached_has_bits;
5107
5108 if (GetArenaNoVirtual() == nullptr && info_ != nullptr) {
5109 delete info_;
5110 }
5111 info_ = nullptr;
5112 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
5113 delete device_uuid_;
5114 }
5115 device_uuid_ = nullptr;
5116 _internal_metadata_.Clear();
5117}
5118
5119#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5120const char* ManagedDeviceInfo::_InternalParse(const char* begin, const char* end, void* object,
5121 ::google::protobuf::internal::ParseContext* ctx) {
5122 auto msg = static_cast<ManagedDeviceInfo*>(object);
5123 ::google::protobuf::int32 size; (void)size;
5124 int depth; (void)depth;
5125 ::google::protobuf::uint32 tag;
5126 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
5127 auto ptr = begin;
5128 while (ptr < end) {
5129 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
5130 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5131 switch (tag >> 3) {
5132 // .dmi.ModifiableComponent info = 1;
5133 case 1: {
5134 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
5135 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
5136 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5137 parser_till_end = ::dmi::ModifiableComponent::_InternalParse;
5138 object = msg->mutable_info();
5139 if (size > end - ptr) goto len_delim_till_end;
5140 ptr += size;
5141 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
5142 {parser_till_end, object}, ptr - size, ptr));
5143 break;
5144 }
5145 // .dmi.Uuid device_uuid = 2;
5146 case 2: {
5147 if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
5148 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
5149 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5150 parser_till_end = ::dmi::Uuid::_InternalParse;
5151 object = msg->mutable_device_uuid();
5152 if (size > end - ptr) goto len_delim_till_end;
5153 ptr += size;
5154 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
5155 {parser_till_end, object}, ptr - size, ptr));
5156 break;
5157 }
5158 default: {
5159 handle_unusual:
5160 if ((tag & 7) == 4 || tag == 0) {
5161 ctx->EndGroup(tag);
5162 return ptr;
5163 }
5164 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
5165 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
5166 ptr = res.first;
5167 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
5168 if (res.second) return ptr;
5169 }
5170 } // switch
5171 } // while
5172 return ptr;
5173len_delim_till_end:
5174 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
5175 {parser_till_end, object}, size);
5176}
5177#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5178bool ManagedDeviceInfo::MergePartialFromCodedStream(
5179 ::google::protobuf::io::CodedInputStream* input) {
5180#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
5181 ::google::protobuf::uint32 tag;
5182 // @@protoc_insertion_point(parse_start:dmi.ManagedDeviceInfo)
5183 for (;;) {
5184 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5185 tag = p.first;
5186 if (!p.second) goto handle_unusual;
5187 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5188 // .dmi.ModifiableComponent info = 1;
5189 case 1: {
5190 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
5191 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5192 input, mutable_info()));
5193 } else {
5194 goto handle_unusual;
5195 }
5196 break;
5197 }
5198
5199 // .dmi.Uuid device_uuid = 2;
5200 case 2: {
5201 if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
5202 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5203 input, mutable_device_uuid()));
5204 } else {
5205 goto handle_unusual;
5206 }
5207 break;
5208 }
5209
5210 default: {
5211 handle_unusual:
5212 if (tag == 0) {
5213 goto success;
5214 }
5215 DO_(::google::protobuf::internal::WireFormat::SkipField(
5216 input, tag, _internal_metadata_.mutable_unknown_fields()));
5217 break;
5218 }
5219 }
5220 }
5221success:
5222 // @@protoc_insertion_point(parse_success:dmi.ManagedDeviceInfo)
5223 return true;
5224failure:
5225 // @@protoc_insertion_point(parse_failure:dmi.ManagedDeviceInfo)
5226 return false;
5227#undef DO_
5228}
5229#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5230
5231void ManagedDeviceInfo::SerializeWithCachedSizes(
5232 ::google::protobuf::io::CodedOutputStream* output) const {
5233 // @@protoc_insertion_point(serialize_start:dmi.ManagedDeviceInfo)
5234 ::google::protobuf::uint32 cached_has_bits = 0;
5235 (void) cached_has_bits;
5236
5237 // .dmi.ModifiableComponent info = 1;
5238 if (this->has_info()) {
5239 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5240 1, HasBitSetters::info(this), output);
5241 }
5242
5243 // .dmi.Uuid device_uuid = 2;
5244 if (this->has_device_uuid()) {
5245 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5246 2, HasBitSetters::device_uuid(this), output);
5247 }
5248
5249 if (_internal_metadata_.have_unknown_fields()) {
5250 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5251 _internal_metadata_.unknown_fields(), output);
5252 }
5253 // @@protoc_insertion_point(serialize_end:dmi.ManagedDeviceInfo)
5254}
5255
5256::google::protobuf::uint8* ManagedDeviceInfo::InternalSerializeWithCachedSizesToArray(
5257 ::google::protobuf::uint8* target) const {
5258 // @@protoc_insertion_point(serialize_to_array_start:dmi.ManagedDeviceInfo)
5259 ::google::protobuf::uint32 cached_has_bits = 0;
5260 (void) cached_has_bits;
5261
5262 // .dmi.ModifiableComponent info = 1;
5263 if (this->has_info()) {
5264 target = ::google::protobuf::internal::WireFormatLite::
5265 InternalWriteMessageToArray(
5266 1, HasBitSetters::info(this), target);
5267 }
5268
5269 // .dmi.Uuid device_uuid = 2;
5270 if (this->has_device_uuid()) {
5271 target = ::google::protobuf::internal::WireFormatLite::
5272 InternalWriteMessageToArray(
5273 2, HasBitSetters::device_uuid(this), target);
5274 }
5275
5276 if (_internal_metadata_.have_unknown_fields()) {
5277 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5278 _internal_metadata_.unknown_fields(), target);
5279 }
5280 // @@protoc_insertion_point(serialize_to_array_end:dmi.ManagedDeviceInfo)
5281 return target;
5282}
5283
5284size_t ManagedDeviceInfo::ByteSizeLong() const {
5285// @@protoc_insertion_point(message_byte_size_start:dmi.ManagedDeviceInfo)
5286 size_t total_size = 0;
5287
5288 if (_internal_metadata_.have_unknown_fields()) {
5289 total_size +=
5290 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5291 _internal_metadata_.unknown_fields());
5292 }
5293 ::google::protobuf::uint32 cached_has_bits = 0;
5294 // Prevent compiler warnings about cached_has_bits being unused
5295 (void) cached_has_bits;
5296
5297 // .dmi.ModifiableComponent info = 1;
5298 if (this->has_info()) {
5299 total_size += 1 +
5300 ::google::protobuf::internal::WireFormatLite::MessageSize(
5301 *info_);
5302 }
5303
5304 // .dmi.Uuid device_uuid = 2;
5305 if (this->has_device_uuid()) {
5306 total_size += 1 +
5307 ::google::protobuf::internal::WireFormatLite::MessageSize(
5308 *device_uuid_);
5309 }
5310
5311 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5312 SetCachedSize(cached_size);
5313 return total_size;
5314}
5315
5316void ManagedDeviceInfo::MergeFrom(const ::google::protobuf::Message& from) {
5317// @@protoc_insertion_point(generalized_merge_from_start:dmi.ManagedDeviceInfo)
5318 GOOGLE_DCHECK_NE(&from, this);
5319 const ManagedDeviceInfo* source =
5320 ::google::protobuf::DynamicCastToGenerated<ManagedDeviceInfo>(
5321 &from);
5322 if (source == nullptr) {
5323 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ManagedDeviceInfo)
5324 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5325 } else {
5326 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ManagedDeviceInfo)
5327 MergeFrom(*source);
5328 }
5329}
5330
5331void ManagedDeviceInfo::MergeFrom(const ManagedDeviceInfo& from) {
5332// @@protoc_insertion_point(class_specific_merge_from_start:dmi.ManagedDeviceInfo)
5333 GOOGLE_DCHECK_NE(&from, this);
5334 _internal_metadata_.MergeFrom(from._internal_metadata_);
5335 ::google::protobuf::uint32 cached_has_bits = 0;
5336 (void) cached_has_bits;
5337
5338 if (from.has_info()) {
5339 mutable_info()->::dmi::ModifiableComponent::MergeFrom(from.info());
5340 }
5341 if (from.has_device_uuid()) {
5342 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
5343 }
5344}
5345
5346void ManagedDeviceInfo::CopyFrom(const ::google::protobuf::Message& from) {
5347// @@protoc_insertion_point(generalized_copy_from_start:dmi.ManagedDeviceInfo)
5348 if (&from == this) return;
5349 Clear();
5350 MergeFrom(from);
5351}
5352
5353void ManagedDeviceInfo::CopyFrom(const ManagedDeviceInfo& from) {
5354// @@protoc_insertion_point(class_specific_copy_from_start:dmi.ManagedDeviceInfo)
5355 if (&from == this) return;
5356 Clear();
5357 MergeFrom(from);
5358}
5359
5360bool ManagedDeviceInfo::IsInitialized() const {
5361 return true;
5362}
5363
5364void ManagedDeviceInfo::Swap(ManagedDeviceInfo* other) {
5365 if (other == this) return;
5366 InternalSwap(other);
5367}
5368void ManagedDeviceInfo::InternalSwap(ManagedDeviceInfo* other) {
5369 using std::swap;
5370 _internal_metadata_.Swap(&other->_internal_metadata_);
5371 swap(info_, other->info_);
5372 swap(device_uuid_, other->device_uuid_);
5373}
5374
5375::google::protobuf::Metadata ManagedDeviceInfo::GetMetadata() const {
5376 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
5377 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
5378}
5379
5380
5381// ===================================================================
5382
5383void ManagedDevicesResponse::InitAsDefaultInstance() {
5384}
5385class ManagedDevicesResponse::HasBitSetters {
5386 public:
5387};
5388
5389#if !defined(_MSC_VER) || _MSC_VER >= 1900
5390const int ManagedDevicesResponse::kStatusFieldNumber;
5391const int ManagedDevicesResponse::kReasonFieldNumber;
5392const int ManagedDevicesResponse::kDevicesFieldNumber;
5393#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
5394
5395ManagedDevicesResponse::ManagedDevicesResponse()
5396 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
5397 SharedCtor();
5398 // @@protoc_insertion_point(constructor:dmi.ManagedDevicesResponse)
5399}
5400ManagedDevicesResponse::ManagedDevicesResponse(const ManagedDevicesResponse& from)
5401 : ::google::protobuf::Message(),
5402 _internal_metadata_(nullptr),
5403 devices_(from.devices_) {
5404 _internal_metadata_.MergeFrom(from._internal_metadata_);
5405 ::memcpy(&status_, &from.status_,
5406 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
5407 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
5408 // @@protoc_insertion_point(copy_constructor:dmi.ManagedDevicesResponse)
5409}
5410
5411void ManagedDevicesResponse::SharedCtor() {
5412 ::google::protobuf::internal::InitSCC(
5413 &scc_info_ManagedDevicesResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
5414 ::memset(&status_, 0, static_cast<size_t>(
5415 reinterpret_cast<char*>(&reason_) -
5416 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
5417}
5418
5419ManagedDevicesResponse::~ManagedDevicesResponse() {
5420 // @@protoc_insertion_point(destructor:dmi.ManagedDevicesResponse)
5421 SharedDtor();
5422}
5423
5424void ManagedDevicesResponse::SharedDtor() {
5425}
5426
5427void ManagedDevicesResponse::SetCachedSize(int size) const {
5428 _cached_size_.Set(size);
5429}
5430const ManagedDevicesResponse& ManagedDevicesResponse::default_instance() {
5431 ::google::protobuf::internal::InitSCC(&::scc_info_ManagedDevicesResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
5432 return *internal_default_instance();
5433}
5434
5435
5436void ManagedDevicesResponse::Clear() {
5437// @@protoc_insertion_point(message_clear_start:dmi.ManagedDevicesResponse)
5438 ::google::protobuf::uint32 cached_has_bits = 0;
5439 // Prevent compiler warnings about cached_has_bits being unused
5440 (void) cached_has_bits;
5441
5442 devices_.Clear();
5443 ::memset(&status_, 0, static_cast<size_t>(
5444 reinterpret_cast<char*>(&reason_) -
5445 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
5446 _internal_metadata_.Clear();
5447}
5448
5449#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5450const char* ManagedDevicesResponse::_InternalParse(const char* begin, const char* end, void* object,
5451 ::google::protobuf::internal::ParseContext* ctx) {
5452 auto msg = static_cast<ManagedDevicesResponse*>(object);
5453 ::google::protobuf::int32 size; (void)size;
5454 int depth; (void)depth;
5455 ::google::protobuf::uint32 tag;
5456 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
5457 auto ptr = begin;
5458 while (ptr < end) {
5459 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
5460 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5461 switch (tag >> 3) {
5462 // .dmi.Status status = 1;
5463 case 1: {
5464 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
5465 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
5466 msg->set_status(static_cast<::dmi::Status>(val));
5467 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5468 break;
5469 }
5470 // .dmi.ManagedDevicesResponse.Reason reason = 2;
5471 case 2: {
5472 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
5473 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
5474 msg->set_reason(static_cast<::dmi::ManagedDevicesResponse_Reason>(val));
5475 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5476 break;
5477 }
5478 // repeated .dmi.ManagedDeviceInfo devices = 3;
5479 case 3: {
5480 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
5481 do {
5482 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
5483 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5484 parser_till_end = ::dmi::ManagedDeviceInfo::_InternalParse;
5485 object = msg->add_devices();
5486 if (size > end - ptr) goto len_delim_till_end;
5487 ptr += size;
5488 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
5489 {parser_till_end, object}, ptr - size, ptr));
5490 if (ptr >= end) break;
5491 } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 26 && (ptr += 1));
5492 break;
5493 }
5494 default: {
5495 handle_unusual:
5496 if ((tag & 7) == 4 || tag == 0) {
5497 ctx->EndGroup(tag);
5498 return ptr;
5499 }
5500 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
5501 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
5502 ptr = res.first;
5503 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
5504 if (res.second) return ptr;
5505 }
5506 } // switch
5507 } // while
5508 return ptr;
5509len_delim_till_end:
5510 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
5511 {parser_till_end, object}, size);
5512}
5513#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5514bool ManagedDevicesResponse::MergePartialFromCodedStream(
5515 ::google::protobuf::io::CodedInputStream* input) {
5516#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
5517 ::google::protobuf::uint32 tag;
5518 // @@protoc_insertion_point(parse_start:dmi.ManagedDevicesResponse)
5519 for (;;) {
5520 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5521 tag = p.first;
5522 if (!p.second) goto handle_unusual;
5523 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5524 // .dmi.Status status = 1;
5525 case 1: {
5526 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
5527 int value = 0;
5528 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5529 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
5530 input, &value)));
5531 set_status(static_cast< ::dmi::Status >(value));
5532 } else {
5533 goto handle_unusual;
5534 }
5535 break;
5536 }
5537
5538 // .dmi.ManagedDevicesResponse.Reason reason = 2;
5539 case 2: {
5540 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
5541 int value = 0;
5542 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5543 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
5544 input, &value)));
5545 set_reason(static_cast< ::dmi::ManagedDevicesResponse_Reason >(value));
5546 } else {
5547 goto handle_unusual;
5548 }
5549 break;
5550 }
5551
5552 // repeated .dmi.ManagedDeviceInfo devices = 3;
5553 case 3: {
5554 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
5555 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5556 input, add_devices()));
5557 } else {
5558 goto handle_unusual;
5559 }
5560 break;
5561 }
5562
5563 default: {
5564 handle_unusual:
5565 if (tag == 0) {
5566 goto success;
5567 }
5568 DO_(::google::protobuf::internal::WireFormat::SkipField(
5569 input, tag, _internal_metadata_.mutable_unknown_fields()));
5570 break;
5571 }
5572 }
5573 }
5574success:
5575 // @@protoc_insertion_point(parse_success:dmi.ManagedDevicesResponse)
5576 return true;
5577failure:
5578 // @@protoc_insertion_point(parse_failure:dmi.ManagedDevicesResponse)
5579 return false;
5580#undef DO_
5581}
5582#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5583
5584void ManagedDevicesResponse::SerializeWithCachedSizes(
5585 ::google::protobuf::io::CodedOutputStream* output) const {
5586 // @@protoc_insertion_point(serialize_start:dmi.ManagedDevicesResponse)
5587 ::google::protobuf::uint32 cached_has_bits = 0;
5588 (void) cached_has_bits;
5589
5590 // .dmi.Status status = 1;
5591 if (this->status() != 0) {
5592 ::google::protobuf::internal::WireFormatLite::WriteEnum(
5593 1, this->status(), output);
5594 }
5595
5596 // .dmi.ManagedDevicesResponse.Reason reason = 2;
5597 if (this->reason() != 0) {
5598 ::google::protobuf::internal::WireFormatLite::WriteEnum(
5599 2, this->reason(), output);
5600 }
5601
5602 // repeated .dmi.ManagedDeviceInfo devices = 3;
5603 for (unsigned int i = 0,
5604 n = static_cast<unsigned int>(this->devices_size()); i < n; i++) {
5605 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5606 3,
5607 this->devices(static_cast<int>(i)),
5608 output);
5609 }
5610
5611 if (_internal_metadata_.have_unknown_fields()) {
5612 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5613 _internal_metadata_.unknown_fields(), output);
5614 }
5615 // @@protoc_insertion_point(serialize_end:dmi.ManagedDevicesResponse)
5616}
5617
5618::google::protobuf::uint8* ManagedDevicesResponse::InternalSerializeWithCachedSizesToArray(
5619 ::google::protobuf::uint8* target) const {
5620 // @@protoc_insertion_point(serialize_to_array_start:dmi.ManagedDevicesResponse)
5621 ::google::protobuf::uint32 cached_has_bits = 0;
5622 (void) cached_has_bits;
5623
5624 // .dmi.Status status = 1;
5625 if (this->status() != 0) {
5626 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
5627 1, this->status(), target);
5628 }
5629
5630 // .dmi.ManagedDevicesResponse.Reason reason = 2;
5631 if (this->reason() != 0) {
5632 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
5633 2, this->reason(), target);
5634 }
5635
5636 // repeated .dmi.ManagedDeviceInfo devices = 3;
5637 for (unsigned int i = 0,
5638 n = static_cast<unsigned int>(this->devices_size()); i < n; i++) {
5639 target = ::google::protobuf::internal::WireFormatLite::
5640 InternalWriteMessageToArray(
5641 3, this->devices(static_cast<int>(i)), target);
5642 }
5643
5644 if (_internal_metadata_.have_unknown_fields()) {
5645 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5646 _internal_metadata_.unknown_fields(), target);
5647 }
5648 // @@protoc_insertion_point(serialize_to_array_end:dmi.ManagedDevicesResponse)
5649 return target;
5650}
5651
5652size_t ManagedDevicesResponse::ByteSizeLong() const {
5653// @@protoc_insertion_point(message_byte_size_start:dmi.ManagedDevicesResponse)
5654 size_t total_size = 0;
5655
5656 if (_internal_metadata_.have_unknown_fields()) {
5657 total_size +=
5658 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5659 _internal_metadata_.unknown_fields());
5660 }
5661 ::google::protobuf::uint32 cached_has_bits = 0;
5662 // Prevent compiler warnings about cached_has_bits being unused
5663 (void) cached_has_bits;
5664
5665 // repeated .dmi.ManagedDeviceInfo devices = 3;
5666 {
5667 unsigned int count = static_cast<unsigned int>(this->devices_size());
5668 total_size += 1UL * count;
5669 for (unsigned int i = 0; i < count; i++) {
5670 total_size +=
5671 ::google::protobuf::internal::WireFormatLite::MessageSize(
5672 this->devices(static_cast<int>(i)));
5673 }
5674 }
5675
5676 // .dmi.Status status = 1;
5677 if (this->status() != 0) {
5678 total_size += 1 +
5679 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
5680 }
5681
5682 // .dmi.ManagedDevicesResponse.Reason reason = 2;
5683 if (this->reason() != 0) {
5684 total_size += 1 +
5685 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
5686 }
5687
5688 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5689 SetCachedSize(cached_size);
5690 return total_size;
5691}
5692
5693void ManagedDevicesResponse::MergeFrom(const ::google::protobuf::Message& from) {
5694// @@protoc_insertion_point(generalized_merge_from_start:dmi.ManagedDevicesResponse)
5695 GOOGLE_DCHECK_NE(&from, this);
5696 const ManagedDevicesResponse* source =
5697 ::google::protobuf::DynamicCastToGenerated<ManagedDevicesResponse>(
5698 &from);
5699 if (source == nullptr) {
5700 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ManagedDevicesResponse)
5701 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5702 } else {
5703 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ManagedDevicesResponse)
5704 MergeFrom(*source);
5705 }
5706}
5707
5708void ManagedDevicesResponse::MergeFrom(const ManagedDevicesResponse& from) {
5709// @@protoc_insertion_point(class_specific_merge_from_start:dmi.ManagedDevicesResponse)
5710 GOOGLE_DCHECK_NE(&from, this);
5711 _internal_metadata_.MergeFrom(from._internal_metadata_);
5712 ::google::protobuf::uint32 cached_has_bits = 0;
5713 (void) cached_has_bits;
5714
5715 devices_.MergeFrom(from.devices_);
5716 if (from.status() != 0) {
5717 set_status(from.status());
5718 }
5719 if (from.reason() != 0) {
5720 set_reason(from.reason());
5721 }
5722}
5723
5724void ManagedDevicesResponse::CopyFrom(const ::google::protobuf::Message& from) {
5725// @@protoc_insertion_point(generalized_copy_from_start:dmi.ManagedDevicesResponse)
5726 if (&from == this) return;
5727 Clear();
5728 MergeFrom(from);
5729}
5730
5731void ManagedDevicesResponse::CopyFrom(const ManagedDevicesResponse& from) {
5732// @@protoc_insertion_point(class_specific_copy_from_start:dmi.ManagedDevicesResponse)
5733 if (&from == this) return;
5734 Clear();
5735 MergeFrom(from);
5736}
5737
5738bool ManagedDevicesResponse::IsInitialized() const {
5739 return true;
5740}
5741
5742void ManagedDevicesResponse::Swap(ManagedDevicesResponse* other) {
5743 if (other == this) return;
5744 InternalSwap(other);
5745}
5746void ManagedDevicesResponse::InternalSwap(ManagedDevicesResponse* other) {
5747 using std::swap;
5748 _internal_metadata_.Swap(&other->_internal_metadata_);
5749 CastToBase(&devices_)->InternalSwap(CastToBase(&other->devices_));
5750 swap(status_, other->status_);
5751 swap(reason_, other->reason_);
5752}
5753
5754::google::protobuf::Metadata ManagedDevicesResponse::GetMetadata() const {
5755 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
5756 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
5757}
5758
5759
5760// ===================================================================
5761
5762void SetLoggingEndpointRequest::InitAsDefaultInstance() {
5763 ::dmi::_SetLoggingEndpointRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
5764 ::dmi::Uuid::internal_default_instance());
5765}
5766class SetLoggingEndpointRequest::HasBitSetters {
5767 public:
5768 static const ::dmi::Uuid& device_uuid(const SetLoggingEndpointRequest* msg);
5769};
5770
5771const ::dmi::Uuid&
5772SetLoggingEndpointRequest::HasBitSetters::device_uuid(const SetLoggingEndpointRequest* msg) {
5773 return *msg->device_uuid_;
5774}
5775void SetLoggingEndpointRequest::clear_device_uuid() {
5776 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
5777 delete device_uuid_;
5778 }
5779 device_uuid_ = nullptr;
5780}
5781#if !defined(_MSC_VER) || _MSC_VER >= 1900
5782const int SetLoggingEndpointRequest::kDeviceUuidFieldNumber;
5783const int SetLoggingEndpointRequest::kLoggingEndpointFieldNumber;
5784const int SetLoggingEndpointRequest::kLoggingProtocolFieldNumber;
5785#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
5786
5787SetLoggingEndpointRequest::SetLoggingEndpointRequest()
5788 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
5789 SharedCtor();
5790 // @@protoc_insertion_point(constructor:dmi.SetLoggingEndpointRequest)
5791}
5792SetLoggingEndpointRequest::SetLoggingEndpointRequest(const SetLoggingEndpointRequest& from)
5793 : ::google::protobuf::Message(),
5794 _internal_metadata_(nullptr) {
5795 _internal_metadata_.MergeFrom(from._internal_metadata_);
5796 logging_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5797 if (from.logging_endpoint().size() > 0) {
5798 logging_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_endpoint_);
5799 }
5800 logging_protocol_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5801 if (from.logging_protocol().size() > 0) {
5802 logging_protocol_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_protocol_);
5803 }
5804 if (from.has_device_uuid()) {
5805 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
5806 } else {
5807 device_uuid_ = nullptr;
5808 }
5809 // @@protoc_insertion_point(copy_constructor:dmi.SetLoggingEndpointRequest)
5810}
5811
5812void SetLoggingEndpointRequest::SharedCtor() {
5813 ::google::protobuf::internal::InitSCC(
5814 &scc_info_SetLoggingEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
5815 logging_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5816 logging_protocol_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5817 device_uuid_ = nullptr;
5818}
5819
5820SetLoggingEndpointRequest::~SetLoggingEndpointRequest() {
5821 // @@protoc_insertion_point(destructor:dmi.SetLoggingEndpointRequest)
5822 SharedDtor();
5823}
5824
5825void SetLoggingEndpointRequest::SharedDtor() {
5826 logging_endpoint_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5827 logging_protocol_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5828 if (this != internal_default_instance()) delete device_uuid_;
5829}
5830
5831void SetLoggingEndpointRequest::SetCachedSize(int size) const {
5832 _cached_size_.Set(size);
5833}
5834const SetLoggingEndpointRequest& SetLoggingEndpointRequest::default_instance() {
5835 ::google::protobuf::internal::InitSCC(&::scc_info_SetLoggingEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
5836 return *internal_default_instance();
5837}
5838
5839
5840void SetLoggingEndpointRequest::Clear() {
5841// @@protoc_insertion_point(message_clear_start:dmi.SetLoggingEndpointRequest)
5842 ::google::protobuf::uint32 cached_has_bits = 0;
5843 // Prevent compiler warnings about cached_has_bits being unused
5844 (void) cached_has_bits;
5845
5846 logging_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5847 logging_protocol_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5848 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
5849 delete device_uuid_;
5850 }
5851 device_uuid_ = nullptr;
5852 _internal_metadata_.Clear();
5853}
5854
5855#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5856const char* SetLoggingEndpointRequest::_InternalParse(const char* begin, const char* end, void* object,
5857 ::google::protobuf::internal::ParseContext* ctx) {
5858 auto msg = static_cast<SetLoggingEndpointRequest*>(object);
5859 ::google::protobuf::int32 size; (void)size;
5860 int depth; (void)depth;
5861 ::google::protobuf::uint32 tag;
5862 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
5863 auto ptr = begin;
5864 while (ptr < end) {
5865 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
5866 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5867 switch (tag >> 3) {
5868 // .dmi.Uuid device_uuid = 1;
5869 case 1: {
5870 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
5871 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
5872 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5873 parser_till_end = ::dmi::Uuid::_InternalParse;
5874 object = msg->mutable_device_uuid();
5875 if (size > end - ptr) goto len_delim_till_end;
5876 ptr += size;
5877 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
5878 {parser_till_end, object}, ptr - size, ptr));
5879 break;
5880 }
5881 // string logging_endpoint = 2;
5882 case 2: {
5883 if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
5884 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
5885 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5886 ctx->extra_parse_data().SetFieldName("dmi.SetLoggingEndpointRequest.logging_endpoint");
5887 object = msg->mutable_logging_endpoint();
5888 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
5889 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
5890 goto string_till_end;
5891 }
5892 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
5893 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
5894 ptr += size;
5895 break;
5896 }
5897 // string logging_protocol = 3;
5898 case 3: {
5899 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
5900 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
5901 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5902 ctx->extra_parse_data().SetFieldName("dmi.SetLoggingEndpointRequest.logging_protocol");
5903 object = msg->mutable_logging_protocol();
5904 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
5905 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
5906 goto string_till_end;
5907 }
5908 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
5909 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
5910 ptr += size;
5911 break;
5912 }
5913 default: {
5914 handle_unusual:
5915 if ((tag & 7) == 4 || tag == 0) {
5916 ctx->EndGroup(tag);
5917 return ptr;
5918 }
5919 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
5920 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
5921 ptr = res.first;
5922 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
5923 if (res.second) return ptr;
5924 }
5925 } // switch
5926 } // while
5927 return ptr;
5928string_till_end:
5929 static_cast<::std::string*>(object)->clear();
5930 static_cast<::std::string*>(object)->reserve(size);
5931 goto len_delim_till_end;
5932len_delim_till_end:
5933 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
5934 {parser_till_end, object}, size);
5935}
5936#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5937bool SetLoggingEndpointRequest::MergePartialFromCodedStream(
5938 ::google::protobuf::io::CodedInputStream* input) {
5939#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
5940 ::google::protobuf::uint32 tag;
5941 // @@protoc_insertion_point(parse_start:dmi.SetLoggingEndpointRequest)
5942 for (;;) {
5943 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5944 tag = p.first;
5945 if (!p.second) goto handle_unusual;
5946 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5947 // .dmi.Uuid device_uuid = 1;
5948 case 1: {
5949 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
5950 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5951 input, mutable_device_uuid()));
5952 } else {
5953 goto handle_unusual;
5954 }
5955 break;
5956 }
5957
5958 // string logging_endpoint = 2;
5959 case 2: {
5960 if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
5961 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5962 input, this->mutable_logging_endpoint()));
5963 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
5964 this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()),
5965 ::google::protobuf::internal::WireFormatLite::PARSE,
5966 "dmi.SetLoggingEndpointRequest.logging_endpoint"));
5967 } else {
5968 goto handle_unusual;
5969 }
5970 break;
5971 }
5972
5973 // string logging_protocol = 3;
5974 case 3: {
5975 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
5976 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5977 input, this->mutable_logging_protocol()));
5978 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
5979 this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()),
5980 ::google::protobuf::internal::WireFormatLite::PARSE,
5981 "dmi.SetLoggingEndpointRequest.logging_protocol"));
5982 } else {
5983 goto handle_unusual;
5984 }
5985 break;
5986 }
5987
5988 default: {
5989 handle_unusual:
5990 if (tag == 0) {
5991 goto success;
5992 }
5993 DO_(::google::protobuf::internal::WireFormat::SkipField(
5994 input, tag, _internal_metadata_.mutable_unknown_fields()));
5995 break;
5996 }
5997 }
5998 }
5999success:
6000 // @@protoc_insertion_point(parse_success:dmi.SetLoggingEndpointRequest)
6001 return true;
6002failure:
6003 // @@protoc_insertion_point(parse_failure:dmi.SetLoggingEndpointRequest)
6004 return false;
6005#undef DO_
6006}
6007#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6008
6009void SetLoggingEndpointRequest::SerializeWithCachedSizes(
6010 ::google::protobuf::io::CodedOutputStream* output) const {
6011 // @@protoc_insertion_point(serialize_start:dmi.SetLoggingEndpointRequest)
6012 ::google::protobuf::uint32 cached_has_bits = 0;
6013 (void) cached_has_bits;
6014
6015 // .dmi.Uuid device_uuid = 1;
6016 if (this->has_device_uuid()) {
6017 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6018 1, HasBitSetters::device_uuid(this), output);
6019 }
6020
6021 // string logging_endpoint = 2;
6022 if (this->logging_endpoint().size() > 0) {
6023 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6024 this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()),
6025 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6026 "dmi.SetLoggingEndpointRequest.logging_endpoint");
6027 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6028 2, this->logging_endpoint(), output);
6029 }
6030
6031 // string logging_protocol = 3;
6032 if (this->logging_protocol().size() > 0) {
6033 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6034 this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()),
6035 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6036 "dmi.SetLoggingEndpointRequest.logging_protocol");
6037 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6038 3, this->logging_protocol(), output);
6039 }
6040
6041 if (_internal_metadata_.have_unknown_fields()) {
6042 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6043 _internal_metadata_.unknown_fields(), output);
6044 }
6045 // @@protoc_insertion_point(serialize_end:dmi.SetLoggingEndpointRequest)
6046}
6047
6048::google::protobuf::uint8* SetLoggingEndpointRequest::InternalSerializeWithCachedSizesToArray(
6049 ::google::protobuf::uint8* target) const {
6050 // @@protoc_insertion_point(serialize_to_array_start:dmi.SetLoggingEndpointRequest)
6051 ::google::protobuf::uint32 cached_has_bits = 0;
6052 (void) cached_has_bits;
6053
6054 // .dmi.Uuid device_uuid = 1;
6055 if (this->has_device_uuid()) {
6056 target = ::google::protobuf::internal::WireFormatLite::
6057 InternalWriteMessageToArray(
6058 1, HasBitSetters::device_uuid(this), target);
6059 }
6060
6061 // string logging_endpoint = 2;
6062 if (this->logging_endpoint().size() > 0) {
6063 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6064 this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()),
6065 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6066 "dmi.SetLoggingEndpointRequest.logging_endpoint");
6067 target =
6068 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6069 2, this->logging_endpoint(), target);
6070 }
6071
6072 // string logging_protocol = 3;
6073 if (this->logging_protocol().size() > 0) {
6074 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6075 this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()),
6076 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6077 "dmi.SetLoggingEndpointRequest.logging_protocol");
6078 target =
6079 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6080 3, this->logging_protocol(), target);
6081 }
6082
6083 if (_internal_metadata_.have_unknown_fields()) {
6084 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6085 _internal_metadata_.unknown_fields(), target);
6086 }
6087 // @@protoc_insertion_point(serialize_to_array_end:dmi.SetLoggingEndpointRequest)
6088 return target;
6089}
6090
6091size_t SetLoggingEndpointRequest::ByteSizeLong() const {
6092// @@protoc_insertion_point(message_byte_size_start:dmi.SetLoggingEndpointRequest)
6093 size_t total_size = 0;
6094
6095 if (_internal_metadata_.have_unknown_fields()) {
6096 total_size +=
6097 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6098 _internal_metadata_.unknown_fields());
6099 }
6100 ::google::protobuf::uint32 cached_has_bits = 0;
6101 // Prevent compiler warnings about cached_has_bits being unused
6102 (void) cached_has_bits;
6103
6104 // string logging_endpoint = 2;
6105 if (this->logging_endpoint().size() > 0) {
6106 total_size += 1 +
6107 ::google::protobuf::internal::WireFormatLite::StringSize(
6108 this->logging_endpoint());
6109 }
6110
6111 // string logging_protocol = 3;
6112 if (this->logging_protocol().size() > 0) {
6113 total_size += 1 +
6114 ::google::protobuf::internal::WireFormatLite::StringSize(
6115 this->logging_protocol());
6116 }
6117
6118 // .dmi.Uuid device_uuid = 1;
6119 if (this->has_device_uuid()) {
6120 total_size += 1 +
6121 ::google::protobuf::internal::WireFormatLite::MessageSize(
6122 *device_uuid_);
6123 }
6124
6125 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
6126 SetCachedSize(cached_size);
6127 return total_size;
6128}
6129
6130void SetLoggingEndpointRequest::MergeFrom(const ::google::protobuf::Message& from) {
6131// @@protoc_insertion_point(generalized_merge_from_start:dmi.SetLoggingEndpointRequest)
6132 GOOGLE_DCHECK_NE(&from, this);
6133 const SetLoggingEndpointRequest* source =
6134 ::google::protobuf::DynamicCastToGenerated<SetLoggingEndpointRequest>(
6135 &from);
6136 if (source == nullptr) {
6137 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.SetLoggingEndpointRequest)
6138 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6139 } else {
6140 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.SetLoggingEndpointRequest)
6141 MergeFrom(*source);
6142 }
6143}
6144
6145void SetLoggingEndpointRequest::MergeFrom(const SetLoggingEndpointRequest& from) {
6146// @@protoc_insertion_point(class_specific_merge_from_start:dmi.SetLoggingEndpointRequest)
6147 GOOGLE_DCHECK_NE(&from, this);
6148 _internal_metadata_.MergeFrom(from._internal_metadata_);
6149 ::google::protobuf::uint32 cached_has_bits = 0;
6150 (void) cached_has_bits;
6151
6152 if (from.logging_endpoint().size() > 0) {
6153
6154 logging_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_endpoint_);
6155 }
6156 if (from.logging_protocol().size() > 0) {
6157
6158 logging_protocol_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_protocol_);
6159 }
6160 if (from.has_device_uuid()) {
6161 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
6162 }
6163}
6164
6165void SetLoggingEndpointRequest::CopyFrom(const ::google::protobuf::Message& from) {
6166// @@protoc_insertion_point(generalized_copy_from_start:dmi.SetLoggingEndpointRequest)
6167 if (&from == this) return;
6168 Clear();
6169 MergeFrom(from);
6170}
6171
6172void SetLoggingEndpointRequest::CopyFrom(const SetLoggingEndpointRequest& from) {
6173// @@protoc_insertion_point(class_specific_copy_from_start:dmi.SetLoggingEndpointRequest)
6174 if (&from == this) return;
6175 Clear();
6176 MergeFrom(from);
6177}
6178
6179bool SetLoggingEndpointRequest::IsInitialized() const {
6180 return true;
6181}
6182
6183void SetLoggingEndpointRequest::Swap(SetLoggingEndpointRequest* other) {
6184 if (other == this) return;
6185 InternalSwap(other);
6186}
6187void SetLoggingEndpointRequest::InternalSwap(SetLoggingEndpointRequest* other) {
6188 using std::swap;
6189 _internal_metadata_.Swap(&other->_internal_metadata_);
6190 logging_endpoint_.Swap(&other->logging_endpoint_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6191 GetArenaNoVirtual());
6192 logging_protocol_.Swap(&other->logging_protocol_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6193 GetArenaNoVirtual());
6194 swap(device_uuid_, other->device_uuid_);
6195}
6196
6197::google::protobuf::Metadata SetLoggingEndpointRequest::GetMetadata() const {
6198 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
6199 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
6200}
6201
6202
6203// ===================================================================
6204
6205void SetRemoteEndpointResponse::InitAsDefaultInstance() {
6206}
6207class SetRemoteEndpointResponse::HasBitSetters {
6208 public:
6209};
6210
6211#if !defined(_MSC_VER) || _MSC_VER >= 1900
6212const int SetRemoteEndpointResponse::kStatusFieldNumber;
6213const int SetRemoteEndpointResponse::kReasonFieldNumber;
6214const int SetRemoteEndpointResponse::kReasonDetailFieldNumber;
6215#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
6216
6217SetRemoteEndpointResponse::SetRemoteEndpointResponse()
6218 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
6219 SharedCtor();
6220 // @@protoc_insertion_point(constructor:dmi.SetRemoteEndpointResponse)
6221}
6222SetRemoteEndpointResponse::SetRemoteEndpointResponse(const SetRemoteEndpointResponse& from)
6223 : ::google::protobuf::Message(),
6224 _internal_metadata_(nullptr) {
6225 _internal_metadata_.MergeFrom(from._internal_metadata_);
6226 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6227 if (from.reason_detail().size() > 0) {
6228 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
6229 }
6230 ::memcpy(&status_, &from.status_,
6231 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
6232 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
6233 // @@protoc_insertion_point(copy_constructor:dmi.SetRemoteEndpointResponse)
6234}
6235
6236void SetRemoteEndpointResponse::SharedCtor() {
6237 ::google::protobuf::internal::InitSCC(
6238 &scc_info_SetRemoteEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
6239 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6240 ::memset(&status_, 0, static_cast<size_t>(
6241 reinterpret_cast<char*>(&reason_) -
6242 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
6243}
6244
6245SetRemoteEndpointResponse::~SetRemoteEndpointResponse() {
6246 // @@protoc_insertion_point(destructor:dmi.SetRemoteEndpointResponse)
6247 SharedDtor();
6248}
6249
6250void SetRemoteEndpointResponse::SharedDtor() {
6251 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6252}
6253
6254void SetRemoteEndpointResponse::SetCachedSize(int size) const {
6255 _cached_size_.Set(size);
6256}
6257const SetRemoteEndpointResponse& SetRemoteEndpointResponse::default_instance() {
6258 ::google::protobuf::internal::InitSCC(&::scc_info_SetRemoteEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
6259 return *internal_default_instance();
6260}
6261
6262
6263void SetRemoteEndpointResponse::Clear() {
6264// @@protoc_insertion_point(message_clear_start:dmi.SetRemoteEndpointResponse)
6265 ::google::protobuf::uint32 cached_has_bits = 0;
6266 // Prevent compiler warnings about cached_has_bits being unused
6267 (void) cached_has_bits;
6268
6269 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6270 ::memset(&status_, 0, static_cast<size_t>(
6271 reinterpret_cast<char*>(&reason_) -
6272 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
6273 _internal_metadata_.Clear();
6274}
6275
6276#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6277const char* SetRemoteEndpointResponse::_InternalParse(const char* begin, const char* end, void* object,
6278 ::google::protobuf::internal::ParseContext* ctx) {
6279 auto msg = static_cast<SetRemoteEndpointResponse*>(object);
6280 ::google::protobuf::int32 size; (void)size;
6281 int depth; (void)depth;
6282 ::google::protobuf::uint32 tag;
6283 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
6284 auto ptr = begin;
6285 while (ptr < end) {
6286 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
6287 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6288 switch (tag >> 3) {
6289 // .dmi.Status status = 1;
6290 case 1: {
6291 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
6292 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
6293 msg->set_status(static_cast<::dmi::Status>(val));
6294 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6295 break;
6296 }
6297 // .dmi.SetRemoteEndpointResponse.Reason reason = 2;
6298 case 2: {
6299 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
6300 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
6301 msg->set_reason(static_cast<::dmi::SetRemoteEndpointResponse_Reason>(val));
6302 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6303 break;
6304 }
6305 // string reason_detail = 3;
6306 case 3: {
6307 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
6308 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
6309 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6310 ctx->extra_parse_data().SetFieldName("dmi.SetRemoteEndpointResponse.reason_detail");
6311 object = msg->mutable_reason_detail();
6312 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
6313 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
6314 goto string_till_end;
6315 }
6316 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
6317 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
6318 ptr += size;
6319 break;
6320 }
6321 default: {
6322 handle_unusual:
6323 if ((tag & 7) == 4 || tag == 0) {
6324 ctx->EndGroup(tag);
6325 return ptr;
6326 }
6327 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
6328 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
6329 ptr = res.first;
6330 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
6331 if (res.second) return ptr;
6332 }
6333 } // switch
6334 } // while
6335 return ptr;
6336string_till_end:
6337 static_cast<::std::string*>(object)->clear();
6338 static_cast<::std::string*>(object)->reserve(size);
6339 goto len_delim_till_end;
6340len_delim_till_end:
6341 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
6342 {parser_till_end, object}, size);
6343}
6344#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6345bool SetRemoteEndpointResponse::MergePartialFromCodedStream(
6346 ::google::protobuf::io::CodedInputStream* input) {
6347#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
6348 ::google::protobuf::uint32 tag;
6349 // @@protoc_insertion_point(parse_start:dmi.SetRemoteEndpointResponse)
6350 for (;;) {
6351 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6352 tag = p.first;
6353 if (!p.second) goto handle_unusual;
6354 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6355 // .dmi.Status status = 1;
6356 case 1: {
6357 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
6358 int value = 0;
6359 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6360 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
6361 input, &value)));
6362 set_status(static_cast< ::dmi::Status >(value));
6363 } else {
6364 goto handle_unusual;
6365 }
6366 break;
6367 }
6368
6369 // .dmi.SetRemoteEndpointResponse.Reason reason = 2;
6370 case 2: {
6371 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
6372 int value = 0;
6373 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6374 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
6375 input, &value)));
6376 set_reason(static_cast< ::dmi::SetRemoteEndpointResponse_Reason >(value));
6377 } else {
6378 goto handle_unusual;
6379 }
6380 break;
6381 }
6382
6383 // string reason_detail = 3;
6384 case 3: {
6385 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
6386 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6387 input, this->mutable_reason_detail()));
6388 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6389 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
6390 ::google::protobuf::internal::WireFormatLite::PARSE,
6391 "dmi.SetRemoteEndpointResponse.reason_detail"));
6392 } else {
6393 goto handle_unusual;
6394 }
6395 break;
6396 }
6397
6398 default: {
6399 handle_unusual:
6400 if (tag == 0) {
6401 goto success;
6402 }
6403 DO_(::google::protobuf::internal::WireFormat::SkipField(
6404 input, tag, _internal_metadata_.mutable_unknown_fields()));
6405 break;
6406 }
6407 }
6408 }
6409success:
6410 // @@protoc_insertion_point(parse_success:dmi.SetRemoteEndpointResponse)
6411 return true;
6412failure:
6413 // @@protoc_insertion_point(parse_failure:dmi.SetRemoteEndpointResponse)
6414 return false;
6415#undef DO_
6416}
6417#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6418
6419void SetRemoteEndpointResponse::SerializeWithCachedSizes(
6420 ::google::protobuf::io::CodedOutputStream* output) const {
6421 // @@protoc_insertion_point(serialize_start:dmi.SetRemoteEndpointResponse)
6422 ::google::protobuf::uint32 cached_has_bits = 0;
6423 (void) cached_has_bits;
6424
6425 // .dmi.Status status = 1;
6426 if (this->status() != 0) {
6427 ::google::protobuf::internal::WireFormatLite::WriteEnum(
6428 1, this->status(), output);
6429 }
6430
6431 // .dmi.SetRemoteEndpointResponse.Reason reason = 2;
6432 if (this->reason() != 0) {
6433 ::google::protobuf::internal::WireFormatLite::WriteEnum(
6434 2, this->reason(), output);
6435 }
6436
6437 // string reason_detail = 3;
6438 if (this->reason_detail().size() > 0) {
6439 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6440 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
6441 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6442 "dmi.SetRemoteEndpointResponse.reason_detail");
6443 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6444 3, this->reason_detail(), output);
6445 }
6446
6447 if (_internal_metadata_.have_unknown_fields()) {
6448 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6449 _internal_metadata_.unknown_fields(), output);
6450 }
6451 // @@protoc_insertion_point(serialize_end:dmi.SetRemoteEndpointResponse)
6452}
6453
6454::google::protobuf::uint8* SetRemoteEndpointResponse::InternalSerializeWithCachedSizesToArray(
6455 ::google::protobuf::uint8* target) const {
6456 // @@protoc_insertion_point(serialize_to_array_start:dmi.SetRemoteEndpointResponse)
6457 ::google::protobuf::uint32 cached_has_bits = 0;
6458 (void) cached_has_bits;
6459
6460 // .dmi.Status status = 1;
6461 if (this->status() != 0) {
6462 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
6463 1, this->status(), target);
6464 }
6465
6466 // .dmi.SetRemoteEndpointResponse.Reason reason = 2;
6467 if (this->reason() != 0) {
6468 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
6469 2, this->reason(), target);
6470 }
6471
6472 // string reason_detail = 3;
6473 if (this->reason_detail().size() > 0) {
6474 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6475 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
6476 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6477 "dmi.SetRemoteEndpointResponse.reason_detail");
6478 target =
6479 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6480 3, this->reason_detail(), target);
6481 }
6482
6483 if (_internal_metadata_.have_unknown_fields()) {
6484 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6485 _internal_metadata_.unknown_fields(), target);
6486 }
6487 // @@protoc_insertion_point(serialize_to_array_end:dmi.SetRemoteEndpointResponse)
6488 return target;
6489}
6490
6491size_t SetRemoteEndpointResponse::ByteSizeLong() const {
6492// @@protoc_insertion_point(message_byte_size_start:dmi.SetRemoteEndpointResponse)
6493 size_t total_size = 0;
6494
6495 if (_internal_metadata_.have_unknown_fields()) {
6496 total_size +=
6497 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6498 _internal_metadata_.unknown_fields());
6499 }
6500 ::google::protobuf::uint32 cached_has_bits = 0;
6501 // Prevent compiler warnings about cached_has_bits being unused
6502 (void) cached_has_bits;
6503
6504 // string reason_detail = 3;
6505 if (this->reason_detail().size() > 0) {
6506 total_size += 1 +
6507 ::google::protobuf::internal::WireFormatLite::StringSize(
6508 this->reason_detail());
6509 }
6510
6511 // .dmi.Status status = 1;
6512 if (this->status() != 0) {
6513 total_size += 1 +
6514 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
6515 }
6516
6517 // .dmi.SetRemoteEndpointResponse.Reason reason = 2;
6518 if (this->reason() != 0) {
6519 total_size += 1 +
6520 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
6521 }
6522
6523 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
6524 SetCachedSize(cached_size);
6525 return total_size;
6526}
6527
6528void SetRemoteEndpointResponse::MergeFrom(const ::google::protobuf::Message& from) {
6529// @@protoc_insertion_point(generalized_merge_from_start:dmi.SetRemoteEndpointResponse)
6530 GOOGLE_DCHECK_NE(&from, this);
6531 const SetRemoteEndpointResponse* source =
6532 ::google::protobuf::DynamicCastToGenerated<SetRemoteEndpointResponse>(
6533 &from);
6534 if (source == nullptr) {
6535 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.SetRemoteEndpointResponse)
6536 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6537 } else {
6538 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.SetRemoteEndpointResponse)
6539 MergeFrom(*source);
6540 }
6541}
6542
6543void SetRemoteEndpointResponse::MergeFrom(const SetRemoteEndpointResponse& from) {
6544// @@protoc_insertion_point(class_specific_merge_from_start:dmi.SetRemoteEndpointResponse)
6545 GOOGLE_DCHECK_NE(&from, this);
6546 _internal_metadata_.MergeFrom(from._internal_metadata_);
6547 ::google::protobuf::uint32 cached_has_bits = 0;
6548 (void) cached_has_bits;
6549
6550 if (from.reason_detail().size() > 0) {
6551
6552 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
6553 }
6554 if (from.status() != 0) {
6555 set_status(from.status());
6556 }
6557 if (from.reason() != 0) {
6558 set_reason(from.reason());
6559 }
6560}
6561
6562void SetRemoteEndpointResponse::CopyFrom(const ::google::protobuf::Message& from) {
6563// @@protoc_insertion_point(generalized_copy_from_start:dmi.SetRemoteEndpointResponse)
6564 if (&from == this) return;
6565 Clear();
6566 MergeFrom(from);
6567}
6568
6569void SetRemoteEndpointResponse::CopyFrom(const SetRemoteEndpointResponse& from) {
6570// @@protoc_insertion_point(class_specific_copy_from_start:dmi.SetRemoteEndpointResponse)
6571 if (&from == this) return;
6572 Clear();
6573 MergeFrom(from);
6574}
6575
6576bool SetRemoteEndpointResponse::IsInitialized() const {
6577 return true;
6578}
6579
6580void SetRemoteEndpointResponse::Swap(SetRemoteEndpointResponse* other) {
6581 if (other == this) return;
6582 InternalSwap(other);
6583}
6584void SetRemoteEndpointResponse::InternalSwap(SetRemoteEndpointResponse* other) {
6585 using std::swap;
6586 _internal_metadata_.Swap(&other->_internal_metadata_);
6587 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6588 GetArenaNoVirtual());
6589 swap(status_, other->status_);
6590 swap(reason_, other->reason_);
6591}
6592
6593::google::protobuf::Metadata SetRemoteEndpointResponse::GetMetadata() const {
6594 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
6595 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
6596}
6597
6598
6599// ===================================================================
6600
6601void GetLoggingEndpointResponse::InitAsDefaultInstance() {
6602}
6603class GetLoggingEndpointResponse::HasBitSetters {
6604 public:
6605};
6606
6607#if !defined(_MSC_VER) || _MSC_VER >= 1900
6608const int GetLoggingEndpointResponse::kStatusFieldNumber;
6609const int GetLoggingEndpointResponse::kReasonFieldNumber;
6610const int GetLoggingEndpointResponse::kLoggingEndpointFieldNumber;
6611const int GetLoggingEndpointResponse::kLoggingProtocolFieldNumber;
6612const int GetLoggingEndpointResponse::kReasonDetailFieldNumber;
6613#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
6614
6615GetLoggingEndpointResponse::GetLoggingEndpointResponse()
6616 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
6617 SharedCtor();
6618 // @@protoc_insertion_point(constructor:dmi.GetLoggingEndpointResponse)
6619}
6620GetLoggingEndpointResponse::GetLoggingEndpointResponse(const GetLoggingEndpointResponse& from)
6621 : ::google::protobuf::Message(),
6622 _internal_metadata_(nullptr) {
6623 _internal_metadata_.MergeFrom(from._internal_metadata_);
6624 logging_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6625 if (from.logging_endpoint().size() > 0) {
6626 logging_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_endpoint_);
6627 }
6628 logging_protocol_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6629 if (from.logging_protocol().size() > 0) {
6630 logging_protocol_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_protocol_);
6631 }
6632 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6633 if (from.reason_detail().size() > 0) {
6634 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
6635 }
6636 ::memcpy(&status_, &from.status_,
6637 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
6638 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
6639 // @@protoc_insertion_point(copy_constructor:dmi.GetLoggingEndpointResponse)
6640}
6641
6642void GetLoggingEndpointResponse::SharedCtor() {
6643 ::google::protobuf::internal::InitSCC(
6644 &scc_info_GetLoggingEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
6645 logging_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6646 logging_protocol_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6647 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6648 ::memset(&status_, 0, static_cast<size_t>(
6649 reinterpret_cast<char*>(&reason_) -
6650 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
6651}
6652
6653GetLoggingEndpointResponse::~GetLoggingEndpointResponse() {
6654 // @@protoc_insertion_point(destructor:dmi.GetLoggingEndpointResponse)
6655 SharedDtor();
6656}
6657
6658void GetLoggingEndpointResponse::SharedDtor() {
6659 logging_endpoint_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6660 logging_protocol_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6661 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6662}
6663
6664void GetLoggingEndpointResponse::SetCachedSize(int size) const {
6665 _cached_size_.Set(size);
6666}
6667const GetLoggingEndpointResponse& GetLoggingEndpointResponse::default_instance() {
6668 ::google::protobuf::internal::InitSCC(&::scc_info_GetLoggingEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
6669 return *internal_default_instance();
6670}
6671
6672
6673void GetLoggingEndpointResponse::Clear() {
6674// @@protoc_insertion_point(message_clear_start:dmi.GetLoggingEndpointResponse)
6675 ::google::protobuf::uint32 cached_has_bits = 0;
6676 // Prevent compiler warnings about cached_has_bits being unused
6677 (void) cached_has_bits;
6678
6679 logging_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6680 logging_protocol_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6681 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6682 ::memset(&status_, 0, static_cast<size_t>(
6683 reinterpret_cast<char*>(&reason_) -
6684 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
6685 _internal_metadata_.Clear();
6686}
6687
6688#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6689const char* GetLoggingEndpointResponse::_InternalParse(const char* begin, const char* end, void* object,
6690 ::google::protobuf::internal::ParseContext* ctx) {
6691 auto msg = static_cast<GetLoggingEndpointResponse*>(object);
6692 ::google::protobuf::int32 size; (void)size;
6693 int depth; (void)depth;
6694 ::google::protobuf::uint32 tag;
6695 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
6696 auto ptr = begin;
6697 while (ptr < end) {
6698 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
6699 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6700 switch (tag >> 3) {
6701 // .dmi.Status status = 1;
6702 case 1: {
6703 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
6704 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
6705 msg->set_status(static_cast<::dmi::Status>(val));
6706 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6707 break;
6708 }
6709 // .dmi.GetLoggingEndpointResponse.Reason reason = 2;
6710 case 2: {
6711 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
6712 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
6713 msg->set_reason(static_cast<::dmi::GetLoggingEndpointResponse_Reason>(val));
6714 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6715 break;
6716 }
6717 // string logging_endpoint = 3;
6718 case 3: {
6719 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
6720 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
6721 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6722 ctx->extra_parse_data().SetFieldName("dmi.GetLoggingEndpointResponse.logging_endpoint");
6723 object = msg->mutable_logging_endpoint();
6724 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
6725 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
6726 goto string_till_end;
6727 }
6728 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
6729 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
6730 ptr += size;
6731 break;
6732 }
6733 // string logging_protocol = 4;
6734 case 4: {
6735 if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual;
6736 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
6737 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6738 ctx->extra_parse_data().SetFieldName("dmi.GetLoggingEndpointResponse.logging_protocol");
6739 object = msg->mutable_logging_protocol();
6740 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
6741 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
6742 goto string_till_end;
6743 }
6744 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
6745 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
6746 ptr += size;
6747 break;
6748 }
6749 // string reason_detail = 5;
6750 case 5: {
6751 if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual;
6752 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
6753 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6754 ctx->extra_parse_data().SetFieldName("dmi.GetLoggingEndpointResponse.reason_detail");
6755 object = msg->mutable_reason_detail();
6756 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
6757 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
6758 goto string_till_end;
6759 }
6760 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
6761 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
6762 ptr += size;
6763 break;
6764 }
6765 default: {
6766 handle_unusual:
6767 if ((tag & 7) == 4 || tag == 0) {
6768 ctx->EndGroup(tag);
6769 return ptr;
6770 }
6771 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
6772 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
6773 ptr = res.first;
6774 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
6775 if (res.second) return ptr;
6776 }
6777 } // switch
6778 } // while
6779 return ptr;
6780string_till_end:
6781 static_cast<::std::string*>(object)->clear();
6782 static_cast<::std::string*>(object)->reserve(size);
6783 goto len_delim_till_end;
6784len_delim_till_end:
6785 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
6786 {parser_till_end, object}, size);
6787}
6788#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6789bool GetLoggingEndpointResponse::MergePartialFromCodedStream(
6790 ::google::protobuf::io::CodedInputStream* input) {
6791#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
6792 ::google::protobuf::uint32 tag;
6793 // @@protoc_insertion_point(parse_start:dmi.GetLoggingEndpointResponse)
6794 for (;;) {
6795 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6796 tag = p.first;
6797 if (!p.second) goto handle_unusual;
6798 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6799 // .dmi.Status status = 1;
6800 case 1: {
6801 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
6802 int value = 0;
6803 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6804 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
6805 input, &value)));
6806 set_status(static_cast< ::dmi::Status >(value));
6807 } else {
6808 goto handle_unusual;
6809 }
6810 break;
6811 }
6812
6813 // .dmi.GetLoggingEndpointResponse.Reason reason = 2;
6814 case 2: {
6815 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
6816 int value = 0;
6817 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6818 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
6819 input, &value)));
6820 set_reason(static_cast< ::dmi::GetLoggingEndpointResponse_Reason >(value));
6821 } else {
6822 goto handle_unusual;
6823 }
6824 break;
6825 }
6826
6827 // string logging_endpoint = 3;
6828 case 3: {
6829 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
6830 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6831 input, this->mutable_logging_endpoint()));
6832 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6833 this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()),
6834 ::google::protobuf::internal::WireFormatLite::PARSE,
6835 "dmi.GetLoggingEndpointResponse.logging_endpoint"));
6836 } else {
6837 goto handle_unusual;
6838 }
6839 break;
6840 }
6841
6842 // string logging_protocol = 4;
6843 case 4: {
6844 if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
6845 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6846 input, this->mutable_logging_protocol()));
6847 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6848 this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()),
6849 ::google::protobuf::internal::WireFormatLite::PARSE,
6850 "dmi.GetLoggingEndpointResponse.logging_protocol"));
6851 } else {
6852 goto handle_unusual;
6853 }
6854 break;
6855 }
6856
6857 // string reason_detail = 5;
6858 case 5: {
6859 if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) {
6860 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6861 input, this->mutable_reason_detail()));
6862 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6863 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
6864 ::google::protobuf::internal::WireFormatLite::PARSE,
6865 "dmi.GetLoggingEndpointResponse.reason_detail"));
6866 } else {
6867 goto handle_unusual;
6868 }
6869 break;
6870 }
6871
6872 default: {
6873 handle_unusual:
6874 if (tag == 0) {
6875 goto success;
6876 }
6877 DO_(::google::protobuf::internal::WireFormat::SkipField(
6878 input, tag, _internal_metadata_.mutable_unknown_fields()));
6879 break;
6880 }
6881 }
6882 }
6883success:
6884 // @@protoc_insertion_point(parse_success:dmi.GetLoggingEndpointResponse)
6885 return true;
6886failure:
6887 // @@protoc_insertion_point(parse_failure:dmi.GetLoggingEndpointResponse)
6888 return false;
6889#undef DO_
6890}
6891#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6892
6893void GetLoggingEndpointResponse::SerializeWithCachedSizes(
6894 ::google::protobuf::io::CodedOutputStream* output) const {
6895 // @@protoc_insertion_point(serialize_start:dmi.GetLoggingEndpointResponse)
6896 ::google::protobuf::uint32 cached_has_bits = 0;
6897 (void) cached_has_bits;
6898
6899 // .dmi.Status status = 1;
6900 if (this->status() != 0) {
6901 ::google::protobuf::internal::WireFormatLite::WriteEnum(
6902 1, this->status(), output);
6903 }
6904
6905 // .dmi.GetLoggingEndpointResponse.Reason reason = 2;
6906 if (this->reason() != 0) {
6907 ::google::protobuf::internal::WireFormatLite::WriteEnum(
6908 2, this->reason(), output);
6909 }
6910
6911 // string logging_endpoint = 3;
6912 if (this->logging_endpoint().size() > 0) {
6913 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6914 this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()),
6915 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6916 "dmi.GetLoggingEndpointResponse.logging_endpoint");
6917 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6918 3, this->logging_endpoint(), output);
6919 }
6920
6921 // string logging_protocol = 4;
6922 if (this->logging_protocol().size() > 0) {
6923 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6924 this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()),
6925 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6926 "dmi.GetLoggingEndpointResponse.logging_protocol");
6927 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6928 4, this->logging_protocol(), output);
6929 }
6930
6931 // string reason_detail = 5;
6932 if (this->reason_detail().size() > 0) {
6933 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6934 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
6935 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6936 "dmi.GetLoggingEndpointResponse.reason_detail");
6937 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6938 5, this->reason_detail(), output);
6939 }
6940
6941 if (_internal_metadata_.have_unknown_fields()) {
6942 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6943 _internal_metadata_.unknown_fields(), output);
6944 }
6945 // @@protoc_insertion_point(serialize_end:dmi.GetLoggingEndpointResponse)
6946}
6947
6948::google::protobuf::uint8* GetLoggingEndpointResponse::InternalSerializeWithCachedSizesToArray(
6949 ::google::protobuf::uint8* target) const {
6950 // @@protoc_insertion_point(serialize_to_array_start:dmi.GetLoggingEndpointResponse)
6951 ::google::protobuf::uint32 cached_has_bits = 0;
6952 (void) cached_has_bits;
6953
6954 // .dmi.Status status = 1;
6955 if (this->status() != 0) {
6956 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
6957 1, this->status(), target);
6958 }
6959
6960 // .dmi.GetLoggingEndpointResponse.Reason reason = 2;
6961 if (this->reason() != 0) {
6962 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
6963 2, this->reason(), target);
6964 }
6965
6966 // string logging_endpoint = 3;
6967 if (this->logging_endpoint().size() > 0) {
6968 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6969 this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()),
6970 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6971 "dmi.GetLoggingEndpointResponse.logging_endpoint");
6972 target =
6973 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6974 3, this->logging_endpoint(), target);
6975 }
6976
6977 // string logging_protocol = 4;
6978 if (this->logging_protocol().size() > 0) {
6979 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6980 this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()),
6981 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6982 "dmi.GetLoggingEndpointResponse.logging_protocol");
6983 target =
6984 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6985 4, this->logging_protocol(), target);
6986 }
6987
6988 // string reason_detail = 5;
6989 if (this->reason_detail().size() > 0) {
6990 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6991 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
6992 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6993 "dmi.GetLoggingEndpointResponse.reason_detail");
6994 target =
6995 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6996 5, this->reason_detail(), target);
6997 }
6998
6999 if (_internal_metadata_.have_unknown_fields()) {
7000 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
7001 _internal_metadata_.unknown_fields(), target);
7002 }
7003 // @@protoc_insertion_point(serialize_to_array_end:dmi.GetLoggingEndpointResponse)
7004 return target;
7005}
7006
7007size_t GetLoggingEndpointResponse::ByteSizeLong() const {
7008// @@protoc_insertion_point(message_byte_size_start:dmi.GetLoggingEndpointResponse)
7009 size_t total_size = 0;
7010
7011 if (_internal_metadata_.have_unknown_fields()) {
7012 total_size +=
7013 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7014 _internal_metadata_.unknown_fields());
7015 }
7016 ::google::protobuf::uint32 cached_has_bits = 0;
7017 // Prevent compiler warnings about cached_has_bits being unused
7018 (void) cached_has_bits;
7019
7020 // string logging_endpoint = 3;
7021 if (this->logging_endpoint().size() > 0) {
7022 total_size += 1 +
7023 ::google::protobuf::internal::WireFormatLite::StringSize(
7024 this->logging_endpoint());
7025 }
7026
7027 // string logging_protocol = 4;
7028 if (this->logging_protocol().size() > 0) {
7029 total_size += 1 +
7030 ::google::protobuf::internal::WireFormatLite::StringSize(
7031 this->logging_protocol());
7032 }
7033
7034 // string reason_detail = 5;
7035 if (this->reason_detail().size() > 0) {
7036 total_size += 1 +
7037 ::google::protobuf::internal::WireFormatLite::StringSize(
7038 this->reason_detail());
7039 }
7040
7041 // .dmi.Status status = 1;
7042 if (this->status() != 0) {
7043 total_size += 1 +
7044 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
7045 }
7046
7047 // .dmi.GetLoggingEndpointResponse.Reason reason = 2;
7048 if (this->reason() != 0) {
7049 total_size += 1 +
7050 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
7051 }
7052
7053 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
7054 SetCachedSize(cached_size);
7055 return total_size;
7056}
7057
7058void GetLoggingEndpointResponse::MergeFrom(const ::google::protobuf::Message& from) {
7059// @@protoc_insertion_point(generalized_merge_from_start:dmi.GetLoggingEndpointResponse)
7060 GOOGLE_DCHECK_NE(&from, this);
7061 const GetLoggingEndpointResponse* source =
7062 ::google::protobuf::DynamicCastToGenerated<GetLoggingEndpointResponse>(
7063 &from);
7064 if (source == nullptr) {
7065 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.GetLoggingEndpointResponse)
7066 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7067 } else {
7068 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.GetLoggingEndpointResponse)
7069 MergeFrom(*source);
7070 }
7071}
7072
7073void GetLoggingEndpointResponse::MergeFrom(const GetLoggingEndpointResponse& from) {
7074// @@protoc_insertion_point(class_specific_merge_from_start:dmi.GetLoggingEndpointResponse)
7075 GOOGLE_DCHECK_NE(&from, this);
7076 _internal_metadata_.MergeFrom(from._internal_metadata_);
7077 ::google::protobuf::uint32 cached_has_bits = 0;
7078 (void) cached_has_bits;
7079
7080 if (from.logging_endpoint().size() > 0) {
7081
7082 logging_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_endpoint_);
7083 }
7084 if (from.logging_protocol().size() > 0) {
7085
7086 logging_protocol_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_protocol_);
7087 }
7088 if (from.reason_detail().size() > 0) {
7089
7090 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
7091 }
7092 if (from.status() != 0) {
7093 set_status(from.status());
7094 }
7095 if (from.reason() != 0) {
7096 set_reason(from.reason());
7097 }
7098}
7099
7100void GetLoggingEndpointResponse::CopyFrom(const ::google::protobuf::Message& from) {
7101// @@protoc_insertion_point(generalized_copy_from_start:dmi.GetLoggingEndpointResponse)
7102 if (&from == this) return;
7103 Clear();
7104 MergeFrom(from);
7105}
7106
7107void GetLoggingEndpointResponse::CopyFrom(const GetLoggingEndpointResponse& from) {
7108// @@protoc_insertion_point(class_specific_copy_from_start:dmi.GetLoggingEndpointResponse)
7109 if (&from == this) return;
7110 Clear();
7111 MergeFrom(from);
7112}
7113
7114bool GetLoggingEndpointResponse::IsInitialized() const {
7115 return true;
7116}
7117
7118void GetLoggingEndpointResponse::Swap(GetLoggingEndpointResponse* other) {
7119 if (other == this) return;
7120 InternalSwap(other);
7121}
7122void GetLoggingEndpointResponse::InternalSwap(GetLoggingEndpointResponse* other) {
7123 using std::swap;
7124 _internal_metadata_.Swap(&other->_internal_metadata_);
7125 logging_endpoint_.Swap(&other->logging_endpoint_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
7126 GetArenaNoVirtual());
7127 logging_protocol_.Swap(&other->logging_protocol_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
7128 GetArenaNoVirtual());
7129 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
7130 GetArenaNoVirtual());
7131 swap(status_, other->status_);
7132 swap(reason_, other->reason_);
7133}
7134
7135::google::protobuf::Metadata GetLoggingEndpointResponse::GetMetadata() const {
7136 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
7137 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
7138}
7139
7140
7141// ===================================================================
7142
7143void SetMsgBusEndpointRequest::InitAsDefaultInstance() {
7144}
7145class SetMsgBusEndpointRequest::HasBitSetters {
7146 public:
7147};
7148
7149#if !defined(_MSC_VER) || _MSC_VER >= 1900
7150const int SetMsgBusEndpointRequest::kMsgbusEndpointFieldNumber;
7151#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
7152
7153SetMsgBusEndpointRequest::SetMsgBusEndpointRequest()
7154 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
7155 SharedCtor();
7156 // @@protoc_insertion_point(constructor:dmi.SetMsgBusEndpointRequest)
7157}
7158SetMsgBusEndpointRequest::SetMsgBusEndpointRequest(const SetMsgBusEndpointRequest& from)
7159 : ::google::protobuf::Message(),
7160 _internal_metadata_(nullptr) {
7161 _internal_metadata_.MergeFrom(from._internal_metadata_);
7162 msgbus_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7163 if (from.msgbus_endpoint().size() > 0) {
7164 msgbus_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.msgbus_endpoint_);
7165 }
7166 // @@protoc_insertion_point(copy_constructor:dmi.SetMsgBusEndpointRequest)
7167}
7168
7169void SetMsgBusEndpointRequest::SharedCtor() {
7170 ::google::protobuf::internal::InitSCC(
7171 &scc_info_SetMsgBusEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
7172 msgbus_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7173}
7174
7175SetMsgBusEndpointRequest::~SetMsgBusEndpointRequest() {
7176 // @@protoc_insertion_point(destructor:dmi.SetMsgBusEndpointRequest)
7177 SharedDtor();
7178}
7179
7180void SetMsgBusEndpointRequest::SharedDtor() {
7181 msgbus_endpoint_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7182}
7183
7184void SetMsgBusEndpointRequest::SetCachedSize(int size) const {
7185 _cached_size_.Set(size);
7186}
7187const SetMsgBusEndpointRequest& SetMsgBusEndpointRequest::default_instance() {
7188 ::google::protobuf::internal::InitSCC(&::scc_info_SetMsgBusEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
7189 return *internal_default_instance();
7190}
7191
7192
7193void SetMsgBusEndpointRequest::Clear() {
7194// @@protoc_insertion_point(message_clear_start:dmi.SetMsgBusEndpointRequest)
7195 ::google::protobuf::uint32 cached_has_bits = 0;
7196 // Prevent compiler warnings about cached_has_bits being unused
7197 (void) cached_has_bits;
7198
7199 msgbus_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7200 _internal_metadata_.Clear();
7201}
7202
7203#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7204const char* SetMsgBusEndpointRequest::_InternalParse(const char* begin, const char* end, void* object,
7205 ::google::protobuf::internal::ParseContext* ctx) {
7206 auto msg = static_cast<SetMsgBusEndpointRequest*>(object);
7207 ::google::protobuf::int32 size; (void)size;
7208 int depth; (void)depth;
7209 ::google::protobuf::uint32 tag;
7210 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
7211 auto ptr = begin;
7212 while (ptr < end) {
7213 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
7214 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7215 switch (tag >> 3) {
7216 // string msgbus_endpoint = 1;
7217 case 1: {
7218 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
7219 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
7220 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7221 ctx->extra_parse_data().SetFieldName("dmi.SetMsgBusEndpointRequest.msgbus_endpoint");
7222 object = msg->mutable_msgbus_endpoint();
7223 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
7224 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
7225 goto string_till_end;
7226 }
7227 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
7228 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
7229 ptr += size;
7230 break;
7231 }
7232 default: {
7233 handle_unusual:
7234 if ((tag & 7) == 4 || tag == 0) {
7235 ctx->EndGroup(tag);
7236 return ptr;
7237 }
7238 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
7239 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
7240 ptr = res.first;
7241 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
7242 if (res.second) return ptr;
7243 }
7244 } // switch
7245 } // while
7246 return ptr;
7247string_till_end:
7248 static_cast<::std::string*>(object)->clear();
7249 static_cast<::std::string*>(object)->reserve(size);
7250 goto len_delim_till_end;
7251len_delim_till_end:
7252 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
7253 {parser_till_end, object}, size);
7254}
7255#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7256bool SetMsgBusEndpointRequest::MergePartialFromCodedStream(
7257 ::google::protobuf::io::CodedInputStream* input) {
7258#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
7259 ::google::protobuf::uint32 tag;
7260 // @@protoc_insertion_point(parse_start:dmi.SetMsgBusEndpointRequest)
7261 for (;;) {
7262 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
7263 tag = p.first;
7264 if (!p.second) goto handle_unusual;
7265 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7266 // string msgbus_endpoint = 1;
7267 case 1: {
7268 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
7269 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7270 input, this->mutable_msgbus_endpoint()));
7271 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7272 this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()),
7273 ::google::protobuf::internal::WireFormatLite::PARSE,
7274 "dmi.SetMsgBusEndpointRequest.msgbus_endpoint"));
7275 } else {
7276 goto handle_unusual;
7277 }
7278 break;
7279 }
7280
7281 default: {
7282 handle_unusual:
7283 if (tag == 0) {
7284 goto success;
7285 }
7286 DO_(::google::protobuf::internal::WireFormat::SkipField(
7287 input, tag, _internal_metadata_.mutable_unknown_fields()));
7288 break;
7289 }
7290 }
7291 }
7292success:
7293 // @@protoc_insertion_point(parse_success:dmi.SetMsgBusEndpointRequest)
7294 return true;
7295failure:
7296 // @@protoc_insertion_point(parse_failure:dmi.SetMsgBusEndpointRequest)
7297 return false;
7298#undef DO_
7299}
7300#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7301
7302void SetMsgBusEndpointRequest::SerializeWithCachedSizes(
7303 ::google::protobuf::io::CodedOutputStream* output) const {
7304 // @@protoc_insertion_point(serialize_start:dmi.SetMsgBusEndpointRequest)
7305 ::google::protobuf::uint32 cached_has_bits = 0;
7306 (void) cached_has_bits;
7307
7308 // string msgbus_endpoint = 1;
7309 if (this->msgbus_endpoint().size() > 0) {
7310 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7311 this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()),
7312 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7313 "dmi.SetMsgBusEndpointRequest.msgbus_endpoint");
7314 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7315 1, this->msgbus_endpoint(), output);
7316 }
7317
7318 if (_internal_metadata_.have_unknown_fields()) {
7319 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
7320 _internal_metadata_.unknown_fields(), output);
7321 }
7322 // @@protoc_insertion_point(serialize_end:dmi.SetMsgBusEndpointRequest)
7323}
7324
7325::google::protobuf::uint8* SetMsgBusEndpointRequest::InternalSerializeWithCachedSizesToArray(
7326 ::google::protobuf::uint8* target) const {
7327 // @@protoc_insertion_point(serialize_to_array_start:dmi.SetMsgBusEndpointRequest)
7328 ::google::protobuf::uint32 cached_has_bits = 0;
7329 (void) cached_has_bits;
7330
7331 // string msgbus_endpoint = 1;
7332 if (this->msgbus_endpoint().size() > 0) {
7333 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7334 this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()),
7335 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7336 "dmi.SetMsgBusEndpointRequest.msgbus_endpoint");
7337 target =
7338 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7339 1, this->msgbus_endpoint(), target);
7340 }
7341
7342 if (_internal_metadata_.have_unknown_fields()) {
7343 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
7344 _internal_metadata_.unknown_fields(), target);
7345 }
7346 // @@protoc_insertion_point(serialize_to_array_end:dmi.SetMsgBusEndpointRequest)
7347 return target;
7348}
7349
7350size_t SetMsgBusEndpointRequest::ByteSizeLong() const {
7351// @@protoc_insertion_point(message_byte_size_start:dmi.SetMsgBusEndpointRequest)
7352 size_t total_size = 0;
7353
7354 if (_internal_metadata_.have_unknown_fields()) {
7355 total_size +=
7356 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7357 _internal_metadata_.unknown_fields());
7358 }
7359 ::google::protobuf::uint32 cached_has_bits = 0;
7360 // Prevent compiler warnings about cached_has_bits being unused
7361 (void) cached_has_bits;
7362
7363 // string msgbus_endpoint = 1;
7364 if (this->msgbus_endpoint().size() > 0) {
7365 total_size += 1 +
7366 ::google::protobuf::internal::WireFormatLite::StringSize(
7367 this->msgbus_endpoint());
7368 }
7369
7370 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
7371 SetCachedSize(cached_size);
7372 return total_size;
7373}
7374
7375void SetMsgBusEndpointRequest::MergeFrom(const ::google::protobuf::Message& from) {
7376// @@protoc_insertion_point(generalized_merge_from_start:dmi.SetMsgBusEndpointRequest)
7377 GOOGLE_DCHECK_NE(&from, this);
7378 const SetMsgBusEndpointRequest* source =
7379 ::google::protobuf::DynamicCastToGenerated<SetMsgBusEndpointRequest>(
7380 &from);
7381 if (source == nullptr) {
7382 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.SetMsgBusEndpointRequest)
7383 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7384 } else {
7385 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.SetMsgBusEndpointRequest)
7386 MergeFrom(*source);
7387 }
7388}
7389
7390void SetMsgBusEndpointRequest::MergeFrom(const SetMsgBusEndpointRequest& from) {
7391// @@protoc_insertion_point(class_specific_merge_from_start:dmi.SetMsgBusEndpointRequest)
7392 GOOGLE_DCHECK_NE(&from, this);
7393 _internal_metadata_.MergeFrom(from._internal_metadata_);
7394 ::google::protobuf::uint32 cached_has_bits = 0;
7395 (void) cached_has_bits;
7396
7397 if (from.msgbus_endpoint().size() > 0) {
7398
7399 msgbus_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.msgbus_endpoint_);
7400 }
7401}
7402
7403void SetMsgBusEndpointRequest::CopyFrom(const ::google::protobuf::Message& from) {
7404// @@protoc_insertion_point(generalized_copy_from_start:dmi.SetMsgBusEndpointRequest)
7405 if (&from == this) return;
7406 Clear();
7407 MergeFrom(from);
7408}
7409
7410void SetMsgBusEndpointRequest::CopyFrom(const SetMsgBusEndpointRequest& from) {
7411// @@protoc_insertion_point(class_specific_copy_from_start:dmi.SetMsgBusEndpointRequest)
7412 if (&from == this) return;
7413 Clear();
7414 MergeFrom(from);
7415}
7416
7417bool SetMsgBusEndpointRequest::IsInitialized() const {
7418 return true;
7419}
7420
7421void SetMsgBusEndpointRequest::Swap(SetMsgBusEndpointRequest* other) {
7422 if (other == this) return;
7423 InternalSwap(other);
7424}
7425void SetMsgBusEndpointRequest::InternalSwap(SetMsgBusEndpointRequest* other) {
7426 using std::swap;
7427 _internal_metadata_.Swap(&other->_internal_metadata_);
7428 msgbus_endpoint_.Swap(&other->msgbus_endpoint_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
7429 GetArenaNoVirtual());
7430}
7431
7432::google::protobuf::Metadata SetMsgBusEndpointRequest::GetMetadata() const {
7433 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
7434 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
7435}
7436
7437
7438// ===================================================================
7439
7440void GetMsgBusEndpointResponse::InitAsDefaultInstance() {
7441}
7442class GetMsgBusEndpointResponse::HasBitSetters {
7443 public:
7444};
7445
7446#if !defined(_MSC_VER) || _MSC_VER >= 1900
7447const int GetMsgBusEndpointResponse::kStatusFieldNumber;
7448const int GetMsgBusEndpointResponse::kReasonFieldNumber;
7449const int GetMsgBusEndpointResponse::kMsgbusEndpointFieldNumber;
7450const int GetMsgBusEndpointResponse::kReasonDetailFieldNumber;
7451#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
7452
7453GetMsgBusEndpointResponse::GetMsgBusEndpointResponse()
7454 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
7455 SharedCtor();
7456 // @@protoc_insertion_point(constructor:dmi.GetMsgBusEndpointResponse)
7457}
7458GetMsgBusEndpointResponse::GetMsgBusEndpointResponse(const GetMsgBusEndpointResponse& from)
7459 : ::google::protobuf::Message(),
7460 _internal_metadata_(nullptr) {
7461 _internal_metadata_.MergeFrom(from._internal_metadata_);
7462 msgbus_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7463 if (from.msgbus_endpoint().size() > 0) {
7464 msgbus_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.msgbus_endpoint_);
7465 }
7466 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7467 if (from.reason_detail().size() > 0) {
7468 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
7469 }
7470 ::memcpy(&status_, &from.status_,
7471 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
7472 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
7473 // @@protoc_insertion_point(copy_constructor:dmi.GetMsgBusEndpointResponse)
7474}
7475
7476void GetMsgBusEndpointResponse::SharedCtor() {
7477 ::google::protobuf::internal::InitSCC(
7478 &scc_info_GetMsgBusEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
7479 msgbus_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7480 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7481 ::memset(&status_, 0, static_cast<size_t>(
7482 reinterpret_cast<char*>(&reason_) -
7483 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
7484}
7485
7486GetMsgBusEndpointResponse::~GetMsgBusEndpointResponse() {
7487 // @@protoc_insertion_point(destructor:dmi.GetMsgBusEndpointResponse)
7488 SharedDtor();
7489}
7490
7491void GetMsgBusEndpointResponse::SharedDtor() {
7492 msgbus_endpoint_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7493 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7494}
7495
7496void GetMsgBusEndpointResponse::SetCachedSize(int size) const {
7497 _cached_size_.Set(size);
7498}
7499const GetMsgBusEndpointResponse& GetMsgBusEndpointResponse::default_instance() {
7500 ::google::protobuf::internal::InitSCC(&::scc_info_GetMsgBusEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
7501 return *internal_default_instance();
7502}
7503
7504
7505void GetMsgBusEndpointResponse::Clear() {
7506// @@protoc_insertion_point(message_clear_start:dmi.GetMsgBusEndpointResponse)
7507 ::google::protobuf::uint32 cached_has_bits = 0;
7508 // Prevent compiler warnings about cached_has_bits being unused
7509 (void) cached_has_bits;
7510
7511 msgbus_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7512 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7513 ::memset(&status_, 0, static_cast<size_t>(
7514 reinterpret_cast<char*>(&reason_) -
7515 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
7516 _internal_metadata_.Clear();
7517}
7518
7519#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7520const char* GetMsgBusEndpointResponse::_InternalParse(const char* begin, const char* end, void* object,
7521 ::google::protobuf::internal::ParseContext* ctx) {
7522 auto msg = static_cast<GetMsgBusEndpointResponse*>(object);
7523 ::google::protobuf::int32 size; (void)size;
7524 int depth; (void)depth;
7525 ::google::protobuf::uint32 tag;
7526 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
7527 auto ptr = begin;
7528 while (ptr < end) {
7529 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
7530 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7531 switch (tag >> 3) {
7532 // .dmi.Status status = 1;
7533 case 1: {
7534 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
7535 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
7536 msg->set_status(static_cast<::dmi::Status>(val));
7537 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7538 break;
7539 }
7540 // .dmi.GetMsgBusEndpointResponse.Reason reason = 2;
7541 case 2: {
7542 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
7543 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
7544 msg->set_reason(static_cast<::dmi::GetMsgBusEndpointResponse_Reason>(val));
7545 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7546 break;
7547 }
7548 // string msgbus_endpoint = 3;
7549 case 3: {
7550 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
7551 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
7552 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7553 ctx->extra_parse_data().SetFieldName("dmi.GetMsgBusEndpointResponse.msgbus_endpoint");
7554 object = msg->mutable_msgbus_endpoint();
7555 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
7556 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
7557 goto string_till_end;
7558 }
7559 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
7560 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
7561 ptr += size;
7562 break;
7563 }
7564 // string reason_detail = 4;
7565 case 4: {
7566 if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual;
7567 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
7568 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7569 ctx->extra_parse_data().SetFieldName("dmi.GetMsgBusEndpointResponse.reason_detail");
7570 object = msg->mutable_reason_detail();
7571 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
7572 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
7573 goto string_till_end;
7574 }
7575 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
7576 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
7577 ptr += size;
7578 break;
7579 }
7580 default: {
7581 handle_unusual:
7582 if ((tag & 7) == 4 || tag == 0) {
7583 ctx->EndGroup(tag);
7584 return ptr;
7585 }
7586 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
7587 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
7588 ptr = res.first;
7589 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
7590 if (res.second) return ptr;
7591 }
7592 } // switch
7593 } // while
7594 return ptr;
7595string_till_end:
7596 static_cast<::std::string*>(object)->clear();
7597 static_cast<::std::string*>(object)->reserve(size);
7598 goto len_delim_till_end;
7599len_delim_till_end:
7600 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
7601 {parser_till_end, object}, size);
7602}
7603#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7604bool GetMsgBusEndpointResponse::MergePartialFromCodedStream(
7605 ::google::protobuf::io::CodedInputStream* input) {
7606#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
7607 ::google::protobuf::uint32 tag;
7608 // @@protoc_insertion_point(parse_start:dmi.GetMsgBusEndpointResponse)
7609 for (;;) {
7610 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
7611 tag = p.first;
7612 if (!p.second) goto handle_unusual;
7613 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7614 // .dmi.Status status = 1;
7615 case 1: {
7616 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
7617 int value = 0;
7618 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7619 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
7620 input, &value)));
7621 set_status(static_cast< ::dmi::Status >(value));
7622 } else {
7623 goto handle_unusual;
7624 }
7625 break;
7626 }
7627
7628 // .dmi.GetMsgBusEndpointResponse.Reason reason = 2;
7629 case 2: {
7630 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
7631 int value = 0;
7632 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7633 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
7634 input, &value)));
7635 set_reason(static_cast< ::dmi::GetMsgBusEndpointResponse_Reason >(value));
7636 } else {
7637 goto handle_unusual;
7638 }
7639 break;
7640 }
7641
7642 // string msgbus_endpoint = 3;
7643 case 3: {
7644 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
7645 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7646 input, this->mutable_msgbus_endpoint()));
7647 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7648 this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()),
7649 ::google::protobuf::internal::WireFormatLite::PARSE,
7650 "dmi.GetMsgBusEndpointResponse.msgbus_endpoint"));
7651 } else {
7652 goto handle_unusual;
7653 }
7654 break;
7655 }
7656
7657 // string reason_detail = 4;
7658 case 4: {
7659 if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
7660 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7661 input, this->mutable_reason_detail()));
7662 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7663 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
7664 ::google::protobuf::internal::WireFormatLite::PARSE,
7665 "dmi.GetMsgBusEndpointResponse.reason_detail"));
7666 } else {
7667 goto handle_unusual;
7668 }
7669 break;
7670 }
7671
7672 default: {
7673 handle_unusual:
7674 if (tag == 0) {
7675 goto success;
7676 }
7677 DO_(::google::protobuf::internal::WireFormat::SkipField(
7678 input, tag, _internal_metadata_.mutable_unknown_fields()));
7679 break;
7680 }
7681 }
7682 }
7683success:
7684 // @@protoc_insertion_point(parse_success:dmi.GetMsgBusEndpointResponse)
7685 return true;
7686failure:
7687 // @@protoc_insertion_point(parse_failure:dmi.GetMsgBusEndpointResponse)
7688 return false;
7689#undef DO_
7690}
7691#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7692
7693void GetMsgBusEndpointResponse::SerializeWithCachedSizes(
7694 ::google::protobuf::io::CodedOutputStream* output) const {
7695 // @@protoc_insertion_point(serialize_start:dmi.GetMsgBusEndpointResponse)
7696 ::google::protobuf::uint32 cached_has_bits = 0;
7697 (void) cached_has_bits;
7698
7699 // .dmi.Status status = 1;
7700 if (this->status() != 0) {
7701 ::google::protobuf::internal::WireFormatLite::WriteEnum(
7702 1, this->status(), output);
7703 }
7704
7705 // .dmi.GetMsgBusEndpointResponse.Reason reason = 2;
7706 if (this->reason() != 0) {
7707 ::google::protobuf::internal::WireFormatLite::WriteEnum(
7708 2, this->reason(), output);
7709 }
7710
7711 // string msgbus_endpoint = 3;
7712 if (this->msgbus_endpoint().size() > 0) {
7713 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7714 this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()),
7715 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7716 "dmi.GetMsgBusEndpointResponse.msgbus_endpoint");
7717 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7718 3, this->msgbus_endpoint(), output);
7719 }
7720
7721 // string reason_detail = 4;
7722 if (this->reason_detail().size() > 0) {
7723 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7724 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
7725 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7726 "dmi.GetMsgBusEndpointResponse.reason_detail");
7727 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7728 4, this->reason_detail(), output);
7729 }
7730
7731 if (_internal_metadata_.have_unknown_fields()) {
7732 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
7733 _internal_metadata_.unknown_fields(), output);
7734 }
7735 // @@protoc_insertion_point(serialize_end:dmi.GetMsgBusEndpointResponse)
7736}
7737
7738::google::protobuf::uint8* GetMsgBusEndpointResponse::InternalSerializeWithCachedSizesToArray(
7739 ::google::protobuf::uint8* target) const {
7740 // @@protoc_insertion_point(serialize_to_array_start:dmi.GetMsgBusEndpointResponse)
7741 ::google::protobuf::uint32 cached_has_bits = 0;
7742 (void) cached_has_bits;
7743
7744 // .dmi.Status status = 1;
7745 if (this->status() != 0) {
7746 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
7747 1, this->status(), target);
7748 }
7749
7750 // .dmi.GetMsgBusEndpointResponse.Reason reason = 2;
7751 if (this->reason() != 0) {
7752 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
7753 2, this->reason(), target);
7754 }
7755
7756 // string msgbus_endpoint = 3;
7757 if (this->msgbus_endpoint().size() > 0) {
7758 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7759 this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()),
7760 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7761 "dmi.GetMsgBusEndpointResponse.msgbus_endpoint");
7762 target =
7763 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7764 3, this->msgbus_endpoint(), target);
7765 }
7766
7767 // string reason_detail = 4;
7768 if (this->reason_detail().size() > 0) {
7769 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7770 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
7771 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7772 "dmi.GetMsgBusEndpointResponse.reason_detail");
7773 target =
7774 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7775 4, this->reason_detail(), target);
7776 }
7777
7778 if (_internal_metadata_.have_unknown_fields()) {
7779 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
7780 _internal_metadata_.unknown_fields(), target);
7781 }
7782 // @@protoc_insertion_point(serialize_to_array_end:dmi.GetMsgBusEndpointResponse)
7783 return target;
7784}
7785
7786size_t GetMsgBusEndpointResponse::ByteSizeLong() const {
7787// @@protoc_insertion_point(message_byte_size_start:dmi.GetMsgBusEndpointResponse)
7788 size_t total_size = 0;
7789
7790 if (_internal_metadata_.have_unknown_fields()) {
7791 total_size +=
7792 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7793 _internal_metadata_.unknown_fields());
7794 }
7795 ::google::protobuf::uint32 cached_has_bits = 0;
7796 // Prevent compiler warnings about cached_has_bits being unused
7797 (void) cached_has_bits;
7798
7799 // string msgbus_endpoint = 3;
7800 if (this->msgbus_endpoint().size() > 0) {
7801 total_size += 1 +
7802 ::google::protobuf::internal::WireFormatLite::StringSize(
7803 this->msgbus_endpoint());
7804 }
7805
7806 // string reason_detail = 4;
7807 if (this->reason_detail().size() > 0) {
7808 total_size += 1 +
7809 ::google::protobuf::internal::WireFormatLite::StringSize(
7810 this->reason_detail());
7811 }
7812
7813 // .dmi.Status status = 1;
7814 if (this->status() != 0) {
7815 total_size += 1 +
7816 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
7817 }
7818
7819 // .dmi.GetMsgBusEndpointResponse.Reason reason = 2;
7820 if (this->reason() != 0) {
7821 total_size += 1 +
7822 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
7823 }
7824
7825 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
7826 SetCachedSize(cached_size);
7827 return total_size;
7828}
7829
7830void GetMsgBusEndpointResponse::MergeFrom(const ::google::protobuf::Message& from) {
7831// @@protoc_insertion_point(generalized_merge_from_start:dmi.GetMsgBusEndpointResponse)
7832 GOOGLE_DCHECK_NE(&from, this);
7833 const GetMsgBusEndpointResponse* source =
7834 ::google::protobuf::DynamicCastToGenerated<GetMsgBusEndpointResponse>(
7835 &from);
7836 if (source == nullptr) {
7837 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.GetMsgBusEndpointResponse)
7838 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7839 } else {
7840 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.GetMsgBusEndpointResponse)
7841 MergeFrom(*source);
7842 }
7843}
7844
7845void GetMsgBusEndpointResponse::MergeFrom(const GetMsgBusEndpointResponse& from) {
7846// @@protoc_insertion_point(class_specific_merge_from_start:dmi.GetMsgBusEndpointResponse)
7847 GOOGLE_DCHECK_NE(&from, this);
7848 _internal_metadata_.MergeFrom(from._internal_metadata_);
7849 ::google::protobuf::uint32 cached_has_bits = 0;
7850 (void) cached_has_bits;
7851
7852 if (from.msgbus_endpoint().size() > 0) {
7853
7854 msgbus_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.msgbus_endpoint_);
7855 }
7856 if (from.reason_detail().size() > 0) {
7857
7858 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
7859 }
7860 if (from.status() != 0) {
7861 set_status(from.status());
7862 }
7863 if (from.reason() != 0) {
7864 set_reason(from.reason());
7865 }
7866}
7867
7868void GetMsgBusEndpointResponse::CopyFrom(const ::google::protobuf::Message& from) {
7869// @@protoc_insertion_point(generalized_copy_from_start:dmi.GetMsgBusEndpointResponse)
7870 if (&from == this) return;
7871 Clear();
7872 MergeFrom(from);
7873}
7874
7875void GetMsgBusEndpointResponse::CopyFrom(const GetMsgBusEndpointResponse& from) {
7876// @@protoc_insertion_point(class_specific_copy_from_start:dmi.GetMsgBusEndpointResponse)
7877 if (&from == this) return;
7878 Clear();
7879 MergeFrom(from);
7880}
7881
7882bool GetMsgBusEndpointResponse::IsInitialized() const {
7883 return true;
7884}
7885
7886void GetMsgBusEndpointResponse::Swap(GetMsgBusEndpointResponse* other) {
7887 if (other == this) return;
7888 InternalSwap(other);
7889}
7890void GetMsgBusEndpointResponse::InternalSwap(GetMsgBusEndpointResponse* other) {
7891 using std::swap;
7892 _internal_metadata_.Swap(&other->_internal_metadata_);
7893 msgbus_endpoint_.Swap(&other->msgbus_endpoint_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
7894 GetArenaNoVirtual());
7895 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
7896 GetArenaNoVirtual());
7897 swap(status_, other->status_);
7898 swap(reason_, other->reason_);
7899}
7900
7901::google::protobuf::Metadata GetMsgBusEndpointResponse::GetMetadata() const {
7902 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
7903 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
7904}
7905
7906
7907// ===================================================================
7908
7909void EntitiesLogLevel::InitAsDefaultInstance() {
7910}
7911class EntitiesLogLevel::HasBitSetters {
7912 public:
7913};
7914
7915#if !defined(_MSC_VER) || _MSC_VER >= 1900
7916const int EntitiesLogLevel::kLogLevelFieldNumber;
7917const int EntitiesLogLevel::kEntitiesFieldNumber;
7918#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
7919
7920EntitiesLogLevel::EntitiesLogLevel()
7921 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
7922 SharedCtor();
7923 // @@protoc_insertion_point(constructor:dmi.EntitiesLogLevel)
7924}
7925EntitiesLogLevel::EntitiesLogLevel(const EntitiesLogLevel& from)
7926 : ::google::protobuf::Message(),
7927 _internal_metadata_(nullptr),
7928 entities_(from.entities_) {
7929 _internal_metadata_.MergeFrom(from._internal_metadata_);
7930 loglevel_ = from.loglevel_;
7931 // @@protoc_insertion_point(copy_constructor:dmi.EntitiesLogLevel)
7932}
7933
7934void EntitiesLogLevel::SharedCtor() {
7935 ::google::protobuf::internal::InitSCC(
7936 &scc_info_EntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
7937 loglevel_ = 0;
7938}
7939
7940EntitiesLogLevel::~EntitiesLogLevel() {
7941 // @@protoc_insertion_point(destructor:dmi.EntitiesLogLevel)
7942 SharedDtor();
7943}
7944
7945void EntitiesLogLevel::SharedDtor() {
7946}
7947
7948void EntitiesLogLevel::SetCachedSize(int size) const {
7949 _cached_size_.Set(size);
7950}
7951const EntitiesLogLevel& EntitiesLogLevel::default_instance() {
7952 ::google::protobuf::internal::InitSCC(&::scc_info_EntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
7953 return *internal_default_instance();
7954}
7955
7956
7957void EntitiesLogLevel::Clear() {
7958// @@protoc_insertion_point(message_clear_start:dmi.EntitiesLogLevel)
7959 ::google::protobuf::uint32 cached_has_bits = 0;
7960 // Prevent compiler warnings about cached_has_bits being unused
7961 (void) cached_has_bits;
7962
7963 entities_.Clear();
7964 loglevel_ = 0;
7965 _internal_metadata_.Clear();
7966}
7967
7968#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7969const char* EntitiesLogLevel::_InternalParse(const char* begin, const char* end, void* object,
7970 ::google::protobuf::internal::ParseContext* ctx) {
7971 auto msg = static_cast<EntitiesLogLevel*>(object);
7972 ::google::protobuf::int32 size; (void)size;
7973 int depth; (void)depth;
7974 ::google::protobuf::uint32 tag;
7975 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
7976 auto ptr = begin;
7977 while (ptr < end) {
7978 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
7979 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7980 switch (tag >> 3) {
7981 // .dmi.LogLevel logLevel = 1;
7982 case 1: {
7983 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
7984 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
7985 msg->set_loglevel(static_cast<::dmi::LogLevel>(val));
7986 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7987 break;
7988 }
7989 // repeated string entities = 2;
7990 case 2: {
7991 if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
7992 do {
7993 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
7994 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7995 ctx->extra_parse_data().SetFieldName("dmi.EntitiesLogLevel.entities");
7996 object = msg->add_entities();
7997 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
7998 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
7999 goto string_till_end;
8000 }
8001 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
8002 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
8003 ptr += size;
8004 if (ptr >= end) break;
8005 } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1));
8006 break;
8007 }
8008 default: {
8009 handle_unusual:
8010 if ((tag & 7) == 4 || tag == 0) {
8011 ctx->EndGroup(tag);
8012 return ptr;
8013 }
8014 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
8015 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
8016 ptr = res.first;
8017 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
8018 if (res.second) return ptr;
8019 }
8020 } // switch
8021 } // while
8022 return ptr;
8023string_till_end:
8024 static_cast<::std::string*>(object)->clear();
8025 static_cast<::std::string*>(object)->reserve(size);
8026 goto len_delim_till_end;
8027len_delim_till_end:
8028 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
8029 {parser_till_end, object}, size);
8030}
8031#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8032bool EntitiesLogLevel::MergePartialFromCodedStream(
8033 ::google::protobuf::io::CodedInputStream* input) {
8034#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
8035 ::google::protobuf::uint32 tag;
8036 // @@protoc_insertion_point(parse_start:dmi.EntitiesLogLevel)
8037 for (;;) {
8038 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
8039 tag = p.first;
8040 if (!p.second) goto handle_unusual;
8041 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
8042 // .dmi.LogLevel logLevel = 1;
8043 case 1: {
8044 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
8045 int value = 0;
8046 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8047 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
8048 input, &value)));
8049 set_loglevel(static_cast< ::dmi::LogLevel >(value));
8050 } else {
8051 goto handle_unusual;
8052 }
8053 break;
8054 }
8055
8056 // repeated string entities = 2;
8057 case 2: {
8058 if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
8059 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8060 input, this->add_entities()));
8061 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
8062 this->entities(this->entities_size() - 1).data(),
8063 static_cast<int>(this->entities(this->entities_size() - 1).length()),
8064 ::google::protobuf::internal::WireFormatLite::PARSE,
8065 "dmi.EntitiesLogLevel.entities"));
8066 } else {
8067 goto handle_unusual;
8068 }
8069 break;
8070 }
8071
8072 default: {
8073 handle_unusual:
8074 if (tag == 0) {
8075 goto success;
8076 }
8077 DO_(::google::protobuf::internal::WireFormat::SkipField(
8078 input, tag, _internal_metadata_.mutable_unknown_fields()));
8079 break;
8080 }
8081 }
8082 }
8083success:
8084 // @@protoc_insertion_point(parse_success:dmi.EntitiesLogLevel)
8085 return true;
8086failure:
8087 // @@protoc_insertion_point(parse_failure:dmi.EntitiesLogLevel)
8088 return false;
8089#undef DO_
8090}
8091#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8092
8093void EntitiesLogLevel::SerializeWithCachedSizes(
8094 ::google::protobuf::io::CodedOutputStream* output) const {
8095 // @@protoc_insertion_point(serialize_start:dmi.EntitiesLogLevel)
8096 ::google::protobuf::uint32 cached_has_bits = 0;
8097 (void) cached_has_bits;
8098
8099 // .dmi.LogLevel logLevel = 1;
8100 if (this->loglevel() != 0) {
8101 ::google::protobuf::internal::WireFormatLite::WriteEnum(
8102 1, this->loglevel(), output);
8103 }
8104
8105 // repeated string entities = 2;
8106 for (int i = 0, n = this->entities_size(); i < n; i++) {
8107 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
8108 this->entities(i).data(), static_cast<int>(this->entities(i).length()),
8109 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
8110 "dmi.EntitiesLogLevel.entities");
8111 ::google::protobuf::internal::WireFormatLite::WriteString(
8112 2, this->entities(i), output);
8113 }
8114
8115 if (_internal_metadata_.have_unknown_fields()) {
8116 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
8117 _internal_metadata_.unknown_fields(), output);
8118 }
8119 // @@protoc_insertion_point(serialize_end:dmi.EntitiesLogLevel)
8120}
8121
8122::google::protobuf::uint8* EntitiesLogLevel::InternalSerializeWithCachedSizesToArray(
8123 ::google::protobuf::uint8* target) const {
8124 // @@protoc_insertion_point(serialize_to_array_start:dmi.EntitiesLogLevel)
8125 ::google::protobuf::uint32 cached_has_bits = 0;
8126 (void) cached_has_bits;
8127
8128 // .dmi.LogLevel logLevel = 1;
8129 if (this->loglevel() != 0) {
8130 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
8131 1, this->loglevel(), target);
8132 }
8133
8134 // repeated string entities = 2;
8135 for (int i = 0, n = this->entities_size(); i < n; i++) {
8136 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
8137 this->entities(i).data(), static_cast<int>(this->entities(i).length()),
8138 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
8139 "dmi.EntitiesLogLevel.entities");
8140 target = ::google::protobuf::internal::WireFormatLite::
8141 WriteStringToArray(2, this->entities(i), target);
8142 }
8143
8144 if (_internal_metadata_.have_unknown_fields()) {
8145 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
8146 _internal_metadata_.unknown_fields(), target);
8147 }
8148 // @@protoc_insertion_point(serialize_to_array_end:dmi.EntitiesLogLevel)
8149 return target;
8150}
8151
8152size_t EntitiesLogLevel::ByteSizeLong() const {
8153// @@protoc_insertion_point(message_byte_size_start:dmi.EntitiesLogLevel)
8154 size_t total_size = 0;
8155
8156 if (_internal_metadata_.have_unknown_fields()) {
8157 total_size +=
8158 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
8159 _internal_metadata_.unknown_fields());
8160 }
8161 ::google::protobuf::uint32 cached_has_bits = 0;
8162 // Prevent compiler warnings about cached_has_bits being unused
8163 (void) cached_has_bits;
8164
8165 // repeated string entities = 2;
8166 total_size += 1 *
8167 ::google::protobuf::internal::FromIntSize(this->entities_size());
8168 for (int i = 0, n = this->entities_size(); i < n; i++) {
8169 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
8170 this->entities(i));
8171 }
8172
8173 // .dmi.LogLevel logLevel = 1;
8174 if (this->loglevel() != 0) {
8175 total_size += 1 +
8176 ::google::protobuf::internal::WireFormatLite::EnumSize(this->loglevel());
8177 }
8178
8179 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
8180 SetCachedSize(cached_size);
8181 return total_size;
8182}
8183
8184void EntitiesLogLevel::MergeFrom(const ::google::protobuf::Message& from) {
8185// @@protoc_insertion_point(generalized_merge_from_start:dmi.EntitiesLogLevel)
8186 GOOGLE_DCHECK_NE(&from, this);
8187 const EntitiesLogLevel* source =
8188 ::google::protobuf::DynamicCastToGenerated<EntitiesLogLevel>(
8189 &from);
8190 if (source == nullptr) {
8191 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.EntitiesLogLevel)
8192 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
8193 } else {
8194 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.EntitiesLogLevel)
8195 MergeFrom(*source);
8196 }
8197}
8198
8199void EntitiesLogLevel::MergeFrom(const EntitiesLogLevel& from) {
8200// @@protoc_insertion_point(class_specific_merge_from_start:dmi.EntitiesLogLevel)
8201 GOOGLE_DCHECK_NE(&from, this);
8202 _internal_metadata_.MergeFrom(from._internal_metadata_);
8203 ::google::protobuf::uint32 cached_has_bits = 0;
8204 (void) cached_has_bits;
8205
8206 entities_.MergeFrom(from.entities_);
8207 if (from.loglevel() != 0) {
8208 set_loglevel(from.loglevel());
8209 }
8210}
8211
8212void EntitiesLogLevel::CopyFrom(const ::google::protobuf::Message& from) {
8213// @@protoc_insertion_point(generalized_copy_from_start:dmi.EntitiesLogLevel)
8214 if (&from == this) return;
8215 Clear();
8216 MergeFrom(from);
8217}
8218
8219void EntitiesLogLevel::CopyFrom(const EntitiesLogLevel& from) {
8220// @@protoc_insertion_point(class_specific_copy_from_start:dmi.EntitiesLogLevel)
8221 if (&from == this) return;
8222 Clear();
8223 MergeFrom(from);
8224}
8225
8226bool EntitiesLogLevel::IsInitialized() const {
8227 return true;
8228}
8229
8230void EntitiesLogLevel::Swap(EntitiesLogLevel* other) {
8231 if (other == this) return;
8232 InternalSwap(other);
8233}
8234void EntitiesLogLevel::InternalSwap(EntitiesLogLevel* other) {
8235 using std::swap;
8236 _internal_metadata_.Swap(&other->_internal_metadata_);
8237 entities_.InternalSwap(CastToBase(&other->entities_));
8238 swap(loglevel_, other->loglevel_);
8239}
8240
8241::google::protobuf::Metadata EntitiesLogLevel::GetMetadata() const {
8242 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
8243 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
8244}
8245
8246
8247// ===================================================================
8248
8249void SetLogLevelRequest::InitAsDefaultInstance() {
8250 ::dmi::_SetLogLevelRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
8251 ::dmi::Uuid::internal_default_instance());
8252}
8253class SetLogLevelRequest::HasBitSetters {
8254 public:
8255 static const ::dmi::Uuid& device_uuid(const SetLogLevelRequest* msg);
8256};
8257
8258const ::dmi::Uuid&
8259SetLogLevelRequest::HasBitSetters::device_uuid(const SetLogLevelRequest* msg) {
8260 return *msg->device_uuid_;
8261}
8262void SetLogLevelRequest::clear_device_uuid() {
8263 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
8264 delete device_uuid_;
8265 }
8266 device_uuid_ = nullptr;
8267}
8268#if !defined(_MSC_VER) || _MSC_VER >= 1900
8269const int SetLogLevelRequest::kDeviceUuidFieldNumber;
8270const int SetLogLevelRequest::kLoglevelsFieldNumber;
8271#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
8272
8273SetLogLevelRequest::SetLogLevelRequest()
8274 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
8275 SharedCtor();
8276 // @@protoc_insertion_point(constructor:dmi.SetLogLevelRequest)
8277}
8278SetLogLevelRequest::SetLogLevelRequest(const SetLogLevelRequest& from)
8279 : ::google::protobuf::Message(),
8280 _internal_metadata_(nullptr),
8281 loglevels_(from.loglevels_) {
8282 _internal_metadata_.MergeFrom(from._internal_metadata_);
8283 if (from.has_device_uuid()) {
8284 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
8285 } else {
8286 device_uuid_ = nullptr;
8287 }
8288 // @@protoc_insertion_point(copy_constructor:dmi.SetLogLevelRequest)
8289}
8290
8291void SetLogLevelRequest::SharedCtor() {
8292 ::google::protobuf::internal::InitSCC(
8293 &scc_info_SetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
8294 device_uuid_ = nullptr;
8295}
8296
8297SetLogLevelRequest::~SetLogLevelRequest() {
8298 // @@protoc_insertion_point(destructor:dmi.SetLogLevelRequest)
8299 SharedDtor();
8300}
8301
8302void SetLogLevelRequest::SharedDtor() {
8303 if (this != internal_default_instance()) delete device_uuid_;
8304}
8305
8306void SetLogLevelRequest::SetCachedSize(int size) const {
8307 _cached_size_.Set(size);
8308}
8309const SetLogLevelRequest& SetLogLevelRequest::default_instance() {
8310 ::google::protobuf::internal::InitSCC(&::scc_info_SetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
8311 return *internal_default_instance();
8312}
8313
8314
8315void SetLogLevelRequest::Clear() {
8316// @@protoc_insertion_point(message_clear_start:dmi.SetLogLevelRequest)
8317 ::google::protobuf::uint32 cached_has_bits = 0;
8318 // Prevent compiler warnings about cached_has_bits being unused
8319 (void) cached_has_bits;
8320
8321 loglevels_.Clear();
8322 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
8323 delete device_uuid_;
8324 }
8325 device_uuid_ = nullptr;
8326 _internal_metadata_.Clear();
8327}
8328
8329#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8330const char* SetLogLevelRequest::_InternalParse(const char* begin, const char* end, void* object,
8331 ::google::protobuf::internal::ParseContext* ctx) {
8332 auto msg = static_cast<SetLogLevelRequest*>(object);
8333 ::google::protobuf::int32 size; (void)size;
8334 int depth; (void)depth;
8335 ::google::protobuf::uint32 tag;
8336 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
8337 auto ptr = begin;
8338 while (ptr < end) {
8339 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
8340 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
8341 switch (tag >> 3) {
8342 // .dmi.Uuid device_uuid = 1;
8343 case 1: {
8344 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
8345 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
8346 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
8347 parser_till_end = ::dmi::Uuid::_InternalParse;
8348 object = msg->mutable_device_uuid();
8349 if (size > end - ptr) goto len_delim_till_end;
8350 ptr += size;
8351 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
8352 {parser_till_end, object}, ptr - size, ptr));
8353 break;
8354 }
8355 // repeated .dmi.EntitiesLogLevel loglevels = 2;
8356 case 2: {
8357 if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
8358 do {
8359 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
8360 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
8361 parser_till_end = ::dmi::EntitiesLogLevel::_InternalParse;
8362 object = msg->add_loglevels();
8363 if (size > end - ptr) goto len_delim_till_end;
8364 ptr += size;
8365 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
8366 {parser_till_end, object}, ptr - size, ptr));
8367 if (ptr >= end) break;
8368 } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1));
8369 break;
8370 }
8371 default: {
8372 handle_unusual:
8373 if ((tag & 7) == 4 || tag == 0) {
8374 ctx->EndGroup(tag);
8375 return ptr;
8376 }
8377 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
8378 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
8379 ptr = res.first;
8380 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
8381 if (res.second) return ptr;
8382 }
8383 } // switch
8384 } // while
8385 return ptr;
8386len_delim_till_end:
8387 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
8388 {parser_till_end, object}, size);
8389}
8390#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8391bool SetLogLevelRequest::MergePartialFromCodedStream(
8392 ::google::protobuf::io::CodedInputStream* input) {
8393#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
8394 ::google::protobuf::uint32 tag;
8395 // @@protoc_insertion_point(parse_start:dmi.SetLogLevelRequest)
8396 for (;;) {
8397 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
8398 tag = p.first;
8399 if (!p.second) goto handle_unusual;
8400 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
8401 // .dmi.Uuid device_uuid = 1;
8402 case 1: {
8403 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
8404 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
8405 input, mutable_device_uuid()));
8406 } else {
8407 goto handle_unusual;
8408 }
8409 break;
8410 }
8411
8412 // repeated .dmi.EntitiesLogLevel loglevels = 2;
8413 case 2: {
8414 if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
8415 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
8416 input, add_loglevels()));
8417 } else {
8418 goto handle_unusual;
8419 }
8420 break;
8421 }
8422
8423 default: {
8424 handle_unusual:
8425 if (tag == 0) {
8426 goto success;
8427 }
8428 DO_(::google::protobuf::internal::WireFormat::SkipField(
8429 input, tag, _internal_metadata_.mutable_unknown_fields()));
8430 break;
8431 }
8432 }
8433 }
8434success:
8435 // @@protoc_insertion_point(parse_success:dmi.SetLogLevelRequest)
8436 return true;
8437failure:
8438 // @@protoc_insertion_point(parse_failure:dmi.SetLogLevelRequest)
8439 return false;
8440#undef DO_
8441}
8442#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8443
8444void SetLogLevelRequest::SerializeWithCachedSizes(
8445 ::google::protobuf::io::CodedOutputStream* output) const {
8446 // @@protoc_insertion_point(serialize_start:dmi.SetLogLevelRequest)
8447 ::google::protobuf::uint32 cached_has_bits = 0;
8448 (void) cached_has_bits;
8449
8450 // .dmi.Uuid device_uuid = 1;
8451 if (this->has_device_uuid()) {
8452 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
8453 1, HasBitSetters::device_uuid(this), output);
8454 }
8455
8456 // repeated .dmi.EntitiesLogLevel loglevels = 2;
8457 for (unsigned int i = 0,
8458 n = static_cast<unsigned int>(this->loglevels_size()); i < n; i++) {
8459 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
8460 2,
8461 this->loglevels(static_cast<int>(i)),
8462 output);
8463 }
8464
8465 if (_internal_metadata_.have_unknown_fields()) {
8466 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
8467 _internal_metadata_.unknown_fields(), output);
8468 }
8469 // @@protoc_insertion_point(serialize_end:dmi.SetLogLevelRequest)
8470}
8471
8472::google::protobuf::uint8* SetLogLevelRequest::InternalSerializeWithCachedSizesToArray(
8473 ::google::protobuf::uint8* target) const {
8474 // @@protoc_insertion_point(serialize_to_array_start:dmi.SetLogLevelRequest)
8475 ::google::protobuf::uint32 cached_has_bits = 0;
8476 (void) cached_has_bits;
8477
8478 // .dmi.Uuid device_uuid = 1;
8479 if (this->has_device_uuid()) {
8480 target = ::google::protobuf::internal::WireFormatLite::
8481 InternalWriteMessageToArray(
8482 1, HasBitSetters::device_uuid(this), target);
8483 }
8484
8485 // repeated .dmi.EntitiesLogLevel loglevels = 2;
8486 for (unsigned int i = 0,
8487 n = static_cast<unsigned int>(this->loglevels_size()); i < n; i++) {
8488 target = ::google::protobuf::internal::WireFormatLite::
8489 InternalWriteMessageToArray(
8490 2, this->loglevels(static_cast<int>(i)), target);
8491 }
8492
8493 if (_internal_metadata_.have_unknown_fields()) {
8494 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
8495 _internal_metadata_.unknown_fields(), target);
8496 }
8497 // @@protoc_insertion_point(serialize_to_array_end:dmi.SetLogLevelRequest)
8498 return target;
8499}
8500
8501size_t SetLogLevelRequest::ByteSizeLong() const {
8502// @@protoc_insertion_point(message_byte_size_start:dmi.SetLogLevelRequest)
8503 size_t total_size = 0;
8504
8505 if (_internal_metadata_.have_unknown_fields()) {
8506 total_size +=
8507 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
8508 _internal_metadata_.unknown_fields());
8509 }
8510 ::google::protobuf::uint32 cached_has_bits = 0;
8511 // Prevent compiler warnings about cached_has_bits being unused
8512 (void) cached_has_bits;
8513
8514 // repeated .dmi.EntitiesLogLevel loglevels = 2;
8515 {
8516 unsigned int count = static_cast<unsigned int>(this->loglevels_size());
8517 total_size += 1UL * count;
8518 for (unsigned int i = 0; i < count; i++) {
8519 total_size +=
8520 ::google::protobuf::internal::WireFormatLite::MessageSize(
8521 this->loglevels(static_cast<int>(i)));
8522 }
8523 }
8524
8525 // .dmi.Uuid device_uuid = 1;
8526 if (this->has_device_uuid()) {
8527 total_size += 1 +
8528 ::google::protobuf::internal::WireFormatLite::MessageSize(
8529 *device_uuid_);
8530 }
8531
8532 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
8533 SetCachedSize(cached_size);
8534 return total_size;
8535}
8536
8537void SetLogLevelRequest::MergeFrom(const ::google::protobuf::Message& from) {
8538// @@protoc_insertion_point(generalized_merge_from_start:dmi.SetLogLevelRequest)
8539 GOOGLE_DCHECK_NE(&from, this);
8540 const SetLogLevelRequest* source =
8541 ::google::protobuf::DynamicCastToGenerated<SetLogLevelRequest>(
8542 &from);
8543 if (source == nullptr) {
8544 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.SetLogLevelRequest)
8545 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
8546 } else {
8547 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.SetLogLevelRequest)
8548 MergeFrom(*source);
8549 }
8550}
8551
8552void SetLogLevelRequest::MergeFrom(const SetLogLevelRequest& from) {
8553// @@protoc_insertion_point(class_specific_merge_from_start:dmi.SetLogLevelRequest)
8554 GOOGLE_DCHECK_NE(&from, this);
8555 _internal_metadata_.MergeFrom(from._internal_metadata_);
8556 ::google::protobuf::uint32 cached_has_bits = 0;
8557 (void) cached_has_bits;
8558
8559 loglevels_.MergeFrom(from.loglevels_);
8560 if (from.has_device_uuid()) {
8561 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
8562 }
8563}
8564
8565void SetLogLevelRequest::CopyFrom(const ::google::protobuf::Message& from) {
8566// @@protoc_insertion_point(generalized_copy_from_start:dmi.SetLogLevelRequest)
8567 if (&from == this) return;
8568 Clear();
8569 MergeFrom(from);
8570}
8571
8572void SetLogLevelRequest::CopyFrom(const SetLogLevelRequest& from) {
8573// @@protoc_insertion_point(class_specific_copy_from_start:dmi.SetLogLevelRequest)
8574 if (&from == this) return;
8575 Clear();
8576 MergeFrom(from);
8577}
8578
8579bool SetLogLevelRequest::IsInitialized() const {
8580 return true;
8581}
8582
8583void SetLogLevelRequest::Swap(SetLogLevelRequest* other) {
8584 if (other == this) return;
8585 InternalSwap(other);
8586}
8587void SetLogLevelRequest::InternalSwap(SetLogLevelRequest* other) {
8588 using std::swap;
8589 _internal_metadata_.Swap(&other->_internal_metadata_);
8590 CastToBase(&loglevels_)->InternalSwap(CastToBase(&other->loglevels_));
8591 swap(device_uuid_, other->device_uuid_);
8592}
8593
8594::google::protobuf::Metadata SetLogLevelRequest::GetMetadata() const {
8595 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
8596 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
8597}
8598
8599
8600// ===================================================================
8601
8602void SetLogLevelResponse::InitAsDefaultInstance() {
8603 ::dmi::_SetLogLevelResponse_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
8604 ::dmi::Uuid::internal_default_instance());
8605}
8606class SetLogLevelResponse::HasBitSetters {
8607 public:
8608 static const ::dmi::Uuid& device_uuid(const SetLogLevelResponse* msg);
8609};
8610
8611const ::dmi::Uuid&
8612SetLogLevelResponse::HasBitSetters::device_uuid(const SetLogLevelResponse* msg) {
8613 return *msg->device_uuid_;
8614}
8615void SetLogLevelResponse::clear_device_uuid() {
8616 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
8617 delete device_uuid_;
8618 }
8619 device_uuid_ = nullptr;
8620}
8621#if !defined(_MSC_VER) || _MSC_VER >= 1900
8622const int SetLogLevelResponse::kDeviceUuidFieldNumber;
8623const int SetLogLevelResponse::kStatusFieldNumber;
8624const int SetLogLevelResponse::kReasonFieldNumber;
8625const int SetLogLevelResponse::kReasonDetailFieldNumber;
8626#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
8627
8628SetLogLevelResponse::SetLogLevelResponse()
8629 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
8630 SharedCtor();
8631 // @@protoc_insertion_point(constructor:dmi.SetLogLevelResponse)
8632}
8633SetLogLevelResponse::SetLogLevelResponse(const SetLogLevelResponse& from)
8634 : ::google::protobuf::Message(),
8635 _internal_metadata_(nullptr) {
8636 _internal_metadata_.MergeFrom(from._internal_metadata_);
8637 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8638 if (from.reason_detail().size() > 0) {
8639 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
8640 }
8641 if (from.has_device_uuid()) {
8642 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
8643 } else {
8644 device_uuid_ = nullptr;
8645 }
8646 ::memcpy(&status_, &from.status_,
8647 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
8648 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
8649 // @@protoc_insertion_point(copy_constructor:dmi.SetLogLevelResponse)
8650}
8651
8652void SetLogLevelResponse::SharedCtor() {
8653 ::google::protobuf::internal::InitSCC(
8654 &scc_info_SetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
8655 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8656 ::memset(&device_uuid_, 0, static_cast<size_t>(
8657 reinterpret_cast<char*>(&reason_) -
8658 reinterpret_cast<char*>(&device_uuid_)) + sizeof(reason_));
8659}
8660
8661SetLogLevelResponse::~SetLogLevelResponse() {
8662 // @@protoc_insertion_point(destructor:dmi.SetLogLevelResponse)
8663 SharedDtor();
8664}
8665
8666void SetLogLevelResponse::SharedDtor() {
8667 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8668 if (this != internal_default_instance()) delete device_uuid_;
8669}
8670
8671void SetLogLevelResponse::SetCachedSize(int size) const {
8672 _cached_size_.Set(size);
8673}
8674const SetLogLevelResponse& SetLogLevelResponse::default_instance() {
8675 ::google::protobuf::internal::InitSCC(&::scc_info_SetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
8676 return *internal_default_instance();
8677}
8678
8679
8680void SetLogLevelResponse::Clear() {
8681// @@protoc_insertion_point(message_clear_start:dmi.SetLogLevelResponse)
8682 ::google::protobuf::uint32 cached_has_bits = 0;
8683 // Prevent compiler warnings about cached_has_bits being unused
8684 (void) cached_has_bits;
8685
8686 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8687 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
8688 delete device_uuid_;
8689 }
8690 device_uuid_ = nullptr;
8691 ::memset(&status_, 0, static_cast<size_t>(
8692 reinterpret_cast<char*>(&reason_) -
8693 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
8694 _internal_metadata_.Clear();
8695}
8696
8697#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8698const char* SetLogLevelResponse::_InternalParse(const char* begin, const char* end, void* object,
8699 ::google::protobuf::internal::ParseContext* ctx) {
8700 auto msg = static_cast<SetLogLevelResponse*>(object);
8701 ::google::protobuf::int32 size; (void)size;
8702 int depth; (void)depth;
8703 ::google::protobuf::uint32 tag;
8704 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
8705 auto ptr = begin;
8706 while (ptr < end) {
8707 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
8708 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
8709 switch (tag >> 3) {
8710 // .dmi.Uuid device_uuid = 1;
8711 case 1: {
8712 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
8713 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
8714 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
8715 parser_till_end = ::dmi::Uuid::_InternalParse;
8716 object = msg->mutable_device_uuid();
8717 if (size > end - ptr) goto len_delim_till_end;
8718 ptr += size;
8719 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
8720 {parser_till_end, object}, ptr - size, ptr));
8721 break;
8722 }
8723 // .dmi.Status status = 2;
8724 case 2: {
8725 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
8726 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
8727 msg->set_status(static_cast<::dmi::Status>(val));
8728 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
8729 break;
8730 }
8731 // .dmi.SetLogLevelResponse.Reason reason = 3;
8732 case 3: {
8733 if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual;
8734 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
8735 msg->set_reason(static_cast<::dmi::SetLogLevelResponse_Reason>(val));
8736 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
8737 break;
8738 }
8739 // string reason_detail = 4;
8740 case 4: {
8741 if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual;
8742 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
8743 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
8744 ctx->extra_parse_data().SetFieldName("dmi.SetLogLevelResponse.reason_detail");
8745 object = msg->mutable_reason_detail();
8746 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
8747 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
8748 goto string_till_end;
8749 }
8750 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
8751 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
8752 ptr += size;
8753 break;
8754 }
8755 default: {
8756 handle_unusual:
8757 if ((tag & 7) == 4 || tag == 0) {
8758 ctx->EndGroup(tag);
8759 return ptr;
8760 }
8761 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
8762 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
8763 ptr = res.first;
8764 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
8765 if (res.second) return ptr;
8766 }
8767 } // switch
8768 } // while
8769 return ptr;
8770string_till_end:
8771 static_cast<::std::string*>(object)->clear();
8772 static_cast<::std::string*>(object)->reserve(size);
8773 goto len_delim_till_end;
8774len_delim_till_end:
8775 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
8776 {parser_till_end, object}, size);
8777}
8778#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8779bool SetLogLevelResponse::MergePartialFromCodedStream(
8780 ::google::protobuf::io::CodedInputStream* input) {
8781#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
8782 ::google::protobuf::uint32 tag;
8783 // @@protoc_insertion_point(parse_start:dmi.SetLogLevelResponse)
8784 for (;;) {
8785 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
8786 tag = p.first;
8787 if (!p.second) goto handle_unusual;
8788 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
8789 // .dmi.Uuid device_uuid = 1;
8790 case 1: {
8791 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
8792 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
8793 input, mutable_device_uuid()));
8794 } else {
8795 goto handle_unusual;
8796 }
8797 break;
8798 }
8799
8800 // .dmi.Status status = 2;
8801 case 2: {
8802 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
8803 int value = 0;
8804 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8805 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
8806 input, &value)));
8807 set_status(static_cast< ::dmi::Status >(value));
8808 } else {
8809 goto handle_unusual;
8810 }
8811 break;
8812 }
8813
8814 // .dmi.SetLogLevelResponse.Reason reason = 3;
8815 case 3: {
8816 if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) {
8817 int value = 0;
8818 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8819 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
8820 input, &value)));
8821 set_reason(static_cast< ::dmi::SetLogLevelResponse_Reason >(value));
8822 } else {
8823 goto handle_unusual;
8824 }
8825 break;
8826 }
8827
8828 // string reason_detail = 4;
8829 case 4: {
8830 if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
8831 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8832 input, this->mutable_reason_detail()));
8833 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
8834 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
8835 ::google::protobuf::internal::WireFormatLite::PARSE,
8836 "dmi.SetLogLevelResponse.reason_detail"));
8837 } else {
8838 goto handle_unusual;
8839 }
8840 break;
8841 }
8842
8843 default: {
8844 handle_unusual:
8845 if (tag == 0) {
8846 goto success;
8847 }
8848 DO_(::google::protobuf::internal::WireFormat::SkipField(
8849 input, tag, _internal_metadata_.mutable_unknown_fields()));
8850 break;
8851 }
8852 }
8853 }
8854success:
8855 // @@protoc_insertion_point(parse_success:dmi.SetLogLevelResponse)
8856 return true;
8857failure:
8858 // @@protoc_insertion_point(parse_failure:dmi.SetLogLevelResponse)
8859 return false;
8860#undef DO_
8861}
8862#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8863
8864void SetLogLevelResponse::SerializeWithCachedSizes(
8865 ::google::protobuf::io::CodedOutputStream* output) const {
8866 // @@protoc_insertion_point(serialize_start:dmi.SetLogLevelResponse)
8867 ::google::protobuf::uint32 cached_has_bits = 0;
8868 (void) cached_has_bits;
8869
8870 // .dmi.Uuid device_uuid = 1;
8871 if (this->has_device_uuid()) {
8872 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
8873 1, HasBitSetters::device_uuid(this), output);
8874 }
8875
8876 // .dmi.Status status = 2;
8877 if (this->status() != 0) {
8878 ::google::protobuf::internal::WireFormatLite::WriteEnum(
8879 2, this->status(), output);
8880 }
8881
8882 // .dmi.SetLogLevelResponse.Reason reason = 3;
8883 if (this->reason() != 0) {
8884 ::google::protobuf::internal::WireFormatLite::WriteEnum(
8885 3, this->reason(), output);
8886 }
8887
8888 // string reason_detail = 4;
8889 if (this->reason_detail().size() > 0) {
8890 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
8891 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
8892 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
8893 "dmi.SetLogLevelResponse.reason_detail");
8894 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
8895 4, this->reason_detail(), output);
8896 }
8897
8898 if (_internal_metadata_.have_unknown_fields()) {
8899 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
8900 _internal_metadata_.unknown_fields(), output);
8901 }
8902 // @@protoc_insertion_point(serialize_end:dmi.SetLogLevelResponse)
8903}
8904
8905::google::protobuf::uint8* SetLogLevelResponse::InternalSerializeWithCachedSizesToArray(
8906 ::google::protobuf::uint8* target) const {
8907 // @@protoc_insertion_point(serialize_to_array_start:dmi.SetLogLevelResponse)
8908 ::google::protobuf::uint32 cached_has_bits = 0;
8909 (void) cached_has_bits;
8910
8911 // .dmi.Uuid device_uuid = 1;
8912 if (this->has_device_uuid()) {
8913 target = ::google::protobuf::internal::WireFormatLite::
8914 InternalWriteMessageToArray(
8915 1, HasBitSetters::device_uuid(this), target);
8916 }
8917
8918 // .dmi.Status status = 2;
8919 if (this->status() != 0) {
8920 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
8921 2, this->status(), target);
8922 }
8923
8924 // .dmi.SetLogLevelResponse.Reason reason = 3;
8925 if (this->reason() != 0) {
8926 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
8927 3, this->reason(), target);
8928 }
8929
8930 // string reason_detail = 4;
8931 if (this->reason_detail().size() > 0) {
8932 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
8933 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
8934 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
8935 "dmi.SetLogLevelResponse.reason_detail");
8936 target =
8937 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
8938 4, this->reason_detail(), target);
8939 }
8940
8941 if (_internal_metadata_.have_unknown_fields()) {
8942 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
8943 _internal_metadata_.unknown_fields(), target);
8944 }
8945 // @@protoc_insertion_point(serialize_to_array_end:dmi.SetLogLevelResponse)
8946 return target;
8947}
8948
8949size_t SetLogLevelResponse::ByteSizeLong() const {
8950// @@protoc_insertion_point(message_byte_size_start:dmi.SetLogLevelResponse)
8951 size_t total_size = 0;
8952
8953 if (_internal_metadata_.have_unknown_fields()) {
8954 total_size +=
8955 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
8956 _internal_metadata_.unknown_fields());
8957 }
8958 ::google::protobuf::uint32 cached_has_bits = 0;
8959 // Prevent compiler warnings about cached_has_bits being unused
8960 (void) cached_has_bits;
8961
8962 // string reason_detail = 4;
8963 if (this->reason_detail().size() > 0) {
8964 total_size += 1 +
8965 ::google::protobuf::internal::WireFormatLite::StringSize(
8966 this->reason_detail());
8967 }
8968
8969 // .dmi.Uuid device_uuid = 1;
8970 if (this->has_device_uuid()) {
8971 total_size += 1 +
8972 ::google::protobuf::internal::WireFormatLite::MessageSize(
8973 *device_uuid_);
8974 }
8975
8976 // .dmi.Status status = 2;
8977 if (this->status() != 0) {
8978 total_size += 1 +
8979 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
8980 }
8981
8982 // .dmi.SetLogLevelResponse.Reason reason = 3;
8983 if (this->reason() != 0) {
8984 total_size += 1 +
8985 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
8986 }
8987
8988 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
8989 SetCachedSize(cached_size);
8990 return total_size;
8991}
8992
8993void SetLogLevelResponse::MergeFrom(const ::google::protobuf::Message& from) {
8994// @@protoc_insertion_point(generalized_merge_from_start:dmi.SetLogLevelResponse)
8995 GOOGLE_DCHECK_NE(&from, this);
8996 const SetLogLevelResponse* source =
8997 ::google::protobuf::DynamicCastToGenerated<SetLogLevelResponse>(
8998 &from);
8999 if (source == nullptr) {
9000 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.SetLogLevelResponse)
9001 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
9002 } else {
9003 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.SetLogLevelResponse)
9004 MergeFrom(*source);
9005 }
9006}
9007
9008void SetLogLevelResponse::MergeFrom(const SetLogLevelResponse& from) {
9009// @@protoc_insertion_point(class_specific_merge_from_start:dmi.SetLogLevelResponse)
9010 GOOGLE_DCHECK_NE(&from, this);
9011 _internal_metadata_.MergeFrom(from._internal_metadata_);
9012 ::google::protobuf::uint32 cached_has_bits = 0;
9013 (void) cached_has_bits;
9014
9015 if (from.reason_detail().size() > 0) {
9016
9017 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
9018 }
9019 if (from.has_device_uuid()) {
9020 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
9021 }
9022 if (from.status() != 0) {
9023 set_status(from.status());
9024 }
9025 if (from.reason() != 0) {
9026 set_reason(from.reason());
9027 }
9028}
9029
9030void SetLogLevelResponse::CopyFrom(const ::google::protobuf::Message& from) {
9031// @@protoc_insertion_point(generalized_copy_from_start:dmi.SetLogLevelResponse)
9032 if (&from == this) return;
9033 Clear();
9034 MergeFrom(from);
9035}
9036
9037void SetLogLevelResponse::CopyFrom(const SetLogLevelResponse& from) {
9038// @@protoc_insertion_point(class_specific_copy_from_start:dmi.SetLogLevelResponse)
9039 if (&from == this) return;
9040 Clear();
9041 MergeFrom(from);
9042}
9043
9044bool SetLogLevelResponse::IsInitialized() const {
9045 return true;
9046}
9047
9048void SetLogLevelResponse::Swap(SetLogLevelResponse* other) {
9049 if (other == this) return;
9050 InternalSwap(other);
9051}
9052void SetLogLevelResponse::InternalSwap(SetLogLevelResponse* other) {
9053 using std::swap;
9054 _internal_metadata_.Swap(&other->_internal_metadata_);
9055 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
9056 GetArenaNoVirtual());
9057 swap(device_uuid_, other->device_uuid_);
9058 swap(status_, other->status_);
9059 swap(reason_, other->reason_);
9060}
9061
9062::google::protobuf::Metadata SetLogLevelResponse::GetMetadata() const {
9063 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
9064 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
9065}
9066
9067
9068// ===================================================================
9069
9070void GetLogLevelRequest::InitAsDefaultInstance() {
9071 ::dmi::_GetLogLevelRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
9072 ::dmi::Uuid::internal_default_instance());
9073}
9074class GetLogLevelRequest::HasBitSetters {
9075 public:
9076 static const ::dmi::Uuid& device_uuid(const GetLogLevelRequest* msg);
9077};
9078
9079const ::dmi::Uuid&
9080GetLogLevelRequest::HasBitSetters::device_uuid(const GetLogLevelRequest* msg) {
9081 return *msg->device_uuid_;
9082}
9083void GetLogLevelRequest::clear_device_uuid() {
9084 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
9085 delete device_uuid_;
9086 }
9087 device_uuid_ = nullptr;
9088}
9089#if !defined(_MSC_VER) || _MSC_VER >= 1900
9090const int GetLogLevelRequest::kDeviceUuidFieldNumber;
9091const int GetLogLevelRequest::kEntitiesFieldNumber;
9092#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
9093
9094GetLogLevelRequest::GetLogLevelRequest()
9095 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
9096 SharedCtor();
9097 // @@protoc_insertion_point(constructor:dmi.GetLogLevelRequest)
9098}
9099GetLogLevelRequest::GetLogLevelRequest(const GetLogLevelRequest& from)
9100 : ::google::protobuf::Message(),
9101 _internal_metadata_(nullptr),
9102 entities_(from.entities_) {
9103 _internal_metadata_.MergeFrom(from._internal_metadata_);
9104 if (from.has_device_uuid()) {
9105 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
9106 } else {
9107 device_uuid_ = nullptr;
9108 }
9109 // @@protoc_insertion_point(copy_constructor:dmi.GetLogLevelRequest)
9110}
9111
9112void GetLogLevelRequest::SharedCtor() {
9113 ::google::protobuf::internal::InitSCC(
9114 &scc_info_GetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
9115 device_uuid_ = nullptr;
9116}
9117
9118GetLogLevelRequest::~GetLogLevelRequest() {
9119 // @@protoc_insertion_point(destructor:dmi.GetLogLevelRequest)
9120 SharedDtor();
9121}
9122
9123void GetLogLevelRequest::SharedDtor() {
9124 if (this != internal_default_instance()) delete device_uuid_;
9125}
9126
9127void GetLogLevelRequest::SetCachedSize(int size) const {
9128 _cached_size_.Set(size);
9129}
9130const GetLogLevelRequest& GetLogLevelRequest::default_instance() {
9131 ::google::protobuf::internal::InitSCC(&::scc_info_GetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
9132 return *internal_default_instance();
9133}
9134
9135
9136void GetLogLevelRequest::Clear() {
9137// @@protoc_insertion_point(message_clear_start:dmi.GetLogLevelRequest)
9138 ::google::protobuf::uint32 cached_has_bits = 0;
9139 // Prevent compiler warnings about cached_has_bits being unused
9140 (void) cached_has_bits;
9141
9142 entities_.Clear();
9143 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
9144 delete device_uuid_;
9145 }
9146 device_uuid_ = nullptr;
9147 _internal_metadata_.Clear();
9148}
9149
9150#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
9151const char* GetLogLevelRequest::_InternalParse(const char* begin, const char* end, void* object,
9152 ::google::protobuf::internal::ParseContext* ctx) {
9153 auto msg = static_cast<GetLogLevelRequest*>(object);
9154 ::google::protobuf::int32 size; (void)size;
9155 int depth; (void)depth;
9156 ::google::protobuf::uint32 tag;
9157 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
9158 auto ptr = begin;
9159 while (ptr < end) {
9160 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
9161 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
9162 switch (tag >> 3) {
9163 // .dmi.Uuid device_uuid = 1;
9164 case 1: {
9165 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
9166 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
9167 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
9168 parser_till_end = ::dmi::Uuid::_InternalParse;
9169 object = msg->mutable_device_uuid();
9170 if (size > end - ptr) goto len_delim_till_end;
9171 ptr += size;
9172 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
9173 {parser_till_end, object}, ptr - size, ptr));
9174 break;
9175 }
9176 // repeated string entities = 2;
9177 case 2: {
9178 if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
9179 do {
9180 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
9181 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
9182 ctx->extra_parse_data().SetFieldName("dmi.GetLogLevelRequest.entities");
9183 object = msg->add_entities();
9184 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
9185 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
9186 goto string_till_end;
9187 }
9188 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
9189 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
9190 ptr += size;
9191 if (ptr >= end) break;
9192 } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1));
9193 break;
9194 }
9195 default: {
9196 handle_unusual:
9197 if ((tag & 7) == 4 || tag == 0) {
9198 ctx->EndGroup(tag);
9199 return ptr;
9200 }
9201 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
9202 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
9203 ptr = res.first;
9204 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
9205 if (res.second) return ptr;
9206 }
9207 } // switch
9208 } // while
9209 return ptr;
9210string_till_end:
9211 static_cast<::std::string*>(object)->clear();
9212 static_cast<::std::string*>(object)->reserve(size);
9213 goto len_delim_till_end;
9214len_delim_till_end:
9215 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
9216 {parser_till_end, object}, size);
9217}
9218#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
9219bool GetLogLevelRequest::MergePartialFromCodedStream(
9220 ::google::protobuf::io::CodedInputStream* input) {
9221#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
9222 ::google::protobuf::uint32 tag;
9223 // @@protoc_insertion_point(parse_start:dmi.GetLogLevelRequest)
9224 for (;;) {
9225 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
9226 tag = p.first;
9227 if (!p.second) goto handle_unusual;
9228 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
9229 // .dmi.Uuid device_uuid = 1;
9230 case 1: {
9231 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
9232 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
9233 input, mutable_device_uuid()));
9234 } else {
9235 goto handle_unusual;
9236 }
9237 break;
9238 }
9239
9240 // repeated string entities = 2;
9241 case 2: {
9242 if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
9243 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
9244 input, this->add_entities()));
9245 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
9246 this->entities(this->entities_size() - 1).data(),
9247 static_cast<int>(this->entities(this->entities_size() - 1).length()),
9248 ::google::protobuf::internal::WireFormatLite::PARSE,
9249 "dmi.GetLogLevelRequest.entities"));
9250 } else {
9251 goto handle_unusual;
9252 }
9253 break;
9254 }
9255
9256 default: {
9257 handle_unusual:
9258 if (tag == 0) {
9259 goto success;
9260 }
9261 DO_(::google::protobuf::internal::WireFormat::SkipField(
9262 input, tag, _internal_metadata_.mutable_unknown_fields()));
9263 break;
9264 }
9265 }
9266 }
9267success:
9268 // @@protoc_insertion_point(parse_success:dmi.GetLogLevelRequest)
9269 return true;
9270failure:
9271 // @@protoc_insertion_point(parse_failure:dmi.GetLogLevelRequest)
9272 return false;
9273#undef DO_
9274}
9275#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
9276
9277void GetLogLevelRequest::SerializeWithCachedSizes(
9278 ::google::protobuf::io::CodedOutputStream* output) const {
9279 // @@protoc_insertion_point(serialize_start:dmi.GetLogLevelRequest)
9280 ::google::protobuf::uint32 cached_has_bits = 0;
9281 (void) cached_has_bits;
9282
9283 // .dmi.Uuid device_uuid = 1;
9284 if (this->has_device_uuid()) {
9285 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9286 1, HasBitSetters::device_uuid(this), output);
9287 }
9288
9289 // repeated string entities = 2;
9290 for (int i = 0, n = this->entities_size(); i < n; i++) {
9291 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
9292 this->entities(i).data(), static_cast<int>(this->entities(i).length()),
9293 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
9294 "dmi.GetLogLevelRequest.entities");
9295 ::google::protobuf::internal::WireFormatLite::WriteString(
9296 2, this->entities(i), output);
9297 }
9298
9299 if (_internal_metadata_.have_unknown_fields()) {
9300 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
9301 _internal_metadata_.unknown_fields(), output);
9302 }
9303 // @@protoc_insertion_point(serialize_end:dmi.GetLogLevelRequest)
9304}
9305
9306::google::protobuf::uint8* GetLogLevelRequest::InternalSerializeWithCachedSizesToArray(
9307 ::google::protobuf::uint8* target) const {
9308 // @@protoc_insertion_point(serialize_to_array_start:dmi.GetLogLevelRequest)
9309 ::google::protobuf::uint32 cached_has_bits = 0;
9310 (void) cached_has_bits;
9311
9312 // .dmi.Uuid device_uuid = 1;
9313 if (this->has_device_uuid()) {
9314 target = ::google::protobuf::internal::WireFormatLite::
9315 InternalWriteMessageToArray(
9316 1, HasBitSetters::device_uuid(this), target);
9317 }
9318
9319 // repeated string entities = 2;
9320 for (int i = 0, n = this->entities_size(); i < n; i++) {
9321 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
9322 this->entities(i).data(), static_cast<int>(this->entities(i).length()),
9323 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
9324 "dmi.GetLogLevelRequest.entities");
9325 target = ::google::protobuf::internal::WireFormatLite::
9326 WriteStringToArray(2, this->entities(i), target);
9327 }
9328
9329 if (_internal_metadata_.have_unknown_fields()) {
9330 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
9331 _internal_metadata_.unknown_fields(), target);
9332 }
9333 // @@protoc_insertion_point(serialize_to_array_end:dmi.GetLogLevelRequest)
9334 return target;
9335}
9336
9337size_t GetLogLevelRequest::ByteSizeLong() const {
9338// @@protoc_insertion_point(message_byte_size_start:dmi.GetLogLevelRequest)
9339 size_t total_size = 0;
9340
9341 if (_internal_metadata_.have_unknown_fields()) {
9342 total_size +=
9343 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
9344 _internal_metadata_.unknown_fields());
9345 }
9346 ::google::protobuf::uint32 cached_has_bits = 0;
9347 // Prevent compiler warnings about cached_has_bits being unused
9348 (void) cached_has_bits;
9349
9350 // repeated string entities = 2;
9351 total_size += 1 *
9352 ::google::protobuf::internal::FromIntSize(this->entities_size());
9353 for (int i = 0, n = this->entities_size(); i < n; i++) {
9354 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
9355 this->entities(i));
9356 }
9357
9358 // .dmi.Uuid device_uuid = 1;
9359 if (this->has_device_uuid()) {
9360 total_size += 1 +
9361 ::google::protobuf::internal::WireFormatLite::MessageSize(
9362 *device_uuid_);
9363 }
9364
9365 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
9366 SetCachedSize(cached_size);
9367 return total_size;
9368}
9369
9370void GetLogLevelRequest::MergeFrom(const ::google::protobuf::Message& from) {
9371// @@protoc_insertion_point(generalized_merge_from_start:dmi.GetLogLevelRequest)
9372 GOOGLE_DCHECK_NE(&from, this);
9373 const GetLogLevelRequest* source =
9374 ::google::protobuf::DynamicCastToGenerated<GetLogLevelRequest>(
9375 &from);
9376 if (source == nullptr) {
9377 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.GetLogLevelRequest)
9378 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
9379 } else {
9380 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.GetLogLevelRequest)
9381 MergeFrom(*source);
9382 }
9383}
9384
9385void GetLogLevelRequest::MergeFrom(const GetLogLevelRequest& from) {
9386// @@protoc_insertion_point(class_specific_merge_from_start:dmi.GetLogLevelRequest)
9387 GOOGLE_DCHECK_NE(&from, this);
9388 _internal_metadata_.MergeFrom(from._internal_metadata_);
9389 ::google::protobuf::uint32 cached_has_bits = 0;
9390 (void) cached_has_bits;
9391
9392 entities_.MergeFrom(from.entities_);
9393 if (from.has_device_uuid()) {
9394 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
9395 }
9396}
9397
9398void GetLogLevelRequest::CopyFrom(const ::google::protobuf::Message& from) {
9399// @@protoc_insertion_point(generalized_copy_from_start:dmi.GetLogLevelRequest)
9400 if (&from == this) return;
9401 Clear();
9402 MergeFrom(from);
9403}
9404
9405void GetLogLevelRequest::CopyFrom(const GetLogLevelRequest& from) {
9406// @@protoc_insertion_point(class_specific_copy_from_start:dmi.GetLogLevelRequest)
9407 if (&from == this) return;
9408 Clear();
9409 MergeFrom(from);
9410}
9411
9412bool GetLogLevelRequest::IsInitialized() const {
9413 return true;
9414}
9415
9416void GetLogLevelRequest::Swap(GetLogLevelRequest* other) {
9417 if (other == this) return;
9418 InternalSwap(other);
9419}
9420void GetLogLevelRequest::InternalSwap(GetLogLevelRequest* other) {
9421 using std::swap;
9422 _internal_metadata_.Swap(&other->_internal_metadata_);
9423 entities_.InternalSwap(CastToBase(&other->entities_));
9424 swap(device_uuid_, other->device_uuid_);
9425}
9426
9427::google::protobuf::Metadata GetLogLevelRequest::GetMetadata() const {
9428 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
9429 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
9430}
9431
9432
9433// ===================================================================
9434
9435void GetLogLevelResponse::InitAsDefaultInstance() {
9436 ::dmi::_GetLogLevelResponse_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
9437 ::dmi::Uuid::internal_default_instance());
9438}
9439class GetLogLevelResponse::HasBitSetters {
9440 public:
9441 static const ::dmi::Uuid& device_uuid(const GetLogLevelResponse* msg);
9442};
9443
9444const ::dmi::Uuid&
9445GetLogLevelResponse::HasBitSetters::device_uuid(const GetLogLevelResponse* msg) {
9446 return *msg->device_uuid_;
9447}
9448void GetLogLevelResponse::clear_device_uuid() {
9449 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
9450 delete device_uuid_;
9451 }
9452 device_uuid_ = nullptr;
9453}
9454#if !defined(_MSC_VER) || _MSC_VER >= 1900
9455const int GetLogLevelResponse::kDeviceUuidFieldNumber;
9456const int GetLogLevelResponse::kLogLevelsFieldNumber;
9457const int GetLogLevelResponse::kStatusFieldNumber;
9458const int GetLogLevelResponse::kReasonFieldNumber;
9459const int GetLogLevelResponse::kReasonDetailFieldNumber;
9460#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
9461
9462GetLogLevelResponse::GetLogLevelResponse()
9463 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
9464 SharedCtor();
9465 // @@protoc_insertion_point(constructor:dmi.GetLogLevelResponse)
9466}
9467GetLogLevelResponse::GetLogLevelResponse(const GetLogLevelResponse& from)
9468 : ::google::protobuf::Message(),
9469 _internal_metadata_(nullptr),
9470 loglevels_(from.loglevels_) {
9471 _internal_metadata_.MergeFrom(from._internal_metadata_);
9472 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9473 if (from.reason_detail().size() > 0) {
9474 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
9475 }
9476 if (from.has_device_uuid()) {
9477 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
9478 } else {
9479 device_uuid_ = nullptr;
9480 }
9481 ::memcpy(&status_, &from.status_,
9482 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
9483 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
9484 // @@protoc_insertion_point(copy_constructor:dmi.GetLogLevelResponse)
9485}
9486
9487void GetLogLevelResponse::SharedCtor() {
9488 ::google::protobuf::internal::InitSCC(
9489 &scc_info_GetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
9490 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9491 ::memset(&device_uuid_, 0, static_cast<size_t>(
9492 reinterpret_cast<char*>(&reason_) -
9493 reinterpret_cast<char*>(&device_uuid_)) + sizeof(reason_));
9494}
9495
9496GetLogLevelResponse::~GetLogLevelResponse() {
9497 // @@protoc_insertion_point(destructor:dmi.GetLogLevelResponse)
9498 SharedDtor();
9499}
9500
9501void GetLogLevelResponse::SharedDtor() {
9502 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9503 if (this != internal_default_instance()) delete device_uuid_;
9504}
9505
9506void GetLogLevelResponse::SetCachedSize(int size) const {
9507 _cached_size_.Set(size);
9508}
9509const GetLogLevelResponse& GetLogLevelResponse::default_instance() {
9510 ::google::protobuf::internal::InitSCC(&::scc_info_GetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
9511 return *internal_default_instance();
9512}
9513
9514
9515void GetLogLevelResponse::Clear() {
9516// @@protoc_insertion_point(message_clear_start:dmi.GetLogLevelResponse)
9517 ::google::protobuf::uint32 cached_has_bits = 0;
9518 // Prevent compiler warnings about cached_has_bits being unused
9519 (void) cached_has_bits;
9520
9521 loglevels_.Clear();
9522 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9523 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
9524 delete device_uuid_;
9525 }
9526 device_uuid_ = nullptr;
9527 ::memset(&status_, 0, static_cast<size_t>(
9528 reinterpret_cast<char*>(&reason_) -
9529 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
9530 _internal_metadata_.Clear();
9531}
9532
9533#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
9534const char* GetLogLevelResponse::_InternalParse(const char* begin, const char* end, void* object,
9535 ::google::protobuf::internal::ParseContext* ctx) {
9536 auto msg = static_cast<GetLogLevelResponse*>(object);
9537 ::google::protobuf::int32 size; (void)size;
9538 int depth; (void)depth;
9539 ::google::protobuf::uint32 tag;
9540 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
9541 auto ptr = begin;
9542 while (ptr < end) {
9543 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
9544 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
9545 switch (tag >> 3) {
9546 // .dmi.Uuid device_uuid = 1;
9547 case 1: {
9548 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
9549 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
9550 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
9551 parser_till_end = ::dmi::Uuid::_InternalParse;
9552 object = msg->mutable_device_uuid();
9553 if (size > end - ptr) goto len_delim_till_end;
9554 ptr += size;
9555 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
9556 {parser_till_end, object}, ptr - size, ptr));
9557 break;
9558 }
9559 // repeated .dmi.EntitiesLogLevel logLevels = 2;
9560 case 2: {
9561 if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
9562 do {
9563 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
9564 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
9565 parser_till_end = ::dmi::EntitiesLogLevel::_InternalParse;
9566 object = msg->add_loglevels();
9567 if (size > end - ptr) goto len_delim_till_end;
9568 ptr += size;
9569 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
9570 {parser_till_end, object}, ptr - size, ptr));
9571 if (ptr >= end) break;
9572 } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1));
9573 break;
9574 }
9575 // .dmi.Status status = 3;
9576 case 3: {
9577 if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual;
9578 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
9579 msg->set_status(static_cast<::dmi::Status>(val));
9580 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
9581 break;
9582 }
9583 // .dmi.GetLogLevelResponse.Reason reason = 4;
9584 case 4: {
9585 if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual;
9586 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
9587 msg->set_reason(static_cast<::dmi::GetLogLevelResponse_Reason>(val));
9588 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
9589 break;
9590 }
9591 // string reason_detail = 5;
9592 case 5: {
9593 if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual;
9594 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
9595 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
9596 ctx->extra_parse_data().SetFieldName("dmi.GetLogLevelResponse.reason_detail");
9597 object = msg->mutable_reason_detail();
9598 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
9599 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
9600 goto string_till_end;
9601 }
9602 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
9603 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
9604 ptr += size;
9605 break;
9606 }
9607 default: {
9608 handle_unusual:
9609 if ((tag & 7) == 4 || tag == 0) {
9610 ctx->EndGroup(tag);
9611 return ptr;
9612 }
9613 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
9614 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
9615 ptr = res.first;
9616 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
9617 if (res.second) return ptr;
9618 }
9619 } // switch
9620 } // while
9621 return ptr;
9622string_till_end:
9623 static_cast<::std::string*>(object)->clear();
9624 static_cast<::std::string*>(object)->reserve(size);
9625 goto len_delim_till_end;
9626len_delim_till_end:
9627 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
9628 {parser_till_end, object}, size);
9629}
9630#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
9631bool GetLogLevelResponse::MergePartialFromCodedStream(
9632 ::google::protobuf::io::CodedInputStream* input) {
9633#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
9634 ::google::protobuf::uint32 tag;
9635 // @@protoc_insertion_point(parse_start:dmi.GetLogLevelResponse)
9636 for (;;) {
9637 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
9638 tag = p.first;
9639 if (!p.second) goto handle_unusual;
9640 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
9641 // .dmi.Uuid device_uuid = 1;
9642 case 1: {
9643 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
9644 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
9645 input, mutable_device_uuid()));
9646 } else {
9647 goto handle_unusual;
9648 }
9649 break;
9650 }
9651
9652 // repeated .dmi.EntitiesLogLevel logLevels = 2;
9653 case 2: {
9654 if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
9655 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
9656 input, add_loglevels()));
9657 } else {
9658 goto handle_unusual;
9659 }
9660 break;
9661 }
9662
9663 // .dmi.Status status = 3;
9664 case 3: {
9665 if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) {
9666 int value = 0;
9667 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9668 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
9669 input, &value)));
9670 set_status(static_cast< ::dmi::Status >(value));
9671 } else {
9672 goto handle_unusual;
9673 }
9674 break;
9675 }
9676
9677 // .dmi.GetLogLevelResponse.Reason reason = 4;
9678 case 4: {
9679 if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) {
9680 int value = 0;
9681 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9682 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
9683 input, &value)));
9684 set_reason(static_cast< ::dmi::GetLogLevelResponse_Reason >(value));
9685 } else {
9686 goto handle_unusual;
9687 }
9688 break;
9689 }
9690
9691 // string reason_detail = 5;
9692 case 5: {
9693 if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) {
9694 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
9695 input, this->mutable_reason_detail()));
9696 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
9697 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
9698 ::google::protobuf::internal::WireFormatLite::PARSE,
9699 "dmi.GetLogLevelResponse.reason_detail"));
9700 } else {
9701 goto handle_unusual;
9702 }
9703 break;
9704 }
9705
9706 default: {
9707 handle_unusual:
9708 if (tag == 0) {
9709 goto success;
9710 }
9711 DO_(::google::protobuf::internal::WireFormat::SkipField(
9712 input, tag, _internal_metadata_.mutable_unknown_fields()));
9713 break;
9714 }
9715 }
9716 }
9717success:
9718 // @@protoc_insertion_point(parse_success:dmi.GetLogLevelResponse)
9719 return true;
9720failure:
9721 // @@protoc_insertion_point(parse_failure:dmi.GetLogLevelResponse)
9722 return false;
9723#undef DO_
9724}
9725#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
9726
9727void GetLogLevelResponse::SerializeWithCachedSizes(
9728 ::google::protobuf::io::CodedOutputStream* output) const {
9729 // @@protoc_insertion_point(serialize_start:dmi.GetLogLevelResponse)
9730 ::google::protobuf::uint32 cached_has_bits = 0;
9731 (void) cached_has_bits;
9732
9733 // .dmi.Uuid device_uuid = 1;
9734 if (this->has_device_uuid()) {
9735 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9736 1, HasBitSetters::device_uuid(this), output);
9737 }
9738
9739 // repeated .dmi.EntitiesLogLevel logLevels = 2;
9740 for (unsigned int i = 0,
9741 n = static_cast<unsigned int>(this->loglevels_size()); i < n; i++) {
9742 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9743 2,
9744 this->loglevels(static_cast<int>(i)),
9745 output);
9746 }
9747
9748 // .dmi.Status status = 3;
9749 if (this->status() != 0) {
9750 ::google::protobuf::internal::WireFormatLite::WriteEnum(
9751 3, this->status(), output);
9752 }
9753
9754 // .dmi.GetLogLevelResponse.Reason reason = 4;
9755 if (this->reason() != 0) {
9756 ::google::protobuf::internal::WireFormatLite::WriteEnum(
9757 4, this->reason(), output);
9758 }
9759
9760 // string reason_detail = 5;
9761 if (this->reason_detail().size() > 0) {
9762 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
9763 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
9764 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
9765 "dmi.GetLogLevelResponse.reason_detail");
9766 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
9767 5, this->reason_detail(), output);
9768 }
9769
9770 if (_internal_metadata_.have_unknown_fields()) {
9771 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
9772 _internal_metadata_.unknown_fields(), output);
9773 }
9774 // @@protoc_insertion_point(serialize_end:dmi.GetLogLevelResponse)
9775}
9776
9777::google::protobuf::uint8* GetLogLevelResponse::InternalSerializeWithCachedSizesToArray(
9778 ::google::protobuf::uint8* target) const {
9779 // @@protoc_insertion_point(serialize_to_array_start:dmi.GetLogLevelResponse)
9780 ::google::protobuf::uint32 cached_has_bits = 0;
9781 (void) cached_has_bits;
9782
9783 // .dmi.Uuid device_uuid = 1;
9784 if (this->has_device_uuid()) {
9785 target = ::google::protobuf::internal::WireFormatLite::
9786 InternalWriteMessageToArray(
9787 1, HasBitSetters::device_uuid(this), target);
9788 }
9789
9790 // repeated .dmi.EntitiesLogLevel logLevels = 2;
9791 for (unsigned int i = 0,
9792 n = static_cast<unsigned int>(this->loglevels_size()); i < n; i++) {
9793 target = ::google::protobuf::internal::WireFormatLite::
9794 InternalWriteMessageToArray(
9795 2, this->loglevels(static_cast<int>(i)), target);
9796 }
9797
9798 // .dmi.Status status = 3;
9799 if (this->status() != 0) {
9800 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
9801 3, this->status(), target);
9802 }
9803
9804 // .dmi.GetLogLevelResponse.Reason reason = 4;
9805 if (this->reason() != 0) {
9806 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
9807 4, this->reason(), target);
9808 }
9809
9810 // string reason_detail = 5;
9811 if (this->reason_detail().size() > 0) {
9812 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
9813 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
9814 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
9815 "dmi.GetLogLevelResponse.reason_detail");
9816 target =
9817 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
9818 5, this->reason_detail(), target);
9819 }
9820
9821 if (_internal_metadata_.have_unknown_fields()) {
9822 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
9823 _internal_metadata_.unknown_fields(), target);
9824 }
9825 // @@protoc_insertion_point(serialize_to_array_end:dmi.GetLogLevelResponse)
9826 return target;
9827}
9828
9829size_t GetLogLevelResponse::ByteSizeLong() const {
9830// @@protoc_insertion_point(message_byte_size_start:dmi.GetLogLevelResponse)
9831 size_t total_size = 0;
9832
9833 if (_internal_metadata_.have_unknown_fields()) {
9834 total_size +=
9835 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
9836 _internal_metadata_.unknown_fields());
9837 }
9838 ::google::protobuf::uint32 cached_has_bits = 0;
9839 // Prevent compiler warnings about cached_has_bits being unused
9840 (void) cached_has_bits;
9841
9842 // repeated .dmi.EntitiesLogLevel logLevels = 2;
9843 {
9844 unsigned int count = static_cast<unsigned int>(this->loglevels_size());
9845 total_size += 1UL * count;
9846 for (unsigned int i = 0; i < count; i++) {
9847 total_size +=
9848 ::google::protobuf::internal::WireFormatLite::MessageSize(
9849 this->loglevels(static_cast<int>(i)));
9850 }
9851 }
9852
9853 // string reason_detail = 5;
9854 if (this->reason_detail().size() > 0) {
9855 total_size += 1 +
9856 ::google::protobuf::internal::WireFormatLite::StringSize(
9857 this->reason_detail());
9858 }
9859
9860 // .dmi.Uuid device_uuid = 1;
9861 if (this->has_device_uuid()) {
9862 total_size += 1 +
9863 ::google::protobuf::internal::WireFormatLite::MessageSize(
9864 *device_uuid_);
9865 }
9866
9867 // .dmi.Status status = 3;
9868 if (this->status() != 0) {
9869 total_size += 1 +
9870 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
9871 }
9872
9873 // .dmi.GetLogLevelResponse.Reason reason = 4;
9874 if (this->reason() != 0) {
9875 total_size += 1 +
9876 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
9877 }
9878
9879 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
9880 SetCachedSize(cached_size);
9881 return total_size;
9882}
9883
9884void GetLogLevelResponse::MergeFrom(const ::google::protobuf::Message& from) {
9885// @@protoc_insertion_point(generalized_merge_from_start:dmi.GetLogLevelResponse)
9886 GOOGLE_DCHECK_NE(&from, this);
9887 const GetLogLevelResponse* source =
9888 ::google::protobuf::DynamicCastToGenerated<GetLogLevelResponse>(
9889 &from);
9890 if (source == nullptr) {
9891 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.GetLogLevelResponse)
9892 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
9893 } else {
9894 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.GetLogLevelResponse)
9895 MergeFrom(*source);
9896 }
9897}
9898
9899void GetLogLevelResponse::MergeFrom(const GetLogLevelResponse& from) {
9900// @@protoc_insertion_point(class_specific_merge_from_start:dmi.GetLogLevelResponse)
9901 GOOGLE_DCHECK_NE(&from, this);
9902 _internal_metadata_.MergeFrom(from._internal_metadata_);
9903 ::google::protobuf::uint32 cached_has_bits = 0;
9904 (void) cached_has_bits;
9905
9906 loglevels_.MergeFrom(from.loglevels_);
9907 if (from.reason_detail().size() > 0) {
9908
9909 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
9910 }
9911 if (from.has_device_uuid()) {
9912 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
9913 }
9914 if (from.status() != 0) {
9915 set_status(from.status());
9916 }
9917 if (from.reason() != 0) {
9918 set_reason(from.reason());
9919 }
9920}
9921
9922void GetLogLevelResponse::CopyFrom(const ::google::protobuf::Message& from) {
9923// @@protoc_insertion_point(generalized_copy_from_start:dmi.GetLogLevelResponse)
9924 if (&from == this) return;
9925 Clear();
9926 MergeFrom(from);
9927}
9928
9929void GetLogLevelResponse::CopyFrom(const GetLogLevelResponse& from) {
9930// @@protoc_insertion_point(class_specific_copy_from_start:dmi.GetLogLevelResponse)
9931 if (&from == this) return;
9932 Clear();
9933 MergeFrom(from);
9934}
9935
9936bool GetLogLevelResponse::IsInitialized() const {
9937 return true;
9938}
9939
9940void GetLogLevelResponse::Swap(GetLogLevelResponse* other) {
9941 if (other == this) return;
9942 InternalSwap(other);
9943}
9944void GetLogLevelResponse::InternalSwap(GetLogLevelResponse* other) {
9945 using std::swap;
9946 _internal_metadata_.Swap(&other->_internal_metadata_);
9947 CastToBase(&loglevels_)->InternalSwap(CastToBase(&other->loglevels_));
9948 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
9949 GetArenaNoVirtual());
9950 swap(device_uuid_, other->device_uuid_);
9951 swap(status_, other->status_);
9952 swap(reason_, other->reason_);
9953}
9954
9955::google::protobuf::Metadata GetLogLevelResponse::GetMetadata() const {
9956 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
9957 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
9958}
9959
9960
9961// ===================================================================
9962
9963void GetLoggableEntitiesRequest::InitAsDefaultInstance() {
9964 ::dmi::_GetLoggableEntitiesRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
9965 ::dmi::Uuid::internal_default_instance());
9966}
9967class GetLoggableEntitiesRequest::HasBitSetters {
9968 public:
9969 static const ::dmi::Uuid& device_uuid(const GetLoggableEntitiesRequest* msg);
9970};
9971
9972const ::dmi::Uuid&
9973GetLoggableEntitiesRequest::HasBitSetters::device_uuid(const GetLoggableEntitiesRequest* msg) {
9974 return *msg->device_uuid_;
9975}
9976void GetLoggableEntitiesRequest::clear_device_uuid() {
9977 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
9978 delete device_uuid_;
9979 }
9980 device_uuid_ = nullptr;
9981}
9982#if !defined(_MSC_VER) || _MSC_VER >= 1900
9983const int GetLoggableEntitiesRequest::kDeviceUuidFieldNumber;
9984#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
9985
9986GetLoggableEntitiesRequest::GetLoggableEntitiesRequest()
9987 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
9988 SharedCtor();
9989 // @@protoc_insertion_point(constructor:dmi.GetLoggableEntitiesRequest)
9990}
9991GetLoggableEntitiesRequest::GetLoggableEntitiesRequest(const GetLoggableEntitiesRequest& from)
9992 : ::google::protobuf::Message(),
9993 _internal_metadata_(nullptr) {
9994 _internal_metadata_.MergeFrom(from._internal_metadata_);
9995 if (from.has_device_uuid()) {
9996 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
9997 } else {
9998 device_uuid_ = nullptr;
9999 }
10000 // @@protoc_insertion_point(copy_constructor:dmi.GetLoggableEntitiesRequest)
10001}
10002
10003void GetLoggableEntitiesRequest::SharedCtor() {
10004 ::google::protobuf::internal::InitSCC(
10005 &scc_info_GetLoggableEntitiesRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
10006 device_uuid_ = nullptr;
10007}
10008
10009GetLoggableEntitiesRequest::~GetLoggableEntitiesRequest() {
10010 // @@protoc_insertion_point(destructor:dmi.GetLoggableEntitiesRequest)
10011 SharedDtor();
10012}
10013
10014void GetLoggableEntitiesRequest::SharedDtor() {
10015 if (this != internal_default_instance()) delete device_uuid_;
10016}
10017
10018void GetLoggableEntitiesRequest::SetCachedSize(int size) const {
10019 _cached_size_.Set(size);
10020}
10021const GetLoggableEntitiesRequest& GetLoggableEntitiesRequest::default_instance() {
10022 ::google::protobuf::internal::InitSCC(&::scc_info_GetLoggableEntitiesRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
10023 return *internal_default_instance();
10024}
10025
10026
10027void GetLoggableEntitiesRequest::Clear() {
10028// @@protoc_insertion_point(message_clear_start:dmi.GetLoggableEntitiesRequest)
10029 ::google::protobuf::uint32 cached_has_bits = 0;
10030 // Prevent compiler warnings about cached_has_bits being unused
10031 (void) cached_has_bits;
10032
10033 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
10034 delete device_uuid_;
10035 }
10036 device_uuid_ = nullptr;
10037 _internal_metadata_.Clear();
10038}
10039
10040#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10041const char* GetLoggableEntitiesRequest::_InternalParse(const char* begin, const char* end, void* object,
10042 ::google::protobuf::internal::ParseContext* ctx) {
10043 auto msg = static_cast<GetLoggableEntitiesRequest*>(object);
10044 ::google::protobuf::int32 size; (void)size;
10045 int depth; (void)depth;
10046 ::google::protobuf::uint32 tag;
10047 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
10048 auto ptr = begin;
10049 while (ptr < end) {
10050 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
10051 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
10052 switch (tag >> 3) {
10053 // .dmi.Uuid device_uuid = 1;
10054 case 1: {
10055 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
10056 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
10057 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
10058 parser_till_end = ::dmi::Uuid::_InternalParse;
10059 object = msg->mutable_device_uuid();
10060 if (size > end - ptr) goto len_delim_till_end;
10061 ptr += size;
10062 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
10063 {parser_till_end, object}, ptr - size, ptr));
10064 break;
10065 }
10066 default: {
10067 handle_unusual:
10068 if ((tag & 7) == 4 || tag == 0) {
10069 ctx->EndGroup(tag);
10070 return ptr;
10071 }
10072 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
10073 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
10074 ptr = res.first;
10075 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
10076 if (res.second) return ptr;
10077 }
10078 } // switch
10079 } // while
10080 return ptr;
10081len_delim_till_end:
10082 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
10083 {parser_till_end, object}, size);
10084}
10085#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10086bool GetLoggableEntitiesRequest::MergePartialFromCodedStream(
10087 ::google::protobuf::io::CodedInputStream* input) {
10088#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
10089 ::google::protobuf::uint32 tag;
10090 // @@protoc_insertion_point(parse_start:dmi.GetLoggableEntitiesRequest)
10091 for (;;) {
10092 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
10093 tag = p.first;
10094 if (!p.second) goto handle_unusual;
10095 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
10096 // .dmi.Uuid device_uuid = 1;
10097 case 1: {
10098 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
10099 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
10100 input, mutable_device_uuid()));
10101 } else {
10102 goto handle_unusual;
10103 }
10104 break;
10105 }
10106
10107 default: {
10108 handle_unusual:
10109 if (tag == 0) {
10110 goto success;
10111 }
10112 DO_(::google::protobuf::internal::WireFormat::SkipField(
10113 input, tag, _internal_metadata_.mutable_unknown_fields()));
10114 break;
10115 }
10116 }
10117 }
10118success:
10119 // @@protoc_insertion_point(parse_success:dmi.GetLoggableEntitiesRequest)
10120 return true;
10121failure:
10122 // @@protoc_insertion_point(parse_failure:dmi.GetLoggableEntitiesRequest)
10123 return false;
10124#undef DO_
10125}
10126#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10127
10128void GetLoggableEntitiesRequest::SerializeWithCachedSizes(
10129 ::google::protobuf::io::CodedOutputStream* output) const {
10130 // @@protoc_insertion_point(serialize_start:dmi.GetLoggableEntitiesRequest)
10131 ::google::protobuf::uint32 cached_has_bits = 0;
10132 (void) cached_has_bits;
10133
10134 // .dmi.Uuid device_uuid = 1;
10135 if (this->has_device_uuid()) {
10136 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10137 1, HasBitSetters::device_uuid(this), output);
10138 }
10139
10140 if (_internal_metadata_.have_unknown_fields()) {
10141 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
10142 _internal_metadata_.unknown_fields(), output);
10143 }
10144 // @@protoc_insertion_point(serialize_end:dmi.GetLoggableEntitiesRequest)
10145}
10146
10147::google::protobuf::uint8* GetLoggableEntitiesRequest::InternalSerializeWithCachedSizesToArray(
10148 ::google::protobuf::uint8* target) const {
10149 // @@protoc_insertion_point(serialize_to_array_start:dmi.GetLoggableEntitiesRequest)
10150 ::google::protobuf::uint32 cached_has_bits = 0;
10151 (void) cached_has_bits;
10152
10153 // .dmi.Uuid device_uuid = 1;
10154 if (this->has_device_uuid()) {
10155 target = ::google::protobuf::internal::WireFormatLite::
10156 InternalWriteMessageToArray(
10157 1, HasBitSetters::device_uuid(this), target);
10158 }
10159
10160 if (_internal_metadata_.have_unknown_fields()) {
10161 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
10162 _internal_metadata_.unknown_fields(), target);
10163 }
10164 // @@protoc_insertion_point(serialize_to_array_end:dmi.GetLoggableEntitiesRequest)
10165 return target;
10166}
10167
10168size_t GetLoggableEntitiesRequest::ByteSizeLong() const {
10169// @@protoc_insertion_point(message_byte_size_start:dmi.GetLoggableEntitiesRequest)
10170 size_t total_size = 0;
10171
10172 if (_internal_metadata_.have_unknown_fields()) {
10173 total_size +=
10174 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
10175 _internal_metadata_.unknown_fields());
10176 }
10177 ::google::protobuf::uint32 cached_has_bits = 0;
10178 // Prevent compiler warnings about cached_has_bits being unused
10179 (void) cached_has_bits;
10180
10181 // .dmi.Uuid device_uuid = 1;
10182 if (this->has_device_uuid()) {
10183 total_size += 1 +
10184 ::google::protobuf::internal::WireFormatLite::MessageSize(
10185 *device_uuid_);
10186 }
10187
10188 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
10189 SetCachedSize(cached_size);
10190 return total_size;
10191}
10192
10193void GetLoggableEntitiesRequest::MergeFrom(const ::google::protobuf::Message& from) {
10194// @@protoc_insertion_point(generalized_merge_from_start:dmi.GetLoggableEntitiesRequest)
10195 GOOGLE_DCHECK_NE(&from, this);
10196 const GetLoggableEntitiesRequest* source =
10197 ::google::protobuf::DynamicCastToGenerated<GetLoggableEntitiesRequest>(
10198 &from);
10199 if (source == nullptr) {
10200 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.GetLoggableEntitiesRequest)
10201 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
10202 } else {
10203 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.GetLoggableEntitiesRequest)
10204 MergeFrom(*source);
10205 }
10206}
10207
10208void GetLoggableEntitiesRequest::MergeFrom(const GetLoggableEntitiesRequest& from) {
10209// @@protoc_insertion_point(class_specific_merge_from_start:dmi.GetLoggableEntitiesRequest)
10210 GOOGLE_DCHECK_NE(&from, this);
10211 _internal_metadata_.MergeFrom(from._internal_metadata_);
10212 ::google::protobuf::uint32 cached_has_bits = 0;
10213 (void) cached_has_bits;
10214
10215 if (from.has_device_uuid()) {
10216 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
10217 }
10218}
10219
10220void GetLoggableEntitiesRequest::CopyFrom(const ::google::protobuf::Message& from) {
10221// @@protoc_insertion_point(generalized_copy_from_start:dmi.GetLoggableEntitiesRequest)
10222 if (&from == this) return;
10223 Clear();
10224 MergeFrom(from);
10225}
10226
10227void GetLoggableEntitiesRequest::CopyFrom(const GetLoggableEntitiesRequest& from) {
10228// @@protoc_insertion_point(class_specific_copy_from_start:dmi.GetLoggableEntitiesRequest)
10229 if (&from == this) return;
10230 Clear();
10231 MergeFrom(from);
10232}
10233
10234bool GetLoggableEntitiesRequest::IsInitialized() const {
10235 return true;
10236}
10237
10238void GetLoggableEntitiesRequest::Swap(GetLoggableEntitiesRequest* other) {
10239 if (other == this) return;
10240 InternalSwap(other);
10241}
10242void GetLoggableEntitiesRequest::InternalSwap(GetLoggableEntitiesRequest* other) {
10243 using std::swap;
10244 _internal_metadata_.Swap(&other->_internal_metadata_);
10245 swap(device_uuid_, other->device_uuid_);
10246}
10247
10248::google::protobuf::Metadata GetLoggableEntitiesRequest::GetMetadata() const {
10249 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
10250 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
10251}
10252
10253
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +053010254// ===================================================================
10255
10256void Heartbeat::InitAsDefaultInstance() {
10257}
10258class Heartbeat::HasBitSetters {
10259 public:
10260};
10261
10262#if !defined(_MSC_VER) || _MSC_VER >= 1900
10263const int Heartbeat::kHeartbeatSignatureFieldNumber;
10264#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
10265
10266Heartbeat::Heartbeat()
10267 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
10268 SharedCtor();
10269 // @@protoc_insertion_point(constructor:dmi.Heartbeat)
10270}
10271Heartbeat::Heartbeat(const Heartbeat& from)
10272 : ::google::protobuf::Message(),
10273 _internal_metadata_(nullptr) {
10274 _internal_metadata_.MergeFrom(from._internal_metadata_);
10275 heartbeat_signature_ = from.heartbeat_signature_;
10276 // @@protoc_insertion_point(copy_constructor:dmi.Heartbeat)
10277}
10278
10279void Heartbeat::SharedCtor() {
10280 heartbeat_signature_ = 0u;
10281}
10282
10283Heartbeat::~Heartbeat() {
10284 // @@protoc_insertion_point(destructor:dmi.Heartbeat)
10285 SharedDtor();
10286}
10287
10288void Heartbeat::SharedDtor() {
10289}
10290
10291void Heartbeat::SetCachedSize(int size) const {
10292 _cached_size_.Set(size);
10293}
10294const Heartbeat& Heartbeat::default_instance() {
10295 ::google::protobuf::internal::InitSCC(&::scc_info_Heartbeat_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
10296 return *internal_default_instance();
10297}
10298
10299
10300void Heartbeat::Clear() {
10301// @@protoc_insertion_point(message_clear_start:dmi.Heartbeat)
10302 ::google::protobuf::uint32 cached_has_bits = 0;
10303 // Prevent compiler warnings about cached_has_bits being unused
10304 (void) cached_has_bits;
10305
10306 heartbeat_signature_ = 0u;
10307 _internal_metadata_.Clear();
10308}
10309
10310#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10311const char* Heartbeat::_InternalParse(const char* begin, const char* end, void* object,
10312 ::google::protobuf::internal::ParseContext* ctx) {
10313 auto msg = static_cast<Heartbeat*>(object);
10314 ::google::protobuf::int32 size; (void)size;
10315 int depth; (void)depth;
10316 ::google::protobuf::uint32 tag;
10317 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
10318 auto ptr = begin;
10319 while (ptr < end) {
10320 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
10321 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
10322 switch (tag >> 3) {
10323 // fixed32 heartbeat_signature = 1;
10324 case 1: {
10325 if (static_cast<::google::protobuf::uint8>(tag) != 13) goto handle_unusual;
10326 msg->set_heartbeat_signature(::google::protobuf::io::UnalignedLoad<::google::protobuf::uint32>(ptr));
10327 ptr += sizeof(::google::protobuf::uint32);
10328 break;
10329 }
10330 default: {
10331 handle_unusual:
10332 if ((tag & 7) == 4 || tag == 0) {
10333 ctx->EndGroup(tag);
10334 return ptr;
10335 }
10336 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
10337 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
10338 ptr = res.first;
10339 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
10340 if (res.second) return ptr;
10341 }
10342 } // switch
10343 } // while
10344 return ptr;
10345}
10346#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10347bool Heartbeat::MergePartialFromCodedStream(
10348 ::google::protobuf::io::CodedInputStream* input) {
10349#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
10350 ::google::protobuf::uint32 tag;
10351 // @@protoc_insertion_point(parse_start:dmi.Heartbeat)
10352 for (;;) {
10353 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
10354 tag = p.first;
10355 if (!p.second) goto handle_unusual;
10356 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
10357 // fixed32 heartbeat_signature = 1;
10358 case 1: {
10359 if (static_cast< ::google::protobuf::uint8>(tag) == (13 & 0xFF)) {
10360
10361 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10362 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>(
10363 input, &heartbeat_signature_)));
10364 } else {
10365 goto handle_unusual;
10366 }
10367 break;
10368 }
10369
10370 default: {
10371 handle_unusual:
10372 if (tag == 0) {
10373 goto success;
10374 }
10375 DO_(::google::protobuf::internal::WireFormat::SkipField(
10376 input, tag, _internal_metadata_.mutable_unknown_fields()));
10377 break;
10378 }
10379 }
10380 }
10381success:
10382 // @@protoc_insertion_point(parse_success:dmi.Heartbeat)
10383 return true;
10384failure:
10385 // @@protoc_insertion_point(parse_failure:dmi.Heartbeat)
10386 return false;
10387#undef DO_
10388}
10389#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10390
10391void Heartbeat::SerializeWithCachedSizes(
10392 ::google::protobuf::io::CodedOutputStream* output) const {
10393 // @@protoc_insertion_point(serialize_start:dmi.Heartbeat)
10394 ::google::protobuf::uint32 cached_has_bits = 0;
10395 (void) cached_has_bits;
10396
10397 // fixed32 heartbeat_signature = 1;
10398 if (this->heartbeat_signature() != 0) {
10399 ::google::protobuf::internal::WireFormatLite::WriteFixed32(1, this->heartbeat_signature(), output);
10400 }
10401
10402 if (_internal_metadata_.have_unknown_fields()) {
10403 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
10404 _internal_metadata_.unknown_fields(), output);
10405 }
10406 // @@protoc_insertion_point(serialize_end:dmi.Heartbeat)
10407}
10408
10409::google::protobuf::uint8* Heartbeat::InternalSerializeWithCachedSizesToArray(
10410 ::google::protobuf::uint8* target) const {
10411 // @@protoc_insertion_point(serialize_to_array_start:dmi.Heartbeat)
10412 ::google::protobuf::uint32 cached_has_bits = 0;
10413 (void) cached_has_bits;
10414
10415 // fixed32 heartbeat_signature = 1;
10416 if (this->heartbeat_signature() != 0) {
10417 target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(1, this->heartbeat_signature(), target);
10418 }
10419
10420 if (_internal_metadata_.have_unknown_fields()) {
10421 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
10422 _internal_metadata_.unknown_fields(), target);
10423 }
10424 // @@protoc_insertion_point(serialize_to_array_end:dmi.Heartbeat)
10425 return target;
10426}
10427
10428size_t Heartbeat::ByteSizeLong() const {
10429// @@protoc_insertion_point(message_byte_size_start:dmi.Heartbeat)
10430 size_t total_size = 0;
10431
10432 if (_internal_metadata_.have_unknown_fields()) {
10433 total_size +=
10434 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
10435 _internal_metadata_.unknown_fields());
10436 }
10437 ::google::protobuf::uint32 cached_has_bits = 0;
10438 // Prevent compiler warnings about cached_has_bits being unused
10439 (void) cached_has_bits;
10440
10441 // fixed32 heartbeat_signature = 1;
10442 if (this->heartbeat_signature() != 0) {
10443 total_size += 1 + 4;
10444 }
10445
10446 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
10447 SetCachedSize(cached_size);
10448 return total_size;
10449}
10450
10451void Heartbeat::MergeFrom(const ::google::protobuf::Message& from) {
10452// @@protoc_insertion_point(generalized_merge_from_start:dmi.Heartbeat)
10453 GOOGLE_DCHECK_NE(&from, this);
10454 const Heartbeat* source =
10455 ::google::protobuf::DynamicCastToGenerated<Heartbeat>(
10456 &from);
10457 if (source == nullptr) {
10458 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.Heartbeat)
10459 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
10460 } else {
10461 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.Heartbeat)
10462 MergeFrom(*source);
10463 }
10464}
10465
10466void Heartbeat::MergeFrom(const Heartbeat& from) {
10467// @@protoc_insertion_point(class_specific_merge_from_start:dmi.Heartbeat)
10468 GOOGLE_DCHECK_NE(&from, this);
10469 _internal_metadata_.MergeFrom(from._internal_metadata_);
10470 ::google::protobuf::uint32 cached_has_bits = 0;
10471 (void) cached_has_bits;
10472
10473 if (from.heartbeat_signature() != 0) {
10474 set_heartbeat_signature(from.heartbeat_signature());
10475 }
10476}
10477
10478void Heartbeat::CopyFrom(const ::google::protobuf::Message& from) {
10479// @@protoc_insertion_point(generalized_copy_from_start:dmi.Heartbeat)
10480 if (&from == this) return;
10481 Clear();
10482 MergeFrom(from);
10483}
10484
10485void Heartbeat::CopyFrom(const Heartbeat& from) {
10486// @@protoc_insertion_point(class_specific_copy_from_start:dmi.Heartbeat)
10487 if (&from == this) return;
10488 Clear();
10489 MergeFrom(from);
10490}
10491
10492bool Heartbeat::IsInitialized() const {
10493 return true;
10494}
10495
10496void Heartbeat::Swap(Heartbeat* other) {
10497 if (other == this) return;
10498 InternalSwap(other);
10499}
10500void Heartbeat::InternalSwap(Heartbeat* other) {
10501 using std::swap;
10502 _internal_metadata_.Swap(&other->_internal_metadata_);
10503 swap(heartbeat_signature_, other->heartbeat_signature_);
10504}
10505
10506::google::protobuf::Metadata Heartbeat::GetMetadata() const {
10507 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
10508 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
10509}
10510
10511
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +053010512// ===================================================================
10513
10514void RebootDeviceRequest::InitAsDefaultInstance() {
10515 ::dmi::_RebootDeviceRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
10516 ::dmi::Uuid::internal_default_instance());
10517}
10518class RebootDeviceRequest::HasBitSetters {
10519 public:
10520 static const ::dmi::Uuid& device_uuid(const RebootDeviceRequest* msg);
10521};
10522
10523const ::dmi::Uuid&
10524RebootDeviceRequest::HasBitSetters::device_uuid(const RebootDeviceRequest* msg) {
10525 return *msg->device_uuid_;
10526}
10527void RebootDeviceRequest::clear_device_uuid() {
10528 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
10529 delete device_uuid_;
10530 }
10531 device_uuid_ = nullptr;
10532}
10533#if !defined(_MSC_VER) || _MSC_VER >= 1900
10534const int RebootDeviceRequest::kDeviceUuidFieldNumber;
10535#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
10536
10537RebootDeviceRequest::RebootDeviceRequest()
10538 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
10539 SharedCtor();
10540 // @@protoc_insertion_point(constructor:dmi.RebootDeviceRequest)
10541}
10542RebootDeviceRequest::RebootDeviceRequest(const RebootDeviceRequest& from)
10543 : ::google::protobuf::Message(),
10544 _internal_metadata_(nullptr) {
10545 _internal_metadata_.MergeFrom(from._internal_metadata_);
10546 if (from.has_device_uuid()) {
10547 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
10548 } else {
10549 device_uuid_ = nullptr;
10550 }
10551 // @@protoc_insertion_point(copy_constructor:dmi.RebootDeviceRequest)
10552}
10553
10554void RebootDeviceRequest::SharedCtor() {
10555 ::google::protobuf::internal::InitSCC(
10556 &scc_info_RebootDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
10557 device_uuid_ = nullptr;
10558}
10559
10560RebootDeviceRequest::~RebootDeviceRequest() {
10561 // @@protoc_insertion_point(destructor:dmi.RebootDeviceRequest)
10562 SharedDtor();
10563}
10564
10565void RebootDeviceRequest::SharedDtor() {
10566 if (this != internal_default_instance()) delete device_uuid_;
10567}
10568
10569void RebootDeviceRequest::SetCachedSize(int size) const {
10570 _cached_size_.Set(size);
10571}
10572const RebootDeviceRequest& RebootDeviceRequest::default_instance() {
10573 ::google::protobuf::internal::InitSCC(&::scc_info_RebootDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
10574 return *internal_default_instance();
10575}
10576
10577
10578void RebootDeviceRequest::Clear() {
10579// @@protoc_insertion_point(message_clear_start:dmi.RebootDeviceRequest)
10580 ::google::protobuf::uint32 cached_has_bits = 0;
10581 // Prevent compiler warnings about cached_has_bits being unused
10582 (void) cached_has_bits;
10583
10584 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
10585 delete device_uuid_;
10586 }
10587 device_uuid_ = nullptr;
10588 _internal_metadata_.Clear();
10589}
10590
10591#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10592const char* RebootDeviceRequest::_InternalParse(const char* begin, const char* end, void* object,
10593 ::google::protobuf::internal::ParseContext* ctx) {
10594 auto msg = static_cast<RebootDeviceRequest*>(object);
10595 ::google::protobuf::int32 size; (void)size;
10596 int depth; (void)depth;
10597 ::google::protobuf::uint32 tag;
10598 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
10599 auto ptr = begin;
10600 while (ptr < end) {
10601 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
10602 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
10603 switch (tag >> 3) {
10604 // .dmi.Uuid device_uuid = 1;
10605 case 1: {
10606 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
10607 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
10608 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
10609 parser_till_end = ::dmi::Uuid::_InternalParse;
10610 object = msg->mutable_device_uuid();
10611 if (size > end - ptr) goto len_delim_till_end;
10612 ptr += size;
10613 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
10614 {parser_till_end, object}, ptr - size, ptr));
10615 break;
10616 }
10617 default: {
10618 handle_unusual:
10619 if ((tag & 7) == 4 || tag == 0) {
10620 ctx->EndGroup(tag);
10621 return ptr;
10622 }
10623 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
10624 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
10625 ptr = res.first;
10626 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
10627 if (res.second) return ptr;
10628 }
10629 } // switch
10630 } // while
10631 return ptr;
10632len_delim_till_end:
10633 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
10634 {parser_till_end, object}, size);
10635}
10636#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10637bool RebootDeviceRequest::MergePartialFromCodedStream(
10638 ::google::protobuf::io::CodedInputStream* input) {
10639#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
10640 ::google::protobuf::uint32 tag;
10641 // @@protoc_insertion_point(parse_start:dmi.RebootDeviceRequest)
10642 for (;;) {
10643 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
10644 tag = p.first;
10645 if (!p.second) goto handle_unusual;
10646 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
10647 // .dmi.Uuid device_uuid = 1;
10648 case 1: {
10649 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
10650 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
10651 input, mutable_device_uuid()));
10652 } else {
10653 goto handle_unusual;
10654 }
10655 break;
10656 }
10657
10658 default: {
10659 handle_unusual:
10660 if (tag == 0) {
10661 goto success;
10662 }
10663 DO_(::google::protobuf::internal::WireFormat::SkipField(
10664 input, tag, _internal_metadata_.mutable_unknown_fields()));
10665 break;
10666 }
10667 }
10668 }
10669success:
10670 // @@protoc_insertion_point(parse_success:dmi.RebootDeviceRequest)
10671 return true;
10672failure:
10673 // @@protoc_insertion_point(parse_failure:dmi.RebootDeviceRequest)
10674 return false;
10675#undef DO_
10676}
10677#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10678
10679void RebootDeviceRequest::SerializeWithCachedSizes(
10680 ::google::protobuf::io::CodedOutputStream* output) const {
10681 // @@protoc_insertion_point(serialize_start:dmi.RebootDeviceRequest)
10682 ::google::protobuf::uint32 cached_has_bits = 0;
10683 (void) cached_has_bits;
10684
10685 // .dmi.Uuid device_uuid = 1;
10686 if (this->has_device_uuid()) {
10687 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10688 1, HasBitSetters::device_uuid(this), output);
10689 }
10690
10691 if (_internal_metadata_.have_unknown_fields()) {
10692 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
10693 _internal_metadata_.unknown_fields(), output);
10694 }
10695 // @@protoc_insertion_point(serialize_end:dmi.RebootDeviceRequest)
10696}
10697
10698::google::protobuf::uint8* RebootDeviceRequest::InternalSerializeWithCachedSizesToArray(
10699 ::google::protobuf::uint8* target) const {
10700 // @@protoc_insertion_point(serialize_to_array_start:dmi.RebootDeviceRequest)
10701 ::google::protobuf::uint32 cached_has_bits = 0;
10702 (void) cached_has_bits;
10703
10704 // .dmi.Uuid device_uuid = 1;
10705 if (this->has_device_uuid()) {
10706 target = ::google::protobuf::internal::WireFormatLite::
10707 InternalWriteMessageToArray(
10708 1, HasBitSetters::device_uuid(this), target);
10709 }
10710
10711 if (_internal_metadata_.have_unknown_fields()) {
10712 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
10713 _internal_metadata_.unknown_fields(), target);
10714 }
10715 // @@protoc_insertion_point(serialize_to_array_end:dmi.RebootDeviceRequest)
10716 return target;
10717}
10718
10719size_t RebootDeviceRequest::ByteSizeLong() const {
10720// @@protoc_insertion_point(message_byte_size_start:dmi.RebootDeviceRequest)
10721 size_t total_size = 0;
10722
10723 if (_internal_metadata_.have_unknown_fields()) {
10724 total_size +=
10725 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
10726 _internal_metadata_.unknown_fields());
10727 }
10728 ::google::protobuf::uint32 cached_has_bits = 0;
10729 // Prevent compiler warnings about cached_has_bits being unused
10730 (void) cached_has_bits;
10731
10732 // .dmi.Uuid device_uuid = 1;
10733 if (this->has_device_uuid()) {
10734 total_size += 1 +
10735 ::google::protobuf::internal::WireFormatLite::MessageSize(
10736 *device_uuid_);
10737 }
10738
10739 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
10740 SetCachedSize(cached_size);
10741 return total_size;
10742}
10743
10744void RebootDeviceRequest::MergeFrom(const ::google::protobuf::Message& from) {
10745// @@protoc_insertion_point(generalized_merge_from_start:dmi.RebootDeviceRequest)
10746 GOOGLE_DCHECK_NE(&from, this);
10747 const RebootDeviceRequest* source =
10748 ::google::protobuf::DynamicCastToGenerated<RebootDeviceRequest>(
10749 &from);
10750 if (source == nullptr) {
10751 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.RebootDeviceRequest)
10752 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
10753 } else {
10754 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.RebootDeviceRequest)
10755 MergeFrom(*source);
10756 }
10757}
10758
10759void RebootDeviceRequest::MergeFrom(const RebootDeviceRequest& from) {
10760// @@protoc_insertion_point(class_specific_merge_from_start:dmi.RebootDeviceRequest)
10761 GOOGLE_DCHECK_NE(&from, this);
10762 _internal_metadata_.MergeFrom(from._internal_metadata_);
10763 ::google::protobuf::uint32 cached_has_bits = 0;
10764 (void) cached_has_bits;
10765
10766 if (from.has_device_uuid()) {
10767 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
10768 }
10769}
10770
10771void RebootDeviceRequest::CopyFrom(const ::google::protobuf::Message& from) {
10772// @@protoc_insertion_point(generalized_copy_from_start:dmi.RebootDeviceRequest)
10773 if (&from == this) return;
10774 Clear();
10775 MergeFrom(from);
10776}
10777
10778void RebootDeviceRequest::CopyFrom(const RebootDeviceRequest& from) {
10779// @@protoc_insertion_point(class_specific_copy_from_start:dmi.RebootDeviceRequest)
10780 if (&from == this) return;
10781 Clear();
10782 MergeFrom(from);
10783}
10784
10785bool RebootDeviceRequest::IsInitialized() const {
10786 return true;
10787}
10788
10789void RebootDeviceRequest::Swap(RebootDeviceRequest* other) {
10790 if (other == this) return;
10791 InternalSwap(other);
10792}
10793void RebootDeviceRequest::InternalSwap(RebootDeviceRequest* other) {
10794 using std::swap;
10795 _internal_metadata_.Swap(&other->_internal_metadata_);
10796 swap(device_uuid_, other->device_uuid_);
10797}
10798
10799::google::protobuf::Metadata RebootDeviceRequest::GetMetadata() const {
10800 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
10801 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
10802}
10803
10804
10805// ===================================================================
10806
10807void RebootDeviceResponse::InitAsDefaultInstance() {
10808}
10809class RebootDeviceResponse::HasBitSetters {
10810 public:
10811};
10812
10813#if !defined(_MSC_VER) || _MSC_VER >= 1900
10814const int RebootDeviceResponse::kStatusFieldNumber;
10815const int RebootDeviceResponse::kReasonFieldNumber;
10816const int RebootDeviceResponse::kReasonDetailFieldNumber;
10817#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
10818
10819RebootDeviceResponse::RebootDeviceResponse()
10820 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
10821 SharedCtor();
10822 // @@protoc_insertion_point(constructor:dmi.RebootDeviceResponse)
10823}
10824RebootDeviceResponse::RebootDeviceResponse(const RebootDeviceResponse& from)
10825 : ::google::protobuf::Message(),
10826 _internal_metadata_(nullptr) {
10827 _internal_metadata_.MergeFrom(from._internal_metadata_);
10828 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10829 if (from.reason_detail().size() > 0) {
10830 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
10831 }
10832 ::memcpy(&status_, &from.status_,
10833 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
10834 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
10835 // @@protoc_insertion_point(copy_constructor:dmi.RebootDeviceResponse)
10836}
10837
10838void RebootDeviceResponse::SharedCtor() {
10839 ::google::protobuf::internal::InitSCC(
10840 &scc_info_RebootDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
10841 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10842 ::memset(&status_, 0, static_cast<size_t>(
10843 reinterpret_cast<char*>(&reason_) -
10844 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
10845}
10846
10847RebootDeviceResponse::~RebootDeviceResponse() {
10848 // @@protoc_insertion_point(destructor:dmi.RebootDeviceResponse)
10849 SharedDtor();
10850}
10851
10852void RebootDeviceResponse::SharedDtor() {
10853 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10854}
10855
10856void RebootDeviceResponse::SetCachedSize(int size) const {
10857 _cached_size_.Set(size);
10858}
10859const RebootDeviceResponse& RebootDeviceResponse::default_instance() {
10860 ::google::protobuf::internal::InitSCC(&::scc_info_RebootDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base);
10861 return *internal_default_instance();
10862}
10863
10864
10865void RebootDeviceResponse::Clear() {
10866// @@protoc_insertion_point(message_clear_start:dmi.RebootDeviceResponse)
10867 ::google::protobuf::uint32 cached_has_bits = 0;
10868 // Prevent compiler warnings about cached_has_bits being unused
10869 (void) cached_has_bits;
10870
10871 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10872 ::memset(&status_, 0, static_cast<size_t>(
10873 reinterpret_cast<char*>(&reason_) -
10874 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
10875 _internal_metadata_.Clear();
10876}
10877
10878#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10879const char* RebootDeviceResponse::_InternalParse(const char* begin, const char* end, void* object,
10880 ::google::protobuf::internal::ParseContext* ctx) {
10881 auto msg = static_cast<RebootDeviceResponse*>(object);
10882 ::google::protobuf::int32 size; (void)size;
10883 int depth; (void)depth;
10884 ::google::protobuf::uint32 tag;
10885 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
10886 auto ptr = begin;
10887 while (ptr < end) {
10888 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
10889 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
10890 switch (tag >> 3) {
10891 // .dmi.Status status = 3;
10892 case 3: {
10893 if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual;
10894 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
10895 msg->set_status(static_cast<::dmi::Status>(val));
10896 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
10897 break;
10898 }
10899 // .dmi.RebootDeviceResponse.Reason reason = 4;
10900 case 4: {
10901 if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual;
10902 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
10903 msg->set_reason(static_cast<::dmi::RebootDeviceResponse_Reason>(val));
10904 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
10905 break;
10906 }
10907 // string reason_detail = 5;
10908 case 5: {
10909 if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual;
10910 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
10911 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
10912 ctx->extra_parse_data().SetFieldName("dmi.RebootDeviceResponse.reason_detail");
10913 object = msg->mutable_reason_detail();
10914 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
10915 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
10916 goto string_till_end;
10917 }
10918 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
10919 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
10920 ptr += size;
10921 break;
10922 }
10923 default: {
10924 handle_unusual:
10925 if ((tag & 7) == 4 || tag == 0) {
10926 ctx->EndGroup(tag);
10927 return ptr;
10928 }
10929 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
10930 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
10931 ptr = res.first;
10932 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
10933 if (res.second) return ptr;
10934 }
10935 } // switch
10936 } // while
10937 return ptr;
10938string_till_end:
10939 static_cast<::std::string*>(object)->clear();
10940 static_cast<::std::string*>(object)->reserve(size);
10941 goto len_delim_till_end;
10942len_delim_till_end:
10943 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
10944 {parser_till_end, object}, size);
10945}
10946#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
10947bool RebootDeviceResponse::MergePartialFromCodedStream(
10948 ::google::protobuf::io::CodedInputStream* input) {
10949#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
10950 ::google::protobuf::uint32 tag;
10951 // @@protoc_insertion_point(parse_start:dmi.RebootDeviceResponse)
10952 for (;;) {
10953 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
10954 tag = p.first;
10955 if (!p.second) goto handle_unusual;
10956 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
10957 // .dmi.Status status = 3;
10958 case 3: {
10959 if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) {
10960 int value = 0;
10961 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10962 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
10963 input, &value)));
10964 set_status(static_cast< ::dmi::Status >(value));
10965 } else {
10966 goto handle_unusual;
10967 }
10968 break;
10969 }
10970
10971 // .dmi.RebootDeviceResponse.Reason reason = 4;
10972 case 4: {
10973 if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) {
10974 int value = 0;
10975 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10976 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
10977 input, &value)));
10978 set_reason(static_cast< ::dmi::RebootDeviceResponse_Reason >(value));
10979 } else {
10980 goto handle_unusual;
10981 }
10982 break;
10983 }
10984
10985 // string reason_detail = 5;
10986 case 5: {
10987 if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) {
10988 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
10989 input, this->mutable_reason_detail()));
10990 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
10991 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
10992 ::google::protobuf::internal::WireFormatLite::PARSE,
10993 "dmi.RebootDeviceResponse.reason_detail"));
10994 } else {
10995 goto handle_unusual;
10996 }
10997 break;
10998 }
10999
11000 default: {
11001 handle_unusual:
11002 if (tag == 0) {
11003 goto success;
11004 }
11005 DO_(::google::protobuf::internal::WireFormat::SkipField(
11006 input, tag, _internal_metadata_.mutable_unknown_fields()));
11007 break;
11008 }
11009 }
11010 }
11011success:
11012 // @@protoc_insertion_point(parse_success:dmi.RebootDeviceResponse)
11013 return true;
11014failure:
11015 // @@protoc_insertion_point(parse_failure:dmi.RebootDeviceResponse)
11016 return false;
11017#undef DO_
11018}
11019#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
11020
11021void RebootDeviceResponse::SerializeWithCachedSizes(
11022 ::google::protobuf::io::CodedOutputStream* output) const {
11023 // @@protoc_insertion_point(serialize_start:dmi.RebootDeviceResponse)
11024 ::google::protobuf::uint32 cached_has_bits = 0;
11025 (void) cached_has_bits;
11026
11027 // .dmi.Status status = 3;
11028 if (this->status() != 0) {
11029 ::google::protobuf::internal::WireFormatLite::WriteEnum(
11030 3, this->status(), output);
11031 }
11032
11033 // .dmi.RebootDeviceResponse.Reason reason = 4;
11034 if (this->reason() != 0) {
11035 ::google::protobuf::internal::WireFormatLite::WriteEnum(
11036 4, this->reason(), output);
11037 }
11038
11039 // string reason_detail = 5;
11040 if (this->reason_detail().size() > 0) {
11041 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
11042 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
11043 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
11044 "dmi.RebootDeviceResponse.reason_detail");
11045 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
11046 5, this->reason_detail(), output);
11047 }
11048
11049 if (_internal_metadata_.have_unknown_fields()) {
11050 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
11051 _internal_metadata_.unknown_fields(), output);
11052 }
11053 // @@protoc_insertion_point(serialize_end:dmi.RebootDeviceResponse)
11054}
11055
11056::google::protobuf::uint8* RebootDeviceResponse::InternalSerializeWithCachedSizesToArray(
11057 ::google::protobuf::uint8* target) const {
11058 // @@protoc_insertion_point(serialize_to_array_start:dmi.RebootDeviceResponse)
11059 ::google::protobuf::uint32 cached_has_bits = 0;
11060 (void) cached_has_bits;
11061
11062 // .dmi.Status status = 3;
11063 if (this->status() != 0) {
11064 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
11065 3, this->status(), target);
11066 }
11067
11068 // .dmi.RebootDeviceResponse.Reason reason = 4;
11069 if (this->reason() != 0) {
11070 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
11071 4, this->reason(), target);
11072 }
11073
11074 // string reason_detail = 5;
11075 if (this->reason_detail().size() > 0) {
11076 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
11077 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
11078 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
11079 "dmi.RebootDeviceResponse.reason_detail");
11080 target =
11081 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
11082 5, this->reason_detail(), target);
11083 }
11084
11085 if (_internal_metadata_.have_unknown_fields()) {
11086 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
11087 _internal_metadata_.unknown_fields(), target);
11088 }
11089 // @@protoc_insertion_point(serialize_to_array_end:dmi.RebootDeviceResponse)
11090 return target;
11091}
11092
11093size_t RebootDeviceResponse::ByteSizeLong() const {
11094// @@protoc_insertion_point(message_byte_size_start:dmi.RebootDeviceResponse)
11095 size_t total_size = 0;
11096
11097 if (_internal_metadata_.have_unknown_fields()) {
11098 total_size +=
11099 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
11100 _internal_metadata_.unknown_fields());
11101 }
11102 ::google::protobuf::uint32 cached_has_bits = 0;
11103 // Prevent compiler warnings about cached_has_bits being unused
11104 (void) cached_has_bits;
11105
11106 // string reason_detail = 5;
11107 if (this->reason_detail().size() > 0) {
11108 total_size += 1 +
11109 ::google::protobuf::internal::WireFormatLite::StringSize(
11110 this->reason_detail());
11111 }
11112
11113 // .dmi.Status status = 3;
11114 if (this->status() != 0) {
11115 total_size += 1 +
11116 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
11117 }
11118
11119 // .dmi.RebootDeviceResponse.Reason reason = 4;
11120 if (this->reason() != 0) {
11121 total_size += 1 +
11122 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
11123 }
11124
11125 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
11126 SetCachedSize(cached_size);
11127 return total_size;
11128}
11129
11130void RebootDeviceResponse::MergeFrom(const ::google::protobuf::Message& from) {
11131// @@protoc_insertion_point(generalized_merge_from_start:dmi.RebootDeviceResponse)
11132 GOOGLE_DCHECK_NE(&from, this);
11133 const RebootDeviceResponse* source =
11134 ::google::protobuf::DynamicCastToGenerated<RebootDeviceResponse>(
11135 &from);
11136 if (source == nullptr) {
11137 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.RebootDeviceResponse)
11138 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
11139 } else {
11140 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.RebootDeviceResponse)
11141 MergeFrom(*source);
11142 }
11143}
11144
11145void RebootDeviceResponse::MergeFrom(const RebootDeviceResponse& from) {
11146// @@protoc_insertion_point(class_specific_merge_from_start:dmi.RebootDeviceResponse)
11147 GOOGLE_DCHECK_NE(&from, this);
11148 _internal_metadata_.MergeFrom(from._internal_metadata_);
11149 ::google::protobuf::uint32 cached_has_bits = 0;
11150 (void) cached_has_bits;
11151
11152 if (from.reason_detail().size() > 0) {
11153
11154 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
11155 }
11156 if (from.status() != 0) {
11157 set_status(from.status());
11158 }
11159 if (from.reason() != 0) {
11160 set_reason(from.reason());
11161 }
11162}
11163
11164void RebootDeviceResponse::CopyFrom(const ::google::protobuf::Message& from) {
11165// @@protoc_insertion_point(generalized_copy_from_start:dmi.RebootDeviceResponse)
11166 if (&from == this) return;
11167 Clear();
11168 MergeFrom(from);
11169}
11170
11171void RebootDeviceResponse::CopyFrom(const RebootDeviceResponse& from) {
11172// @@protoc_insertion_point(class_specific_copy_from_start:dmi.RebootDeviceResponse)
11173 if (&from == this) return;
11174 Clear();
11175 MergeFrom(from);
11176}
11177
11178bool RebootDeviceResponse::IsInitialized() const {
11179 return true;
11180}
11181
11182void RebootDeviceResponse::Swap(RebootDeviceResponse* other) {
11183 if (other == this) return;
11184 InternalSwap(other);
11185}
11186void RebootDeviceResponse::InternalSwap(RebootDeviceResponse* other) {
11187 using std::swap;
11188 _internal_metadata_.Swap(&other->_internal_metadata_);
11189 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
11190 GetArenaNoVirtual());
11191 swap(status_, other->status_);
11192 swap(reason_, other->reason_);
11193}
11194
11195::google::protobuf::Metadata RebootDeviceResponse::GetMetadata() const {
11196 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto);
11197 return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages];
11198}
11199
11200
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +053011201// @@protoc_insertion_point(namespace_scope)
11202} // namespace dmi
11203namespace google {
11204namespace protobuf {
11205template<> PROTOBUF_NOINLINE ::dmi::PhysicalInventoryRequest* Arena::CreateMaybeMessage< ::dmi::PhysicalInventoryRequest >(Arena* arena) {
11206 return Arena::CreateInternal< ::dmi::PhysicalInventoryRequest >(arena);
11207}
11208template<> PROTOBUF_NOINLINE ::dmi::PhysicalInventoryResponse* Arena::CreateMaybeMessage< ::dmi::PhysicalInventoryResponse >(Arena* arena) {
11209 return Arena::CreateInternal< ::dmi::PhysicalInventoryResponse >(arena);
11210}
11211template<> PROTOBUF_NOINLINE ::dmi::HWComponentInfoGetRequest* Arena::CreateMaybeMessage< ::dmi::HWComponentInfoGetRequest >(Arena* arena) {
11212 return Arena::CreateInternal< ::dmi::HWComponentInfoGetRequest >(arena);
11213}
11214template<> PROTOBUF_NOINLINE ::dmi::HWComponentInfoGetResponse* Arena::CreateMaybeMessage< ::dmi::HWComponentInfoGetResponse >(Arena* arena) {
11215 return Arena::CreateInternal< ::dmi::HWComponentInfoGetResponse >(arena);
11216}
11217template<> PROTOBUF_NOINLINE ::dmi::HWComponentInfoSetRequest* Arena::CreateMaybeMessage< ::dmi::HWComponentInfoSetRequest >(Arena* arena) {
11218 return Arena::CreateInternal< ::dmi::HWComponentInfoSetRequest >(arena);
11219}
11220template<> PROTOBUF_NOINLINE ::dmi::HWComponentInfoSetResponse* Arena::CreateMaybeMessage< ::dmi::HWComponentInfoSetResponse >(Arena* arena) {
11221 return Arena::CreateInternal< ::dmi::HWComponentInfoSetResponse >(arena);
11222}
11223template<> PROTOBUF_NOINLINE ::dmi::StartManagingDeviceResponse* Arena::CreateMaybeMessage< ::dmi::StartManagingDeviceResponse >(Arena* arena) {
11224 return Arena::CreateInternal< ::dmi::StartManagingDeviceResponse >(arena);
11225}
11226template<> PROTOBUF_NOINLINE ::dmi::StopManagingDeviceRequest* Arena::CreateMaybeMessage< ::dmi::StopManagingDeviceRequest >(Arena* arena) {
11227 return Arena::CreateInternal< ::dmi::StopManagingDeviceRequest >(arena);
11228}
11229template<> PROTOBUF_NOINLINE ::dmi::StopManagingDeviceResponse* Arena::CreateMaybeMessage< ::dmi::StopManagingDeviceResponse >(Arena* arena) {
11230 return Arena::CreateInternal< ::dmi::StopManagingDeviceResponse >(arena);
11231}
11232template<> PROTOBUF_NOINLINE ::dmi::ManagedDeviceInfo* Arena::CreateMaybeMessage< ::dmi::ManagedDeviceInfo >(Arena* arena) {
11233 return Arena::CreateInternal< ::dmi::ManagedDeviceInfo >(arena);
11234}
11235template<> PROTOBUF_NOINLINE ::dmi::ManagedDevicesResponse* Arena::CreateMaybeMessage< ::dmi::ManagedDevicesResponse >(Arena* arena) {
11236 return Arena::CreateInternal< ::dmi::ManagedDevicesResponse >(arena);
11237}
11238template<> PROTOBUF_NOINLINE ::dmi::SetLoggingEndpointRequest* Arena::CreateMaybeMessage< ::dmi::SetLoggingEndpointRequest >(Arena* arena) {
11239 return Arena::CreateInternal< ::dmi::SetLoggingEndpointRequest >(arena);
11240}
11241template<> PROTOBUF_NOINLINE ::dmi::SetRemoteEndpointResponse* Arena::CreateMaybeMessage< ::dmi::SetRemoteEndpointResponse >(Arena* arena) {
11242 return Arena::CreateInternal< ::dmi::SetRemoteEndpointResponse >(arena);
11243}
11244template<> PROTOBUF_NOINLINE ::dmi::GetLoggingEndpointResponse* Arena::CreateMaybeMessage< ::dmi::GetLoggingEndpointResponse >(Arena* arena) {
11245 return Arena::CreateInternal< ::dmi::GetLoggingEndpointResponse >(arena);
11246}
11247template<> PROTOBUF_NOINLINE ::dmi::SetMsgBusEndpointRequest* Arena::CreateMaybeMessage< ::dmi::SetMsgBusEndpointRequest >(Arena* arena) {
11248 return Arena::CreateInternal< ::dmi::SetMsgBusEndpointRequest >(arena);
11249}
11250template<> PROTOBUF_NOINLINE ::dmi::GetMsgBusEndpointResponse* Arena::CreateMaybeMessage< ::dmi::GetMsgBusEndpointResponse >(Arena* arena) {
11251 return Arena::CreateInternal< ::dmi::GetMsgBusEndpointResponse >(arena);
11252}
11253template<> PROTOBUF_NOINLINE ::dmi::EntitiesLogLevel* Arena::CreateMaybeMessage< ::dmi::EntitiesLogLevel >(Arena* arena) {
11254 return Arena::CreateInternal< ::dmi::EntitiesLogLevel >(arena);
11255}
11256template<> PROTOBUF_NOINLINE ::dmi::SetLogLevelRequest* Arena::CreateMaybeMessage< ::dmi::SetLogLevelRequest >(Arena* arena) {
11257 return Arena::CreateInternal< ::dmi::SetLogLevelRequest >(arena);
11258}
11259template<> PROTOBUF_NOINLINE ::dmi::SetLogLevelResponse* Arena::CreateMaybeMessage< ::dmi::SetLogLevelResponse >(Arena* arena) {
11260 return Arena::CreateInternal< ::dmi::SetLogLevelResponse >(arena);
11261}
11262template<> PROTOBUF_NOINLINE ::dmi::GetLogLevelRequest* Arena::CreateMaybeMessage< ::dmi::GetLogLevelRequest >(Arena* arena) {
11263 return Arena::CreateInternal< ::dmi::GetLogLevelRequest >(arena);
11264}
11265template<> PROTOBUF_NOINLINE ::dmi::GetLogLevelResponse* Arena::CreateMaybeMessage< ::dmi::GetLogLevelResponse >(Arena* arena) {
11266 return Arena::CreateInternal< ::dmi::GetLogLevelResponse >(arena);
11267}
11268template<> PROTOBUF_NOINLINE ::dmi::GetLoggableEntitiesRequest* Arena::CreateMaybeMessage< ::dmi::GetLoggableEntitiesRequest >(Arena* arena) {
11269 return Arena::CreateInternal< ::dmi::GetLoggableEntitiesRequest >(arena);
11270}
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +053011271template<> PROTOBUF_NOINLINE ::dmi::Heartbeat* Arena::CreateMaybeMessage< ::dmi::Heartbeat >(Arena* arena) {
11272 return Arena::CreateInternal< ::dmi::Heartbeat >(arena);
11273}
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +053011274template<> PROTOBUF_NOINLINE ::dmi::RebootDeviceRequest* Arena::CreateMaybeMessage< ::dmi::RebootDeviceRequest >(Arena* arena) {
11275 return Arena::CreateInternal< ::dmi::RebootDeviceRequest >(arena);
11276}
11277template<> PROTOBUF_NOINLINE ::dmi::RebootDeviceResponse* Arena::CreateMaybeMessage< ::dmi::RebootDeviceResponse >(Arena* arena) {
11278 return Arena::CreateInternal< ::dmi::RebootDeviceResponse >(arena);
11279}
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +053011280} // namespace protobuf
11281} // namespace google
11282
11283// @@protoc_insertion_point(global_scope)
11284#include <google/protobuf/port_undef.inc>