Interface Transcription.Usage.Visitor
-
- All Implemented Interfaces:
public interface Transcription.Usage.Visitor<T extends Object>
-
-
Method Summary
Modifier and Type Method Description abstract T
visitTokens(Transcription.Usage.Tokens tokens)
Usage statistics for models billed by token usage. abstract T
visitDuration(Transcription.Usage.Duration duration)
Usage statistics for models billed by audio input duration. T
unknown(JsonValue json)
Maps an unknown variant of Usage to a value of type T. -
-
Method Detail
-
visitTokens
abstract T visitTokens(Transcription.Usage.Tokens tokens)
Usage statistics for models billed by token usage.
-
visitDuration
abstract T visitDuration(Transcription.Usage.Duration duration)
Usage statistics for models billed by audio input duration.
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of Usage to a value of type T.
An instance of Usage can contain an unknown variant if it was deserialized from data that doesn't match any known variant. For example, if the SDK is on an older version than the API, then the API may respond with new variants that the SDK is unaware of.
-
-
-
-