Class TranscriptionTextDoneEvent.Usage.InputTokenDetails
-
- All Implemented Interfaces:
public final class TranscriptionTextDoneEvent.Usage.InputTokenDetailsDetails about the input tokens billed for this request.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classTranscriptionTextDoneEvent.Usage.InputTokenDetails.BuilderA builder for InputTokenDetails.
-
Method Summary
Modifier and Type Method Description final Optional<Long>audioTokens()Number of audio tokens billed for this request. final Optional<Long>textTokens()Number of text tokens billed for this request. final JsonField<Long>_audioTokens()Returns the raw JSON value of audioTokens. final JsonField<Long>_textTokens()Returns the raw JSON value of textTokens. final Map<String, JsonValue>_additionalProperties()final TranscriptionTextDoneEvent.Usage.InputTokenDetails.BuildertoBuilder()final TranscriptionTextDoneEvent.Usage.InputTokenDetailsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static TranscriptionTextDoneEvent.Usage.InputTokenDetails.Builderbuilder()Returns a mutable builder for constructing an instance of InputTokenDetails. -
-
Method Detail
-
audioTokens
final Optional<Long> audioTokens()
Number of audio tokens billed for this request.
-
textTokens
final Optional<Long> textTokens()
Number of text tokens billed for this request.
-
_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.
-
_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 TranscriptionTextDoneEvent.Usage.InputTokenDetails.Builder toBuilder()
-
validate
final TranscriptionTextDoneEvent.Usage.InputTokenDetails 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 TranscriptionTextDoneEvent.Usage.InputTokenDetails.Builder builder()
Returns a mutable builder for constructing an instance of InputTokenDetails.
-
-
-
-