OSDN Git Service

new repo
[bytom/vapor.git] / vendor / google.golang.org / grpc / stats / grpc_testing / test.proto
1 // Copyright 2017 gRPC 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
15 syntax = "proto3";
16
17 package grpc.testing;
18
19 message SimpleRequest {
20   int32 id = 2;
21 }
22
23 message SimpleResponse {
24   int32 id = 3;
25 }
26
27 // A simple test service.
28 service TestService {
29   // One request followed by one response.
30   // The server returns the client id as-is.
31   rpc UnaryCall(SimpleRequest) returns (SimpleResponse);
32
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);
37
38   // Client stream 
39   rpc ClientStreamCall(stream SimpleRequest) returns (SimpleResponse);
40
41   // Server stream
42   rpc ServerStreamCall(SimpleRequest) returns (stream SimpleResponse);
43 }