Added setns utilities to stout.

Review: https://reviews.apache.org/r/22160