Skip to content

Commit 274ccf5

Browse files
committed
deprecates PayloadType since it has only 1 option.
1 parent 9754ddd commit 274ccf5

File tree

1 file changed

+4
-22
lines changed

1 file changed

+4
-22
lines changed

grpc/testing/messages.proto

+4-22
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,10 @@ message BoolValue {
2929
bool value = 1;
3030
}
3131

32-
// The type of payload that should be returned.
33-
enum PayloadType {
34-
// Compressable text format.
35-
COMPRESSABLE = 0;
36-
37-
// Uncompressable binary format.
38-
UNCOMPRESSABLE = 1;
39-
40-
// Randomly chosen from all other formats defined in this enum.
41-
RANDOM = 2;
42-
}
43-
4432
// A block of data, to simply increase gRPC message size.
4533
message Payload {
46-
// The type of data in body.
47-
PayloadType type = 1;
34+
reserved 1;
35+
4836
// Primary contents of payload.
4937
bytes body = 2;
5038
}
@@ -58,9 +46,7 @@ message EchoStatus {
5846

5947
// Unary request.
6048
message SimpleRequest {
61-
// Desired payload type in the response from the server.
62-
// If response_type is RANDOM, server randomly chooses one from other formats.
63-
PayloadType response_type = 1;
49+
reserved 1;
6450

6551
// Desired payload size in the response from the server.
6652
int32 response_size = 2;
@@ -140,11 +126,7 @@ message ResponseParameters {
140126

141127
// Server-streaming request.
142128
message StreamingOutputCallRequest {
143-
// Desired payload type in the response from the server.
144-
// If response_type is RANDOM, the payload from each response in the stream
145-
// might be of different types. This is to simulate a mixed type of payload
146-
// stream.
147-
PayloadType response_type = 1;
129+
reserved 1;
148130

149131
// Configuration for each expected response message.
150132
repeated ResponseParameters response_parameters = 2;

0 commit comments

Comments
 (0)