Class RealtimeResponseUsageInputTokenDetails.CachedTokensDetails
-
- All Implemented Interfaces:
public final class RealtimeResponseUsageInputTokenDetails.CachedTokensDetailsDetails about the cached tokens used as input for the Response.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRealtimeResponseUsageInputTokenDetails.CachedTokensDetails.BuilderA builder for CachedTokensDetails.
-
Method Summary
Modifier and Type Method Description final Optional<Long>audioTokens()The number of cached audio tokens used as input for the Response. final Optional<Long>imageTokens()The number of cached image tokens used as input for the Response. final Optional<Long>textTokens()The number of cached text tokens used as input for the Response. final JsonField<Long>_audioTokens()Returns the raw JSON value of audioTokens. final JsonField<Long>_imageTokens()Returns the raw JSON value of imageTokens. final JsonField<Long>_textTokens()Returns the raw JSON value of textTokens. final Map<String, JsonValue>_additionalProperties()final RealtimeResponseUsageInputTokenDetails.CachedTokensDetails.BuildertoBuilder()final RealtimeResponseUsageInputTokenDetails.CachedTokensDetailsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static RealtimeResponseUsageInputTokenDetails.CachedTokensDetails.Builderbuilder()Returns a mutable builder for constructing an instance of CachedTokensDetails. -
-
Method Detail
-
audioTokens
final Optional<Long> audioTokens()
The number of cached audio tokens used as input for the Response.
-
imageTokens
final Optional<Long> imageTokens()
The number of cached image tokens used as input for the Response.
-
textTokens
final Optional<Long> textTokens()
The number of cached text tokens used as input for the Response.
-
_audioTokens
final JsonField<Long> _audioTokens()
Returns the raw JSON value of audioTokens.
Unlike audioTokens, this method doesn't throw if the JSON field has an unexpected type.
-
_imageTokens
final JsonField<Long> _imageTokens()
Returns the raw JSON value of imageTokens.
Unlike imageTokens, this method doesn't throw if the JSON field has an unexpected type.
-
_textTokens
final JsonField<Long> _textTokens()
Returns the raw JSON value of textTokens.
Unlike textTokens, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final RealtimeResponseUsageInputTokenDetails.CachedTokensDetails.Builder toBuilder()
-
validate
final RealtimeResponseUsageInputTokenDetails.CachedTokensDetails validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static RealtimeResponseUsageInputTokenDetails.CachedTokensDetails.Builder builder()
Returns a mutable builder for constructing an instance of CachedTokensDetails.
-
-
-
-