blob: a21d9cba82dd49dd1ade4d9e10fa61871c725556 [file] [log] [blame]
uwe ottrembka66d91ea2020-08-11 10:50:55 +02001# -*- coding: utf-8 -*-
2# Generated by the protocol buffer compiler. DO NOT EDIT!
3# source: dmi/sw_management_service.proto
Andrea Campanellacb990bc2020-09-22 12:50:56 +02004"""Generated protocol buffer code."""
uwe ottrembka66d91ea2020-08-11 10:50:55 +02005from google.protobuf import descriptor as _descriptor
6from google.protobuf import message as _message
7from google.protobuf import reflection as _reflection
8from google.protobuf import symbol_database as _symbol_database
9# @@protoc_insertion_point(imports)
10
11_sym_db = _symbol_database.Default()
12
13
aghoshc301dcd2020-09-03 16:55:34 +010014from dmi import commons_pb2 as dmi_dot_commons__pb2
uwe ottrembka66d91ea2020-08-11 10:50:55 +020015from dmi import hw_pb2 as dmi_dot_hw__pb2
16from dmi import sw_image_pb2 as dmi_dot_sw__image__pb2
17
18
19DESCRIPTOR = _descriptor.FileDescriptor(
20 name='dmi/sw_management_service.proto',
21 package='dmi',
22 syntax='proto3',
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +020023 serialized_options=b'Z9github.com/opencord/device-management-interface/v3/go/dmi',
24 create_key=_descriptor._internal_create_key,
amit.ghoshed23db02020-11-18 10:26:36 +010025 serialized_pb=b'\n\x1f\x64mi/sw_management_service.proto\x12\x03\x64mi\x1a\x11\x64mi/commons.proto\x1a\x0c\x64mi/hw.proto\x1a\x12\x64mi/sw_image.proto\"u\n\x1aSoftwareVersionInformation\x12*\n\x0f\x61\x63tive_versions\x18\x01 \x03(\x0b\x32\x11.dmi.ImageVersion\x12+\n\x10standby_versions\x18\x02 \x03(\x0b\x32\x11.dmi.ImageVersion\"\x90\x01\n%GetSoftwareVersionInformationResponse\x12\x1b\n\x06status\x18\x01 \x01(\x0e\x32\x0b.dmi.Status\x12\x1b\n\x06reason\x18\x02 \x01(\x0e\x32\x0b.dmi.Reason\x12-\n\x04info\x18\x03 \x01(\x0b\x32\x1f.dmi.SoftwareVersionInformation\"a\n\x14\x44ownloadImageRequest\x12\x1e\n\x0b\x64\x65vice_uuid\x18\x01 \x01(\x0b\x32\t.dmi.Uuid\x12)\n\nimage_info\x18\x02 \x01(\x0b\x32\x15.dmi.ImageInformation\"C\n\rConfigRequest\x12\x1e\n\x0b\x64\x65vice_uuid\x18\x01 \x01(\x0b\x32\t.dmi.Uuid\x12\x12\n\nconfig_url\x18\x02 \x01(\t\"J\n\x0e\x43onfigResponse\x12\x1b\n\x06status\x18\x01 \x01(\x0e\x32\x0b.dmi.Status\x12\x1b\n\x06reason\x18\x02 \x01(\x0e\x32\x0b.dmi.Reason2\xf0\x02\n\x1fNativeSoftwareManagementService\x12Q\n\x12GetSoftwareVersion\x12\x0f.dmi.HardwareID\x1a*.dmi.GetSoftwareVersionInformationResponse\x12>\n\rDownloadImage\x12\x19.dmi.DownloadImageRequest\x1a\x10.dmi.ImageStatus0\x01\x12\x34\n\rActivateImage\x12\x0f.dmi.HardwareID\x1a\x10.dmi.ImageStatus0\x01\x12;\n\x14RevertToStandbyImage\x12\x0f.dmi.HardwareID\x1a\x10.dmi.ImageStatus0\x01\x12G\n\x1aUpdateStartupConfiguration\x12\x12.dmi.ConfigRequest\x1a\x13.dmi.ConfigResponse0\x01\x42;Z9github.com/opencord/device-management-interface/v3/go/dmib\x06proto3'
uwe ottrembka66d91ea2020-08-11 10:50:55 +020026 ,
aghoshc301dcd2020-09-03 16:55:34 +010027 dependencies=[dmi_dot_commons__pb2.DESCRIPTOR,dmi_dot_hw__pb2.DESCRIPTOR,dmi_dot_sw__image__pb2.DESCRIPTOR,])
uwe ottrembka66d91ea2020-08-11 10:50:55 +020028
29
30
31
32_SOFTWAREVERSIONINFORMATION = _descriptor.Descriptor(
33 name='SoftwareVersionInformation',
34 full_name='dmi.SoftwareVersionInformation',
35 filename=None,
36 file=DESCRIPTOR,
37 containing_type=None,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +020038 create_key=_descriptor._internal_create_key,
uwe ottrembka66d91ea2020-08-11 10:50:55 +020039 fields=[
40 _descriptor.FieldDescriptor(
41 name='active_versions', full_name='dmi.SoftwareVersionInformation.active_versions', index=0,
42 number=1, type=11, cpp_type=10, label=3,
43 has_default_value=False, default_value=[],
44 message_type=None, enum_type=None, containing_type=None,
45 is_extension=False, extension_scope=None,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +020046 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
uwe ottrembka66d91ea2020-08-11 10:50:55 +020047 _descriptor.FieldDescriptor(
48 name='standby_versions', full_name='dmi.SoftwareVersionInformation.standby_versions', index=1,
49 number=2, type=11, cpp_type=10, label=3,
50 has_default_value=False, default_value=[],
51 message_type=None, enum_type=None, containing_type=None,
52 is_extension=False, extension_scope=None,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +020053 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
uwe ottrembka66d91ea2020-08-11 10:50:55 +020054 ],
55 extensions=[
56 ],
57 nested_types=[],
58 enum_types=[
59 ],
60 serialized_options=None,
61 is_extendable=False,
62 syntax='proto3',
63 extension_ranges=[],
64 oneofs=[
65 ],
aghoshc301dcd2020-09-03 16:55:34 +010066 serialized_start=93,
67 serialized_end=210,
68)
69
70
71_GETSOFTWAREVERSIONINFORMATIONRESPONSE = _descriptor.Descriptor(
72 name='GetSoftwareVersionInformationResponse',
73 full_name='dmi.GetSoftwareVersionInformationResponse',
74 filename=None,
75 file=DESCRIPTOR,
76 containing_type=None,
77 create_key=_descriptor._internal_create_key,
78 fields=[
79 _descriptor.FieldDescriptor(
80 name='status', full_name='dmi.GetSoftwareVersionInformationResponse.status', index=0,
81 number=1, type=14, cpp_type=8, label=1,
82 has_default_value=False, default_value=0,
83 message_type=None, enum_type=None, containing_type=None,
84 is_extension=False, extension_scope=None,
85 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
86 _descriptor.FieldDescriptor(
87 name='reason', full_name='dmi.GetSoftwareVersionInformationResponse.reason', index=1,
88 number=2, type=14, cpp_type=8, label=1,
89 has_default_value=False, default_value=0,
90 message_type=None, enum_type=None, containing_type=None,
91 is_extension=False, extension_scope=None,
92 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
93 _descriptor.FieldDescriptor(
94 name='info', full_name='dmi.GetSoftwareVersionInformationResponse.info', index=2,
95 number=3, type=11, cpp_type=10, label=1,
96 has_default_value=False, default_value=None,
97 message_type=None, enum_type=None, containing_type=None,
98 is_extension=False, extension_scope=None,
99 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
100 ],
101 extensions=[
102 ],
103 nested_types=[],
104 enum_types=[
105 ],
106 serialized_options=None,
107 is_extendable=False,
108 syntax='proto3',
109 extension_ranges=[],
110 oneofs=[
111 ],
112 serialized_start=213,
113 serialized_end=357,
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200114)
115
116
117_DOWNLOADIMAGEREQUEST = _descriptor.Descriptor(
118 name='DownloadImageRequest',
119 full_name='dmi.DownloadImageRequest',
120 filename=None,
121 file=DESCRIPTOR,
122 containing_type=None,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200123 create_key=_descriptor._internal_create_key,
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200124 fields=[
125 _descriptor.FieldDescriptor(
126 name='device_uuid', full_name='dmi.DownloadImageRequest.device_uuid', index=0,
127 number=1, type=11, cpp_type=10, label=1,
128 has_default_value=False, default_value=None,
129 message_type=None, enum_type=None, containing_type=None,
130 is_extension=False, extension_scope=None,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200131 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200132 _descriptor.FieldDescriptor(
133 name='image_info', full_name='dmi.DownloadImageRequest.image_info', index=1,
134 number=2, type=11, cpp_type=10, label=1,
135 has_default_value=False, default_value=None,
136 message_type=None, enum_type=None, containing_type=None,
137 is_extension=False, extension_scope=None,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200138 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200139 ],
140 extensions=[
141 ],
142 nested_types=[],
143 enum_types=[
144 ],
145 serialized_options=None,
146 is_extendable=False,
147 syntax='proto3',
148 extension_ranges=[],
149 oneofs=[
150 ],
aghoshc301dcd2020-09-03 16:55:34 +0100151 serialized_start=359,
152 serialized_end=456,
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200153)
154
amit.ghoshed23db02020-11-18 10:26:36 +0100155
156_CONFIGREQUEST = _descriptor.Descriptor(
157 name='ConfigRequest',
158 full_name='dmi.ConfigRequest',
159 filename=None,
160 file=DESCRIPTOR,
161 containing_type=None,
162 create_key=_descriptor._internal_create_key,
163 fields=[
164 _descriptor.FieldDescriptor(
165 name='device_uuid', full_name='dmi.ConfigRequest.device_uuid', index=0,
166 number=1, type=11, cpp_type=10, label=1,
167 has_default_value=False, default_value=None,
168 message_type=None, enum_type=None, containing_type=None,
169 is_extension=False, extension_scope=None,
170 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
171 _descriptor.FieldDescriptor(
172 name='config_url', full_name='dmi.ConfigRequest.config_url', index=1,
173 number=2, type=9, cpp_type=9, label=1,
174 has_default_value=False, default_value=b"".decode('utf-8'),
175 message_type=None, enum_type=None, containing_type=None,
176 is_extension=False, extension_scope=None,
177 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
178 ],
179 extensions=[
180 ],
181 nested_types=[],
182 enum_types=[
183 ],
184 serialized_options=None,
185 is_extendable=False,
186 syntax='proto3',
187 extension_ranges=[],
188 oneofs=[
189 ],
190 serialized_start=458,
191 serialized_end=525,
192)
193
194
195_CONFIGRESPONSE = _descriptor.Descriptor(
196 name='ConfigResponse',
197 full_name='dmi.ConfigResponse',
198 filename=None,
199 file=DESCRIPTOR,
200 containing_type=None,
201 create_key=_descriptor._internal_create_key,
202 fields=[
203 _descriptor.FieldDescriptor(
204 name='status', full_name='dmi.ConfigResponse.status', index=0,
205 number=1, type=14, cpp_type=8, label=1,
206 has_default_value=False, default_value=0,
207 message_type=None, enum_type=None, containing_type=None,
208 is_extension=False, extension_scope=None,
209 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
210 _descriptor.FieldDescriptor(
211 name='reason', full_name='dmi.ConfigResponse.reason', index=1,
212 number=2, type=14, cpp_type=8, label=1,
213 has_default_value=False, default_value=0,
214 message_type=None, enum_type=None, containing_type=None,
215 is_extension=False, extension_scope=None,
216 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
217 ],
218 extensions=[
219 ],
220 nested_types=[],
221 enum_types=[
222 ],
223 serialized_options=None,
224 is_extendable=False,
225 syntax='proto3',
226 extension_ranges=[],
227 oneofs=[
228 ],
229 serialized_start=527,
230 serialized_end=601,
231)
232
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200233_SOFTWAREVERSIONINFORMATION.fields_by_name['active_versions'].message_type = dmi_dot_sw__image__pb2._IMAGEVERSION
234_SOFTWAREVERSIONINFORMATION.fields_by_name['standby_versions'].message_type = dmi_dot_sw__image__pb2._IMAGEVERSION
aghoshc301dcd2020-09-03 16:55:34 +0100235_GETSOFTWAREVERSIONINFORMATIONRESPONSE.fields_by_name['status'].enum_type = dmi_dot_commons__pb2._STATUS
236_GETSOFTWAREVERSIONINFORMATIONRESPONSE.fields_by_name['reason'].enum_type = dmi_dot_commons__pb2._REASON
237_GETSOFTWAREVERSIONINFORMATIONRESPONSE.fields_by_name['info'].message_type = _SOFTWAREVERSIONINFORMATION
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200238_DOWNLOADIMAGEREQUEST.fields_by_name['device_uuid'].message_type = dmi_dot_hw__pb2._UUID
239_DOWNLOADIMAGEREQUEST.fields_by_name['image_info'].message_type = dmi_dot_sw__image__pb2._IMAGEINFORMATION
amit.ghoshed23db02020-11-18 10:26:36 +0100240_CONFIGREQUEST.fields_by_name['device_uuid'].message_type = dmi_dot_hw__pb2._UUID
241_CONFIGRESPONSE.fields_by_name['status'].enum_type = dmi_dot_commons__pb2._STATUS
242_CONFIGRESPONSE.fields_by_name['reason'].enum_type = dmi_dot_commons__pb2._REASON
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200243DESCRIPTOR.message_types_by_name['SoftwareVersionInformation'] = _SOFTWAREVERSIONINFORMATION
aghoshc301dcd2020-09-03 16:55:34 +0100244DESCRIPTOR.message_types_by_name['GetSoftwareVersionInformationResponse'] = _GETSOFTWAREVERSIONINFORMATIONRESPONSE
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200245DESCRIPTOR.message_types_by_name['DownloadImageRequest'] = _DOWNLOADIMAGEREQUEST
amit.ghoshed23db02020-11-18 10:26:36 +0100246DESCRIPTOR.message_types_by_name['ConfigRequest'] = _CONFIGREQUEST
247DESCRIPTOR.message_types_by_name['ConfigResponse'] = _CONFIGRESPONSE
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200248_sym_db.RegisterFileDescriptor(DESCRIPTOR)
249
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200250SoftwareVersionInformation = _reflection.GeneratedProtocolMessageType('SoftwareVersionInformation', (_message.Message,), {
251 'DESCRIPTOR' : _SOFTWAREVERSIONINFORMATION,
252 '__module__' : 'dmi.sw_management_service_pb2'
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200253 # @@protoc_insertion_point(class_scope:dmi.SoftwareVersionInformation)
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200254 })
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200255_sym_db.RegisterMessage(SoftwareVersionInformation)
256
aghoshc301dcd2020-09-03 16:55:34 +0100257GetSoftwareVersionInformationResponse = _reflection.GeneratedProtocolMessageType('GetSoftwareVersionInformationResponse', (_message.Message,), {
258 'DESCRIPTOR' : _GETSOFTWAREVERSIONINFORMATIONRESPONSE,
259 '__module__' : 'dmi.sw_management_service_pb2'
260 # @@protoc_insertion_point(class_scope:dmi.GetSoftwareVersionInformationResponse)
261 })
262_sym_db.RegisterMessage(GetSoftwareVersionInformationResponse)
263
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200264DownloadImageRequest = _reflection.GeneratedProtocolMessageType('DownloadImageRequest', (_message.Message,), {
265 'DESCRIPTOR' : _DOWNLOADIMAGEREQUEST,
266 '__module__' : 'dmi.sw_management_service_pb2'
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200267 # @@protoc_insertion_point(class_scope:dmi.DownloadImageRequest)
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200268 })
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200269_sym_db.RegisterMessage(DownloadImageRequest)
270
amit.ghoshed23db02020-11-18 10:26:36 +0100271ConfigRequest = _reflection.GeneratedProtocolMessageType('ConfigRequest', (_message.Message,), {
272 'DESCRIPTOR' : _CONFIGREQUEST,
273 '__module__' : 'dmi.sw_management_service_pb2'
274 # @@protoc_insertion_point(class_scope:dmi.ConfigRequest)
275 })
276_sym_db.RegisterMessage(ConfigRequest)
277
278ConfigResponse = _reflection.GeneratedProtocolMessageType('ConfigResponse', (_message.Message,), {
279 'DESCRIPTOR' : _CONFIGRESPONSE,
280 '__module__' : 'dmi.sw_management_service_pb2'
281 # @@protoc_insertion_point(class_scope:dmi.ConfigResponse)
282 })
283_sym_db.RegisterMessage(ConfigResponse)
284
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200285
286DESCRIPTOR._options = None
287
288_NATIVESOFTWAREMANAGEMENTSERVICE = _descriptor.ServiceDescriptor(
289 name='NativeSoftwareManagementService',
290 full_name='dmi.NativeSoftwareManagementService',
291 file=DESCRIPTOR,
292 index=0,
293 serialized_options=None,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200294 create_key=_descriptor._internal_create_key,
amit.ghoshed23db02020-11-18 10:26:36 +0100295 serialized_start=604,
296 serialized_end=972,
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200297 methods=[
298 _descriptor.MethodDescriptor(
299 name='GetSoftwareVersion',
300 full_name='dmi.NativeSoftwareManagementService.GetSoftwareVersion',
301 index=0,
302 containing_service=None,
303 input_type=dmi_dot_hw__pb2._HARDWAREID,
aghoshc301dcd2020-09-03 16:55:34 +0100304 output_type=_GETSOFTWAREVERSIONINFORMATIONRESPONSE,
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200305 serialized_options=None,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200306 create_key=_descriptor._internal_create_key,
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200307 ),
308 _descriptor.MethodDescriptor(
309 name='DownloadImage',
310 full_name='dmi.NativeSoftwareManagementService.DownloadImage',
311 index=1,
312 containing_service=None,
313 input_type=_DOWNLOADIMAGEREQUEST,
314 output_type=dmi_dot_sw__image__pb2._IMAGESTATUS,
315 serialized_options=None,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200316 create_key=_descriptor._internal_create_key,
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200317 ),
318 _descriptor.MethodDescriptor(
319 name='ActivateImage',
320 full_name='dmi.NativeSoftwareManagementService.ActivateImage',
321 index=2,
322 containing_service=None,
323 input_type=dmi_dot_hw__pb2._HARDWAREID,
324 output_type=dmi_dot_sw__image__pb2._IMAGESTATUS,
325 serialized_options=None,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200326 create_key=_descriptor._internal_create_key,
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200327 ),
328 _descriptor.MethodDescriptor(
329 name='RevertToStandbyImage',
330 full_name='dmi.NativeSoftwareManagementService.RevertToStandbyImage',
331 index=3,
332 containing_service=None,
333 input_type=dmi_dot_hw__pb2._HARDWAREID,
334 output_type=dmi_dot_sw__image__pb2._IMAGESTATUS,
335 serialized_options=None,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200336 create_key=_descriptor._internal_create_key,
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200337 ),
amit.ghoshed23db02020-11-18 10:26:36 +0100338 _descriptor.MethodDescriptor(
339 name='UpdateStartupConfiguration',
340 full_name='dmi.NativeSoftwareManagementService.UpdateStartupConfiguration',
341 index=4,
342 containing_service=None,
343 input_type=_CONFIGREQUEST,
344 output_type=_CONFIGRESPONSE,
345 serialized_options=None,
346 create_key=_descriptor._internal_create_key,
347 ),
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200348])
349_sym_db.RegisterServiceDescriptor(_NATIVESOFTWAREMANAGEMENTSERVICE)
350
351DESCRIPTOR.services_by_name['NativeSoftwareManagementService'] = _NATIVESOFTWAREMANAGEMENTSERVICE
352
353# @@protoc_insertion_point(module_scope)