blob: e10c5def2a87deaa0c7f458a727dda3b92e87a03 [file] [log] [blame]
Scott Bakerbef5fd92019-02-21 10:24:02 -08001// Copyright 2017 the original author or authors.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15syntax = "proto3";
16
17package schema;
18
19import "google/protobuf/empty.proto";
20
21// Contains the name and content of a *.proto file
22message ProtoFile {
23 string file_name = 1; // name of proto file
24 string proto = 2; // content of proto file
25 bytes descriptor = 3; // compiled descriptor for proto (zlib compressed)
26}
27
28// Proto files and compiled descriptors for this interface
29message Schemas {
30
31 // Proto files
32 repeated ProtoFile protos = 1;
33
34 // Name of proto file to generae swagger.json from
35 string swagger_from = 2;
36
37}
38
39// Schema services
40service SchemaService {
41
42 // Return active grpc schemas
43 rpc GetSchema(google.protobuf.Empty) returns (Schemas) {}
44
45}