Danny Weinberg 061bf86a9c Set serialized_on_wire when message contains only lists
This fixes a bug where serialized_on_wire was not set when a message contained only repeated values (eg in a list or map). The fix here is to just set it to true in the `parse` method as soon as we receive any valid data. This also adds a test to expose the behavior.
2020-06-04 11:04:36 -07:00

12 lines
152 B
Protocol Buffer

syntax = "proto3";
package repeated;
message Test {
repeated string names = 1;
}
service ExampleService {
rpc DoThing (Test) returns (Test);
}