Interface ComputeTokensResponseOrBuilder (1.8.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.vertexai.v1.TokensInfo tokens_info = 1;

Parameter
Name Description
index int
Returns
Type Description
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.vertexai.v1.TokensInfo tokens_info = 1;

Returns
Type Description
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.vertexai.v1.TokensInfo tokens_info = 1;

Returns
Type Description
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.vertexai.v1.TokensInfo tokens_info = 1;

Parameter
Name Description
index int
Returns
Type Description
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.vertexai.v1.TokensInfo tokens_info = 1;

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