OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The LUCI Authors. All rights reserved. | |
2 // Use of this source code is governed under the Apache License, Version 2.0 | |
3 // that can be found in the LICENSE file. | |
4 | |
5 // Recompile with libprotoc 2.5.0: | |
6 // protoc -I recipe_engine recipe_engine/package.proto --python_out=recipe_engin e | |
martiniss
2016/08/10 21:38:25
Do we need this? You put this here, right? This sh
dnj
2016/08/10 22:04:41
Oops, yeah no.
| |
7 | |
8 syntax = "proto3"; | |
9 | |
10 package recipe_engine; | |
11 | |
12 // Arguments is a protobuf that can be supplied to the recipe engine through its | |
13 // "--operational-args-path" command-line parameter in JSONPB format. | |
14 message Arguments { | |
15 // A single recipe engine Property value. | |
16 message Property { | |
17 // The property value. | |
18 oneof value { | |
martiniss
2016/08/10 21:38:25
What about lists? Currently for the recipe roller,
dnj
2016/08/10 22:04:41
I wasn't aware of those. I'll add list.
| |
19 // A string value. | |
20 string s = 1; | |
21 | |
22 // An int64 value. | |
23 int64 int = 2; | |
24 | |
25 // A uint64 value. | |
26 uint64 uint = 3; | |
27 | |
28 // A double value. | |
29 double d = 4; | |
30 | |
31 // A boolean value. | |
32 bool b = 5; | |
33 | |
34 // Byte value. | |
35 bytes data = 6; | |
36 | |
37 // Nested properties. | |
38 PropertyMap properties = 7; | |
39 } | |
40 } | |
41 message PropertyMap { | |
42 // A map of property key to value. | |
43 map<string, Property> property = 1; | |
44 } | |
45 | |
46 // Input Properties. | |
47 PropertyMap properties = 1; | |
48 | |
49 // Message containing the set of supported annotation control flags. | |
50 message AnnotationFlags { | |
51 // If true, emit CURRENT_TIMESTAMP annotations. | |
52 bool emit_timestamp = 1; | |
53 } | |
54 // Annotation control flags. | |
55 AnnotationFlags annotation_flags = 2; | |
56 } | |
OLD | NEW |