The "gs://"-prefixed URI of the file in Cloud Storage for Firebase, for example,
"gs://bucket-name/path/image.jpg".
mimeType
The IANA standard MIME type of the uploaded file, for example, "image/jpeg"
or "video/mp4"; see supported input files and
requirements for
supported values.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-27 UTC."],[],[],null,["# FirebaseAI Framework Reference\n\nFileDataPart\n============\n\n @available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)\n public struct FileDataPart : ../Protocols/Part.html\n\nFile data stored in Cloud Storage for Firebase, referenced by URI.\n- `\n ``\n ``\n `\n\n ### [uri](#/s:10FirebaseAI12FileDataPartV3uriSSvp)\n\n `\n ` \n Undocumented \n\n #### Declaration\n\n Swift \n\n public var uri: String { get }\n\n- `\n ``\n ``\n `\n\n ### [mimeType](#/s:10FirebaseAI12FileDataPartV8mimeTypeSSvp)\n\n `\n ` \n Undocumented \n\n #### Declaration\n\n Swift \n\n public var mimeType: String { get }\n\n- `\n ``\n ``\n `\n\n ### [init(uri:mimeType:)](#/s:10FirebaseAI12FileDataPartV3uri8mimeTypeACSS_SStcfc)\n\n `\n ` \n Constructs a new file data part. \n\n #### Declaration\n\n Swift \n\n public init(uri: String, mimeType: String)\n\n #### Parameters\n\n |------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n | ` `*uri*` ` | The `\"gs://\"`-prefixed URI of the file in Cloud Storage for Firebase, for example, `\"gs://bucket-name/path/image.jpg\"`. |\n | ` `*mimeType*` ` | The IANA standard MIME type of the uploaded file, for example, `\"image/jpeg\"` or `\"video/mp4\"`; see [supported input files and requirements](https://firebase.google.com/docs/vertex-ai/input-file-requirements) for supported values. |"]]