I wrote down a proto like this:
message VenueCalibrationData
{
string sportType = 1;
int64 lastModifiedCalibration = 2;
BoolVal isPrimary = 3;
}
message BoolVal
{
bool value = 1;
}
However when I checked my client side log I got:
{ "venueDataCalibration": [ { "sportType": "BASEBALL", "lastModifiedCalibration": "1667988929", "isPrimary": { "value": true } }, { "sportType": "SOCCER", "lastModifiedCalibration": "1667988909", "isPrimary": { } } ] }
And my server is indeed sending the false message as empty.. but when I go over and check:
venueCalibDataProto.IsPrimary = new BoolVal();
venueCalibDataProto.IsPrimary.Value = (folderName.ToLower() == primaryCalib.ToLower());
I put venueCalibDataProto.IsPrimary.Value.ToString()
to check the value, I see False
written. What am I doing wrong?