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-09-04 UTC."],[],[],null,["# Interface GenerateContentResponse.UsageMetadataOrBuilder (1.1.0)\n\n public static interface GenerateContentResponse.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### getCandidatesTokenCount()\n\n public abstract int getCandidatesTokenCount()\n\nNumber of tokens in the response(s).\n\n`int32 candidates_token_count = 2;`\n\n### getPromptTokenCount()\n\n public abstract int getPromptTokenCount()\n\nNumber of tokens in the request.\n\n`int32 prompt_token_count = 1;`\n\n### getTotalTokenCount()\n\n public abstract int getTotalTokenCount()\n\n`int32 total_token_count = 3;`"]]