Package com.openai.models
Class AudioTranslationCreateResponse
-
- All Implemented Interfaces:
public final class AudioTranslationCreateResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
AudioTranslationCreateResponse.Visitor
An interface that defines how to map each variant of AudioTranslationCreateResponse to a value of type T.
-
Method Summary
Modifier and Type Method Description final Optional<Translation>
translation()
final Optional<TranslationVerbose>
translationVerbose()
final Boolean
isTranslation()
final Boolean
isTranslationVerbose()
final Translation
asTranslation()
final TranslationVerbose
asTranslationVerbose()
final Optional<JsonValue>
_json()
final <T extends Any> T
accept(AudioTranslationCreateResponse.Visitor<T> visitor)
final AudioTranslationCreateResponse
validate()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static AudioTranslationCreateResponse
ofTranslation(Translation translation)
final static AudioTranslationCreateResponse
ofTranslationVerbose(TranslationVerbose translationVerbose)
-
-
Method Detail
-
translation
final Optional<Translation> translation()
-
translationVerbose
final Optional<TranslationVerbose> translationVerbose()
-
isTranslation
final Boolean isTranslation()
-
isTranslationVerbose
final Boolean isTranslationVerbose()
-
asTranslation
final Translation asTranslation()
-
asTranslationVerbose
final TranslationVerbose asTranslationVerbose()
-
accept
final <T extends Any> T accept(AudioTranslationCreateResponse.Visitor<T> visitor)
-
validate
final AudioTranslationCreateResponse validate()
-
ofTranslation
final static AudioTranslationCreateResponse ofTranslation(Translation translation)
-
ofTranslationVerbose
final static AudioTranslationCreateResponse ofTranslationVerbose(TranslationVerbose translationVerbose)
-
-
-
-