Package com.openai.models
Class TranslationVerbose.Builder
-
- All Implemented Interfaces:
public final class TranslationVerbose.Builder
A builder for TranslationVerbose.
-
-
Method Summary
-
-
Method Detail
-
duration
final TranslationVerbose.Builder duration(Double duration)
The duration of the input audio.
-
duration
final TranslationVerbose.Builder duration(JsonField<Double> duration)
The duration of the input audio.
-
language
final TranslationVerbose.Builder language(String language)
The language of the output translation (always
english
).
-
language
final TranslationVerbose.Builder language(JsonField<String> language)
The language of the output translation (always
english
).
-
text
final TranslationVerbose.Builder text(String text)
The translated text.
-
text
final TranslationVerbose.Builder text(JsonField<String> text)
The translated text.
-
segments
final TranslationVerbose.Builder segments(List<TranscriptionSegment> segments)
Segments of the translated text and their corresponding details.
-
segments
final TranslationVerbose.Builder segments(JsonField<List<TranscriptionSegment>> segments)
Segments of the translated text and their corresponding details.
-
addSegment
final TranslationVerbose.Builder addSegment(TranscriptionSegment segment)
Segments of the translated text and their corresponding details.
-
additionalProperties
final TranslationVerbose.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final TranslationVerbose.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final TranslationVerbose.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final TranslationVerbose.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final TranslationVerbose.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final TranslationVerbose build()
-
-
-
-