Add PB interface for setting an index n_val
Merge branch 'bugfix/er/index-n-val-pb' into develop