blob: 0c06feb82897da9f54ece268124da011d01d7e6a [file] [log] [blame]
Zsolt Haraszti5cd64702016-09-27 13:48:35 -07001syntax = "proto3";
2
3package schema;
4
Zsolt Haraszti7eeb2b32016-11-06 14:04:55 -08005import "google/protobuf/empty.proto";
6
Zsolt Haraszti2bdb6b32016-11-03 16:56:17 -07007// Contains the name and content of a *.proto file
8message ProtoFile {
9 string file_name = 1; // name of proto file
10 string proto = 2; // content of proto file
11 bytes descriptor = 3; // compiled descriptor for proto (zlib compressed)
12}
Zsolt Haraszti5cd64702016-09-27 13:48:35 -070013
Zsolt Haraszti2bdb6b32016-11-03 16:56:17 -070014// Proto files and compiled descriptors for this interface
15message Schemas {
Zsolt Haraszti5cd64702016-09-27 13:48:35 -070016
Zsolt Haraszti2bdb6b32016-11-03 16:56:17 -070017 // Proto files
18 repeated ProtoFile protos = 1;
Zsolt Haraszti5cd64702016-09-27 13:48:35 -070019
20}
21
Zsolt Haraszti5cd64702016-09-27 13:48:35 -070022// Schema services
23service SchemaService {
24
Zsolt Haraszti2bdb6b32016-11-03 16:56:17 -070025 // Return active grpc schemas
Zsolt Haraszti7eeb2b32016-11-06 14:04:55 -080026 rpc GetSchema(google.protobuf.Empty) returns (Schemas) {}
Zsolt Haraszti5cd64702016-09-27 13:48:35 -070027
28}