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 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

      ModalityTokenCount getPromptTokensDetails(int index)
       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

      ModalityTokenCountOrBuilder getPromptTokensDetailsOrBuilder(int index)
       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];