Finish implementing protobuf generator.