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

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: Comment for oneof map. 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') | no next file with comments »
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..750f1fb385f442f00612ba731f7551544ef0c3d1
--- /dev/null
+++ b/recipe_engine/arguments.proto
@@ -0,0 +1,63 @@
+// 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.
+
+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 {
+ // 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 property map.
+ PropertyMap map = 7;
+
+ // An ordered list of Properties.
+ PropertyList list = 8;
+ }
+ }
+
+ // An ordered list of Properties.
+ message PropertyList {
+ repeated Property property = 1;
+ }
+
+ // A map of properties bound to string name keys.
+ 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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698