From 926135b5797e17bb927e4cc79e657db16b90f123 Mon Sep 17 00:00:00 2001 From: Jihun Cho Date: Mon, 29 Oct 2018 10:29:54 -0700 Subject: [PATCH] deprecates PayloadType since it has only 1 option. --- grpc/testing/messages.proto | 26 ++++---------------------- 1 file changed, 4 insertions(+), 22 deletions(-) diff --git a/grpc/testing/messages.proto b/grpc/testing/messages.proto index d0ebdcc8..9db2d36f 100644 --- a/grpc/testing/messages.proto +++ b/grpc/testing/messages.proto @@ -29,22 +29,10 @@ message BoolValue { bool value = 1; } -// The type of payload that should be returned. -enum PayloadType { - // Compressable text format. - COMPRESSABLE = 0; - - // Uncompressable binary format. - UNCOMPRESSABLE = 1; - - // Randomly chosen from all other formats defined in this enum. - RANDOM = 2; -} - // A block of data, to simply increase gRPC message size. message Payload { - // The type of data in body. - PayloadType type = 1; + reserved 1; + // Primary contents of payload. bytes body = 2; } @@ -58,9 +46,7 @@ message EchoStatus { // Unary request. message SimpleRequest { - // Desired payload type in the response from the server. - // If response_type is RANDOM, server randomly chooses one from other formats. - PayloadType response_type = 1; + reserved 1; // Desired payload size in the response from the server. int32 response_size = 2; @@ -140,11 +126,7 @@ message ResponseParameters { // Server-streaming request. message StreamingOutputCallRequest { - // Desired payload type in the response from the server. - // If response_type is RANDOM, the payload from each response in the stream - // might be of different types. This is to simulate a mixed type of payload - // stream. - PayloadType response_type = 1; + reserved 1; // Configuration for each expected response message. repeated ResponseParameters response_parameters = 2;