public interface CountTokensResponseOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getPromptTokensDetails(int index)
public abstract ModalityTokenCount getPromptTokensDetails(int index)Output only. List of modalities that were processed in the request input.
repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ModalityTokenCount |
|
getPromptTokensDetailsCount()
public abstract int getPromptTokensDetailsCount()Output only. List of modalities that were processed in the request input.
repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
|
getPromptTokensDetailsList()
public abstract List<ModalityTokenCount> getPromptTokensDetailsList()Output only. List of modalities that were processed in the request input.
repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
List<ModalityTokenCount> |
|
getPromptTokensDetailsOrBuilder(int index)
public abstract ModalityTokenCountOrBuilder getPromptTokensDetailsOrBuilder(int index)Output only. List of modalities that were processed in the request input.
repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ModalityTokenCountOrBuilder |
|
getPromptTokensDetailsOrBuilderList()
public abstract List<? extends ModalityTokenCountOrBuilder> getPromptTokensDetailsOrBuilderList()Output only. List of modalities that were processed in the request input.
repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.vertexai.api.ModalityTokenCountOrBuilder> |
|
getTotalBillableCharacters()
public abstract int getTotalBillableCharacters()The total number of billable characters counted across all instances from the request.
int32 total_billable_characters = 2;
| Returns | |
|---|---|
| Type | Description |
int |
The totalBillableCharacters. |
getTotalTokens()
public abstract int getTotalTokens()The total number of tokens counted across all instances from the request.
int32 total_tokens = 1;
| Returns | |
|---|---|
| Type | Description |
int |
The totalTokens. |