blob: ffed2f9a4440e705ce898adcbc610db4f1eba54a [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_image.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
14from dmi import commons_pb2 as dmi_dot_commons__pb2
15
16
17DESCRIPTOR = _descriptor.FileDescriptor(
18 name='dmi/sw_image.proto',
19 package='dmi',
20 syntax='proto3',
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +020021 serialized_options=b'Z9github.com/opencord/device-management-interface/v3/go/dmi',
22 create_key=_descriptor._internal_create_key,
amit.ghoshae473032021-01-10 11:59:10 +010023 serialized_pb=b'\n\x12\x64mi/sw_image.proto\x12\x03\x64mi\x1a\x11\x64mi/commons.proto\"3\n\x0cImageVersion\x12\x12\n\nimage_name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\"x\n\x10ImageInformation\x12 \n\x05image\x18\x01 \x01(\x0b\x32\x11.dmi.ImageVersion\x12\x1c\n\x14image_install_script\x18\x02 \x01(\t\x12\x11\n\timage_url\x18\x03 \x01(\t\x12\x11\n\tsha256sum\x18\x05 \x01(\t\"\xcb\x04\n\x0bImageStatus\x12\x1b\n\x06status\x18\x01 \x01(\x0e\x32\x0b.dmi.Status\x12\'\n\x06reason\x18\x02 \x01(\x0e\x32\x17.dmi.ImageStatus.Reason\x12*\n\x05state\x18\x03 \x01(\x0e\x32\x1b.dmi.ImageStatus.ImageState\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\"\xd0\x01\n\nImageState\x12\x13\n\x0fUNDEFINED_STATE\x10\x00\x12\x11\n\rCOPYING_IMAGE\x10\x01\x12\x14\n\x10INSTALLING_IMAGE\x10\x02\x12\x14\n\x10\x43OMMITTING_IMAGE\x10\x03\x12\x14\n\x10REBOOTING_DEVICE\x10\x04\x12\x14\n\x10UPGRADE_COMPLETE\x10\x05\x12\x12\n\x0eUPGRADE_FAILED\x10\x06\x12\x17\n\x13\x41\x43TIVATION_COMPLETE\x10\x07\x12\x15\n\x11\x41\x43TIVATION_FAILED\x10\x08\"\xe1\x01\n\x06Reason\x12\x14\n\x10UNDEFINED_REASON\x10\x00\x12\x14\n\x10\x45RROR_IN_REQUEST\x10\x01\x12\x12\n\x0eINTERNAL_ERROR\x10\x02\x12\x19\n\x15\x44\x45VICE_IN_WRONG_STATE\x10\x03\x12\x11\n\rINVALID_IMAGE\x10\x04\x12\x18\n\x14WRONG_IMAGE_CHECKSUM\x10\x05\x12!\n\x1dOPERATION_ALREADY_IN_PROGRESS\x10\x06\x12\x12\n\x0eUNKNOWN_DEVICE\x10\x07\x12\x18\n\x14\x44\x45VICE_NOT_REACHABLE\x10\x08\x42;Z9github.com/opencord/device-management-interface/v3/go/dmib\x06proto3'
uwe ottrembka66d91ea2020-08-11 10:50:55 +020024 ,
25 dependencies=[dmi_dot_commons__pb2.DESCRIPTOR,])
26
27
28
29_IMAGESTATUS_IMAGESTATE = _descriptor.EnumDescriptor(
30 name='ImageState',
31 full_name='dmi.ImageStatus.ImageState',
32 filename=None,
33 file=DESCRIPTOR,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +020034 create_key=_descriptor._internal_create_key,
uwe ottrembka66d91ea2020-08-11 10:50:55 +020035 values=[
36 _descriptor.EnumValueDescriptor(
37 name='UNDEFINED_STATE', index=0, number=0,
38 serialized_options=None,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +020039 type=None,
40 create_key=_descriptor._internal_create_key),
uwe ottrembka66d91ea2020-08-11 10:50:55 +020041 _descriptor.EnumValueDescriptor(
42 name='COPYING_IMAGE', index=1, number=1,
43 serialized_options=None,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +020044 type=None,
45 create_key=_descriptor._internal_create_key),
uwe ottrembka66d91ea2020-08-11 10:50:55 +020046 _descriptor.EnumValueDescriptor(
47 name='INSTALLING_IMAGE', index=2, number=2,
48 serialized_options=None,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +020049 type=None,
50 create_key=_descriptor._internal_create_key),
uwe ottrembka66d91ea2020-08-11 10:50:55 +020051 _descriptor.EnumValueDescriptor(
aghoshc301dcd2020-09-03 16:55:34 +010052 name='COMMITTING_IMAGE', index=3, number=3,
uwe ottrembka66d91ea2020-08-11 10:50:55 +020053 serialized_options=None,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +020054 type=None,
55 create_key=_descriptor._internal_create_key),
uwe ottrembka66d91ea2020-08-11 10:50:55 +020056 _descriptor.EnumValueDescriptor(
57 name='REBOOTING_DEVICE', index=4, number=4,
58 serialized_options=None,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +020059 type=None,
60 create_key=_descriptor._internal_create_key),
uwe ottrembka66d91ea2020-08-11 10:50:55 +020061 _descriptor.EnumValueDescriptor(
62 name='UPGRADE_COMPLETE', index=5, number=5,
63 serialized_options=None,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +020064 type=None,
65 create_key=_descriptor._internal_create_key),
uwe ottrembka66d91ea2020-08-11 10:50:55 +020066 _descriptor.EnumValueDescriptor(
67 name='UPGRADE_FAILED', index=6, number=6,
68 serialized_options=None,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +020069 type=None,
70 create_key=_descriptor._internal_create_key),
uwe ottrembka66d91ea2020-08-11 10:50:55 +020071 _descriptor.EnumValueDescriptor(
72 name='ACTIVATION_COMPLETE', index=7, number=7,
73 serialized_options=None,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +020074 type=None,
75 create_key=_descriptor._internal_create_key),
uwe ottrembka66d91ea2020-08-11 10:50:55 +020076 _descriptor.EnumValueDescriptor(
77 name='ACTIVATION_FAILED', index=8, number=8,
78 serialized_options=None,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +020079 type=None,
80 create_key=_descriptor._internal_create_key),
uwe ottrembka66d91ea2020-08-11 10:50:55 +020081 ],
82 containing_type=None,
83 serialized_options=None,
84 serialized_start=373,
aghoshc301dcd2020-09-03 16:55:34 +010085 serialized_end=581,
uwe ottrembka66d91ea2020-08-11 10:50:55 +020086)
87_sym_db.RegisterEnumDescriptor(_IMAGESTATUS_IMAGESTATE)
88
89_IMAGESTATUS_REASON = _descriptor.EnumDescriptor(
90 name='Reason',
91 full_name='dmi.ImageStatus.Reason',
92 filename=None,
93 file=DESCRIPTOR,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +020094 create_key=_descriptor._internal_create_key,
uwe ottrembka66d91ea2020-08-11 10:50:55 +020095 values=[
96 _descriptor.EnumValueDescriptor(
97 name='UNDEFINED_REASON', index=0, number=0,
98 serialized_options=None,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +020099 type=None,
100 create_key=_descriptor._internal_create_key),
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200101 _descriptor.EnumValueDescriptor(
102 name='ERROR_IN_REQUEST', index=1, number=1,
103 serialized_options=None,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200104 type=None,
105 create_key=_descriptor._internal_create_key),
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200106 _descriptor.EnumValueDescriptor(
107 name='INTERNAL_ERROR', index=2, number=2,
108 serialized_options=None,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200109 type=None,
110 create_key=_descriptor._internal_create_key),
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200111 _descriptor.EnumValueDescriptor(
112 name='DEVICE_IN_WRONG_STATE', index=3, number=3,
113 serialized_options=None,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200114 type=None,
115 create_key=_descriptor._internal_create_key),
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200116 _descriptor.EnumValueDescriptor(
117 name='INVALID_IMAGE', index=4, number=4,
118 serialized_options=None,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200119 type=None,
120 create_key=_descriptor._internal_create_key),
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200121 _descriptor.EnumValueDescriptor(
122 name='WRONG_IMAGE_CHECKSUM', index=5, number=5,
123 serialized_options=None,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200124 type=None,
125 create_key=_descriptor._internal_create_key),
amit.ghoshae473032021-01-10 11:59:10 +0100126 _descriptor.EnumValueDescriptor(
127 name='OPERATION_ALREADY_IN_PROGRESS', index=6, number=6,
128 serialized_options=None,
129 type=None,
130 create_key=_descriptor._internal_create_key),
131 _descriptor.EnumValueDescriptor(
132 name='UNKNOWN_DEVICE', index=7, number=7,
133 serialized_options=None,
134 type=None,
135 create_key=_descriptor._internal_create_key),
136 _descriptor.EnumValueDescriptor(
137 name='DEVICE_NOT_REACHABLE', index=8, number=8,
138 serialized_options=None,
139 type=None,
140 create_key=_descriptor._internal_create_key),
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200141 ],
142 containing_type=None,
143 serialized_options=None,
aghoshc301dcd2020-09-03 16:55:34 +0100144 serialized_start=584,
amit.ghoshae473032021-01-10 11:59:10 +0100145 serialized_end=809,
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200146)
147_sym_db.RegisterEnumDescriptor(_IMAGESTATUS_REASON)
148
149
150_IMAGEVERSION = _descriptor.Descriptor(
151 name='ImageVersion',
152 full_name='dmi.ImageVersion',
153 filename=None,
154 file=DESCRIPTOR,
155 containing_type=None,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200156 create_key=_descriptor._internal_create_key,
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200157 fields=[
158 _descriptor.FieldDescriptor(
159 name='image_name', full_name='dmi.ImageVersion.image_name', index=0,
160 number=1, type=9, cpp_type=9, label=1,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200161 has_default_value=False, default_value=b"".decode('utf-8'),
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200162 message_type=None, enum_type=None, containing_type=None,
163 is_extension=False, extension_scope=None,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200164 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200165 _descriptor.FieldDescriptor(
166 name='version', full_name='dmi.ImageVersion.version', index=1,
167 number=2, type=9, cpp_type=9, label=1,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200168 has_default_value=False, default_value=b"".decode('utf-8'),
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200169 message_type=None, enum_type=None, containing_type=None,
170 is_extension=False, extension_scope=None,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200171 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200172 ],
173 extensions=[
174 ],
175 nested_types=[],
176 enum_types=[
177 ],
178 serialized_options=None,
179 is_extendable=False,
180 syntax='proto3',
181 extension_ranges=[],
182 oneofs=[
183 ],
184 serialized_start=46,
185 serialized_end=97,
186)
187
188
189_IMAGEINFORMATION = _descriptor.Descriptor(
190 name='ImageInformation',
191 full_name='dmi.ImageInformation',
192 filename=None,
193 file=DESCRIPTOR,
194 containing_type=None,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200195 create_key=_descriptor._internal_create_key,
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200196 fields=[
197 _descriptor.FieldDescriptor(
198 name='image', full_name='dmi.ImageInformation.image', index=0,
199 number=1, type=11, cpp_type=10, label=1,
200 has_default_value=False, default_value=None,
201 message_type=None, enum_type=None, containing_type=None,
202 is_extension=False, extension_scope=None,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200203 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200204 _descriptor.FieldDescriptor(
205 name='image_install_script', full_name='dmi.ImageInformation.image_install_script', index=1,
206 number=2, type=9, cpp_type=9, label=1,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200207 has_default_value=False, default_value=b"".decode('utf-8'),
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200208 message_type=None, enum_type=None, containing_type=None,
209 is_extension=False, extension_scope=None,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200210 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200211 _descriptor.FieldDescriptor(
212 name='image_url', full_name='dmi.ImageInformation.image_url', index=2,
213 number=3, type=9, cpp_type=9, label=1,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200214 has_default_value=False, default_value=b"".decode('utf-8'),
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200215 message_type=None, enum_type=None, containing_type=None,
216 is_extension=False, extension_scope=None,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200217 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200218 _descriptor.FieldDescriptor(
219 name='sha256sum', full_name='dmi.ImageInformation.sha256sum', index=3,
220 number=5, type=9, cpp_type=9, label=1,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200221 has_default_value=False, default_value=b"".decode('utf-8'),
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200222 message_type=None, enum_type=None, containing_type=None,
223 is_extension=False, extension_scope=None,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200224 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200225 ],
226 extensions=[
227 ],
228 nested_types=[],
229 enum_types=[
230 ],
231 serialized_options=None,
232 is_extendable=False,
233 syntax='proto3',
234 extension_ranges=[],
235 oneofs=[
236 ],
237 serialized_start=99,
238 serialized_end=219,
239)
240
241
242_IMAGESTATUS = _descriptor.Descriptor(
243 name='ImageStatus',
244 full_name='dmi.ImageStatus',
245 filename=None,
246 file=DESCRIPTOR,
247 containing_type=None,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200248 create_key=_descriptor._internal_create_key,
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200249 fields=[
250 _descriptor.FieldDescriptor(
251 name='status', full_name='dmi.ImageStatus.status', index=0,
252 number=1, type=14, cpp_type=8, label=1,
253 has_default_value=False, default_value=0,
254 message_type=None, enum_type=None, containing_type=None,
255 is_extension=False, extension_scope=None,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200256 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200257 _descriptor.FieldDescriptor(
258 name='reason', full_name='dmi.ImageStatus.reason', index=1,
259 number=2, type=14, cpp_type=8, label=1,
260 has_default_value=False, default_value=0,
261 message_type=None, enum_type=None, containing_type=None,
262 is_extension=False, extension_scope=None,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200263 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200264 _descriptor.FieldDescriptor(
265 name='state', full_name='dmi.ImageStatus.state', index=2,
266 number=3, type=14, cpp_type=8, label=1,
267 has_default_value=False, default_value=0,
268 message_type=None, enum_type=None, containing_type=None,
269 is_extension=False, extension_scope=None,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200270 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200271 _descriptor.FieldDescriptor(
272 name='description', full_name='dmi.ImageStatus.description', index=3,
273 number=4, type=9, cpp_type=9, label=1,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200274 has_default_value=False, default_value=b"".decode('utf-8'),
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200275 message_type=None, enum_type=None, containing_type=None,
276 is_extension=False, extension_scope=None,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200277 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200278 ],
279 extensions=[
280 ],
281 nested_types=[],
282 enum_types=[
283 _IMAGESTATUS_IMAGESTATE,
284 _IMAGESTATUS_REASON,
285 ],
286 serialized_options=None,
287 is_extendable=False,
288 syntax='proto3',
289 extension_ranges=[],
290 oneofs=[
291 ],
292 serialized_start=222,
amit.ghoshae473032021-01-10 11:59:10 +0100293 serialized_end=809,
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200294)
295
296_IMAGEINFORMATION.fields_by_name['image'].message_type = _IMAGEVERSION
297_IMAGESTATUS.fields_by_name['status'].enum_type = dmi_dot_commons__pb2._STATUS
298_IMAGESTATUS.fields_by_name['reason'].enum_type = _IMAGESTATUS_REASON
299_IMAGESTATUS.fields_by_name['state'].enum_type = _IMAGESTATUS_IMAGESTATE
300_IMAGESTATUS_IMAGESTATE.containing_type = _IMAGESTATUS
301_IMAGESTATUS_REASON.containing_type = _IMAGESTATUS
302DESCRIPTOR.message_types_by_name['ImageVersion'] = _IMAGEVERSION
303DESCRIPTOR.message_types_by_name['ImageInformation'] = _IMAGEINFORMATION
304DESCRIPTOR.message_types_by_name['ImageStatus'] = _IMAGESTATUS
305_sym_db.RegisterFileDescriptor(DESCRIPTOR)
306
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200307ImageVersion = _reflection.GeneratedProtocolMessageType('ImageVersion', (_message.Message,), {
308 'DESCRIPTOR' : _IMAGEVERSION,
309 '__module__' : 'dmi.sw_image_pb2'
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200310 # @@protoc_insertion_point(class_scope:dmi.ImageVersion)
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200311 })
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200312_sym_db.RegisterMessage(ImageVersion)
313
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200314ImageInformation = _reflection.GeneratedProtocolMessageType('ImageInformation', (_message.Message,), {
315 'DESCRIPTOR' : _IMAGEINFORMATION,
316 '__module__' : 'dmi.sw_image_pb2'
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200317 # @@protoc_insertion_point(class_scope:dmi.ImageInformation)
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200318 })
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200319_sym_db.RegisterMessage(ImageInformation)
320
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200321ImageStatus = _reflection.GeneratedProtocolMessageType('ImageStatus', (_message.Message,), {
322 'DESCRIPTOR' : _IMAGESTATUS,
323 '__module__' : 'dmi.sw_image_pb2'
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200324 # @@protoc_insertion_point(class_scope:dmi.ImageStatus)
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200325 })
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200326_sym_db.RegisterMessage(ImageStatus)
327
328
329DESCRIPTOR._options = None
330# @@protoc_insertion_point(module_scope)