1 // Copyright 2015 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 // An integration test service that covers all the method signature permutations 16 // of unary/streaming requests/responses. 17 syntax = "proto3"; 18 19 import "src/proto/grpc/testing/messages.proto"; 20 21 package grpc.testing; 22 23 service BenchmarkService { 24 // One request followed by one response. 25 // The server returns the client payload as-is. 26 rpc UnaryCall(SimpleRequest) returns (SimpleResponse); 27 28 // Repeated sequence of one request followed by one response. 29 // Should be called streaming ping-pong 30 // The server returns the client payload as-is on each response 31 rpc StreamingCall(stream SimpleRequest) returns (stream SimpleResponse); 32 33 // Single-sided unbounded streaming from client to server 34 // The server returns the client payload as-is once the client does WritesDone 35 rpc StreamingFromClient(stream SimpleRequest) returns (SimpleResponse); 36 37 // Single-sided unbounded streaming from server to client 38 // The server repeatedly returns the client payload as-is 39 rpc StreamingFromServer(SimpleRequest) returns (stream SimpleResponse); 40 41 // Two-sided unbounded streaming between server to client 42 // Both sides send the content of their own choice to the other 43 rpc StreamingBothWays(stream SimpleRequest) returns (stream SimpleResponse); 44 } 45