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 18import "src/proto/grpc/testing/echo_messages.proto"; 19import "src/proto/grpc/testing/simple_messages.proto"; 20 21package grpc.testing; 22 23service EchoTestService { 24 rpc Echo(EchoRequest) returns (EchoResponse); 25 rpc Echo1(EchoRequest) returns (EchoResponse); 26 rpc Echo2(EchoRequest) returns (EchoResponse); 27 // A service which checks that the initial metadata sent over contains some 28 // expected key value pair 29 rpc CheckClientInitialMetadata(SimpleRequest) returns (SimpleResponse); 30 rpc RequestStream(stream EchoRequest) returns (EchoResponse); 31 rpc ResponseStream(EchoRequest) returns (stream EchoResponse); 32 rpc BidiStream(stream EchoRequest) returns (stream EchoResponse); 33 rpc Unimplemented(EchoRequest) returns (EchoResponse); 34} 35 36service EchoTest1Service { 37 rpc Echo(EchoRequest) returns (EchoResponse); 38 rpc Echo1(EchoRequest) returns (EchoResponse); 39 rpc Echo2(EchoRequest) returns (EchoResponse); 40 // A service which checks that the initial metadata sent over contains some 41 // expected key value pair 42 rpc CheckClientInitialMetadata(SimpleRequest) returns (SimpleResponse); 43 rpc RequestStream(stream EchoRequest) returns (EchoResponse); 44 rpc ResponseStream(EchoRequest) returns (stream EchoResponse); 45 rpc BidiStream(stream EchoRequest) returns (stream EchoResponse); 46 rpc Unimplemented(EchoRequest) returns (EchoResponse); 47} 48 49service EchoTest2Service { 50 rpc Echo(EchoRequest) returns (EchoResponse); 51 rpc Echo1(EchoRequest) returns (EchoResponse); 52 rpc Echo2(EchoRequest) returns (EchoResponse); 53 // A service which checks that the initial metadata sent over contains some 54 // expected key value pair 55 rpc CheckClientInitialMetadata(SimpleRequest) returns (SimpleResponse); 56 rpc RequestStream(stream EchoRequest) returns (EchoResponse); 57 rpc ResponseStream(EchoRequest) returns (stream EchoResponse); 58 rpc BidiStream(stream EchoRequest) returns (stream EchoResponse); 59 rpc Unimplemented(EchoRequest) returns (EchoResponse); 60} 61 62service UnimplementedEchoService { 63 rpc Unimplemented(EchoRequest) returns (EchoResponse); 64} 65 66// A service without any rpc defined to test coverage. 67service NoRpcService { 68} 69