= event.data; const file = gcs.bucket(object.bucket).file(object.name); const metadata = object.metadata // Exit if this is a move or deletion event. if (object.resourceState === 'not_exists') { return console.log('This is a deletion event.'); } //... })