Skip to content

Commit

Permalink
deprecates PayloadType since it has only 1 option.
Browse files Browse the repository at this point in the history
  • Loading branch information
creamsoup committed Oct 29, 2018
1 parent 9754ddd commit 274ccf5
Showing 1 changed file with 4 additions and 22 deletions.
26 changes: 4 additions & 22 deletions grpc/testing/messages.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 274ccf5

Please sign in to comment.