Interface ComputeTokensResponseOrBuilder (3.37.0)

public interface ComputeTokensResponseOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getTokensInfo(int index)

public abstract TokensInfo getTokensInfo(int index)

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.aiplatform.v1.TokensInfo tokens_info = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
TokensInfo

getTokensInfoCount()

public abstract int getTokensInfoCount()

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.aiplatform.v1.TokensInfo tokens_info = 1;

Returns
TypeDescription
int

getTokensInfoList()

public abstract List<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.aiplatform.v1.TokensInfo tokens_info = 1;

Returns
TypeDescription
List<TokensInfo>

getTokensInfoOrBuilder(int index)

public abstract TokensInfoOrBuilder getTokensInfoOrBuilder(int index)

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.aiplatform.v1.TokensInfo tokens_info = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
TokensInfoOrBuilder

getTokensInfoOrBuilderList()

public abstract List<? extends TokensInfoOrBuilder> 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.aiplatform.v1.TokensInfo tokens_info = 1;

Returns
TypeDescription
List<? extends com.google.cloud.aiplatform.v1.TokensInfoOrBuilder>