I'm currently using protobuf for a project (C++), when I invoke field_count, it correctly returns 5 fields, for that message, but 0 for extensions. I did extend that message, on another file, something along these lines:
File A:
package alpha.proto;
message msg {
optional ping ping_field = 10;
optional pong pong_field = 20;
extensions 100 to max;
}
File B:
package beta.proto;
import "fileA.proto";
message delta_request {
required int32 num = 10
}
extend alpha.proto.msg {
optional delta_request delta_request_field = 110;
}
...
Does anyone know what the cause for returning zero as extension_count could be? Thank you.