Class TranscriptionVerbose.Usage
-
- All Implemented Interfaces:
public final class TranscriptionVerbose.Usage
Usage statistics for models billed by audio input duration.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
TranscriptionVerbose.Usage.Builder
A builder for Usage.
-
Method Summary
Modifier and Type Method Description final Double
seconds()
Duration of the input audio in seconds. final JsonValue
_type()
The type of the usage object. final JsonField<Double>
_seconds()
Returns the raw JSON value of seconds. final Map<String, JsonValue>
_additionalProperties()
final TranscriptionVerbose.Usage.Builder
toBuilder()
final TranscriptionVerbose.Usage
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static TranscriptionVerbose.Usage.Builder
builder()
Returns a mutable builder for constructing an instance of Usage. -
-
Method Detail
-
_type
final JsonValue _type()
The type of the usage object. Always
duration
for this variant.Expected to always return the following:
JsonValue.from("duration")
However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_seconds
final JsonField<Double> _seconds()
Returns the raw JSON value of seconds.
Unlike seconds, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final TranscriptionVerbose.Usage.Builder toBuilder()
-
validate
final TranscriptionVerbose.Usage validate()
-
builder
final static TranscriptionVerbose.Usage.Builder builder()
Returns a mutable builder for constructing an instance of Usage.
The following fields are required:
.seconds()
-
-
-
-