Class TranscriptionVerbose.Usage
-
- All Implemented Interfaces:
public final class TranscriptionVerbose.UsageUsage statistics for models billed by audio input duration.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classTranscriptionVerbose.Usage.BuilderA builder for Usage.
-
Method Summary
Modifier and Type Method Description final Doubleseconds()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.BuildertoBuilder()final TranscriptionVerbose.Usagevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static TranscriptionVerbose.Usage.Builderbuilder()Returns a mutable builder for constructing an instance of Usage. -
-
Method Detail
-
_type
final JsonValue _type()
The type of the usage object. Always
durationfor 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()
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 TranscriptionVerbose.Usage.Builder builder()
Returns a mutable builder for constructing an instance of Usage.
The following fields are required:
.seconds()
-
-
-
-