Firebase.AI.ModelContent.FileDataPart

File data stored in CloudStorage forFirebase, 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

IsThought
bool
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

IsThought

boolFirebase::AI::ModelContent::FileDataPart::IsThought

MimeType

stringFirebase::AI::ModelContent::FileDataPart::MimeType

The IANA standard MIME type of the data.

Uri

System.UriFirebase::AI::ModelContent::FileDataPart::Uri

The URI of the file.

Public functions

FileDataPart

Firebase::AI::ModelContent::FileDataPart::FileDataPart(stringmimeType,System.Uriuri)

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"; seemedia requirements for supported values.
uri
The"gs://"-prefixed URI of the file in CloudStorage forFirebase, for example,"gs://bucket-name/path/image.jpg"

ToJson

Dictionary<string,object>Part.Firebase::AI::ModelContent::FileDataPart::ToJson()

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-09-04 UTC.