Interface ComputeTokensResponseOrBuilder (0.5.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicinterface ComputeTokensResponseOrBuilderextendsMessageOrBuilderImplements
MessageOrBuilderMethods
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> |
|