Class TranscriptionCreateResponse
-
- All Implemented Interfaces:
public final class TranscriptionCreateResponse
Represents a transcription response returned by model, based on the provided input.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
TranscriptionCreateResponse.Visitor
An interface that defines how to map each variant of TranscriptionCreateResponse to a value of type T.
-
Method Summary
Modifier and Type Method Description final Optional<Transcription>
transcription()
Represents a transcription response returned by model, based on the provided input. final Optional<TranscriptionVerbose>
verbose()
Represents a verbose json transcription response returned by model, based on the provided input. final Boolean
isTranscription()
final Boolean
isVerbose()
final Transcription
asTranscription()
Represents a transcription response returned by model, based on the provided input. final TranscriptionVerbose
asVerbose()
Represents a verbose json transcription response returned by model, based on the provided input. final Optional<JsonValue>
_json()
final <T extends Any> T
accept(TranscriptionCreateResponse.Visitor<T> visitor)
final TranscriptionCreateResponse
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static TranscriptionCreateResponse
ofTranscription(Transcription transcription)
Represents a transcription response returned by model, based on the provided input. final static TranscriptionCreateResponse
ofVerbose(TranscriptionVerbose verbose)
Represents a verbose json transcription response returned by model, based on the provided input. -
-
Method Detail
-
transcription
final Optional<Transcription> transcription()
Represents a transcription response returned by model, based on the provided input.
-
verbose
final Optional<TranscriptionVerbose> verbose()
Represents a verbose json transcription response returned by model, based on the provided input.
-
isTranscription
final Boolean isTranscription()
-
asTranscription
final Transcription asTranscription()
Represents a transcription response returned by model, based on the provided input.
-
asVerbose
final TranscriptionVerbose asVerbose()
Represents a verbose json transcription response returned by model, based on the provided input.
-
accept
final <T extends Any> T accept(TranscriptionCreateResponse.Visitor<T> visitor)
-
validate
final TranscriptionCreateResponse validate()
-
ofTranscription
final static TranscriptionCreateResponse ofTranscription(Transcription transcription)
Represents a transcription response returned by model, based on the provided input.
-
ofVerbose
final static TranscriptionCreateResponse ofVerbose(TranscriptionVerbose verbose)
Represents a verbose json transcription response returned by model, based on the provided input.
-
-
-
-