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