Zsolt Haraszti | 5cd6470 | 2016-09-27 13:48:35 -0700 | [diff] [blame] | 1 | syntax = "proto3"; |
| 2 | |
| 3 | package schema; |
| 4 | |
| 5 | // Proto file and compiled descriptor for this interface |
| 6 | message Schema { |
| 7 | |
| 8 | // file name -> proto file content |
| 9 | map<string, string> protos = 1; |
| 10 | |
| 11 | // file name -> gzip compressed protobuf of descriptor |
| 12 | map<string, bytes> descriptors = 2; |
| 13 | |
| 14 | } |
| 15 | |
| 16 | // Empty message |
| 17 | message NullMessage {} |
| 18 | |
| 19 | // Schema services |
| 20 | service SchemaService { |
| 21 | |
| 22 | // Return active grpc schemas |
| 23 | rpc GetSchema(NullMessage) returns (Schema) {} |
| 24 | |
| 25 | } |