Send feedback Stay organized with collections Save and categorize content based on your preferences.
Firebase. AI. ModelContent. FileDataPart File data stored in Cloud Storage for Firebase , referenced by a URI.
Summary Inheritance Inherits from:
Firebase.AI.ModelContent.Part Constructors and Destructors FileDataPart (string mimeType, System.Uri uri)
Constructs a new file data part.
Properties MimeType
string
The IANA standard MIME type of the data.
Uri
System.Uri
The URI of the file.
Public functions ToJson ()
Dictionary< string, object > Part.
Properties MimeType
string Firebase :: AI :: ModelContent :: FileDataPart :: MimeType The IANA standard MIME type of the data.
Uri
System . Uri Firebase :: AI :: ModelContent :: FileDataPart :: Uri Public functions FileDataPart
Firebase :: AI :: ModelContent :: FileDataPart :: FileDataPart ( string mimeType , System . Uri uri ) Constructs a new file data part.
Details Parameters mimeType
The IANA standard MIME type of the uploaded file, for example,
"image/jpeg"
or
"video/mp4"
; see
media requirements for supported values.
uri
The
"gs://"
-prefixed URI of the file in Cloud
Storage for
Firebase , for example,
"gs://bucket-name/path/image.jpg"
ToJson
Dictionary < string , object > Part . Firebase :: AI :: ModelContent :: FileDataPart :: ToJson ()
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-20 UTC.
Need to tell us more? [[["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-05-20 UTC."],[],[]]