Class TranscriptionTextDoneEvent.Builder
-
- All Implemented Interfaces:
public final class TranscriptionTextDoneEvent.Builder
A builder for TranscriptionTextDoneEvent.
-
-
Method Summary
-
-
Method Detail
-
text
final TranscriptionTextDoneEvent.Builder text(String text)
The text that was transcribed.
-
text
final TranscriptionTextDoneEvent.Builder text(JsonField<String> text)
Sets Builder.text to an arbitrary JSON value.
You should usually call Builder.text with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final TranscriptionTextDoneEvent.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("transcript.text.done")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
logprobs
final TranscriptionTextDoneEvent.Builder logprobs(List<TranscriptionTextDoneEvent.Logprob> logprobs)
The log probabilities of the individual tokens in the transcription. Only included if you create a transcription with the
include[]
parameter set tologprobs
.
-
logprobs
final TranscriptionTextDoneEvent.Builder logprobs(JsonField<List<TranscriptionTextDoneEvent.Logprob>> logprobs)
Sets Builder.logprobs to an arbitrary JSON value.
You should usually call Builder.logprobs with a well-typed
List<Logprob>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addLogprob
final TranscriptionTextDoneEvent.Builder addLogprob(TranscriptionTextDoneEvent.Logprob logprob)
-
additionalProperties
final TranscriptionTextDoneEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final TranscriptionTextDoneEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final TranscriptionTextDoneEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final TranscriptionTextDoneEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final TranscriptionTextDoneEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final TranscriptionTextDoneEvent build()
Returns an immutable instance of TranscriptionTextDoneEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.text()
-
-
-
-