InlineDataPart interface
Stay organized with collections
Save and categorize content based on your preferences.
Content part interface if the part represents an image.
Signature:
export interface InlineDataPart
Properties
InlineDataPart.functionCall
Signature:
functionCall?: never;
InlineDataPart.functionResponse
Signature:
functionResponse?: never;
InlineDataPart.inlineData
Signature:
inlineData: GenerativeContentBlob;
InlineDataPart.text
Signature:
text?: never;
InlineDataPart.thought
Signature:
thought?: boolean;
Applicable if inlineData
is a video.
Signature:
videoMetadata?: VideoMetadata;
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-08-28 UTC.
[null,null,["Last updated 2025-08-28 UTC."],[],[],null,["Content part interface if the part represents an image.\n\n**Signature:** \n\n export interface InlineDataPart \n\nProperties\n\n| Property | Type | Description |\n|---------------------------------------------------------------------------|----------------------------------------------------------------------------------------|----------------------------------------|\n| [functionCall](./ai.inlinedatapart.md#inlinedatapartfunctioncall) | never | |\n| [functionResponse](./ai.inlinedatapart.md#inlinedatapartfunctionresponse) | never | |\n| [inlineData](./ai.inlinedatapart.md#inlinedatapartinlinedata) | [GenerativeContentBlob](./ai.generativecontentblob.md#generativecontentblob_interface) | |\n| [text](./ai.inlinedatapart.md#inlinedataparttext) | never | |\n| [thought](./ai.inlinedatapart.md#inlinedatapartthought) | boolean | |\n| [videoMetadata](./ai.inlinedatapart.md#inlinedatapartvideometadata) | [VideoMetadata](./ai.videometadata.md#videometadata_interface) | Applicable if `inlineData` is a video. |\n\nInlineDataPart.functionCall\n\n**Signature:** \n\n functionCall?: never;\n\nInlineDataPart.functionResponse\n\n**Signature:** \n\n functionResponse?: never;\n\nInlineDataPart.inlineData\n\n**Signature:** \n\n inlineData: GenerativeContentBlob;\n\nInlineDataPart.text\n\n**Signature:** \n\n text?: never;\n\nInlineDataPart.thought\n\n**Signature:** \n\n thought?: boolean;\n\nInlineDataPart.videoMetadata\n\nApplicable if `inlineData` is a video.\n\n**Signature:** \n\n videoMetadata?: VideoMetadata;"]]