/
stream.proto
35 lines (29 loc) · 929 Bytes
/
stream.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
syntax = "proto3";
option java_multiple_files = true;
option java_package = "io.grpc.examples.stream";
option java_outer_classname = "StreamProto";
option objc_class_prefix = "ST";
package stream;
// Interface exported by the server.
service StreamService {
// A server-to-client streaming RPC.
//
// Stream a number of message configured in the request with a delay between them.
rpc stream(StreamRequest) returns (stream StreamReply) {}
}
// A latitude-longitude rectangle, represented as two diagonally opposite
// points "lo" and "hi".
message StreamRequest {
// Delay in seconds between 2 replies
uint32 delayInSeconds = 1;
uint32 numberOfReplies = 2;
}
// A feature names something at a given point.
//
// If a feature could not be named, the name is empty.
message StreamReply {
// The name of the feature.
int64 timestamp = 1;
// The point where the feature is detected.
string message = 2;
}