1 // Copyright 2017 gRPC authors.
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
7 // http://www.apache.org/licenses/LICENSE-2.0
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.
19 message SimpleRequest {
23 message SimpleResponse {
27 // A simple test service.
29 // One request followed by one response.
30 // The server returns the client id as-is.
31 rpc UnaryCall(SimpleRequest) returns (SimpleResponse);
33 // A sequence of requests with each request served by the server immediately.
34 // As one request could lead to multiple responses, this interface
35 // demonstrates the idea of full duplexing.
36 rpc FullDuplexCall(stream SimpleRequest) returns (stream SimpleResponse);
39 rpc ClientStreamCall(stream SimpleRequest) returns (SimpleResponse);
42 rpc ServerStreamCall(SimpleRequest) returns (stream SimpleResponse);