• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2// Copyright 2015 gRPC authors.
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//     http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16syntax = "proto3";
17
18package grpc.testing;
19
20import "src/proto/grpc/testing/echo_messages.proto";
21import "src/proto/grpc/testing/simple_messages.proto";
22
23service EchoTestService {
24  rpc Echo(EchoRequest) returns (EchoResponse);
25  rpc Echo1(EchoRequest) returns (EchoResponse);
26  rpc Echo2(EchoRequest) returns (EchoResponse);
27  rpc CheckDeadlineUpperBound(SimpleRequest) returns (StringValue);
28  rpc CheckDeadlineSet(SimpleRequest) returns (StringValue);
29  // A service which checks that the initial metadata sent over contains some
30  // expected key value pair
31  rpc CheckClientInitialMetadata(SimpleRequest) returns (SimpleResponse);
32  rpc RequestStream(stream EchoRequest) returns (EchoResponse);
33  rpc ResponseStream(EchoRequest) returns (stream EchoResponse);
34  rpc BidiStream(stream EchoRequest) returns (stream EchoResponse);
35  rpc Unimplemented(EchoRequest) returns (EchoResponse);
36}
37
38service EchoTest1Service {
39  rpc Echo(EchoRequest) returns (EchoResponse);
40  rpc Echo1(EchoRequest) returns (EchoResponse);
41  rpc Echo2(EchoRequest) returns (EchoResponse);
42  // A service which checks that the initial metadata sent over contains some
43  // expected key value pair
44  rpc CheckClientInitialMetadata(SimpleRequest) returns (SimpleResponse);
45  rpc RequestStream(stream EchoRequest) returns (EchoResponse);
46  rpc ResponseStream(EchoRequest) returns (stream EchoResponse);
47  rpc BidiStream(stream EchoRequest) returns (stream EchoResponse);
48  rpc Unimplemented(EchoRequest) returns (EchoResponse);
49}
50
51service EchoTest2Service {
52  rpc Echo(EchoRequest) returns (EchoResponse);
53  rpc Echo1(EchoRequest) returns (EchoResponse);
54  rpc Echo2(EchoRequest) returns (EchoResponse);
55  // A service which checks that the initial metadata sent over contains some
56  // expected key value pair
57  rpc CheckClientInitialMetadata(SimpleRequest) returns (SimpleResponse);
58  rpc RequestStream(stream EchoRequest) returns (EchoResponse);
59  rpc ResponseStream(EchoRequest) returns (stream EchoResponse);
60  rpc BidiStream(stream EchoRequest) returns (stream EchoResponse);
61  rpc Unimplemented(EchoRequest) returns (EchoResponse);
62}
63
64service UnimplementedEchoService {
65  rpc Unimplemented(EchoRequest) returns (EchoResponse);
66}
67
68// A service without any rpc defined to test coverage.
69service NoRpcService {}
70