You need to use AddExtension() to add a new value to a repeated field.
SetExtension() is for modifying an existing value. In fact, you're
supposed to pass the index of the value you want to modify to SetExtension,
e.g.:
fltData.SetExtension(FilterData::filter_columns, 5, "TEST");
Due to a bug
I am trying to use extensions in protcol buf(version 2.3.0) using
visual studio 2008 c++.
Here is my .proto file:
message DataMsg {
optional int32 msgtype=99;
extensions 100 to max;
}
message FilterData {
extend DataMsg {
optional string filter_colu