Chromium Code Reviews| Index: milo/api/proto/buildbot.proto |
| diff --git a/milo/api/proto/buildbot.proto b/milo/api/proto/buildbot.proto |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..135087d845b4e68e0cede2cbaf455fdd1e446eac |
| --- /dev/null |
| +++ b/milo/api/proto/buildbot.proto |
| @@ -0,0 +1,31 @@ |
| +// 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 milo; |
| + |
| +import "google/protobuf/timestamp.proto"; |
| + |
| +// The buildbot service definition. |
| +service Buildbot { |
| + rpc GetMaster (MasterRequest) returns (MasterReply) {} |
|
iannucci
2016/09/01 00:37:26
nit: no space between GetMaster and its argument (
hinoka
2016/09/03 00:52:27
Done.
|
| +} |
| + |
| +// The request containing the name of the master. |
| +message MasterRequest { |
| + string name = 1; |
| +} |
| + |
| +// The response message containing master information. |
| +message MasterReply { |
| + // Whether the master is internal or not. |
| + bool internal = 1; |
| + |
| + // Timestamp of the freshness of the master data. |
| + google.protobuf.Timestamp modified = 2; |
| + |
| + // Gzipped json data of the master. |
|
iannucci
2016/09/01 00:37:26
barf :(
|
| + bytes data = 3; |
| +} |