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