Here is my definition
message point{
optional float x = 1;
optional float y = 2;
}
message test{
repeated field point = 1;
}
In my example.java
file I am trying to create a builder as follows:
for(i = 0; i < somearr.size(); i++)
{
// I get x and y values from traversing the array
float x = getX;
float y = getY;
// now I want to set the repeated field point
}
How do I set the repeated field points?