Class Transcription.Usage.Duration
-
- All Implemented Interfaces:
public final class Transcription.Usage.Duration
Usage statistics for models billed by audio input duration.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
Transcription.Usage.Duration.Builder
A builder for Duration.
-
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 Transcription.Usage.Duration.Builder
toBuilder()
final Transcription.Usage.Duration
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static Transcription.Usage.Duration.Builder
builder()
Returns a mutable builder for constructing an instance of Duration. -
-
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 Transcription.Usage.Duration.Builder toBuilder()
-
validate
final Transcription.Usage.Duration validate()
-
builder
final static Transcription.Usage.Duration.Builder builder()
Returns a mutable builder for constructing an instance of Duration.
The following fields are required:
.seconds()
-
-
-
-