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 LogprobsResultOrBuilder (1.32.0)\n\n public interface LogprobsResultOrBuilder 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### getChosenCandidates(int index)\n\n public abstract LogprobsResult.Candidate getChosenCandidates(int index)\n\nLength = total number of decoding steps.\nThe chosen candidates may or may not be in top_candidates.\n\n`repeated .google.cloud.vertexai.v1.LogprobsResult.Candidate chosen_candidates = 2;`\n\n### getChosenCandidatesCount()\n\n public abstract int getChosenCandidatesCount()\n\nLength = total number of decoding steps.\nThe chosen candidates may or may not be in top_candidates.\n\n`repeated .google.cloud.vertexai.v1.LogprobsResult.Candidate chosen_candidates = 2;`\n\n### getChosenCandidatesList()\n\n public abstract List\u003cLogprobsResult.Candidate\u003e getChosenCandidatesList()\n\nLength = total number of decoding steps.\nThe chosen candidates may or may not be in top_candidates.\n\n`repeated .google.cloud.vertexai.v1.LogprobsResult.Candidate chosen_candidates = 2;`\n\n### getChosenCandidatesOrBuilder(int index)\n\n public abstract LogprobsResult.CandidateOrBuilder getChosenCandidatesOrBuilder(int index)\n\nLength = total number of decoding steps.\nThe chosen candidates may or may not be in top_candidates.\n\n`repeated .google.cloud.vertexai.v1.LogprobsResult.Candidate chosen_candidates = 2;`\n\n### getChosenCandidatesOrBuilderList()\n\n public abstract List\u003c? extends LogprobsResult.CandidateOrBuilder\u003e getChosenCandidatesOrBuilderList()\n\nLength = total number of decoding steps.\nThe chosen candidates may or may not be in top_candidates.\n\n`repeated .google.cloud.vertexai.v1.LogprobsResult.Candidate chosen_candidates = 2;`\n\n### getTopCandidates(int index)\n\n public abstract LogprobsResult.TopCandidates getTopCandidates(int index)\n\nLength = total number of decoding steps.\n\n`repeated .google.cloud.vertexai.v1.LogprobsResult.TopCandidates top_candidates = 1;\n`\n\n### getTopCandidatesCount()\n\n public abstract int getTopCandidatesCount()\n\nLength = total number of decoding steps.\n\n`repeated .google.cloud.vertexai.v1.LogprobsResult.TopCandidates top_candidates = 1;\n`\n\n### getTopCandidatesList()\n\n public abstract List\u003cLogprobsResult.TopCandidates\u003e getTopCandidatesList()\n\nLength = total number of decoding steps.\n\n`repeated .google.cloud.vertexai.v1.LogprobsResult.TopCandidates top_candidates = 1;\n`\n\n### getTopCandidatesOrBuilder(int index)\n\n public abstract LogprobsResult.TopCandidatesOrBuilder getTopCandidatesOrBuilder(int index)\n\nLength = total number of decoding steps.\n\n`repeated .google.cloud.vertexai.v1.LogprobsResult.TopCandidates top_candidates = 1;\n`\n\n### getTopCandidatesOrBuilderList()\n\n public abstract List\u003c? extends LogprobsResult.TopCandidatesOrBuilder\u003e getTopCandidatesOrBuilderList()\n\nLength = total number of decoding steps.\n\n`repeated .google.cloud.vertexai.v1.LogprobsResult.TopCandidates top_candidates = 1;\n`"]]