Starting April 29, 2025, Gemini 1.5 Pro and Gemini 1.5 Flash models are not available in projects that have no prior usage of these models, including new projects. For details, see Model versions and lifecycle.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-16 UTC."],[],[],null,["# Interface CachedContent.UsageMetadataOrBuilder (1.32.0)\n\n public static interface CachedContent.UsageMetadataOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getAudioDurationSeconds()\n\n public abstract int getAudioDurationSeconds()\n\nDuration of audio in seconds.\n\n`int32 audio_duration_seconds = 5;`\n\n### getImageCount()\n\n public abstract int getImageCount()\n\nNumber of images.\n\n`int32 image_count = 3;`\n\n### getTextCount()\n\n public abstract int getTextCount()\n\nNumber of text characters.\n\n`int32 text_count = 2;`\n\n### getTotalTokenCount()\n\n public abstract int getTotalTokenCount()\n\nTotal number of tokens that the cached content consumes.\n\n`int32 total_token_count = 1;`\n\n### getVideoDurationSeconds()\n\n public abstract int getVideoDurationSeconds()\n\nDuration of video in seconds.\n\n`int32 video_duration_seconds = 4;`"]]