Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Side by Side Diff: recipe_engine/result_pb2.py

Issue 2802693003: include Package proto into Result proto (Closed)
Patch Set: rebased and addressed comments Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « recipe_engine/result.proto ('k') | recipe_engine/run.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Generated by the protocol buffer compiler. DO NOT EDIT! 1 # Generated by the protocol buffer compiler. DO NOT EDIT!
2 # source: result.proto 2 # source: result.proto
3 3
4 import sys 4 import sys
5 _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) 5 _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
6 from google.protobuf import descriptor as _descriptor 6 from google.protobuf import descriptor as _descriptor
7 from google.protobuf import message as _message 7 from google.protobuf import message as _message
8 from google.protobuf import reflection as _reflection 8 from google.protobuf import reflection as _reflection
9 from google.protobuf import symbol_database as _symbol_database 9 from google.protobuf import symbol_database as _symbol_database
10 from google.protobuf import descriptor_pb2 10 from google.protobuf import descriptor_pb2
11 # @@protoc_insertion_point(imports) 11 # @@protoc_insertion_point(imports)
12 12
13 _sym_db = _symbol_database.Default() 13 _sym_db = _symbol_database.Default()
14 14
15 15
16 import package_pb2 as package__pb2
16 17
17 18
18 DESCRIPTOR = _descriptor.FileDescriptor( 19 DESCRIPTOR = _descriptor.FileDescriptor(
19 name='result.proto', 20 name='result.proto',
20 package='recipe_engine', 21 package='recipe_engine',
21 syntax='proto3', 22 syntax='proto3',
22 serialized_pb=_b('\n\x0cresult.proto\x12\rrecipe_engine\"Z\n\x06Result\x12\x15 \n\x0bjson_result\x18\x01 \x01(\tH\x00\x12)\n\x07\x66\x61ilure\x18\x02 \x01(\x0b \x32\x16.recipe_engine.FailureH\x00\x42\x0e\n\x0coneof_result\"\xe6\x01\n\x07\x4 6\x61ilure\x12\x14\n\x0chuman_reason\x18\x01 \x01(\t\x12)\n\x07timeout\x18\x02 \ x01(\x0b\x32\x16.recipe_engine.TimeoutH\x00\x12-\n\texception\x18\x03 \x01(\x0b\ x32\x18.recipe_engine.ExceptionH\x00\x12,\n\tstep_data\x18\x04 \x01(\x0b\x32\x17 .recipe_engine.StepDataH\x00\x12-\n\x07\x66\x61ilure\x18\x05 \x01(\x0b\x32\x1a.r ecipe_engine.StepFailureH\x00\x42\x0e\n\x0c\x66\x61ilure_type\"\x1e\n\tException \x12\x11\n\ttraceback\x18\x01 \x03(\t\"\x1c\n\x07Timeout\x12\x11\n\ttimeout_s\x1 8\x01 \x01(\x02\"\x18\n\x08StepData\x12\x0c\n\x04step\x18\x01 \x01(\t\"\x1b\n\x0 bStepFailure\x12\x0c\n\x04step\x18\x01 \x01(\tb\x06proto3') 23 serialized_pb=_b('\n\x0cresult.proto\x12\rrecipe_engine\x1a\rpackage.proto\"\x 8a\x01\n\x06Result\x12\x15\n\x0bjson_result\x18\x01 \x01(\tH\x00\x12)\n\x07\x66\ x61ilure\x18\x02 \x01(\x0b\x32\x16.recipe_engine.FailureH\x00\x12.\n\x0erecipe_p ackage\x18\x03 \x01(\x0b\x32\x16.recipe_engine.PackageB\x0e\n\x0coneof_result\"\ xe6\x01\n\x07\x46\x61ilure\x12\x14\n\x0chuman_reason\x18\x01 \x01(\t\x12)\n\x07t imeout\x18\x02 \x01(\x0b\x32\x16.recipe_engine.TimeoutH\x00\x12-\n\texception\x1 8\x03 \x01(\x0b\x32\x18.recipe_engine.ExceptionH\x00\x12,\n\tstep_data\x18\x04 \ x01(\x0b\x32\x17.recipe_engine.StepDataH\x00\x12-\n\x07\x66\x61ilure\x18\x05 \x0 1(\x0b\x32\x1a.recipe_engine.StepFailureH\x00\x42\x0e\n\x0c\x66\x61ilure_type\"\ x1e\n\tException\x12\x11\n\ttraceback\x18\x01 \x03(\t\"\x1c\n\x07Timeout\x12\x11 \n\ttimeout_s\x18\x01 \x01(\x02\"\x18\n\x08StepData\x12\x0c\n\x04step\x18\x01 \x 01(\t\"\x1b\n\x0bStepFailure\x12\x0c\n\x04step\x18\x01 \x01(\tb\x06proto3')
23 ) 24 ,
25 dependencies=[package__pb2.DESCRIPTOR,])
24 _sym_db.RegisterFileDescriptor(DESCRIPTOR) 26 _sym_db.RegisterFileDescriptor(DESCRIPTOR)
25 27
26 28
27 29
28 30
29 _RESULT = _descriptor.Descriptor( 31 _RESULT = _descriptor.Descriptor(
30 name='Result', 32 name='Result',
31 full_name='recipe_engine.Result', 33 full_name='recipe_engine.Result',
32 filename=None, 34 filename=None,
33 file=DESCRIPTOR, 35 file=DESCRIPTOR,
34 containing_type=None, 36 containing_type=None,
35 fields=[ 37 fields=[
36 _descriptor.FieldDescriptor( 38 _descriptor.FieldDescriptor(
37 name='json_result', full_name='recipe_engine.Result.json_result', index=0, 39 name='json_result', full_name='recipe_engine.Result.json_result', index=0,
38 number=1, type=9, cpp_type=9, label=1, 40 number=1, type=9, cpp_type=9, label=1,
39 has_default_value=False, default_value=_b("").decode('utf-8'), 41 has_default_value=False, default_value=_b("").decode('utf-8'),
40 message_type=None, enum_type=None, containing_type=None, 42 message_type=None, enum_type=None, containing_type=None,
41 is_extension=False, extension_scope=None, 43 is_extension=False, extension_scope=None,
42 options=None), 44 options=None),
43 _descriptor.FieldDescriptor( 45 _descriptor.FieldDescriptor(
44 name='failure', full_name='recipe_engine.Result.failure', index=1, 46 name='failure', full_name='recipe_engine.Result.failure', index=1,
45 number=2, type=11, cpp_type=10, label=1, 47 number=2, type=11, cpp_type=10, label=1,
46 has_default_value=False, default_value=None, 48 has_default_value=False, default_value=None,
47 message_type=None, enum_type=None, containing_type=None, 49 message_type=None, enum_type=None, containing_type=None,
48 is_extension=False, extension_scope=None, 50 is_extension=False, extension_scope=None,
49 options=None), 51 options=None),
52 _descriptor.FieldDescriptor(
53 name='recipe_package', full_name='recipe_engine.Result.recipe_package', in dex=2,
54 number=3, type=11, cpp_type=10, label=1,
55 has_default_value=False, default_value=None,
56 message_type=None, enum_type=None, containing_type=None,
57 is_extension=False, extension_scope=None,
58 options=None),
50 ], 59 ],
51 extensions=[ 60 extensions=[
52 ], 61 ],
53 nested_types=[], 62 nested_types=[],
54 enum_types=[ 63 enum_types=[
55 ], 64 ],
56 options=None, 65 options=None,
57 is_extendable=False, 66 is_extendable=False,
58 syntax='proto3', 67 syntax='proto3',
59 extension_ranges=[], 68 extension_ranges=[],
60 oneofs=[ 69 oneofs=[
61 _descriptor.OneofDescriptor( 70 _descriptor.OneofDescriptor(
62 name='oneof_result', full_name='recipe_engine.Result.oneof_result', 71 name='oneof_result', full_name='recipe_engine.Result.oneof_result',
63 index=0, containing_type=None, fields=[]), 72 index=0, containing_type=None, fields=[]),
64 ], 73 ],
65 serialized_start=31, 74 serialized_start=47,
66 serialized_end=121, 75 serialized_end=185,
67 ) 76 )
68 77
69 78
70 _FAILURE = _descriptor.Descriptor( 79 _FAILURE = _descriptor.Descriptor(
71 name='Failure', 80 name='Failure',
72 full_name='recipe_engine.Failure', 81 full_name='recipe_engine.Failure',
73 filename=None, 82 filename=None,
74 file=DESCRIPTOR, 83 file=DESCRIPTOR,
75 containing_type=None, 84 containing_type=None,
76 fields=[ 85 fields=[
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 ], 126 ],
118 options=None, 127 options=None,
119 is_extendable=False, 128 is_extendable=False,
120 syntax='proto3', 129 syntax='proto3',
121 extension_ranges=[], 130 extension_ranges=[],
122 oneofs=[ 131 oneofs=[
123 _descriptor.OneofDescriptor( 132 _descriptor.OneofDescriptor(
124 name='failure_type', full_name='recipe_engine.Failure.failure_type', 133 name='failure_type', full_name='recipe_engine.Failure.failure_type',
125 index=0, containing_type=None, fields=[]), 134 index=0, containing_type=None, fields=[]),
126 ], 135 ],
127 serialized_start=124, 136 serialized_start=188,
128 serialized_end=354, 137 serialized_end=418,
129 ) 138 )
130 139
131 140
132 _EXCEPTION = _descriptor.Descriptor( 141 _EXCEPTION = _descriptor.Descriptor(
133 name='Exception', 142 name='Exception',
134 full_name='recipe_engine.Exception', 143 full_name='recipe_engine.Exception',
135 filename=None, 144 filename=None,
136 file=DESCRIPTOR, 145 file=DESCRIPTOR,
137 containing_type=None, 146 containing_type=None,
138 fields=[ 147 fields=[
139 _descriptor.FieldDescriptor( 148 _descriptor.FieldDescriptor(
140 name='traceback', full_name='recipe_engine.Exception.traceback', index=0, 149 name='traceback', full_name='recipe_engine.Exception.traceback', index=0,
141 number=1, type=9, cpp_type=9, label=3, 150 number=1, type=9, cpp_type=9, label=3,
142 has_default_value=False, default_value=[], 151 has_default_value=False, default_value=[],
143 message_type=None, enum_type=None, containing_type=None, 152 message_type=None, enum_type=None, containing_type=None,
144 is_extension=False, extension_scope=None, 153 is_extension=False, extension_scope=None,
145 options=None), 154 options=None),
146 ], 155 ],
147 extensions=[ 156 extensions=[
148 ], 157 ],
149 nested_types=[], 158 nested_types=[],
150 enum_types=[ 159 enum_types=[
151 ], 160 ],
152 options=None, 161 options=None,
153 is_extendable=False, 162 is_extendable=False,
154 syntax='proto3', 163 syntax='proto3',
155 extension_ranges=[], 164 extension_ranges=[],
156 oneofs=[ 165 oneofs=[
157 ], 166 ],
158 serialized_start=356, 167 serialized_start=420,
159 serialized_end=386, 168 serialized_end=450,
160 ) 169 )
161 170
162 171
163 _TIMEOUT = _descriptor.Descriptor( 172 _TIMEOUT = _descriptor.Descriptor(
164 name='Timeout', 173 name='Timeout',
165 full_name='recipe_engine.Timeout', 174 full_name='recipe_engine.Timeout',
166 filename=None, 175 filename=None,
167 file=DESCRIPTOR, 176 file=DESCRIPTOR,
168 containing_type=None, 177 containing_type=None,
169 fields=[ 178 fields=[
170 _descriptor.FieldDescriptor( 179 _descriptor.FieldDescriptor(
171 name='timeout_s', full_name='recipe_engine.Timeout.timeout_s', index=0, 180 name='timeout_s', full_name='recipe_engine.Timeout.timeout_s', index=0,
172 number=1, type=2, cpp_type=6, label=1, 181 number=1, type=2, cpp_type=6, label=1,
173 has_default_value=False, default_value=0, 182 has_default_value=False, default_value=float(0),
174 message_type=None, enum_type=None, containing_type=None, 183 message_type=None, enum_type=None, containing_type=None,
175 is_extension=False, extension_scope=None, 184 is_extension=False, extension_scope=None,
176 options=None), 185 options=None),
177 ], 186 ],
178 extensions=[ 187 extensions=[
179 ], 188 ],
180 nested_types=[], 189 nested_types=[],
181 enum_types=[ 190 enum_types=[
182 ], 191 ],
183 options=None, 192 options=None,
184 is_extendable=False, 193 is_extendable=False,
185 syntax='proto3', 194 syntax='proto3',
186 extension_ranges=[], 195 extension_ranges=[],
187 oneofs=[ 196 oneofs=[
188 ], 197 ],
189 serialized_start=388, 198 serialized_start=452,
190 serialized_end=416, 199 serialized_end=480,
191 ) 200 )
192 201
193 202
194 _STEPDATA = _descriptor.Descriptor( 203 _STEPDATA = _descriptor.Descriptor(
195 name='StepData', 204 name='StepData',
196 full_name='recipe_engine.StepData', 205 full_name='recipe_engine.StepData',
197 filename=None, 206 filename=None,
198 file=DESCRIPTOR, 207 file=DESCRIPTOR,
199 containing_type=None, 208 containing_type=None,
200 fields=[ 209 fields=[
201 _descriptor.FieldDescriptor( 210 _descriptor.FieldDescriptor(
202 name='step', full_name='recipe_engine.StepData.step', index=0, 211 name='step', full_name='recipe_engine.StepData.step', index=0,
203 number=1, type=9, cpp_type=9, label=1, 212 number=1, type=9, cpp_type=9, label=1,
204 has_default_value=False, default_value=_b("").decode('utf-8'), 213 has_default_value=False, default_value=_b("").decode('utf-8'),
205 message_type=None, enum_type=None, containing_type=None, 214 message_type=None, enum_type=None, containing_type=None,
206 is_extension=False, extension_scope=None, 215 is_extension=False, extension_scope=None,
207 options=None), 216 options=None),
208 ], 217 ],
209 extensions=[ 218 extensions=[
210 ], 219 ],
211 nested_types=[], 220 nested_types=[],
212 enum_types=[ 221 enum_types=[
213 ], 222 ],
214 options=None, 223 options=None,
215 is_extendable=False, 224 is_extendable=False,
216 syntax='proto3', 225 syntax='proto3',
217 extension_ranges=[], 226 extension_ranges=[],
218 oneofs=[ 227 oneofs=[
219 ], 228 ],
220 serialized_start=418, 229 serialized_start=482,
221 serialized_end=442, 230 serialized_end=506,
222 ) 231 )
223 232
224 233
225 _STEPFAILURE = _descriptor.Descriptor( 234 _STEPFAILURE = _descriptor.Descriptor(
226 name='StepFailure', 235 name='StepFailure',
227 full_name='recipe_engine.StepFailure', 236 full_name='recipe_engine.StepFailure',
228 filename=None, 237 filename=None,
229 file=DESCRIPTOR, 238 file=DESCRIPTOR,
230 containing_type=None, 239 containing_type=None,
231 fields=[ 240 fields=[
232 _descriptor.FieldDescriptor( 241 _descriptor.FieldDescriptor(
233 name='step', full_name='recipe_engine.StepFailure.step', index=0, 242 name='step', full_name='recipe_engine.StepFailure.step', index=0,
234 number=1, type=9, cpp_type=9, label=1, 243 number=1, type=9, cpp_type=9, label=1,
235 has_default_value=False, default_value=_b("").decode('utf-8'), 244 has_default_value=False, default_value=_b("").decode('utf-8'),
236 message_type=None, enum_type=None, containing_type=None, 245 message_type=None, enum_type=None, containing_type=None,
237 is_extension=False, extension_scope=None, 246 is_extension=False, extension_scope=None,
238 options=None), 247 options=None),
239 ], 248 ],
240 extensions=[ 249 extensions=[
241 ], 250 ],
242 nested_types=[], 251 nested_types=[],
243 enum_types=[ 252 enum_types=[
244 ], 253 ],
245 options=None, 254 options=None,
246 is_extendable=False, 255 is_extendable=False,
247 syntax='proto3', 256 syntax='proto3',
248 extension_ranges=[], 257 extension_ranges=[],
249 oneofs=[ 258 oneofs=[
250 ], 259 ],
251 serialized_start=444, 260 serialized_start=508,
252 serialized_end=471, 261 serialized_end=535,
253 ) 262 )
254 263
255 _RESULT.fields_by_name['failure'].message_type = _FAILURE 264 _RESULT.fields_by_name['failure'].message_type = _FAILURE
265 _RESULT.fields_by_name['recipe_package'].message_type = package__pb2._PACKAGE
256 _RESULT.oneofs_by_name['oneof_result'].fields.append( 266 _RESULT.oneofs_by_name['oneof_result'].fields.append(
257 _RESULT.fields_by_name['json_result']) 267 _RESULT.fields_by_name['json_result'])
258 _RESULT.fields_by_name['json_result'].containing_oneof = _RESULT.oneofs_by_name[ 'oneof_result'] 268 _RESULT.fields_by_name['json_result'].containing_oneof = _RESULT.oneofs_by_name[ 'oneof_result']
259 _RESULT.oneofs_by_name['oneof_result'].fields.append( 269 _RESULT.oneofs_by_name['oneof_result'].fields.append(
260 _RESULT.fields_by_name['failure']) 270 _RESULT.fields_by_name['failure'])
261 _RESULT.fields_by_name['failure'].containing_oneof = _RESULT.oneofs_by_name['one of_result'] 271 _RESULT.fields_by_name['failure'].containing_oneof = _RESULT.oneofs_by_name['one of_result']
262 _FAILURE.fields_by_name['timeout'].message_type = _TIMEOUT 272 _FAILURE.fields_by_name['timeout'].message_type = _TIMEOUT
263 _FAILURE.fields_by_name['exception'].message_type = _EXCEPTION 273 _FAILURE.fields_by_name['exception'].message_type = _EXCEPTION
264 _FAILURE.fields_by_name['step_data'].message_type = _STEPDATA 274 _FAILURE.fields_by_name['step_data'].message_type = _STEPDATA
265 _FAILURE.fields_by_name['failure'].message_type = _STEPFAILURE 275 _FAILURE.fields_by_name['failure'].message_type = _STEPFAILURE
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 329
320 StepFailure = _reflection.GeneratedProtocolMessageType('StepFailure', (_message. Message,), dict( 330 StepFailure = _reflection.GeneratedProtocolMessageType('StepFailure', (_message. Message,), dict(
321 DESCRIPTOR = _STEPFAILURE, 331 DESCRIPTOR = _STEPFAILURE,
322 __module__ = 'result_pb2' 332 __module__ = 'result_pb2'
323 # @@protoc_insertion_point(class_scope:recipe_engine.StepFailure) 333 # @@protoc_insertion_point(class_scope:recipe_engine.StepFailure)
324 )) 334 ))
325 _sym_db.RegisterMessage(StepFailure) 335 _sym_db.RegisterMessage(StepFailure)
326 336
327 337
328 # @@protoc_insertion_point(module_scope) 338 # @@protoc_insertion_point(module_scope)
OLDNEW
« no previous file with comments | « recipe_engine/result.proto ('k') | recipe_engine/run.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698