Stay organized with collections
Save and categorize content based on your preferences.
Firebase.AI.ModelContent.InlineDataPart
Data with a specified media type.
Summary
Note: Not all media types may be supported by the AI model.
Inheritance
Inherits from:
Firebase.AI.ModelContent.Part
Constructors and Destructors
|
InlineDataPart(string mimeType, byte[] data)
|
Properties
|
Data
|
byte[]
The data provided in the inline data part.
|
MimeType
|
string
The IANA standard MIME type of the data.
|
Public functions
|
ToJson()
|
Dictionary< string, object > Part.
|
Properties
Data
byte[] Firebase::AI::ModelContent::InlineDataPart::Data
The data provided in the inline data part.
MimeType
string Firebase::AI::ModelContent::InlineDataPart::MimeType
The IANA standard MIME type of the data.
Public functions
InlineDataPart
Firebase::AI::ModelContent::InlineDataPart::InlineDataPart(
string mimeType,
byte[] data
)
ToJson
Dictionary< string, object > Part. Firebase::AI::ModelContent::InlineDataPart::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-07-24 UTC.
[null,null,["Last updated 2025-07-24 UTC."],[],[],null,["# Firebase.AI.ModelContent.InlineDataPart Struct Reference\n\nFirebase.AI.ModelContent.InlineDataPart\n=======================================\n\nData with a specified media type.\n\nSummary\n-------\n\nNote: Not all media types may be supported by the [AI](/docs/reference/unity/namespace/firebase/a-i#namespace_firebase_1_1_a_i) model.\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| [InlineDataPart](#struct_firebase_1_1_a_i_1_1_model_content_1_1_inline_data_part_1a43e09adae06aeaf9a3a357f1262b2834)`(string mimeType, byte[] data)` Creates an [InlineDataPart](/docs/reference/unity/struct/firebase/a-i/model-content/inline-data-part#struct_firebase_1_1_a_i_1_1_model_content_1_1_inline_data_part) from data and a MIME type. ||\n\n| ### Properties ||\n|----------------------------------------------------------------------------------------------------------------|-----------------------------------------------------|\n| [Data](#struct_firebase_1_1_a_i_1_1_model_content_1_1_inline_data_part_1ae22274e17a7b296e64ae45a4d75ebfbb) | `byte[]` The data provided in the inline data part. |\n| [MimeType](#struct_firebase_1_1_a_i_1_1_model_content_1_1_inline_data_part_1aa7070431d458d0c2ffd3a37c8cec0fd8) | `string` The IANA standard MIME type of the data. |\n\n| ### Public functions ||\n|------------------------------------------------------------------------------------------------------------------|--------------------------------------|\n| [ToJson](#struct_firebase_1_1_a_i_1_1_model_content_1_1_inline_data_part_1a09892d303eaa2443121a1f06c220a7dd)`()` | `Dictionary\u003c string, object \u003e Part.` |\n\nProperties\n----------\n\n### Data\n\n```c#\nbyte[] Firebase::AI::ModelContent::InlineDataPart::Data\n``` \nThe data provided in the inline data part. \n\n### MimeType\n\n```c#\nstring Firebase::AI::ModelContent::InlineDataPart::MimeType\n``` \nThe IANA standard MIME type of the data.\n\nPublic functions\n----------------\n\n### InlineDataPart\n\n```c#\n Firebase::AI::ModelContent::InlineDataPart::InlineDataPart(\n string mimeType,\n byte[] data\n)\n``` \nCreates an [InlineDataPart](/docs/reference/unity/struct/firebase/a-i/model-content/inline-data-part#struct_firebase_1_1_a_i_1_1_model_content_1_1_inline_data_part) from data and a MIME type.\n\nImportant: Supported input types depend on the model on the model being used; see \\[input files and requirements\\](\u003chttps://firebase.google.com/docs/vertex-ai/input-file-requirements\u003e) for more details.\n\n\u003cbr /\u003e\n\n| Details ||\n|------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Parameters | |------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `mimeType` | The IANA standard MIME type of the data, for example, `\"image/jpeg\"` or `\"video/mp4\"`; see [input files and requirements](https://firebase.google.com/docs/vertex-ai/input-file-requirements) for supported values. | | `data` | The data representation of an image, video, audio or document; see [input files and requirements](https://firebase.google.com/docs/vertex-ai/input-file-requirements) for supported media types. | |\n\n### ToJson\n\n```c#\nDictionary\u003c string, object \u003e Part. Firebase::AI::ModelContent::InlineDataPart::ToJson()\n```"]]