1# -*- coding: utf-8 -*- 2# Generated by the protocol buffer compiler. DO NOT EDIT! 3# source: ota_metadata.proto 4 5import sys 6_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) 7from google.protobuf import descriptor as _descriptor 8from google.protobuf import message as _message 9from google.protobuf import reflection as _reflection 10from google.protobuf import symbol_database as _symbol_database 11# @@protoc_insertion_point(imports) 12 13_sym_db = _symbol_database.Default() 14 15 16 17 18DESCRIPTOR = _descriptor.FileDescriptor( 19 name='ota_metadata.proto', 20 package='build.tools.releasetools', 21 syntax='proto3', 22 serialized_options=_b('H\003'), 23 serialized_pb=_b('\n\x12ota_metadata.proto\x12\x18\x62uild.tools.releasetools\"X\n\x0ePartitionState\x12\x16\n\x0epartition_name\x18\x01 \x01(\t\x12\x0e\n\x06\x64\x65vice\x18\x02 \x03(\t\x12\r\n\x05\x62uild\x18\x03 \x03(\t\x12\x0f\n\x07version\x18\x04 \x01(\t\"\xce\x01\n\x0b\x44\x65viceState\x12\x0e\n\x06\x64\x65vice\x18\x01 \x03(\t\x12\r\n\x05\x62uild\x18\x02 \x03(\t\x12\x19\n\x11\x62uild_incremental\x18\x03 \x01(\t\x12\x11\n\ttimestamp\x18\x04 \x01(\x03\x12\x11\n\tsdk_level\x18\x05 \x01(\t\x12\x1c\n\x14security_patch_level\x18\x06 \x01(\t\x12\x41\n\x0fpartition_state\x18\x07 \x03(\x0b\x32(.build.tools.releasetools.PartitionState\"c\n\x08\x41pexInfo\x12\x14\n\x0cpackage_name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x03\x12\x15\n\ris_compressed\x18\x03 \x01(\x08\x12\x19\n\x11\x64\x65\x63ompressed_size\x18\x04 \x01(\x03\"E\n\x0c\x41pexMetadata\x12\x35\n\tapex_info\x18\x01 \x03(\x0b\x32\".build.tools.releasetools.ApexInfo\"\xf8\x03\n\x0bOtaMetadata\x12;\n\x04type\x18\x01 \x01(\x0e\x32-.build.tools.releasetools.OtaMetadata.OtaType\x12\x0c\n\x04wipe\x18\x02 \x01(\x08\x12\x11\n\tdowngrade\x18\x03 \x01(\x08\x12P\n\x0eproperty_files\x18\x04 \x03(\x0b\x32\x38.build.tools.releasetools.OtaMetadata.PropertyFilesEntry\x12;\n\x0cprecondition\x18\x05 \x01(\x0b\x32%.build.tools.releasetools.DeviceState\x12<\n\rpostcondition\x18\x06 \x01(\x0b\x32%.build.tools.releasetools.DeviceState\x12#\n\x1bretrofit_dynamic_partitions\x18\x07 \x01(\x08\x12\x16\n\x0erequired_cache\x18\x08 \x01(\x03\x12\x15\n\rspl_downgrade\x18\t \x01(\x08\x1a\x34\n\x12PropertyFilesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"4\n\x07OtaType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x06\n\x02\x41\x42\x10\x01\x12\t\n\x05\x42LOCK\x10\x02\x12\t\n\x05\x42RICK\x10\x03\x42\x02H\x03\x62\x06proto3') 24) 25 26 27 28_OTAMETADATA_OTATYPE = _descriptor.EnumDescriptor( 29 name='OtaType', 30 full_name='build.tools.releasetools.OtaMetadata.OtaType', 31 filename=None, 32 file=DESCRIPTOR, 33 values=[ 34 _descriptor.EnumValueDescriptor( 35 name='UNKNOWN', index=0, number=0, 36 serialized_options=None, 37 type=None), 38 _descriptor.EnumValueDescriptor( 39 name='AB', index=1, number=1, 40 serialized_options=None, 41 type=None), 42 _descriptor.EnumValueDescriptor( 43 name='BLOCK', index=2, number=2, 44 serialized_options=None, 45 type=None), 46 _descriptor.EnumValueDescriptor( 47 name='BRICK', index=3, number=3, 48 serialized_options=None, 49 type=None), 50 ], 51 containing_type=None, 52 serialized_options=None, 53 serialized_start=972, 54 serialized_end=1024, 55) 56_sym_db.RegisterEnumDescriptor(_OTAMETADATA_OTATYPE) 57 58 59_PARTITIONSTATE = _descriptor.Descriptor( 60 name='PartitionState', 61 full_name='build.tools.releasetools.PartitionState', 62 filename=None, 63 file=DESCRIPTOR, 64 containing_type=None, 65 fields=[ 66 _descriptor.FieldDescriptor( 67 name='partition_name', full_name='build.tools.releasetools.PartitionState.partition_name', index=0, 68 number=1, type=9, cpp_type=9, label=1, 69 has_default_value=False, default_value=_b("").decode('utf-8'), 70 message_type=None, enum_type=None, containing_type=None, 71 is_extension=False, extension_scope=None, 72 serialized_options=None, file=DESCRIPTOR), 73 _descriptor.FieldDescriptor( 74 name='device', full_name='build.tools.releasetools.PartitionState.device', index=1, 75 number=2, type=9, cpp_type=9, label=3, 76 has_default_value=False, default_value=[], 77 message_type=None, enum_type=None, containing_type=None, 78 is_extension=False, extension_scope=None, 79 serialized_options=None, file=DESCRIPTOR), 80 _descriptor.FieldDescriptor( 81 name='build', full_name='build.tools.releasetools.PartitionState.build', index=2, 82 number=3, type=9, cpp_type=9, label=3, 83 has_default_value=False, default_value=[], 84 message_type=None, enum_type=None, containing_type=None, 85 is_extension=False, extension_scope=None, 86 serialized_options=None, file=DESCRIPTOR), 87 _descriptor.FieldDescriptor( 88 name='version', full_name='build.tools.releasetools.PartitionState.version', index=3, 89 number=4, type=9, cpp_type=9, label=1, 90 has_default_value=False, default_value=_b("").decode('utf-8'), 91 message_type=None, enum_type=None, containing_type=None, 92 is_extension=False, extension_scope=None, 93 serialized_options=None, file=DESCRIPTOR), 94 ], 95 extensions=[ 96 ], 97 nested_types=[], 98 enum_types=[ 99 ], 100 serialized_options=None, 101 is_extendable=False, 102 syntax='proto3', 103 extension_ranges=[], 104 oneofs=[ 105 ], 106 serialized_start=48, 107 serialized_end=136, 108) 109 110 111_DEVICESTATE = _descriptor.Descriptor( 112 name='DeviceState', 113 full_name='build.tools.releasetools.DeviceState', 114 filename=None, 115 file=DESCRIPTOR, 116 containing_type=None, 117 fields=[ 118 _descriptor.FieldDescriptor( 119 name='device', full_name='build.tools.releasetools.DeviceState.device', index=0, 120 number=1, type=9, cpp_type=9, label=3, 121 has_default_value=False, default_value=[], 122 message_type=None, enum_type=None, containing_type=None, 123 is_extension=False, extension_scope=None, 124 serialized_options=None, file=DESCRIPTOR), 125 _descriptor.FieldDescriptor( 126 name='build', full_name='build.tools.releasetools.DeviceState.build', index=1, 127 number=2, type=9, cpp_type=9, label=3, 128 has_default_value=False, default_value=[], 129 message_type=None, enum_type=None, containing_type=None, 130 is_extension=False, extension_scope=None, 131 serialized_options=None, file=DESCRIPTOR), 132 _descriptor.FieldDescriptor( 133 name='build_incremental', full_name='build.tools.releasetools.DeviceState.build_incremental', index=2, 134 number=3, type=9, cpp_type=9, label=1, 135 has_default_value=False, default_value=_b("").decode('utf-8'), 136 message_type=None, enum_type=None, containing_type=None, 137 is_extension=False, extension_scope=None, 138 serialized_options=None, file=DESCRIPTOR), 139 _descriptor.FieldDescriptor( 140 name='timestamp', full_name='build.tools.releasetools.DeviceState.timestamp', index=3, 141 number=4, type=3, cpp_type=2, label=1, 142 has_default_value=False, default_value=0, 143 message_type=None, enum_type=None, containing_type=None, 144 is_extension=False, extension_scope=None, 145 serialized_options=None, file=DESCRIPTOR), 146 _descriptor.FieldDescriptor( 147 name='sdk_level', full_name='build.tools.releasetools.DeviceState.sdk_level', index=4, 148 number=5, type=9, cpp_type=9, label=1, 149 has_default_value=False, default_value=_b("").decode('utf-8'), 150 message_type=None, enum_type=None, containing_type=None, 151 is_extension=False, extension_scope=None, 152 serialized_options=None, file=DESCRIPTOR), 153 _descriptor.FieldDescriptor( 154 name='security_patch_level', full_name='build.tools.releasetools.DeviceState.security_patch_level', index=5, 155 number=6, type=9, cpp_type=9, label=1, 156 has_default_value=False, default_value=_b("").decode('utf-8'), 157 message_type=None, enum_type=None, containing_type=None, 158 is_extension=False, extension_scope=None, 159 serialized_options=None, file=DESCRIPTOR), 160 _descriptor.FieldDescriptor( 161 name='partition_state', full_name='build.tools.releasetools.DeviceState.partition_state', index=6, 162 number=7, type=11, cpp_type=10, label=3, 163 has_default_value=False, default_value=[], 164 message_type=None, enum_type=None, containing_type=None, 165 is_extension=False, extension_scope=None, 166 serialized_options=None, file=DESCRIPTOR), 167 ], 168 extensions=[ 169 ], 170 nested_types=[], 171 enum_types=[ 172 ], 173 serialized_options=None, 174 is_extendable=False, 175 syntax='proto3', 176 extension_ranges=[], 177 oneofs=[ 178 ], 179 serialized_start=139, 180 serialized_end=345, 181) 182 183 184_APEXINFO = _descriptor.Descriptor( 185 name='ApexInfo', 186 full_name='build.tools.releasetools.ApexInfo', 187 filename=None, 188 file=DESCRIPTOR, 189 containing_type=None, 190 fields=[ 191 _descriptor.FieldDescriptor( 192 name='package_name', full_name='build.tools.releasetools.ApexInfo.package_name', index=0, 193 number=1, type=9, cpp_type=9, label=1, 194 has_default_value=False, default_value=_b("").decode('utf-8'), 195 message_type=None, enum_type=None, containing_type=None, 196 is_extension=False, extension_scope=None, 197 serialized_options=None, file=DESCRIPTOR), 198 _descriptor.FieldDescriptor( 199 name='version', full_name='build.tools.releasetools.ApexInfo.version', index=1, 200 number=2, type=3, cpp_type=2, label=1, 201 has_default_value=False, default_value=0, 202 message_type=None, enum_type=None, containing_type=None, 203 is_extension=False, extension_scope=None, 204 serialized_options=None, file=DESCRIPTOR), 205 _descriptor.FieldDescriptor( 206 name='is_compressed', full_name='build.tools.releasetools.ApexInfo.is_compressed', index=2, 207 number=3, type=8, cpp_type=7, label=1, 208 has_default_value=False, default_value=False, 209 message_type=None, enum_type=None, containing_type=None, 210 is_extension=False, extension_scope=None, 211 serialized_options=None, file=DESCRIPTOR), 212 _descriptor.FieldDescriptor( 213 name='decompressed_size', full_name='build.tools.releasetools.ApexInfo.decompressed_size', index=3, 214 number=4, type=3, cpp_type=2, label=1, 215 has_default_value=False, default_value=0, 216 message_type=None, enum_type=None, containing_type=None, 217 is_extension=False, extension_scope=None, 218 serialized_options=None, file=DESCRIPTOR), 219 ], 220 extensions=[ 221 ], 222 nested_types=[], 223 enum_types=[ 224 ], 225 serialized_options=None, 226 is_extendable=False, 227 syntax='proto3', 228 extension_ranges=[], 229 oneofs=[ 230 ], 231 serialized_start=347, 232 serialized_end=446, 233) 234 235 236_APEXMETADATA = _descriptor.Descriptor( 237 name='ApexMetadata', 238 full_name='build.tools.releasetools.ApexMetadata', 239 filename=None, 240 file=DESCRIPTOR, 241 containing_type=None, 242 fields=[ 243 _descriptor.FieldDescriptor( 244 name='apex_info', full_name='build.tools.releasetools.ApexMetadata.apex_info', index=0, 245 number=1, type=11, cpp_type=10, label=3, 246 has_default_value=False, default_value=[], 247 message_type=None, enum_type=None, containing_type=None, 248 is_extension=False, extension_scope=None, 249 serialized_options=None, file=DESCRIPTOR), 250 ], 251 extensions=[ 252 ], 253 nested_types=[], 254 enum_types=[ 255 ], 256 serialized_options=None, 257 is_extendable=False, 258 syntax='proto3', 259 extension_ranges=[], 260 oneofs=[ 261 ], 262 serialized_start=448, 263 serialized_end=517, 264) 265 266 267_OTAMETADATA_PROPERTYFILESENTRY = _descriptor.Descriptor( 268 name='PropertyFilesEntry', 269 full_name='build.tools.releasetools.OtaMetadata.PropertyFilesEntry', 270 filename=None, 271 file=DESCRIPTOR, 272 containing_type=None, 273 fields=[ 274 _descriptor.FieldDescriptor( 275 name='key', full_name='build.tools.releasetools.OtaMetadata.PropertyFilesEntry.key', index=0, 276 number=1, type=9, cpp_type=9, label=1, 277 has_default_value=False, default_value=_b("").decode('utf-8'), 278 message_type=None, enum_type=None, containing_type=None, 279 is_extension=False, extension_scope=None, 280 serialized_options=None, file=DESCRIPTOR), 281 _descriptor.FieldDescriptor( 282 name='value', full_name='build.tools.releasetools.OtaMetadata.PropertyFilesEntry.value', index=1, 283 number=2, type=9, cpp_type=9, label=1, 284 has_default_value=False, default_value=_b("").decode('utf-8'), 285 message_type=None, enum_type=None, containing_type=None, 286 is_extension=False, extension_scope=None, 287 serialized_options=None, file=DESCRIPTOR), 288 ], 289 extensions=[ 290 ], 291 nested_types=[], 292 enum_types=[ 293 ], 294 serialized_options=_b('8\001'), 295 is_extendable=False, 296 syntax='proto3', 297 extension_ranges=[], 298 oneofs=[ 299 ], 300 serialized_start=918, 301 serialized_end=970, 302) 303 304_OTAMETADATA = _descriptor.Descriptor( 305 name='OtaMetadata', 306 full_name='build.tools.releasetools.OtaMetadata', 307 filename=None, 308 file=DESCRIPTOR, 309 containing_type=None, 310 fields=[ 311 _descriptor.FieldDescriptor( 312 name='type', full_name='build.tools.releasetools.OtaMetadata.type', index=0, 313 number=1, type=14, cpp_type=8, label=1, 314 has_default_value=False, default_value=0, 315 message_type=None, enum_type=None, containing_type=None, 316 is_extension=False, extension_scope=None, 317 serialized_options=None, file=DESCRIPTOR), 318 _descriptor.FieldDescriptor( 319 name='wipe', full_name='build.tools.releasetools.OtaMetadata.wipe', index=1, 320 number=2, type=8, cpp_type=7, label=1, 321 has_default_value=False, default_value=False, 322 message_type=None, enum_type=None, containing_type=None, 323 is_extension=False, extension_scope=None, 324 serialized_options=None, file=DESCRIPTOR), 325 _descriptor.FieldDescriptor( 326 name='downgrade', full_name='build.tools.releasetools.OtaMetadata.downgrade', index=2, 327 number=3, type=8, cpp_type=7, label=1, 328 has_default_value=False, default_value=False, 329 message_type=None, enum_type=None, containing_type=None, 330 is_extension=False, extension_scope=None, 331 serialized_options=None, file=DESCRIPTOR), 332 _descriptor.FieldDescriptor( 333 name='property_files', full_name='build.tools.releasetools.OtaMetadata.property_files', index=3, 334 number=4, type=11, cpp_type=10, label=3, 335 has_default_value=False, default_value=[], 336 message_type=None, enum_type=None, containing_type=None, 337 is_extension=False, extension_scope=None, 338 serialized_options=None, file=DESCRIPTOR), 339 _descriptor.FieldDescriptor( 340 name='precondition', full_name='build.tools.releasetools.OtaMetadata.precondition', index=4, 341 number=5, type=11, cpp_type=10, label=1, 342 has_default_value=False, default_value=None, 343 message_type=None, enum_type=None, containing_type=None, 344 is_extension=False, extension_scope=None, 345 serialized_options=None, file=DESCRIPTOR), 346 _descriptor.FieldDescriptor( 347 name='postcondition', full_name='build.tools.releasetools.OtaMetadata.postcondition', index=5, 348 number=6, type=11, cpp_type=10, label=1, 349 has_default_value=False, default_value=None, 350 message_type=None, enum_type=None, containing_type=None, 351 is_extension=False, extension_scope=None, 352 serialized_options=None, file=DESCRIPTOR), 353 _descriptor.FieldDescriptor( 354 name='retrofit_dynamic_partitions', full_name='build.tools.releasetools.OtaMetadata.retrofit_dynamic_partitions', index=6, 355 number=7, type=8, cpp_type=7, label=1, 356 has_default_value=False, default_value=False, 357 message_type=None, enum_type=None, containing_type=None, 358 is_extension=False, extension_scope=None, 359 serialized_options=None, file=DESCRIPTOR), 360 _descriptor.FieldDescriptor( 361 name='required_cache', full_name='build.tools.releasetools.OtaMetadata.required_cache', index=7, 362 number=8, type=3, cpp_type=2, label=1, 363 has_default_value=False, default_value=0, 364 message_type=None, enum_type=None, containing_type=None, 365 is_extension=False, extension_scope=None, 366 serialized_options=None, file=DESCRIPTOR), 367 _descriptor.FieldDescriptor( 368 name='spl_downgrade', full_name='build.tools.releasetools.OtaMetadata.spl_downgrade', index=8, 369 number=9, type=8, cpp_type=7, label=1, 370 has_default_value=False, default_value=False, 371 message_type=None, enum_type=None, containing_type=None, 372 is_extension=False, extension_scope=None, 373 serialized_options=None, file=DESCRIPTOR), 374 ], 375 extensions=[ 376 ], 377 nested_types=[_OTAMETADATA_PROPERTYFILESENTRY, ], 378 enum_types=[ 379 _OTAMETADATA_OTATYPE, 380 ], 381 serialized_options=None, 382 is_extendable=False, 383 syntax='proto3', 384 extension_ranges=[], 385 oneofs=[ 386 ], 387 serialized_start=520, 388 serialized_end=1024, 389) 390 391_DEVICESTATE.fields_by_name['partition_state'].message_type = _PARTITIONSTATE 392_APEXMETADATA.fields_by_name['apex_info'].message_type = _APEXINFO 393_OTAMETADATA_PROPERTYFILESENTRY.containing_type = _OTAMETADATA 394_OTAMETADATA.fields_by_name['type'].enum_type = _OTAMETADATA_OTATYPE 395_OTAMETADATA.fields_by_name['property_files'].message_type = _OTAMETADATA_PROPERTYFILESENTRY 396_OTAMETADATA.fields_by_name['precondition'].message_type = _DEVICESTATE 397_OTAMETADATA.fields_by_name['postcondition'].message_type = _DEVICESTATE 398_OTAMETADATA_OTATYPE.containing_type = _OTAMETADATA 399DESCRIPTOR.message_types_by_name['PartitionState'] = _PARTITIONSTATE 400DESCRIPTOR.message_types_by_name['DeviceState'] = _DEVICESTATE 401DESCRIPTOR.message_types_by_name['ApexInfo'] = _APEXINFO 402DESCRIPTOR.message_types_by_name['ApexMetadata'] = _APEXMETADATA 403DESCRIPTOR.message_types_by_name['OtaMetadata'] = _OTAMETADATA 404_sym_db.RegisterFileDescriptor(DESCRIPTOR) 405 406PartitionState = _reflection.GeneratedProtocolMessageType('PartitionState', (_message.Message,), { 407 'DESCRIPTOR' : _PARTITIONSTATE, 408 '__module__' : 'ota_metadata_pb2' 409 # @@protoc_insertion_point(class_scope:build.tools.releasetools.PartitionState) 410 }) 411_sym_db.RegisterMessage(PartitionState) 412 413DeviceState = _reflection.GeneratedProtocolMessageType('DeviceState', (_message.Message,), { 414 'DESCRIPTOR' : _DEVICESTATE, 415 '__module__' : 'ota_metadata_pb2' 416 # @@protoc_insertion_point(class_scope:build.tools.releasetools.DeviceState) 417 }) 418_sym_db.RegisterMessage(DeviceState) 419 420ApexInfo = _reflection.GeneratedProtocolMessageType('ApexInfo', (_message.Message,), { 421 'DESCRIPTOR' : _APEXINFO, 422 '__module__' : 'ota_metadata_pb2' 423 # @@protoc_insertion_point(class_scope:build.tools.releasetools.ApexInfo) 424 }) 425_sym_db.RegisterMessage(ApexInfo) 426 427ApexMetadata = _reflection.GeneratedProtocolMessageType('ApexMetadata', (_message.Message,), { 428 'DESCRIPTOR' : _APEXMETADATA, 429 '__module__' : 'ota_metadata_pb2' 430 # @@protoc_insertion_point(class_scope:build.tools.releasetools.ApexMetadata) 431 }) 432_sym_db.RegisterMessage(ApexMetadata) 433 434OtaMetadata = _reflection.GeneratedProtocolMessageType('OtaMetadata', (_message.Message,), { 435 436 'PropertyFilesEntry' : _reflection.GeneratedProtocolMessageType('PropertyFilesEntry', (_message.Message,), { 437 'DESCRIPTOR' : _OTAMETADATA_PROPERTYFILESENTRY, 438 '__module__' : 'ota_metadata_pb2' 439 # @@protoc_insertion_point(class_scope:build.tools.releasetools.OtaMetadata.PropertyFilesEntry) 440 }) 441 , 442 'DESCRIPTOR' : _OTAMETADATA, 443 '__module__' : 'ota_metadata_pb2' 444 # @@protoc_insertion_point(class_scope:build.tools.releasetools.OtaMetadata) 445 }) 446_sym_db.RegisterMessage(OtaMetadata) 447_sym_db.RegisterMessage(OtaMetadata.PropertyFilesEntry) 448 449 450DESCRIPTOR._options = None 451_OTAMETADATA_PROPERTYFILESENTRY._options = None 452# @@protoc_insertion_point(module_scope) 453