Class TranslationVerbose
-
- All Implemented Interfaces:
public final class TranslationVerbose
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classTranslationVerbose.BuilderA builder for TranslationVerbose.
-
Method Summary
Modifier and Type Method Description final Doubleduration()The duration of the input audio. final Stringlanguage()The language of the output translation (always english).final Stringtext()The translated text. final Optional<List<TranscriptionSegment>>segments()Segments of the translated text and their corresponding details. final JsonField<Double>_duration()Returns the raw JSON value of duration. final JsonField<String>_language()Returns the raw JSON value of language. final JsonField<String>_text()Returns the raw JSON value of text. final JsonField<List<TranscriptionSegment>>_segments()Returns the raw JSON value of segments. final Map<String, JsonValue>_additionalProperties()final TranslationVerbose.BuildertoBuilder()final TranslationVerbosevalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static TranslationVerbose.Builderbuilder()Returns a mutable builder for constructing an instance of TranslationVerbose. -
-
Method Detail
-
segments
final Optional<List<TranscriptionSegment>> segments()
Segments of the translated text and their corresponding details.
-
_duration
final JsonField<Double> _duration()
Returns the raw JSON value of duration.
Unlike duration, this method doesn't throw if the JSON field has an unexpected type.
-
_language
final JsonField<String> _language()
Returns the raw JSON value of language.
Unlike language, this method doesn't throw if the JSON field has an unexpected type.
-
_text
final JsonField<String> _text()
Returns the raw JSON value of text.
Unlike text, this method doesn't throw if the JSON field has an unexpected type.
-
_segments
final JsonField<List<TranscriptionSegment>> _segments()
Returns the raw JSON value of segments.
Unlike segments, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final TranslationVerbose.Builder toBuilder()
-
validate
final TranslationVerbose validate()
-
builder
final static TranslationVerbose.Builder builder()
Returns a mutable builder for constructing an instance of TranslationVerbose.
The following fields are required:
.duration() .language() .text()
-
-
-
-