Class RealtimeResponseUsageInputTokenDetails.CachedTokensDetails
-
- All Implemented Interfaces:
public final class RealtimeResponseUsageInputTokenDetails.CachedTokensDetails
Details about the cached tokens used as input for the Response.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
RealtimeResponseUsageInputTokenDetails.CachedTokensDetails.Builder
A 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.Builder
toBuilder()
final RealtimeResponseUsageInputTokenDetails.CachedTokensDetails
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static RealtimeResponseUsageInputTokenDetails.CachedTokensDetails.Builder
builder()
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()
-
builder
final static RealtimeResponseUsageInputTokenDetails.CachedTokensDetails.Builder builder()
Returns a mutable builder for constructing an instance of CachedTokensDetails.
-
-
-
-