blob: 764f53fdac9cf32e01980fa1da6e59f3ca00b17d [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
Zsolt Haraszti1edb8282016-11-08 10:57:19 -080020 // Name of proto file to generae swagger.json from
21 string swagger_from = 2;
22
Zsolt Haraszti5cd64702016-09-27 13:48:35 -070023}
24
Zsolt Haraszti5cd64702016-09-27 13:48:35 -070025// Schema services
26service SchemaService {
27
Zsolt Haraszti2bdb6b32016-11-03 16:56:17 -070028 // Return active grpc schemas
Zsolt Haraszti7eeb2b32016-11-06 14:04:55 -080029 rpc GetSchema(google.protobuf.Empty) returns (Schemas) {}
Zsolt Haraszti5cd64702016-09-27 13:48:35 -070030
31}