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.
12 lines
152 B
Protocol Buffer
12 lines
152 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package repeated;
|
|
|
|
message Test {
|
|
repeated string names = 1;
|
|
}
|
|
|
|
service ExampleService {
|
|
rpc DoThing (Test) returns (Test);
|
|
}
|