Add code for protobuf multidim data