Instruct thrift to generate private fields in java.

Reviewed at https://reviews.apache.org/r/25671/