Class TranscriptionDiarized.Usage.Duration
-
- All Implemented Interfaces:
public final class TranscriptionDiarized.Usage.DurationUsage statistics for models billed by audio input duration.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classTranscriptionDiarized.Usage.Duration.BuilderA builder for Duration.
-
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 TranscriptionDiarized.Usage.Duration.BuildertoBuilder()final TranscriptionDiarized.Usage.Durationvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static TranscriptionDiarized.Usage.Duration.Builderbuilder()Returns a mutable builder for constructing an instance of Duration. -
-
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 TranscriptionDiarized.Usage.Duration.Builder toBuilder()
-
validate
final TranscriptionDiarized.Usage.Duration 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 TranscriptionDiarized.Usage.Duration.Builder builder()
Returns a mutable builder for constructing an instance of Duration.
The following fields are required:
.seconds()
-
-
-
-