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()
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.
[null,null,["Last updated 2025-05-20 UTC."],[],[],null,["# Firebase.AI.ModelContent.FileDataPart Struct Reference\n\nFirebase.AI.ModelContent.FileDataPart\n=====================================\n\nFile data stored in Cloud [Storage](/docs/reference/unity/namespace/firebase/storage#namespace_firebase_1_1_storage) for [Firebase](/docs/reference/unity/namespace/firebase#namespace_firebase), referenced by a URI.\n\nSummary\n-------\n\n### Inheritance\n\nInherits from: [Firebase.AI.ModelContent.Part](/docs/reference/unity/interface/firebase/a-i/model-content/part)\n\n| ### Constructors and Destructors ||\n|---|---|\n| [FileDataPart](#struct_firebase_1_1_a_i_1_1_model_content_1_1_file_data_part_1aefa5c669ed92aa0388efe1e5853ab410)`(string mimeType, System.Uri uri)` Constructs a new file data part. ||\n\n| ### Properties ||\n|--------------------------------------------------------------------------------------------------------------|---------------------------------------------------|\n| [MimeType](#struct_firebase_1_1_a_i_1_1_model_content_1_1_file_data_part_1a1182e8587e75dd25c47c6e0911cc3cd1) | `string` The IANA standard MIME type of the data. |\n| [Uri](#struct_firebase_1_1_a_i_1_1_model_content_1_1_file_data_part_1a1cf1b448aef59eaa41003525e265a78b) | `System.Uri` The URI of the file. |\n\n| ### Public functions ||\n|----------------------------------------------------------------------------------------------------------------|--------------------------------------|\n| [ToJson](#struct_firebase_1_1_a_i_1_1_model_content_1_1_file_data_part_1abfb360b0282dbc1047f6016e27ddf098)`()` | `Dictionary\u003c string, object \u003e Part.` |\n\nProperties\n----------\n\n### MimeType\n\n```c#\nstring Firebase::AI::ModelContent::FileDataPart::MimeType\n``` \nThe IANA standard MIME type of the data. \n\n### Uri\n\n```c#\nSystem.Uri Firebase::AI::ModelContent::FileDataPart::Uri\n``` \nThe URI of the file.\n\nPublic functions\n----------------\n\n### FileDataPart\n\n```c#\n Firebase::AI::ModelContent::FileDataPart::FileDataPart(\n string mimeType,\n System.Uri uri\n)\n``` \nConstructs a new file data part.\n\n\u003cbr /\u003e\n\n| Details ||\n|------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Parameters | |------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `mimeType` | The IANA standard MIME type of the uploaded file, for example, `\"image/jpeg\"` or `\"video/mp4\"`; see [media requirements](https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/send-multimodal-prompts#media_requirements) for supported values. | | `uri` | The `\"gs://\"`-prefixed URI of the file in Cloud [Storage](/docs/reference/unity/namespace/firebase/storage#namespace_firebase_1_1_storage) for [Firebase](/docs/reference/unity/namespace/firebase#namespace_firebase), for example, `\"gs://bucket-name/path/image.jpg\"` | |\n\n### ToJson\n\n```c#\nDictionary\u003c string, object \u003e Part. Firebase::AI::ModelContent::FileDataPart::ToJson()\n```"]]