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('\n\013android.otaB\022OtaPackageMetadataH\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\"{\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\x12\x16\n\x0esource_version\x18\x05 \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#\n\x0b\x61ndroid.otaB\x12OtaPackageMetadataH\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=996,
54  serialized_end=1048,
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    _descriptor.FieldDescriptor(
220      name='source_version', full_name='build.tools.releasetools.ApexInfo.source_version', index=4,
221      number=5, type=3, cpp_type=2, label=1,
222      has_default_value=False, default_value=0,
223      message_type=None, enum_type=None, containing_type=None,
224      is_extension=False, extension_scope=None,
225      serialized_options=None, file=DESCRIPTOR),
226  ],
227  extensions=[
228  ],
229  nested_types=[],
230  enum_types=[
231  ],
232  serialized_options=None,
233  is_extendable=False,
234  syntax='proto3',
235  extension_ranges=[],
236  oneofs=[
237  ],
238  serialized_start=347,
239  serialized_end=470,
240)
241
242
243_APEXMETADATA = _descriptor.Descriptor(
244  name='ApexMetadata',
245  full_name='build.tools.releasetools.ApexMetadata',
246  filename=None,
247  file=DESCRIPTOR,
248  containing_type=None,
249  fields=[
250    _descriptor.FieldDescriptor(
251      name='apex_info', full_name='build.tools.releasetools.ApexMetadata.apex_info', index=0,
252      number=1, type=11, cpp_type=10, label=3,
253      has_default_value=False, default_value=[],
254      message_type=None, enum_type=None, containing_type=None,
255      is_extension=False, extension_scope=None,
256      serialized_options=None, file=DESCRIPTOR),
257  ],
258  extensions=[
259  ],
260  nested_types=[],
261  enum_types=[
262  ],
263  serialized_options=None,
264  is_extendable=False,
265  syntax='proto3',
266  extension_ranges=[],
267  oneofs=[
268  ],
269  serialized_start=472,
270  serialized_end=541,
271)
272
273
274_OTAMETADATA_PROPERTYFILESENTRY = _descriptor.Descriptor(
275  name='PropertyFilesEntry',
276  full_name='build.tools.releasetools.OtaMetadata.PropertyFilesEntry',
277  filename=None,
278  file=DESCRIPTOR,
279  containing_type=None,
280  fields=[
281    _descriptor.FieldDescriptor(
282      name='key', full_name='build.tools.releasetools.OtaMetadata.PropertyFilesEntry.key', index=0,
283      number=1, 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    _descriptor.FieldDescriptor(
289      name='value', full_name='build.tools.releasetools.OtaMetadata.PropertyFilesEntry.value', index=1,
290      number=2, type=9, cpp_type=9, label=1,
291      has_default_value=False, default_value=_b("").decode('utf-8'),
292      message_type=None, enum_type=None, containing_type=None,
293      is_extension=False, extension_scope=None,
294      serialized_options=None, file=DESCRIPTOR),
295  ],
296  extensions=[
297  ],
298  nested_types=[],
299  enum_types=[
300  ],
301  serialized_options=_b('8\001'),
302  is_extendable=False,
303  syntax='proto3',
304  extension_ranges=[],
305  oneofs=[
306  ],
307  serialized_start=942,
308  serialized_end=994,
309)
310
311_OTAMETADATA = _descriptor.Descriptor(
312  name='OtaMetadata',
313  full_name='build.tools.releasetools.OtaMetadata',
314  filename=None,
315  file=DESCRIPTOR,
316  containing_type=None,
317  fields=[
318    _descriptor.FieldDescriptor(
319      name='type', full_name='build.tools.releasetools.OtaMetadata.type', index=0,
320      number=1, type=14, cpp_type=8, label=1,
321      has_default_value=False, default_value=0,
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='wipe', full_name='build.tools.releasetools.OtaMetadata.wipe', index=1,
327      number=2, 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='downgrade', full_name='build.tools.releasetools.OtaMetadata.downgrade', index=2,
334      number=3, type=8, cpp_type=7, label=1,
335      has_default_value=False, default_value=False,
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='property_files', full_name='build.tools.releasetools.OtaMetadata.property_files', index=3,
341      number=4, type=11, cpp_type=10, label=3,
342      has_default_value=False, default_value=[],
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='precondition', full_name='build.tools.releasetools.OtaMetadata.precondition', index=4,
348      number=5, 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='postcondition', full_name='build.tools.releasetools.OtaMetadata.postcondition', index=5,
355      number=6, type=11, cpp_type=10, label=1,
356      has_default_value=False, default_value=None,
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='retrofit_dynamic_partitions', full_name='build.tools.releasetools.OtaMetadata.retrofit_dynamic_partitions', index=6,
362      number=7, type=8, cpp_type=7, label=1,
363      has_default_value=False, default_value=False,
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='required_cache', full_name='build.tools.releasetools.OtaMetadata.required_cache', index=7,
369      number=8, type=3, cpp_type=2, label=1,
370      has_default_value=False, default_value=0,
371      message_type=None, enum_type=None, containing_type=None,
372      is_extension=False, extension_scope=None,
373      serialized_options=None, file=DESCRIPTOR),
374    _descriptor.FieldDescriptor(
375      name='spl_downgrade', full_name='build.tools.releasetools.OtaMetadata.spl_downgrade', index=8,
376      number=9, type=8, cpp_type=7, label=1,
377      has_default_value=False, default_value=False,
378      message_type=None, enum_type=None, containing_type=None,
379      is_extension=False, extension_scope=None,
380      serialized_options=None, file=DESCRIPTOR),
381  ],
382  extensions=[
383  ],
384  nested_types=[_OTAMETADATA_PROPERTYFILESENTRY, ],
385  enum_types=[
386    _OTAMETADATA_OTATYPE,
387  ],
388  serialized_options=None,
389  is_extendable=False,
390  syntax='proto3',
391  extension_ranges=[],
392  oneofs=[
393  ],
394  serialized_start=544,
395  serialized_end=1048,
396)
397
398_DEVICESTATE.fields_by_name['partition_state'].message_type = _PARTITIONSTATE
399_APEXMETADATA.fields_by_name['apex_info'].message_type = _APEXINFO
400_OTAMETADATA_PROPERTYFILESENTRY.containing_type = _OTAMETADATA
401_OTAMETADATA.fields_by_name['type'].enum_type = _OTAMETADATA_OTATYPE
402_OTAMETADATA.fields_by_name['property_files'].message_type = _OTAMETADATA_PROPERTYFILESENTRY
403_OTAMETADATA.fields_by_name['precondition'].message_type = _DEVICESTATE
404_OTAMETADATA.fields_by_name['postcondition'].message_type = _DEVICESTATE
405_OTAMETADATA_OTATYPE.containing_type = _OTAMETADATA
406DESCRIPTOR.message_types_by_name['PartitionState'] = _PARTITIONSTATE
407DESCRIPTOR.message_types_by_name['DeviceState'] = _DEVICESTATE
408DESCRIPTOR.message_types_by_name['ApexInfo'] = _APEXINFO
409DESCRIPTOR.message_types_by_name['ApexMetadata'] = _APEXMETADATA
410DESCRIPTOR.message_types_by_name['OtaMetadata'] = _OTAMETADATA
411_sym_db.RegisterFileDescriptor(DESCRIPTOR)
412
413PartitionState = _reflection.GeneratedProtocolMessageType('PartitionState', (_message.Message,), {
414  'DESCRIPTOR' : _PARTITIONSTATE,
415  '__module__' : 'ota_metadata_pb2'
416  # @@protoc_insertion_point(class_scope:build.tools.releasetools.PartitionState)
417  })
418_sym_db.RegisterMessage(PartitionState)
419
420DeviceState = _reflection.GeneratedProtocolMessageType('DeviceState', (_message.Message,), {
421  'DESCRIPTOR' : _DEVICESTATE,
422  '__module__' : 'ota_metadata_pb2'
423  # @@protoc_insertion_point(class_scope:build.tools.releasetools.DeviceState)
424  })
425_sym_db.RegisterMessage(DeviceState)
426
427ApexInfo = _reflection.GeneratedProtocolMessageType('ApexInfo', (_message.Message,), {
428  'DESCRIPTOR' : _APEXINFO,
429  '__module__' : 'ota_metadata_pb2'
430  # @@protoc_insertion_point(class_scope:build.tools.releasetools.ApexInfo)
431  })
432_sym_db.RegisterMessage(ApexInfo)
433
434ApexMetadata = _reflection.GeneratedProtocolMessageType('ApexMetadata', (_message.Message,), {
435  'DESCRIPTOR' : _APEXMETADATA,
436  '__module__' : 'ota_metadata_pb2'
437  # @@protoc_insertion_point(class_scope:build.tools.releasetools.ApexMetadata)
438  })
439_sym_db.RegisterMessage(ApexMetadata)
440
441OtaMetadata = _reflection.GeneratedProtocolMessageType('OtaMetadata', (_message.Message,), {
442
443  'PropertyFilesEntry' : _reflection.GeneratedProtocolMessageType('PropertyFilesEntry', (_message.Message,), {
444    'DESCRIPTOR' : _OTAMETADATA_PROPERTYFILESENTRY,
445    '__module__' : 'ota_metadata_pb2'
446    # @@protoc_insertion_point(class_scope:build.tools.releasetools.OtaMetadata.PropertyFilesEntry)
447    })
448  ,
449  'DESCRIPTOR' : _OTAMETADATA,
450  '__module__' : 'ota_metadata_pb2'
451  # @@protoc_insertion_point(class_scope:build.tools.releasetools.OtaMetadata)
452  })
453_sym_db.RegisterMessage(OtaMetadata)
454_sym_db.RegisterMessage(OtaMetadata.PropertyFilesEntry)
455
456
457DESCRIPTOR._options = None
458_OTAMETADATA_PROPERTYFILESENTRY._options = None
459# @@protoc_insertion_point(module_scope)
460