-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbasic.proto
38 lines (30 loc) · 885 Bytes
/
basic.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Protocol buffer definitions used for testing grpcHoma; they
// make basic use of each of the RPC types (streaming in either
// or both directions)
syntax = "proto3";
package basic;
service Basic {
rpc Ping(Request) returns (Response) {}
rpc StreamOut(stream StreamOutRequest) returns (Response) {}
rpc StreamIn(StreamInRequest) returns (stream Response) {}
rpc Stream2Way(stream StreamOutRequest) returns (stream Response) {}
rpc PrintLog(Empty) returns (Empty) {}
}
message Request {
sfixed32 requestItems = 1;
sfixed32 replyItems = 2;
repeated sfixed32 data = 3;
}
message Response {
repeated sfixed32 data = 1;
}
message StreamOutRequest {
sfixed32 done = 1;
sfixed32 requestItems = 2;
sfixed32 replyItems = 3;
repeated sfixed32 data = 4;
}
message StreamInRequest {
repeated sfixed32 sizes = 1;
}
message Empty {}