Class RealtimeResponseUsage.InputTokenDetails.Builder
-
- All Implemented Interfaces:
public final class RealtimeResponseUsage.InputTokenDetails.Builder
A builder for InputTokenDetails.
-
-
Method Summary
-
-
Method Detail
-
audioTokens
final RealtimeResponseUsage.InputTokenDetails.Builder audioTokens(Long audioTokens)
The number of audio tokens used in the Response.
-
audioTokens
final RealtimeResponseUsage.InputTokenDetails.Builder audioTokens(JsonField<Long> audioTokens)
Sets Builder.audioTokens to an arbitrary JSON value.
You should usually call Builder.audioTokens with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
cachedTokens
final RealtimeResponseUsage.InputTokenDetails.Builder cachedTokens(Long cachedTokens)
The number of cached tokens used in the Response.
-
cachedTokens
final RealtimeResponseUsage.InputTokenDetails.Builder cachedTokens(JsonField<Long> cachedTokens)
Sets Builder.cachedTokens to an arbitrary JSON value.
You should usually call Builder.cachedTokens with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
textTokens
final RealtimeResponseUsage.InputTokenDetails.Builder textTokens(Long textTokens)
The number of text tokens used in the Response.
-
textTokens
final RealtimeResponseUsage.InputTokenDetails.Builder textTokens(JsonField<Long> textTokens)
Sets Builder.textTokens to an arbitrary JSON value.
You should usually call Builder.textTokens with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final RealtimeResponseUsage.InputTokenDetails.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final RealtimeResponseUsage.InputTokenDetails.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final RealtimeResponseUsage.InputTokenDetails.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final RealtimeResponseUsage.InputTokenDetails.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final RealtimeResponseUsage.InputTokenDetails.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final RealtimeResponseUsage.InputTokenDetails build()
Returns an immutable instance of InputTokenDetails.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-