8e5b17cf13
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
21 lines
405 B
Protocol Buffer
21 lines
405 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package grpc.testing;
|
|
|
|
message SearchResponse {
|
|
message Result {
|
|
string url = 1;
|
|
string title = 2;
|
|
repeated string snippets = 3;
|
|
}
|
|
repeated Result results = 1;
|
|
}
|
|
|
|
message SearchRequest {
|
|
string query = 1;
|
|
}
|
|
|
|
service SearchService {
|
|
rpc Search(SearchRequest) returns (SearchResponse);
|
|
rpc StreamingSearch(stream SearchRequest) returns (stream SearchResponse);
|
|
}
|