Interface ComputeTokensResponseOrBuilder (0.5.0)

publicinterface ComputeTokensResponseOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getTokensInfo(int index)

publicabstractTokensInfogetTokensInfo(intindex)

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.

repeated .google.cloud.vertexai.v1.TokensInfo tokens_info = 1;

Parameter
Name Description
index int
Returns
Type Description
TokensInfo

getTokensInfoCount()

publicabstractintgetTokensInfoCount()

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.

repeated .google.cloud.vertexai.v1.TokensInfo tokens_info = 1;

Returns
Type Description
int

getTokensInfoList()

publicabstractList<TokensInfo>getTokensInfoList()

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.

repeated .google.cloud.vertexai.v1.TokensInfo tokens_info = 1;

Returns
Type Description
List<TokensInfo>

getTokensInfoOrBuilder(int index)

publicabstractTokensInfoOrBuildergetTokensInfoOrBuilder(intindex)

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.

repeated .google.cloud.vertexai.v1.TokensInfo tokens_info = 1;

Parameter
Name Description
index int
Returns
Type Description
TokensInfoOrBuilder

getTokensInfoOrBuilderList()

publicabstractList<?extendsTokensInfoOrBuilder>getTokensInfoOrBuilderList()

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.

repeated .google.cloud.vertexai.v1.TokensInfo tokens_info = 1;

Returns
Type Description
List<? extends com.google.cloud.vertexai.api.TokensInfoOrBuilder>

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.