Uses of Enum Class
org.springframework.ai.google.genai.metadata.GoogleGenAiTrafficType
Packages that use GoogleGenAiTrafficType
-
Uses of GoogleGenAiTrafficType in org.springframework.ai.google.genai.metadata
Methods in org.springframework.ai.google.genai.metadata that return GoogleGenAiTrafficTypeModifier and TypeMethodDescriptionstatic GoogleGenAiTrafficTypeGoogleGenAiTrafficType.from(com.google.genai.types.TrafficType trafficType) Creates a GoogleGenAiTrafficType from the SDK's TrafficType.@Nullable GoogleGenAiTrafficTypeGoogleGenAiUsage.getTrafficType()Returns the traffic type showing whether a request consumes Pay-As-You-Go or Provisioned Throughput quota.static GoogleGenAiTrafficTypeReturns the enum constant of this class with the specified name.static GoogleGenAiTrafficType[]GoogleGenAiTrafficType.values()Returns an array containing the constants of this enum class, in the order they are declared.Constructors in org.springframework.ai.google.genai.metadata with parameters of type GoogleGenAiTrafficTypeModifierConstructorDescriptionGoogleGenAiUsage(Integer promptTokens, Integer completionTokens, Integer totalTokens, @Nullable Integer thoughtsTokenCount, @Nullable Integer cachedContentTokenCount, @Nullable Integer toolUsePromptTokenCount, @Nullable List<GoogleGenAiModalityTokenCount> promptTokensDetails, @Nullable List<GoogleGenAiModalityTokenCount> candidatesTokensDetails, @Nullable List<GoogleGenAiModalityTokenCount> cacheTokensDetails, @Nullable List<GoogleGenAiModalityTokenCount> toolUsePromptTokensDetails, @Nullable GoogleGenAiTrafficType trafficType, @Nullable com.google.genai.types.GenerateContentResponseUsageMetadata nativeUsage) Creates a new GoogleGenAiUsage instance with all extended metadata.