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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | recipe_engine/arguments_pb2.py » ('j') | recipes.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipe_engine/arguments.proto
diff --git a/recipe_engine/arguments.proto b/recipe_engine/arguments.proto
new file mode 100644
index 0000000000000000000000000000000000000000..801911b0f16d496f7ea792d715214f337eb182d1
--- /dev/null
+++ b/recipe_engine/arguments.proto
@@ -0,0 +1,56 @@
+// Copyright 2016 The LUCI Authors. All rights reserved.
+// Use of this source code is governed under the Apache License, Version 2.0
+// that can be found in the LICENSE file.
+
+// Recompile with libprotoc 2.5.0:
+// protoc -I recipe_engine recipe_engine/package.proto --python_out=recipe_engine
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.
+
+syntax = "proto3";
+
+package recipe_engine;
+
+// Arguments is a protobuf that can be supplied to the recipe engine through its
+// "--operational-args-path" command-line parameter in JSONPB format.
+message Arguments {
+ // A single recipe engine Property value.
+ message Property {
+ // The property value.
+ 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.
+ // A string value.
+ string s = 1;
+
+ // An int64 value.
+ int64 int = 2;
+
+ // A uint64 value.
+ uint64 uint = 3;
+
+ // A double value.
+ double d = 4;
+
+ // A boolean value.
+ bool b = 5;
+
+ // Byte value.
+ bytes data = 6;
+
+ // Nested properties.
+ PropertyMap properties = 7;
+ }
+ }
+ message PropertyMap {
+ // A map of property key to value.
+ map<string, Property> property = 1;
+ }
+
+ // Input Properties.
+ PropertyMap properties = 1;
+
+ // Message containing the set of supported annotation control flags.
+ message AnnotationFlags {
+ // If true, emit CURRENT_TIMESTAMP annotations.
+ bool emit_timestamp = 1;
+ }
+ // Annotation control flags.
+ AnnotationFlags annotation_flags = 2;
+}
« 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