Package com.google.cloud.aiplatform.v1
Interface CountTokensResponseOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
CountTokensResponse,CountTokensResponse.Builder
@Generated
public interface CountTokensResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetPromptTokensDetails(int index) Output only.intOutput only.Output only.getPromptTokensDetailsOrBuilder(int index) Output only.List<? extends ModalityTokenCountOrBuilder>Output only.intThe total number of billable characters counted across all instances from the request.intThe total number of tokens counted across all instances from the request.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getTotalTokens
int getTotalTokens()The total number of tokens counted across all instances from the request.
int32 total_tokens = 1;- Returns:
- The totalTokens.
-
getTotalBillableCharacters
int getTotalBillableCharacters()The total number of billable characters counted across all instances from the request.
int32 total_billable_characters = 2;- Returns:
- The totalBillableCharacters.
-
getPromptTokensDetailsList
List<ModalityTokenCount> getPromptTokensDetailsList()Output only. List of modalities that were processed in the request input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getPromptTokensDetails
Output only. List of modalities that were processed in the request input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getPromptTokensDetailsCount
int getPromptTokensDetailsCount()Output only. List of modalities that were processed in the request input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getPromptTokensDetailsOrBuilderList
List<? extends ModalityTokenCountOrBuilder> getPromptTokensDetailsOrBuilderList()Output only. List of modalities that were processed in the request input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getPromptTokensDetailsOrBuilder
Output only. List of modalities that were processed in the request input.
repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
-