Files
nanopb/tests/regression/issue_256/submsg_array.proto
Petteri Aimonen 3e29a546db Add proto3_singular_msgs option, update tests (#308, #452)
This will be a breaking change for a lot of code using proto3 mode.
All proto3 submessages now have has_ field, that must be set to 'true' to
have the field encoded. To ease the transition, there is a generator
option proto3_singular_msgs to restore the old behavior.
2019-11-18 11:50:59 +02:00

12 lines
219 B
Protocol Buffer

syntax = "proto3";
import "nanopb.proto";
message SubMessage {
repeated uint32 rep_uint32 = 1 [(nanopb).max_count = 3];
}
message TestMessage {
SubMessage submsg = 1 [(nanopb).proto3_singular_msgs = true];
}