Thrift API change.
Generated files.
Modified code to make use of new api.