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.
Lists of tokens info from the input. A ComputeTokensRequest could have
multiple instances with a prompt in each instance. We also need to return
lists of tokens info for the request with multiple instances.
Lists of tokens info from the input. A ComputeTokensRequest could have
multiple instances with a prompt in each instance. We also need to return
lists of tokens info for the request with multiple instances.
Lists of tokens info from the input. A ComputeTokensRequest could have
multiple instances with a prompt in each instance. We also need to return
lists of tokens info for the request with multiple instances.
Lists of tokens info from the input. A ComputeTokensRequest could have
multiple instances with a prompt in each instance. We also need to return
lists of tokens info for the request with multiple instances.
Lists of tokens info from the input. A ComputeTokensRequest could have
multiple instances with a prompt in each instance. We also need to return
lists of tokens info for the request with multiple instances.
[[["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 ComputeTokensResponseOrBuilder (1.2.0)\n\n public interface ComputeTokensResponseOrBuilder 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### getTokensInfo(int index)\n\n public abstract TokensInfo getTokensInfo(int index)\n\nLists of tokens info from the input. A ComputeTokensRequest could have\nmultiple instances with a prompt in each instance. We also need to return\nlists of tokens info for the request with multiple instances.\n\n`repeated .google.cloud.vertexai.v1.TokensInfo tokens_info = 1;`\n\n### getTokensInfoCount()\n\n public abstract int getTokensInfoCount()\n\nLists of tokens info from the input. A ComputeTokensRequest could have\nmultiple instances with a prompt in each instance. We also need to return\nlists of tokens info for the request with multiple instances.\n\n`repeated .google.cloud.vertexai.v1.TokensInfo tokens_info = 1;`\n\n### getTokensInfoList()\n\n public abstract List\u003cTokensInfo\u003e getTokensInfoList()\n\nLists of tokens info from the input. A ComputeTokensRequest could have\nmultiple instances with a prompt in each instance. We also need to return\nlists of tokens info for the request with multiple instances.\n\n`repeated .google.cloud.vertexai.v1.TokensInfo tokens_info = 1;`\n\n### getTokensInfoOrBuilder(int index)\n\n public abstract TokensInfoOrBuilder getTokensInfoOrBuilder(int index)\n\nLists of tokens info from the input. A ComputeTokensRequest could have\nmultiple instances with a prompt in each instance. We also need to return\nlists of tokens info for the request with multiple instances.\n\n`repeated .google.cloud.vertexai.v1.TokensInfo tokens_info = 1;`\n\n### getTokensInfoOrBuilderList()\n\n public abstract List\u003c? extends TokensInfoOrBuilder\u003e getTokensInfoOrBuilderList()\n\nLists of tokens info from the input. A ComputeTokensRequest could have\nmultiple instances with a prompt in each instance. We also need to return\nlists of tokens info for the request with multiple instances.\n\n`repeated .google.cloud.vertexai.v1.TokensInfo tokens_info = 1;`"]]