A hash of custom, user-provided web-safe keys and arbitrary string
values that will returned with requests for the file as
"x-goog-meta-" response headers.
Returns
(Hash(String => String))
#metadata=
defmetadata=(metadata)
Updates the hash of custom, user-provided web-safe keys and
arbitrary string values that will returned with requests for the
file as "x-goog-meta-" response headers.
Parameter
metadata (Hash(String => String)) — The user-provided metadata,
in key/value pairs.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Cloud Storage API - Class Google::Cloud::Storage::File::Updater (v1.57.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.57.0 (latest)](/ruby/docs/reference/google-cloud-storage/latest/Google-Cloud-Storage-File-Updater)\n- [1.56.0](/ruby/docs/reference/google-cloud-storage/1.56.0/Google-Cloud-Storage-File-Updater)\n- [1.55.0](/ruby/docs/reference/google-cloud-storage/1.55.0/Google-Cloud-Storage-File-Updater)\n- [1.54.0](/ruby/docs/reference/google-cloud-storage/1.54.0/Google-Cloud-Storage-File-Updater)\n- [1.53.0](/ruby/docs/reference/google-cloud-storage/1.53.0/Google-Cloud-Storage-File-Updater)\n- [1.52.0](/ruby/docs/reference/google-cloud-storage/1.52.0/Google-Cloud-Storage-File-Updater)\n- [1.51.0](/ruby/docs/reference/google-cloud-storage/1.51.0/Google-Cloud-Storage-File-Updater)\n- [1.50.0](/ruby/docs/reference/google-cloud-storage/1.50.0/Google-Cloud-Storage-File-Updater)\n- [1.49.0](/ruby/docs/reference/google-cloud-storage/1.49.0/Google-Cloud-Storage-File-Updater)\n- [1.48.1](/ruby/docs/reference/google-cloud-storage/1.48.1/Google-Cloud-Storage-File-Updater)\n- [1.47.0](/ruby/docs/reference/google-cloud-storage/1.47.0/Google-Cloud-Storage-File-Updater)\n- [1.46.0](/ruby/docs/reference/google-cloud-storage/1.46.0/Google-Cloud-Storage-File-Updater)\n- [1.45.0](/ruby/docs/reference/google-cloud-storage/1.45.0/Google-Cloud-Storage-File-Updater)\n- [1.44.0](/ruby/docs/reference/google-cloud-storage/1.44.0/Google-Cloud-Storage-File-Updater)\n- [1.43.0](/ruby/docs/reference/google-cloud-storage/1.43.0/Google-Cloud-Storage-File-Updater)\n- [1.42.0](/ruby/docs/reference/google-cloud-storage/1.42.0/Google-Cloud-Storage-File-Updater)\n- [1.41.0](/ruby/docs/reference/google-cloud-storage/1.41.0/Google-Cloud-Storage-File-Updater)\n- [1.40.0](/ruby/docs/reference/google-cloud-storage/1.40.0/Google-Cloud-Storage-File-Updater)\n- [1.39.0](/ruby/docs/reference/google-cloud-storage/1.39.0/Google-Cloud-Storage-File-Updater)\n- [1.38.0](/ruby/docs/reference/google-cloud-storage/1.38.0/Google-Cloud-Storage-File-Updater)\n- [1.37.0](/ruby/docs/reference/google-cloud-storage/1.37.0/Google-Cloud-Storage-File-Updater)\n- [1.36.2](/ruby/docs/reference/google-cloud-storage/1.36.2/Google-Cloud-Storage-File-Updater)\n- [1.35.0](/ruby/docs/reference/google-cloud-storage/1.35.0/Google-Cloud-Storage-File-Updater) \nReference documentation and code samples for the Cloud Storage API class Google::Cloud::Storage::File::Updater.\n\nYielded to a block to accumulate changes for a patch request. \n\nInherits\n--------\n\n- [Google::Cloud::Storage::File](./Google-Cloud-Storage-File)\n\nMethods\n-------\n\n### #metadata\n\n def metadata() -\u003e Hash(String =\u003e String)\n\nA hash of custom, user-provided web-safe keys and arbitrary string\nvalues that will returned with requests for the file as\n\"x-goog-meta-\" response headers. \n**Returns**\n\n- (Hash(String =\\\u003e String))\n\n### #metadata=\n\n def metadata=(metadata)\n\nUpdates the hash of custom, user-provided web-safe keys and\narbitrary string values that will returned with requests for the\nfile as \"x-goog-meta-\" response headers. \n**Parameter**\n\n- **metadata** (Hash(String =\\\u003e String)) --- The user-provided metadata, in key/value pairs."]]