blob: 3708972b905f5c204a21ef3019d1863c6eeee79d [file] [log] [blame]
Craig Tillerad1fd3a2015-02-16 12:23:04 -08001
2// Copyright 2015, Google Inc.
3// All rights reserved.
Craig Tillerce5021b2015-02-18 09:25:21 -08004//
Craig Tillerad1fd3a2015-02-16 12:23:04 -08005// Redistribution and use in source and binary forms, with or without
6// modification, are permitted provided that the following conditions are
7// met:
Craig Tillerce5021b2015-02-18 09:25:21 -08008//
Craig Tillerad1fd3a2015-02-16 12:23:04 -08009// * Redistributions of source code must retain the above copyright
10// notice, this list of conditions and the following disclaimer.
11// * Redistributions in binary form must reproduce the above
12// copyright notice, this list of conditions and the following disclaimer
13// in the documentation and/or other materials provided with the
14// distribution.
15// * Neither the name of Google Inc. nor the names of its
16// contributors may be used to endorse or promote products derived from
17// this software without specific prior written permission.
Craig Tillerce5021b2015-02-18 09:25:21 -080018//
Craig Tillerad1fd3a2015-02-16 12:23:04 -080019// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
yangg1456d152015-01-08 15:39:58 -080031syntax = "proto2";
32
33package grpc.cpp.test.util;
34
35message RequestParams {
36 optional bool echo_deadline = 1;
Yang Gao0c4b0dd2015-03-30 13:08:34 -070037 optional int32 client_cancel_after_us = 2;
38 optional int32 server_cancel_after_us = 3;
Yang Gao26a49122015-05-15 17:02:56 -070039 optional bool echo_metadata = 4;
yang-gc4eef2e2015-07-06 23:26:58 -070040 optional bool check_auth_context = 5;
yangg1456d152015-01-08 15:39:58 -080041}
42
43message EchoRequest {
44 optional string message = 1;
45 optional RequestParams param = 2;
46}
47
48message ResponseParams {
49 optional int64 request_deadline = 1;
Craig Tiller822d2c72015-07-07 16:08:00 -070050 optional string host = 2;
yangg1456d152015-01-08 15:39:58 -080051}
52
53message EchoResponse {
54 optional string message = 1;
55 optional ResponseParams param = 2;
56}