I am trying to create a message with a repeated field which has some default values. I'm starting slow, with a simple int repeated (my final goal is a repeated message which all fields are have some value default)
so, to start my proto is:
syntax = "proto2"
import "google/protobuf/descriptor.proto";
import "nanopb.proto";
message MyDefault {
repeated int32 default = 1 [(nanopb).max_count = 3];
}
extend google.protobuf.FieldOptions {
optional MyDefault my_default = 1234;
}
message M {
repeated int32 x = 1 [(my_default) = {default: [1, 2, 3]}, (nanopb).max_count = 3];
}
protobuf is compiled, but no trace to my default values.