Interface CountTokensResponseOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    CountTokensResponse, CountTokensResponse.Builder

    public interface CountTokensResponseOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int getTotalBillableCharacters()
      The total number of billable characters counted across all instances from the request.
      int getTotalTokens()
      The total number of tokens counted across all instances from the request.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

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