Protobuffication in the API.