| OLD | NEW |
| 1 // Copyright 2016 The LUCI Authors. All rights reserved. | 1 // Copyright 2016 The LUCI Authors. All rights reserved. |
| 2 // Use of this source code is governed under the Apache License, Version 2.0 | 2 // Use of this source code is governed under the Apache License, Version 2.0 |
| 3 // that can be found in the LICENSE file. | 3 // that can be found in the LICENSE file. |
| 4 | 4 |
| 5 syntax = "proto3"; | 5 syntax = "proto3"; |
| 6 | 6 |
| 7 package milo; | 7 package milo; |
| 8 | 8 |
| 9 import "google/protobuf/timestamp.proto"; | 9 import "google/protobuf/timestamp.proto"; |
| 10 | 10 |
| 11 // The buildbot service definition. | 11 // The buildbot service definition. |
| 12 service Buildbot { | 12 service Buildbot { |
| 13 rpc GetCompressedMasterJSON(MasterRequest) returns (CompressedMasterJSON) {} | 13 rpc GetCompressedMasterJSON(MasterRequest) returns (CompressedMasterJSON) {} |
| 14 rpc GetBuildbotBuildJSON(BuildbotBuildRequest) returns (BuildbotBuildJSON) {} |
| 14 } | 15 } |
| 15 | 16 |
| 16 // The request containing the name of the master. | 17 // The request containing the name of the master. |
| 17 message MasterRequest { | 18 message MasterRequest { |
| 18 string name = 1; | 19 string name = 1; |
| 19 } | 20 } |
| 20 | 21 |
| 21 // The response message containing master information. | 22 // The response message containing master information. |
| 22 message CompressedMasterJSON { | 23 message CompressedMasterJSON { |
| 23 // Whether the master is internal or not. | 24 // Whether the master is internal or not. |
| 24 bool internal = 1; | 25 bool internal = 1; |
| 25 | 26 |
| 26 // Timestamp of the freshness of the master data. | 27 // Timestamp of the freshness of the master data. |
| 27 google.protobuf.Timestamp modified = 2; | 28 google.protobuf.Timestamp modified = 2; |
| 28 | 29 |
| 29 // Gzipped json data of the master. | 30 // Gzipped json data of the master. |
| 30 bytes data = 3; | 31 bytes data = 3; |
| 31 } | 32 } |
| 33 |
| 34 // The request for a specific build. |
| 35 message BuildbotBuildRequest { |
| 36 string master = 1; |
| 37 string builder = 2; |
| 38 int64 build_num = 3; |
| 39 } |
| 40 |
| 41 // The response message for a specific build. |
| 42 message BuildbotBuildJSON { |
| 43 // Json data of the build. |
| 44 bytes data = 1; |
| 45 } |
| OLD | NEW |