blob: f5a08e056a5b5e1b539651ff91b87c667d5e3a6e [file] [log] [blame]
Sree Kuchibhotlab5e98c52015-10-27 22:55:26 -07001
2// Copyright 2015, Google Inc.
3// All rights reserved.
4//
5// Redistribution and use in source and binary forms, with or without
6// modification, are permitted provided that the following conditions are
7// met:
8//
9// * 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.
18//
19// 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
31// An integration test service that covers all the method signature permutations
32// of unary/streaming requests/responses.
33syntax = "proto3";
34
35package grpc.testing;
36
Sree Kuchibhotla4d0f2f92015-11-03 15:55:43 -080037message GaugeResponse {
Sree Kuchibhotlab5e98c52015-10-27 22:55:26 -070038 string name = 1;
Sree Kuchibhotlab047c0f2015-11-16 11:52:54 -080039 oneof value {
40 int64 long_value = 2;
41 double double_vale = 3;
42 string string_value = 4;
43 }
Sree Kuchibhotlab5e98c52015-10-27 22:55:26 -070044}
45
yang-gd88e1d82015-12-02 13:23:33 -080046message GaugeRequest {
47 string name = 1;
48}
Sree Kuchibhotlab5e98c52015-10-27 22:55:26 -070049
yang-g3ff97272015-11-20 17:01:57 -080050message EmptyMessage {
51}
Sree Kuchibhotlab5e98c52015-10-27 22:55:26 -070052
53service MetricsService {
Sree Kuchibhotla4d0f2f92015-11-03 15:55:43 -080054 rpc GetAllGauges(EmptyMessage) returns (stream GaugeResponse);
55 rpc GetGauge(GaugeRequest) returns (GaugeResponse);
Sree Kuchibhotlab5e98c52015-10-27 22:55:26 -070056}