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-03 UTC."],[],[],null,["# Interface LogprobsResult.TopCandidatesOrBuilder (1.32.0)\n\n public static interface LogprobsResult.TopCandidatesOrBuilder 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### getCandidates(int index)\n\n public abstract LogprobsResult.Candidate getCandidates(int index)\n\nSorted by log probability in descending order.\n\n`repeated .google.cloud.vertexai.v1.LogprobsResult.Candidate candidates = 1;`\n\n### getCandidatesCount()\n\n public abstract int getCandidatesCount()\n\nSorted by log probability in descending order.\n\n`repeated .google.cloud.vertexai.v1.LogprobsResult.Candidate candidates = 1;`\n\n### getCandidatesList()\n\n public abstract List\u003cLogprobsResult.Candidate\u003e getCandidatesList()\n\nSorted by log probability in descending order.\n\n`repeated .google.cloud.vertexai.v1.LogprobsResult.Candidate candidates = 1;`\n\n### getCandidatesOrBuilder(int index)\n\n public abstract LogprobsResult.CandidateOrBuilder getCandidatesOrBuilder(int index)\n\nSorted by log probability in descending order.\n\n`repeated .google.cloud.vertexai.v1.LogprobsResult.Candidate candidates = 1;`\n\n### getCandidatesOrBuilderList()\n\n public abstract List\u003c? extends LogprobsResult.CandidateOrBuilder\u003e getCandidatesOrBuilderList()\n\nSorted by log probability in descending order.\n\n`repeated .google.cloud.vertexai.v1.LogprobsResult.Candidate candidates = 1;`"]]