blob: 51142085f700bd87640b15bec265fdb16a92c2bc [file] [log] [blame]
Khen Nursimuluaaac7ee2016-12-11 22:03:52 -05001syntax = "proto3";
2
3package schema;
4
5import "google/protobuf/empty.proto";
6
7// 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}
13
14// Proto files and compiled descriptors for this interface
15message Schemas {
16
17 // Proto files
18 repeated ProtoFile protos = 1;
19
20 // Name of proto file to generae swagger.json from
21 string swagger_from = 2;
22
23 // Prefix of proto files which would require a yang file generated for it
24 string yang_from = 3;
25
26}
27
28// Schema services
29service SchemaService {
30
31 // Return active grpc schemas
32 rpc GetSchema(google.protobuf.Empty) returns (Schemas) {}
33
34}