aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/proto/messages.proto
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-06-25 08:58:23 -0700
committerGravatar Craig Tiller <ctiller@google.com>2015-06-25 08:58:23 -0700
commit4b62811032b12e988ca320e43b41c3bda7834869 (patch)
tree0f132ac81de9c90144e67c011a4169531124d1f9 /test/proto/messages.proto
parentb7959a0b362daa951a245632ffa4617df4184a87 (diff)
parent0bf7e48ade52eec336f50dee4c7d22eeb887bb8e (diff)
Merge github.com:grpc/grpc into tis-but-thy-name
Diffstat (limited to 'test/proto/messages.proto')
-rw-r--r--test/proto/messages.proto27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/proto/messages.proto b/test/proto/messages.proto
index 65a8140465..500e79cc81 100644
--- a/test/proto/messages.proto
+++ b/test/proto/messages.proto
@@ -46,6 +46,14 @@ enum PayloadType {
RANDOM = 2;
}
+// Compression algorithms
+enum CompressionType {
+ // No compression
+ NONE = 0;
+ GZIP = 1;
+ DEFLATE = 2;
+}
+
// A block of data, to simply increase gRPC message size.
message Payload {
// The type of data in body.
@@ -54,6 +62,13 @@ message Payload {
optional bytes body = 2;
}
+// A protobuf representation for grpc status. This is used by test
+// clients to specify a status that the server should attempt to return.
+message EchoStatus {
+ optional int32 code = 1;
+ optional string message = 2;
+}
+
// Unary request.
message SimpleRequest {
// Desired payload type in the response from the server.
@@ -72,6 +87,12 @@ message SimpleRequest {
// Whether SimpleResponse should include OAuth scope.
optional bool fill_oauth_scope = 5;
+
+ // Compression algorithm to be used by the server for the response (stream)
+ optional CompressionType response_compression = 6;
+
+ // Whether server should return a given status
+ optional EchoStatus response_status = 7;
}
// Unary response, as configured by the request.
@@ -123,6 +144,12 @@ message StreamingOutputCallRequest {
// Optional input payload sent along with the request.
optional Payload payload = 3;
+
+ // Compression algorithm to be used by the server for the response (stream)
+ optional CompressionType response_compression = 6;
+
+ // Whether server should return a given status
+ optional EchoStatus response_status = 7;
}
// Server-streaming response, as configured by the request and parameters.