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

Side by Side Diff: recipe_engine/arguments.proto

Issue 2237593002: Add support for operational arguments protobuf. (Closed) Base URL: https://github.com/luci/recipes-py@proto3-release
Patch Set: Better protobuf comments. Created 4 years, 4 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 | « no previous file | recipe_engine/arguments_pb2.py » ('j') | recipes.py » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 }
OLDNEW
« no previous file with comments | « no previous file | recipe_engine/arguments_pb2.py » ('j') | recipes.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698