| OLD | NEW |
| 1 syntax = "proto3"; | 1 syntax = "proto3"; |
| 2 | 2 |
| 3 package recipe_engine; | 3 package recipe_engine; |
| 4 | 4 |
| 5 import "package.proto"; | |
| 6 | |
| 7 // The result of a recipe execution. | 5 // The result of a recipe execution. |
| 8 message Result { | 6 message Result { |
| 9 oneof oneof_result { | 7 oneof oneof_result { |
| 10 // The json result of a recipe. Guaranteed to be a JSON 'object' (e.g. | 8 // The json result of a recipe. Guaranteed to be a JSON 'object' (e.g. |
| 11 // "{...}") or omitted. | 9 // "{...}") or omitted. |
| 12 string json_result = 1; | 10 string json_result = 1; |
| 13 | 11 |
| 14 // The cause of the failure of a recipe. | 12 // The cause of the failure of a recipe. |
| 15 Failure failure = 2; | 13 Failure failure = 2; |
| 16 } | 14 } |
| 17 | |
| 18 // Initial recipe repo's package spec (recipes.cfg). | |
| 19 Package recipe_package = 3; | |
| 20 } | 15 } |
| 21 | 16 |
| 22 message Failure { | 17 message Failure { |
| 23 // A reason readable by humans. Printed to the UI, and will be seen by users. | 18 // A reason readable by humans. Printed to the UI, and will be seen by users. |
| 24 string human_reason = 1; | 19 string human_reason = 1; |
| 25 | 20 |
| 26 // The cause of this failure. | 21 // The cause of this failure. |
| 27 oneof failure_type { | 22 oneof failure_type { |
| 28 // Step timed out. | 23 // Step timed out. |
| 29 Timeout timeout = 2; | 24 Timeout timeout = 2; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 60 string step = 1; | 55 string step = 1; |
| 61 } | 56 } |
| 62 | 57 |
| 63 // A step failed to execute "correctly". Correct generally is indicated by a | 58 // A step failed to execute "correctly". Correct generally is indicated by a |
| 64 // return code of 0, but the step can allow for other return codes as well. | 59 // return code of 0, but the step can allow for other return codes as well. |
| 65 message StepFailure { | 60 message StepFailure { |
| 66 // The step which failed. | 61 // The step which failed. |
| 67 string step = 1; | 62 string step = 1; |
| 68 } | 63 } |
| 69 | 64 |
| OLD | NEW |